/* =========================================================
   预测市场指南 · 全站样式
   版式走研报路线：象牙白 + 羊皮纸 + 古铜，全站只有浅色
   靠衬线大标题、留白、细线和编号分层，深色只用于文字
   字体只用系统栈，不加载任何网络字体
   ========================================================= */

:root {
  color-scheme: light;

  --bg: #faf8f3;
  --bg-soft: #f3eee3;
  --bg-muted: #e9e2d3;
  --bg-band: #ece4d4;
  --surface: #ffffff;
  --text: #141a27;
  --text-soft: #39414f;
  --muted: #565d6b;
  --border: #e4dccc;
  --border-strong: #cbc1ac;
  --rule: #9a7840;

  --link: #6b4e24;
  --link-hover: #141a27;

  /* 主按钮一律金色实心 + 深色字 */
  --primary: #b8935a;
  --primary-hover: #c6a269;
  --primary-soft: #f0e8d8;
  --primary-ink: #6b4e24;
  --on-primary: #17140d;

  --accent: #b8935a;
  --accent-hover: #c6a269;
  --accent-ink: #17140d;
  /* 金色文字在浅底上不够深，文字一律用古铜 */
  --accent-text: #6b4e24;

  --yes: #2a6249;
  --yes-soft: #e6eee8;
  --no: #93392f;
  --no-soft: #f5e7e3;

  --info-bg: #f1eee7;
  --info-border: #7c8494;
  --tip-bg: #e9f0ea;
  --tip-border: #2a6249;
  --warn-bg: #f8f0dd;
  --warn-border: #a07a3c;
  --danger-bg: #f8e9e5;
  --danger-border: #93392f;

  --shadow-lg: 0 14px 36px rgba(92, 72, 36, 0.14);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 8px;

  --container: 1240px;
  --content: 720px;
  --gutter: 16px;
  --header-h: 66px;
  --section-y: clamp(64px, 5rem + 3vw, 128px);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
'Microsoft YaHei', 'Noto Sans SC', 'Noto Sans CJK SC', 'Source Han Sans SC', Roboto,
    'Helvetica Neue', Arial, sans-serif;
  /* Windows 没有宋体时由 Microsoft YaHei 接住中文，避免落到 SimSun */
  --font-serif: 'Songti SC', 'Noto Serif SC', 'Noto Serif CJK SC', 'Source Han Serif SC', Georgia,
    'Microsoft YaHei', 'PingFang SC', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  /* 重要数字统一用等宽衬线数字（系统字体，等宽、齐线） */
  --font-num: 'Iowan Old Style', Charter, 'Bitstream Charter', Cambria, 'Hoefler Text', 'Songti SC', 'Times New Roman', serif;

  /* 母题：是 / 否双色分割条 */
  --split: linear-gradient(90deg, var(--yes) 0 62%, var(--no) 62% 100%);
  /* 底纹：两级格线的浅色坐标纸 */
  --paper-image:
    linear-gradient(rgba(122, 92, 42, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 42, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(122, 92, 42, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 92, 42, 0.032) 1px, transparent 1px);
  --paper-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  /* 栏目色默认值（各栏目在 [data-section] 上覆盖） */
  --cat: var(--accent-text);
  --cat-soft: rgba(107, 78, 36, 0.06);
}
[data-section='polymarket'] {
  --cat: #2d5a4c;
  --cat-soft: rgba(45, 90, 76, 0.07);
}
[data-section='deposit'] {
  --cat: #7a5326;
  --cat-soft: rgba(122, 83, 38, 0.07);
}
[data-section='exchange'] {
  --cat: #34477a;
  --cat-soft: rgba(52, 71, 122, 0.07);
}
[data-section='strategy'] {
  --cat: #7d2e3e;
  --cat-soft: rgba(125, 46, 62, 0.07);
}

/* ---------- reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--paper-image);
  background-size: var(--paper-size);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  font-variant-numeric: lining-nums tabular-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img,
svg,
video {
  max-width: 100%;
  height: auto;
}
.icon-line {
  flex: none;
  display: inline-block;
  vertical-align: -0.2em;
}
a {
  color: var(--link);
  text-decoration: none;
  transition:
    color 0.18s ease,
    background-size 0.28s ease;
}
a:hover {
  color: var(--link-hover);
}
/* 普通文字链接：下划线从左向右展开 */
a:not(.btn, .a-card, .brand, .ticker__link, .skip-link, .nav-desktop a, .toc a, .nav-mobile .panel a, .prose a) {
  background-image: var(--split);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  padding-bottom: 1px;
}
a:not(.btn, .a-card, .brand, .ticker__link, .skip-link, .nav-desktop a, .toc a, .nav-mobile .panel a, .prose a):hover {
  background-size: 100% 1px;
}
::selection {
  background: #ecdcb6;
  color: var(--text);
}
[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
h1,
h2,
h3,
h4 {
  line-height: 1.3;
  color: var(--text);
  letter-spacing: 0;
  text-wrap: balance;
  /* 优先在空格和标点处断行，英文词不拆；实在放不下才任意断 */
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h1,
h2 {
  font-family: var(--font-serif);
  font-weight: 700;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  font-variant-numeric: inherit;
}
:focus-visible {
  outline: 2px solid var(--rule);
  outline-offset: 3px;
  border-radius: 2px;
}
[hidden] {
  display: none !important;
}
.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: -9999px;
  top: 8px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
}
.skip-link:focus {
  left: 8px;
}

/* ---------- layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container--article {
  max-width: 1148px;
}
.container--route {
  max-width: 948px;
}
@media (min-width: 768px) {
  :root {
    --gutter: 24px;
  }
}
main {
  display: block;
  min-height: 60vh;
}
.section {
  padding: var(--section-y) 0;
}
.section--soft {
  background-color: var(--bg-soft);
  background-image: var(--paper-image);
  background-size: var(--paper-size);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
  margin-bottom: clamp(28px, 4vw, 48px);
  flex-wrap: wrap;
}
.section-head > div {
  min-width: 0;
  flex: 1 1 320px;
}
.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem);
  line-height: 1.24;
}
.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 600px;
}
.section-head .more,
.section-head--stack .more {
  font-size: 0.92rem;
  white-space: nowrap;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 100% 1px;
}
.section-head .more:hover {
  background-image: var(--split);
}
.section-head--stack {
  display: block;
  margin-bottom: 0;
}
.section-head--stack .more {
  display: inline-block;
  margin-top: 20px;
}

/* 左标题右内容的编辑式版块 */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    gap: clamp(56px, 7vw, 104px);
    align-items: start;
  }
  .split__head {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border-strong);
}
.site-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: calc(var(--header-h) - 3px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.06em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover {
  text-decoration: none;
  color: var(--text);
}
.brand-mark {
  width: 30px;
  height: 30px;
  flex: none;
}
.nav-desktop {
  display: none;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  color: var(--text-soft);
  padding: 0 12px;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  box-shadow: inset 0 0 0 transparent;
  transition:
    color 0.18s ease,
    box-shadow 0.18s ease;
}
.nav-desktop a:hover,
.nav-desktop a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 -1px 0 var(--accent);
}
@media (min-width: 1040px) {
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
}
.nav-mobile {
  position: relative;
}
.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  color: var(--text);
}
.nav-mobile summary::-webkit-details-marker {
  display: none;
}
.nav-mobile[open] summary {
  background: var(--bg-muted);
}
.nav-mobile .panel {
  position: absolute;
  right: 0;
  top: 52px;
  width: min(calc(100vw - 2 * var(--gutter)), 340px);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  padding: 8px 16px 16px;
  display: grid;
}
.nav-mobile .panel a:not(.btn) {
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.nav-mobile .panel a:not(.btn):hover {
  color: var(--link);
  text-decoration: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  line-height: 1.25;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px -8px rgba(92, 72, 36, 0.45);
}
.btn:active {
  transform: none;
  box-shadow: none;
}
.btn--accent,
.btn--primary {
  background-image: var(--split);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
.btn--accent {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-ink);
}
.btn--primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.btn--primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--on-primary);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover {
  border-color: var(--accent-text);
  color: var(--accent-text);
}
.btn--line {
  background: transparent;
  color: var(--link);
  border-color: var(--accent);
}
.btn--line:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn--sm {
  padding: 7px 14px;
  font-size: 0.88rem;
}
.btn--lg {
  padding: 15px 28px;
  font-size: 1.02rem;
}
.btn--block {
  width: 100%;
  white-space: normal;
}

