/* ===== 全局重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    --secondary-gradient: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --accent-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    --sidebar-bg: linear-gradient(180deg, #1e1e3f 0%, #16213e 50%, #0f3460 100%);
    --card-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(20px);
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.15);
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
}

/* 侧边栏/模态框打开时禁止body滚动 */
body.sidebar-open,
body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* ===== 登录页面样式 ===== */
.login-page {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before,
.login-page::after {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(60px);
}

.login-page::before {
    top: -50%;
    right: -20%;
    animation: pulse 6s ease-in-out infinite;
}

.login-page::after {
    bottom: -30%;
    left: -10%;
    animation: pulse 8s ease-in-out infinite reverse;
}

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

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 55px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.login-header .logo-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.4);
    position: relative;
    overflow: hidden;
}

.login-header .logo-icon i {
    font-size: 48px;
    color: #fff;
}

.login-header h1 {
    font-size: 28px;
    color: #1f2937;
    margin-bottom: 12px;
    font-weight: 700;
}

.login-header p {
    color: #6b7280;
    font-size: 15px;
}

/* ===== 主布局结构 ===== */
.wrapper {
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.wrapper::before {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    color: #fff;
    padding: 24px 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0;
    top: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    box-shadow: 
        0 0 40px rgba(0, 0, 0, 0.3),
        0 0 80px rgba(37, 99, 235, 0.1);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    margin-bottom: 32px;
    font-size: 19px;
    font-weight: 700;
    position: relative;
}

.logo::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.3), transparent);
}

.logo i {
    font-size: 32px;
    margin-right: 12px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(0, 212, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 15px rgba(0, 212, 255, 0.8)); }
}

.sidebar nav {
    flex: 1;
    overflow-y: auto;
}

.menu ul {
    list-style: none;
    padding: 0 12px;
}

.menu li {
    margin-bottom: 6px;
}

.menu a {
    display: flex;
    align-items: center;
    padding: 15px 18px;
    color: #b8c5d6;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}

.menu a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.menu a:hover::before {
    left: 100%;
}

.menu a:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #fff;
    transform: translateX(6px);
}

