:root {
  --bg: #07101c;
  --bg-2: #10182a;
  --ink: #f4f7ff;
  --muted: #b7c3da;
  --line: rgba(255, 255, 255, .14);
  --cyan: #49e1ff;
  --gold: #f6c15b;
  --ember: #ff8a3d;
  --green: #3ee0a2;
  --red: #ff6d88;
  --card: rgba(8, 14, 28, .72);
  --display: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans", "Microsoft YaHei", sans-serif;
  --body: "Segoe UI", "PingFang SC", "Hiragino Sans", "Noto Sans", "Microsoft YaHei", sans-serif;
  --dock: 64px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  padding-bottom: calc(var(--dock) + 18px);
}
img { max-width: 100%; display: block; }
button, select, a { font: inherit; }
button, a, summary { scroll-margin-top: 76px; scroll-margin-bottom: calc(var(--dock) + 28px); }
a { color: inherit; }
button { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip {
  position: absolute; left: 12px; top: -40px; background: var(--gold); color: #1a1203;
  padding: 8px 12px; z-index: 20;
}
.skip:focus { top: 12px; }

.bar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 12px 16px;
  background: rgba(7, 16, 28, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; letter-spacing: .02em; }
.desk { display: none; gap: 6px; align-items: center; margin-left: 8px; }
.desk a, .desk button, .drawer a, .drawer button {
  background: transparent; border: 0; color: var(--muted); text-decoration: none;
  padding: 8px 10px; border-radius: 999px; cursor: pointer;
}
.desk a[aria-current="page"], .desk a:hover, .desk button:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang select, .icon-btn {
  background: #121b2e; color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; min-height: 38px; padding: 0 12px;
}
.icon-btn { cursor: pointer; }
.drawer {
  position: sticky; top: 62px; z-index: 25;
  display: grid; gap: 4px; padding: 8px 12px 12px;
  background: #0c1526; border-bottom: 1px solid var(--line);
}
.drawer[hidden] { display: none; }

.hero { display: block; }
.hero img {
  display: block; width: 100%; height: auto;
  object-fit: contain; background: #050b16;
}
.hero-card {
  position: relative; z-index: 1;
  width: min(1080px, calc(100% - 28px)); margin: 16px auto 0;
  padding: 20px 18px 18px; border-radius: 22px;
  background: rgba(7, 14, 28, .92); border: 1px solid rgba(255,255,255,.18);
}
.kicker { margin: 0 0 8px; color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 8vw, 58px); }
h2 { font-size: clamp(26px, 5vw, 40px); }
.hero-card p { margin: 0 0 16px; color: #e7eefc; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.solid, .ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px; border-radius: 999px; text-decoration: none; cursor: pointer; font-weight: 800;
}
.solid { border: 0; color: #1a1203; background: linear-gradient(110deg, var(--gold), #ffd98a); }
.ghost { border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.25); color: white; }

