/* AgomTradePro - 宽屏优化布局 */
/* ========================================
   CSS Reset & Base
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 颜色系统 */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;

    /* 中性色 */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;

    /* 文本色 */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-light: #cbd5e1;

    /* 尺寸 */
    --header-height: 64px;
    --data-nav-width: 240px;
    --footer-height: 48px;

    /* 间距 */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* 圆角 */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* 阴影 */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ========================================
   顶部导航栏 - 一级菜单
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 var(--spacing-xl);
}

.header-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.header-logo:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* 一级菜单导航 */
.top-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* Terminal 入口按钮 - Geek 风格 */
.terminal-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 14px;
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    border: 1px solid #00ff41;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.15);
    position: relative;
    overflow: hidden;
}

.terminal-entry-btn:hover {
    background: #00ff41;
    color: #0a0a0a;
    box-shadow: 0 0 16px rgba(0, 255, 65, 0.4);
    text-decoration: none;
}

.terminal-entry-icon {
    display: inline-block;
}

.terminal-entry-btn::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #00ff41;
    margin-left: 2px;
    animation: terminal-blink 1s step-end infinite;
    vertical-align: middle;
}

.terminal-entry-btn:hover::after {
    background: #0a0a0a;
}

@keyframes terminal-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.top-nav-item {
    position: relative;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.dropdown-trigger {
    background: none;
    border: none;
    font: inherit;
    line-height: inherit;
}

.dropdown-trigger:focus-visible,
.top-nav-item:focus-visible,
.dropdown-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.top-nav-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.top-nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* 下拉菜单容器 */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: var(--spacing-sm) 0;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown:focus-within .dropdown-menu,
.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-item {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s ease;
}

.dropdown-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.dropdown-divider {
    height: 1px;
    margin: var(--spacing-sm) 0;
    background-color: var(--border-color);
}

.dropdown-section-title {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ========================================
   主布局容器
   ======================================== */
.layout {
    display: flex;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height) - var(--footer-height));
}

/* ========================================
   左侧数据导航 - 二级菜单
   ======================================== */
.data-nav {
    position: fixed;
    left: 0;
    top: var(--header-height);
    bottom: var(--footer-height);
    width: var(--data-nav-width);
    background: var(--bg-primary);
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    z-index: 900;
}

.data-nav-section {
    padding: var(--spacing-md);
}

.data-nav-section + .data-nav-section {
    border-top: 1px solid var(--border-light);
}

.data-nav-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-sm);
    padding-left: var(--spacing-sm);
}

.data-nav-item {
    display: flex;
    align-items: center;
    padding: var(--spacing-sm) var(--spacing-sm);
    margin-bottom: 2px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: all 0.15s ease;
}

.data-nav-item:hover {
    background-color: var(--bg-tertiary);
    color: var(--primary-color);
}

.data-nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 500;
}

.data-nav-item::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: currentColor;
    margin-right: var(--spacing-sm);
    opacity: 0.5;
}

.data-nav-item:hover::before,
.data-nav-item.active::before {
    opacity: 1;
}

/* ========================================
   主内容区域
   ======================================== */
.main-content {
    flex: 1;
    margin-left: var(--data-nav-width);
    padding: var(--spacing-xl);
    max-width: calc(1920px - var(--data-nav-width));
    width: 100%;
}

