/* ============================================
   Finance Dark Theme - 专业金融风
   投资分析研报系统默认主题
   ============================================ */

:root {
  /* 背景色系 */
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-card: #1c2128;
  --bg-card-hover: #21262d;
  --bg-section: #131920;
  --bg-header: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
  --bg-primary-rgb: 13,17,23;

  /* 文字色系 */
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --text-heading: #f0f6fc;

  /* 强调色 */
  --accent-gold: #d4a843;
  --accent-gold-dim: rgba(212, 168, 67, 0.15);
  --accent-green: #3fb950;
  --accent-green-dim: rgba(63, 185, 80, 0.12);
  --accent-red: #f85149;
  --accent-red-dim: rgba(248, 81, 73, 0.12);
  --accent-blue: #58a6ff;
  --accent-blue-dim: rgba(88, 166, 255, 0.12);
  --accent-purple: #bc8cff;
  --accent-purple-dim: rgba(188, 140, 255, 0.12);
  --accent-orange: #d29922;
  --accent-orange-dim: rgba(210, 153, 34, 0.12);

  /* 边框 */
  --border-primary: #30363d;
  --border-secondary: #21262d;
  --border-accent: rgba(212, 168, 67, 0.3);

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-glow-gold: 0 0 20px rgba(212, 168, 67, 0.15);
  --shadow-glow-green: 0 0 20px rgba(63, 185, 80, 0.15);
  --shadow-glow-red: 0 0 20px rgba(248, 81, 73, 0.15);

  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

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

  /* 字体 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans SC', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  --font-number: 'SF Pro Display', 'DIN Alternate', var(--font-mono);

  /* 字号 */
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 32px;
  --text-4xl: 40px;
  --text-5xl: 48px;

  /* 评分色阶（绿=好，黄=一般，红=风险） */
  --score-good: #3fb950;
  --score-moderate: #d29922;
  --score-warning: #d4a843;
  --score-bad: #f85149;

  /* 评级色（绿=好，红=差） */
  --rating-strong-buy: #3fb950;
  --rating-buy: #7ee787;
  --rating-outperform: #56d364;
  --rating-neutral: #8b949e;
  --rating-underperform: #f85149;
  --rating-sell: #da3633;
}

/* ============================================
   基础重置
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--text-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

/* ============================================
   研报容器
   ============================================ */
.report-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

/* 顶部导航 */
.report-topnav {
  margin-bottom: var(--space-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  transition: all 0.2s;
}

.back-home:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.delete-report-btn {
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.delete-report-btn:hover {
  color: #f85149;
  border-color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}

/* ============================================
   总评卡片
   ============================================ */
.verdict-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: var(--space-xl);
  background: var(--bg-card);
  border: 2px solid var(--accent-gold);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow-glow-gold);
}

.verdict-left {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
}

.verdict-rating-badge {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: 4px;
}

.verdict-score-num {
  font-family: var(--font-number);
  font-size: var(--text-4xl);
  font-weight: 700;
}

.verdict-score-label {
  font-size: var(--text-lg);
  color: var(--text-muted);
}

.verdict-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-md);
}

.verdict-summary {
  font-size: var(--text-md);
  color: var(--text-primary);
  line-height: 1.9;
}

.verdict-prices {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.verdict-price-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.verdict-price-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.verdict-price-value {
  font-family: var(--font-number);
  font-size: var(--text-lg);
  font-weight: 700;
}

/* ============================================
   Header 区域
   ============================================ */
.report-header {
  background: var(--bg-header);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  margin-bottom: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.report-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green), var(--accent-blue));
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.stock-identity {
  flex: 1;
}

.stock-code {
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
}

.stock-name {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-top: var(--space-xs);
}

.market-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  margin-left: var(--space-sm);
  vertical-align: middle;
}

.market-badge.a-stock { background: var(--accent-red-dim); color: var(--accent-red); border: 1px solid rgba(248, 81, 73, 0.3); }
.market-badge.us-stock { background: var(--accent-blue-dim); color: var(--accent-blue); border: 1px solid rgba(88, 166, 255, 0.3); }
.market-badge.hk-stock { background: var(--accent-purple-dim); color: var(--accent-purple); border: 1px solid rgba(188, 140, 255, 0.3); }

