/* ===== base.css ===== */
/* 全局重置与公共组件，所有主题共用 */

/* ---------- 1. CSS变量占位（具体值由主题文件覆盖） ---------- */
:root {
  /* 背景色 */
  --bg-primary: initial;
  --bg-secondary: initial;
  --bg-tertiary: initial;
  --bg-surface: initial;
  --bg-card: initial;
  --bg-hover: initial;
  --bg-active: initial;

  /* 文字色 */
  --text-primary: initial;
  --text-secondary: initial;
  --text-tertiary: initial;
  --text-white: initial;
  --text-accent: initial;

  /* 交易颜色 */
  --profit-positive: initial;  /* 上涨 / 盈利 */
  --profit-negative: initial;  /* 下跌 / 亏损 */

  /* 边框 */
  --border-color: initial;
  --border-light: initial;
  --border-dark: initial;
  --border-accent: initial;

  /* 阴影 */
  --shadow-sm: initial;
  --shadow-md: initial;
  --shadow-lg: initial;
  --shadow-card: initial;
  --shadow-card-hover: initial;

  /* 渐变（可选） */
  --gradient-primary: initial;
  --gradient-card: initial;

  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-xxl: 32px;
  
  /* 图表调色板 */
--chart-palette-orange: #ff6b35;  /* 主橙色 */
--chart-palette-blue: #2e86ab;    /* 主蓝色 */
--chart-palette-green: #4CAF50;   /* 成功绿 */
--chart-palette-red: #F44336;     /* 危险红 */
--chart-palette-yellow: #FFC107;  /* 警告黄 */
--chart-palette-teal: #009688;    /* 青绿色 */
--chart-palette-purple: #9C27B0;  /* 紫色 */
--chart-palette-pink: #E91E63;    /* 粉色 */
/* 图表专用变量 */
--chart-primary: var(--chart-palette-orange);
--chart-secondary: var(--chart-palette-blue);
--chart-success: var(--chart-palette-green);
--chart-danger: var(--chart-palette-red);
--chart-warning: var(--chart-palette-yellow);
--chart-info: var(--chart-palette-teal);
}

/* ---------- 2. 重置与基础 ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.2s ease, color 0.2s ease;
  min-height: 100vh;
}

/* ---------- 3. 滚动条 ---------- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb {
  background: var(--text-tertiary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ---------- 4. 链接 ---------- */
a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: var(--text-primary);
}

/* ---------- 5. 导航栏 (固定顶部) ---------- */
.quant-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--nav-bg, var(--bg-secondary));
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.brand-container {
  display: flex;
  align-items: center;
  margin-right: 48px;
  gap: 12px;
}
.brand-logo {
  width: 40px;
  height: 40px; 
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-white);
  font-weight: 700;
  font-size: 20px;
  box-shadow: var(--shadow-card);
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}
.brand-slogan {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 1.5px;
  font-family: 'SimSun', serif;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 4px;
}
/* 导航菜单项 - 基础样式 */
.nav-item {
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 44px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative; /* 为下划线伪元素预留 */
}

/* 悬停效果：半透明背景 + 文字提亮 */
.nav-item:hover {
  background: color-mix(in srgb, var(--bg-hover) 15%, transparent);
  color: var(--text-primary);
}

/* 激活状态：去掉背景色，改用底部边框 + 强调色文字 */
.nav-item.active {
  color: var(--text-accent);
  font-weight: 600;
  background: transparent;
}
.nav-item.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--border-accent);
  border-radius: 2px 2px 0 0;
}
.nav-icon {
  margin-right: 8px;
  font-size: 14px;
}
.nav-arrow {
  margin-left: 6px;
  font-size: 9px;
  opacity: 0.6;
  transition: transform 0.2s;
}

/* 下拉菜单 */
.dropdown-container {
  position: relative;
}
.dropdown-content {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  padding: 4px 0;
  display: none;
  z-index: 1001;
}
.dropdown-content.show {
  display: block;
}
.dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: background 0.15s;
}
.dropdown-item:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}
.dropdown-item .nav-icon {
  width: 20px;
  text-align: center;
}

/* 右侧功能区 */
.nav-right {
  display: flex;
  align-items: center;
  margin-left: auto;
  gap: 16px;
}

