/* css/transactions.css */

/* ==========================================================================
   1. 变量定义 (Variables - Light & Dark)
   ========================================================================== */
:root {
    /* --- 默认：白昼模式 (Light Mode) --- */
    
    /* 核心背景 */
    --bg-body: #f8fafc;          /* 整体大背景 */
    --bg-white: #ffffff;         /* 卡片/面板背景 */
    --bg-sidebar: #ffffff;       /* 侧边栏背景 */
    --bg-glass: rgba(248, 250, 252, 0.85); /* 顶部毛玻璃背景 */
    
    /* 交互状态背景 */
    --bg-hover: #f1f5f9;         /* 鼠标悬停 */
    --bg-active: #f5f3ff;        /* 选中状态 (浅紫) */
    --bg-input: #ffffff;         /* 输入框背景 */
    --bg-modal-footer: #f8fafc;  /* 弹窗底部 */
    
    /* 文字颜色 */
    --text-main: #1e293b;        /* 主标题 (深黑蓝) */
    --text-secondary: #64748b;   /* 次要文字 (灰) */
    --text-light: #94a3b8;       /* 占位符/超浅文字 */
    --text-on-primary: #ffffff;  /* 主色按钮上的文字 */
    
    /* 边框线条 */
    --border-light: #e2e8f0;
    
    /* 品牌色 */
    --primary-color: #7c3aed;    /* 优雅的紫 */
    --primary-hover: #6d28d9;
    --accent-blue: #3b82f6;
    --accent-orange: #f59e0b;
    
    /* 装饰性图标底色 (Light) */
    --icon-bg-blue: #eff6ff;
    --icon-bg-purple: #f5f3ff;
    --icon-bg-orange: #fff7ed;
    
    /* 阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* 遮罩 */
    --overlay-bg: rgba(15, 23, 42, 0.4);

    /* 状态色 */
    --success: #10b981;
    --danger: #ef4444;
}

/* --- 黑夜模式 (Dark Mode) --- */
[data-theme="dark"] {
    /* 核心背景 - 使用深灰系列，非纯黑，类似 iOS Dark Mode */
    --bg-body: #000000;          /* 极致黑 */
    --bg-white: #1c1c1e;         /* 深灰卡片 */
    --bg-sidebar: #151517;       /* 略深一点的侧边栏 */
    --bg-glass: rgba(28, 28, 30, 0.85);
    
    /* 交互状态背景 */
    --bg-hover: #2c2c2e;
    --bg-active: rgba(124, 58, 237, 0.15); /* 深色模式下的选中状态 */
    --bg-input: #1c1c1e;
    --bg-modal-footer: #242426;

    /* 文字颜色 - 反转 */
    --text-main: #ffffff;
    --text-secondary: #a1a1a6;   /* 苹果风格浅灰 */
    --text-light: #636366;       /* 深灰占位符 */
    --text-on-primary: #ffffff;

    /* 边框线条 - 变暗 */
    --border-light: #38383a;

    /* 品牌色 - 稍微调亮一点点以适应深底，或者保持不变 */
    --primary-color: #8b5cf6;    /* 亮紫色 */
    --primary-hover: #7c3aed;
    
    /* 装饰性图标底色 (Dark - 透明度处理) */
    --icon-bg-blue: rgba(59, 130, 246, 0.15);
    --icon-bg-purple: rgba(139, 92, 246, 0.15);
    --icon-bg-orange: rgba(245, 158, 11, 0.15);

    /* 阴影 - 在黑色背景下阴影不可见，主要靠边框区分，但保留微弱阴影 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    
    /* 遮罩 - 加深 */
    --overlay-bg: rgba(0, 0, 0, 0.7);
}

/* 全局重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    font-size: 14px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease; /* 添加全局过渡 */
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input { outline: none; font-family: inherit; }

/* ==========================================================================
   2. 布局结构 (Layout)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* --- 侧边栏 (Sidebar) --- */
