/* Klinecast — 手写样式，无构建步骤，无 CDN 依赖 */

:root {
  --bg: #07080b;
  --bg-2: #0b0d13;
  --panel: rgba(255, 255, 255, 0.028);
  --panel-hi: rgba(255, 255, 255, 0.055);
  --line: rgba(255, 255, 255, 0.075);
  --line-hi: rgba(255, 255, 255, 0.14);
  --text: #e9ebf2;
  --dim: #858c9e;
  --dim-2: #5c6376;
  --up: #2ee6a8;
  --down: #ff5c7a;
  --accent: #6c8cff;
  --accent-2: #a67cff;
  --gold: #f0c46a;
  --radius: 16px;
  --mono: "JetBrains Mono", "SF Mono", ui-monospace, "Menlo", "Consolas", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  overflow-x: hidden;
}

/* 背景：两团极淡的径向光 + 细网格 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(108, 140, 255, 0.16), transparent 62%),
    radial-gradient(760px 520px at 92% 4%, rgba(166, 124, 255, 0.11), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(46, 230, 168, 0.05), transparent 65%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 25%, transparent 75%);
}

.wrap { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

/* ---------------- header ---------------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  background: rgba(7, 8, 11, 0.72);
  border-bottom: 1px solid var(--line);
}
.hd-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(140deg, var(--accent), var(--accent-2) 55%, #2ee6a8);
  position: relative;
  box-shadow: 0 4px 16px rgba(108, 140, 255, 0.35);
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px 6px;
  border-left: 2px solid rgba(7, 8, 11, 0.82);
  border-bottom: 2px solid rgba(7, 8, 11, 0.82);
  border-radius: 1px;
}
nav.hd-nav { display: flex; gap: 22px; margin-left: 8px; }
nav.hd-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.2s;
}
nav.hd-nav a:hover { color: var(--text); }
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--panel);
}
.lang-toggle button {
  background: none;
  border: 0;
  color: var(--dim);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  cursor: pointer;
  font-family: var(--mono);
  transition: all 0.18s;
}
.lang-toggle button.on { background: var(--panel-hi); color: var(--text); }

.btn {
  border: 1px solid var(--line-hi);
  background: var(--panel-hi);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.22); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: 0;
  color: #08090d;
  box-shadow: 0 6px 22px rgba(108, 140, 255, 0.32);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(108, 140, 255, 0.42); }
.btn-ghost { background: transparent; }

/* ---------------- hero ---------------- */
.hero { padding: 84px 0 56px; position: relative; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-hi);
  background: var(--panel);
  border-radius: 100px;
  padding: 5px 13px 5px 7px;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 26px;
}
.hero-badge i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.16);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 700;
  max-width: 15ch;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #2ee6a8, #6c8cff 46%, #a67cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede {
  margin-top: 22px;
  font-size: 16.5px;
  color: var(--dim);
  max-width: 54ch;
  line-height: 1.75;
}
.hero p.lede b { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero-cta .btn { padding: 12px 22px; font-size: 14px; border-radius: 12px; }
.hero-meta {
  margin-top: 30px;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--dim-2);
}
.hero-meta span b { color: var(--text); font-family: var(--mono); font-weight: 600; }

/* hero 两栏：左边说人话，右边直接给一张真图 */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
}
.hero-copy { min-width: 0; }

.hero-chart {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 16px 12px;
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(108, 140, 255, 0.13), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01));
  box-shadow:
    0 40px 90px -50px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
  overflow: hidden;
}
.hc-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: var(--dim);
  padding-bottom: 10px;
}
.hc-sym {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hc-tf {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 1.5px 6px;
  border-radius: 5px;
  border: 1px solid var(--line-hi);
  color: var(--dim);
  letter-spacing: 0.04em;
}
.hc-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--dim-2);
  font-family: var(--mono);
}
.hc-live i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.14);
  animation: pulse 2.4s infinite;
}
.hc-stage { position: relative; }
#hero-canvas { display: block; width: 100%; height: 372px; position: relative; z-index: 2; }

.hc-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: 10px;
  background: linear-gradient(100deg,
    rgba(255, 255, 255, 0.03) 20%,
    rgba(255, 255, 255, 0.07) 38%,
    rgba(255, 255, 255, 0.03) 56%);
  background-size: 220% 100%;
  animation: hcShimmer 1.5s linear infinite;
}
@keyframes hcShimmer {
  0% { background-position: 130% 0; }
  100% { background-position: -30% 0; }
}
.hc-skeleton.hide { display: none; }