/* 全宽内容区域（无左侧导航） */
.main-content-full {
    padding: var(--spacing-xl);
    padding-top: calc(var(--header-height) + var(--spacing-xl));
    max-width: 1920px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   页脚
   ======================================== */
.footer {
    height: var(--footer-height);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    margin-left: var(--data-nav-width);
}

/* 全宽页脚（无左侧导航） */
.footer-full {
    height: var(--footer-height);
    background: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    max-width: calc(1920px - var(--data-nav-width));
    margin: 0 auto;
    padding: 8px var(--spacing-xl);
    gap: 8px;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 12px;
}

.footer-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-content a:hover {
    color: var(--primary-color-dark);
}

.footer-content .footer-disclaimer {
    color: #b45309;
    font-size: 11px;
}

/* ========================================
   响应式设计
   ======================================== */
@media (max-width: 1440px) {
    :root {
        --data-nav-width: 200px;
    }
}

@media (max-width: 1024px) {
    .data-nav {
        width: 180px;
    }

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

    .footer {
        margin-left: 180px;
    }
}

@media (max-width: 768px) {
    .header {
        height: auto;
        min-height: var(--header-height);
    }

    .header-container {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
        padding: var(--spacing-sm) var(--spacing-md);
    }

    .top-nav {
        display: flex;
        order: 3;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        gap: var(--spacing-xs);
        padding-bottom: var(--spacing-xs);
    }

    .top-nav-item {
        flex: 0 0 auto;
    }

    .dropdown {
        flex: 0 0 auto;
    }

    .dropdown-menu {
        position: absolute;
        left: 0;
        right: auto;
        min-width: 220px;
        max-width: calc(100vw - 32px);
        transform: translateY(-4px);
    }

    .data-nav {
        display: none;
    }

    .main-content {
        margin-left: 0;
        padding: var(--spacing-md);
    }

    .main-content-full {
        padding: var(--spacing-md);
    }

    .footer {
        margin-left: 0;
    }
}

/* ========================================
   通用组件样式
   ======================================== */
.card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-sm);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.card-body {
    color: var(--text-secondary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

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

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

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background-color: var(--border-color);
}

.btn-success {
    background-color: var(--success-color);
    color: #fff;
}

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

.btn-danger {
    background-color: var(--danger-color);
    color: #fff;
}

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

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

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

table thead {
    background-color: var(--bg-tertiary);
}

table th,
table td {
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}

table th {
    font-weight: 600;
    color: var(--text-secondary);
}

table tbody tr:hover {
    background-color: var(--bg-secondary);
}

/* 表单样式 */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-sm);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 13px;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-light);
}

/* 徽章样式 */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 2px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.badge-primary {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.badge-success {
    background-color: #d1fae5;
    color: var(--success-color);
}

.badge-warning {
    background-color: #fef3c7;
    color: var(--warning-color);
}

.badge-danger {
    background-color: #fee2e2;
    color: var(--danger-color);
}

/* 加载状态 */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: app-spin 0.8s linear infinite;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: var(--spacing-xl);
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
}

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

/* ========================================
   首页专属样式
   ======================================== */
.page-header {
    text-align: center;
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.page-header .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.page-header .description {
    font-size: 14px;
    color: var(--text-muted);
}

/* 卡片网格 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.card-link {
    text-decoration: none;
    color: inherit;
}

.card-link .card {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.card-link:hover .card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-md);
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
}

.card .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.card-desc {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: var(--spacing-md);
}

.card-status {
    display: inline-block;
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
    margin-bottom: var(--spacing-md);
}

.status-done {
    background-color: #d1fae5;
    color: var(--success-color);
}

.status-pending {
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
}

.card-meta {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.meta-item {
    padding: 2px var(--spacing-sm);
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--text-secondary);
}

.card-tags {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
}

.tag {
    padding: 4px var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.tag-recovery { background: #d1fae5; color: #059669; }
.tag-overheat { background: #fee2e2; color: #dc2626; }
.tag-stagflation { background: #fef3c7; color: #d97706; }
.tag-deflation { background: #dbeafe; color: #2563eb; }
.tag-info { background: #e0e7ff; color: #4f46e5; }
.tag-warning { background: #fef3c7; color: #d97706; }
.tag-error { background: #fee2e2; color: #dc2626; }

.card-features {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-light);
}

.card-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.card-features li {
    font-size: 12px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.card-features li::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--primary-color);
}

/* Section 样式 */
.section {
    margin-bottom: var(--spacing-xl);
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--border-color);
}