/* 主题切换器 */
.theme-selector {
  position: relative;
}
.theme-current {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: transparent;          /* 去除背景色块 */
  border: 1px solid transparent;    /* 默认透明边框，悬停时显示 */
  border-radius: 30px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.theme-current:hover {
  border-color: var(--border-light);
  background: color-mix(in srgb, var(--bg-hover) 10%, transparent);
}
.theme-current .dropdown-arrow {
  transition: transform 0.3s;
}
.theme-icon {
  display: flex;
  align-items: center;
}
.theme-text {
  color: var(--text-primary);
}
.dropdown-arrow {
  font-size: 10px;
  transition: transform 0.3s;
}
.theme-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 200px;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  padding: 6px 0;
  display: none;
  z-index: 1001;
}
.theme-dropdown.show {
  display: block;
  animation: dropdownFade 0.2s ease;
}
@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}
.theme-option {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;  /* 为下划线伪元素预留 */
  background: transparent;
  color: var(--text-secondary);
}

/* 悬停效果：半透明背景，与导航项一致 */
.theme-option:hover {
  background: color-mix(in srgb, var(--bg-hover) 15%, transparent);
  color: var(--text-primary);
}

/* 激活状态：去掉背景色，使用底部下划线 + 强调色文字 */
.theme-option.active {
  background: transparent;
  color: var(--text-accent);
  font-weight: 600;
}
.theme-option.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 16px;   /* 与内边距左对齐 */
  right: 16px;  /* 与内边距右对齐 */
  height: 2px;
  background: var(--border-accent);
  border-radius: 2px 2px 0 0;
}

/* 对勾图标默认隐藏，激活时显示 */
.theme-check {
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.2s;
}
.theme-option.active .theme-check {
  opacity: 1;
}

/* 系统状态组件 */
.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent;          /* 去除背景 */
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 2px 8px;
  transition: border-color 0.2s;
}
.nav-status:hover {
  border-color: var(--border-accent);
}
.status-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;  
}
.status-icon {
  color: var(--text-tertiary);
  font-size: 12px;
}
.status-content {
  display: flex;
  flex-direction: column;
}
.status-label {
  font-size: 8px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.status-value {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
  font-family: 'SF Mono', monospace;
}

/* 交易日状态标签 */
.status-trading { color: #26a69a; }
.status-nontrading { color: #f23645; }
.status-pending { color: #ff9800; }

/* 二级导航 (若有) */
.sub-nav {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 44px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 24px;
  overflow-x: auto;
  z-index: 999;
}
.sub-nav-item {
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s;
}
.sub-nav-item:hover {
  color: var(--text-primary);
}
.sub-nav-item.active {
  color: var(--text-accent);
  border-bottom: 2px solid var(--text-accent);
}

/* ---------- 6. 通用卡片 ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}
.card-body {
  padding: var(--space-lg);
}

/* ---------- 7. 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}
.btn-primary {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: var(--text-white);
}
.btn-primary:hover {
  background: var(--text-accent);
  filter: brightness(1.1);
}

/* 按钮扩展（独立类，适配各页面） */
.refresh-all-btn,
.benchmark-param-btn,
.chart-btn,
.gfi-action-button,
.refresh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
}
.refresh-all-btn:hover,
.benchmark-param-btn:hover,
.chart-btn:hover,
.gfi-action-button:hover,
.refresh-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.benchmark-param-btn-primary {
  background: var(--text-accent);
  border-color: var(--text-accent);
  color: var(--text-white);
}
.benchmark-param-btn-primary:hover {
  background: var(--text-accent);
  filter: brightness(1.1);
}

.medium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}
.medium-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: var(--border-light);
}

/* ---------- 8. 通用表格 ---------- */
.table-container {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-primary);
}
.table th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 12px;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  white-space: nowrap;
}
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 13px;
}
.table tr:hover {
  background: var(--bg-hover);
}
.table tbody tr:nth-child(even) {
  background: var(--bg-tertiary);
}
.table tbody tr:nth-child(even):hover {
  background: var(--bg-hover);
}

/* ---------- 9. 数字字体优化 ---------- */
.number-cell,
[data-tnum="true"] {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-feature-settings: "tnum", "lnum";
  font-weight: 600;
}

/* ---------- 10. 盈利/亏损颜色 ---------- */
.profit-positive {
  color: var(--profit-positive) !important;
}
.profit-negative {
  color: var(--profit-negative) !important;
}

/* ---------- 11. 页脚 ---------- */
.main-footer {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-tertiary);
  font-size: 12px;
  border-top: 1px solid var(--border-color);
  margin-top: 24px;
}

