/* 红利策略 v1.8.1 介绍网站 — 主样式 */

:root {
  --bg: #0a0e1a;
  --bg-2: #111728;
  --bg-3: #1a2236;
  --line: #232c44;
  --text: #e8ecf5;
  --text-dim: #9aa3b8;
  --text-mute: #6c7689;
  --brand: #ff6b35;            /* 红利品牌色（橙红，区别于全天候蓝） */
  --brand-2: #ffa07a;
  --pos: #4ade80;
  --neg: #f87171;
  --warn: #fbbf24;
  --info: #60a5fa;
  --grad: linear-gradient(135deg, #ff6b35 0%, #ff8c5a 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(10, 14, 26, 0.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; background: var(--grad); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.brand-title { font-weight: 600; font-size: 15px; }
.brand-sub { font-size: 12px; color: var(--text-mute); }
.nav-links { display: flex; gap: 32px; font-size: 14px; }
.nav-links a { color: var(--text-dim); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }

/* Hero */
.hero { position: relative; padding: 120px 0 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 107, 53, 0.15) 0%, transparent 60%); }
.decor-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 60px 60px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%); }
.hero-inner { position: relative; text-align: center; }
.hero-eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: 2px; margin-bottom: 16px; }
.hero-title { font-size: 56px; font-weight: 700; margin-bottom: 24px; background: linear-gradient(135deg, #fff 0%, #ff8c5a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 18px; color: var(--text-dim); max-width: 720px; margin: 0 auto 32px; }
.hero-divider { width: 60px; height: 2px; background: var(--grad); margin: 0 auto 32px; }
.cta { display: inline-block; padding: 14px 32px; background: var(--grad); color: #fff; border-radius: 8px; font-weight: 600; transition: transform .2s, box-shadow .2s; }
.cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3); }
.cta-secondary { background: transparent; border: 1px solid var(--line); color: var(--text); }
.cta-secondary:hover { background: var(--bg-3); }

/* Section */
.section { padding: 80px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-tag { display: inline-block; color: var(--brand); font-size: 12px; font-weight: 600; letter-spacing: 2px; margin-bottom: 12px; }
.section-title { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.section-desc { color: var(--text-dim); font-size: 16px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }

/* KPI grid */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
@media (max-width: 980px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; transition: transform .2s, border-color .2s; }
.kpi-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.kpi-label { font-size: 12px; color: var(--text-mute); margin-bottom: 8px; letter-spacing: 1px; }
.kpi-value { font-size: 32px; font-weight: 700; line-height: 1.2; }
.kpi-value.pos { color: var(--pos); }
.kpi-value.neg { color: var(--neg); }
.kpi-suffix { font-size: 18px; color: var(--text-dim); margin-left: 2px; }
.kpi-note { font-size: 12px; color: var(--text-mute); margin-top: 4px; }

/* Cards */
.cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }
.card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.card-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.card-icon { color: var(--brand); font-size: 20px; }
.card-desc { color: var(--text-dim); font-size: 14px; }
.card-desc strong { color: var(--text); }
.mb-3 { margin-bottom: 12px; }

/* Note box */
.note { background: rgba(96, 165, 250, 0.08); border: 1px solid rgba(96, 165, 250, 0.3); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: var(--text-dim); }
.note strong { color: var(--info); }

/* Asset cards */
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 768px) { .asset-grid { grid-template-columns: 1fr; } }
.asset-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 28px; transition: transform .2s, border-color .2s; }
.asset-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.asset-badge { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; padding: 4px 10px; border-radius: 6px; margin-bottom: 16px; }
.asset-badge.stock { background: rgba(255, 107, 53, 0.15); color: var(--brand); }
.asset-badge.hk { background: rgba(96, 165, 250, 0.15); color: var(--info); }
.asset-name { font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.asset-desc { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.asset-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.asset-tag { font-size: 12px; padding: 4px 10px; background: var(--bg-3); border-radius: 6px; color: var(--text-dim); }

/* Zone chart (5 档信号文字图示) */
.zone-bar { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.zone-bar:last-child { border-bottom: none; }
.zone-label { width: 96px; font-size: 13px; font-weight: 600; }
.zone-track { flex: 1; height: 8px; background: var(--bg-3); border-radius: 4px; overflow: hidden; position: relative; }
.zone-fill { height: 100%; border-radius: 4px; }
.zone-fill.z1 { background: #1e40af; }
.zone-fill.z2 { background: #3b82f6; }
.zone-fill.z3 { background: #94a3b8; }
.zone-fill.z4 { background: #fbbf24; }
.zone-fill.z5 { background: #ef4444; }
.zone-pct { width: 64px; text-align: right; font-size: 13px; color: var(--text-dim); font-variant-numeric: tabular-nums; }

/* Flow steps */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .flow { grid-template-columns: 1fr; } }
.flow-step { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; position: relative; }
.flow-num { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.flow-name { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.flow-desc { color: var(--text-dim); font-size: 13px; }

/* Tables (backtest page) */
.table-wrap { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { background: var(--bg-3); color: var(--text-dim); font-weight: 600; text-align: right; padding: 14px 16px; font-size: 12px; letter-spacing: 0.5px; }
th:first-child { text-align: left; }
td { padding: 14px 16px; border-top: 1px solid var(--line); text-align: right; font-variant-numeric: tabular-nums; }
td:first-child { text-align: left; font-weight: 500; }
tr.highlight td { background: rgba(255, 107, 53, 0.05); font-weight: 600; }
tr.highlight td:first-child { color: var(--brand); }
tr.partial td { opacity: 0.7; }
tr.partial td:first-child { font-style: italic; }
td .pos { color: var(--pos); }
td .neg { color: var(--neg); }

/* Chart container */
.chart-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.chart-box .chart-title { font-size: 14px; font-weight: 600; margin-bottom: 16px; color: var(--text-dim); }

/* Footer */
.footer { padding: 40px 0; text-align: center; color: var(--text-mute); font-size: 12px; border-top: 1px solid var(--line); margin-top: 80px; }
.footer-line { margin-top: 6px; }

/* Animations */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .6s; }
.fade-up.in { opacity: 1; transform: translateY(0); }
