:root {
  --bg: #eef2f6;
  --paper: #ffffff;
  --ink: #0b1220;
  --muted: #5c6b80;
  --line: #e2e8f0;
  --accent: #0f766e;
  --accent-soft: #e7f6f3;
  --good: #047857;
  --good-soft: #ecfdf5;
  --warn: #9a3412;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 700;
}
.brand strong { display: block; font-weight: 680; letter-spacing: -0.03em; }
.brand span span { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 999px;
}
.nav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); font-weight: 650; }
.menu { display: none; }

.hero { padding: 36px 0 8px; display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 28px; align-items: end; }
.kicker {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
h1, h2, h3 { font-weight: 680; letter-spacing: -0.04em; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: 26px; }
h3 { font-size: 18px; }
.lede { margin: 12px 0 0; color: var(--muted); font-size: 16px; max-width: 40rem; }
.hero-side {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}
.hero-side p { margin: 0 0 6px; color: var(--muted); font-size: 13px; }
.hero-side > strong { display: block; font-size: 28px; letter-spacing: -0.04em; margin-bottom: 8px; }
.hero-side .range strong { font-size: 16px; letter-spacing: 0; }

.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: white;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
}
.btn.ghost { background: white; color: var(--ink); border-color: var(--line); }
.btn:hover { background: #115e59; border-color: #115e59; color: white; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 28px; }
.card, .panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 14px;
}
.card { text-decoration: none; display: block; }
.card:hover { border-color: #99f6e4; }
.card .index {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.card h3 { margin-top: 8px; }
.card p { color: var(--muted); margin: 8px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.fact {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.fact dt { color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.fact dd { margin: 0; font-size: 15px; font-weight: 680; line-height: 1.35; }
.snippet {
  margin: 0 0 18px;
  padding: 14px 16px;
  overflow: auto;
  border-radius: 14px;
  background: #0b1220;
  color: #e8eef6;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.section { padding: 6px 0 32px; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: end; margin: 8px 0 12px; }
.section-head p, .note { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.band { margin: 18px 0 8px; }

table { width: 100%; border-collapse: collapse; background: var(--paper); }
th, td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 13.5px;
}
th {
  color: var(--muted);
  font-weight: 650;
  font-size: 12px;
  background: #f8fafc;
}
td.num, th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}
tbody tr:hover td { background: #f3fbf9; }
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}
.table-scroll table { border-radius: 16px; min-width: 920px; }
th, td { word-break: keep-all; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--good-soft);
  color: var(--good);
  font-size: 12px;
  font-weight: 650;
}
.meta { color: var(--muted); font-size: 12px; margin-top: 2px; max-width: 28rem; }
.crumbs { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.crumbs a { color: var(--muted); }

.tools {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 12px;
  align-items: end;
  margin: 16px 0 8px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
}
label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sorts { display: flex; gap: 6px; flex-wrap: wrap; }
.sorts button {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  cursor: pointer;
}
.sorts button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}
.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 14px; margin-top: 18px; }
.list { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.list li { margin: 6px 0; }
footer {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding: 22px 0 40px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}
footer a { color: var(--muted); }
footer nav { display: flex; gap: 14px; }

.stage {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 18px;
}
.board { position: relative; min-height: 280px; }
.board-glow {
  position: absolute;
  inset: 18px 8px auto;
  height: 180px;
  background: radial-gradient(circle, rgba(15, 118, 110, 0.35), transparent 68%);
  filter: blur(8px);
  animation: glow 4.5s ease-in-out infinite;
}
.board-card {
  position: relative;
  background: #0b1220;
  color: #e8eef6;
  border-radius: 22px;
  padding: 16px 16px 18px;
  overflow: hidden;
  box-shadow: 0 24px 50px rgba(11, 18, 32, 0.18);
}
.board-top { display: flex; gap: 6px; align-items: center; color: #93a4b8; font-size: 12px; letter-spacing: 0.08em; margin-bottom: 14px; }
.board-top span { width: 8px; height: 8px; border-radius: 50%; background: #134e4a; }
.board-top span:nth-child(2) { background: #0f766e; }
.board-top span:nth-child(3) { background: #5eead4; }
.board-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: #b7c3d1; }
.board-line b { font-family: var(--mono); color: white; }
.board-line i { grid-column: 1 / -1; display: block; height: 10px; border-radius: 99px; background: #1e293b; overflow: hidden; }
.board-line s {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #64748b;
  transform-origin: left center;
  animation: fill 1.2s ease both;
}
.board-line.hot s { background: linear-gradient(90deg, #14b8a6, #5eead4); }
.board-line.hot b { color: #99f6e4; }
.float {
  display: inline-block;
  margin: 14px 8px 0 0;
  background: white;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
  animation: bob 3.2s ease-in-out infinite;
}
.float.b { color: var(--accent); animation-delay: 0.4s; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: white; margin: 8px 0 22px; }
.ticker-track { display: flex; gap: 28px; width: max-content; padding: 10px 0; animation: marquee 28s linear infinite; }
.ticker span { color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; }
.ticker span::before { content: "●"; color: var(--accent); margin-right: 8px; font-size: 8px; vertical-align: middle; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.deal {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  min-height: 230px;
}
.deal:hover { border-color: #5eead4; transform: translateY(-2px); }
.tag {
  align-self: flex-start;
  background: #fff7ed;
  color: var(--warn);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 750;
}
.tag.hot { background: #fef2f2; color: #b91c1c; }
.deal h3 { font-size: 18px; }
.deal.waiting { border-style: dashed; }
.deal-price strong.wait { font-size: 22px; color: var(--muted); }
.shelf { padding-top: 28px; }
.shelf h1 { margin-bottom: 4px; }
.shelf h1 b { color: var(--accent); font-variant-numeric: tabular-nums; }
.shelf-shop { margin: 0 0 16px; color: var(--muted); }
.picks .band { margin-top: 28px; }
.praise {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 0 14px;
}
.praise h3 { margin: 0; font-size: 18px; }
.praise p { margin: 0; color: var(--muted); flex: 1 1 220px; }
.review-box { margin-top: 10px; }
.review-form:not([hidden]) { display: grid; gap: 8px; margin-top: 8px; }
.review-form label, .auth-form label, .feedback-form label { display: grid; gap: 6px; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-form, .feedback-form { display: grid; gap: 10px; }
.feedback-form { max-width: 560px; }
.feedback-form textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.auth-form h2, .account-grid h2 { margin: 0 0 4px; font-size: 20px; }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
}
.range { margin: 8px 0; }
.range span { color: var(--muted); font-size: 12px; margin-right: 6px; }
.range strong { font-variant-numeric: tabular-nums; }
.deal p { margin: 0; color: var(--muted); font-size: 13px; }
.deal-price { display: flex; align-items: baseline; gap: 8px; }
.deal-price s { color: #94a3b8; }
.deal-price strong { font-size: 32px; letter-spacing: -0.04em; }
.deal-price span { color: var(--muted); font-size: 12px; }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 42px; margin-top: auto; }
.mini-bars i {
  display: block;
  width: 18px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: #cbd5e1;
  transform-origin: bottom;
  animation: rise 0.9s ease both;
}
.mini-bars i.low { background: var(--accent); }
.poster { width: min(100%, 280px); height: 120px; justify-self: end; }
.poster rect, .poster circle, .poster path { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.poster rect { transform-box: fill-box; transform-origin: bottom; animation: rise 1s ease both; }
.lane svg { width: 100%; height: 72px; margin-bottom: 8px; }
.lane svg rect, .lane svg circle, .lane svg path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lane svg rect:nth-child(1) { animation: rise 1s ease both; }
.lane svg rect:nth-child(2) { animation: rise 1s 0.08s ease both; }
.lane svg rect:nth-child(3) { animation: rise 1s 0.16s ease both; }
.lane svg rect:nth-child(4) { animation: rise 1s 0.24s ease both; }
.ad-banner, .ad-card {
  border: 1.5px dashed #94a3b8;
  background: repeating-linear-gradient(-45deg, transparent, transparent 8px, rgba(15, 118, 110, 0.04) 8px, rgba(15, 118, 110, 0.04) 16px);
  border-radius: 16px;
}
.ad-banner { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin: 8px 0 22px; }
.ad-banner strong, .ad-card strong { display: block; margin-bottom: 4px; }
.ad-banner p, .ad-card p { margin: 0; color: var(--muted); font-size: 14px; }
.ad-mark {
  flex: none;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #9a3412;
  background: #ffedd5;
  border-radius: 999px;
  padding: 3px 8px;
}
.ad-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; }
.ad-card { padding: 14px; min-height: 132px; }
.ad-card .ad-mark { display: inline-block; margin-bottom: 8px; }
.ad-card strong { white-space: nowrap; }
.wx {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--accent);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1px 6px;
  cursor: pointer;
}
.wx:hover { border-color: var(--accent); }
.rank-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.rank-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: start;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.rank-no { font-size: 28px; font-weight: 750; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.rank-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; }
.rank-line a { font-weight: 750; text-decoration: none; }
.rank-line a:hover { color: var(--accent); }
.rank-score { margin-left: auto; color: var(--muted); font-size: 13px; }
.rank-score strong { color: var(--ink); font-size: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.chip, .chip-label {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}
.chip { background: var(--accent-soft); color: var(--accent); }
.chip.down { background: #ffedd5; color: var(--warn); }
.chip-label { background: transparent; color: var(--muted); padding-left: 0; }
.chip.vote {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}
.chip.vote[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip.vote.down[aria-pressed="true"] { border-color: #c2410c; background: #ffedd5; color: var(--warn); }
.chip.vote:disabled { opacity: 0.7; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes rise { from { transform: scaleY(0.15); } to { transform: scaleY(1); } }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-8px); } }
@keyframes glow { 50% { opacity: 0.45; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .board-glow, .board-line s, .float, .ticker-track, .mini-bars i, .lane svg rect { animation: none; }
}
@media (max-width: 860px) {
  .wrap { width: min(1180px, calc(100% - 24px)); }
  .hero, .grid-3, .split, .tools, .stage, .deal-grid, .ad-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .nav { display: none; }
  .menu { display: block; }
  .menu summary { cursor: pointer; list-style: none; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] nav {
    position: absolute;
    right: 12px;
    top: 60px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    min-width: 180px;
    z-index: 6;
    padding: 6px;
  }
  .menu nav a { padding: 10px 12px; text-decoration: none; }
  footer { flex-direction: column; }
}
