/* ========== CSS 变量 - 主题系统 ========== */
:root {
    --bg-0: #f0f2f5;
    --bg-1: #ffffff;
    --bg-2: #ffffff;
    --bg-fill-0: #f5f6f8;
    --bg-fill-1: #ebedf0;
    --text-0: #1c1f23;
    --text-1: #46494d;
    --text-2: #8a8f96;
    --text-3: #bbbfc4;
    --border: #e5e6eb;
    --primary: #3370ff;
    --primary-hover: #245bdb;
    --primary-light: rgba(51, 112, 255, 0.08);
    --primary-bg: rgba(51, 112, 255, 0.04);
    --success: #00b42a;
    --success-light: rgba(0, 180, 42, 0.08);
    --warning: #ff7d00;
    --warning-light: rgba(255, 125, 0, 0.08);
    --danger: #f53f3f;
    --danger-light: rgba(245, 63, 63, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 6px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

[theme-mode="dark"] {
    --bg-0: #17171a;
    --bg-1: #232326;
    --bg-2: #2e2e32;
    --bg-fill-0: #2a2a2e;
    --bg-fill-1: #3a3a3e;
    --text-0: #f0f0f5;
    --text-1: #c9cdd4;
    --text-2: #86909c;
    --text-3: #4e5969;
    --border: #3a3a3e;
    --primary: #4e83fd;
    --primary-hover: #3d6ee6;
    --primary-light: rgba(78, 131, 253, 0.15);
    --primary-bg: rgba(78, 131, 253, 0.06);
    --success-light: rgba(0, 180, 42, 0.12);
    --warning-light: rgba(255, 125, 0, 0.12);
    --danger-light: rgba(245, 63, 63, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.35);
}

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background-color: var(--bg-0);
    color: var(--text-0);
    min-height: 100vh;
    transition: background-color var(--transition), color var(--transition);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ========== 顶部导航栏 ========== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    transition: background var(--transition);
}

[theme-mode="dark"] .header {
    background: rgba(35, 35, 38, 0.85);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-0);
    letter-spacing: -0.01em;
}

.header-left svg {
    width: 22px;
    height: 22px;
    color: var(--primary);
}

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

.header-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    color: var(--text-2);
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition);
}

.header-btn:hover {
    background: var(--bg-fill-0);
    color: var(--text-0);
}

.header-btn svg {
    width: 18px;
    height: 18px;
    vertical-align: middle;
}

/* ========== 主内容区 ========== */
.content {
    max-width: 1140px;
    margin: 0 auto;
    padding: 24px;
}

/* ========== 卡片 ========== */
.card {
    background: var(--bg-1);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    transition: background-color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

/* ========== 搜索栏 ========== */
.search-box {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input {
    flex: 1;
    padding: 11px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-fill-0);
    color: var(--text-0);
    font-size: 14px;
    outline: none;
    transition: all var(--transition);
}

.search-input::placeholder {
    color: var(--text-3);
}

.search-input:focus {
    border-color: var(--primary);
    background: var(--bg-1);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.btn-primary {
    padding: 11px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    box-shadow: 0 2px 6px rgba(51, 112, 255, 0.25);
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px rgba(51, 112, 255, 0.35);
    transform: translateY(-1px);
}

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

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.btn-primary.loading {
    pointer-events: none;
    opacity: 0.7;
}

/* ========== Tabs ========== */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 16px;
}

.tab-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
}

.tab-item:hover {
    color: var(--text-0);
}

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

/* ========== 用量窗口 ========== */
.window-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.window-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.window-header-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.window-header-detail {
    color: var(--text-2);
    font-size: 13px;
}

.progress-bar-track {
    background: var(--bg-fill-1);
    border-radius: 6px;
    height: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    background-image: linear-gradient(90deg, var(--success) 0%, var(--success) 100%);
}

