:root {
  --red: #7A1A28;
  --red-deep: #54121C;
  --gold: #D4B06A;
  --gold-deep: #8A6A28;
  --ivory: #F7F1E6;
  --ink: #1C1412;
  --muted: #6A5348;
  --line: #E4D3A8;
  --up: #1B5C38;
  --down: #8E1E2A;
  --dock: 62px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  font: 17px/1.5 "Segoe UI", "PingFang SC", "Noto Sans", sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(212, 176, 106, .28), transparent 36%),
    radial-gradient(circle at 100% 0%, rgba(0, 0, 0, .25), transparent 32%),
    repeating-linear-gradient(118deg, rgba(255, 236, 196, .045) 0 1px, transparent 1px 9px),
    var(--red);
}
body:before {
  content: "";
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 5px;
  z-index: 40;
  background: linear-gradient(90deg, #8A6A28, #F3E2B0, #8A6A28);
}
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { font-family: Palatino, "Palatino Linotype", "Songti SC", Georgia, serif; font-weight: 500; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 12px; }
.skip {
  position: absolute; left: 12px; top: -48px; background: var(--ink); color: var(--ivory);
  padding: 8px 12px; z-index: 50; border-radius: 8px;
}
.skip:focus { top: 12px; }
.bar {
  position: sticky; top: 0; z-index: 12;
  background: rgba(84, 18, 28, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 176, 106, .45);
}
.bar-row, .wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto; }
.bar-row { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ivory); }
.brand img { width: 40px; height: 40px; }
.brand strong { display: block; letter-spacing: .16em; font-size: 14px; font-weight: 760; }
.brand small { display: block; color: var(--gold); letter-spacing: .08em; font-size: 11px; text-transform: uppercase; }
.nav { display: none; align-items: center; gap: 4px; }
.nav a, .lang-btn, .texty {
  text-decoration: none; background: none; border: 0; color: var(--ivory);
  padding: 8px 10px; border-radius: 999px; cursor: pointer;
}
.nav a[aria-current="page"] { background: var(--gold); color: var(--ink); }
.tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.tape { display: flex; align-items: center; gap: 6px; margin: 0; color: #F3E2B0; font-size: 12px; letter-spacing: .04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); display: block; }
.dot.live { background: #E7F2D8; box-shadow: 0 0 0 4px rgba(231, 242, 216, .18); }
.lang-btn, .menu-btn {
  border: 1px solid rgba(243, 226, 176, .45); background: transparent; color: var(--ivory);
  border-radius: 999px; padding: 8px 12px; cursor: pointer;
}
.menu-btn { width: 42px; height: 42px; padding: 0; display: grid; place-items: center; }
.menu-btn span, .menu-btn span:before, .menu-btn span:after {
  display: block; width: 16px; height: 1.5px; background: var(--ivory); content: ""; position: relative;
}
.menu-btn span:before { position: absolute; top: -5px; }
.menu-btn span:after { position: absolute; top: 5px; }
.hero { width: min(1180px, calc(100% - 28px)); margin: 0 auto; padding: 34px 0 8px; }
.kicker { letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-size: 12px; font-weight: 760; }
.hero h1 { font-size: clamp(56px, 9vw, 96px); line-height: .88; margin: 6px 0 12px; }
.hero .sub { max-width: 38rem; font-size: 20px; color: #F8E7C8; }
.hero .lead { color: #F3E2B0; }
.status { width: min(1180px, calc(100% - 28px)); margin: 8px auto 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.status button, .button {
  border-radius: 999px; padding: 10px 16px; border: 1.5px solid var(--gold); background: transparent;
  color: var(--ivory); font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex;
}
.button.ink { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.board, .page { width: min(1180px, calc(100% - 28px)); margin: 18px auto 28px; }
.board { display: grid; gap: 14px; }
.card {
  display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; align-items: center;
  background: var(--ivory); color: var(--ink); text-decoration: none;
  border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 10px;
  box-shadow: 0 14px 30px rgba(40, 8, 12, .2);
}
.card:hover { border-color: var(--gold-deep); }
.card .name { font-family: Palatino, Georgia, serif; font-size: 22px; line-height: 1.1; }
.card .tick { color: var(--muted); letter-spacing: .14em; font-size: 12px; font-weight: 760; }
.card .price { font-variant-numeric: tabular-nums; font-weight: 760; font-size: 20px; }
.card .chg { font-variant-numeric: tabular-nums; font-weight: 760; font-size: 14px; }
.chart.mini { grid-column: 1 / -1; width: 100%; height: 88px; display: block; border-radius: 10px; }
.okx { background: #101612; color: #E7EEE9; border-radius: 16px; padding: 14px 12px 10px; margin-top: 16px; }
.okx-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.okx .pair { font-weight: 760; letter-spacing: .04em; }
.okx .chg.up { color: #3DDC97; }
.okx .chg.down { color: #FF5C7A; }
.okx-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0 12px; color: #9AA89F; font-size: 13px; }
.okx-meta b { color: #F4F7F5; font-weight: 700; font-variant-numeric: tabular-nums; }
.okx-iv { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.okx-iv span { letter-spacing: .14em; text-transform: uppercase; font-size: 11px; color: #9AA89F; font-weight: 760; }
.okx-iv div { display: flex; gap: 4px; }
.okx-iv button { border: 0; background: transparent; color: #C5D0C8; border-radius: 999px; padding: 5px 11px; cursor: pointer; font-weight: 760; }
.okx-iv button[aria-pressed="true"] { background: #1E7A4A; color: #F4FFF8; }
.plot { position: relative; }
.okx .chart { width: 100%; height: 280px; display: block; }
.tip {
  position: absolute; top: 10px; z-index: 2; min-width: 210px; pointer-events: none;
  transform: translateX(10px); background: #17211c; color: #E7EEE9;
  border: 1px solid rgba(255,255,255,.14); border-radius: 10px; padding: 8px 10px;
  display: grid; gap: 3px; font-size: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.tip.flip { transform: translateX(calc(-100% - 10px)); }
.tip[hidden] { display: none; }
.tip strong { font-weight: 760; }
.okx-foot { display: flex; justify-content: space-between; gap: 12px; color: #8E9B94; font-size: 12px; margin-top: 6px; }
.up { color: var(--up); }
.down { color: var(--down); }
.cap { grid-column: 1 / -1; color: var(--muted); font-size: 12px; margin: 0; }
.page {
  background: var(--ivory); color: var(--ink); border-radius: 22px; padding: 22px 20px 26px;
  border: 1px solid var(--line);
}
.page h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 8px; }
.page .lede, .note { color: var(--muted); }
.detail-head { display: flex; gap: 16px; align-items: center; }
.back { display: inline-block; margin-bottom: 12px; font-weight: 760; text-decoration: none; }
form { display: grid; gap: 12px; margin-top: 14px; }
label { display: grid; gap: 6px; font-size: 14px; font-weight: 760; }
input, textarea {
  border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 12px; padding: 12px; width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
.ok { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid var(--line); }
.foot { width: min(1180px, calc(100% - 28px)); margin: 0 auto 20px; padding-bottom: 12px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }
.foot a { color: #F3E2B0; text-decoration: none; font-weight: 700; }
.copy { color: #F8E7C8; font-size: 14px; }
.sheet { position: fixed; inset: 0; background: rgba(28, 12, 14, .5); z-index: 30; display: grid; align-items: end; }
.sheet[hidden] { display: none; }
.sheet .panel {
  background: var(--ivory); color: var(--ink); border-radius: 20px 20px 0 0;
  padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: min(86vh, 680px); overflow: auto;
}
.sheet h2 { font-size: 28px; margin-bottom: 8px; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.langs button, .drawer a, .drawer button {
  text-align: start; border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; text-decoration: none;
}
.langs button[aria-current="true"] { background: var(--ink); color: var(--ivory); }
.drawer { position: fixed; inset: 0; background: var(--red-deep); color: var(--ivory); z-index: 25; overflow: auto; padding: 18px 18px 48px; }
.drawer header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer .group { display: grid; gap: 8px; }
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 14; display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(84, 18, 28, .96); border-top: 1px solid rgba(212, 176, 106, .4);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.dock a { text-decoration: none; text-align: center; font-size: 12px; font-weight: 760; color: #F8E7C8; padding: 6px 0; }
.dock a[aria-current="page"] { color: var(--gold); }
body { padding-bottom: calc(var(--dock) + env(safe-area-inset-bottom)); }
@media (max-width: 700px) {
  .tape span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .brand img { width: 32px; height: 32px; }
}
@media (min-width: 720px) {
  .board { grid-template-columns: 1fr 1fr; }
  .okx .chart { height: 360px; }
}
@media (min-width: 980px) {
  .menu-btn { display: none; }
  .nav { display: flex; }
  .dock { display: none; }
  body { padding-bottom: 0; }
  .sheet { align-items: center; }
  .sheet .panel { width: min(520px, calc(100% - 32px)); border-radius: 20px; }
  .brand img { width: 40px; height: 40px; }
}
@media (min-width: 1100px) {
  .board { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.live { box-shadow: none; }
}
