/* 专业企业级配色方案 */
:root {
    /* 主色调 - 专业蓝色系 */
    --primary-color: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #1E40AF;
    
    /* 中性色系 */
    --neutral-50: #F9FAFB;
    --neutral-100: #F3F4F6;
    --neutral-200: #E5E7EB;
    --neutral-300: #D1D5DB;
    --neutral-400: #9CA3AF;
    --neutral-500: #6B7280;
    --neutral-600: #4B5563;
    --neutral-700: #374151;
    --neutral-800: #1F2937;
    --neutral-900: #111827;
    
    /* 功能色 */
    --success-color: #059669;
    --warning-color: #D97706;
    --danger-color: #DC2626;
    --info-color: #0EA5E9;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 边距 */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
}

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--neutral-700);
    background-color: var(--neutral-50);
    font-size: 16px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 登录页面样式 - 企业级专业设计 */
.login-page {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.login-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="40" cy="70" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="90" cy="90" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="10" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.login-container {
    background: white;
    padding: 48px;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
    border: 1px solid var(--neutral-200);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 32px;
    color: var(--neutral-800);
    font-weight: 600;
    font-size: 24px;
}

.login-logo {
    text-align: center;
    margin-bottom: 24px;
    font-size: 28px;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* 表单样式 - 企业级专业设计 */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--neutral-700);
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    font-size: 16px;
    transition: all 0.2s ease;
    background-color: white;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: white;
}

.form-control:hover {
    border-color: var(--neutral-400);
}

.form-control::placeholder {
    color: var(--neutral-400);
}

/* 按钮样式 - 企业级专业设计 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-md);
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    line-height: 1;
    min-height: 44px;
    gap: 8px;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

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

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

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

.btn-success {
    background-color: var(--success-color);
    color: white;
    border: 1px solid var(--success-color);
}

.btn-success:hover:not(:disabled) {
    background-color: #047857;
    border-color: #047857;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-warning {
    background-color: var(--warning-color);
    color: white;
    border: 1px solid var(--warning-color);
}

.btn-warning:hover:not(:disabled) {
    background-color: #B45309;
    border-color: #B45309;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
    border: 1px solid var(--danger-color);
}

.btn-danger:hover:not(:disabled) {
    background-color: #B91C1C;
    border-color: #B91C1C;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-info {
    background-color: var(--info-color);
    color: white;
    border: 1px solid var(--info-color);
}

.btn-info:hover:not(:disabled) {
    background-color: #0284C7;
    border-color: #0284C7;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--neutral-600);
    color: white;
    border: 1px solid var(--neutral-600);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--neutral-700);
    border-color: var(--neutral-700);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover:not(:disabled) {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background-color: transparent;
    color: var(--neutral-600);
    border: 1px solid transparent;
}

.btn-ghost:hover:not(:disabled) {
    background-color: var(--neutral-100);
    color: var(--neutral-800);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    min-height: 36px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    min-height: 52px;
}

.btn-xl {
    padding: 20px 40px;
    font-size: 18px;
    min-height: 60px;
}

/* 排版系统 - 企业级专业设计 */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.25;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    color: var(--neutral-700);
    line-height: 1.6;
}

/* 字体大小工具类 */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }

/* 字体重量工具类 */
.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