.header-score {
  text-align: center;
  min-width: 140px;
}

.score-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-sm);
  position: relative;
}

.score-circle .score-value {
  font-family: var(--font-number);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1;
}

.score-circle .score-label {
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.rating-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 2px;
}

.rating-strong-buy { background: rgba(63, 185, 80, 0.2); color: var(--rating-strong-buy); border: 1px solid rgba(63, 185, 80, 0.4); }
.rating-buy { background: rgba(126, 231, 135, 0.15); color: var(--rating-buy); border: 1px solid rgba(126, 231, 135, 0.3); }
.rating-outperform { background: rgba(86, 211, 100, 0.15); color: var(--rating-outperform); border: 1px solid rgba(86, 211, 100, 0.3); }
.rating-neutral { background: rgba(210, 153, 34, 0.15); color: var(--rating-neutral); border: 1px solid rgba(210, 153, 34, 0.3); }
.rating-underperform { background: rgba(248, 81, 73, 0.15); color: var(--rating-underperform); border: 1px solid rgba(248, 81, 73, 0.3); }
.rating-sell { background: rgba(218, 54, 51, 0.15); color: var(--rating-sell); border: 1px solid rgba(218, 54, 51, 0.3); }

.header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md) var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-secondary);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.meta-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.meta-value {
  font-family: var(--font-number);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
}

.header-date {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-md);
}

.concept-tags {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-secondary);
}

.concept-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-weight: 500;
}

.concept-tag {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: var(--text-xs);
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border: 1px solid rgba(188, 140, 255, 0.2);
}

.report-nav-link {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 4px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border-secondary);
  transition: all 0.2s;
}

.report-nav-link:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.report-nav-link.active {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  font-weight: 600;
}

/* ============================================
   Section 通用样式
   ============================================ */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title .icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-primary), transparent);
  margin-left: var(--space-md);
}

/* ============================================
   Section 1: 股价走势
   ============================================ */
.price-trend-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-xl);
}

.chart-placeholder {
  background: var(--bg-section);
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius-md);
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.trend-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.trend-direction {
  font-size: var(--text-lg);
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  text-align: center;
}

.trend-direction.bullish {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.trend-direction.bearish {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.trend-direction.neutral {
  background: var(--accent-orange-dim);
  color: var(--accent-orange);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.trend-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.trend-tag {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 500;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
}

.key-levels {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.level-group-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.level-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-family: var(--font-number);
  font-size: var(--text-sm);
  font-weight: 600;
}

.level-item.support {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.level-item.resistance {
  background: var(--accent-red-dim);
  color: var(--accent-red);
}

.trend-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  padding: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-gold);
}

/* ============================================
   Section 2: 六维评分
   ============================================ */
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.score-grid-6 {
  grid-template-columns: repeat(6, 1fr);
}

.score-card {
  background: var(--bg-section);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  transition: all 0.2s ease;
}

.score-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-gold);
}

.score-card-title {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.score-card-value {
  font-family: var(--font-number);
  font-size: var(--text-4xl);
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.score-card-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-secondary);
  overflow: hidden;
  margin-top: var(--space-sm);
}

.score-card-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}

.radar-chart-container {
  display: flex;
  justify-content: center;
  padding: var(--space-lg);
}

/* ============================================
   商业模式分析
   ============================================ */
.business-model-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-secondary);
}

.bm-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: var(--space-md);
}

