/* 员工管理系统 - 全局样式 */

:root {
    --danger: #dc2626;
    --warning: #d97706;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #475569;
    background: #f8fafc;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #475569;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

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

.btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    background: #e2e8f0;
    color: #334155;
}

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

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

.btn-success {
    background: #10b981;
    color: white;
}

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

.btn-lg {
    padding: 14px 24px;
    font-size: 16px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 12px rgba(0,0,0,0.03);
    border: 1px solid #e2e8f0;
}

.card-header {
    padding: 18px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: linear-gradient(to bottom, #ffffff, #f8fafc);
    border-radius: 16px 16px 0 0;
}

.card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
}

.card-body {
    padding: 24px;
}

.card-footer {
    padding: 16px 24px;
    border-top: 1px solid #eef0f3;
    background: #fafbfc;
    border-radius: 0 0 16px 16px;
}

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

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

.table th {
    background: #f1f5f9;
    font-weight: 600;
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table td {
    color: #64748b;
}

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

/* 导航栏 */
.navbar {
    background: white;
    padding: 16px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    text-decoration: none;
}

/* 提示消息 */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-warning {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

/* 分页 */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 24px;
}

.pagination a {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}

.pagination a:hover,
.pagination a.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

/* ===== 后台管理样式 ===== */

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 28px;
    height: 28px;
}