.progress-bar-fill.warning {
    background-image: linear-gradient(90deg, var(--warning), #ffab40);
}

.progress-bar-fill.danger {
    background-image: linear-gradient(90deg, var(--danger), #ff6b6b);
}

.window-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.window-pct {
    font-weight: 600;
    font-size: 14px;
}

.text-danger {
    color: var(--danger);
    font-weight: 600;
}

.text-success {
    color: var(--success);
}

.text-warning {
    color: var(--warning);
}

.text-muted {
    color: var(--text-2);
}

.text-center {
    text-align: center;
    padding: 8px 0;
}

/* ========== 统计卡片 ========== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    background: var(--bg-fill-0);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.stat-item:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.stat-label {
    font-size: 12px;
    color: var(--text-2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-0);
    letter-spacing: -0.02em;
}

.stat-value.primary { color: var(--primary); }
.stat-value.success { color: var(--success); }
.stat-value.warning { color: var(--warning); }
.stat-value.danger { color: var(--danger); }

/* ========== 内容区 Tab ========== */
.content-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 16px;
    background: var(--bg-1);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    padding: 4px;
    box-shadow: var(--shadow-sm);
}

.content-tab-item {
    flex: 1;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-align: center;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    user-select: none;
}

.content-tab-item:hover {
    color: var(--text-0);
    background: var(--bg-fill-0);
}

.content-tab-item.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

/* ========== 概览网格 ========== */
.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.overview-grid > .card {
    margin-bottom: 0;
}

/* ========== 面板头部栏 ========== */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.panel-title {
    font-weight: 600;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

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

.btn-text {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background var(--transition);
}

.btn-text:hover {
    background: var(--primary-light);
}

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

/* ========== 图表 ========== */
.chart-card {
    margin-bottom: 16px;
}

.chart-card:last-child {
    margin-bottom: 0;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-2);
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.chart-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.chart-legend-line {
    width: 16px;
    height: 2px;
    border-radius: 1px;
}

.chart-container {
    width: 100%;
    overflow-x: auto;
}

.chart-container svg {
    display: block;
    width: 100%;
    height: auto;
}

.chart-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-3);
    font-size: 14px;
}

/* ========== 图表大图模态框 ========== */
.chart-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.chart-modal {
    background: var(--bg-1);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: calc(100vw - 40px);
    max-width: 1200px;
    max-height: 90vh;
    overflow: auto;
    padding: 20px 24px;
}

@media screen and (max-width: 768px) {
    .chart-modal-overlay {
        padding: 10px;
    }

    .chart-modal {
        width: calc(100vw - 20px);
        max-width: none;
        padding: 16px;
    }

    .chart-modal-body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .chart-modal-body svg {
        min-width: 700px;
    }
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chart-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-2);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    line-height: 1;
    transition: all var(--transition);
}

.chart-modal-close:hover {
    background: var(--bg-fill-0);
    color: var(--text-0);
}

.chart-modal-body svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ========== 统计摘要 ========== */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.stats-summary-item {
    text-align: center;
    padding: 12px 8px;
    background: var(--bg-fill-0);
    border-radius: var(--radius-sm);
}

.stats-summary-value {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stats-summary-label {
    font-size: 12px;
    color: var(--text-2);
    margin-top: 4px;
}


/* ========== 令牌信息 ========== */
.token-info-row {
    padding: 6px 0;
    color: var(--text-2);
    font-size: 14px;
    line-height: 1.8;
}

/* ========== Tag ========== */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    line-height: 1.4;
}