/* ---------- 12. 通用页面头部 ---------- */
.main-header {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-card);
  position: relative; /* 为伪元素提供定位基准 */
  margin-top: 4px;    /* 可选，为彩带留出空间，避免被导航栏遮挡 */
}
.main-header::before {
  content: '';
  position: absolute;
  top: -6px;                 /* 保持与标题的间距 */
  left: 5px;                   /* 宽度100% */
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, 
    var(--text-accent, #2962FF), 
    transparent
  );
  border-radius: var(--radius-lg);  /* 与标题圆角相同 */
  z-index: 1;
  pointer-events: none;
}
.main-header h1 {
  color: var(--text-primary);
  font-size: 32px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}
.main-header p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  max-width: 800px;
}

/* ---------- 13. 性能指标卡片网格 ---------- */
.performance-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

/* 指标卡片（基于通用卡片） */
.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}
.metric-card .metric-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.metric-card .metric-icon {
  width: 36px;
  height: 36px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.metric-card .metric-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}
.metric-card .metric-desc {
  font-size: 11px;
  color: var(--text-tertiary);
}
.metric-card .metric-value-large {
  font-size: 28px;
  font-weight: 700;
  font-family: 'SF Mono', monospace;
  margin: 8px 0;
}
.metric-card .metric-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}
.drawdown {
  color: var(--text-accent);
}

/* ---------- 14. 图表容器 ---------- */
.chart-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.chart-container .chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.chart-container .chart-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.chart-container .chart-subtitle {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.chart-container .chart-actions {
  display: flex;
  gap: 8px;
}

/* ---------- 15. 通用表格容器（高级） ---------- */
.table-container {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-top: 20px;
  box-shadow: var(--shadow-card);
}
.table-container .table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.table-container table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.table-container th {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  position: sticky;
  top: 0;
  white-space: nowrap;
}
.table-container td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}
.table-container tr:hover {
  background: var(--bg-hover);
}
.table-container tbody tr:nth-child(even) {
  background: var(--bg-tertiary);
}
.table-container tbody tr:nth-child(even):hover {
  background: var(--bg-hover);
}

/* ---------- 16. 空状态 ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  margin: 20px 0;
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.7;
}
.empty-state .empty-title {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.empty-state .empty-desc {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 20px;
}

/* ---------- 17. 市场状态指示器 ---------- */
.state-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}
.state-extreme-fear {
  background: rgba(239,83,80,0.15);
  color: #ef5350;
}
.state-fear {
  background: rgba(255,152,0,0.15);
  color: #ff9800;
}
.state-neutral {
  background: rgba(120,123,134,0.15);
  color: var(--text-tertiary);
}
.state-greed {
  background: rgba(38,166,154,0.15);
  color: #26a69a;
}
.state-extreme-greed {
  background: rgba(38,166,154,0.15);
  color: #26a69a;
}

/* ---------- 18. GFI 专用样式 ---------- */
.gfi-stat-value {
  font-size: 28px;
  font-weight: 700;
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  margin: 8px 0;
}
.gfi-stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.gfi-state-indicator {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  background: var(--bg-tertiary);
  color: var(--text-primary);
}
.gfi-state-indicator.state-extreme-fear {
  background: rgba(239,83,80,0.15);
  color: #ef5350;
}
.gfi-state-indicator.state-fear {
  background: rgba(255,152,0,0.15);
  color: #ff9800;
}
.gfi-state-indicator.state-neutral {
  background: rgba(120,123,134,0.15);
  color: var(--text-tertiary);
}
.gfi-state-indicator.state-greed {
  background: rgba(38,166,154,0.15);
  color: #26a69a;
}
.gfi-state-indicator.state-extreme-greed {
  background: rgba(38,166,154,0.15);
  color: #26a69a;
}