.hc-foot {
  display: flex;
  gap: 22px;
  padding-top: 11px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hc-stat { display: flex; flex-direction: column; gap: 1px; }
.hc-stat span { font-size: 10.5px; color: var(--dim-2); letter-spacing: 0.02em; }
.hc-stat b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.hc-stat b.up { color: var(--up); }
.hc-stat b.down { color: var(--down); }

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-chart { max-width: 620px; }
  #hero-canvas { height: 300px; }
}
@media (max-width: 560px) {
  #hero-canvas { height: 240px; }
  .hc-foot { gap: 16px; }
  .hc-stat b { font-size: 13px; }
}


/* ---------------- board ---------------- */
.board { padding: 18px 0 80px; }
.board-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.board-head h2 { font-size: 24px; letter-spacing: -0.02em; font-weight: 650; }
.board-head p { font-size: 13px; color: var(--dim); margin-top: 5px; }

.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); padding: 4px; border-radius: 12px; }
.tabs button {
  border: 0; background: none; color: var(--dim);
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 8px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.18s;
}
.tabs button.on { background: var(--panel-hi); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset; }
.tabs button.locked { opacity: 0.5; }
.tabs button .lk { font-size: 10px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--dim);
  font-size: 12.5px;
  padding: 6px 13px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--line-hi); }
.chip.on { background: rgba(108, 140, 255, 0.14); border-color: rgba(108, 140, 255, 0.45); color: #b9c7ff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 14px;
}

.card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.042), rgba(255, 255, 255, 0.012));
  border-radius: var(--radius);
  padding: 17px 17px 15px;
  cursor: pointer;
  transition: border-color 0.22s, transform 0.22s, box-shadow 0.22s;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(108,140,255,0.35), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-hi); box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.8); }
.card:hover::before { opacity: 1; }