/* 文本颜色工具类 */
.text-primary { color: var(--primary-color); }
.text-success { color: var(--success-color); }
.text-warning { color: var(--warning-color); }
.text-danger { color: var(--danger-color); }
.text-info { color: var(--info-color); }
.text-muted { color: var(--neutral-500); }
.text-dark { color: var(--neutral-800); }
.text-white { color: white; }
/* 警告框样式 - 企业级专业设计 */
.alert {
    padding: 16px 20px;
    margin-bottom: 24px;
    border-radius: var(--border-radius-lg);
    border: 1px solid transparent;
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert::before {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-top: 2px;
}

.alert-success {
    color: #065F46;
    background-color: #ECFDF5;
    border-color: #A7F3D0;
}

.alert-success::before {
    background-color: var(--success-color);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.alert-danger {
    color: #991B1B;
    background-color: #FEF2F2;
    border-color: #FECACA;
}

.alert-danger::before {
    background-color: var(--danger-color);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M18 6L6 18M6 6l12 12'/%3E%3C/svg%3E") no-repeat center / contain;
}

.alert-warning {
    color: #92400E;
    background-color: #FFFBEB;
    border-color: #FED7AA;
}

.alert-warning::before {
    background-color: var(--warning-color);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

.alert-info {
    color: #0E7490;
    background-color: #F0F9FF;
    border-color: #BAE6FD;
}

.alert-info::before {
    background-color: var(--info-color);
    mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* 状态徽章 - 企业级专业设计 */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-active {
    background-color: #ECFDF5;
    color: #065F46;
}

.status-active::before {
    background-color: var(--success-color);
}

.status-inactive {
    background-color: #FEF2F2;
    color: #991B1B;
}

.status-inactive::before {
    background-color: var(--danger-color);
}

.status-pending {
    background-color: #FFFBEB;
    color: #92400E;
}

.status-pending::before {
    background-color: var(--warning-color);
}

.status-processing {
    background-color: #EFF6FF;
    color: #1E40AF;
}

.status-processing::before {
    background-color: var(--primary-light);
}

.status-completed {
    background-color: #ECFDF5;
    color: #065F46;
}

.status-completed::before {
    background-color: var(--success-color);
}

.status-failed {
    background-color: #FEF2F2;
    color: #991B1B;
}

.status-failed::before {
    background-color: var(--danger-color);
}

.status-cancelled {
    background-color: #F9FAFB;
    color: #4B5563;
}

.status-cancelled::before {
    background-color: var(--neutral-400);
}

/* 表格样式 - 企业级专业设计 */
.table-container {
    overflow-x: auto;
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    font-size: 14px;
}

.table th,
.table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--neutral-200);
    vertical-align: middle;
}

.table th {
    background-color: var(--neutral-50);
    font-weight: 600;
    color: var(--neutral-700);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.table tbody tr:hover {
    background-color: var(--neutral-50);
    transition: background-color 0.2s ease;
}

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

/* 表格容器样式增强 */
.table-responsive {
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: white;
    border: 1px solid var(--neutral-200);
}

/* 表格操作按钮组 */
.table-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.table-actions .btn {
    padding: 6px 12px;
    font-size: 12px;
    min-height: 32px;
}

/* 备注信息样式 */
.notes-text {
    color: var(--neutral-600);
    font-style: italic;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.error-text {
    color: var(--danger-color);
    font-weight: 500;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.text-muted {
    color: var(--neutral-500);
    font-style: italic;
}

/* 模态框样式 - 企业级专业设计 */
.modal {
    display: none;
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background-color: white;
    margin: 3% auto;
    padding: 0;
    border-radius: var(--border-radius-xl);
    width: 90%;
    max-width: 520px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    animation: slideIn 0.3s ease-out;
}

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

.modal-header {
    padding: 24px 32px 20px;
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.modal-header h3 {
    margin: 0;
    color: var(--neutral-800);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
}

.close {
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    color: var(--neutral-400);
    transition: color 0.2s ease;
    padding: 4px;
    border-radius: var(--border-radius-sm);
    line-height: 1;
    flex-shrink: 0;
}

.close:hover {
    color: var(--neutral-600);
    background-color: var(--neutral-100);
}

.modal-body {
    padding: 24px 32px;
}

.modal-footer {
    padding: 20px 32px 24px;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--neutral-50);
    border-bottom-left-radius: var(--border-radius-xl);
    border-bottom-right-radius: var(--border-radius-xl);
}

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

/* 输入组样式 */
.input-group {
    display: flex;
}

.input-group .form-control {
    flex: 1;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-append {
    display: flex;
}

.input-group-append .btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-left: none;
}

/* 页面头部 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.page-header h1,
.page-header h2 {
    margin: 0;
    color: #333;
}

/* 修改密码表单 */
.change-password-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.change-password-form .form-group {
    margin-bottom: 1.5rem;
}

.change-password-form label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.change-password-form .form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .login-container {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .table-container {
        font-size: 14px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
}

/* 工具类 */
.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.25rem; }
.p-2 { padding: 0.5rem; }
.p-3 { padding: 1rem; }
.p-4 { padding: 1.5rem; }
.p-5 { padding: 3rem; }

/* 动画效果 */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

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

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

.empty-state p {
    font-size: 16px;
    margin-bottom: 0;
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 高级动画效果 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* 高级过渡效果 */
.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.4s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* 悬停效果增强 */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.hover-scale {
    transition: transform 0.2s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* 卡片容器增强 */
.card-container {
    position: relative;
    overflow: hidden;
}

.card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: 1;
}

.card-container:hover::before {
    left: 100%;
}

/* 高级按钮效果 */
.btn-advanced {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.btn-advanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-advanced:hover::before {
    width: 300px;
    height: 300px;
}

/* 进度条动画 */
.progress-bar {
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 9999px;
    height: 8px;
    overflow: hidden;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: progressShine 2s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 通知提示动画 */
.notification {
    animation: slideInRight 0.3s ease-out;
}

.notification.success {
    border-left: 4px solid var(--success-color);
}

.notification.error {
    border-left: 4px solid var(--danger-color);
}

.notification.warning {
    border-left: 4px solid var(--warning-color);
}

/* 数据可视化增强 */
.stat-card {
    background: white;
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: var(--neutral-600);
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.stat-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.stat-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* 面包屑导航 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.breadcrumb-item {
    color: var(--neutral-500);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb-item::after {
    content: '›';
    color: var(--neutral-400);
    font-weight: 300;
}

.breadcrumb-item:last-child {
    color: var(--neutral-700);
    font-weight: 600;
}

.breadcrumb-item:last-child::after {
    display: none;
}

/* 标签页样式 */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--neutral-200);
    margin-bottom: 2rem;
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    padding: 0 1rem;
}

.tab {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--neutral-600);
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.tab:hover {
    color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.05);
}

.tab.active {
    color: var(--primary-color);
    background-color: white;
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* 搜索框增强 */
.search-container {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    padding-left: 3rem;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--neutral-200);
    transition: all 0.2s ease;
    background: white;
}

.search-input:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--neutral-400);
    font-size: 1.1rem;
}

/* 过滤器工具栏 */
.filter-toolbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--neutral-200);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.filter-label {
    font-weight: 500;
    color: var(--neutral-700);
    font-size: 0.9rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--border-radius-md);
    font-size: 0.9rem;
    background: white;
    min-width: 120px;
}

/* 高级分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 2rem 0;
    padding: 1rem;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--neutral-300);
    background: white;
    color: var(--neutral-600);
    text-decoration: none;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination-btn:hover {
    background-color: var(--neutral-50);
    border-color: var(--primary-light);
    color: var(--primary-color);
}

.pagination-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

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

/* 高级间距系统 */
.section-spacing {
    margin: 4rem 0;
    padding: 0 0;
}

.section-spacing-lg {
    margin: 6rem 0;
    padding: 0 0;
}

.section-spacing-sm {
    margin: 2rem 0;
    padding: 0 0;
}

.content-block {
    padding: 3rem 0;
    position: relative;
}

.content-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
}

/* 视觉层次增强 */
.visual-hierarchy {
    position: relative;
}

.visual-hierarchy .primary-content {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    padding: 3rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.visual-hierarchy .secondary-content {
    background: var(--neutral-50);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--neutral-200);
    padding: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.visual-hierarchy .tertiary-content {
    background: white;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--neutral-200);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* 卡片分层设计 */
.card-hierarchy {
    position: relative;
}

.card-hierarchy .card-primary {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--neutral-200);
    padding: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 3;
}

.card-hierarchy .card-secondary {
    background: white;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    padding: 2rem;
    margin-left: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.card-hierarchy .card-tertiary {
    background: var(--neutral-50);
    border-radius: var(--border-radius-md);
    border: 1px solid var(--neutral-200);
    padding: 1.5rem;
    margin-left: 4rem;
    position: relative;
    z-index: 1;
}

/* 专业排版系统 */
.professional-typography {
    line-height: 1.7;
    color: var(--neutral-700);
}

.professional-typography h1,
.professional-typography h2,
.professional-typography h3,
.professional-typography h4,
.professional-typography h5,
.professional-typography h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
    position: relative;
}

.professional-typography h1 {
    font-size: 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
}

.professional-typography h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.professional-typography h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.professional-typography h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    margin-right: 0.75rem;
    vertical-align: middle;
    border-radius: 2px;
}

.professional-typography p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.professional-typography ul,
.professional-typography ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.professional-typography li {
    margin-bottom: 0.75rem;
    position: relative;
}

.professional-typography li::marker {
    color: var(--primary-color);
}

/* 网格系统增强 */
.grid-system {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.grid-auto {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

/* 浮动标签和高级表单 */
.floating-label {
    position: relative;
}

.floating-label .form-control {
    padding: 1.5rem 1rem 0.5rem;
    border: 2px solid var(--neutral-300);
    border-radius: var(--border-radius-lg);
    background: white;
    transition: all 0.2s ease;
}

.floating-label .form-control:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.floating-label .form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: var(--neutral-500);
    font-size: 1rem;
    transition: all 0.2s ease;
    pointer-events: none;
    background: white;
    padding: 0 0.5rem;
}

.floating-label .form-control:focus + .form-label,
.floating-label .form-control:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* 高级表单验证状态 */
.form-control.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.valid-feedback {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invalid-feedback {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* 侧边栏导航增强 */
.sidebar-nav {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    padding: 1.5rem 0;
    margin-bottom: 2rem;
}

.sidebar-nav .nav-header {
    padding: 0 1.5rem 1rem;
    border-bottom: 1px solid var(--neutral-200);
    margin-bottom: 1rem;
}

.sidebar-nav .nav-header h4 {
    margin: 0;
    color: var(--neutral-800);
    font-weight: 600;
    font-size: 1.1rem;
}

.sidebar-nav .nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav .nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: var(--neutral-600);
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    font-weight: 500;
}

.sidebar-nav .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    transition: width 0.2s ease;
}

.sidebar-nav .nav-link:hover {
    background-color: var(--neutral-50);
    color: var(--primary-color);
}

.sidebar-nav .nav-link:hover::before {
    width: 3px;
}

.sidebar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    box-shadow: var(--shadow-sm);
}

.sidebar-nav .nav-link.active::before {
    width: 3px;
    background: rgba(255, 255, 255, 0.3);
}

/* 步骤指示器 */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    padding: 0 1rem;
}