.bm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.bm-item {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.bm-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bm-value {
  font-size: var(--text-sm);
  color: var(--text-primary);
  line-height: 1.7;
}

.bm-revenue-structure {
  margin-bottom: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

.revenue-bars {
  margin-top: var(--space-sm);
}

.revenue-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 50px;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.revenue-bar-name {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.revenue-bar-track {
  height: 8px;
  background: var(--bg-secondary);
  border-radius: 4px;
  overflow: hidden;
}

.revenue-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.revenue-bar-ratio {
  font-family: var(--font-number);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-gold);
  text-align: right;
}

.bm-catalysts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

/* ============================================
   Section 3-6: 分析内容区
   ============================================ */
.analysis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.highlight-list, .risk-list {
  list-style: none;
}

.highlight-list li, .risk-list li {
  padding: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-xs);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.highlight-list li {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border-left: 3px solid var(--accent-green);
}

.risk-list li {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border-left: 3px solid var(--accent-red);
}

.financial-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-md);
}

.financial-table th, .financial-table td {
  padding: var(--space-sm) var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border-secondary);
  font-size: var(--text-sm);
}

.financial-table th {
  color: var(--text-muted);
  font-weight: 500;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.financial-table td {
  font-family: var(--font-number);
  color: var(--text-primary);
}

.financial-table .positive { color: var(--accent-green); }
.financial-table .negative { color: var(--accent-red); }

.indicator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.indicator-item {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
}

.indicator-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.indicator-value {
  font-family: var(--font-number);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.analysis-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  padding: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
}

/* ============================================
   Section 7: 投资结论
   ============================================ */
.conclusion-section {
  border: 1px solid var(--accent-gold);
  box-shadow: var(--shadow-glow-gold);
}

.strategy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.strategy-card {
  background: var(--bg-section);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border-secondary);
}

.strategy-card.short-term {
  border-top: 3px solid var(--accent-blue);
}

.strategy-card.mid-long-term {
  border-top: 3px solid var(--accent-gold);
}

.strategy-card-title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.strategy-card.short-term .strategy-card-title { color: var(--accent-blue); }
.strategy-card.mid-long-term .strategy-card-title { color: var(--accent-gold); }

.strategy-direction {
  font-size: var(--text-md);
  font-weight: 700;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  text-align: center;
  margin-bottom: var(--space-md);
}

.strategy-direction.bullish {
  background: var(--accent-green-dim);
  color: var(--accent-green);
}

.strategy-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
}

.strategy-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
}

.strategy-item-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.strategy-item-value {
  font-family: var(--font-number);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
}

.strategy-item-value.entry { color: var(--accent-blue); }
.strategy-item-value.stop-loss { color: var(--accent-red); }
.strategy-item-value.take-profit { color: var(--accent-green); }

.strategy-text {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.8;
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  border-left: 3px solid var(--accent-gold);
}

.summary-text {
  font-size: var(--text-md);
  color: var(--text-primary);
  line-height: 2;
  padding: var(--space-lg);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-accent);
}

/* ============================================
   Footer
   ============================================ */
.report-footer {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  color: var(--text-muted);
  font-size: var(--text-xs);
  line-height: 1.8;
  border-top: 1px solid var(--border-secondary);
  margin-top: var(--space-xl);
}

.disclaimer {
  max-width: 700px;
  margin: 0 auto;
}

/* ============================================
   索引页样式
   ============================================ */
.index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.index-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.index-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.index-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
}

/* 工具栏 */
.toolbar {
  margin-bottom: var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* 第一行：搜索 + 操作按钮 */
.toolbar-row-primary {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 14px;
  opacity: 0.4;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 36px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  font-size: var(--text-sm);
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--accent-gold);
}

.action-bar {
  display: flex;
  gap: var(--space-sm);
  flex-shrink: 0;
}

.action-btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.admin-btn {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-color: rgba(212, 168, 67, 0.3);
}

.admin-btn:hover {
  background: rgba(212, 168, 67, 0.25);
  border-color: var(--accent-gold);
}

/* 第二行：筛选下拉 */
.toolbar-row-filters {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.toolbar-row-filters select {
  padding: 7px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--border-secondary);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s;
}

.toolbar-row-filters select:hover,
.toolbar-row-filters select:focus {
  border-color: var(--accent-gold);
  color: var(--text-primary);
}

/* 第三行：概念标签 */
.toolbar-row-concepts {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-secondary);
  flex-wrap: wrap;
}

