/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f8fa;
    color: #333;
}

/* 登录页样式 */
.login-body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 350px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header h2 {
    color: #333;
    font-weight: 600;
    margin-bottom: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border 0.3s;
}

.form-control:focus {
    border-color: #764ba2;
    outline: none;
}

.btn {
    width: 100%;
    padding: 12px;
    background-color: #764ba2;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #667eea;
}

.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.remember-me input {
    margin-right: 8px;
}

/* 仪表盘样式 */
.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding-top: 20px;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.sidebar ul {
    list-style: none;
    padding: 20px 0;
}

.sidebar li {
    margin-bottom: 10px;
}

.sidebar a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 10px 20px;
    display: block;
    transition: all 0.3s;
}

.sidebar a:hover,
.sidebar a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #3498db;
}

.main-content {
    flex: 1;
    padding: 20px;
    margin-left: 250px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eaeaea;
}

.header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.header-right a {
    color: #3498db;
    text-decoration: none;
}

/* 人员管理样式 */
.staff-management, .management-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.staff-management h3, .management-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #333;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.filters input,
.filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-button, .clear-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: background-color 0.3s;
}

.search-button {
    background-color: #3498db;
    color: white;
}

.search-button:hover {
    background-color: #2980b9;
}

.clear-button {
    background-color: #e74c3c;
    color: white;
}

.clear-button:hover {
    background-color: #c0392b;
}

.filter-status {
    margin-top: 10px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #3498db;
}

.filter-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.clear-filter-button {
    background-color: transparent;
    border: 1px solid #e74c3c;
    color: #e74c3c;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.clear-filter-button:hover {
    background-color: #e74c3c;
    color: white;
}

.no-filter-results {
    padding: 20px;
    text-align: center;
    background-color: #f8f9fa;
    border-radius: 6px;
    margin-top: 20px;
}

.filters input:focus,
.filters select:focus {
    border-color: #3498db;
    outline: none;
}

.staff-table {
    width: 100%;
    border-collapse: collapse;
}

.staff-table th,
.staff-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eaeaea;
}

.staff-table th {
    background-color: #f9f9f9;
    font-weight: 600;
}

.staff-table tr:hover {
    background-color: #f5f5f5;
    cursor: pointer;
}

.staff-row {
    transition: all 0.2s ease;
}

.staff-row:hover {
    background-color: #eaf2fd;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 20px;
    background-color: #e1f0ff;
    color: #3498db;
    font-size: 12px;
    font-weight: 500;
}

.view-button {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.view-button:hover {
    background-color: #2980b9;
}

.share-button {
    background-color: #ff9800;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-left: 5px;
}

.share-button:hover {
    background-color: #f57c00;
}

.actions button {
    padding: 6px 12px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 5px;
}

.actions button.delete {
    background-color: #e74c3c;
}

.actions button:hover {
    opacity: 0.9;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow: auto;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 20px;
    width: 60%;
    max-width: 700px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-button:hover {
    color: black;
}

/* 人员详情样式 */
.staff-details {
    display: flex;
    gap: 20px;
}

.staff-photo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
}

.staff-info {
    flex: 1;
}

.staff-info h3 {
    margin-bottom: 15px;
}

.staff-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.staff-info-item {
    margin-bottom: 8px;
}

.staff-info-item span {
    font-weight: bold;
}

.staff-introduction {
    margin-top: 20px;
}

.staff-gallery {
    margin-top: 20px;
}

.staff-gallery h4 {
    margin-bottom: 10px;
}

.gallery-images {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.gallery-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* 加载和错误样式 */
.loading {
    text-align: center;
    padding: 40px;
    font-size: 18px;
    color: #666;
}

.error {
    text-align: center;
    padding: 20px;
    color: #e74c3c;
    background-color: #fdf3f2;
    border-radius: 4px;
    margin: 20px 0;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .staff-info-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 90%;
        margin: 5% auto;
    }
    
    .staff-details {
        flex-direction: column;
    }
    
    .filters {
        flex-direction: column;
    }
}

.action-bar {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.add-staff-button {
    background-color: #2ecc71;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.add-staff-button::before {
    content: "+";
    margin-right: 5px;
    font-size: 18px;
    font-weight: bold;
}

.add-staff-button:hover {
    background-color: #27ae60;
}

.demand-service-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 5px;
}

.demand-service-tag {
    padding: 4px 8px;
    background-color: #e1f5fe;
    border-radius: 4px;
    color: #0288d1;
    font-size: 14px;
    flex: 0 0 calc(25% - 6px); /* 每行显示4个，考虑间隙 */
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
} 