/* ---------- labels ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 2px;
  border: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.chip--start {
  align-self: flex-start;
}
.chip--primary {
  border-color: var(--accent);
  color: var(--accent-text);
}
.chip--yes {
  border-color: var(--yes);
  color: var(--yes);
}
.chip--no {
  border-color: var(--no);
  color: var(--no);
}
/* 用字母组合做统一的单色标记，不使用品牌色 */
.ex-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}
.ex-badge--sm {
  width: 32px;
  height: 32px;
  font-size: 0.62rem;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent-text);
}

/* ---------- cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.card-pad {
  padding: clamp(20px, 3vw, 28px);
}
.grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
}
.grid-2 {
  grid-template-columns: minmax(0, 1fr);
}
.grid-3 {
  grid-template-columns: minmax(0, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1000px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* article card：去掉卡片外壳，只留顶部细线 */
.a-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 0 8px;
  height: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-strong);
  border-radius: 0;
  transition: border-color 0.18s ease;
}
.a-card:hover {
  text-decoration: none;
  color: var(--text);
  border-top-color: var(--accent);
}
.a-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.14rem;
  line-height: 1.5;
  transition: color 0.18s ease;
}
.a-card:hover h3 {
  color: var(--link);
}
.a-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.a-card .meta {
  margin-top: auto;
  padding-top: 4px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}
.a-card__icon {
  color: var(--accent-text);
  margin-bottom: 8px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  isolation: isolate;
  background-color: var(--bg);
  background-image: radial-gradient(1100px 620px at 88% 12%, rgba(184, 147, 90, 0.12), transparent 70%), var(--paper-image);
  background-size: auto, var(--paper-size);
  border-bottom: 1px solid var(--border-strong);
}
.hero-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  max-width: none;
  pointer-events: none;
}
.hero-lines path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  opacity: 0.42;
}
.hero-lines path + path {
  opacity: 0.26;
}
.hero-lines path + path + path {
  opacity: 0.16;
}
.hero h1 {
  font-size: clamp(2.5rem, 1.35rem + 4.5vw, 4.875rem);
  line-height: 1.12;
  margin: 22px 0 26px;
}
.hero h1 .h1-sub {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.14rem, 0.42em, 1.75rem);
  line-height: 1.45;
  color: var(--text-soft);
  font-weight: 700;
}
.hero .lead {
  font-size: 1.06rem;
  line-height: 1.9;
  color: var(--text-soft);
  max-width: 620px;
  margin: 0 0 34px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
/* 首页邀请码条：用全站的是/否分割条做底边，不用票券、打孔这类站群里已有的造型 */
.home-invite {
  position: relative;
  margin-top: 26px;
  max-width: 460px;
  padding: 14px 16px 15px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.home-invite::after {
  content: '';
  position: absolute;
  left: -1px;
  right: -1px;
  bottom: -1px;
  height: 3px;
  background: var(--split);
}
.home-invite__label {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--muted);
}
.home-invite__row {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}
.home-invite__code {
  flex: 1;
  padding: 6px 0 8px;
  font-family: var(--font-mono);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  color: var(--text);
  background: transparent;
}
.home-invite__copy {
  min-width: 76px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  margin: 4px 0 8px;
  background: var(--bg-soft);
  color: var(--accent-text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.home-invite__copy:hover {
  background: var(--bg-muted);
}
.home-invite__perk {
  margin: 8px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-soft);
}
/* 矮屏（13 寸笔记本、iPhone SE）收紧首屏，让邀请码条不滚动也看得到 */
@media (max-height: 820px) {
  .hero {
    padding-top: 30px;
  }
  .hero-grid {
    align-items: start;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 1rem + 3.4vw, 3.9rem);
    margin: 14px 0 18px;
  }
  .hero h1 .h1-sub {
    margin-top: 10px;
  }
  .hero .lead {
    margin-bottom: 20px;
    line-height: 1.75;
  }
  .home-invite {
    margin-top: 16px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero-copy {
  min-width: 0;
}
@media (max-width: 479.98px) {
  /* 两个按钮并排，给首屏的邀请码条留出位置（360px 宽也要不滚动就看得到） */
  .hero .actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-left: 10px;
    padding-right: 10px;
    white-space: normal;
  }
  .hero .lead {
    margin-bottom: 22px;
  }
  .home-invite {
    margin-top: 16px;
    padding: 10px 12px 9px;
  }
  .home-invite__label {
    margin-bottom: 6px;
  }
  .home-invite__perk {
    margin-top: 6px;
  }
}
@media (min-width: 960px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    padding: 72px 0;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(48px, 6vw, 88px);
  }
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 0.86rem;
}
.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.trust-row .icon-line {
  color: var(--accent-text);
}

/* steps：编号账目行 */
.steps {
  counter-reset: step;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.step {
  position: relative;
  padding: 26px 0 26px 68px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 24px;
  font-family: var(--font-num);
  font-size: 1.5rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--accent-text);
}
.step h3 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
}
.step p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
  max-width: 620px;
}
@media (min-width: 720px) {
  .step {
    padding-left: 116px;
  }
  .step::before {
    font-size: 2.5rem;
    line-height: 1.1;
    top: 26px;
  }
}

/* ---------- exchange CTA ---------- */
.ex-grid {
  gap: 0;
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--border);
}
@media (min-width: 700px) and (max-width: 859.98px) {
  .ex-grid.grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (min-width: 860px) {
  .ex-grid.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ex-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px clamp(18px, 2vw, 24px);
  height: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: box-shadow 0.18s ease;
}
.ex-card:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.ex-card .top {
  display: flex;
  gap: 14px;
  align-items: center;
}
.ex-card .name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.3;
}
.ex-card .name small {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 6px;
}
.ex-card .tagline {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
}
.ex-card .perk {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  line-height: 1.6;
}
.ex-card .perk .icon-line {
  margin-top: 0.2em;
  color: var(--accent-text);
}
.ex-card .facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border-strong);
}
.ex-card .fact {
  min-width: 0;
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--border);
}
.ex-card .fact:nth-child(2) {
  padding: 12px 0 12px 14px;
  border-left: 1px solid var(--border);
}
.ex-card .fact--wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-right: 0;
}
.ex-card .facts dt {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ex-card .facts dd {
  margin: 4px 0 0;
  font-family: var(--font-num);
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.ex-card .fact--wide dd {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.88rem;
}
/* 视觉顺序：头部 → 定位 → 费率 → 警示 → 权益 → 按钮（DOM 顺序不变） */
.ex-card > .top { order: 1; }
.ex-card > .tagline { order: 2; }
.ex-card > .chip { order: 3; }
.ex-card > .facts { order: 4; }
.ex-card > .fact-note { order: 5; }
.ex-card > .ex-alert { order: 6; }
.ex-card > .perk { order: 7; }
.ex-card > .actions { order: 8; }
.fact-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--muted);
}
.ex-card .actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 4px;
}
.ex-card .code {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.ex-card .code b {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text);
  user-select: all;
}
.ex-alert {
  display: flex;
  gap: 8px;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text);
  background: transparent;
  border-left: 2px solid var(--danger-border);
  border-radius: 0;
  padding: 2px 0 2px 12px;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: normal;
}
.ex-alert .icon-line {
  margin-top: 0.2em;
  color: var(--no);
}
.stars {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-text);
  font-size: 0.82rem;
}
.stars-row {
  display: inline-flex;
  gap: 1px;
}
.star-on {
  fill: currentColor;
}
.star-off {
  opacity: 0.4;
}
.stars .num {
  font-family: var(--font-num);
  color: var(--muted);
}

/* 站内预测版块 */
.inapp-list {
  display: grid;
  border-top: 1px solid var(--rule);
}
.inapp {
  display: grid;
  gap: 14px;
  padding: 26px 0;
  border-bottom: 1px solid var(--border);
}
.inapp .row {
  flex-wrap: wrap;
}
.inapp__name h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  line-height: 1.35;
}
.inapp__desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 640px;
}
/* 卡片、表格、工具里的「注册教程 →」「查看对比 →」：普通文字链，不做成按钮 */
.text-link {
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.ex-card .actions {
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.result-panel .text-link {
  justify-self: start;
}
/* 正文组件渲染出的普通文字内链段落 */
.inline-ref {
  margin: 0 0 1.25em;
}
.inline-ref a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

/* 文内推广条 */
.cta-inline {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 22px;
  margin: 32px 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
}
.cta-inline .body {
  flex: 1 1 260px;
  min-width: 0;
}
.cta-inline .title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1.45;
  color: var(--text);
}
.cta-inline .desc {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}
.cta-inline .btn {
  flex: none;
}
/* 推广直链旁的固定披露：紧贴按钮下方，正文级对比度 */
.cta-inline .aff-note {
  flex-basis: 100%;
  margin: -4px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-soft);
}
.cta-inline--direct {
  border-left-color: var(--rule);
}
.ex-group {
  margin: 36px 0;
}
.ex-group__title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
}

/* ---------- tables ---------- */
.table-wrap {
  position: relative;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--border-strong);
  margin: 28px 0 14px;
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th,
td {
  padding: 14px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.6;
}
th {
  white-space: nowrap;
  color: var(--text-soft);
  font-weight: 600;
}
thead th {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border-strong);
  vertical-align: bottom;
}
thead th .small {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  font-weight: 400;
}
tbody th {
  font-weight: 500;
  color: var(--muted);
}
tbody tr {
  transition: background-color 0.18s ease;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
.table-compare tbody th {
  color: var(--text);
}
.table-compare td,
.table-compare th {
  min-width: 96px;
}
.table-compare td.small {
  min-width: 132px;
}
.table-compare tbody th {
  min-width: 212px;
  white-space: normal;
}
.table-compare td.nowrap {
  min-width: 132px;
}
.table-compare td.nowrap .small {
  white-space: normal;
}
.table-compare tbody tr:hover {
  background: var(--bg-soft);
}
.table-compare td.nowrap {
  font-family: var(--font-num);
  font-size: 0.86rem;
}
.table-compare td.nowrap .small {
  font-family: var(--font-sans);
}
.table-compare td:first-child,
.table-compare th:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
/* 表格需要横滑时，注册列始终留在可视区 */
.table-compare .cell-cta,
.table-compare thead th:last-child {
  position: sticky;
  right: 0;
  min-width: 0;
  background: var(--surface);
  z-index: 1;
}
.table-compare .btn--accent {
  background: transparent;
  color: var(--link);
}
.table-compare .btn--accent:hover {
  background: var(--accent);
  color: var(--accent-ink);
}
.tick {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.tick--yes {
  color: var(--yes);
}
.tick--no {
  color: var(--no);
}
.ex-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-serif);
  font-size: 1.02rem;
  font-weight: 700;
  white-space: nowrap;
}
.ex-cell .muted {
  font-family: var(--font-sans);
  font-weight: 400;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.nowrap {
  white-space: nowrap;
}

/* 表格放不下时（手机、文章栏）拆成逐行清单，按容器宽度判断，不必横向拖动 */
.table-wrap--stack {
  container-type: inline-size;
}
@container (max-width: 899.98px) {
  .table-compare,
  .table-compare tbody,
  .table-compare tr,
  .table-compare td,
  .table-compare tbody th {
    display: block;
    width: 100%;
  }
  .table-compare thead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .table-compare tr {
    padding: 16px 16px 18px;
    border-bottom: 1px solid var(--border-strong);
  }
  .table-compare tbody tr:last-child {
    border-bottom: 0;
  }
  .table-compare tbody th {
    position: static;
    min-width: 0;
    padding: 0 0 10px;
    border: 0;
    background: transparent;
    white-space: normal;
  }
  .table-compare td,
  .table-compare td.small,
  .table-compare td.nowrap {
    display: flow-root;
    position: static;
    min-width: 0;
    padding: 8px 0 8px 8.6rem;
    border-bottom: 1px solid var(--border);
    background: transparent;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .table-compare td[data-label]::before {
    content: attr(data-label);
    float: left;
    width: 7.8rem;
    margin-left: -8.6rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    line-height: 1.6;
    color: var(--muted);
  }
  .table-compare tbody tr:last-child td {
    border-bottom: 1px solid var(--border);
  }
  .table-compare td.cell-cta,
  .table-compare tbody tr:last-child td.cell-cta {
    position: static;
    padding: 12px 0 0;
    border-bottom: 0;
    background: transparent;
  }
  .table-compare .cell-cta .text-link {
    display: inline-block;
  }
  .table-compare tbody tr:hover {
    background: transparent;
  }
}

/* ---------- article ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding: 36px 0 72px;
}
@media (min-width: 1060px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 276px;
    gap: 76px;
    padding: 48px 0 96px;
  }
}
.article-header {
  position: relative;
  padding: 26px 0 0;
  border-top: 2px solid var(--rule);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 262 120 250 240 256 360 222 480 232 600 196 720 206 840 166 960 178 1080 130 1200 140 1320 98 1440 78' fill='none' stroke='%23b8935a' stroke-opacity='.45' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 292 120 284 240 288 360 268 480 274 600 250 720 256 840 230 960 238 1080 206 1200 212 1320 184 1440 172' fill='none' stroke='%23b8935a' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}
.article-header h1 {
  font-size: clamp(1.9rem, 1.35rem + 2.3vw, 3rem);
  line-height: 1.24;
  margin: 18px 0 20px;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-top: 4px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border-strong);
  background: rgba(250, 248, 243, 0.82);
  color: var(--text-soft);
  font-size: 0.84rem;
}
.article-meta > span {
  display: block;
}
.article-meta > span + span::before {
  content: '';
  display: inline-block;
  vertical-align: -1px;
  width: 1px;
  height: 12px;
  margin: 0 14px;
  background: var(--border-strong);
}
.article-meta time {
  font-family: var(--font-num);
  font-size: 0.82rem;
}
.article-body {
  margin-top: 32px;
}
.page-body {
  padding: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 96px);
}
.page-tail {
  padding-bottom: var(--section-y);
}
.breadcrumbs {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.breadcrumbs li + li::before {
  content: '/';
  margin: 0 6px 0 2px;
  color: var(--muted);
}
.breadcrumbs a {
  color: var(--muted);
}
.tldr {
  position: relative;
  margin: 32px 0 8px;
  padding: 22px 28px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--rule);
  box-shadow: 0 1px 0 var(--border);
}
.tldr h2 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-text);
}
.tldr ul {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: tldr;
}
.tldr li {
  counter-increment: tldr;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.75;
  font-size: 0.98rem;
}
.tldr li::before {
  content: counter(tldr, decimal-leading-zero);
  padding-top: 0.15em;
  font-family: var(--font-num);
  font-size: 0.8rem;
  color: var(--accent-text);
}
.tldr li:last-child {
  border-bottom: 0;
}

.prose {
  font-size: 1.0625rem;
  line-height: 1.95;
  color: var(--text);
  max-width: var(--content);
  overflow-wrap: anywhere;
}
.prose > :first-child {
  margin-top: 0;
}
.prose h2 {
  font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.8rem);
  line-height: 1.35;
  margin: 2.5em 0 0.8em;
  padding-top: 1.1em;
  border-top: 1px solid var(--border-strong);
}
.prose > h2:first-child {
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 2em 0 0.6em;
}
.prose h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.6em 0 0.5em;
}
.prose p {
  margin: 0 0 1.25em;
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1.35em;
}
.prose li {
  margin: 0.4em 0;
  padding-left: 0.2em;
}
.prose li::marker {
  color: var(--accent-text);
  font-family: var(--font-num);
  font-size: 0.92em;
}
.prose li > ul,
.prose li > ol {
  margin: 0.3em 0;
}
.prose strong {
  font-weight: 700;
  color: var(--text);
}
.prose blockquote {
  position: relative;
  margin: 2.2em 0;
  padding: 0.4em 0 0.4em 2.6em;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
  font-family: var(--font-serif);
  font-size: 1.12em;
  line-height: 1.85;
  color: var(--text);
}
.prose blockquote::before {
  content: '\201C';
  position: absolute;
  left: 0;
  top: 0.1em;
  font-family: Georgia, var(--font-serif);
  font-size: 3.2em;
  line-height: 1;
  color: var(--accent-text);
}
.prose blockquote p:last-child {
  margin-bottom: 0;
}
.prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--bg-muted);
  padding: 0.12em 0.4em;
  border-radius: 2px;
}
.prose pre {
  overflow-x: auto;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  font-size: 0.88rem;
}
.prose pre code {
  background: none;
  padding: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--border-strong);
  margin: 2.8em 0;
}
.prose table {
  font-size: 0.92rem;
  line-height: 1.65;
}
.prose > table {
  display: block;
  overflow-x: auto;
  margin: 1.8em 0;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--border-strong);
}
.prose > table th {
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}
.prose > table td {
  min-width: 6.5em;
}
.prose > table tbody tr:nth-child(even),
.table-wrap table:not(.table-compare) tbody tr:nth-child(even) {
  background: rgba(243, 238, 227, 0.7);
}
.prose > table td,
.table-wrap td {
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 760px) {
  .prose > table {
    display: table;
    overflow: visible;
  }
  .prose > table th {
    white-space: normal;
  }
}
.prose a {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 65%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.prose a:hover {
  text-decoration-color: currentColor;
}
.prose a.btn {
  text-decoration: none;
}
.prose img {
  border-radius: var(--radius-sm);
}

/* 真实网页截图：细框 + 浅投影，图注压在左侧色条旁 */
.shot {
  margin: 1.9em 0 2.1em;
}
.shot__frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 1px 0 var(--border), 0 10px 28px rgba(92, 72, 36, 0.1);
  overflow: hidden;
  line-height: 0;
}
.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}
.shot--narrow {
  max-width: 340px;
}
.shot figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 2px solid var(--border-strong);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}
.prose h2,
.prose h3 {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* callout：左侧色条保证提醒足够显眼 */
.callout {
  margin: 1.8em 0;
  padding: 16px 20px 16px 18px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  border-left: 3px solid var(--info-border);
  background: var(--info-bg);
  display: flex;
  gap: 14px;
  font-size: 0.98rem;
  line-height: 1.85;
}
.callout .icon {
  flex: none;
  display: inline-flex;
  padding-top: 0.25em;
  color: var(--info-border);
}
.callout .content {
  min-width: 0;
  flex: 1;
}
.callout .content > :last-child {
  margin-bottom: 0;
}
.callout .content > :first-child {
  margin-top: 0;
}
.callout .ctitle {
  font-weight: 700;
  margin: 0 0 4px;
}
.callout--tip {
  background: var(--tip-bg);
  border-left-color: var(--tip-border);
}
.callout--tip .icon {
  color: var(--tip-border);
}
.callout--warning {
  background: var(--warn-bg);
  border-left-color: var(--warn-border);
}
.callout--warning .icon {
  color: var(--warn-border);
}
.callout--danger {
  background: var(--danger-bg);
  border-left-color: var(--danger-border);
}
.callout--danger .icon {
  color: var(--danger-border);
}

/* TOC */
.toc {
  font-size: 0.88rem;
}
.toc .toc-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent-text);
  margin: 0 0 10px;
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  border-left: 1px solid var(--border-strong);
}
.toc a {
  display: block;
  color: var(--text-soft);
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  line-height: 1.55;
  transition:
    color 0.18s ease,
    border-color 0.18s ease;
}
.toc a:hover {
  color: var(--text);
  border-left-color: var(--accent);
  text-decoration: none;
}
.toc .depth-3 a {
  padding-left: 28px;
  font-size: 0.82rem;
  color: var(--muted);
}
.toc-mobile {
  margin: 22px 0 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.toc-mobile summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 13px 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.toc-mobile summary .icon-line {
  color: var(--accent-text);
}
.toc-mobile .toc {
  padding: 0 0 16px;
}
.toc-mobile .toc-title {
  display: none;
}
@media (min-width: 1060px) {
  .toc-mobile {
    display: none;
  }
}

/* sidebar */
.sidebar {
  display: none;
}
@media (min-width: 1060px) {
  .sidebar {
    display: block;
  }
}
.sidebar .sticky {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 32px;
  max-height: calc(100vh - var(--header-h) - 40px);
  overflow-y: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.side-box {
  padding: 0;
}
.side-box h2,
.side-box .side-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent-text);
  margin: 0 0 10px;
}
.side-more {
  display: block;
  margin-top: 10px;
}
.side-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  line-height: 1.6;
}
.side-links li {
  padding: 7px 0;
  border-top: 1px solid var(--border);
}
/* FAQ */
.faq {
  margin-top: 56px;
}
.faq h2 {
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
  margin: 0 0 18px;
}
.faq details {
  border-top: 1px solid var(--border-strong);
}
.faq details:last-of-type {
  border-bottom: 1px solid var(--border-strong);
}
.faq summary {
  cursor: pointer;
  padding: 18px 0;
  font-weight: 600;
  font-size: 1.04rem;
  line-height: 1.6;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  transition: color 0.18s ease;
}
.faq summary:hover {
  color: var(--link);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: 0.45em;
  background:
    linear-gradient(var(--accent-text), var(--accent-text)) center / 100% 1px no-repeat,
    linear-gradient(var(--accent-text), var(--accent-text)) center / 1px 100% no-repeat;
  transition: background-size 0.18s ease;
}
.faq details[open] summary::after {
  background-size:
    100% 1px,
    1px 0;
}
.faq .answer {
  padding: 0 32px 22px 0;
  color: var(--text-soft);
  line-height: 1.9;
}
.home-faq .faq {
  margin-top: 0;
}
@media (min-width: 960px) {
  .home-faq .faq {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 8fr);
    column-gap: clamp(56px, 7vw, 104px);
  }
  .home-faq .faq h2 {
    grid-column: 1;
    grid-row: 1 / span 12;
    font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.75rem);
    margin: 0;
  }
  .home-faq .faq details {
    grid-column: 2;
  }
}

/* risk note：比正文小，但保持足够的对比度和存在感 */
.risk-note {
  position: relative;
  margin-top: 48px;
  padding: 18px 22px 18px 54px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--danger-border);
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.85;
}
.risk-note strong {
  color: var(--text);
}
.risk-icon {
  position: absolute;
  left: 20px;
  top: 21px;
  color: var(--no);
}

/* related */
.related {
  margin-top: 56px;
}
.related h2 {
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.7rem);
  margin: 0 0 18px;
}

/* ---------- deposit flow diagram ---------- */
.flow {
  margin: 2em 0;
  padding: 0;
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-strong);
}
.section .container > .flow {
  margin: clamp(48px, 6vw, 80px) 0 0;
}
.flow-steps {
  display: grid;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 720px) {
  .flow-steps {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 4px;
  }
}
.flow-node {
  padding: 20px 8px;
}
.flow-node .k {
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.flow-node .v {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text);
}
.flow-node .d {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}
.flow-arrow {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  padding: 0 8px 12px;
  color: var(--accent-text);
  font-family: var(--font-num);
  font-size: 0.74rem;
  line-height: 1.3;
  text-align: center;
}
.flow-arrow::before {
  content: '↓';
  font-size: 1.1rem;
}
@media (min-width: 720px) {
  .flow-arrow {
    padding: 0 12px;
  }
  .flow-arrow::before {
    content: '→';
  }
}
.flow-caption {
  margin: 0;
  padding: 12px 8px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- markets ---------- */
.market-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  border-top: 2px solid var(--rule);
  border-left: 1px solid var(--border);
}
@media (min-width: 760px) {
  .market-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .market-list--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.market {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  height: 100%;
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  transition: box-shadow 0.18s ease;
}
.market:hover {
  box-shadow: inset 0 0 0 1px var(--accent);
}
.market .head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.market .icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  object-fit: cover;
  flex: none;
  background: var(--bg-soft);
}
.market .title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.market .title a {
  color: inherit;
}
.market .outcomes {
  display: grid;
  gap: 8px;
}
.outcome {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: baseline;
  font-size: 0.86rem;
}
.outcome .label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-soft);
}
.outcome .pct {
  font-family: var(--font-num);
  font-size: 0.92rem;
  font-weight: 500;
}
.bar {
  grid-column: 1 / -1;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--border);
  overflow: hidden;
}
.bar > i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.bar.yes > i {
  background: var(--yes);
}
.bar.no > i {
  background: var(--no);
}
.market .foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  color: var(--muted);
  font-size: 0.78rem;
  align-items: center;
}
.market .foot > span:not(.chip) {
  font-family: var(--font-num);
  font-size: 0.72rem;
  letter-spacing: -0.01em;
}
.market .foot .chip {
  font-size: 0.7rem;
  padding: 1px 6px;
}
.market .foot a {
  margin-left: auto;
  font-weight: 600;
}
.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 22px;
}
.filter-row button {
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  cursor: pointer;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.filter-row button:hover {
  border-color: var(--accent-text);
}
.filter-row button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.empty-state {
  padding: 36px 28px;
  text-align: center;
  color: var(--text-soft);
  border-top: 2px solid var(--rule);
  border-radius: 0;
}

/* ---------- tools ---------- */
.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
@media (min-width: 900px) {
  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
  }
}
.tool-prose {
  max-width: 800px;
  margin-top: clamp(40px, 5vw, 64px);
}
.tool-subhead {
  margin: clamp(48px, 6vw, 72px) 0 0;
  font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem);
}
.form {
  display: grid;
  gap: 20px;
  border-top: 2px solid var(--rule);
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field label,
.field .label {
  font-weight: 600;
  font-size: 0.92rem;
}
.field .hint {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}
.input,
.select {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background-color: var(--bg);
  font-size: 1rem;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}
.input[type='number'] {
  font-family: var(--font-num);
}
.select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 55%,
    calc(100% - 13px) 55%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}
.input:focus,
.select:focus {
  outline: none;
  border-color: var(--accent-text);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 26%, transparent);
}
.input[aria-invalid='true'] {
  border-color: var(--no);
}
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .input {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}
.input-group .addon {
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-family: var(--font-num);
  font-size: 0.88rem;
  white-space: nowrap;
}
.range {
  width: 100%;
  accent-color: var(--accent-text);
}
.seg {
  display: inline-flex;
  justify-self: start;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 3px;
  gap: 2px;
  flex-wrap: wrap;
}
.seg button {
  border: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 6px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    background-color 0.18s ease,
    color 0.18s ease;
}
.seg button[aria-pressed='true'] {
  background: var(--primary);
  color: var(--on-primary);
}
.result-panel {
  padding: clamp(20px, 3vw, 28px);
  display: grid;
  gap: 18px;
  min-width: 0;
  border-color: var(--border-strong);
  border-top: 2px solid var(--rule);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.result-panel .note {
  color: var(--muted);
}
.kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--border-strong);
}
/* 三格时第一格占满一行，避免剩下一个孤格 */
.kpis > .kpi:first-child:nth-last-child(3) {
  grid-column: 1 / -1;
}
.kpi {
  min-width: 0;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--border);
}
.kpi:nth-child(odd) {
  padding-right: 16px;
}
.kpi:nth-child(even) {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}
.kpi .k {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.kpi .v {
  font-family: var(--font-num);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}
.kpi--hl .v {
  color: var(--accent-text);
}
.pos {
  color: var(--yes);
}
.neg {
  color: var(--no);
}
.kpi .v.pos {
  color: var(--yes);
}
.kpi .v.neg {
  color: var(--no);
}
.explain {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.85;
  background: var(--bg-soft);
  border-left: 2px solid var(--accent);
  padding: 12px 16px;
}

/* route tool */
.route-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.route-picker button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-strong);
  background: transparent;
  border-radius: var(--radius-sm);
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}
.route-picker button:hover {
  border-color: var(--accent-text);
}
.route-picker button[aria-pressed='true'] {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}
.route-picker button[aria-pressed='true'] .ex-badge {
  color: inherit;
  border-color: var(--link);
}
.route {
  border-top: 2px solid var(--rule);
  border-radius: 0;
}
.route[hidden] {
  display: none;
}
.route .card {
  border-top: 1px solid var(--border);
}
.route ol.route-steps {
  counter-reset: rs;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: grid;
  border-top: 1px solid var(--border-strong);
}
.route ol.route-steps > li {
  position: relative;
  padding: 14px 0 14px 46px;
  border-bottom: 1px solid var(--border);
  line-height: 1.8;
}
.route ol.route-steps > li::before {
  counter-increment: rs;
  content: counter(rs, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 15px;
  font-family: var(--font-num);
  font-size: 0.95rem;
  color: var(--accent-text);
}

/* ---------- page header (hubs) ---------- */
.page-head {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 84px);
  background-color: var(--bg-soft);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 320' preserveAspectRatio='none'%3E%3Cpath d='M0 262 120 250 240 256 360 222 480 232 600 196 720 206 840 166 960 178 1080 130 1200 140 1320 98 1440 78' fill='none' stroke='%23b8935a' stroke-opacity='.45' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M0 292 120 284 240 288 360 268 480 274 600 250 720 256 840 230 960 238 1080 206 1200 212 1320 184 1440 172' fill='none' stroke='%23b8935a' stroke-opacity='.22' stroke-width='1' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E"),
    repeating-linear-gradient(90deg, rgba(107, 78, 36, 0.5) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, rgba(107, 78, 36, 0.28) 0 1px, transparent 1px 2%),
    var(--paper-image);
  background-size:
    100% 100%,
    100% 12px,
    100% 6px,
    var(--paper-size);
  background-repeat: no-repeat, no-repeat, no-repeat, repeat, repeat, repeat, repeat;
  background-position: center bottom, left bottom, left bottom, center top;
  border-bottom: 1px solid var(--border-strong);
}
.page-mark {
  display: block;
  margin-top: 28px;
  color: var(--accent-text);
}
.page-head h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.1rem, 1.5rem + 2.7vw, 3.5rem);
  line-height: 1.2;
}
.page-head .breadcrumbs + h1 {
  margin-top: 28px;
}
.page-head p {
  margin: 0 0 10px;
  color: var(--text-soft);
  max-width: 740px;
  font-size: 1.04rem;
  line-height: 1.9;
}
.markets-official {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 18px 0 6px;
}
.markets-official a {
  font-weight: 600;
}
.markets-official .note {
  margin: 0;
}
.page-head .note {
  font-size: 0.84rem;
  color: var(--text-soft);
}

/* ---------- home tools ---------- */
.tool-index {
  counter-reset: tool;
}
.tool-index .a-card {
  position: relative;
  counter-increment: tool;
}
.tool-index .a-card::after {
  content: counter(tool, decimal-leading-zero);
  position: absolute;
  right: 0;
  top: 20px;
  font-family: var(--font-num);
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent-text);
}

/* ---------- home library ---------- */
.section--lib {
  padding: clamp(44px, 5vw, 72px) 0;
  background-color: var(--bg-soft);
  background-image: var(--paper-image);
  background-size: var(--paper-size);
  border-top: 1px solid var(--border-strong);
}
.section--lib-first {
  border-top: 0;
  padding-top: var(--section-y);
}
.lib-icon {
  display: block;
  margin-bottom: 14px;
  color: var(--accent-text);
}
.split--lib .section-head h2 {
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
}
.split--lib .section-head p {
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 400px;
}
.lib-list {
  display: grid;
}
/* ---------- footer ---------- */
.site-footer {
  padding: clamp(56px, 7vw, 88px) 0 32px;
  font-size: 0.9rem;
  background-color: var(--bg-band);
  background-image: var(--split);
  background-size: 100% 3px;
  background-repeat: no-repeat;
  color: var(--text);
}
.footer-grid {
  display: grid;
  gap: 36px 28px;
  grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}
.footer-grid .about {
  grid-column: 1 / -1;
}
@media (min-width: 900px) {
  .footer-grid .about {
    grid-column: auto;
  }
}
.footer-desc {
  margin: 16px 0 0;
  max-width: 380px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.85;
}
.site-footer h2 {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent-text);
  margin: 0 0 14px;
}
.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.site-footer ul a {
  color: var(--text-soft);
}
.site-footer ul a:hover {
  color: var(--text);
}
.site-footer .fine {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border-strong);
  color: var(--text-soft);
  font-size: 0.84rem;
  line-height: 1.85;
}
.site-footer .fine p {
  margin: 0 0 10px;
  max-width: 980px;
}
.site-footer .fine strong {
  color: var(--text);
}
.site-footer .fine .fine-legal {
  margin: 18px 0 0;
  color: var(--muted);
}

/* utilities */
.mt-0 {
  margin-top: 0;
}
.mb-0 {
  margin-bottom: 0;
}
.center {
  text-align: center;
}
.stack {
  display: grid;
  gap: 12px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.note {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.75;
}
.error-code {
  margin: 0;
  font-family: var(--font-num);
  font-weight: 400;
  font-size: clamp(4rem, 3rem + 6vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.error-actions {
  justify-content: center;
  margin-top: 20px;
}

/* ---------- 概率纸：首屏价格滑杆 ---------- */
.pslider {
  --thumb: 30px;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 22px clamp(20px, 2.4vw, 30px) 26px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-top: 2px solid var(--rule);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}
.pslider__title {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}
.pslider__title span {
  font-family: var(--font-num);
}
.pslider__big {
  display: flex;
  align-items: flex-start;
  margin: 2px 0 -4px;
  font-family: var(--font-num);
  font-size: clamp(7rem, 3.2rem + 9vw, 12.5rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: -0.045em;
  color: var(--text);
}
.pslider__cent {
  margin: 0.14em 0 0 0.04em;
  font-size: 0.4em;
  letter-spacing: 0;
  color: var(--accent-text);
}
.pslider__quotes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--text-soft);
}
.pslider__q b {
  margin-left: 6px;
  font-family: var(--font-num);
  font-size: 1.2rem;
  font-weight: 500;
}
.pslider__q--yes b {
  color: var(--yes);
}
.pslider__q--no b {
  color: var(--no);
}
.pslider__track {
  position: relative;
  height: 64px;
}
.pslider__bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 14px;
  height: 10px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--no);
}
.pslider__yes {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: var(--yes);
}
/* 滑块中心与刻度对齐：1→1%、99→99% */
.pslider__input {
  position: absolute;
  top: -3px;
  left: calc(1% - var(--thumb) / 2);
  width: calc(98% + var(--thumb));
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: grab;
  -webkit-appearance: none;
  appearance: none;
  touch-action: pan-y;
}
.pslider__input:active {
  cursor: grabbing;
}
.pslider__input:disabled {
  cursor: default;
}
.pslider__input::-webkit-slider-runnable-track {
  height: 44px;
  background: transparent;
}
.pslider__input::-moz-range-track {
  height: 44px;
  background: transparent;
}
.pslider__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb);
  height: var(--thumb);
  margin-top: calc((44px - var(--thumb)) / 2);
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: 0 3px 10px rgba(20, 26, 39, 0.22);
}
.pslider__input::-moz-range-thumb {
  width: var(--thumb);
  height: var(--thumb);
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--text);
  box-shadow: 0 3px 10px rgba(20, 26, 39, 0.22);
}
.pslider__input:focus-visible {
  outline: none;
}
.pslider__input:focus-visible::-webkit-slider-thumb {
  outline: 3px solid var(--rule);
  outline-offset: 2px;
}
.pslider__input:focus-visible::-moz-range-thumb {
  outline: 3px solid var(--rule);
  outline-offset: 2px;
}
/* 0–100¢ 刻度尺 */
.pslider__ruler {
  position: absolute;
  left: 0;
  right: 0;
  top: 30px;
  height: 30px;
  border-left: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  background-image:
    repeating-linear-gradient(90deg, var(--border-strong) 0 1px, transparent 1px 10%),
    repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px 2%);
  background-size:
    100% 8px,
    100% 4px;
  background-repeat: no-repeat;
}
.pslider__ruler span {
  position: absolute;
  top: 11px;
  left: calc(var(--t) * 1%);
  transform: translateX(-50%);
  font-family: var(--font-num);
  font-size: 0.72rem;
  line-height: 1;
  color: var(--muted);
}
.pslider__ruler span:first-child {
  transform: none;
}
.pslider__ruler span:last-child {
  transform: translateX(-100%);
}
.pslider__sentence {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--yes);
  background: var(--bg-soft);
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.pslider__sentence b {
  font-family: var(--font-num);
  font-size: 1.05em;
  font-weight: 600;
  color: var(--text);
}
.pslider__example {
  border-top: 1px solid var(--border);
}
.pslider .term-lead {
  margin: 12px 0 2px;
  color: var(--text-soft);
}
.pslider .term-lead b,
.pslider .term-rows b {
  font-weight: 600;
  color: var(--text);
}
.pslider .term-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--text-soft);
}
.pslider .term-rows li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.pslider .term-rows li:last-child {
  border-bottom: 0;
}
.pslider .term-rows b.pos {
  color: var(--yes);
}
@media (max-width: 599.98px) {
  .pslider {
    --thumb: 34px;
  }
}

/* ---------- 文章页：阅读进度（是 / 否分割条） ---------- */
.read-progress {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 49;
  height: 3px;
  background: rgba(147, 57, 47, 0.22);
  pointer-events: none;
}
.read-progress i {
  display: block;
  height: 100%;
  width: calc(var(--read, 0) * 100%);
  background: var(--yes);
}
.ticket-tag {
  display: inline-block;
  margin-top: 18px;
  padding: 1px 8px;
  border: 1px solid var(--cat);
  border-radius: 2px;
  font-family: var(--font-num);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--cat);
}
.ticket-tag + h1 {
  margin-top: 12px;
}
[data-section] .article-header {
  border-top-color: var(--cat);
}
[data-section] .toc a[aria-current] {
  color: var(--cat);
  font-weight: 600;
  border-left-color: var(--cat);
}
.page-head[data-section] {
  border-bottom: 2px solid var(--cat);
}
.page-head[data-section] .page-mark {
  color: var(--cat);
}

/* ---------- 文章卡 = 合约票 ---------- */
.a-card.ticket {
  --stub: 6rem;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  grid-template-rows: auto auto 1fr;
  gap: 0;
  padding: 0;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  -webkit-mask:
    radial-gradient(circle 7px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 7px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle 7px at calc(100% - var(--stub)) 0, transparent 97%, #000) top / 100% 51% no-repeat,
    radial-gradient(circle 7px at calc(100% - var(--stub)) 100%, transparent 97%, #000) bottom / 100% 51% no-repeat;
  transition:
    border-color 0.18s ease,
    background-color 0.18s ease;
}
.a-card.ticket::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  right: var(--stub);
  border-left: 1px dashed var(--border-strong);
}
.a-card.ticket:hover {
  border-color: var(--cat);
  border-top-color: var(--cat);
  background-color: var(--cat-soft);
}
.ticket__head {
  grid-column: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 20px 0;
}
.ticket__code {
  padding: 1px 7px;
  border: 1px solid var(--cat);
  border-radius: 2px;
  font-family: var(--font-num);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--cat);
}
.a-card.ticket h3 {
  grid-column: 1;
  padding: 10px 20px 0;
}
.a-card.ticket p {
  grid-column: 1;
  margin: 6px 20px 18px;
}
.a-card.ticket .meta {
  grid-column: 2;
  grid-row: 1 / span 3;
  margin: 0;
  padding: 16px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.74rem;
  line-height: 1.5;
}
.a-card.ticket .meta time {
  font-family: var(--font-num);
}