.step {
    display: flex;
    align-items: center;
    position: relative;
}

.step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 100px;
    height: 2px;
    background: var(--neutral-300);
    transform: translateY(-50%);
    z-index: 1;
}

.step:last-child::after {
    display: none;
}

.step.completed::after {
    background: var(--success-color);
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--neutral-300);
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    margin-right: 1rem;
    position: relative;
    z-index: 2;
    transition: all 0.2s ease;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step.active .step-number {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.step-label {
    font-weight: 500;
    color: var(--neutral-600);
    font-size: 0.95rem;
}

.step.completed .step-label {
    color: var(--success-color);
}

.step.active .step-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* 高级工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--neutral-800);
    color: white;
    text-align: center;
    border-radius: var(--border-radius-md);
    padding: 0.75rem 1rem;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.875rem;
    line-height: 1.4;
    box-shadow: var(--shadow-lg);
}

.tooltip .tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--neutral-800) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* 专业仪表板布局 */
.dashboard-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    min-height: calc(100vh - 100px);
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    padding: 2rem 0;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.dashboard-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.dashboard-header {
    background: white;
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--neutral-200);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.dashboard-content {
    display: grid;
    gap: 2rem;
}

/* 高级移动端响应式设计 */
@media (max-width: 1200px) {
    .container {
        padding: 0 15px;
    }
    
    .dashboard-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-sidebar {
        position: relative;
        top: 0;
        order: 2;
    }
    
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 992px) {
    .login-container {
        margin: 15px;
        padding: 30px 25px;
        max-width: 420px;
    }
    
    .visual-hierarchy .card-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .card-hierarchy .card-secondary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .card-hierarchy .card-tertiary {
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step::after {
        display: none;
    }
    
    .grid-3 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    body {
        font-size: 15px;
        line-height: 1.6;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .login-container {
        margin: 10px;
        padding: 25px 20px;
    }
    
    .login-box h2 {
        font-size: 22px;
        margin-bottom: 24px;
    }
    
    .login-logo {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .btn {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-lg {
        min-height: 48px;
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-bottom: 12px;
    }
    
    .table-container {
        font-size: 13px;
    }
    
    .table th,
    .table td {
        padding: 12px 10px;
    }
    
    .balance-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .balance-card {
        padding: 2rem 1.5rem;
    }
    
    .balance-amount {
        font-size: 2.25rem;
    }
    
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-auto {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .filter-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        padding: 1rem;
    }
    
    .filter-group {
        justify-content: space-between;
    }
    
    .professional-typography h1 {
        font-size: 2rem;
    }
    
    .professional-typography h2 {
        font-size: 1.75rem;
    }
    
    .professional-typography h3 {
        font-size: 1.375rem;
    }
    
    .content-block {
        padding: 2rem 0;
    }
    
    .section-spacing {
        margin: 3rem 0;
    }
    
    .section-spacing-lg {
        margin: 4rem 0;
    }
    
    .section-spacing-sm {
        margin: 1.5rem 0;
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .login-container {
        margin: 5px;
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-control {
        padding: 11px 12px;
        font-size: 14px;
    }
    
    .btn {
        min-height: 42px;
        padding: 9px 16px;
        font-size: 13px;
    }
    
    .btn-sm {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 12px;
    }
    
    .btn-lg {
        min-height: 46px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .balance-card {
        padding: 1.5rem 1rem;
    }
    
    .balance-amount {
        font-size: 2rem;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .table-actions .btn {
        padding: 5px 10px;
        font-size: 11px;
        min-height: 30px;
    }
    
    .modal-content {
        width: 98%;
        margin: 2% auto;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .modal-header h3 {
        font-size: 16px;
    }
    
    .alert {
        padding: 12px 16px;
        margin-bottom: 18px;
        font-size: 13px;
    }
    
    .status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .professional-typography h1 {
        font-size: 1.75rem;
    }
    
    .professional-typography h2 {
        font-size: 1.5rem;
    }
    
    .professional-typography h3 {
        font-size: 1.25rem;
    }
    
    .professional-typography p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .content-block {
        padding: 1.5rem 0;
    }
    
    .section-spacing {
        margin: 2rem 0;
    }
    
    .section-spacing-lg {
        margin: 3rem 0;
    }
    
    .section-spacing-sm {
        margin: 1rem 0;
    }
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .card-container:hover::before {
        left: -100%;
    }
    
    .hover-lift:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    .payment-method:hover {
        transform: none;
        border-color: var(--neutral-200);
        background: white;
        box-shadow: none;
    }
    
    .balance-card:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    .account-card:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    .table tbody tr:hover {
        background-color: transparent;
    }
    
    .sidebar-nav .nav-link:hover {
        background-color: transparent;
        color: var(--neutral-600);
    }
    
    .user-sidebar a:hover {
        background-color: transparent;
        color: var(--neutral-600);
        border-left-color: transparent;
    }
    
    .user-sidebar a:hover::before {
        width: 0;
    }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .btn::before,
    .modal-content,
    .card-container::before {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* 深色模式支持（预留） */
@media (prefers-color-scheme: dark) {
    :root {
        --neutral-50: #1F2937;
        --neutral-100: #374151;
        --neutral-200: #4B5563;
        --neutral-300: #6B7280;
        --neutral-400: #9CA3AF;
        --neutral-500: #D1D5DB;
        --neutral-600: #E5E7EB;
        --neutral-700: #F3F4F6;
        --neutral-800: #F9FAFB;
        --neutral-900: #FFFFFF;
    }
}

/* 减少动画效果（用户偏好） */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 移动端优化工具类 */
.mobile-stack {
    flex-direction: column;
}

.mobile-full-width {
    width: 100%;
}

.mobile-center {
    text-align: center;
}

.mobile-hide {
    display: none;
}

.mobile-show {
    display: block;
}

/* 移动端专用间距 */
.mobile-mt-0 { margin-top: 0; }
.mobile-mt-1 { margin-top: 0.25rem; }
.mobile-mt-2 { margin-top: 0.5rem; }
.mobile-mt-3 { margin-top: 1rem; }
.mobile-mt-4 { margin-top: 1.5rem; }
.mobile-mt-5 { margin-top: 3rem; }

.mobile-mb-0 { margin-bottom: 0; }
.mobile-mb-1 { margin-bottom: 0.25rem; }
.mobile-mb-2 { margin-bottom: 0.5rem; }
.mobile-mb-3 { margin-bottom: 1rem; }
.mobile-mb-4 { margin-bottom: 1.5rem; }
.mobile-mb-5 { margin-bottom: 3rem; }

.mobile-p-0 { padding: 0; }
.mobile-p-1 { padding: 0.25rem; }
.mobile-p-2 { padding: 0.5rem; }
.mobile-p-3 { padding: 1rem; }
.mobile-p-4 { padding: 1.5rem; }
.mobile-p-5 { padding: 3rem; }

/* 移动端专用字体大小 */
.mobile-text-xs { font-size: 0.7rem; }
.mobile-text-sm { font-size: 0.8rem; }
.mobile-text-base { font-size: 0.9rem; }
.mobile-text-lg { font-size: 1rem; }
.mobile-text-xl { font-size: 1.1rem; }

/* 移动端滚动优化 */
.mobile-scroll {
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 移动端安全区域支持 */
@supports (padding: max(0px)) {
    .mobile-safe-area {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .mobile-safe-area-top {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
    
    .mobile-safe-area-bottom {
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* 移动端导航优化 */
@media (max-width: 768px) {
    .mobile-nav-toggle {
        display: block;
        background: none;
        border: none;
        color: var(--neutral-600);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 0.5rem;
        border-radius: var(--border-radius-md);
        transition: background-color 0.2s ease;
    }
    
    .mobile-nav-toggle:hover {
        background-color: var(--neutral-100);
    }
    
    .mobile-nav {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 1000;
        padding: 2rem;
        overflow-y: auto;
    }
    
    .mobile-nav.open {
        display: block;
        animation: slideInRight 0.3s ease-out;
    }
    
    .mobile-nav-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--neutral-400);
        cursor: pointer;
        padding: 0.5rem;
        border-radius: var(--border-radius-md);
    }
    
    .mobile-nav-close:hover {
        background-color: var(--neutral-100);
        color: var(--neutral-600);
    }
}