.menu li.active a {
    background: var(--secondary-gradient);
    color: #fff;
    box-shadow: 
        0 4px 20px rgba(0, 212, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateX(4px);
}

.menu li.active a:hover {
    transform: translateX(6px);
}

.menu a i {
    margin-right: 14px;
    width: 22px;
    font-size: 17px;
    transition: transform 0.3s ease;
}

.menu a:hover i {
    transform: scale(1.1);
}

.main-content {
    flex: 1;
    margin-left: 260px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 30px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.header-left h1 {
    font-size: 22px;
    color: #1f2937;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left h1::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.notifications {
    position: relative;
    font-size: 22px;
    cursor: pointer;
    color: #6b7280;
    padding: 10px;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(37, 99, 235, 0.05);
}

.notifications:hover {
    background: rgba(37, 99, 235, 0.15);
    color: #2563eb;
    transform: translateY(-2px);
}

.badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

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

.user-avatar {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 24px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(37, 99, 235, 0.05);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.user-avatar:hover {
    background: rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.15);
}

.user-avatar i {
    font-size: 32px;
    margin-right: 10px;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-avatar span {
    font-weight: 600;
    color: #374151;
    font-size: 15px;
}

.user-avatar .arrow-down {
    font-size: 12px;
    color: #9ca3af;
    margin-left: 6px;
    transition: transform 0.25s;
}

.user-avatar:hover .arrow-down {
    color: #374151;
}

/* ===== 通知弹窗 ===== */
.notify-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 60px;
    margin-top: 10px;
    width: 380px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
    z-index: 100;
    overflow: hidden;
}

.notify-popup.show {
    display: block;
    animation: dropdownIn 0.2s ease;
}

.notify-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
}

.notify-header h4 {
    margin: 0;
    font-size: 15px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notify-header h4 i { color: #f59e0b; font-size: 16px; }

.mark-all-read {
    background: none;
    border: none;
    color: #2563eb;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
}

.mark-all-read:hover { text-decoration: underline; }

.notify-list { max-height: 360px; overflow-y: auto; }

.notify-item {
    display: flex;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.2s;
}

.notify-item:hover { background: #f8fafc; }
.notify-item.unread { background: #f0f7ff; }
.notify-item.unread:hover { background: #e0efff; }

.notify-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.notify-icon.warning { background: #fef3c7; color: #d97706; }
.notify-icon.info { background: #dbeafe; color: #2563eb; }
.notify-icon.danger { background: #fee2e2; color: #dc2626; }
.notify-icon.success { background: #dcfce7; color: #16a34a; }

.notify-body { flex: 1; min-width: 0; }
.notify-body p { margin: 0 0 4px; font-size: 14px; color: #334155; line-height: 1.5; }
.notify-time { font-size: 12px; color: #9ca3af; }

/* ===== 用户下拉菜单 ===== */
.user-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    border: 1px solid #f1f5f9;
    z-index: 100;
    overflow: hidden;
}

.user-dropdown.show {
    display: block;
    animation: dropdownIn 0.2s ease;
}

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

.dropdown-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}

.dropdown-header i {
    font-size: 40px;
    color: #2563eb;
}

.dropdown-header strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 2px;
}

.dropdown-header span {
    font-size: 13px;
    color: #9ca3af;
}

.dropdown-divider {
    height: 1px;
    background: #f1f5f9;
    margin: 0 16px;
}

.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.2s;
    font-weight: 500;
}

.user-dropdown a i { width: 18px; text-align: center; color: #9ca3af; font-size: 15px; }

.user-dropdown a:hover {
    background: #f8fafc;
    color: #1e293b;
}

.user-dropdown a:hover i { color: #2563eb; }

.user-dropdown .logout-link { color: #ef4444; }
.user-dropdown .logout-link i { color: #ef4444; }
.user-dropdown .logout-link:hover { background: #fef2f2; }

/* ===== 修改密码弹窗 ===== */
.change-pwd-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.change-pwd-modal.show {
    display: flex;
    animation: fadeIn 0.2s ease;
}

.change-pwd-modal .modal-box {
    background: #fff;
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.change-pwd-modal .modal-header {
    padding: 20px 24px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
}

.change-pwd-modal .modal-header h3 {
    margin: 0;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.change-pwd-modal .modal-body {
    padding: 24px;
}

.change-pwd-modal .modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.change-pwd-modal .modal-body input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.change-pwd-modal .modal-body input:focus {
    outline: none;
    border-color: #2563eb;
}

.change-pwd-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    background: #f8f9fa;
}

.change-pwd-modal .modal-footer button {
    padding: 10px 24px;
    border-radius: 10px;
    border: none;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.change-pwd-modal .btn-cancel {
    background: #e5e7eb;
    color: #6b7280;
}

.change-pwd-modal .btn-cancel:hover { background: #d1d5db; }

.change-pwd-modal .btn-save {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.change-pwd-modal .btn-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37,99,235,0.4);
}

/* ===== 内容区域 ===== */
.content-section {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    position: relative;
}

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

.content-section::before {
    content: '';
    position: fixed;
    top: 150px;
    right: 50px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ===== 统计卡片 ===== */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card.blue::before { background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%); }
.stat-card.green::before { background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%); }
.stat-card.orange::before { background: radial-gradient(circle, rgba(245, 158, 11, 0.15) 0%, transparent 70%); }
.stat-card.purple::before { background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%); }

.stat-card:hover::before {
    opacity: 1;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    border-radius: 0 5px 5px 0;
}

.stat-card.blue::after { background: linear-gradient(180deg, #2563eb 0%, #1e40af 100%); }
.stat-card.green::after { background: linear-gradient(180deg, #10b981 0%, #059669 100%); }
.stat-card.orange::after { background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%); }
.stat-card.purple::after { background: linear-gradient(180deg, #6366f1 0%, #4f46e5 100%); }

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
    margin-right: 22px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.stat-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.stat-icon:hover::before {
    left: 100%;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon.blue { background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4); }
.stat-icon.green { background: linear-gradient(135deg, #10b981 0%, #059669 100%); box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4); }
.stat-icon.orange { background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); }
.stat-icon.purple { background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4); }

.stat-info {
    flex: 1;
    position: relative;
}

.stat-info h3 {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 36px;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1.5px;
    position: relative;
}

.stat-value::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--primary-gradient);
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover .stat-value::after {
    opacity: 1;
}

/* ===== 仪表板网格 ===== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 28px;
}

.recent-orders, .stock-alerts {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.recent-orders::before, .stock-alerts::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.recent-orders:hover::before, .stock-alerts:hover::before {
    opacity: 1;
}

.recent-orders h2, .stock-alerts h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: #1f2937;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recent-orders h2::before, .stock-alerts h2::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.recent-orders h2 i, .stock-alerts h2 i {
    color: #2563eb;
    font-size: 18px;
}

/* ===== 数据表格 ===== */
.data-table, .order-table, .inventory-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.data-table thead, .order-table thead, .inventory-table thead {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.08) 0%, transparent 100%);
}

.data-table th, .order-table th, .inventory-table th {
    padding: 20px 18px;
    text-align: left;
    font-weight: 700;
    color: #4b5563;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.data-table th::after, .order-table th::after, .inventory-table th::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.data-table td, .order-table td, .inventory-table td {
    padding: 18px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    vertical-align: middle;
    transition: all 0.2s ease;
}

.data-table tr:hover td, .order-table tr:hover td, .inventory-table tr:hover td {
    background: rgba(37, 99, 235, 0.06);
    color: #1f2937;
}

.data-table tr:last-child td, .order-table tr:last-child td, .inventory-table tr:last-child td {
    border-bottom: none;
}

.data-table tbody tr, .order-table tbody tr, .inventory-table tbody tr {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.data-table tbody tr:hover, .order-table tbody tr:hover, .inventory-table tbody tr:hover {
    transform: scale(1.002);
}

/* ===== 状态标签 ===== */
.status {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

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

.status:hover::before {
    left: 100%;
}

.status:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.status.pending { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #92400e; border-color: rgba(251, 191, 36, 0.3); }
.status.shipped { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); color: #1e40af; border-color: rgba(59, 130, 246, 0.3); }
.status.delivered { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: rgba(16, 185, 129, 0.3); }
.status.active { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: rgba(16, 185, 129, 0.3); }
.status.inactive { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-color: rgba(239, 68, 68, 0.3); }
.status.normal { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: rgba(16, 185, 129, 0.3); }
.status.low { background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); color: #92400e; border-color: rgba(251, 191, 36, 0.3); }
.status.out { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-color: rgba(239, 68, 68, 0.3); }
.status.draft { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); color: #6b7280; border-color: rgba(156, 163, 175, 0.3); }
.status.arrived { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); color: #0369a1; border-color: rgba(56, 189, 248, 0.3); }
.status.verified { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: rgba(16, 185, 129, 0.3); }
.status.exception { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); color: #991b1b; border-color: rgba(239, 68, 68, 0.3); }
.status.confirmed { background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%); color: #166534; border-color: rgba(16, 185, 129, 0.3); }
.status.cancelled { background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%); color: #6b7280; border-color: rgba(156, 163, 175, 0.3); }

/* ===== 库存预警列表 ===== */
#alertList {
    list-style: none;
}

#alertList li {
    padding: 14px 16px;
    border-left: 4px solid #ef4444;
    background-color: #fef2f2;
    margin-bottom: 12px;
    border-radius: 0 10px 10px 0;
    transition: transform 0.3s;
}

#alertList li:hover {
    transform: translateX(4px);
}

#alertList li:last-child {
    margin-bottom: 0;
}

#alertList li span {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ===== 章节头部 ===== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    font-size: 22px;
    color: #1f2937;
    font-weight: 600;
}

.section-header h2 i {
    margin-right: 10px;
    color: #2563eb;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-actions a {
    text-decoration: none;
}

.actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== 按钮样式 ===== */
.btn-primary {
    background: var(--secondary-gradient);
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(0, 212, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 10px 30px rgba(0, 212, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

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

.btn-primary i {
    margin-right: 10px;
    font-size: 16px;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    color: #4b5563;
    border: 1px solid rgba(37, 99, 235, 0.15);
    padding: 14px 28px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}

.btn-secondary:hover {
    background: rgba(37, 99, 235, 0.08);
    color: #374151;
    border-color: rgba(37, 99, 235, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* ===== 操作按钮 ===== */
.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 13px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: 6px;
}

.action-btn:hover {
    transform: translateY(-1px);
}

.action-btn.edit {
    color: #00d4ff;
}

.action-btn.edit:hover {
    background-color: #eff6ff;
}

.action-btn.delete {
    color: #ef4444;
}

.action-btn.delete:hover {
    background-color: #fef2f2;
}

.action-btn.view {
    color: #10b981;
}

.action-btn.view:hover {
    background-color: #ecfdf5;
}

.action-btn.confirm {
    color: #10b981;
}

.action-btn.transfer {
    color: #f59e0b;
}

.action-btn.replenish {
    color: #6366f1;
}

/* ===== 筛选栏 ===== */
.filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input, .filter-bar select {
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.filter-bar input:focus, .filter-bar select:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.filter-bar input {
    flex: 1;
    min-width: 220px;
}

.filter-bar select {
    min-width: 160px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #00d4ff;
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

/* ===== 模态框 ===== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(6px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal-overlay.show {
    display: flex;
    animation: overlayIn 0.2s ease;
}

@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: #fff;
    border-radius: 20px;
    width: 92%;
    max-width: 520px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow:
        0 0 0 1px rgba(0,0,0,0.04),
        0 4px 24px rgba(0,0,0,0.08),
        0 20px 60px rgba(0,0,0,0.15);
    animation: modalIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(24px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 28px;
    background: #1e293b;
    color: #fff;
    flex-shrink: 0;
}

.modal-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h3 i { color: #60a5fa; font-size: 18px; }

.modal-header .close {
    cursor: pointer;
    font-size: 22px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    transition: all 0.2s;
    line-height: 1;
}

.modal-header .close:hover {
    color: #fff;
    background: rgba(255,255,255,0.15);
}

.modal-body {
    padding: 28px;
    overflow-y: auto;
    flex: 1;
}

.modal-body label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.modal-body label::after {
    content: attr(data-required);
    color: #ef4444;
    margin-left: 4px;
    font-weight: 400;
}

.modal-body input,
.modal-body select,
.modal-body textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
    transition: all 0.25s ease;
    outline: none;
    font-family: inherit;
}

.modal-body input:hover,
.modal-body select:hover,
.modal-body textarea:hover {
    border-color: #cbd5e0;
}

.modal-body input:focus,
.modal-body select:focus,
.modal-body textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.modal-body input[readonly] {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.modal-body select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.modal-body textarea {
     min-height: 100px;
     resize: vertical;
 }

.modal-body .form-group {
    margin-bottom: 4px;
    position: relative;
}

.modal-body .form-group:last-child { margin-bottom: 0; }

.modal-body .form-group label {
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.modal-body .required-mark {
    color: #ef4444;
    margin-left: 2px;
    font-weight: 600;
}

.modal-body .form-group input,
.modal-body .form-group select,
.modal-body .form-group textarea {
    margin-bottom: 0;
}

.checkbox-group { margin-top: 4px; }

.checkbox-label {
    display: flex !important;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: #374151;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    padding: 0;
    border-radius: 6px;
    accent-color: #2563eb;
    cursor: pointer;
    margin: 0;
}

.modal-footer {
    padding: 18px 28px;
    background: #f8fafc;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.modal-footer button {
    padding: 12px 28px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.modal-footer .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

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

.modal-footer .btn-secondary {
    background: #fff;
    color: #4b5563;
    border: 1px solid #e2e8f0;
}

.modal-footer .btn-secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e0;
}

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

.page-btn {
    padding: 10px 18px;
    border: 1px solid #e5e7eb;
    background-color: #fff;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.page-btn:hover:not(:disabled) {
    background-color: #f3f4f6;
    border-color: #00d4ff;
}

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

.page-btn.active {
    background-color: #00d4ff;
    color: #fff;
    border-color: #00d4ff;
}

#pageInfo {
    font-size: 14px;
    color: #6b7280;
    margin: 0 10px;
}

/* ===== 标签页 ===== */
.tabs {
    display: flex;
    background: #fff;
    padding: 6px;
    border-radius: 14px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

.tab-btn:hover:not(.active) {
    background: #f8f9fa;
}

.tab-btn.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.tab-content {
    display: none;
}

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

/* ===== 响应式布局 ===== */
@media (max-width: 1200px) {
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* 已迁移到文件尾部的移动端全面兼容样式块 */
    /* 保留仅此处使用的样式 */
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===== 订单导入页面样式 ===== */
.upload-container {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 50%, #f093fb 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    filter: blur(30px);
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 70px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.upload-area:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.02);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.25);
}

.upload-area.highlight {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.35);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 50px rgba(255, 255, 255, 0.35); }
    50% { box-shadow: 0 0 70px rgba(255, 255, 255, 0.5); }
}

.upload-area i { font-size: 72px; color: #fff; margin-bottom: 24px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }
.upload-area p { color: #fff; font-size: 19px; margin: 0 0 10px 0; font-weight: 600; }
.upload-area p:last-child { font-size: 15px; opacity: 0.9; font-weight: normal; }

.file-info {
    background: #fff;
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #4CAF50;
}

.file-info .file-name { display: flex; align-items: center; gap: 16px; }
.file-info .file-name i { font-size: 32px; color: #4CAF50; }
.file-info .file-name span { font-size: 16px; font-weight: 600; color: #2d3748; }
.file-info .badge {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
}

.source-selector {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.source-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    padding: 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #e2e8f0;
    background: #fafbfc;
}

.source-option:hover { border-color: #cbd5e0; background: #fff; transform: translateY(-2px); }
.source-option.selected {
    background: linear-gradient(135deg, #f0f4ff, #fae8ff);
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
}

.source-option.selected span, .source-option.selected i { color: #2563eb; }
.source-option input[type="radio"] { width: 22px; height: 22px; cursor: pointer; accent-color: #2563eb; }
.source-option i { font-size: 24px; color: #94a3b8; }
.source-option span { font-size: 16px; font-weight: 600; color: #475569; }

.btn-row { display: flex; gap: 16px; align-items: center; margin-bottom: 24px; }

.sample-data {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid #fde68a;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.sample-data h3 { margin: 0 0 12px 0; color: #92400e; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.sample-data h3 i { font-size: 20px; }
.sample-data p { margin: 0 0 18px 0; color: #b45309; font-size: 15px; line-height: 1.6; }

.order-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 28px; }

.summary-card {
    background: #fff;
    padding: 28px;
    border-radius: 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.summary-card:hover { transform: translateY(-6px); box-shadow: 0 12px 35px rgba(0,0,0,0.12); }

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.summary-card.success::before { background: linear-gradient(180deg, #10b981, #059669); }
.summary-card.warning::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.summary-card.error::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.summary-card.info::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }

.summary-card h4 { margin: 0 0 14px 0; color: #64748b; font-size: 14px; font-weight: 500; }
.summary-card .icon { font-size: 32px; margin-bottom: 16px; transition: transform 0.3s ease; }
.summary-card:hover .icon { transform: scale(1.15); }

.summary-card.success .icon { color: #10b981; }
.summary-card.warning .icon { color: #f59e0b; }
.summary-card.error .icon { color: #ef4444; }
.summary-card.info .icon { color: #3b82f6; }

.summary-card p { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -1px; }

.summary-card.success p { color: #10b981; }
.summary-card.error p { color: #ef4444; }
.summary-card.warning p { color: #f59e0b; }
.summary-card.info p { color: #3b82f6; }

.status-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-allocated { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.status-exception { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.status-confirmed { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }
.status-pending_transfer { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.status-pending_replenish { background: linear-gradient(135deg, #fae8ff, #f5d0fe); color: #9333ea; }

.action-btn.transfer { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
.action-btn.replenish { background: linear-gradient(135deg, #9333ea, #7e22ce); color: white; box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4); }
.action-btn.cancel { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); }
.action-btn.confirm { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }

.confirm-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #fae8ff 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    border: 1px solid #e0e7ff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.1);
}

.confirm-bar span { font-size: 16px; font-weight: 600; color: #374151; }
.confirm-bar span b { color: #2563eb; font-size: 24px; font-weight: 700; }

.confirm-bar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 36px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.confirm-bar button::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;
}

.confirm-bar button:hover:not(:disabled)::before { left: 100%; }
.confirm-bar button:hover:not(:disabled) { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(16, 185, 129, 0.5); }
.confirm-bar button:disabled {
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    box-shadow: none;
    cursor: not-allowed;
}

.exception-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 1px solid #fecaca;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.exception-banner i { font-size: 24px; color: #dc2626; }
.exception-banner .status-badge {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 6px 16px;
    font-weight: 600;
}
.exception-banner span { color: #991b1b; font-size: 15px; font-weight: 500; }

.select-all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.select-all input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.select-all label { font-size: 14px; font-weight: 500; color: #374151; cursor: pointer; }

.checkbox-cell { width: 40px; text-align: center; }

/* ===== 异常处理页面样式 ===== */
.exception-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.exception-stat {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.exception-stat i {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
}

.exception-stat:first-child i { background: linear-gradient(135deg, #f59e0b, #d97706); }
.exception-stat:last-child i { background: linear-gradient(135deg, #10b981, #059669); }

.exception-stat .count {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.exception-stat .label {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* ===== 报表页面样式 ===== */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.report-card {
    background: #fff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
}

.report-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.18);
    border-color: #2563eb;
}

.report-card i {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
    transition: transform 0.3s ease;
}

.report-card:hover i { transform: scale(1.1); }

.report-card h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.report-card p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.charts-section {
    margin-top: 24px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-row .full-width {
    grid-column: span 2;
}

.chart-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.chart-card h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 20px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-card h3 i { color: #2563eb; }

.chart-placeholder {
    height: 280px;
    position: relative;
}

/* ===== 系统设置页面样式 ===== */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.setting-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.setting-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.setting-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid #e2e8f0;
}

.setting-header i {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.setting-header h3 {
    font-size: 17px;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.setting-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.setting-content {
    padding: 24px;
}

.setting-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.setting-summary span {
    font-size: 14px;
    color: #6b7280;
}

.setting-summary .value {
    font-size: 28px;
    font-weight: 700;
    color: #2563eb;
}

.system-info {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.system-info h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 24px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.system-info h3 i { color: #2563eb; }

.info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 12px;
}

.info-item .label {
    font-size: 14px;
    color: #6b7280;
}

.info-item .value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* ===== 额外增强样式 ===== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }

/* ===== 自定义滚动条 ===== */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #93c5fd, #60a5fa); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #a78bfa, #6366f1); }

/* ===== 选中文本样式 ===== */
::selection { background: rgba(37, 99, 235, 0.3); color: #1e1e3f; }
::-moz-selection { background: rgba(37, 99, 235, 0.3); color: #1e1e3f; }

/* ===== 页面入场动画 ===== */
.wrapper { animation: pageEnter 0.5s cubic-bezier(0.16, 1, 0.3, 1); }

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

/* ===== 内容区域过渡 ===== */
.content-section {
    animation: contentFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ===== Tab 组件（订单导入页） ===== */
.tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 24px;
    border: none;
    background: transparent;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn:hover:not(.active) {
    background: rgba(37, 99, 235, 0.06);
    color: #4b5563;
}

.tab-btn.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

.tab-content { display: none; }
.tab-content.active { display: block; animation: contentFadeIn 0.3s ease; }

/* ===== 上传区域（订单导入页） ===== */
.upload-container {
    background: var(--primary-gradient);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 24px;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.35);
    position: relative;
    overflow: hidden;
}

.upload-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    filter: blur(50px);
    animation: float 8s ease-in-out infinite;
}

.upload-container::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.1); }
}

.upload-area {
    border: 3px dashed rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    padding: 70px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.upload-area:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.015);
    box-shadow: 0 0 50px rgba(255, 255, 255, 0.25);
}

.upload-area i { font-size: 72px; color: #fff; margin-bottom: 24px; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.2)); }
.upload-area p { color: #fff; font-size: 18px; margin: 0 0 8px 0; font-weight: 600; }
.upload-area p:last-of-type { font-size: 14px; opacity: 0.85; font-weight: normal; }

/* ===== 文件信息卡片 ===== */
.file-info {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 22px 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-left: 4px solid #10b981;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: contentFadeIn 0.3s ease;
}

.file-info .file-name { display: flex; align-items: center; gap: 16px; }
.file-info .file-name i { font-size: 32px; color: #10b981; }
.file-info .file-name span { font-size: 16px; font-weight: 600; color: #1f2937; }

.file-info .badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

/* ===== 来源选择器 ===== */
.source-selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    padding: 24px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.source-option {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    padding: 20px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(226, 232, 240, 0.8);
    background: rgba(250, 251, 252, 0.6);
}

.source-option:hover {
    border-color: #cbd5e0;
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.source-option.selected {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(30, 64, 175, 0.08));
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
}

.source-option.selected span,
.source-option.selected i { color: #2563eb; }

.source-option input[type="radio"] { width: 22px; height: 22px; cursor: pointer; accent-color: #2563eb; }
.source-option i { font-size: 24px; color: #94a3b8; transition: color 0.3s; }
.source-option span { font-size: 16px; font-weight: 600; color: #475569; transition: color 0.3s; }

/* ===== 订单统计卡片 ===== */
.order-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

.summary-card {
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    padding: 28px;
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
}

.summary-card.success::before { background: linear-gradient(180deg, #10b981, #059669); }
.summary-card.warning::before { background: linear-gradient(180deg, #f59e0b, #d97706); }
.summary-card.error::before { background: linear-gradient(180deg, #ef4444, #dc2626); }
.summary-card.info::before { background: linear-gradient(180deg, #3b82f6, #2563eb); }

.summary-card h4 {
    margin: 0 0 14px 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.summary-card .icon {
    font-size: 32px;
    margin-bottom: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.summary-card:hover .icon { transform: scale(1.2) rotate(-5deg); }
.summary-card.success .icon { color: #10b981; }
.summary-card.warning .icon { color: #f59e0b; }
.summary-card.error .icon { color: #ef4444; }
.summary-card.info .icon { color: #3b82f6; }

.summary-card p {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -1px;
}

.summary-card.success p { color: #10b981; }
.summary-card.error p { color: #ef4444; }
.summary-card.warning p { color: #f59e0b; }
.summary-card.info p { color: #3b82f6; }

.summary-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
}

.summary-card.success::after { background: #10b981; }
.summary-card.warning::after { background: #f59e0b; }
.summary-card.error::after { background: #ef4444; }
.summary-card.info::after { background: #3b82f6; }

/* ===== 状态徽章（订单导入页） ===== */
.status-badge {
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

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

.status-allocated { background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: #1d4ed8; }
.status-exception { background: linear-gradient(135deg, #fee2e2, #fecaca); color: #dc2626; }
.status-confirmed { background: linear-gradient(135deg, #dcfce7, #bbf7d0); color: #16a34a; }
.status-pending_transfer { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #d97706; }
.status-pending_replenish { background: linear-gradient(135deg, #fae8ff, #f5d0fe); color: #9333ea; }

/* ===== 操作按钮（订单导入页专用） ===== */
.action-btn.transfer { background: linear-gradient(135deg, #f59e0b, #d97706); color: white; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4); }
.action-btn.replenish { background: linear-gradient(135deg, #9333ea, #7e22ce); color: white; box-shadow: 0 4px 14px rgba(147, 51, 234, 0.4); }
.action-btn.cancel { background: linear-gradient(135deg, #ef4444, #dc2626); color: white; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4); }
.action-btn.confirm { background: linear-gradient(135deg, #10b981, #059669); color: white; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4); }

/* ===== 确认操作栏 ===== */
.confirm-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f0f4ff 0%, #e0e7ff 50%, #fae8ff 100%);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.confirm-bar .info { display: flex; align-items: center; gap: 12px; }
.confirm-bar .info i { font-size: 28px; color: #2563eb; }
.confirm-bar .info span { font-size: 16px; font-weight: 600; color: #1e1e3f; }
.confirm-bar .info small { font-size: 13px; color: #6b7280; display: block; margin-top: 2px; }

/* ===== 样本数据提示 ===== */
.sample-data {
    margin-top: 32px;
    padding: 28px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.15);
}

.sample-data h3 {
    margin: 0 0 12px 0;
    color: #92400e;
    font-size: 17px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sample-data h3 i { font-size: 20px; }
.sample-data p { margin: 0 0 18px 0; color: #b45309; font-size: 15px; line-height: 1.6; }

/* ===== 表单元素增强 ===== */
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
    transition: all 0.2s ease;
}

select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ===== 通知徽章脉冲动画 ===== */
.notifications .badge {
    animation: badgePulse 2s ease-in-out infinite;
}

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

/* ===== 过滤栏样式 ===== */
.filter-bar {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: var(--card-bg);
    backdrop-filter: var(--glass-blur);
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-bar input,
.filter-bar select {
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: white;
    transition: all 0.2s ease;
    min-width: 180px;
}

.filter-bar select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
    padding-right: 36px;
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-bar .btn-primary {
    padding: 10px 20px;
    font-size: 14px;
    margin-left: auto;
}

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

.empty-state i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    opacity: 0.5;
}

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

/* ===== Loadin g 动画 ===== */
.loading-spinner {
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid rgba(37, 99, 235, 0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn-primary.loading .loading-spinner {
    margin-right: 8px;
}

/* ===== 响应式增强（已迁移到文件尾部统一管理） ===== */
/* 此处的响应式规则已合并到文件尾部的移动端全面兼容样式块 */

/* ===== 侧边栏文档菜单 ===== */
.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    margin: 12px 20px;
}

.menu-section-label {
    padding: 8px 20px 4px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.35);
    font-weight: 600;
    cursor: default;
    list-style: none;
}

.menu-docs {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-docs li a {
    padding: 10px 20px 10px 24px;
    display: flex;
    align-items: center;
    color: #b8c5d6;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    font-size: 14px;
}

.menu-docs li a:hover {
    background: rgba(0, 212, 255, 0.12);
    color: #fff;
    transform: translateX(6px);
}

.menu-docs li.active a {
    background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    color: #fff;
    box-shadow: 0 4px 20px rgba(0,212,255,0.35);
}

.menu-docs li a i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    margin-right: 10px;
}

/* ===== 侧边栏联系方式 ===== */
.sidebar-contact {
    padding: 16px 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    margin-top: auto;
}

.sidebar-contact .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.5);
    font-size: 12px;
    margin-bottom: 8px;
    transition: color 0.2s;
}

.sidebar-contact .contact-item:hover {
    color: rgba(255,255,255,0.8);
}

.sidebar-contact .contact-item i {
    width: 16px;
    font-size: 13px;
}

.sidebar-contact .contact-social {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.sidebar-contact .contact-social a {
    color: rgba(255,255,255,0.45);
    font-size: 18px;
    transition: all 0.2s;
}

.sidebar-contact .contact-social a:hover {
    color: #fff;
    transform: translateY(-2px);
}

.sidebar-contact .contact-social a .fa-whatsapp:hover { color: #25D366; }
.sidebar-contact .contact-social a .fa-line:hover { color: #00C300; }
.sidebar-contact .contact-social a .fa-facebook-messenger:hover { color: #0084FF; }
.sidebar-contact .contact-social a .fa-envelope:hover { color: #EA4335; }

/* ===== 表格响应式滚动 ===== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 20px;
}

.table-responsive::-webkit-scrollbar {
    height: 6px;
}

.table-responsive::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #93c5fd, #60a5fa);
    border-radius: 3px;
}

/* ===== 登录容器响应式 ===== */
@media (max-width: 480px) {
    .login-container {
        padding: 32px 24px;
    }
    
    .login-header .logo-icon {
        width: 72px;
        height: 72px;
    }
    
    .login-header .logo-icon i {
        font-size: 36px;
    }
    
    .login-header h1 {
        font-size: 22px;
    }
}

/* ===== Toast 通知系统 ===== */
.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 24px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    min-width: 320px;
    max-width: 420px;
    animation: toastSlideIn 0.4s cubic-bezier(0.16,1,0.3,1);
    border-left: 4px solid;
}

.toast.warning { border-left-color: #f59e0b; }
.toast.error { border-left-color: #ef4444; }
.toast.success { border-left-color: #10b981; }
.toast.info { border-left-color: #3b82f6; }

.toast i { font-size: 22px; }
.toast.warning i { color: #f59e0b; }
.toast.error i { color: #ef4444; }
.toast.success i { color: #10b981; }
.toast.info i { color: #3b82f6; }

.toast .toast-content { flex: 1; }
.toast .toast-content strong { display: block; font-size: 15px; color: #1f2937; margin-bottom: 2px; }
.toast .toast-content span { font-size: 13px; color: #6b7280; }

.toast .toast-close { background: none; border: none; color: #9ca3af; cursor: pointer; font-size: 18px; padding: 4px; }
.toast .toast-close:hover { color: #4b5563; }

@keyframes toastSlideIn {
    from { opacity: 0; transform: translateX(100%) scale(0.9); }
    to { opacity: 1; transform: translateX(0) scale(1); }
}

.toast.removing { animation: toastSlideOut 0.3s ease forwards; }

@keyframes toastSlideOut {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to { opacity: 0; transform: translateX(100%) scale(0.9); }
}

/* ===== 搜索计数器 ===== */
.search-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(37,99,235,0.08);
    border-radius: 20px;
    font-size: 13px;
    color: #6b7280;
    margin-left: auto;
}

.search-counter i { color: #2563eb; font-size: 12px; }
.search-counter strong { color: #2563eb; font-weight: 700; font-size: 15px; }

/* ===== 加载状态 ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.skeleton-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
    padding: 16px 0;
}

.skeleton-row .skeleton { height: 20px; }

.loading-overlay {
    position: relative;
}

.loading-overlay::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(2px);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.loading-overlay::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 40px; height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid rgba(37,99,235,0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 11;
}

/* ===== 表单验证样式 ===== */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.form-group.has-success input,
.form-group.has-success select,
.form-group.has-success textarea {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.1) !important;
}

.form-error-text {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 6px;
    padding-left: 4px;
}

.form-group.has-error .form-error-text { display: flex; align-items: center; gap: 4px; }

.form-group .required::after {
    content: '*';
    color: #ef4444;
    margin-left: 4px;
}

/* ===== Tooltip ===== */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: #1f2937;
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    border: 6px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* ===== 数量徽章 ===== */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
}

.count-badge.blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.count-badge.green { background: linear-gradient(135deg, #10b981, #059669); }
.count-badge.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.count-badge.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.count-badge.gray { background: linear-gradient(135deg, #9ca3af, #6b7280); }

/* ===== 页码增强 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid rgba(37,99,235,0.15);
    background: #fff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: rgba(37,99,235,0.06);
    border-color: #2563eb;
    color: #2563eb;
}

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

.page-btn.active {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37,99,235,0.35);
}

/* ===== 快速操作卡片 ===== */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.quick-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #fff;
    border: 1px solid rgba(37,99,235,0.12);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #4b5563;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
}

.quick-action-btn:hover {
    background: rgba(37,99,235,0.06);
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,99,235,0.12);
}

.quick-action-btn i { font-size: 18px; }

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

.empty-state i {
    font-size: 72px;
    margin-bottom: 24px;
    display: block;
    opacity: 0.3;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.empty-state h3 {
    font-size: 20px;
    color: #6b7280;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.empty-state p {
    font-size: 14px;
    color: #9ca3af;
    margin: 0;
    max-width: 400px;
    margin: 0 auto;
}

.empty-state .btn-primary {
    margin-top: 24px;
    display: inline-flex;
}

/* ===== 全局选中高亮 ===== */
.highlight-row {
    animation: rowHighlight 1.5s ease;
}

@keyframes rowHighlight {
    0% { background: rgba(37,99,235,0.15); }
    100% { background: transparent; }
}

/* ===== 文档中心 - 导航 ===== */
.doc-center {
    max-width: 1200px;
    margin: 0 auto;
}

.doc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 0 20px;
    font-size: 13px;
    color: #9ca3af;
}

.doc-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.doc-breadcrumb a:hover {
    text-decoration: underline;
}

.doc-breadcrumb .sep {
    color: #d1d5db;
    font-size: 12px;
}

.doc-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    border: 1px solid rgba(37,99,235,0.08);
    box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}

.doc-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.doc-nav a i {
    font-size: 15px;
    color: #9ca3af;
    transition: color 0.25s;
}

.doc-nav a:hover {
    background: rgba(37,99,235,0.06);
    color: #2563eb;
    border-color: rgba(37,99,235,0.12);
}

.doc-nav a:hover i {
    color: #2563eb;
}

.doc-nav a.active {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(37,99,235,0.3);
}

.doc-nav a.active i {
    color: #fff;
}

/* ===== 文档中心 - 统一卡片 ===== */
.doc-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.doc-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.doc-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.doc-card-header .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    flex-shrink: 0;
}

.doc-card-header h3 {
    font-size: 18px;
    color: #1f2937;
    margin: 0 0 4px 0;
    font-weight: 700;
}

.doc-card-header p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
}

.doc-card-body {
    padding: 28px;
}

/* ===== 文档中心 - Intro Banner ===== */
.doc-intro {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 16px;
    padding: 36px 40px;
    margin-bottom: 32px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.doc-intro::after {
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    right: 30px;
    bottom: -10px;
    font-size: 100px;
    opacity: 0.1;
}

.doc-intro h2 {
    font-size: 24px;
    margin: 0 0 8px;
    font-weight: 700;
}

.doc-intro p {
    font-size: 15px;
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 70%;
}

.doc-intro .intro-stats {
    display: flex;
    gap: 32px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.doc-intro .intro-stat {
    text-align: center;
}

.doc-intro .intro-stat .num {
    font-size: 28px;
    font-weight: 800;
    display: block;
}

.doc-intro .intro-stat .label {
    font-size: 12px;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .doc-intro p { max-width: 100%; }
    .doc-intro .intro-stats { gap: 20px; }
}

/* ===== 文档中心 - Meta Info ===== */
.doc-meta {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), rgba(30, 64, 175, 0.04));
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    flex-wrap: wrap;
}

.doc-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.doc-meta-label {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.doc-meta-value {
    font-size: 15px;
    color: #1f2937;
    font-weight: 600;
}

/* ===== 文档中心 - Footer ===== */
.doc-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-radius: 14px;
    border: 1px solid rgba(251, 191, 36, 0.2);
    gap: 16px;
    flex-wrap: wrap;
}

.doc-footer .footer-note {
    flex: 1;
    min-width: 280px;
    font-size: 14px;
    color: #b45309;
    line-height: 1.6;
}

.doc-footer .footer-note .label {
    font-weight: 700;
    color: #92400e;
    margin-right: 8px;
}

/* ===== 文档中心 - SKU Badge ===== */
.sku-badge {
    display: inline-block;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    font-weight: 600;
    color: #2563eb;
    letter-spacing: 0.3px;
}

/* ===== 文档中心 - Rules Cards ===== */
.doc-rules {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.doc-rule-card {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.doc-rule-card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.doc-rule-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.doc-rule-icon.purple { background: linear-gradient(135deg, #2563eb, #1e40af); }
.doc-rule-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.doc-rule-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.doc-rule-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.doc-rule-icon.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.doc-rule-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }
.doc-rule-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }

.doc-rule-content {
    flex: 1;
    min-width: 0;
}

.doc-rule-content h4 {
    font-size: 17px;
    color: #1f2937;
    margin: 0 0 12px 0;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-rule-number {
    display: inline-block;
    padding: 2px 10px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(30, 64, 175, 0.1));
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: #2563eb;
}

.doc-rule-desc p {
    font-size: 14px;
    color: #4b5563;
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.doc-rule-desc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-rule-desc ul li {
    position: relative;
    padding: 8px 0 8px 24px;
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    border-bottom: 1px solid rgba(37, 99, 235, 0.05);
}

.doc-rule-desc ul li:last-child {
    border-bottom: none;
}

.doc-rule-desc ul li::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.doc-rule-desc ul li strong {
    color: #1f2937;
}

.doc-rule-note {
    font-size: 13px !important;
    color: #9ca3af !important;
    font-style: italic;
}

/* ===== 文档中心 - Price Tier Table ===== */
.price-tier-table {
    width: 100%;
    max-width: 520px;
    border-collapse: collapse;
    margin: 12px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.price-tier-table thead {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.price-tier-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.price-tier-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    background: #fff;
}

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

.price-tier-table tbody tr:hover td {
    background: rgba(37, 99, 235, 0.04);
}

.price-tier-table .highlight {
    font-weight: 700;
    color: #059669;
}

/* ===== 文档中心 - Lead Time Grid ===== */
.leadtime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.leadtime-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    transition: all 0.3s ease;
}

.leadtime-item:hover {
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.lt-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    gap: 2px;
    flex-shrink: 0;
}

.lt-badge i { font-size: 16px; }

.lt-badge.sample { background: linear-gradient(135deg, #2563eb, #1e40af); }
.lt-badge.bulk { background: linear-gradient(135deg, #10b981, #059669); }
.lt-badge.custom { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.lt-badge.urgent { background: linear-gradient(135deg, #ef4444, #dc2626); }

.lt-detail { display: flex; flex-direction: column; gap: 2px; }
.lt-label { font-size: 13px; color: #6b7280; }
.lt-value { font-size: 16px; font-weight: 700; color: #1f2937; }

/* ===== 文档中心 - Payment Flow ===== */
.payment-flow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 12px 0;
    padding: 16px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.08);
}

.payment-step { display: flex; align-items: center; gap: 12px; flex: 1; }

.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    flex-shrink: 0;
}

.step-info { display: flex; flex-direction: column; gap: 2px; }
.step-title { font-size: 14px; font-weight: 600; color: #1f2937; }
.step-detail { font-size: 12px; color: #059669; font-weight: 700; }
.step-arrow { color: #2563eb; font-size: 20px; opacity: 0.5; }
.step-done { color: #10b981; font-size: 24px; }

.payment-alt {
    margin-top: 12px;
    padding: 14px 18px;
    background: rgba(59, 130, 246, 0.04);
    border-radius: 10px;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.payment-alt p {
    font-size: 13px !important;
    color: #3b82f6 !important;
    font-weight: 600;
    margin-bottom: 8px !important;
}

.payment-alt p i { margin-right: 6px; }

.payment-alt ul li {
    font-size: 13px !important;
    padding: 5px 0 5px 20px !important;
}

.payment-alt ul li::before { top: 12px !important; }

/* ===== 文档中心 - Packaging Grid ===== */
.packaging-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 12px 0;
}

.pkg-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 14px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    text-align: center;
    transition: all 0.3s ease;
}

.pkg-item:hover {
    border-color: rgba(37, 99, 235, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.pkg-item i {
    font-size: 28px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pkg-type { font-size: 14px; font-weight: 600; color: #1f2937; }
.pkg-desc { font-size: 12px; color: #9ca3af; }

/* ===== 文档中心 - Channel Price ===== */
.channel-price { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.price-tag { font-weight: 700; font-size: 14px; font-family: 'Courier New', monospace; }
.price-tag.shopee { color: #ee4d2d; }
.price-tag.lazada { color: #0f146d; }
.price-tag.tiktok { color: #010101; }
.price-tag.site { color: #2563eb; }
.margin-label { font-size: 11px; color: #9ca3af; font-weight: 500; }
.msrp { font-size: 13px; color: #059669; font-weight: 600; }

.channel-legend {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.06);
    flex-wrap: wrap;
}

.legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #6b7280; font-weight: 500; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.shopee-bg { background: #ee4d2d; }
.lazada-bg { background: #0f146d; }
.tiktok-bg { background: #010101; }
.site-bg { background: #2563eb; }
.supply-bg { background: #059669; }

/* ===== 文档中心 - Service Styles ===== */
.service-table { width: 100%; border-collapse: collapse; }

.service-table thead {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.service-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.service-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    background: #fff;
}

.service-table tbody tr:last-child td { border-bottom: none; }
.service-table tbody tr:hover td { background: rgba(37, 99, 235, 0.04); }

.service-card {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card h2 {
    font-size: 20px;
    color: #1f2937;
    font-weight: 700;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(37, 99, 235, 0.12);
}

.service-card h2 i { color: #2563eb; font-size: 22px; }

.service-card h2::before {
    content: '';
    width: 4px;
    height: 22px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    border-radius: 2px;
    flex-shrink: 0;
}

.service-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.service-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
}

.service-feature:hover {
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.04);
}

.service-feature i {
    font-size: 22px;
    color: #2563eb;
    margin-top: 2px;
    flex-shrink: 0;
}

.service-feature .feat-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}

.service-feature .feat-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.fulfillment-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 20px;
    position: relative;
}

.fulfillment-steps::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    opacity: 0.2;
}

.fulfill-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    position: relative;
}

.fulfill-step .step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.fulfill-step .step-body h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}

.fulfill-step .step-body p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ===== 文档中心 - Legal/Language Toggle ===== */
.legal-document {
    max-width: 900px;
    margin: 0 auto;
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(37, 99, 235, 0.2);
}

.legal-header h2 {
    font-size: 24px;
    color: #1f2937;
    margin-bottom: 8px;
}

.legal-header .last-updated {
    font-size: 13px;
    color: #9ca3af;
}

.lang-toggle {
    display: flex;
    gap: 0;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 4px;
    border: 1px solid rgba(37, 99, 235, 0.15);
    width: fit-content;
}

.lang-toggle button {
    padding: 8px 24px;
    border: none;
    background: transparent;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.25s ease;
}

.lang-toggle button.active {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.lang-toggle button:hover:not(.active) {
    color: #2563eb;
}

.legal-section {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.25s ease;
}

.legal-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 .section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
}

.legal-section p {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0 0 10px;
}

.legal-section ul {
    padding-left: 20px;
    margin: 8px 0;
}

.legal-section ul li {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 4px;
}

.legal-section .sub-section {
    margin-top: 16px;
    padding: 16px 20px;
    background: rgba(37, 99, 235, 0.04);
    border-radius: 12px;
    border-left: 3px solid #2563eb;
}

.legal-section .sub-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px;
}

/* ===== 文档中心 - SOP Styles ===== */
.sop-container { max-width: 1200px; margin: 0 auto; padding-bottom: 60px; }

.sop-section { margin-bottom: 40px; }

.sop-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sop-section-title i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 18px;
}

.sop-section-desc {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 20px 48px;
}

.sop-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sop-step {
    display: flex;
    gap: 16px;
    padding: 18px 22px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 14px;
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
}

.sop-step:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.15);
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sop-step .step-num {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.sop-step .step-content { flex: 1; }

.sop-step .step-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px;
}

.sop-step .step-content p {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    line-height: 1.6;
}

.sop-step .step-content .step-tags {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.sop-step .step-content .step-tags span {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.step-tag-green { background: rgba(16, 185, 129, 0.1); color: #059669; }
.step-tag-blue { background: rgba(59, 130, 246, 0.1); color: #2563eb; }
.step-tag-orange { background: rgba(245, 158, 11, 0.1); color: #d97706; }
.step-tag-red { background: rgba(239, 68, 68, 0.1); color: #dc2626; }
.step-tag-purple { background: rgba(99, 102, 241, 0.1); color: #4f46e5; }

/* ===== 文档中心 - Catalog Styles ===== */
.catalog-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.catalog-summary .stat-card {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.catalog-summary .stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    border-radius: 4px 0 0 4px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.catalog-summary .stat-card.stat-blue::after { background: #2563eb; }
.catalog-summary .stat-card.stat-teal::after { background: #0d9488; }
.catalog-summary .stat-card.stat-green::after { background: #16a34a; }
.catalog-summary .stat-card.stat-orange::after { background: #f59e0b; }

.catalog-summary .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

.catalog-summary .stat-card:hover::after { opacity: 1; }

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

.catalog-summary .stat-card.stat-blue .stat-icon-wrap { background: #eff6ff; }
.catalog-summary .stat-card.stat-teal .stat-icon-wrap { background: #f0fdfa; }
.catalog-summary .stat-card.stat-green .stat-icon-wrap { background: #f0fdf4; }
.catalog-summary .stat-card.stat-orange .stat-icon-wrap { background: #fff7ed; }

.catalog-summary .stat-icon-wrap i {
    font-size: 24px;
}

.catalog-summary .stat-blue .stat-icon-wrap i { color: #2563eb; }
.catalog-summary .stat-teal .stat-icon-wrap i { color: #0d9488; }
.catalog-summary .stat-green .stat-icon-wrap i { color: #16a34a; }
.catalog-summary .stat-orange .stat-icon-wrap i { color: #f59e0b; }

.catalog-summary .stat-body { flex: 1; min-width: 0; }

.catalog-summary .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.1;
    letter-spacing: -1px;
}

.catalog-summary .stat-label {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active { background: #d1fae5; color: #065f46; }
.status-badge.inactive { background: #fef3c7; color: #92400e; }
.status-badge.discontinued { background: #fee2e2; color: #991b1b; }

.table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.table-toolbar .info-text {
    color: #6b7280;
    font-size: 13px;
}

/* ===== 文档中心 - SOP Styles ===== */
.sop-block {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.sop-block:hover {
    border-color: rgba(37, 99, 235, 0.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.sop-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-bottom: 1px solid rgba(37, 99, 235, 0.08);
    transition: background 0.2s;
    user-select: none;
}

.sop-block-header:hover {
    background: linear-gradient(135deg, #f1f5f9, #e8ecf1);
}

.sop-block-header h3 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sop-block-header .badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Courier New', monospace;
}

.sop-block-header .toggle-icon {
    font-size: 16px;
    color: #9ca3af;
    transition: transform 0.3s ease;
}

.sop-block-header.collapsed .toggle-icon {
    transform: rotate(-180deg);
}

.sop-block-body {
    padding: 20px 24px;
}

/* SOP Step Cards */
.sop-step-card {
    display: flex;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 10px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(37, 99, 235, 0.04);
    transition: all 0.25s ease;
}

.sop-step-card:hover {
    background: #fff;
    border-color: rgba(37, 99, 235, 0.12);
    transform: translateX(4px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sop-step-num {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    margin-top: 2px;
}

.sop-step-content { flex: 1; }

.sop-step-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.sop-step-desc {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* SOP Warning Boxes */
.sop-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 12px;
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.6;
    border: 1px solid transparent;
}

.sop-warning-box i {
    font-size: 18px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sop-warning-box.info {
    background: rgba(59, 130, 246, 0.06);
    border-color: rgba(59, 130, 246, 0.15);
    color: #2563eb;
}

.sop-warning-box.info i { color: #3b82f6; }

.sop-warning-box.warning {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
}

.sop-warning-box.warning i { color: #f59e0b; }

.sop-warning-box.success {
    background: rgba(16, 185, 129, 0.06);
    border-color: rgba(16, 185, 129, 0.15);
    color: #059669;
}

.sop-warning-box.success i { color: #10b981; }

.sop-warning-box.danger {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.15);
    color: #dc2626;
}

.sop-warning-box.danger i { color: #ef4444; }

.sop-warning-box strong {
    font-weight: 700;
    color: inherit;
}

/* SOP Module Grid */
.sop-module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin: 16px 0;
}

.sop-module-card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    border: 1px solid rgba(37, 99, 235, 0.06);
    transition: all 0.3s ease;
}

.sop-module-card:hover {
    border-color: rgba(37, 99, 235, 0.18);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.sop-module-card .sop-module-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
}

.sop-module-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 6px;
}

.sop-module-card p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 12px;
    line-height: 1.6;
}

.sop-module-card .sop-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.sop-module-card .sop-tags span {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(37, 99, 235, 0.08);
    color: #2563eb;
}

/* SOP Table */
.sop-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
}

.sop-table thead {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.sop-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
}

.sop-table td {
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(37, 99, 235, 0.06);
    background: #fff;
}

.sop-table tr:last-child td { border-bottom: none; }
.sop-table tbody tr:hover td { background: rgba(37, 99, 235, 0.04); }

.sop-divider {
    text-align: center;
    padding: 40px 0 20px;
    position: relative;
}

.sop-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}

.sop-divider span {
    display: inline-block;
    padding: 0 20px;
    background: #f0f2f5;
    color: #9ca3af;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* ===== 文档中心 - Warehouse Service ===== */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.warehouse-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.warehouse-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #2563eb, #1e40af);
    border-radius: 0 2px 2px 0;
}

.warehouse-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

.warehouse-card .wh-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.warehouse-card .wh-card-header i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #1e40af);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.warehouse-card .wh-card-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.warehouse-card .wh-card-body p {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.warehouse-card .wh-card-body p i {
    width: 18px;
    color: #2563eb;
    font-size: 14px;
}

.wh-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
}

.wh-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    opacity: 0.5;
}

.wh-loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.wh-loading .spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid rgba(37,99,235,0.2);
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: whSpin 0.8s linear infinite;
    margin-bottom: 12px;
}

@keyframes whSpin { to { transform: rotate(360deg); } }

/* Service step flow */
.step-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
    position: relative;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 110px;
    position: relative;
    text-align: center;
}

.step-item .step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    position: relative;
    z-index: 2;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.step-item:hover .step-num {
    transform: scale(1.12);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.step-num.s1 { background: linear-gradient(135deg, #2563eb, #1e40af); }
.step-num.s2 { background: linear-gradient(135deg, #00d4ff, #0099cc); }
.step-num.s3 { background: linear-gradient(135deg, #10b981, #059669); }
.step-num.s4 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.step-num.s5 { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.step-num.s6 { background: linear-gradient(135deg, #ec4899, #db2777); }
.step-num.s7 { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.step-num.s8 { background: linear-gradient(135deg, #ef4444, #dc2626); }

.step-item .step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    line-height: 1.4;
    max-width: 110px;
}

.step-item .step-label small {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
    margin-top: 2px;
}

.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    flex-shrink: 0;
    padding-top: 28px;
}

.step-arrow i {
    font-size: 18px;
    color: #93c5fd;
    animation: arrowPulse 1.5s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: translateX(0); opacity: 0.6; }
    50% { transform: translateX(4px); opacity: 1; }
}

/* Schedule table */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    max-width: 500px;
}

.schedule-table th {
    padding: 14px 18px;
    text-align: left;
    font-weight: 700;
    color: #4b5563;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(37,99,235,0.2);
    background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(30,64,175,0.08));
}

.schedule-table td {
    padding: 14px 18px;
    font-size: 14px;
    color: #374151;
    border-bottom: 1px solid rgba(37,99,235,0.06);
}

.schedule-table tbody tr:hover td { background: rgba(37,99,235,0.04); }
.schedule-table tbody tr:last-child td { border-bottom: none; }
.schedule-table .day { font-weight: 600; color: #1f2937; }
.schedule-table .time { color: #2563eb; font-weight: 500; }
.schedule-table .closed { color: #ef4444; font-weight: 600; }

.schedule-table .wh-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.schedule-table .wh-badge.open {
    background: linear-gradient(135deg, #dcfce7, #bbf7d0);
    color: #166534;
}

.schedule-table .wh-badge.closed {
    background: linear-gradient(135deg, #fee2e2, #fecaca);
    color: #991b1b;
}

/* Service icon in table */
.service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-right: 10px;
    vertical-align: middle;
    flex-shrink: 0;
}

.service-icon.blue { background: linear-gradient(135deg, #2563eb, #1e40af); }
.service-icon.green { background: linear-gradient(135deg, #10b981, #059669); }
.service-icon.orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.service-icon.purple { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.service-icon.teal { background: linear-gradient(135deg, #14b8a6, #0d9488); }
.service-icon.red { background: linear-gradient(135deg, #ef4444, #dc2626); }

.fee { font-weight: 700; color: #2563eb; white-space: nowrap; }

.section-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== 文档中心 - 打印 ===== */
@media print {
    .doc-nav, .sidebar, .top-header, .filter-bar, .btn-primary, .action-btn { display: none !important; }
    .main-content { margin-left: 0 !important; padding: 20px !important; }
    .doc-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd !important; }
    .doc-intro { break-inside: avoid; }
    .legal-section { break-inside: avoid; }
    .doc-rule-card { break-inside: avoid; }
    .service-card { break-inside: avoid; }
    .sop-step { break-inside: avoid; }
    .sop-block { break-inside: avoid; }
    .warehouse-card { break-inside: avoid; }
}

/* ===== 文档中心 - 响应式 ===== */
@media (max-width: 768px) {
    .doc-meta { flex-direction: column; gap: 12px; }
    .leadtime-grid { grid-template-columns: 1fr; }
    .packaging-grid { grid-template-columns: repeat(2, 1fr); }
    .payment-flow { flex-direction: column; align-items: stretch; }
    .payment-step .step-arrow { display: none; }
    .doc-footer { flex-direction: column; align-items: stretch; text-align: center; }
    .channel-legend { justify-content: center; }
    .service-features { grid-template-columns: 1fr; }
    .catalog-summary { grid-template-columns: repeat(2, 1fr); }
    .doc-nav a { font-size: 12px; padding: 6px 12px; }
}

@media (max-width: 480px) {
    .packaging-grid { grid-template-columns: 1fr; }
    .doc-card-body { padding: 16px; }
    .doc-rule-card { flex-direction: column; align-items: flex-start; }
    .catalog-summary { grid-template-columns: 1fr; }
    .legal-section { padding: 16px 18px; }
}

/* ============================================
   移动端全面兼容样式
   ============================================ */

/* ===== 汉堡菜单按钮 ===== */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    padding: 8px;
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.15);
    border-radius: 10px;
    cursor: pointer;
    gap: 5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.hamburger-btn:hover {
    background: rgba(37, 99, 235, 0.15);
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 汉堡按钮激活态 - 变成 X */
.hamburger-btn.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ===== 侧边栏遮罩层 ===== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.sidebar-overlay.show {
    display: block;
}

/* ===== 移动端底部导航栏 ===== */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    z-index: 997;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.25s ease;
    min-width: 48px;
    min-height: 44px;
}

.mobile-nav-item i {
    font-size: 20px;
    transition: transform 0.25s ease, color 0.25s ease;
}

.mobile-nav-item span {
    white-space: nowrap;
}

.mobile-nav-item.active {
    color: #2563eb;
}

.mobile-nav-item.active i {
    transform: scale(1.1);
}

.mobile-nav-item:active {
    transform: scale(0.92);
    background: rgba(37, 99, 235, 0.08);
}

/* ===== 表格滚动指示器 ===== */
.table-responsive {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}

/* 左侧滚动阴影 */
.table-responsive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(90deg, rgba(255,255,255,0.9) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.2s ease;
    border-radius: 16px 0 0 0;
}

/* 右侧滚动阴影 */
.table-responsive::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(270deg, rgba(255,255,255,0.95) 0%, transparent 100%);
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.2s ease;
    border-radius: 0 16px 0 0;
}

.table-responsive.scrolled-right::before {
    opacity: 1;
}

.table-responsive:not(.scrolled-to-end)::after {
    opacity: 1;
}

.table-responsive.scrolled-to-end::after {
    opacity: 0;
}

.table-responsive.no-scroll::after {
    opacity: 0;
}

/* ============================================
   响应式布局 - 移动端 (≤768px)
   ============================================ */
@media (max-width: 768px) {
    /* --- 汉堡按钮显示 --- */
    .hamburger-btn {
        display: flex;
    }

    /* --- body 级别溢出防护 --- */
    html, body {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* --- 侧边栏 - 默认隐藏，覆盖模式 --- */
    .sidebar {
        width: 280px;
        left: -100%;
        transform: none;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        box-shadow: 10px 0 50px rgba(0, 0, 0, 0.4);
    }

    .sidebar.open {
        left: 0;
        transform: none;
    }

    /* 恢复侧边栏内文字显示 */
    .sidebar .logo span,
    .sidebar .menu a span {
        display: inline !important;
    }

    .sidebar .logo {
        padding: 20px 24px;
        justify-content: flex-start;
    }

    .sidebar .logo i {
        margin-right: 12px;
    }

    .sidebar .menu a {
        justify-content: flex-start;
        padding: 15px 18px;
    }

    .sidebar .menu a i {
        margin-right: 14px;
    }

    /* 侧边栏中显示文档中心和联系信息 */
    .sidebar .sidebar-contact {
        display: flex;
    }

    /* --- 主内容区 --- */
    .main-content {
        margin-left: 0 !important;
        padding-bottom: 80px;
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* --- 包装器 --- */
    .wrapper {
        max-width: 100vw;
        overflow-x: hidden;
    }

    /* --- 顶部头部 --- */
    .top-header {
        padding: 10px 14px;
        position: sticky;
        top: 0;
    }

    .header-left {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .header-left h1 {
        font-size: 16px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .header-right .user-avatar span {
        display: none;
    }

    .header-right .user-avatar i.fa-chevron-down {
        display: none;
    }

    .header-right .user-avatar {
        padding: 8px 10px;
    }

    .header-right .notifications {
        padding: 8px;
    }

    /* --- 内容区 --- */
    .content-section {
        padding: 14px 12px;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* --- 章节头部 --- */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .section-header h2 {
        font-size: 18px;
    }

    .header-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
    }

    .header-actions .btn-primary,
    .header-actions .btn-secondary {
        flex: 1;
        justify-content: center;
        min-width: 120px;
        padding: 12px 16px;
        font-size: 14px;
    }

    /* --- 统计卡片 --- */
    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 14px;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
        border-radius: 14px;
        margin-right: 12px;
    }

    .stat-info .stat-number {
        font-size: 22px;
    }

    .stat-info .stat-label {
        font-size: 12px;
    }

    /* --- 数据表格 --- */
    .table-responsive {
        max-width: 100%;
    }

    .data-table,
    .order-table,
    .inventory-table {
        font-size: 13px;
    }

    .data-table th,
    .order-table th,
    .inventory-table th {
        padding: 10px 12px;
        font-size: 11px;
        white-space: nowrap;
    }

    .data-table td,
    .order-table td,
    .inventory-table td {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* --- 筛选栏 --- */
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 8px;
    }

    .filter-bar input,
    .filter-bar select {
        min-width: 100% !important;
        height: 44px;
        font-size: 16px;
    }

    .filter-bar .btn-primary {
        height: 44px;
        justify-content: center;
        margin-left: 0 !important;
        font-size: 14px;
    }

    /* --- 表单 --- */
    .form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-group label {
        font-size: 14px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        height: 44px;
        font-size: 16px;
        padding: 10px 14px;
    }

    .form-group textarea {
        height: auto;
        min-height: 80px;
    }

    /* --- 模态框全屏 --- */
    .modal-box {
        width: 100%;
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal-header {
        padding: 16px 18px;
    }

    .modal-header h3 {
        font-size: 16px;
    }

    .modal-header .close {
        width: 44px;
        height: 44px;
        font-size: 24px;
        border-radius: 50%;
    }

    .modal-body {
        padding: 16px;
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 14px 18px;
        flex-direction: column;
        gap: 10px;
    }

    .modal-footer button {
        width: 100%;
        padding: 14px;
        font-size: 16px;
        border-radius: 12px;
    }

    /* --- 按钮 - 增大触摸区域 --- */
    .btn-primary,
    .btn-secondary {
        min-height: 44px;
        padding: 12px 20px;
        font-size: 14px;
        border-radius: 12px;
    }

    .action-btn {
        min-width: 44px;
        min-height: 44px;
        padding: 8px 10px;
        font-size: 12px;
        justify-content: center;
    }

    /* --- 分页 --- */
    .pagination,
    .pagination-controls {
        flex-wrap: wrap;
        gap: 5px;
        justify-content: center;
    }

    .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
        padding: 0 14px;
        border-radius: 10px;
    }

    .pagination-controls .page-btn {
        min-width: 40px;
        height: 40px;
        font-size: 14px;
    }

    /* 分页信息单独一行 */
    .pagination-controls .page-info {
        display: block;
        width: 100%;
        text-align: center;
        margin-left: 0;
        margin-top: 8px;
        font-size: 13px;
    }

    /* --- 通知弹窗 --- */
    .notify-popup {
        width: 90vw;
        right: 5px;
    }

    .notify-header {
        padding: 14px 16px;
    }

    /* --- 用户下拉 --- */
    .user-dropdown {
        width: 200px;
        right: 0;
    }

    /* --- 底部导航栏显示 --- */
    .mobile-bottom-nav {
        display: flex;
    }

    /* --- 标签页 --- */
    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 4px;
        padding-bottom: 4px;
    }

    .tab-btn {
        flex-shrink: 0;
        padding: 10px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* --- 来源选择器 --- */
    .source-selector {
        flex-direction: column;
        gap: 8px;
    }

    /* --- 确认栏 --- */
    .confirm-bar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 14px;
    }

    /* --- 文件信息 --- */
    .file-info {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* --- 信息网格 --- */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* --- 仪表盘 --- */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    .orders-list {
        grid-template-columns: 1fr;
    }

    /* --- 订单摘要 --- */
    .order-summary {
        grid-template-columns: 1fr;
    }

    /* --- Toast 通知 --- */
    #toastContainer {
        top: 10px;
        right: 10px;
        left: 10px;
    }

    .toast {
        width: 100%;
        min-width: 0;
    }

    /* --- 修改密码弹窗 --- */
    .change-pwd-modal .modal-box {
        height: auto;
        max-height: 90vh;
    }
}

/* ============================================
   响应式布局 - 小屏手机 (≤480px)
   ============================================ */
@media (max-width: 480px) {
    .stats-cards {
        grid-template-columns: 1fr !important;
    }

    .stat-card {
        padding: 12px;
    }

    .upload-container {
        padding: 16px;
    }

    .upload-area {
        padding: 30px 16px;
    }

    .upload-area i {
        font-size: 40px;
    }

    .filter-bar {
        padding: 10px;
    }

    .content-section {
        padding: 10px 8px;
    }

    .sidebar {
        width: 260px;
    }

    .mobile-bottom-nav {
        height: 58px;
    }

    .mobile-nav-item {
        font-size: 10px;
        gap: 2px;
        padding: 4px 8px;
        min-width: 44px;
    }

    .mobile-nav-item i {
        font-size: 18px;
    }

    .main-content {
        padding-bottom: 74px;
    }

    .action-btn {
        padding: 6px 8px;
        font-size: 11px;
        margin-right: 2px;
    }

    /* 小屏分页：隐藏省略号和部分数字按钮 */
    .pagination-controls .page-dots {
        display: none;
    }

    /* 小屏只显示：首页、上一页、当前页、下一页、末页 */
    .pagination-controls .page-btn:not(.active):not(:first-of-type):not(:nth-of-type(2)):not(:nth-last-of-type(2)):not(:last-of-type) {
        display: none;
    }

    .pagination-controls .page-btn {
        min-width: 36px;
        height: 36px;
        font-size: 13px;
        padding: 0 8px;
    }

    .pagination .page-btn {
        min-width: 34px;
        height: 34px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* ============================================
   响应式布局 - 平板 (768px - 1024px)
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    .sidebar {
        width: 200px;
    }

    .main-content {
        margin-left: 200px;
    }

    .top-header {
        padding: 14px 20px;
    }

    .header-left h1 {
        font-size: 18px;
    }

    .stats-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-section {
        padding: 18px;
    }

    .menu a {
        padding: 12px 14px;
        font-size: 13px;
    }

    .menu a i {
        margin-right: 10px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .sidebar,
    .top-header,
    .filter-bar,
    .btn-primary,
    .btn-secondary,
    .action-btn { display: none !important; }
    
    .main-content { margin-left: 0 !important; padding: 20px !important; }
    .data-table { box-shadow: none !important; border: 1px solid #ddd !important; }
    .stat-card { break-inside: avoid; box-shadow: none !important; border: 1px solid #ddd !important; }
}