.sidebar {
    width: 250px;
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-light);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.sidebar-header {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 24px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    background: linear-gradient(45deg, var(--primary-color), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-nav {
    flex: 1;
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-item i {
    width: 24px;
    margin-right: 12px;
    font-size: 16px;
    text-align: center;
}

/* 适配变量：悬停 */
.nav-item:hover {
    background-color: var(--bg-hover);
    color: var(--primary-color);
}

/* 适配变量：选中 */
.nav-item.active {
    background-color: var(--bg-active); 
    color: var(--primary-color);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}

.user-mini-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-hover); /* 改为变量 */
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.user-info-text {
    display: flex;
    flex-direction: column;
}

.u-name { font-weight: 600; font-size: 13px; color: var(--text-main); }
.u-status { font-size: 12px; color: var(--success); display: flex; align-items: center; gap: 4px; }
.u-status::before { content: ''; width: 6px; height: 6px; background: var(--success); border-radius: 50%; display: block; }

/* --- 主内容区 (Main Content) --- */
.main-content-wrapper {
    flex: 1;
    margin-left: 250px;
    padding: 0;
    width: calc(100% - 250px);
}

/* --- 顶部通栏 (Top Bar) --- */
.top-bar {
    height: 70px;
    background: var(--bg-glass); /* 适配变量 */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 32px;
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid transparent; /* 某些黑夜模式可能需要底边框区分 */
}
/* 黑夜模式下加个底边框区分 */
[data-theme="dark"] .top-bar { border-bottom-color: var(--border-light); }


.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-main);
    margin-right: 16px;
    cursor: pointer;
}

.page-heading {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-main);
}

.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-hover); /* 添加背景变化 */
    transform: rotate(30deg);
}

.rotating { animation: spin 1s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }


/* ==========================================================================
   3. 仪表盘组件 (Dashboard Styles)
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 24px 32px;
}

/* 通用卡片样式 */
.stat-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-light);
    min-height: 120px;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 主卡片 (Primary - 余额) */
.primary-card {
    /* 主卡片可以是深色的，因为上面文字是白色。如果是dark mode，也可以保持深色，或稍微调暗 */
    background: linear-gradient(135deg, #1e1b4b, #4c1d95); 
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
}
/* 黑夜模式下稍微改边缘颜色，让它有层次 */
[data-theme="dark"] .primary-card {
    border: 1px solid rgba(255,255,255,0.1);
}

.card-decoration-circle {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.primary-card .stat-label { color: rgba(255,255,255,0.7); }
.primary-card .stat-value { color: white; margin: 10px 0; }
.primary-card .stat-trend { color: #6ee7b7; font-size: 12px; margin-top: 4px; }

.btn-white-glass {
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s;
}
.btn-white-glass:hover { background: rgba(255,255,255,0.25); }

/* 次要卡片内容 - 适配变量 */
.stat-icon-bg {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}

/* 使用之前定义的图标背景变量 */
.stat-icon-bg.blue { background: var(--icon-bg-blue); color: var(--accent-blue); }
.stat-icon-bg.purple { background: var(--icon-bg-purple); color: var(--primary-color); }
.stat-icon-bg.orange { background: var(--icon-bg-orange); color: var(--accent-orange); }

.stat-label { font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; }
.stat-value { font-size: 24px; font-weight: 700; color: var(--text-main); font-family: 'Inter', monospace; }
.stat-value-sm { font-size: 20px; font-weight: 600; color: var(--text-main); margin-top: 6px; font-family: 'Inter', monospace;}


/* ==========================================================================
   4. 表格区域 (Table Section)
   ========================================================================== */
.table-section {
    padding: 0 32px 40px 32px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

/* 工具栏 */
.toolbar {
    display: flex;
    gap: 12px;
}

.search-wrapper {
    position: relative;
}
.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}
.search-wrapper input {
    padding: 10px 16px 10px 36px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-white);
    color: var(--text-main);
    font-size: 13px;
    width: 240px;
    transition: border 0.2s, box-shadow 0.2s;
}
.search-wrapper input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1); /* 这里有硬编码颜色，但影响不大 */
}
/* 修正 placeholder 颜色 */
.search-wrapper input::placeholder { color: var(--text-light); }

.btn-light {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}
.btn-light:hover { border-color: var(--text-light); background: var(--bg-hover); color: var(--text-main); }

/* 筛选下拉菜单 */
.filter-dropdown-wrapper {
    position: relative;
}
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 160px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: none;
    z-index: 100;
    animation: fadeIn 0.2s ease-out;
}
.dropdown-menu.show { display: block; }
.dropdown-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-secondary);
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--primary-color); }
.dropdown-item input { margin-right: 8px; }