.concept-search-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  white-space: nowrap;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.concept-tags-input {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.concept-filter-tag {
  padding: 3px 12px;
  border-radius: 14px;
  font-size: var(--text-xs);
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.concept-filter-tag:hover {
  border-color: var(--accent-purple);
  color: var(--accent-purple);
}

.concept-filter-tag.active {
  background: var(--accent-purple-dim);
  color: var(--accent-purple);
  border-color: var(--accent-purple);
  font-weight: 600;
}

/* 卡片网格 */
.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.report-card-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.2s ease;
}

.report-card-wrapper:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow-gold);
}

.report-card {
  padding: var(--space-lg);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.report-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.report-card-code {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--accent-gold);
}

.report-card-name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-heading);
  margin-top: 2px;
}

.report-card-score {
  font-family: var(--font-number);
  font-size: var(--text-2xl);
  font-weight: 700;
}

.report-card-meta {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.report-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.report-card-tag {
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 1px solid var(--border-secondary);
}

.report-card-rating {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
}

/* 历史研报展开 */
.report-history {
  border-top: 1px solid var(--border-secondary);
}

.history-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  background: var(--bg-section);
  border: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  cursor: pointer;
  transition: background 0.2s;
}

.history-toggle:hover {
  background: var(--bg-secondary);
  color: var(--accent-gold);
}

.history-toggle-arrow {
  font-size: 10px;
  transition: transform 0.2s;
}

.history-list {
  background: var(--bg-section);
}

.history-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-lg);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  border-top: 1px solid var(--border-secondary);
  transition: all 0.15s;
}

.history-item:hover {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}

.history-date {
  font-family: var(--font-mono);
}

.history-link {
  font-size: var(--text-xs);
  opacity: 0;
  transition: opacity 0.15s;
}

.history-item:hover .history-link {
  opacity: 1;
}

/* 卡片操作按钮 */
.card-actions {
  border-top: 1px solid var(--border-secondary);
  padding: var(--space-sm) var(--space-lg);
  display: flex;
  justify-content: flex-end;
}

.card-action-btn {
  padding: 2px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.card-action-btn:hover {
  color: var(--accent-blue);
  border-color: var(--accent-blue);
  background: var(--accent-blue-dim);
}

.card-action-delete:hover {
  color: #f85149;
  border-color: #f85149;
  background: rgba(248, 81, 73, 0.1);
}

/* Toast提示 */
.toast-wrap {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-12px);
  transition: all 0.25s ease;
  pointer-events: none;
  white-space: nowrap;
  width: auto;
}

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

.toast.success {
  background: rgba(46, 160, 67, 0.15);
  color: #2ea043;
  border: 1px solid rgba(46, 160, 67, 0.3);
}

.toast.error {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

/* ============================================
   导入页面
   ============================================ */
.import-container {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.import-topnav {
  margin-bottom: var(--space-md);
}

.import-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.import-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: var(--space-sm);
}

.import-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.import-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.tab-btn {
  flex: 1;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-md);
  font-weight: 600;
  cursor: pointer;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-primary);
  transition: all 0.2s;
}

.tab-btn.active {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
  border-color: var(--accent-gold);
}

.tab-btn:hover {
  border-color: var(--accent-gold);
}

.json-textarea {
  width: 100%;
  min-height: 300px;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: var(--bg-section);
  border: 1px solid var(--border-primary);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}

.json-textarea:focus {
  border-color: var(--accent-gold);
}

