:root {
  --bg: #0b1020;
  --card: #131a30;
  --card2: #1a2340;
  --line: #2a3555;
  --text: #e8ecf6;
  --muted: #8a95b5;
  --blue: #4f8cff;
  --green: #34d399;
  --red: #f87171;
  --yellow: #fbbf24;
  --accent: #f0b90b;
  --radius: 14px;
}

/* 盈利色语义化：中文=红，英文=绿 */
html[lang="zh-CN"] { --profit: var(--red); }
html[lang="en"] { --profit: var(--green); }
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.6;
  font-size: 15px;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.nav {
  position: sticky; top: 0; z-index: 50;
  transition: top .2s;
  background: rgba(11,16,32,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
  padding: 0 20px; height: 56px;
  flex-wrap: nowrap;
  overflow-x: auto;
}
body.consent-on .nav { top: 44px; }
.nav .brand { font-weight: 700; font-size: 17px; color: var(--accent); white-space: nowrap; }
.nav a.nav-link { color: var(--muted); padding: 6px 4px; white-space: nowrap; flex-shrink: 0; }
.nav a.nav-link.active, .nav a.nav-link:hover { color: var(--text); text-decoration: none; }
.nav .nav-right { margin-left: auto; display: flex; gap: 10px; align-items: center; white-space: nowrap; flex-shrink: 0; }
.btn {
  display: inline-block; padding: 9px 18px; border-radius: 10px;
  background: var(--accent); color: #14161f; font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.lang-link { color: var(--muted); font-size: 13px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.lang-link:hover { color: var(--text); border-color: var(--blue); text-decoration: none; }

/* ===== SVG 交易方法动画 ===== */
/* svg 四边各扩 17px（viewBox 内缩量同尺寸），使三盒区域与下方 KPI 行左右边缘严格对齐 */
.process-anim { margin: 26px auto 8px; }
.process-anim svg { width: calc(100% + 34px); height: auto; display: block; margin: 0 -17px; }
.flow-line { animation: dashFlow 1.1s linear infinite; }
@keyframes dashFlow { to { stroke-dashoffset: -28; } }
.pulse-dot { animation: pulseDot 2.6s ease-in-out infinite; }
@keyframes pulseDot { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* ===== 可点击 KPI（注册入口） ===== */
a.kpi-link { display: block; text-decoration: none; }
a.kpi-link:hover { border-color: var(--accent); background: var(--card2); transform: translateY(-2px); transition: all .15s; }
.kpi-link { position: relative; }
.kpi-link .go { position: absolute; top: 12px; right: 14px; color: var(--accent); font-size: 14px; font-weight: 700; }

.container { max-width: 1080px; margin: 0 auto; padding: 24px 20px 60px; }

.hero { text-align: center; padding: 40px 16px 22px; }
.opp-hero h1 { font-size: 28px; }
.opp-hero { padding: 26px 16px 20px; }
.hero h1 { font-size: 34px; line-height: 1.25; margin-bottom: 10px; }
.hero p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.hero .cta-row { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.section-title {
  font-size: 20px; font-weight: 700; margin: 30px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-title .sub { font-size: 13px; color: var(--muted); font-weight: 400; }

.grid { display: grid; gap: 14px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px;
  transition: transform .15s;
}
.card.clickable { cursor: pointer; }
.card.clickable:hover { transform: translateY(-2px); border-color: var(--blue); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; }
.card .sym-name { font-size: 19px; font-weight: 700; color: var(--accent); }
.card .annual-big { font-size: 26px; font-weight: 800; margin: 8px 0 2px; }
.card .desc { color: var(--muted); font-size: 12.5px; }
.card .exch-line { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 99px;
  background: var(--card2); color: var(--muted); border: 1px solid var(--line);
}
.chip.green { color: var(--green); border-color: rgba(52,211,153,.35); }
.chip.red { color: var(--red); border-color: rgba(248,113,113,.35); }
.chip.yellow { color: var(--yellow); border-color: rgba(251,191,36,.35); }

.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge.hot { background: rgba(248,113,113,.15); color: var(--red); border: 1px solid rgba(248,113,113,.4); }
.badge.ok { background: rgba(251,191,36,.12); color: var(--yellow); border: 1px solid rgba(251,191,36,.4); }
.badge.low { background: rgba(138,149,181,.12); color: var(--muted); border: 1px solid var(--line); }

.updated-line { color: var(--muted); font-size: 12.5px; margin-bottom: 16px; }

.ads-slot {
  margin: 22px 0; min-height: 90px; border: 1px dashed var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 12.5px;
}
.ads-slot.hidden { display: none !important; }
.ads-slot img { max-width: 100%; border-radius: 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th.num, .table td.num { text-align: center; }
.table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.table td.num { text-align: right; font-variant-numeric: tabular-nums; }

.chart-wrap { height: 360px; margin-top: 12px; position: relative; }

.steps { counter-reset: step; }
.step { display: flex; gap: 16px; margin: 18px 0; align-items: flex-start; }
.step .num {
  counter-increment: step; flex: 0 0 34px; width: 34px; height: 34px;
  background: var(--card2); border: 1px solid var(--line); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--accent);
}
.step .body h3 { font-size: 16px; margin-bottom: 4px; }
.step .body p { color: var(--muted); font-size: 13.5px; }

.warn { background: rgba(248,113,113,.08); border: 1px solid rgba(248,113,113,.3); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }
.info { background: rgba(79,140,255,.08); border: 1px solid rgba(79,140,255,.3); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }
.success { background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.3); border-radius: 10px; padding: 14px 16px; font-size: 13.5px; }

footer {
  border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
  padding: 26px 20px 40px; text-align: center; line-height: 1.9;
}
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: sp 1s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }

.guide h2 { font-size: 21px; margin: 34px 0 10px; }
.guide p { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.guide code { background: var(--card2); padding: 2px 7px; border-radius: 6px; font-size: 13px; }

.exch-tag { font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--card2); color: var(--muted); border: 1px solid var(--line); }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 800px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .k-label { color: var(--muted); font-size: 12.5px; }
.kpi .k-value { font-size: 23px; font-weight: 800; margin-top: 3px; }