/* --- 极简表格 --- */
.minimal-table-container {
    background: var(--bg-white);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    overflow-x: auto;
}

.minimal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.minimal-table th {
    text-align: left;
    padding: 16px 24px;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-body); /* 使用 body 背景色作为表头背景 */
}

.minimal-table td {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 13px;
    vertical-align: middle;
}

.minimal-table tr:last-child td { border-bottom: none; }
.minimal-table tr:hover { background: var(--bg-hover); } /* 适配变量 */

/* 表格内的特殊样式 */
.text-right { text-align: right; }
.text-center { text-align: center; }
.text-muted { color: var(--text-light); }
.text-success { color: var(--success); } /* JS动态插入的类 */
.text-danger { color: var(--danger); }

/* 行内小按钮 */
.btn-xs-icon {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    width: 28px; height: 28px; border-radius: 6px;
    cursor: pointer; transition: 0.2s;
}
.btn-xs-icon:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--bg-hover);
}

/* 分页器 */
.pagination-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}
.page-info { font-size: 13px; color: var(--text-secondary); }
.pagination-buttons { display: flex; gap: 8px; }
.page-btn {
    width: 32px; height: 32px;
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; color: var(--text-secondary);
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) { border-color: var(--primary-color); color: var(--primary-color); background: var(--bg-hover); }
.page-btn:disabled { background: var(--bg-body); color: var(--text-light); cursor: not-allowed; border-color: transparent; }

/* ==========================================================================
   5. 弹窗系统 (Modal System)
   ========================================================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: var(--overlay-bg); /* 适配变量 */
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.show { opacity: 1; visibility: visible; }

.modal-box {
    background: var(--bg-white);
    width: 90%; max-width: 450px;
    border-radius: 16px;
    box-shadow: var(--shadow-float);
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex; flex-direction: column;
    max-height: 85vh;
    border: 1px solid var(--border-light); /* 黑夜模式下增加边框可见性 */
}
.modal-overlay.show .modal-box { transform: scale(1); opacity: 1; }

/* 详情弹窗稍微宽一点 */
.detail-box-width { max-width: 600px; }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h4 { font-size: 16px; font-weight: 600; color: var(--text-main); }

.close-icon {
    background: none; border: none;
    font-size: 16px; color: var(--text-light);
    cursor: pointer; padding: 4px;
    transition: color 0.2s;
}
.close-icon:hover { color: var(--text-main); }

.modal-body {
    padding: 24px;
    overflow-y: auto;
    color: var(--text-main);
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--bg-modal-footer); /* 适配变量 */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

/* 自定义滚动条 (适配深色) */
.custom-scrollbar::-webkit-scrollbar { width: 6px; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; opacity: 0.5; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }

/* 弹窗内部元素 */
.recharge-item-group {
    background: var(--bg-body); /* 浅灰变深灰 */
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 16px;
    display: flex; align-items: center; gap: 16px;
    margin-bottom: 24px;
}
.group-icon {
    width: 40px; height: 40px; 
    background: var(--icon-bg-purple); color: var(--primary-color);
    border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.group-content { flex: 1; }
.group-content h5 { font-size: 14px; margin-bottom: 4px; color: var(--text-main); }
.group-content p { font-size: 12px; color: var(--text-secondary); }

.divider {
    text-align: center; margin: 20px 0; position: relative;
}
.divider::before {
    content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border-light);
}
.divider span {
    background: var(--bg-white); padding: 0 10px; position: relative; font-size: 12px; color: var(--text-light);
}

.form-group label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; color: var(--text-main); }
.input-group { display: flex; gap: 8px; }
.input-group input {
    flex: 1; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: 8px;
    font-size: 14px; transition: border 0.2s;
    background: var(--bg-input); color: var(--text-main);
}
.input-group input:focus { border-color: var(--primary-color); }

.btn { border: none; border-radius: 8px; font-weight: 500; cursor: pointer; transition: all 0.2s; font-size: 14px; padding: 10px 20px; }
.btn-primary { background: var(--primary-color); color: var(--text-on-primary); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 12px rgba(124, 58, 237, 0.2); }