.import-actions {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.validate-btn {
  background: var(--bg-card);
  color: var(--text-secondary);
  border-color: var(--border-primary);
}

.validate-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.import-btn-main {
  flex: 1;
}

.upload-zone {
  border: 2px dashed var(--border-primary);
  border-radius: var(--radius-lg);
  padding: var(--space-3xl);
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

.upload-icon { font-size: 48px; margin-bottom: var(--space-md); opacity: 0.5; }
.upload-text { font-size: var(--text-md); color: var(--text-secondary); margin-bottom: var(--space-sm); }
.upload-hint { font-size: var(--text-sm); color: var(--text-muted); }

.file-info {
  padding: var(--space-md);
  background: var(--bg-section);
  border-radius: var(--radius-md);
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.validation-result, .import-result {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  font-size: var(--text-sm);
  line-height: 1.8;
}

.validation-result.success, .import-result.success {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.validation-result.error, .import-result.error {
  background: var(--accent-red-dim);
  color: var(--accent-red);
  border: 1px solid rgba(248, 81, 73, 0.3);
}

.result-detail { color: var(--text-secondary); font-size: var(--text-sm); }
.result-hint { color: var(--accent-gold); font-size: var(--text-sm); }
.result-hint code { background: var(--bg-section); padding: 2px 6px; border-radius: 3px; }
.result-link { color: var(--accent-gold); text-decoration: none; font-weight: 600; }
.result-link:hover { text-decoration: underline; }

.import-tips {
  margin-top: var(--space-2xl);
  padding: var(--space-lg);
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-secondary);
}

.import-tips h3 {
  font-size: var(--text-md);
  color: var(--text-heading);
  margin-bottom: var(--space-md);
}

.import-tips ul {
  padding-left: var(--space-lg);
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 2;
}

.import-tips a { color: var(--accent-gold); text-decoration: none; }
.import-tips a:hover { text-decoration: underline; }
.import-tips code { background: var(--bg-section); padding: 2px 6px; border-radius: 3px; font-size: var(--text-xs); }

.modal {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow: auto;
  padding: var(--space-xl);
}

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

.modal-header h2 { font-size: var(--text-lg); color: var(--text-heading); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; }
.modal-close:hover { color: var(--text-primary); }

.schema-pre {
  background: var(--bg-section);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  overflow: auto;
  max-height: 60vh;
  line-height: 1.5;
}

/* ============================================
   研报Section折叠
   ============================================ */
.report-section {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
  overflow: hidden;
}

.section-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-heading);
  padding: var(--space-xl);
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.section-title:hover {
  background: var(--bg-card-hover);
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-primary), transparent);
  margin-left: var(--space-md);
}

.section-collapse-arrow {
  margin-left: var(--space-sm);
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.section-collapse-arrow.collapsed {
  transform: rotate(-90deg);
}

.section-body {
  padding: 0 var(--space-xl) var(--space-xl);
  transition: max-height 0.3s ease;
}

.section-body.collapsed {
  display: none;
}

/* 折叠时只显示分数的摘要 */
.section-score-badge {
  display: inline-block;
  font-family: var(--font-number);
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-sm);
  margin-left: auto;
  margin-right: var(--space-sm);
}

/* ============================================
   响应式
   ============================================ */
@media (max-width: 768px) {
  .report-container {
    padding: var(--space-md);
  }

  .header-top {
    flex-direction: column;
  }

  .price-trend-layout {
    grid-template-columns: 1fr;
  }

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

  .score-grid-6 {
    grid-template-columns: repeat(3, 1fr);
  }

  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid {
    grid-template-columns: 1fr;
  }

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

  .strategy-items {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .score-grid {
    grid-template-columns: 1fr;
  }

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

  .indicator-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   顶部导航栏（Topbar）- 全局共享
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  z-index: 200;
  gap: 12px;
}

.topbar-brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topbar-nav::-webkit-scrollbar {
  display: none;
}

.topbar-nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.topbar-nav-item:hover {
  background: var(--bg-section);
  color: var(--accent-gold);
}

.topbar-nav-item svg {
  flex-shrink: 0;
}

.topbar-spacer {
  flex: 1;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.topbar-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-gold-dim);
  border: 1.5px solid var(--border-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-gold);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}

.topbar-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.topbar-avatar:hover {
  border-color: var(--accent-gold);
}

.topbar-username {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-btn {
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border-secondary);
  background: var(--bg-section);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
}

.topbar-btn:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.topbar-btn.danger:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.topbar-guest {
  display: flex;
  align-items: center;
  gap: 6px;
}