.tag:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.tag-grey { background: #f2f3f5; color: #4e5969; }
.tag-blue { background: #e8f3ff; color: #165dff; }
.tag-purple { background: #f5e8ff; color: #722ed1; }
.tag-green { background: #e8ffea; color: #00b42a; }
.tag-orange { background: #fff7e8; color: #d25f00; }
.tag-red { background: #ffece8; color: #cb2634; }
.tag-cyan { background: #e8fffb; color: #0fc6c2; }
.tag-amber { background: #fef3c7; color: #92400e; }
.tag-indigo { background: #e8ecff; color: #4338ca; }
.tag-pink { background: #ffe8f1; color: #cb245b; }
.tag-teal { background: #e8fff8; color: #0d9677; }
.tag-violet { background: #f0e8ff; color: #6d28d9; }
.tag-yellow { background: #fefce8; color: #854d0e; }
.tag-lime { background: #f0ffe8; color: #3f6212; }
.tag-light-blue { background: #e8f7ff; color: #0284c7; }

[theme-mode="dark"] .tag-grey { background: #3a3a3e; color: #c9cdd4; }
[theme-mode="dark"] .tag-blue { background: #1a2e5a; color: #6aa1ff; }
[theme-mode="dark"] .tag-purple { background: #2d1a4e; color: #b18aff; }
[theme-mode="dark"] .tag-green { background: #1a3a20; color: #6be88b; }
[theme-mode="dark"] .tag-orange { background: #3a2410; color: #ffab5c; }
[theme-mode="dark"] .tag-red { background: #3a1a1a; color: #ff8f8f; }
[theme-mode="dark"] .tag-cyan { background: #103a37; color: #5aebe7; }
[theme-mode="dark"] .tag-amber { background: #3a3010; color: #ffd05c; }
[theme-mode="dark"] .tag-indigo { background: #1a1a4e; color: #8b8fff; }
[theme-mode="dark"] .tag-pink { background: #3a1a2e; color: #ff8fbb; }
[theme-mode="dark"] .tag-teal { background: #103a2e; color: #5aebcc; }
[theme-mode="dark"] .tag-violet { background: #2d1a4e; color: #b18aff; }
[theme-mode="dark"] .tag-yellow { background: #3a3510; color: #ffe05c; }
[theme-mode="dark"] .tag-lime { background: #253a10; color: #b0eb5a; }
[theme-mode="dark"] .tag-light-blue { background: #10303a; color: #5ac4eb; }

/* ========== 数据表格 ========== */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    text-align: left;
    padding: 12px 10px;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 2px solid var(--border);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.data-table th:hover {
    color: var(--primary);
}

.data-table th .sort-icon {
    margin-left: 4px;
    font-size: 11px;
    color: var(--text-3);
    transition: color var(--transition);
}

.data-table th .sort-icon.active {
    color: var(--primary);
}

.data-table td {
    padding: 11px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.data-table tbody tr {
    cursor: pointer;
    transition: background var(--transition);
}

.data-table tbody tr:hover {
    background: var(--primary-bg);
}

.data-table tbody tr:nth-child(even):not(.expand-row) {
    background: var(--bg-fill-0);
}

.data-table tbody tr:nth-child(even):not(.expand-row):hover {
    background: var(--primary-bg);
}

/* ========== 展开行详情 ========== */
.expand-row td {
    padding: 0;
    cursor: default;
}

.expand-row:hover {
    background: transparent !important;
}

.expand-content {
    padding: 14px 20px;
    background: var(--bg-fill-0);
    border-bottom: 1px solid var(--border);
}

.detail-section {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.detail-section:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-2);
    font-weight: 600;
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.detail-value {
    color: var(--warning);
    font-size: 13px;
    line-height: 1.7;
    word-break: break-word;
}

.detail-note {
    color: var(--text-3);
    font-size: 12px;
    margin-top: 4px;
    font-style: italic;
}

/* ========== 分页器 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pagination button {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-1);
    color: var(--text-0);
    font-size: 13px;
    cursor: pointer;
    min-width: 36px;
    text-align: center;
    transition: all var(--transition);
}

.pagination button:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-bg);
}

.pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    font-weight: 600;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pagination .page-info {
    color: var(--text-2);
    font-size: 13px;
}

.pagination select {
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-1);
    color: var(--text-0);
    font-size: 13px;
    cursor: pointer;
    transition: border-color var(--transition);
}

.pagination select:hover {
    border-color: var(--primary);
}

.page-jump {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: var(--text-2);
}

.page-jump input {
    width: 50px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-1);
    color: var(--text-0);
    font-size: 13px;
    text-align: center;
    transition: border-color var(--transition);
}

.page-jump input:focus {
    border-color: var(--primary);
    outline: none;
}

/* ========== 移动端卡片 ========== */
.mobile-card {
    background: var(--bg-1);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.mobile-card:active {
    border-color: var(--primary);
}

.mobile-card-body {
    padding: 12px 16px;
}

.mobile-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-card-row:last-child {
    border-bottom: none;
}

.mobile-card-label {
    color: var(--text-2);
    font-weight: 500;
    font-size: 13px;
    flex-shrink: 0;
}

.mobile-card-value {
    text-align: right;
    flex: 1;
    margin-left: 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-0);
}

.mobile-card-expand-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background: var(--bg-fill-0);
    cursor: pointer;
    gap: 6px;
    color: var(--primary);
    font-weight: 500;
    font-size: 14px;
    user-select: none;
    transition: background var(--transition);
}

.mobile-card-expand-btn:hover {
    background: var(--bg-fill-1);
}

.mobile-card-detail {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.mobile-card-detail-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.mobile-card-detail-section:last-child {
    border-bottom: none;
}

/* ========== 移动端分页 ========== */
.mobile-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 12px 0;
}

.mobile-pagination .nav-arrow {
    cursor: pointer;
    font-size: 20px;
    color: var(--text-0);
    padding: 4px;
    user-select: none;
    transition: color var(--transition);
}

.mobile-pagination .nav-arrow.disabled {
    color: var(--text-3);
    cursor: not-allowed;
}

.mobile-pagination .page-display {
    font-size: 15px;
    color: var(--text-0);
    font-weight: 500;
}

.mobile-jump {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
    font-size: 14px;
    color: var(--text-1);
}

.mobile-jump input {
    width: 50px;
    padding: 4px 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    background: var(--bg-1);
    color: var(--text-0);
    font-size: 14px;
    text-align: center;
}

/* ========== Toast 通知 ========== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: #fff;
    box-shadow: var(--shadow-lg);
    animation: toastIn 0.3s ease;
    max-width: 400px;
    word-break: break-word;
    backdrop-filter: blur(4px);
}

.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
.toast.warning { background: var(--warning); }

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

/* ========== 加载动画 ========== */
.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
    vertical-align: middle;
}

.spinner-dark {
    border-color: var(--border);
    border-top-color: var(--primary);
}

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

.loading-overlay {
    text-align: center;
    padding: 40px;
    color: var(--text-2);
}

/* ========== 辅助类 ========== */
.hidden { display: none !important; }
.flex { display: flex; }
.gap-8 { gap: 8px; }
.gap-4 { gap: 4px; }
.items-center { align-items: center; }


/* ========== 响应式 ========== */
@media screen and (max-width: 768px) {
    .content {
        padding: 12px;
    }

    .card {
        border-radius: 12px;
        padding: 12px;
    }

    .header {
        padding: 0 12px;
    }

    .header-left {
        font-size: 15px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        width: 100%;
    }

    .btn-primary {
        width: 100%;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .content-tab-item {
        padding: 8px 12px;
        font-size: 13px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 13px;
    }

    .tag {
        font-size: 12px;
        padding: 2px 6px;
    }

    .toast-container {
        right: 12px;
        left: 12px;
    }

    .toast {
        max-width: none;
    }

    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    .content {
        padding: 8px;
    }

    .card {
        padding: 10px;
    }

    .tag {
        font-size: 11px;
        padding: 1px 4px;
    }

    .btn-text {
        font-size: 12px;
        padding: 4px 8px;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px;
    }

    .stat-item {
        padding: 8px 10px;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-value {
        font-size: 14px;
    }
}