.stat-icon.blue { background: #dbeafe; color: #2563eb; }
.stat-icon.cyan { background: #cffafe; color: #0891b2; }
.stat-icon.green { background: #d1fae5; color: #059669; }
.stat-icon.orange { background: #fef3c7; color: #d97706; }
.stat-icon.red { background: #fee2e2; color: #dc2626; }
.stat-icon.purple { background: #f3e8ff; color: #7c3aed; }
.stat-icon.gray { background: #f3f4f6; color: #6b7280; }

.stat-content { flex: 1; }
.stat-label { font-size: 13px; color: #6b7280; margin-bottom: 4px; }
.stat-value { font-size: 28px; font-weight: 700; color: #1f2937; line-height: 1.2; }
.stat-change { font-size: 12px; color: #9ca3af; margin-top: 4px; }

/* 侧边栏样式 */
.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
}

.sidebar-logo svg {
    width: 32px;
    height: 32px;
}

.sidebar-nav {
    padding: 16px 0;
}

.nav-section {
    margin-bottom: 8px;
}

.nav-section-title {
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #64748b;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 14px;
}

.nav-item:hover {
    background: rgba(255,255,255,0.05);
    color: white;
}

.nav-item.active {
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border-right: 3px solid #667eea;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 用户菜单 */
.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #f3f4f6;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 14px;
    color: #1f2937;
}

.user-role {
    font-size: 12px;
    color: #6b7280;
}

/* 语言切换 */
.lang-selector {
    display: flex;
    gap: 4px;
    margin-right: 16px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: white;
    color: #6b7280;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

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

.lang-btn.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

/* 卡片头部 - 已移至上方 */

/* 标签 */
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.tag-blue { background: #dbeafe; color: #1d4ed8; }
.tag-green { background: #dcfce7; color: #15803d; }
.tag-yellow { background: #fef9c3; color: #a16207; }
.tag-red { background: #fee2e2; color: #dc2626; }
.tag-orange { background: #ffedd5; color: #ea580c; }
.tag-gray { background: #f1f5f9; color: #475569; }
.tag-gray { background: #f1f5f9; color: #475569; }
.tag-danger { background: #fee2e2; color: #dc2626; }
.tag-warning { background: #fef3c7; color: #d97706; }
.tag-info { background: #dbeafe; color: #2563eb; }

/* 文本辅助类 */
.text-muted { color: #9ca3af; }
.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
}
.form-text {
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* 按钮尺寸 */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-ghost {
    background: transparent;
    color: #4b5563;
    border: 1px solid transparent;
}
.btn-ghost:hover {
    background: #f3f4f6;
    color: #111827;
}

/* 下拉菜单 */
.dropdown {
    position: relative;
    display: inline-block;
    overflow: visible;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 180px;
    display: none;
    z-index: 1000;
    overflow: visible;
}

.dropdown:hover .dropdown-menu {
    /* handled by JS */
}

.dropdown-menu.active {
    display: block;
}

.dropdown-gap {
    position: absolute;
    left: 0;
    right: 0;
    height: 20px;
    bottom: -20px;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.2s;
}

.dropdown-item:hover {
    background: #f3f4f6;
}

.dropdown-divider {
    height: 1px;
    background: #e5e7eb;
    margin: 4px 0;
}

/* 页面标题 */
.page-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

/* 头部右边 */
.header-right {
    display: flex;
    align-items: center;
}

/* 下拉选择框 */
.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

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

/* 筛选栏 */
.filter-bar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.filter-form {
    width: 100%;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-actions {
    display: flex;
    gap: 8px;
}

.filter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.filter-input:focus {
    outline: none;
    border-color: #667eea;
}

.filter-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
}

/* 数据表格容器 */
.table-container {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.table-container table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.table-container th,
.table-container td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    word-break: break-word;
}

.table-container th {
    background: #f9fafb;
    font-weight: 600;
    color: #374151;
    font-size: 13px;
    white-space: nowrap;
}

.table-container tr:last-child td {
    border-bottom: none;
}

.table-container tr:hover {
    background: #f9fafb;
}

/* 响应式表格 */
@media (max-width: 1024px) {
    .table-container {
        overflow-x: auto;
    }
}

/* 操作按钮组 */
.action-btns {
    display: flex;
    gap: 8px;
}

.action-btns .btn {
    padding: 6px 12px;
    font-size: 12px;
}

.action-btns .btn svg {
    width: 14px;
    height: 14px;
}

/* 状态徽章 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.on-leave {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.inactive {
    background: #f3f4f6;
    color: #6b7280;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.approved {
    background: #d1fae5;
    color: #065f46;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    background: #f3f4f6;
    color: #374151;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.empty-state svg {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 14px;
}

/* 工具提示 */
[data-tooltip] {
    position: relative;
}

[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background: #1f2937;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
}

/* 表单布局 */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.card-body {
    padding: 24px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    margin: -24px -24px 24px -24px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h2 {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
}

.profile-info p {
    margin: 0 0 16px 0;
    opacity: 0.9;
    font-size: 14px;
}

.profile-stats {
    display: flex;
    gap: 32px;
}

.profile-stat {
    text-align: center;
}

.profile-stat-value {
    font-size: 20px;
    font-weight: 700;
}

.profile-stat-label {
    font-size: 12px;
    opacity: 0.8;
    margin-top: 2px;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 2px;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.profile-item:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-color: #cbd5e1;
}

.profile-item-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.profile-item-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.form-check:hover {
    background: #e5e7eb !important;
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.form-check-label {
    font-size: 14px;
    color: #374151;
}

/* 危险提示 */
.alert-danger {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-danger div {
    margin: 4px 0;
}

/* 必填标记 */
.required::after {
    content: '*';
    color: #dc2626;
    margin-left: 4px;
}

/* 按钮图标对齐 */
.btn svg {
    margin-right: 6px;
}

/* 模态框 */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 16px;
}

.modal-overlay.active {
    display: flex;
}

.modal-overlay .modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content {
    position: relative;
    z-index: 2;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

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

.modal-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #6b7280;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    background: #fafbfc;
}

/* 详情页网格 */
.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.profile-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.profile-item-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.profile-item-value {
    font-size: 14px;
    color: #0f172a;
    font-weight: 600;
    word-break: break-word;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
    }
    
    .header-actions .lang-group {
        display: none;
    }
    
    .header-actions .user-name-text {
        display: none;
    }
}

/* 前台头部样式 */
.brand-text {
    white-space: nowrap;
}

.header-actions {
    flex-shrink: 0;
}

.lang-group {
    flex-shrink: 0;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 基础字体缩小 */
    body {
        font-size: 14px;
    }
    
    .hide-mobile {
        display: none !important;
    }
    
    .show-mobile {
        display: flex !important;
    }
    
    .backend-content {
        padding: 16px 12px;
    }
    
    /* 后台内容字体优化 */
    .backend-content .card {
        font-size: 14px;
    }
    
    .backend-content .card-title {
        font-size: 16px;
    }
    
    .backend-content .stat-card {
        font-size: 14px;
    }
    
    .backend-content .stat-value {
        font-size: 24px;
    }
    
    /* 操作按钮行 */
    .action-buttons-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 16px;
        gap: 12px;
    }
    
    /* 移动端卡片通用样式 */
    .mobile-cards {
        font-size: 13px;
    }
    
    .mobile-cards > div {
        font-size: 13px;
    }
    
    .mobile-cards .btn-sm {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    /* 分页样式优化 */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        font-size: 13px;
    }
    
    /* 表格内字体缩小 */
    .table {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    /* 筛选栏字体优化 */
    .filter-bar {
        font-size: 13px;
    }
    
    .filter-bar .filter-input,
    .filter-bar .form-input,
    .filter-bar .form-select {
        font-size: 14px;
        padding: 10px 12px;
    }
    
    /* 按钮字体优化 */
    .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    /* 标签字体优化 */
    .tag {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    .status-badge {
        font-size: 11px;
        padding: 2px 8px;
    }
    
    /* 员工详情页移动端优化 */
    .staff-profile-card {
        padding: 20px 16px;
        margin-bottom: 16px;
    }
    
    .staff-profile-main {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .staff-profile-info h1 {
        font-size: 20px;
    }
    
    .staff-profile-stats {
        gap: 12px;
    }
    
    .staff-stat-value {
        font-size: 18px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 12px;
    }
    
    .info-item {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .hide-small {
        display: none !important;
    }
}

/* 员工详情页样式 */
.staff-profile-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 28px 32px;
    color: #fff;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.35);
    position: relative;
    overflow: hidden;
}

.staff-profile-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.staff-profile-main {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    position: relative;
}

.staff-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    border: 4px solid rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.staff-profile-info h1 {
    margin: 0 0 10px 0;
    font-size: 26px;
    font-weight: 700;
}

.staff-profile-stats {
    display: flex;
    justify-content: space-around;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.staff-stat-item {
    text-align: center;
}

.staff-stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.staff-stat-label {
    font-size: 13px;
    opacity: 0.9;
    font-weight: 500;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 20px;
}

.info-item {
    padding: 18px 20px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.2s ease;
}

.info-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.info-label {
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.info-value {
    font-size: 15px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.4;
}

/* 响应式表格/卡片切换 */
.desktop-table {
    display: block;
}

.mobile-cards {
    display: none;
}

@media (max-width: 768px) {
    .desktop-table {
        display: none;
    }
    
    .mobile-cards {
        display: block;
    }
    
    .mobile-cards > a,
    .mobile-cards > div {
        border-bottom: 1px solid #f3f4f6;
    }
    
    .mobile-cards > a:last-child,
    .mobile-cards > div:last-child {
        border-bottom: none !important;
    }
    
    .mobile-cards > a:hover {
        background: #f9fafb;
    }
}

/* 后台移动端样式优化 */
@media (max-width: 768px) {
    /* 卡片样式 */
    .backend-content .card {
        border-radius: 12px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    }
    
    /* 筛选栏 */
    .backend-content .filter-bar {
        padding: 16px;
        background: #fff;
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .backend-content .filter-bar .filter-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px;
    }
    
    .backend-content .filter-bar .filter-item {
        margin-bottom: 0;
    }
    
    .backend-content .filter-bar .filter-item label {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .backend-content .filter-bar .filter-input,
    .backend-content .filter-bar .form-input,
    .backend-content .filter-bar .form-select {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .backend-content .filter-bar .filter-actions {
        grid-column: 1 / -1;
        flex-direction: row;
    }
    
    .backend-content .filter-bar .btn {
        flex: 1;
        padding: 12px 16px;
        font-size: 14px;
    }
    
    /* 操作按钮行 */
    .backend-content [style*="display: flex"][style*="justify-content: space-between"] {
        flex-direction: column;
        gap: 12px;
    }
    
    .backend-content [style*="display: flex"][style*="justify-content: space-between"] .btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 统计卡片 */
    .backend-content .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    .backend-content .stat-card {
        padding: 16px;
        display: flex;
        align-items: center;
    }
    
    .backend-content .stat-icon {
        width: 48px;
        height: 48px;
        flex-shrink: 0;
    }
    
    .backend-content .stat-icon svg {
        width: 24px;
        height: 24px;
    }
}