.topbar-guest-text {
  font-size: 11px;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .topbar-username {
    display: none;
  }
}

/* ============================================
   二级导航栏（Sub Navigation）
   ============================================ */
.sub-nav {
  position: fixed;
  top: 48px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border-secondary);
  display: flex;
  align-items: center;
  z-index: 199;
}

.sub-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 24px;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.sub-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.sub-nav-item:hover {
  color: var(--accent-gold);
  background: var(--bg-card-hover);
}

.sub-nav-item.active {
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
  font-weight: 600;
}

/* topbar 导航项 active 状态（全局共享） */
.topbar-nav-item.active {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}

/* topbar 版本徽章（全局共享） */
.topbar-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-section);
  border: 1px solid var(--border-secondary);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.topbar-version-badge:hover {
  color: var(--accent-gold);
  border-color: var(--accent-gold);
  background: var(--bg-card-hover);
}

.topbar-version-badge svg {
  opacity: 0.6;
  transition: opacity 0.15s ease;
}

.topbar-version-badge:hover svg {
  opacity: 1;
}

/* topbar 二级下拉菜单（全局共享） */
.topbar-dropdown { position: relative; display: inline-block; }
.topbar-dropdown > .topbar-nav-item { cursor: pointer; }
.topbar-dropdown-arrow { width: 10px; height: 10px; margin-left: 2px; transition: transform 0.2s; }
.topbar-dropdown:hover .topbar-dropdown-arrow { transform: rotate(180deg); }
.topbar-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 160px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  padding: 4px 0;
  z-index: 300;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.topbar-dropdown:hover .topbar-dropdown-menu { display: block; }
