/* admin/public/css/components.css */
/* 卡片样式 */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* 表格样式 */
.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.table th,
.table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
}

.table tr:hover {
    background: #f8f9fa;
}

/* 按钮样式 */
.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: #5a6fd8;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 3px;
}

.btn-small {
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 3px;
    margin: 0.1rem;
}

/* 微信相关样式 */
.wechat-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.wechat-guide {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border: 1px solid #bbdefb;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.guide-content {
    line-height: 1.6;
}

.guide-section {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
}

.guide-section h5 {
    margin: 0 0 8px 0;
    color: #495057;
}

.wechat-bound {
    background: #d4edda;
    color: #155724;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.wechat-unbound {
    background: #f8d7da;
    color: #721c24;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}

.action-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.action-buttons {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .action-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
    }
    
    .status-actions {
        justify-content: center;
    }
}

.btn-danger {
    background: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

/* 全宽度表单字段 */
.form-group.full-width {
    flex: 1 1 100%;
}

/* 多行文本输入框样式 */
.form-group textarea {
    resize: vertical;
    min-height: 4rem;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
}

/* 状态标签样式 */
.status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-inactive {
    background: #f8d7da;
    color: #721c24;
}

.status-unknown {
    background: #e2e3e5;
    color: #383d41;
}

/* 加载状态样式 */
.loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.loading::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 0.5rem;
    vertical-align: middle;
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 服务统计样式 */
.service-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #666;
}

/* 员工管理模态框样式 */
.employee-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
}

.employee-form-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-width: 700px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #eee;
}

.form-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.employee-form {
    padding: 1.5rem;
}

.employee-form .form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.employee-form .form-group {
    flex: 1;
    margin-bottom: 1rem;
}

.employee-form .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.employee-form .form-group input,
.employee-form .form-group select,
.employee-form .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.employee-form .form-group input:focus,
.employee-form .form-group select:focus,
.employee-form .form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.employee-form .form-group input:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

.employee-form .form-group small {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

.employee-form .form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .modal-header {
        padding: 0.75rem 1rem;
    }
    
    .service-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .stat-item {
        margin-bottom: 0.5rem;
    }
    
    .employee-form-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .employee-form {
        padding: 1rem;
    }
    
    .employee-form .form-actions {
        flex-direction: column;
    }
    
    .employee-form .form-actions .btn {
        width: 100%;
    }
}

/* 小程序设置页面样式 */
.miniprogram-settings {
    padding: 0;
}

.settings-header {
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    margin-bottom: 0;
}

.settings-header h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
}

.settings-header p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
}

.settings-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.settings-section {
    margin-bottom: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
}

.settings-section h3 {
    margin: 0 0 1.5rem 0;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.settings-section .form-group {
    margin-bottom: 1.5rem;
}

.settings-section .form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: #444;
    font-size: 1rem;
}

.settings-section .form-group input,
.settings-section .form-group textarea,
.settings-section .form-group select {
    width: 100%;
    padding: 0.9rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.settings-section .form-group input:focus,
.settings-section .form-group textarea:focus,
.settings-section .form-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    background: white;
}

.settings-section .form-group input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.settings-section .form-group small {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #777;
    font-style: italic;
}

.settings-section .form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.settings-section .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.settings-actions {
    text-align: center;
    padding: 2rem 0;
}

.settings-actions .btn {
    margin: 0 1rem;
    min-width: 150px;
    padding: 0.9rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
}