/* ---------- 19. 参数面板 ---------- */
.parameter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.parameter-section {
  margin-bottom: 20px;
}
.parameter-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.parameter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.parameter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.parameter-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}
.parameter-input,
.parameter-select {
  padding: 8px 12px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 13px;
  transition: border-color 0.15s;
}
.parameter-input:focus,
.parameter-select:focus {
  outline: none;
  border-color: var(--border-accent);
}
.parameter-help {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 4px;
}
.parameter-actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.alert-success {
  background: #d4edda;
  color: #155724;
  padding: 15px;
  margin: 15px 0;
  border-radius: var(--radius-md);
  border: 1px solid #c3e6cb;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

/* ---------- 20. 页面主内容区域间距 ---------- */
.page-home .main-content {
  padding-top: 84px; /* 60px导航 + 24px间距 */
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}
.page-home.has-secondary-nav .main-content {
  padding-top: 128px; /* 60+44+24 */
}
body.no-subnav .main-content {
  padding-top: 84px;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

/* ---------- 21. 淡入动画 ---------- */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
  opacity: 0;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 22. 响应式调整 ---------- */
@media (max-width: 1200px) {
  .performance-metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
  .nav-status {
    gap: 4px;
  }
  .status-item {
    padding: 0 2px;
  }
  .status-item:not(:last-child)::after {
    height: 14px;
  }
  .status-label {
    font-size: 7px;
  }
  .status-value {
    font-size: 10px;
  }
}
}
@media (max-width: 1024px) {
  .brand-container {
    margin-right: 24px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .brand-name {
    font-size: 16px;
  }
}
@media (max-width: 900px) {
  .nav-status {
    display: none;
  }
}
@media (max-width: 768px) {
  .quant-nav {
    padding: 0 16px;
  }
  .nav-menu,
  .nav-right {
    display: none;
  }
  .brand-slogan {
    display: none;
  }
  .main-header h1 {
    font-size: 24px;
  }
  .performance-metrics {
    grid-template-columns: 1fr;
  }
} 
    .dropdown-submenu {
        padding: 4px 0;
        border-bottom: 1px solid var(--border-color-light);
    }
    
    .dropdown-submenu:last-child {
        border-bottom: none;
    }
    
    .dropdown-submenu-title {
        padding: 6px 12px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: var(--text-tertiary);
        background: var(--bg-tertiary);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .dropdown-submenu-title .nav-icon {
        font-size: 12px;
        opacity: 0.7;
    }
    
    .dropdown-item.sub-item {
        padding-left: 32px;
        font-size: 12px;
    }
    
    .dropdown-item.sub-item .nav-icon {
        font-size: 11px;
        opacity: 0.7;
    }

/* ===== 以下为补充样式（以补充样式为准） ===== */

/* 导航图标间距优化 */
.nav-item .nav-icon { width:20px; text-align:center; margin-right:8px; font-size:14px; }
/* 子菜单激活状态 */
.dropdown-item.active { background:var(--bg-active); color:var(--text-white); }
.dropdown-item.active .nav-icon { color:var(--text-white); }
/* 多级下拉菜单优化 */
.dropdown-submenu-title { padding:8px 16px 4px; font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; 
    color:var(--text-tertiary); background:transparent; border-bottom:1px solid var(--border-color); margin:4px 0; 
    display:flex; align-items:center; gap:8px; }
.dropdown-submenu:first-child .dropdown-submenu-title { margin-top:0; }
.dropdown-submenu:last-child .dropdown-submenu-title { border-bottom:none; }
.dropdown-item.sub-item { padding-left:32px; font-size:12px; color:var(--text-secondary); }
.dropdown-item.sub-item:hover { background:var(--bg-hover); color:var(--text-primary); }
/* 主题切换器图标显示控制 */
.theme-icon > span { display:inline-block; transition:opacity 0.2s; }
.theme-icon .momentum-icon, .theme-icon .mean-reversion-icon, .theme-icon .factor-icon, .theme-icon .arbitrage-icon { 
    opacity:0; position:absolute; }
[data-theme="momentum"] .theme-icon .momentum-icon, [data-theme="mean-reversion"] .theme-icon .mean-reversion-icon,
[data-theme="factor"] .theme-icon .factor-icon, [data-theme="arbitrage"] .theme-icon .arbitrage-icon { 
    opacity:1; position:relative; }
/* 导航菜单响应式优化 */
@media (max-width:1100px) { .nav-item { padding:0 12px; font-size:12px; } .brand-container { margin-right:24px; }
    .nav-status .status-item .status-value { font-size:11px; } }
@media (max-width:1024px) { .nav-menu .dropdown-container:nth-last-child(-n+2) { display:none; } .brand-slogan { display:none; } }
/* 下拉菜单动画 */
.dropdown-content { animation:dropdownSlide 0.2s ease-out; transform-origin:top center; }
@keyframes dropdownSlide { from { opacity:0; transform:translateY(-10px) scale(0.95); } 
    to { opacity:1; transform:translateY(0) scale(1); } }
/* 状态指示器 */
.status-item:not(:last-child)::after { content:''; position:absolute; right:0; top:50%; transform:translateY(-50%); 
    width:1px; height:16px; background:var(--border-light); }
/* 品牌标识悬停效果 */
.brand-container:hover .brand-name { color:var(--text-accent); transition:color 0.2s; }
/* 导航栏分割线 */
.nav-menu { position:relative; }
.nav-menu::before { content:''; position:absolute; left:0; top:50%; transform:translateY(-50%); 
    height:24px; width:1px; background:var(--border-color); margin-left:-12px; }