.topbar-dropdown-menu a {
  display: block;
  padding: 8px 16px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.topbar-dropdown-menu a:hover {
  background: var(--accent-gold-dim);
  color: var(--accent-gold);
}
.topbar-dropdown-menu a.active {
  color: var(--accent-gold);
  background: var(--accent-gold-dim);
}

@media (max-width: 768px) {
  .sub-nav-inner {
    padding: 0 12px;
    overflow-x: auto;
  }

  .sub-nav-item {
    padding: 6px 10px;
    font-size: 11px;
  }
}

/* ============================================
   Finance Light Theme - 清新白风
   浅色背景，清爽干净，适合白天/明亮环境使用
   仅覆盖背景/文字/边框/阴影等环境变量
   K线红涨绿跌色、评分色阶、评级色保持不变
   ============================================ */

[data-theme="finance-light"] {
  /* 背景色系 - 浅灰白 */
  --bg-primary: #f5f6f8;
  --bg-secondary: #ebedf0;
  --bg-card: #ffffff;
  --bg-card-hover: #f8f9fa;
  --bg-section: #f0f1f3;
  --bg-header: linear-gradient(135deg, #f5f6f8 0%, #ebedf0 100%);
  --bg-primary-rgb: 245,246,248;

  /* 文字色系 - 深色 */
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #8b949e;
  --text-heading: #1f2328;

  /* 强调色 - 深金/品牌蓝 */
  --accent-gold: #b08800;
  --accent-gold-dim: rgba(176, 136, 0, 0.1);
  /* 红/绿 - K线语义不变，但浅色背景下需要更深饱和度 */
  --accent-green: #1a7f37;
  --accent-green-dim: rgba(26, 127, 55, 0.1);
  --accent-red: #cf222e;
  --accent-red-dim: rgba(207, 34, 46, 0.1);
  --accent-blue: #0969da;
  --accent-blue-dim: rgba(9, 105, 218, 0.1);
  --accent-purple: #8250df;
  --accent-purple-dim: rgba(130, 80, 223, 0.1);
  --accent-orange: #bf8700;
  --accent-orange-dim: rgba(191, 135, 0, 0.1);

  /* 边框 - 浅灰 */
  --border-primary: #d0d7de;
  --border-secondary: #e0e4e8;
  --border-accent: rgba(176, 136, 0, 0.4);

  /* 阴影 - 浅色阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-glow-gold: 0 0 12px rgba(176, 136, 0, 0.12);
  --shadow-glow-green: 0 0 12px rgba(26, 127, 55, 0.12);
  --shadow-glow-red: 0 0 12px rgba(207, 34, 46, 0.12);

  /* 评分色阶 - 浅色背景下加深 */
  --score-good: #1a7f37;
  --score-moderate: #bf8700;
  --score-warning: #a67c00;
  --score-bad: #cf222e;

  /* 评级色 - 浅色背景下调整 */
  --rating-strong-buy: #1a7f37;
  --rating-buy: #26a641;
  --rating-outperform: #2da44e;
  --rating-neutral: #656d76;
  --rating-underperform: #cf222e;
  --rating-sell: #a40e26;
}

/* kline-detail 页面内联变量覆盖 */
[data-theme="finance-light"] {
  --kline-detail-bg: #f5f6f8;
  --kline-detail-bg-rgb: 245,246,248;
  --surface-1: #ebedf0;
  --surface-2: #ffffff;
  --border-dim: rgba(208, 215, 222, 0.8);
  --text-bright: #1f2328;
  --text-mid: #656d76;
  --text-dim: #8b949e;
  /* K线红绿 - 浅色背景下用深色版本 */
  --red: #cf222e;
  --green: #1a7f37;
}

/* ============================================
   Finance Ocean Theme - 深海蓝绿风
   冷静沉稳的深海色调，适合长时间盯盘
   仅覆盖背景/文字/边框/阴影等环境变量
   K线红涨绿跌色、评分色阶、评级色保持不变
   ============================================ */

[data-theme="finance-ocean"] {
  /* 背景色系 - 深海蓝 */
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f38;
  --bg-card: #132744;
  --bg-card-hover: #18305a;
  --bg-section: #0c1a30;
  --bg-header: linear-gradient(135deg, #0a1628 0%, #0f1f38 100%);
  --bg-primary-rgb: 10,22,40;

  /* 文字色系 - 冷白偏蓝 */
  --text-primary: #d0dff5;
  --text-secondary: #7a96b8;
  --text-muted: #5a7a9e;
  --text-heading: #e8f0ff;

  /* 强调色 - 金色偏青，保留语义 */
  --accent-gold: #4fc3f7;
  --accent-gold-dim: rgba(79, 195, 247, 0.12);
  /* 红/绿/蓝/紫/橙 - 保留原始色值，K线语义不变 */
  --accent-green: #3fb950;
  --accent-green-dim: rgba(63, 185, 80, 0.12);
  --accent-red: #f85149;
  --accent-red-dim: rgba(248, 81, 73, 0.12);
  --accent-blue: #64b5f6;
  --accent-blue-dim: rgba(100, 181, 246, 0.12);
  --accent-purple: #b39ddb;
  --accent-purple-dim: rgba(179, 157, 219, 0.12);
  --accent-orange: #ffb74d;
  --accent-orange-dim: rgba(255, 183, 77, 0.12);

  /* 边框 - 深海蓝调 */
  --border-primary: #1e3a5f;
  --border-secondary: #152d4a;
  --border-accent: rgba(79, 195, 247, 0.3);

  /* 阴影 - 蓝调阴影 */
  --shadow-sm: 0 1px 2px rgba(0, 10, 30, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 10, 30, 0.5);
  --shadow-lg: 0 8px 24px rgba(0, 10, 30, 0.6);
  --shadow-glow-gold: 0 0 20px rgba(79, 195, 247, 0.15);
  --shadow-glow-green: 0 0 20px rgba(63, 185, 80, 0.15);
  --shadow-glow-red: 0 0 20px rgba(248, 81, 73, 0.15);

  /* 评分色阶 - 保持不变 */
  --score-good: #3fb950;
  --score-moderate: #d29922;
  --score-warning: #d4a843;
  --score-bad: #f85149;

  /* 评级色 - 保持不变 */
  --rating-strong-buy: #3fb950;
  --rating-buy: #7ee787;
  --rating-outperform: #56d364;
  --rating-neutral: #8b949e;
  --rating-underperform: #f85149;
  --rating-sell: #da3633;
}

/* kline-detail 页面内联变量覆盖 */
[data-theme="finance-ocean"] {
  --kline-detail-bg: #0a1628;
  --kline-detail-bg-rgb: 10,22,40;
  --surface-1: #0f1f38;
  --surface-2: #132744;
  --border-dim: rgba(30, 58, 95, 0.6);
  --text-bright: #e8f0ff;
  --text-mid: #7a96b8;
  --text-dim: #5a7a9e;
  /* K线红绿保持不变 */
  --red: #f85149;
  --green: #3fb950;
}

/* ============================================
   Finance Warm Theme - 暖光琥珀风
   柔和暖色调，降低视觉疲劳，适合夜间使用
   仅覆盖背景/文字/边框/阴影等环境变量
   K线红涨绿跌色、评分色阶、评级色保持不变
   ============================================ */

[data-theme="finance-warm"] {
  /* 背景色系 - 深棕暖调 */
  --bg-primary: #1a1510;
  --bg-secondary: #231e17;
  --bg-card: #2a2319;
  --bg-card-hover: #332b1f;
  --bg-section: #1e1912;
  --bg-header: linear-gradient(135deg, #1a1510 0%, #231e17 100%);
  --bg-primary-rgb: 26,21,16;

  /* 文字色系 - 暖白 */
  --text-primary: #e8dcc8;
  --text-secondary: #a89880;
  --text-muted: #7a6e5e;
  --text-heading: #f5edd8;

  /* 强调色 - 琥珀金 */
  --accent-gold: #e8b84b;
  --accent-gold-dim: rgba(232, 184, 75, 0.12);
  /* 红/绿/蓝/紫/橙 - 保留原始色值，K线语义不变 */
  --accent-green: #3fb950;
  --accent-green-dim: rgba(63, 185, 80, 0.12);
  --accent-red: #f85149;
  --accent-red-dim: rgba(248, 81, 73, 0.12);
  --accent-blue: #6ba3d6;
  --accent-blue-dim: rgba(107, 163, 214, 0.12);
  --accent-purple: #c49edb;
  --accent-purple-dim: rgba(196, 158, 219, 0.12);
  --accent-orange: #e09940;
  --accent-orange-dim: rgba(224, 153, 64, 0.12);

  /* 边框 - 暖棕调 */
  --border-primary: #3d3428;
  --border-secondary: #2e271d;
  --border-accent: rgba(232, 184, 75, 0.3);

  /* 阴影 - 暖调阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 10, 5, 0.4);
  --shadow-md: 0 4px 12px rgba(15, 10, 5, 0.5);
  --shadow-lg: 0 8px 24px rgba(15, 10, 5, 0.6);
  --shadow-glow-gold: 0 0 20px rgba(232, 184, 75, 0.15);
  --shadow-glow-green: 0 0 20px rgba(63, 185, 80, 0.15);
  --shadow-glow-red: 0 0 20px rgba(248, 81, 73, 0.15);

  /* 评分色阶 - 保持不变 */
  --score-good: #3fb950;
  --score-moderate: #d29922;
  --score-warning: #d4a843;
  --score-bad: #f85149;

  /* 评级色 - 保持不变 */
  --rating-strong-buy: #3fb950;
  --rating-buy: #7ee787;
  --rating-outperform: #56d364;
  --rating-neutral: #8b949e;
  --rating-underperform: #f85149;
  --rating-sell: #da3633;
}

/* kline-detail 页面内联变量覆盖 */
[data-theme="finance-warm"] {
  --kline-detail-bg: #1a1510;
  --kline-detail-bg-rgb: 26,21,16;
  --surface-1: #231e17;
  --surface-2: #2a2319;
  --border-dim: rgba(61, 52, 40, 0.6);
  --text-bright: #f5edd8;
  --text-mid: #a89880;
  --text-dim: #7a6e5e;
  /* K线红绿保持不变 */
  --red: #f85149;
  --green: #3fb950;
}