.card-top { display: flex; align-items: flex-start; gap: 10px; }
.card-sym { font-weight: 650; font-size: 15.5px; letter-spacing: -0.01em; }
.card-name { font-size: 11.5px; color: var(--dim-2); margin-top: 1px; }
.card-kind {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 2px 6px; border-radius: 5px; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--dim-2);
  margin-left: auto;
}
.kind-crypto { color: #8fa6ff; border-color: rgba(108,140,255,0.3); background: rgba(108,140,255,0.08); }
.kind-equity { color: #f0c46a; border-color: rgba(240,196,106,0.28); background: rgba(240,196,106,0.07); }
.kind-metal  { color: #cfd6e6; border-color: rgba(207,214,230,0.24); background: rgba(207,214,230,0.06); }

.card-price { display: flex; align-items: baseline; gap: 9px; margin: 13px 0 2px; }
.card-price .px { font-family: var(--mono); font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.dir {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px;
}
.dir.up { color: var(--up); background: rgba(46, 230, 168, 0.1); }
.dir.down { color: var(--down); background: rgba(255, 92, 122, 0.1); }

/* 区间带：产品核心视觉 */
.band {
  position: relative;
  height: 30px;
  margin: 15px 0 9px;
}
.band-track {
  position: absolute; left: 0; right: 0; top: 12px; height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
}
.band-80, .band-50 {
  position: absolute; top: 12px; height: 6px; border-radius: 3px;
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.band-80 { background: linear-gradient(90deg, rgba(108,140,255,0.28), rgba(166,124,255,0.42)); }
.band-50 { background: linear-gradient(90deg, rgba(108,140,255,0.62), rgba(166,124,255,0.82)); height: 6px; }
.band-median {
  position: absolute; top: 9px; width: 2px; height: 12px;
  background: #fff; border-radius: 1px; opacity: 0.85;
}
.band-last {
  position: absolute; top: 6px; width: 1px; height: 18px;
  background: var(--dim-2);
}
.band-last::after {
  content: ""; position: absolute; top: -2px; left: -2px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--dim-2);
}
.band-scale {
  position: relative; height: 13px;
  font-family: var(--mono); font-size: 10.5px; color: var(--dim-2);
  margin-top: 2px;
}
.band-scale span {
  position: absolute; top: 0; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.card-foot {
  display: flex; align-items: center; gap: 8px;
  margin-top: 13px; padding-top: 11px;
  border-top: 1px solid var(--line);
  font-size: 11px; color: var(--dim-2);
  font-family: var(--mono);
}
.tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.05em;
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
  font-family: var(--sans);
}
.tag.live { color: var(--up); background: rgba(46, 230, 168, 0.11); }
.tag.delay { color: var(--gold); background: rgba(240, 196, 106, 0.1); }
.tag.lock { color: var(--dim); background: rgba(255,255,255,0.05); }
.card-foot .sp { margin-left: auto; }

.card.is-locked .band, .card.is-locked .card-price { filter: blur(5px); opacity: 0.5; user-select: none; }
.lock-overlay {
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; background: rgba(7, 8, 11, 0.55);
  backdrop-filter: blur(1.5px);
  font-size: 12px; color: var(--dim);
  opacity: 0; transition: opacity 0.22s;
}
.card.is-locked:hover .lock-overlay { opacity: 1; }
.lock-overlay b { color: var(--text); font-size: 12.5px; }

.skeleton {
  height: 168px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(255,255,255,0.02) 30%, rgba(255,255,255,0.055) 50%, rgba(255,255,255,0.02) 70%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer { from { background-position: 180% 0; } to { background-position: -80% 0; } }

.empty {
  grid-column: 1 / -1;
  padding: 48px 20px;
  text-align: center;
  color: var(--dim);
  font-size: 13.5px;
  border: 1px dashed var(--line-hi);
  border-radius: var(--radius);
}

/* ---------------- accuracy ---------------- */
.section { padding: 70px 0; }
.section-head { margin-bottom: 30px; }
.section-head .eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.025em; font-weight: 650; }
.section-head p { color: var(--dim); font-size: 14px; margin-top: 9px; max-width: 60ch; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 13px; }
.stat {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 17px;
  background: var(--panel);
}
.stat .k { font-size: 11.5px; color: var(--dim-2); margin-bottom: 7px; }
.stat .v { font-family: var(--mono); font-size: 27px; font-weight: 600; letter-spacing: -0.03em; }
.stat .v small { font-size: 14px; color: var(--dim); font-weight: 400; }
.stat .sub { font-size: 11px; color: var(--dim-2); margin-top: 5px; }

/* ---------------- pricing ---------------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; }
.plan {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px 22px;
  background: linear-gradient(170deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  display: flex; flex-direction: column;
  position: relative;
}
.plan.featured {
  border-color: rgba(108, 140, 255, 0.42);
  background: linear-gradient(170deg, rgba(108,140,255,0.11), rgba(166,124,255,0.04));
  box-shadow: 0 22px 60px -30px rgba(108, 140, 255, 0.7);
}
.plan .badge {
  position: absolute; top: -10px; left: 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #08090d; font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 100px; letter-spacing: 0.05em;
}
.plan h3 { font-size: 15px; font-weight: 650; }
.plan .price { font-family: var(--mono); font-size: 32px; font-weight: 600; margin: 12px 0 3px; letter-spacing: -0.03em; }
.plan .price span { font-size: 12.5px; color: var(--dim); font-weight: 400; font-family: var(--sans); }
.plan ul { list-style: none; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: 12.5px; color: var(--dim); display: flex; gap: 9px; line-height: 1.55; }
.plan li::before { content: "—"; color: var(--accent); flex: none; }
.plan li.off { color: var(--dim-2); }
.plan li.off::before { content: "·"; }
.plan .btn { margin-top: auto; width: 100%; justify-content: center; }
.plan .save {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 11px; color: var(--up);
  background: rgba(46,230,168,.09); border: 1px solid rgba(46,230,168,.22);
  border-radius: 999px; padding: 3px 9px; margin-top: 8px;
}
.plan .permo { font-size: 11.5px; color: var(--dim-2); font-family: var(--mono); margin-bottom: 2px; }
.plan-skeleton { height: 300px; border-radius: 12px; background: rgba(255,255,255,.03); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100%{opacity:.45} 50%{opacity:.9} }
.price-note {
  margin-top: 18px; font-size: 12px; color: var(--dim-2); line-height: 1.7;
  max-width: 640px; padding-left: 14px; border-left: 2px solid rgba(255,255,255,.09);
}

/* ---------------- drawer ---------------- */
.drawer-mask {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(4, 5, 8, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.28s;
}
.drawer-mask.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91;
  width: min(1000px, 100%);
  background: linear-gradient(180deg, #0d0f16, #08090d);
  border-left: 1px solid var(--line-hi);
  transform: translateX(100%);
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
  padding: 0;
}
.drawer.open { transform: none; }
.drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 30px; height: 30px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel);
  color: var(--dim); cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.drawer h3 { font-size: 22px; letter-spacing: -0.02em; }
.drawer .sub { font-size: 12.5px; color: var(--dim); margin-top: 4px; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 22px; }
.kv > div { border: 1px solid var(--line); border-radius: 11px; padding: 12px; background: var(--panel); }
.kv .k { font-size: 10.5px; color: var(--dim-2); margin-bottom: 4px; }
.kv .v { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.band-lg { margin: 26px 0 8px; height: 54px; }
.band-lg .band-track, .band-lg .band-80, .band-lg .band-50 { top: 24px; height: 8px; }
.band-lg .band-median { top: 19px; height: 18px; }
.band-lg .band-last { top: 14px; height: 28px; }
.note {
  font-size: 11.5px; color: var(--dim-2); line-height: 1.7;
  border-left: 2px solid var(--line-hi); padding-left: 12px; margin-top: 20px;
}

/* ---------------- toast ---------------- */
.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px);
  background: rgba(20, 22, 30, 0.96);
  border: 1px solid var(--line-hi);
  border-radius: 12px; padding: 11px 18px;
  font-size: 12.5px; color: var(--text);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: all 0.26s;
  box-shadow: 0 18px 50px -12px rgba(0,0,0,0.9);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------- footer ---------------- */
footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 46px;
  font-size: 12px; color: var(--dim-2);
}
.foot-inner { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot-inner .sp { margin-left: auto; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 720px) {
  .hero { padding: 52px 0 34px; }
  nav.hd-nav { display: none; }
  .grid { grid-template-columns: 1fr; }
  .drawer { width: 100%; }
  .hero-meta { gap: 18px; }
}

/* ---------------------------------------------------------------- 账户菜单 */
.hd-user { position: relative; }

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 232px;
  padding: 6px;
  background: linear-gradient(180deg, rgba(22, 25, 34, 0.98), rgba(13, 15, 21, 0.98));
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 60;
  animation: umIn 0.16s ease-out;
}

.user-menu[hidden] { display: none; }

@keyframes umIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.um-head {
  padding: 11px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 5px;
}

.um-email {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.um-tier {
  margin-top: 5px;
  font-size: 10.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--dim-2);
}

.um-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  color: var(--down);
  background: none;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.18s ease;
}

.um-item:hover { background: rgba(255, 92, 122, 0.1); }

/* ---------------------------------------------------------------- 抽屉双栏 */
.dw-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  height: 100%;
}

.dw-chart {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 24px 18px 16px 24px;
  border-right: 1px solid var(--line);
}

.dw-chart-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dw-sym { display: flex; align-items: baseline; gap: 6px; }
.dw-sym-main { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.dw-sym-quote { font-size: 12px; color: var(--dim-2); }

.dw-tf {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border: 1px solid var(--line-hi);
  border-radius: 5px;
  color: var(--dim);
  transform: translateY(-1px);
}

.dw-legend {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  margin-left: auto;
}

.dw-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--dim-2);
  white-space: nowrap;
}