/* 用户管理页面滚动样式 */
.user-management-card {
    height: calc(100vh - 200px);
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.card-header {
    flex-shrink: 0;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.users-table-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    background: white;
}

.users-table {
    margin: 0;
    border-radius: 0;
}

.users-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.users-table thead th {
    background: #f8f9fa;
    font-weight: 600;
    color: #555;
    border-bottom: 2px solid #dee2e6;
    padding: 1rem 0.75rem;
    text-align: left;
    white-space: nowrap;
}

.users-table tbody tr {
    border-bottom: 1px solid #eee;
}

.users-table tbody tr:hover {
    background: #f8f9fa;
}

.users-table tbody tr:last-child {
    border-bottom: none;
}

.users-table td {
    padding: 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #eee;
}

/* 滚动条样式 */
.users-table-container::-webkit-scrollbar {
    width: 8px;
}

.users-table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.users-table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表格列宽优化 */
.users-table th:nth-child(1),
.users-table td:nth-child(1) {
    width: 60px;
    min-width: 60px;
}

.users-table th:nth-child(2),
.users-table td:nth-child(2) {
    width: 180px;
    min-width: 180px;
}

.users-table th:nth-child(3),
.users-table td:nth-child(3) {
    width: 120px;
    min-width: 120px;
}

.users-table th:nth-child(4),
.users-table td:nth-child(4) {
    width: 120px;
    min-width: 120px;
}

.users-table th:nth-child(5),
.users-table td:nth-child(5) {
    width: 100px;
    min-width: 100px;
}

.users-table th:nth-child(6),
.users-table td:nth-child(6) {
    width: 150px;
    min-width: 150px;
}

.users-table th:nth-child(7),
.users-table td:nth-child(7) {
    width: 90px;
    min-width: 90px;
    text-align: center;
}

.users-table th:nth-child(8),
.users-table td:nth-child(8) {
    width: 90px;
    min-width: 90px;
    text-align: center;
}

.users-table th:nth-child(9),
.users-table td:nth-child(9) {
    width: 140px;
    min-width: 140px;
    text-align: center;
}

.users-table th:nth-child(10),
.users-table td:nth-child(10) {
    width: 120px;
    min-width: 120px;
}

.users-table th:nth-child(11),
.users-table td:nth-child(11) {
    width: 100px;
    min-width: 100px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .users-table-container {
        overflow-x: auto;
    }
    
    .users-table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .user-management-card {
        height: calc(100vh - 120px);
        margin: 0;
        border-radius: 0;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .users-table th,
    .users-table td {
        padding: 0.4rem;
        font-size: 0.8rem;
    }
    
    /* 小屏幕下调整列宽 */
    .users-table th:nth-child(1),
    .users-table td:nth-child(1) {
        width: 50px;
        min-width: 50px;
    }
    
    .users-table th:nth-child(2),
    .users-table td:nth-child(2) {
        width: 80px;
        min-width: 80px;
    }
    
    .users-table th:nth-child(9),
    .users-table td:nth-child(9) {
        width: 100px;
        min-width: 100px;
        font-size: 0.75rem;
    }
    
    .users-table th:nth-child(10),
    .users-table td:nth-child(10) {
        width: 80px;
        min-width: 80px;
        font-size: 0.75rem;
    }
    
    /* 小屏幕下调整数量徽章样式 */
    .users-table .needs-count,
    .users-table .properties-count {
        font-size: 0.7rem;
        padding: 2px 6px;
    }
    
    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* 员工详情模态框样式 */
.employee-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(2px);
}

.employee-detail-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.3s ease-out;
    border: none;
    position: relative;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
}

.detail-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    padding: 0.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.detail-content {
    padding: 1.5rem;
    max-height: calc(90vh - 80px);
    overflow-y: auto;
}

.employee-detail {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-section {
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    padding: 1.25rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
}

.detail-section h4 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.1rem;
    font-weight: 600;
    padding-left: 0.75rem;
    position: relative;
}

.detail-section h4::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: #667eea;
    border-radius: 2px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.detail-item:hover {
    background: #e8f4fd;
    border-color: #667eea;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.1);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.detail-item .label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9rem;
    min-width: 80px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.detail-item .value {
    color: #2c3e50;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
    word-break: break-word;
}

/* 身份标签样式 */
.staff-badge {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.user-badge {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* 微信操作区域 */
.wechat-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.wechat-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.wechat-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* 员工列表样式 */
.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f8f9fa;
}

.employee-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.6rem;
    font-weight: 600;
}

.employee-actions {
    display: flex;
    gap: 0.75rem;
}

.filter-bar {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.filter-bar select {
    padding: 0.5rem 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    font-size: 0.9rem;
    color: #495057;
    min-width: 120px;
    transition: all 0.2s ease;
}

.filter-bar select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.employee-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.employee-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem;
    font-weight: 600;
    text-align: left;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.employee-table td {
    padding: 0.875rem;
    border-bottom: 1px solid #f1f3f4;
    font-size: 0.9rem;
    color: #495057;
}

.employee-table tbody tr:hover {
    background: #f8f9fa;
}

/* 状态徽章样式 */
.status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.status-active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.status-pending {
    background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(255, 193, 7, 0.3);
}

.status-inactive {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* 身份徽章样式 */
.identity-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.identity-badge.staff {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.identity-badge.user {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .employee-detail-container {
        width: 95%;
        max-height: 95vh;
        margin: 0.5rem;
    }
    
    .detail-header {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .detail-header h3 {
        font-size: 1.2rem;
    }
    
    .detail-content {
        padding: 1rem;
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        text-align: left;
    }
    
    .detail-item .label {
        min-width: auto;
        font-size: 0.85rem;
    }
    
    .detail-item .value {
        font-size: 0.9rem;
    }
    
    .employee-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .employee-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .filter-bar {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-bar select {
        width: 100%;
        min-width: auto;
    }
    
    .employee-table {
        font-size: 0.8rem;
    }
    
    .employee-table th,
    .employee-table td {
        padding: 0.5rem;
    }
    
    .wechat-actions {
        flex-direction: column;
    }
    
    .wechat-actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 房源缩略图样式 */
.property-thumbnail {
    width: 100px !important;
    height: 100px !important;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.property-thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.thumbnail-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100px !important;
    max-height: 100px !important;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 24px;
    background: #f8f9fa;
}

.no-image span {
    opacity: 0.6;
}

/* 房源管理表格滚动容器 */
.table-container {
    max-height: 70vh; /* 最大高度为视窗的70% */
    overflow-y: auto; /* 垂直滚动 */
    overflow-x: hidden; /* 隐藏水平滚动 */
    margin: 1rem 0;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: white;
    position: relative;
}

/* 空状态样式 */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #6b7280;
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-text {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.empty-description {
    font-size: 0.875rem;
    color: #9ca3af;
}

/* 加载状态样式 */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
    color: #6b7280;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.loading-text {
    font-size: 0.875rem;
    color: #9ca3af;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 确保表格宽度完整显示 */
.table-container .table {
    width: 100%;
    min-width: 100%;
    border-collapse: collapse;
    background: white;
}

/* 表头固定在顶部 */
.table-container thead th {
    position: sticky;
    top: 0;
    background: #f8f9fa;
    z-index: 10;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 自定义滚动条样式 */
.table-container::-webkit-scrollbar {
    width: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 表格行悬停效果 */
.table-container tbody tr:hover {
    background-color: #f8f9fa;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .property-thumbnail {
        width: 80px !important;
        height: 80px !important;
    }
    
    .thumbnail-image {
        max-width: 80px !important;
        max-height: 80px !important;
    }
    
    .table th:first-child,
    .table td:first-child {
        padding: 0.5rem;
    }
    
    .table-container {
        max-height: 60vh; /* 移动端减少高度 */
        overflow-x: auto; /* 允许水平滚动 */
    }
    
    .table-container .table {
        min-width: 800px; /* 确保最小宽度，移动端可以左右滚动 */
    }
    
    .empty-state,
    .loading-state {
        padding: 2rem 1rem;
    }
    
    .empty-icon {
        font-size: 3rem;
    }
}

/* 指派功能相关样式 */
.assignment-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.assigned-employee {
    display: flex;
    flex-direction: column;
}

.assigned-employee .employee-name {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.assigned-employee .employee-dept {
    font-size: 0.8rem;
    color: #666;
}

.unassigned {
    text-align: center;
}

.unassigned-text {
    color: #999;
    font-style: italic;
    font-size: 0.9rem;
}

/* 指派模态框样式重设计 */
.employee-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.employee-form-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.form-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 32px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.form-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-header h3::before {
    content: "👥";
    font-size: 1.8rem;
}

.close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.form-content {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

/* 需求信息卡片 - 无背景版本 */
.assignment-need-info {
    background: transparent;
    color: #333;
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid #e5e7eb;
}

.assignment-need-info h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #374151;
}

.assignment-need-info h4::before {
    content: "📋";
}

.need-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.need-info-grid .info-item {
    background: #f9fafb;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.need-info-grid .info-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.need-info-grid .info-item.full-width {
    grid-column: 1 / -1;
}

.need-info-grid .label {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.need-info-grid .value {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
}

/* 当前指派信息 */
.current-assignment {
    margin-bottom: 24px;
}

.current-assignment h4 {
    color: #059669;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.current-assignment h4::before {
    content: "👤";
}

.current-assignment-info {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #6ee7b7;
    box-shadow: 0 2px 10px rgba(5, 150, 105, 0.1);
}

.employee-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.employee-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(5, 150, 105, 0.4);
    }
}

.employee-details {
    flex: 1;
}

.employee-details .employee-name {
    font-weight: 700;
    color: #064e3b;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.employee-details .employee-dept {
    color: #065f46;
    font-size: 0.9rem;
    font-weight: 500;
}

.employee-details .assignment-date {
    color: #047857;
    font-size: 0.8rem;
    margin-top: 4px;
}

/* 表单样式 */
.assignment-form {
    margin-top: 24px;
}

.assignment-form .form-group {
    margin-bottom: 24px;
}

.assignment-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.assignment-form select,
.assignment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.assignment-form select:focus,
.assignment-form textarea:focus {
    border-color: #667eea;
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.assignment-form select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    padding-right: 40px;
}

.assignment-form textarea {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.form-actions .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #d1d5db;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.no-employees-notice {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 2px solid #f59e0b;
    border-radius: 12px;
    padding: 20px;
    color: #92400e;
    text-align: center;
    margin-top: 24px;
    font-weight: 500;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .employee-form-overlay {
        padding: 10px;
    }
    
    .employee-form-container {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .form-content {
        padding: 24px 20px;
    }
    
    .form-header {
        padding: 20px 24px;
    }
    
    .form-header h3 {
        font-size: 1.3rem;
    }
    
    .need-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .need-info-grid .info-item {
        padding: 10px;
    }
    
    .assignment-need-info {
        padding: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* 指派状态的表格列样式 */
.assignment-column {
    min-width: 120px;
}

.assignment-column .assignment-info {
    margin: 0;
}

.assignment-column .unassigned {
    font-style: italic;
    color: #999;
    font-size: 0.85rem;
}

/* 房源详情图片轮播样式 */
.image-section {
    position: relative;
    width: 100%;
    height: 300px;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    background: #f8f9fa;
}

.image-swiper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.swiper-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none; /* 默认不响应点击事件 */
}

.swiper-item.active {
    opacity: 1;
    pointer-events: all; /* 只有激活时才响应点击事件 */
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
}

.slide-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    background: #000;
    pointer-events: auto; /* 确保视频元素可以接收点击 */
    z-index: 1;
}

/* 轮播导航按钮 */
.image-nav-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    pointer-events: none; /* 容器不响应点击 */
    padding: 0 10px;
    z-index: 10; /* 确保导航按钮在最上层 */
}

.nav-btn {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    pointer-events: all; /* 按钮本身响应点击 */
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 轮播指示点 */
.image-navigation {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
}

.image-dots {
    display: flex;
    gap: 8px;
}

.image-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.image-dot.active {
    background: #007bff;
}

.image-counter {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* 全屏图片查看器样式 */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    overflow: hidden;
}

.image-fullscreen-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    cursor: default;
    background: black;
    overflow: hidden;
}

.image-fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.image-counter {
    color: white;
    font-size: 16px;
    font-weight: 500;
}

.close-fullscreen-btn {
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.close-fullscreen-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.image-fullscreen-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 30px; /* 为控制按钮留出一些边距 */
    box-sizing: border-box;
}

.fullscreen-image {
    max-height: calc(95vh - 60px);
    max-width: calc(95vw - 60px);
    object-fit: contain;
    cursor: pointer;
}

.image-fullscreen-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 100px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 100;
}

.fullscreen-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 48px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.fullscreen-nav-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.fullscreen-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.fullscreen-nav-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .image-section {
        height: 250px;
    }
    
    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .image-navigation {
        bottom: 8px;
        gap: 10px;
    }
    
    .image-counter {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    /* 移动端全屏图片查看器 */
    .image-fullscreen-header {
        height: 50px;
        padding: 0 15px;
    }
    
    .image-fullscreen-header .image-counter {
        font-size: 14px;
    }
    
    .close-fullscreen-btn {
        font-size: 28px;
        width: 35px;
        height: 35px;
    }
    
    .image-fullscreen-nav {
        padding: 0 15px;
    }