.band { width: min(1080px, calc(100% - 28px)); margin: 28px auto; }
.sec-h p { color: var(--muted); margin: 0; }
.stats, .cards, .split, .rooms, .principles, .steps { display: grid; gap: 12px; }
.stats { grid-template-columns: repeat(3, 1fr); }
.stats article, .cards article, .rooms button, .principles article, .steps li, .faq details, .cap, .board button, .ticks button {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px;
}
.stats article { padding: 14px 12px; }
.stats b { display: block; font-family: var(--display); font-size: 28px; color: var(--cyan); }
.stats span, .note { color: var(--muted); font-size: 13px; }
.cards { grid-template-columns: 1fr; }
.cards article, .rooms button, .principles article, .steps li { padding: 16px; text-align: left; }
.cards h3, .rooms h3, .principles h3 { font-size: 20px; }
.cards p, .rooms p, .principles p, .steps p { margin: 0; color: var(--muted); }
.rooms { grid-template-columns: 1fr; }
.rooms button { cursor: pointer; width: 100%; }
.rooms button:hover, .coin-grid button:hover, .ticks button:hover, .board button:hover { border-color: var(--cyan); }
.cap { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px; margin: 14px 0; }
.cap strong { font-family: var(--display); font-size: 28px; }
.cap em { font-style: normal; font-size: 16px; margin-left: 8px; }
.cap em.up { color: var(--green); }
.cap em.down { color: var(--red); }
.ticks, .board { display: grid; gap: 8px; }
.ticks button, .board button {
  width: 100%; display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 14px; cursor: pointer; color: var(--ink);
}
.up { color: var(--green); font-weight: 800; }
.down { color: var(--red); font-weight: 800; }
.coin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.coin-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 96px; padding: 10px 6px; border-radius: 14px; border: 1px solid var(--line);
  background: #121b2e; color: var(--ink); font-weight: 800; cursor: pointer;
}
.coin-mark { width: 48px; height: 48px; display: block; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.tick-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.ticks .coin-mark, .board .coin-mark { width: 28px; height: 28px; }
.chart-head { display: flex; align-items: center; gap: 12px; }
.chart-head .coin-mark { width: 56px; height: 56px; }
.chart-head b { display: block; font-family: var(--display); font-size: 28px; line-height: 1; }
.chart-head small { margin-left: 8px; color: var(--muted); font-size: 12px; }
.chart-iv { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.chart-iv button { border: 1px solid var(--line); background: #10192c; color: var(--ink); border-radius: 999px; min-height: 32px; padding: 0 10px; cursor: pointer; }
.chart-iv button[aria-pressed="true"] { background: var(--gold); color: #1a1203; border-color: transparent; font-weight: 800; }
.kchart { width: 100%; height: 280px; display: block; border-radius: 14px; border: 1px solid var(--line); }
.sheet-card.sheet-wide { width: min(94vw, 760px); }
.chart-page { width: min(1080px, calc(100% - 28px)); margin: 18px auto 34px; }
.chart-back { display: inline-flex; align-items: center; min-height: 38px; margin-bottom: 12px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.chart-panel { padding: clamp(16px, 3vw, 30px); border: 1px solid rgba(73,225,255,.28); border-radius: 22px; background: linear-gradient(145deg, #15243d, #0b1528 58%); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
.chart-page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.chart-identity { display: flex; align-items: center; gap: 14px; }
.chart-identity .coin-mark { width: 58px; height: 58px; }
.chart-identity p { color: var(--muted); margin: 0 0 2px; }
.chart-identity h1 { margin: 0; font-size: clamp(26px, 5vw, 42px); }
.chart-price { display: flex; align-items: baseline; gap: 12px; }
.chart-price b { font-size: clamp(25px, 4vw, 38px); }
.chart-price span { font-size: 17px; }
.chart-lead, .chart-role { color: var(--muted); }
.chart-lead { margin: 16px 0; }
.chart-page .chart-iv { margin: 16px 0 12px; }
.chart-page .chart-iv button { min-height: 38px; min-width: 48px; }
.chart-page .kchart { height: clamp(300px, 45vw, 500px); }
.chart-status { min-height: 1.5em; color: var(--muted); }
.chart-role { margin: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.chart-more { margin: 32px 0; }
.chart-more h2 { margin-bottom: 16px; }
.btc-band { display: block; margin: 10px 0 28px; }
.btc-band img { display: block; width: 100%; height: auto; object-fit: contain; background: #050b16; }
.btc-copy { width: min(1080px, calc(100% - 28px)); margin: 16px auto 0; padding: 0; }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step); display: inline-grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%; background: var(--ember); color: #1a1203;
  font-weight: 800; margin-bottom: 8px;
}
.faq details { padding: 12px 14px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.principles { grid-template-columns: 1fr 1fr; }

.foot { width: min(1080px, calc(100% - 28px)); margin: 10px auto 20px; padding-top: 8px; border-top: 1px solid var(--line); }
.foot p { color: var(--muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-links button {
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; min-height: 36px; padding: 0 12px; cursor: pointer;
  scroll-margin-bottom: calc(var(--dock) + 24px);
}
.mono { font-family: ui-monospace, monospace; word-break: break-all; color: var(--cyan); }
.addr-row, .url-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(8, 14, 26, .94); border-top: 1px solid var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.dock a, .dock button {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: transparent; border: 0; color: var(--muted); text-decoration: none;
  min-height: 52px; border-radius: 12px; cursor: pointer;
  font-size: 12px; line-height: 1.15; padding: 6px 4px;
}
.dock a[aria-current="page"] { color: var(--gold); }


.sheet { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: calc(100vw - 24px); max-height: calc(100vh - var(--dock) - 24px); margin-bottom: calc(var(--dock) + 8px); }
.sheet::backdrop { background: rgba(2, 6, 16, .72); }
.sheet-card {
  width: min(92vw, 560px); max-height: calc(100vh - var(--dock) - 36px); overflow: auto;
  margin: 0; padding: 22px 18px 18px; border-radius: 20px;
  background: linear-gradient(180deg, #172238, #10182a); border: 1px solid #5d7196;
}
.sheet-card h2 { font-size: 28px; }
.sheet-card h3 { font-size: 18px; margin-top: 16px; }
.sheet-card p { color: #d5e0f5; }
.sheet-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.sheet-top button, .ask button, .sheet-actions button {
  border-radius: 999px; min-height: 38px; padding: 0 12px; cursor: pointer;
}
.sheet-top button { border: 0; background: #24344f; }
.ask { display: grid; gap: 8px; margin-top: 12px; }
.ask button { text-align: left; background: #10192c; border: 1px solid var(--line); color: var(--ink); }
.reply { margin-top: 12px; padding: 16px; border-radius: 14px; background: rgba(73, 225, 255, .08); border: 1px solid rgba(73, 225, 255, .3); color: #e5efff; line-height: 1.7; white-space: pre-line; }
.ask button[aria-pressed="true"] { border-color: var(--cyan); background: rgba(73, 225, 255, .13); }
.sheet-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.sheet-actions button { border: 0; background: var(--gold); color: #1a1203; font-weight: 800; }

@media (min-width: 760px) {
  .icon-btn { display: none; }
  .desk { display: flex; }
  .drawer { display: none !important; }
  .hero-card { width: min(1080px, calc(100% - 48px)); }
  .cards, .rooms { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .coin-grid { grid-template-columns: repeat(6, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .btc-copy { width: min(1080px, calc(100% - 48px)); }
}
@media (max-width: 520px) {
  .stats { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
}