.btn-dark { 
    /* 深色模式下，这个黑色按钮需要变白一点，或者保持深色但有边框 */
    background: #334155; color: white; 
}
[data-theme="dark"] .btn-dark { background: #2c2c2e; border: 1px solid var(--border-light); color: white; }

.btn-dark:hover { opacity: 0.9; }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.full-width { width: 100%; }

.feedback-text { margin-top: 8px; font-size: 12px; min-height: 18px;}
.feedback-text.error { color: var(--danger); }
.feedback-text.success { color: var(--success); }

/* 详情列表样式 */
.detail-list .detail-row {
    display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border-light);
}
.detail-list .detail-row:last-child { border-bottom: none; }
.detail-list .detail-label { color: var(--text-secondary); font-size: 13px; }
.detail-list .detail-value { font-weight: 500; color: var(--text-main); font-size: 13px; text-align: right; max-width: 60%; word-break: break-all; }
.detail-list pre {
    margin-top: 8px; background: var(--bg-body); padding: 12px; border-radius: 8px; font-size: 12px; color: var(--text-secondary); font-family: monospace;
}

/* ==========================================================================
   6. 辅助功能 & Toast (Utilities)
   ========================================================================== */
/* 全局加载 */
.global-loading {
    position: fixed; inset: 0; background: var(--bg-white); z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    transition: opacity 0.5s; pointer-events: none; opacity: 0;
}
.global-loading.show { opacity: 1; pointer-events: auto; }
.loading-spinner {
    width: 40px; height: 40px; border: 3px solid var(--border-light); border-top: 3px solid var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite;
}

/* Toast */
.toast-simple {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: #334155; color: white; box-shadow: var(--shadow-lg);
    padding: 12px 24px; border-radius: 50px;
    display: flex; align-items: center; gap: 10px;
    opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 2100;
}
/* Dark Mode 下 Toast 改为浅色或深黑色 */
[data-theme="dark"] .toast-simple { background: #2c2c2e; border: 1px solid var(--border-light); }

.toast-simple.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast-simple i { color: var(--success); }

/* ==========================================================================
   7. 移动端适配 (Responsive)
   ========================================================================== */
@media (max-width: 768px) {
    /* 布局变为全宽 */
    .sidebar { transform: translateX(-100%); width: 260px; box-shadow: var(--shadow-lg); border-right: none; }
    .sidebar.open { transform: translateX(0); }
    
    .mobile-menu-btn { display: block; }
    .main-content-wrapper { margin-left: 0; width: 100%; }
    
    .top-bar { padding: 0 20px; }
    .dashboard-grid { grid-template-columns: 1fr; padding: 20px; gap: 16px; }
    .stat-card { min-height: auto; flex-direction: row; align-items: center; justify-content: flex-start; padding: 16px; }
    .primary-card { flex-direction: column; align-items: flex-start; padding: 20px; }
    
    /* 调整小卡片图标位置 */
    .stat-card:not(.primary-card) .stat-icon-bg { margin-bottom: 0; margin-right: 16px; }
    .stat-card:not(.primary-card) .stat-info { display: flex; flex-direction: column; }
    .stat-value-sm { margin-top: 0; font-size: 18px; }
    
    /* 工具栏调整 */
    .table-section { padding: 0 20px 40px 20px; }
    .toolbar { width: 100%; flex-direction: column; }
    .search-wrapper, .search-wrapper input { width: 100%; }
    .filter-dropdown-wrapper, .filter-trigger { width: 100%; justify-content: center; }
    .dropdown-menu { width: 100%; }
    
    /* 表格容器 */
    .minimal-table-container { border-radius: 8px; }
    
    /* 覆盖层 */
    .mobile-nav-overlay {
        position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 45;
        opacity: 0; visibility: hidden; transition: all 0.3s;
    }
    .mobile-nav-panel { 
        position: fixed; top: 0; left: 0; height: 100%; width: 260px;
        background: var(--bg-sidebar); /* 适配变量 */
        z-index: 55; transform: translateX(-100%);
        transition: transform 0.3s ease; display: flex; flex-direction: column;
    }
    .mobile-nav-panel.open { transform: translateX(0); }
    .mobile-nav-overlay.open { opacity: 1; visibility: visible; }
    
    .mobile-nav-header { padding: 20px; border-bottom: 1px solid var(--border-light); display: flex; justify-content: space-between; font-weight: 600; color: var(--text-main); }
    
    .hidden-btn { display: none; }
}

/* 动画关键帧 */
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }
