/* ==========================================================================
   币选榜 · 站点样式
   纯手写 CSS，无框架、无外部字体，首屏体积小、渲染快。
   ========================================================================== */

:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f4f6fa;
  --ink: #0d1424;
  --ink-2: #3a4457;
  --muted: #68738a;
  --line: #e5e9f1;
  --line-strong: #d3d9e5;
  --brand: #1f5eff;
  --brand-600: #1247d8;
  --brand-soft: #eef3ff;
  --brand-ring: rgba(31, 94, 255, 0.18);
  --accent: #0d9f9b;
  --gold: #f0b90b;
  --gold-soft: #fff7db;
  --gold-ink: #7a5300;
  --ok: #0f8a4d;
  --ok-soft: #eaf7f0;
  --bad: #d13438;
  --bad-soft: #fdeeee;
  --warn-soft: #fff8e8;
  --warn-line: #f0d9a8;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 10px;

  --shadow-sm: 0 1px 2px rgba(13, 20, 36, 0.05), 0 1px 3px rgba(13, 20, 36, 0.04);
  --shadow: 0 18px 40px -24px rgba(13, 20, 36, 0.28), 0 2px 6px rgba(13, 20, 36, 0.04);
  --shadow-brand: 0 10px 24px -12px rgba(31, 94, 255, 0.55);

  --container: 1120px;
  --header-h: 68px;

  --font: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Noto Sans SC",
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0f18;
    --surface: #121826;
    --surface-2: #0f1420;
    --ink: #e9eef8;
    --ink-2: #b7c1d3;
    --muted: #8b97ad;
    --line: #222b3d;
    --line-strong: #2e3950;
    --brand: #6f97ff;
    --brand-600: #8aa9ff;
    --brand-soft: #16224a;
    --brand-ring: rgba(111, 151, 255, 0.25);
    --accent: #2fd0c9;
    --gold-soft: #2a2306;
    --gold-ink: #f5cc4d;
    --ok: #3ecf8e;
    --ok-soft: #0e2a1e;
    --bad: #ff7b7f;
    --bad-soft: #2c1416;
    --warn-soft: #241d0c;
    --warn-line: #4a3a12;
    --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
    --shadow-brand: 0 10px 24px -12px rgba(111, 151, 255, 0.4);
  }
}

/* ------------------------------- reset ---------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  line-height: 1.25;
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 1.15rem + 2.9vw, 3.05rem);
  line-height: 1.14;
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 1.05rem + 1vw, 1.72rem);
}

h3 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.4em;
}

code {
  font-family: var(--mono);
}

::selection {
  background: var(--brand-ring);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(100% - 40px, 780px);
}

.center {
  text-align: center;
}

.center-actions {
  justify-content: center;
}

/* ------------------------------- buttons -------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s ease, background-color 0.16s ease,
    border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-arrow {
  transition: transform 0.16s ease;
}

.btn:hover .btn-arrow {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover {
  background: var(--brand-600);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn-light {
  background: #fff;
  color: #14213d;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-sm {
  height: 38px;
  padding: 0 14px;
  font-size: 13.5px;
  border-radius: 10px;
}

.btn-xs {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
  font-weight: 600;
}

.btn-block {
  width: 100%;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #071022;
  }
  .btn-light {
    background: #eef3ff;
    color: #12203c;
  }
}

/* -------------------------------- header -------------------------------- */

.topbar {
  background: #0a1020;
  color: #a8b5cc;
  font-size: 12.5px;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}

.topbar p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar a {
  color: #fff;
  opacity: 0.72;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.topbar a:hover {
  opacity: 1;
}

.topbar .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .site-header {
    background: var(--bg);
  }
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  flex: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav li {
  margin: 0;
}

.site-nav a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}

.site-nav a:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.site-nav a[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.header-cta {
  flex: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars {
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -5px;
}

.nav-toggle-bars::after {
  top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
  transform: rotate(-90deg) translateX(5px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
  opacity: 0;
}

/* ----------------------------- breadcrumbs ------------------------------ */

.breadcrumbs {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 12.5px;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 0;
  list-style: none;
}

.breadcrumbs li {
  margin: 0;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs li + li::before {
  content: "/";
  color: var(--line-strong);
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs a:hover {
  color: var(--brand);
}

.breadcrumbs [aria-current] {
  color: var(--ink-2);
  font-weight: 500;
}

/* --------------------------------- hero --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 46% at 12% 0%, rgba(31, 94, 255, 0.1), transparent 72%),
    radial-gradient(44% 44% at 88% 6%, rgba(13, 159, 155, 0.09), transparent 74%);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(13, 20, 36, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 20, 36, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 20%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
  .hero-bg::after {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
      linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(13, 159, 155, 0.14);
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .hl {
  color: var(--brand);
  position: relative;
  white-space: nowrap;
}

.lede {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  max-width: 480px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.hero-stats div {
  padding-right: 18px;
}

.hero-stats div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.hero-stats dt {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.hero-stats dd {
  margin: 2px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px 16px;
  position: relative;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.hero-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 8px;
}

.hero-card-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-soft);
  padding: 3px 8px;
  border-radius: 999px;
}

.hero-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hero-rank li {
  display: grid;
  grid-template-columns: 18px 34px 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.hero-rank li:first-child {
  border-top: 0;
}

.hero-rank-no {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.hero-rank-name {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--ink);
}

.hero-rank-name em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.hero-card-foot {
  margin: 10px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted);
}

/* -------------------------------- notice -------------------------------- */

.notice-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 22px;
  padding: 13px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ink-2);
}

.notice-bar strong {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  background: var(--gold-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.notice-bar p {
  margin: 0;
  flex: 1;
  min-width: 240px;
}

.notice-bar a {
  font-size: 12.5px;
  font-weight: 600;
}

/* ------------------------------- sections ------------------------------- */

.section {
  padding: 76px 0;
}

.section-top {
  padding-top: 46px;
}

.section-alt {
  background: var(--surface-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin-bottom: 10px;
}

.section-desc {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
}

.section-head .eyebrow {
  margin-bottom: 10px;
}

.page-title {
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem);
  margin-bottom: 22px;
}

/* -------------------------------- ranking ------------------------------- */

.rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.rank-item {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.rank-item:hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.rank-main {
  flex: 1;
  display: grid;
  grid-template-columns: 28px 46px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  color: inherit;
  min-width: 0;
}

.rank-no {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.rank-item:first-child .rank-no {
  color: var(--gold-ink);
}

.rank-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.rank-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.rank-name em {
  font-style: normal;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.tag-best {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold-ink);
  background: var(--gold-soft);
  border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
  padding: 2px 7px;
  border-radius: 6px;
  letter-spacing: 0.02em;
}

.rank-desc {
  font-size: 13.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.rank-meta .sep {
  opacity: 0.45;
}

.rank-side {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}

.rank-detail {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.rank-foot {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* -------------------------------- monogram ------------------------------ */

.mono {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--mc, #eef2ff);
  color: var(--mi, #12203c);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex: none;
  box-shadow: inset 0 0 0 1px rgba(13, 20, 36, 0.06);
}

.hero-rank .mono,
.article-kicker .mono {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 12px;
}

.mini-card .mono,
.tbl-link .mono {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 11px;
}

/* --------------------------------- score -------------------------------- */

.score {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-variant-numeric: tabular-nums;
}

.score b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.score span {
  font-size: 11px;
  color: var(--muted);
}

.score-sm b {
  font-size: 15px;
}

.score-row {
  min-width: 46px;
}

/* --------------------------------- table -------------------------------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.data-table thead th {
  background: var(--surface-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: color-mix(in srgb, var(--brand) 4%, transparent);
}

.data-table tbody th {
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.data-table td {
  color: var(--ink-2);
}

.tbl-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 700;
}

.tbl-link:hover {
  color: var(--brand);
}

.table-note {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}

/* 两列事实表：窄屏不再强制最小宽度，避免横向裁切 */
.data-table.table-facts {
  min-width: 0;
  table-layout: fixed;
}

.data-table.table-facts th[scope="row"] {
  width: 38%;
  white-space: normal;
}

.table-hint {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.data-table.table-compact {
  min-width: 660px;
}

.cta-inline {
  margin: 20px 0 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--brand);
}

.link-arrow span {
  transition: transform 0.16s;
}

.link-arrow:hover span {
  transform: translateX(3px);
}

/* --------------------------------- cards -------------------------------- */

.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.card-pick {
  color: var(--brand) !important;
  font-weight: 700;
  margin-bottom: 8px !important;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.guide-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.guide-card:hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-card h2,
.guide-card h3 {
  font-size: 17px;
  margin: 0;
  line-height: 1.45;
}

.guide-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--muted);
  flex: 1;
}

.guide-card-meta {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-transform: uppercase;
}

/* ---------------------------------- faq --------------------------------- */

.faq {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.18s;
}

.faq-item[open] {
  border-color: var(--line-strong);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 14px;
  height: 14px;
  flex: none;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: transform 0.2s;
}

.faq-icon::after {
  transform: rotate(90deg);
}

.faq-item[open] .faq-icon::after {
  transform: rotate(0deg);
}

.faq-a {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}

.faq-a p {
  margin: 0;
}

/* -------------------------------- cta band ------------------------------ */

.cta-band {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: linear-gradient(115deg, #0f2a63 0%, #1f5eff 58%, #0d9f9b 128%);
  color: #fff;
  box-shadow: 0 24px 50px -30px rgba(15, 42, 99, 0.9);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 40%, #000 100%);
  pointer-events: none;
}

.cta-band > * {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  color: #fff;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem);
  margin-bottom: 8px;
}

.cta-band p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  max-width: 52ch;
}

.cta-band-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------- article ------------------------------ */

.article-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
  padding: 44px 0 40px;
  border-bottom: 1px solid var(--line);
}

.article-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand);
  margin-bottom: 14px;
}

.article-head h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.1vw, 2.5rem);
  margin-bottom: 16px;
}

.article-lede {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--ink-2);
  max-width: 62ch;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
}

.article-meta .sep {
  opacity: 0.5;
}

.score-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.score-card-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.score-card-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 4px 0 14px;
  font-variant-numeric: tabular-nums;
}

.score-card-value small {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.score-card-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.score-card-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

.score-card-list b {
  color: var(--ink);
  font-weight: 600;
}

.score-card-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  text-align: center;
}

.article-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 56px;
  padding: 44px 0 60px;
  align-items: start;
}

.article-main {
  min-width: 0;
  max-width: 760px;
}

.block {
  margin-bottom: 46px;
}

.block > h2 {
  font-size: 1.42rem;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.block p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-2);
}

.lead-p {
  font-size: 16px !important;
}

.check-list {
  list-style: none;
  margin: 18px 0;
  padding: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  margin: 10px 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.check-list .yes::before {
  content: "✓";
  background: var(--ok-soft);
  color: var(--ok);
}

.check-list .no::before {
  content: "!";
  background: var(--bad-soft);
  color: var(--bad);
}

.steps {
  counter-reset: step;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 48px;
  margin: 0;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}

.steps li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: -16px;
  top: -2px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--brand);
}

.steps strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.steps span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
}

.code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
  padding: 14px 18px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
}

.code-box-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.code-box-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.code-value {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.code-box.is-copied {
  border-color: var(--ok);
  border-style: solid;
}

.cta-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 18px 20px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: 14px;
}

.cta-box strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.cta-box p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.risk-note {
  margin: 32px 0 0;
  padding: 16px 20px;
  background: var(--warn-soft);
  border: 1px solid var(--warn-line);
  border-radius: 12px;
}

.risk-note strong {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  color: var(--gold-ink);
  margin-bottom: 4px;
}

.risk-note p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.note {
  margin: 20px 0;
  padding: 14px 18px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
}

.note p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-2);
}

.article-aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
}

.toc {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.toc-title {
  margin: 0 0 10px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.toc li {
  counter-increment: toc;
  margin: 0;
  border-top: 1px solid var(--line);
}

.toc li:first-child {
  border-top: 0;
}

.toc a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
}

.toc a:hover {
  color: var(--brand);
}

.aside-card {
  padding: 16px 18px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.aside-card-title {
  margin: 0 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.aside-rank {
  list-style: none;
  margin: 0;
  padding: 0;
}

.aside-rank li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.aside-rank li:first-child {
  border-top: 0;
}

.aside-rank a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.aside-rank span {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.aside-rank b {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.mini-cards {
  display: grid;
  gap: 10px;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: inherit;
  transition: border-color 0.16s, background 0.16s;
}

.mini-card:hover {
  border-color: color-mix(in srgb, var(--brand) 40%, var(--line));
}

.mini-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mini-card-body strong {
  font-size: 14px;
  line-height: 1.4;
}

.mini-card-body small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
}

/* ------------------------------- guide page ----------------------------- */

.article-single {
  padding-top: 44px;
}

.article-head-single {
  max-width: 880px;
  margin-bottom: 34px;
}

.article-head-single h1 {
  font-size: clamp(1.7rem, 1.05rem + 1.9vw, 2.35rem);
}

.article-head-single .eyebrow {
  margin-bottom: 12px;
}

.article-head-single .article-lede {
  color: var(--ink-2);
}

.article-prose {
  max-width: 720px;
}

.prose {
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-2);
}

.prose > p {
  margin: 0 0 1.15em;
}

.prose h2 {
  font-size: 1.45rem;
  margin: 2em 0 0.7em;
  color: var(--ink);
}

.prose h3 {
  font-size: 1.1rem;
  margin: 1.7em 0 0.6em;
  color: var(--ink);
}

.prose ul,
.prose ol {
  margin: 0 0 1.3em;
  padding-left: 1.4em;
}

.prose li {
  margin-bottom: 0.45em;
}

.prose li::marker {
  color: var(--brand);
}

.prose .table-wrap {
  margin: 1.6em 0;
}

.prose .note {
  margin: 1.6em 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.related {
  margin-top: 20px;
}

/* --------------------------------- footer ------------------------------- */

.site-footer {
  margin-top: 20px;
  background: #0a1020;
  color: #93a0b8;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 0.9fr;
  gap: 36px;
  padding: 56px 0 40px;
}

.footer-brand p {
  margin: 14px 0 0;
  max-width: 34ch;
  line-height: 1.75;
  color: #8593ab;
}

.footer-updated {
  font-size: 12px;
  color: #6b7893 !important;
}

.brand-footer {
  color: #fff;
}

.brand-footer .brand-text strong {
  color: #fff;
}

.brand-footer .brand-text small {
  color: #7c89a2;
}

.footer-col h2 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #dbe3f0;
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin: 0 0 9px;
}

.footer-col a {
  color: #93a0b8;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col a:hover {
  color: #fff;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-risk {
  margin: 0;
  max-width: 72ch;
  font-size: 12px;
  line-height: 1.75;
  color: #7c89a2;
}

.footer-risk strong {
  color: #c8a35a;
}

.footer-copy {
  margin: 0;
  font-size: 12px;
  color: #6b7893;
  white-space: nowrap;
}

/* ------------------------------ 邀请码速查条 ---------------------------- */

.invite-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 18px;
  padding: 18px 22px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: 14px;
}

.invite-strip strong {
  display: block;
  font-size: 15px;
  margin-bottom: 3px;
}

.invite-strip p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  max-width: 62ch;
}

/* -------------------------------- 两两对比 ------------------------------ */

.vs-head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 6px 0 24px;
}