/* 栏目页的「报价簿」与首页文章库：整行合约票 */
.ticket-book {
  display: grid;
  border-top: 2px solid var(--cat);
  border-bottom: 1px solid var(--border-strong);
}
.lib-list {
  border-top: 1px solid var(--border-strong);
}
/* 首页书目：前 3 篇用票卡，其余一行一条，保证每篇文章都有首页入口 */
.lib-more {
  list-style: none;
  margin: 0;
  padding: 10px 0 4px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  column-gap: 28px;
}
.lib-more li {
  border-bottom: 1px dashed var(--border);
}
.lib-more a {
  display: block;
  padding: 9px 0;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
  text-decoration: none;
}
.lib-more a:hover {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ticket-book .a-card.ticket,
.lib-list .a-card.ticket {
  --stub: 8rem;
  grid-template-columns: 6.5rem minmax(0, 1fr) var(--stub);
  grid-template-rows: auto auto;
  height: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  -webkit-mask: none;
  mask: none;
}
.ticket-book .a-card.ticket:last-child,
.lib-list .a-card.ticket:last-child {
  border-bottom: 0;
}
.ticket-book .a-card.ticket:hover,
.lib-list .a-card.ticket:hover {
  background: var(--cat-soft);
}
.ticket-book .ticket__head,
.lib-list .ticket__head {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-items: flex-start;
  padding: 20px 0 0 10px;
}
.ticket-book .a-card.ticket h3,
.lib-list .a-card.ticket h3 {
  grid-column: 2;
  grid-row: 1;
  padding: 18px 24px 0 0;
}
.ticket-book .a-card.ticket p,
.lib-list .a-card.ticket p {
  grid-column: 2;
  grid-row: 2;
  margin: 6px 24px 18px 0;
}
.lib-list .a-card.ticket p {
  -webkit-line-clamp: 1;
}
.ticket-book .a-card.ticket .meta,
.lib-list .a-card.ticket .meta {
  grid-column: 3;
  grid-row: 1 / span 2;
}
@media (max-width: 639.98px) {
  .ticket-book .a-card.ticket,
  .lib-list .a-card.ticket {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
  }
  .ticket-book .a-card.ticket::before,
  .lib-list .a-card.ticket::before {
    display: none;
  }
  .ticket-book .ticket__head,
  .lib-list .ticket__head {
    grid-column: 1;
    grid-row: 1;
    padding: 16px 0 0;
  }
  .ticket-book .a-card.ticket .meta,
  .lib-list .a-card.ticket .meta {
    grid-column: 2;
    grid-row: 1;
    padding: 16px 0 0;
    justify-content: flex-end;
    white-space: nowrap;
  }
  .ticket-book .a-card.ticket h3,
  .lib-list .a-card.ticket h3 {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 8px 0 0;
  }
  .ticket-book .a-card.ticket p,
  .lib-list .a-card.ticket p {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 6px 0 16px;
    -webkit-line-clamp: 2;
  }
}

/* ---------- 计算器结果区的是 / 否分割条 ---------- */
.pviz {
  display: grid;
  gap: 4px;
}
.pviz__bar {
  position: relative;
  height: 10px;
  border-radius: 5px;
  background: var(--no);
}
.pviz__yes {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  border-radius: 5px 0 0 5px;
  background: var(--yes);
  transition: width 0.2s ease;
}
.pviz__mark {
  position: absolute;
  top: -5px;
  bottom: -5px;
  left: calc(var(--b, 50) * 1%);
  width: 2px;
  margin-left: -1px;
  background: var(--text);
}
.pviz__ruler {
  position: relative;
  top: auto;
  height: 26px;
}

/* ---------- 首页：章节标识 ---------- */
.sec-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(26px, 3vw, 40px);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.sec-label__no {
  font-family: var(--font-num);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sec-label__dash {
  width: 32px;
  height: 3px;
  background: var(--split);
}
.sec-label__rule {
  flex: 1;
  height: 1px;
  background: var(--border-strong);
}
.section--lib-first > .container:first-child {
  margin-bottom: 8px;
}

/* 上标题、下内容的分区 */
.split--top {
  gap: clamp(28px, 4vw, 48px);
}
@media (min-width: 960px) {
  .split.split--top {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .split--top .split__head {
    position: static;
  }
}
.split--top .section-head {
  margin-bottom: 0;
}
.split--top .section-head h2 {
  max-width: 20em;
}
@media (min-width: 900px) {
  .split--top .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
  }
  .split--top .step {
    padding: 28px 0 6px;
    border-bottom: 0;
  }
  .split--top .step::before {
    position: static;
    display: block;
    margin-bottom: 18px;
    font-size: 3rem;
    line-height: 1;
  }
  .split--top .inapp-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(32px, 4vw, 56px);
  }
}

/* ---------- 首屏下方行情条 ---------- */
.ticker {
  background: var(--surface);
  border-bottom: 1px solid var(--border-strong);
}
.ticker__link {
  display: flex;
  align-items: stretch;
  height: 54px;
  color: var(--text);
}
.ticker__link:hover {
  color: var(--text);
}
.ticker__tag {
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 max(var(--gutter), calc((100% - var(--container)) / 2 + var(--gutter)));
  border-right: 1px solid var(--border-strong);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.ticker__dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
}
.ticker__viewport {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 48px), transparent);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker-scroll var(--ticker-dur, 60s) linear infinite;
}
.ticker__list {
  display: flex;
}
.ticker__item {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 0 26px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  font-size: 0.86rem;
}
.ticker__title {
  display: inline-block;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
  color: var(--text-soft);
}
.ticker__label {
  font-size: 0.76rem;
  color: var(--muted);
}
.ticker__value {
  font-family: var(--font-num);
  font-weight: 500;
  color: var(--text);
}
.ticker__label.is-yes + .ticker__value {
  color: var(--yes);
}
.ticker__label.is-no + .ticker__value {
  color: var(--no);
}
.ticker:hover .ticker__track,
.ticker__link:focus-visible .ticker__track {
  animation-play-state: paused;
}
.ticker:hover .ticker__title {
  color: var(--text);
}
@keyframes ticker-scroll {
  to {
    transform: translateX(-50%);
  }
}
@media (max-width: 599.98px) {
  .ticker__link {
    height: 48px;
  }
  .ticker__tag {
    padding-right: 14px;
    letter-spacing: 0.12em;
  }
  .ticker__item {
    padding: 0 18px;
    font-size: 0.82rem;
  }
  .ticker__title {
    max-width: 220px;
  }
}
@media (min-width: 960px) {
  .hero:has(+ .ticker) {
    min-height: calc(100vh - var(--header-h) - 55px);
    min-height: calc(100svh - var(--header-h) - 55px);
  }
}

/* ---------- 工具特色卡与示意图 ---------- */
.tool-index .a-card {
  gap: 10px;
  padding: 0 0 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}
.tool-index .a-card:hover {
  border-color: var(--accent);
  border-top-color: var(--accent);
}
.tool-index .a-card > :not(.a-card__figure) {
  margin-left: clamp(20px, 2.4vw, 28px);
  margin-right: clamp(20px, 2.4vw, 28px);
}
.tool-index .a-card::after {
  top: 18px;
  right: clamp(20px, 2.4vw, 28px);
  font-size: 1.6rem;
}
.a-card__figure {
  display: block;
  margin-bottom: 12px;
  padding: 44px clamp(20px, 2.4vw, 28px) 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.tool-index .a-card__icon {
  margin-bottom: 0;
}
.tool-index .a-card h3 {
  font-size: 1.28rem;
}
.tool-index--page .a-card__figure {
  padding-top: 52px;
}
.tool-index--page .tool-diagram {
  max-height: 150px;
}
.tool-diagram {
  display: block;
  width: 100%;
  height: auto;
  max-height: 128px;
  overflow: visible;
}
.td-grid line {
  stroke: var(--border);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.td-axis {
  stroke: var(--border-strong);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.td-line {
  fill: none;
  stroke: var(--accent-text);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.td-line--yes {
  stroke: var(--yes);
}
.td-line--no {
  stroke: var(--no);
  stroke-dasharray: 4 4;
}
.td-guide {
  stroke: var(--accent);
  stroke-dasharray: 2 3;
  vector-effect: non-scaling-stroke;
}
.td-dot {
  fill: var(--accent);
  stroke: var(--surface);
  stroke-width: 2;
}
.td-bar {
  fill: var(--primary-soft);
  stroke: var(--rule);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.td-bar--hl {
  fill: var(--accent);
}
.td-node {
  fill: var(--surface);
  stroke: var(--rule);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
}
.td-node--hl {
  fill: var(--accent);
}

/* ---------- 文章：H2 小序号 ---------- */
.prose--numbered {
  counter-reset: sec;
}
.prose--numbered > h2 {
  counter-increment: sec;
}
.prose--numbered > h2::before {
  content: counter(sec, decimal-leading-zero);
  display: block;
  margin-bottom: 0.55em;
  font-family: var(--font-num);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--accent-text);
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
  .ticker__list[data-copy='1'] {
    display: none;
  }
  .ticker__viewport {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .btn:hover {
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   生成器模式新增的几块(话题条、翻页、站内搜索、话题索引)
   迁移时现有页面上都还没有它们,不影响原有版式
   ========================================================= */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 0;
}
.tag-row__label {
  font-size: 0.875rem;
  color: var(--muted);
  margin-right: 4px;
}
.tag-row a.chip {
  text-decoration: none;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 32px 0 0;
  font-size: 0.95rem;
}
.pager__now {
  color: var(--muted);
}
.find {
  max-width: var(--content);
}
.find .input {
  width: 100%;
  margin: 8px 0 6px;
}
.find-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.find-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.find-list p {
  margin: 4px 0 0;
}
.tag-index {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

/* 首屏邀请码上方的地区提醒：一行小字，链到地区限制那篇的分地区结论 */
.home-region {
  margin: 22px 0 0;
  font-size: 0.9rem;
  color: var(--text-soft);
}
.home-region a {
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.home-region + .home-invite {
  margin-top: 8px;
}
@media (max-width: 479.98px) {
  .home-region {
    margin-top: 14px;
    font-size: 0.86rem;
  }
}