/* 架构图 */
.architecture-diagram {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.arch-layer {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    text-align: center;
}

.arch-interface { background: #dbeafe; border-left: 4px solid #3b82f6; }
.arch-application { background: #d1fae5; border-left: 4px solid #10b981; }
.arch-domain { background: #fef3c7; border-left: 4px solid #f59e0b; }
.arch-infra { background: #e2e8f0; border-left: 4px solid #64748b; }

.arch-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: var(--spacing-xs);
}

.arch-items {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 快速开始 */
.quick-start-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.qs-card {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.qs-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.qs-code {
    background: var(--bg-tertiary);
    padding: var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-family: monospace;
    font-size: 12px;
    margin-bottom: var(--spacing-sm);
}

.qs-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 进度条 */
.progress-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.progress-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.progress-label {
    font-weight: 500;
}

.progress-percent {
    font-size: 12px;
    color: var(--text-muted);
}

.progress-bar {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
}

.progress-fill {
    height: 100%;
    border-radius: var(--radius-sm);
    transition: width 0.3s ease;
}

.progress-complete {
    background: var(--success-color);
    width: 100%;
}

.progress-empty {
    width: 0;
}

.progress-details {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    font-size: 12px;
    color: var(--text-secondary);
}

.check-mark {
    color: var(--success-color);
    font-weight: 600;
    margin-right: 4px;
}

/* 功能网格 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.feature-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feature-title {
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.feature-desc {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 技术栈网格 */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.tech-item {
    background: var(--bg-primary);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.tech-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: var(--spacing-xs);
}

.tech-value {
    font-weight: 500;
}

/* 管理入口链接 */
.admin-links {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.admin-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 200px;
}

.admin-link:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.admin-icon {
    font-size: 24px;
}

.admin-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.admin-desc {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ========================================
   Toast 通知系统
   ======================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    min-width: 300px;
    max-width: 400px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    pointer-events: auto;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
}

.toast.toast-show {
    opacity: 1;
    transform: translateX(0);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
    font-size: 14px;
    color: var(--text-primary);
    word-wrap: break-word;
}

/* Toast 类型样式 */
.toast-success {
    border-left: 4px solid var(--success-color);
}

.toast-success .toast-icon {
    color: var(--success-color);
}

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

.toast-error .toast-icon {
    color: var(--danger-color);
}

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

.toast-warning .toast-icon {
    color: var(--warning-color);
}

.toast-info {
    border-left: 4px solid var(--primary-color);
}

.toast-info .toast-icon {
    color: var(--primary-color);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   进度条组件
   ======================================== */
.sync-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-left: 12px;
    flex: 1;
    max-width: 300px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    border-radius: 3px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 同步按钮动画 */
.sync-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.sync-icon.syncing {
    animation: rotate 1s linear infinite;
}

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

/* ========================================
   首页新增样式
   ======================================== */

/* 系统状态概览 */
.system-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.overview-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.overview-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.overview-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.regime-icon {
    background: linear-gradient(135deg, #A7C7F7, #F4C2C2);
    color: white;
}

.data-icon {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
}

.signal-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.policy-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.overview-content {
    flex: 1;
}

.overview-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overview-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.overview-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 流程图 */
.flow-diagram {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.flow-layer {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    border-left: 4px solid;
    background: var(--bg-primary);
}

.flow-source {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-color: #0ea5e9;
}

.flow-collection {
    background: linear-gradient(135deg, #f5f3ff, #ede9fe);
    border-color: #8b5cf6;
}

.flow-process {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: #f97316;
}

.flow-decision {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.flow-output {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.flow-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.flow-items {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.flow-item {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.flow-arrow {
    text-align: center;
    font-size: 20px;
    color: var(--text-muted);
    margin: var(--spacing-xs) 0;
    line-height: 1;
}

.flow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-top: var(--spacing-md);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 13px;
    color: var(--text-secondary);
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-source { background: #0ea5e9; }
.dot-collection { background: #8b5cf6; }
.dot-process { background: #f97316; }
.dot-decision { background: #ef4444; }
.dot-output { background: #22c55e; }

/* Regime 四象限 */
.regime-quadrant {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    position: relative;
    margin-bottom: var(--spacing-lg);
    padding: 30px 0;
}

.quadrant-row {
    display: contents;
}

.quadrant-item {
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    text-align: center;
    position: relative;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
}

.quadrant-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.quadrant-overheat {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    border-color: #ef4444;
}

.quadrant-recovery {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #3b82f6;
}

.quadrant-stagflation {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    border-color: #eab308;
}

.quadrant-deflation {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #22c55e;
}

.quadrant-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.quadrant-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.quadrant-assets {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
}

.asset-tag {
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.regime-axis {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
}

.axis-label {
    position: absolute;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: var(--bg-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.axis-y {
    left: -40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: center;
}

.axis-x {
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .system-overview {
        grid-template-columns: 1fr;
    }

    .regime-quadrant {
        grid-template-columns: 1fr;
    }

    .axis-y {
        left: -30px;
    }

    .axis-x {
        bottom: -30px;
    }
}