.vs-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.vs-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

.vs-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vs-card-id {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.vs-card-id strong {
  font-size: 17px;
}

.vs-card-id small {
  font-size: 11.5px;
  color: var(--muted);
}

.vs-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.vs-stats li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}

.vs-stats span {
  color: var(--muted);
}

.vs-stats b {
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.vs-badge {
  align-self: center;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.vs-card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.vs-card-actions .link-arrow {
  margin-left: auto;
}

.verdict-box {
  margin: 0 0 34px;
  padding: 20px 24px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-radius: var(--radius);
}

.verdict-label {
  margin: 0 0 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--brand);
  text-transform: uppercase;
}

.verdict-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  font-weight: 500;
}

.diff-list {
  display: grid;
  gap: 22px;
  margin-top: 6px;
}

.diff-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.diff-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.diff-item h3 {
  margin: 0 0 5px;
  font-size: 15.5px;
}

.diff-item p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.8;
  color: var(--ink-2);
}

.choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.choose-card {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.choose-card h3 {
  font-size: 15px;
  margin-bottom: 4px;
}

.choose-card .check-list {
  margin: 10px 0 16px;
}

.choose-card .check-list li {
  font-size: 14px;
}

.vs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vs-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: inherit;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
}

.vs-mini:hover {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.vs-mini-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vs-mini-names {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  flex: 1;
}

.vs-mini-names em {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  padding: 0 2px;
}

.vs-mini-text {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  flex: 1;
}

/* ------------------------------- 邀请码页 -------------------------------- */

.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.code-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.code-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-card-id {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.code-card-id strong {
  font-size: 15px;
}

.code-card-id small {
  font-size: 11.5px;
  color: var(--muted);
}

.code-card-code {
  padding: 12px 14px;
  background: var(--surface-2);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
}

.code-card-code .code-box-label {
  display: block;
  margin-bottom: 2px;
}

.code-card-meta {
  display: flex;
  gap: 28px;
  margin: 0;
}

.code-card-meta dt {
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.code-card-meta dd {
  margin: 2px 0 0;
  font-size: 13.5px;
  font-weight: 600;
}

.code-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: auto;
}

.code-card-actions .btn {
  flex: 1 1 0;
}

/* -------------------------------- responsive ---------------------------- */

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-card {
    max-width: 520px;
  }

  .article-head,
  .article-body {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .article-aside {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 10px);
    margin: 0;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-nav[data-open="true"] {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .site-nav a {
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 15px;
  }

  .header-cta {
    display: none;
  }

  .rank-item {
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .rank-main {
    grid-template-columns: 22px 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .rank-desc {
    white-space: normal;
  }

  .rank-meta {
    display: none;
  }

  .rank-side {
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
  }

  .rank-detail {
    display: none;
  }
}

@media (max-width: 760px) {
  .container,
  .container.narrow {
    width: min(100% - 32px, var(--container));
  }

  .section {
    padding: 52px 0;
  }

  .section-top {
    padding-top: 34px;
  }

  .topbar-inner {
    justify-content: center;
    text-align: center;
    font-size: 11.5px;
  }

  .topbar p {
    gap: 6px;
  }

  .topbar a {
    display: none;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .hero-stats {
    max-width: none;
  }

  .hero-stats dt {
    font-size: 22px;
  }

  .cards-3,
  .cards-2,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .vs-head {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .vs-badge {
    justify-self: center;
    width: 40px;
    height: 40px;
  }

  .choose-grid,
  .code-grid,
  .vs-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 28px 24px;
  }

  .cta-band-actions {
    width: 100%;
  }

  .cta-band-actions .btn {
    flex: 1;
  }

  .article-head {
    padding: 30px 0 28px;
  }

  .article-body {
    padding: 30px 0 40px;
  }

  .score-card {
    max-width: 100%;
  }

  .block > h2 {
    font-size: 1.25rem;
  }

  .data-table {
    font-size: 13px;
    min-width: 560px;
  }

  .data-table.table-facts {
    min-width: 0;
    font-size: 13px;
  }

  .table-hint {
    display: block;
  }

  .data-table th,
  .data-table td {
    padding: 11px 13px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
    padding: 40px 0 28px;
  }

  .footer-legal {
    flex-direction: column;
  }

  .code-box {
    flex-wrap: wrap;
  }

  .code-value {
    font-size: 16px;
  }
}

@media (max-width: 620px) {
  /* 榜单行：窄屏把评分与按钮移到下一行，避免标题被挤成多行 */
  .rank-item {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .rank-main {
    flex: 1 1 100%;
  }

  .rank-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-left: 0;
    gap: 12px;
  }

  .rank-side .btn {
    height: 34px;
    padding: 0 14px;
    font-size: 13px;
  }

  .rank-side .score-row {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .brand-text small {
    display: none;
  }

  .rank-no {
    display: none;
  }

  .rank-main {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .hero-rank li {
    grid-template-columns: 16px 32px 1fr auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .rank-item:hover,
  .guide-card:hover,
  .btn:hover {
    transform: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .topbar,
  .breadcrumbs,
  .article-aside,
  .cta-band,
  .rank-side .btn {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
