:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #111318;
  --muted: #6b7280;
  --line: #e6e8ee;
  --soft: #f3f4f6;
  --yes-bg: #e7f6ee;
  --yes-ink: #12884d;
  --no-bg: #fde8ec;
  --no-ink: #e11d48;
  --blue: #1652f0;
  --card: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #8eb0ff;
  outline-offset: 2px;
}
.skip { position: absolute; left: 12px; top: -40px; background: #111; color: #fff; padding: 8px 12px; z-index: 80; border-radius: 8px; }
.skip:focus { top: 12px; }
.app { min-height: 100vh; }
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(160px, 520px) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 22px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.brand { display: flex; align-items: center; gap: 8px; min-width: 0; }
.brand img { width: 28px; height: 28px; display: block; }
.brand b { font-size: 18px; letter-spacing: -.3px; }
.predict { position: relative; }
.predict > button, .ghost, .join, .icon-button {
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
}
.predict > button, .ghost { color: #1f2430; }
.predict > button { display: inline-flex; align-items: center; gap: 4px; }
.head-l, .head-r { display: flex; align-items: center; gap: 4px; }
.head .language span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.head .language select { max-width: 96px; }
.join { background: var(--blue); color: #fff; padding: 8px 14px; }
.join:hover { background: #0f43d4; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; color: #374151; }
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  background: var(--soft);
  border-radius: 999px;
  padding: 0 14px;
  color: #9aa1ad;
}
.search input { width: 100%; border: 0; background: none; outline: none; color: var(--ink); }
.search svg, .ci, .mark svg { display: block; }
.drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 180px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px #11131814;
  padding: 6px;
  z-index: 50;
}
.drop a, .drop button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 650;
}
.drop a:hover, .drop button:hover { background: var(--soft); }
.cats {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.cats button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 10px;
  color: #616875;
  font-weight: 650;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.cats button .ci { width: 14px; height: 14px; }
.cats button.on { color: #111; border-color: #2f6fed; }
.morebox { position: relative; }
main { padding: 0 22px 48px; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 16px;
  padding-top: 16px;
}
.hero {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 12px;
  min-height: 300px;
}
.hero-top { display: flex; align-items: flex-start; gap: 12px; }
.hero-title { display: block; flex: 1; font-size: 26px; font-weight: 780; letter-spacing: -.3px; line-height: 1.25; margin: 2px 0 8px; }
.hero-split { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.hrow { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0; padding: 11px 4px; border-bottom: 1px solid #f1f2f5; }
.hrow b { font-size: 22px; font-weight: 760; font-variant-numeric: tabular-nums; }
.hn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.av {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 750;
}
.chart { position: relative; min-width: 0; min-height: 320px; height: 100%; }
.chart svg { width: 100%; height: 100%; min-height: 320px; display: block; }
.legend { position: absolute; left: 4px; top: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; max-width: calc(100% - 58px); z-index: 2; }
.legend .lg, .tip span { display: inline-flex; align-items: center; gap: 4px; color: #4b5563; font-size: 12px; line-height: 1.3; border-radius: 999px; padding: 2px 6px; }
.legend .lg.on, .legend .lg:hover { background: #f3f4f6; }
.legend i, .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.chart path.dim { opacity: .16; }
.tip { position: absolute; top: 36px; display: none; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; box-shadow: 0 8px 24px #11131814; z-index: 3; pointer-events: none; }
.tip.on { display: flex; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #111318; color: #fff; border-radius: 999px; padding: 10px 14px; z-index: 80; font-weight: 700; }
.toast[hidden] { display: none; }
a.hrow { color: inherit; }
a.hrow:hover { background: #f7f8fa; }
.foot .share { width: 28px; height: 28px; color: #9aa1ad; }
.hero-top .share { color: #6b7280; }
.hero-foot, .foot {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.hero-foot { margin-top: 10px; }
.hero-foot .end { margin-left: auto; }
.chart-note { color: #9aa1ad; font-size: 12px; margin: 6px 0 0; }
.mark { margin-left: auto; color: #9aa1ad; display: grid; place-items: center; }
.mark.on { color: var(--blue); }
.hero-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.dots { display: flex; gap: 6px; margin-right: 8px; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: #d5d8e0; }
.dots button.on { background: #111; width: 16px; }
.hero-nav > button, .explore {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.explore { margin-left: auto; }
.rail { display: flex; flex-direction: column; gap: 12px; }
.promo, .combo-card, .topic-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.promo {
  background: #1b2433;
  color: #fff;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
}
.promo b, .combo-card b { font-size: 16px; }
.promo span, .combo-card span { color: #c5cad3; font-size: 13px; line-height: 1.45; }
.combo-card { display: flex; flex-direction: column; gap: 4px; }
.combo-card span { color: var(--muted); }
.topic-card h2 { margin: 0 0 8px; font-size: 16px; }
.topic-card button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 2px;
  border-radius: 8px;
  font-weight: 650;
}
.topic-card button em { font-style: normal; color: var(--muted); font-weight: 600; }
.topic-card button.on, .topic-card button:hover { background: var(--soft); }
.board-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 12px; }
.board-head h2 { margin: 0; font-size: 22px; letter-spacing: -.3px; }
.chip-clear {
  border-radius: 999px;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  font-weight: 700;
}
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 10px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.card:hover { border-color: #cfd3dc; }
.ctitle { font-weight: 760; font-size: 15px; line-height: 1.35; margin-bottom: 12px; }
.live {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #b45309;
  background: #fff7ed;
  border-radius: 99px;
  padding: 1px 6px;
  vertical-align: 1px;
}
.rows { display: flex; flex-direction: column; }
.oline {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto auto auto;
  gap: 6px;
  align-items: center;
  margin-bottom: 8px;
}
.oline .av { width: 22px; height: 22px; font-size: 11px; }
.nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.pct { font-weight: 750; font-variant-numeric: tabular-nums; }
.yes, .no {
  min-width: 42px;
  text-align: center;
  border-radius: 8px;
  padding: 5px 8px;
  font-weight: 750;
  font-size: 13px;
}
.yes { background: var(--yes-bg); color: var(--yes-ink); }
.no { background: var(--no-bg); color: var(--no-ink); }
.yes.on { background: var(--yes-ink); color: #fff; }
.no.on { background: var(--no-ink); color: #fff; }
.yes:hover { filter: saturate(1.1); }
.no:hover { filter: saturate(1.08); }
.rest {
  color: #64748b;
  font-weight: 700;
  font-size: 13px;
  padding: 2px 0 6px;
  text-align: left;
}
.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 8px; }
.wide .yes, .wide .no { border-radius: 10px; padding: 10px 8px; }
.gauge { width: 108px; margin: 4px auto 8px; }
.gauge svg { width: 100%; height: auto; display: block; }
.foot { margin-top: auto; padding-top: 4px; }
.more-btn {
  display: block;
  margin: 18px auto 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 750;
  background: #fff;
}
.more-btn:hover { background: var(--soft); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 12px; }
.quiet { color: var(--muted); line-height: 1.65; }
.site-foot {
  display: grid;
  grid-template-columns: 1.1fr 2fr 1fr;
  gap: 28px;
  margin-top: 36px;
  padding: 28px 0 12px;
  border-top: 1px solid var(--line);
}
.site-foot h2 { margin: 0 0 8px; font-size: 16px; }
.site-foot p, .foot-links a, .legal a { color: var(--muted); }
.foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.foot-links button, .legal a { font-weight: 650; }
.foot-links button { text-align: left; padding: 2px 0; }
.legal { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.language { display: flex; gap: 8px; align-items: center; color: var(--muted); }
.language select { border: 0; background: transparent; font-weight: 700; }
.page { max-width: 980px; padding-top: 18px; }
.page h1, .detail h1 { font-size: 28px; letter-spacing: -.4px; margin: 8px 0 12px; }
.back { color: #64748b; display: inline-flex; margin: 14px 0; font-weight: 700; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.detail .hero { min-height: 0; }
.panel, .ok, form, .combo-list {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}
.panel { position: sticky; top: 78px; }
.panel p { color: var(--muted); line-height: 1.6; }
.panel .big { font-size: 40px; font-weight: 800; color: var(--ink); margin: 8px 0; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); margin-bottom: 12px; }
.news-list { display: flex; flex-direction: column; }
.news-list a, .rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.bar { height: 8px; border-radius: 99px; background: #e8eefc; margin-top: 6px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); }
form { display: grid; gap: 10px; max-width: 460px; }
label { display: grid; gap: 6px; color: #374151; font-weight: 650; }
input, textarea {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  font-weight: 500;
}
textarea { min-height: 110px; resize: vertical; }
.send { justify-self: start; background: var(--blue); color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 750; }
.combo-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.combo-list label { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; font-weight: 650; }
.sheet[hidden] { display: none; }
.sheet { position: fixed; inset: 0; background: #11131866; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { position: relative; background: #fff; border-radius: 18px; padding: 26px 22px 22px; max-width: 420px; width: 100%; }
.modal h2 { margin: 8px 0; }
.modal p { color: var(--muted); line-height: 1.6; }
.modal img { width: 40px; height: 40px; }
.modal h2 { margin: 4px 28px 8px 0; }
.modal-close { position: absolute; right: 8px; top: 6px; width: 32px; height: 32px; border-radius: 999px; font-size: 22px; line-height: 1; color: #6b7280; }
.modal-close:hover { background: var(--soft); color: #111; }
.gift-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.gift-list a { font-weight: 750; padding: 8px 0; border-top: 1px solid var(--line); }
.bottom-nav { display: none; }
@media (max-width: 1280px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
  .stage, .site-foot, .detail { grid-template-columns: 1fr; }
  .panel { position: static; }
  .explore { margin-left: 0; }
}
@media (max-width: 860px) {
  .head { grid-template-columns: auto 1fr auto; padding: 10px 14px; }
  .how-link, .predict span, .head .language { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-split { grid-template-columns: 1fr; }
  main, .cats { padding-left: 14px; padding-right: 14px; }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fffc;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    z-index: 30;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .power { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--soft); border-radius: 999px; padding: 8px 10px; white-space: nowrap; }
.modal.slip { max-width: 440px; }
.slip-name { font-weight: 750; color: var(--ink); }
.slip-top { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 12px; }
.slip-top .yes, .slip-top .no { border-radius: 10px; padding: 10px 8px; }
.amt-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.amt-row button { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; font-weight: 750; background: #fff; }
.slip-line { display: flex; justify-content: space-between; gap: 12px; margin: 8px 0; color: #374151; }
.slip-line b { font-variant-numeric: tabular-nums; }
.wallets { display: grid; gap: 8px; margin-top: 12px; }
.wallet-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 750;
  background: #fff;
}
.wallet-opt:hover { background: #f7f8fa; }
.wallet-opt .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c5cad3;
  box-sizing: border-box;
  flex: none;
}
.wallet-opt.on { border-color: var(--blue); background: #f4f7ff; }
.wallet-opt.on .dot { border: 5px solid var(--blue); }
.wallet-off {
  margin-top: 4px;
  text-align: left;
  color: #e11d48;
  font-weight: 750;
  padding: 8px 2px;
}
.panel .send { margin: 0 8px 8px 0; }
.panel .no-send { background: var(--no-ink); }
.rank-row small { display: block; color: var(--muted); font-weight: 650; margin-top: 4px; }
.bottom-nav a { flex: 1; text-align: center; font-size: 12px; font-weight: 750; color: #6b7280; padding: 8px 4px; }
  .bottom-nav a.active { color: #111; }
  main { padding-bottom: 84px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
  .head-r .ghost { display: none; }
  .page h1, .detail h1, .hero-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