.dw-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 2px;
}

.lg-up { background: var(--up); }
.lg-down { background: var(--down); }
.lg-80 { background: rgba(240, 196, 106, 0.26); }
.lg-50 { background: rgba(240, 196, 106, 0.55); }
.lg-med { background: var(--gold); height: 2px !important; border-radius: 1px !important; width: 11px !important; }

.dw-canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 280px;
}

.dw-canvas-wrap canvas { display: block; width: 100%; height: 100%; }

.dw-chart-foot {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--dim-2);
  letter-spacing: 0.01em;
}

/* 访客遮罩 */
.dw-lock {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(320px, 88%);
  padding: 20px 18px;
  text-align: center;
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid var(--line-hi);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.9);
}

.dw-lock-t { font-size: 13px; font-weight: 600; color: var(--text); }
.dw-lock-s { margin-top: 7px; font-size: 11.5px; line-height: 1.65; color: var(--dim-2); }
.dw-lock .btn { margin-top: 14px; width: 100%; }

.dw-info {
  padding: 24px 24px 28px;
  overflow-y: auto;
  min-width: 0;
}

.dw-info::-webkit-scrollbar { width: 6px; }
.dw-info::-webkit-scrollbar-thumb { background: var(--line-hi); border-radius: 3px; }

@media (max-width: 860px) {
  .drawer { overflow-y: auto; }
  .dw-grid { grid-template-columns: 1fr; height: auto; }
  .dw-chart {
    height: 340px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 18px 16px 10px;
  }
  .dw-canvas-wrap { min-height: 230px; }
  .dw-info { overflow: visible; padding: 20px 16px 30px; }
  .dw-legend { margin-left: 0; width: 100%; gap: 10px; }
  .drawer-close { top: 12px; right: 12px; }
}
