/* ============================================================
 * 见血封喉象棋 · 规则说明页
 * 仅使用系统字体，不加载任何外部资源。
 * 色板沿用游戏本体：木 / 纸 / 金 / 朱砂 / 墨。
 * ============================================================ */

:root {
  --bg: #140e09;
  --bg-2: #1d1410;
  --panel: #241811;
  --panel-2: #2c1e15;
  --line: rgba(201, 162, 39, 0.16);
  --line-2: rgba(201, 162, 39, 0.30);

  --paper: #e9d5ac;
  --paper-2: #dfc79b;
  --paper-ink: #2b1d12;
  --paper-dim: #6b5540;

  --ink: #f3e7ce;
  --ink-dim: #c6b49a;
  --ink-weak: #8e7c64;

  --gold: #c9a227;
  --gold-hi: #e8cc7a;
  --cinnabar: #a8322a;
  --cinnabar-hi: #c2453a;

  --mark-move: #2f8f4e;
  --mark-capture: #c43028;
  --mark-combo: #2f6fb0;

  --serif: "Songti SC", "STSong", "Source Han Serif SC", "Noto Serif CJK SC", "SimSun", serif;
  --ui: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --num: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1160px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 520px at 16% -8%, rgba(122, 72, 32, 0.30), transparent 62%),
    radial-gradient(720px 460px at 102% 8%, rgba(168, 50, 42, 0.12), transparent 66%),
    linear-gradient(180deg, #170f0a 0%, #140e09 56%, #100b07 100%);
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1, h2, h3 {
  text-wrap: balance;
}

:focus-visible {
  outline: 2px solid var(--gold-hi);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--gold);
  color: #241708;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip:focus {
  top: 12px;
}

/* ---------------------------- 顶栏 ---------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 14, 9, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  flex: 0 0 auto;
}

.seal {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: linear-gradient(180deg, #b23a30, #8e2620);
  color: #f6e6c8;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 2px 10px rgba(0, 0, 0, 0.42);
}

.brand-text b {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.brand-text small {
  display: block;
  color: var(--ink-weak);
  font-size: 10px;
  letter-spacing: 0.24em;
  line-height: 1.4;
}

.nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-dim);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.045);
}

.nav a[aria-current="true"] {
  color: var(--gold-hi);
  background: rgba(201, 162, 39, 0.10);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink-dim);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.topbar.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.topbar.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.progress i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--cinnabar-hi), var(--gold-hi));
}

/* ---------------------------- 按钮 ---------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--ui);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #e3c568, #c9a227);
  color: #241708;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 6px 18px rgba(201, 162, 39, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 10px 26px rgba(201, 162, 39, 0.26);
}

.btn-ghost {
  border-color: var(--line-2);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(201, 162, 39, 0.46);
}

.btn-sm {
  min-height: 38px;
  padding: 0 15px;
  font-size: 13px;
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

/* ---------------------------- 头图 ---------------------------- */

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
  padding-top: 72px;
  padding-bottom: 64px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--gold);
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.26em;
}

.eyebrow span {
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

h1 {
  margin: 0 0 22px;
  font-family: var(--serif);
  font-size: clamp(38px, 5.2vw, 64px);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0.02em;
}

h1 em {
  position: relative;
  color: var(--gold-hi);
  font-style: normal;
  white-space: nowrap;
}

h1 em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: -7px;
  height: 2px;
  background: linear-gradient(90deg, var(--cinnabar-hi), rgba(194, 69, 58, 0));
}

.lede {
  max-width: 52ch;
  margin: 0 0 30px;
  color: var(--ink-dim);
  font-size: 15.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-meta {
  display: flex;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 0 22px;
  border-left: 1px solid var(--line);
}

.hero-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta b {
  display: block;
  font-family: var(--num);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}

.hero-meta span {
  color: var(--ink-weak);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-shot {
  margin: 0;
  padding: 10px;
  border: 1px solid #5e3c22;
  border-radius: 18px;
  background: linear-gradient(150deg, #4a3220, #241610 58%, #3a2618);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 220, 170, 0.18);
}

.hero-shot figcaption,
.shot-card figcaption {
  padding: 10px 4px 2px;
  color: var(--ink-weak);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

/* ---------------------------- 截图 ---------------------------- */

.shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: none;
  overflow: hidden;
  cursor: zoom-in;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.shot-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(20, 14, 9, 0.74);
  color: var(--ink-dim);
  font-size: 11px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.shot:hover .shot-hint,
.shot:focus-visible .shot-hint {
  opacity: 1;
  transform: none;
}

.shot-card {
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 15px;
  background: linear-gradient(160deg, #3a2618, #241610);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.shot-card .shot {
  border-radius: 8px;
}

.shot-card .shot img {
  border-radius: 8px;
}

/* ---------------------------- 章节 ---------------------------- */

.section {
  padding: 60px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  max-width: 780px;
  margin-bottom: 30px;
}

.sec-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.2em;
}

.sec-kicker span {
  display: inline-grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--gold-hi);
  font-size: 10px;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.sec-sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 44px;
}

.split-marks {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.split-online {
  grid-template-columns: 1fr 1.04fr;
  align-items: start;
}

/* ---------------------------- 概览卡片 ---------------------------- */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.card {
  position: relative;
  padding: 22px 20px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(51, 36, 26, 0.75), rgba(36, 24, 17, 0.75));
  box-shadow: inset 0 1px 0 rgba(255, 220, 170, 0.05);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
}

.card-num {
  margin: 0;
  color: var(--gold);
  font-family: var(--num);
  font-size: 11px;
  letter-spacing: 0.18em;
}

.card h3 {
  margin: 10px 0 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
}

.card p:last-child {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
  line-height: 1.75;
}

/* ---------------------------- 列表与提示 ---------------------------- */

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

.ticks li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-dim);
  font-size: 14.5px;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
  transform: rotate(45deg);
}

.ticks b {
  color: var(--ink);
  font-weight: 600;
}

.ticks-sm {
  gap: 10px;
}

.ticks-sm li {
  font-size: 13px;
}

.callout {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--cinnabar);
  border-radius: 0 10px 10px 0;
  background: rgba(168, 50, 42, 0.08);
  color: var(--ink-dim);
  font-size: 13px;
}

.callout b {
  color: var(--ink);
  font-weight: 600;
}

.callout-tight {
  margin-top: 20px;
}

/* ---------------------------- 回合三步 ---------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step {
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(44, 30, 21, 0.7), rgba(32, 21, 15, 0.7));
}

.step-no {
  margin: 0;
  color: rgba(201, 162, 39, 0.42);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.step h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.step p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* ---------------------------- 走法表 ---------------------------- */

.table-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(36, 24, 17, 0.55);
  overflow: hidden;
}

.table-scroll {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

thead th {
  padding: 13px 18px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink-weak);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-align: left;
  white-space: nowrap;
}

tbody th,
tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

tbody th {
  width: 150px;
  font-weight: 400;
}

tbody td {
  color: var(--ink-dim);
  font-size: 13.5px;
}

tbody td b {
  color: var(--ink);
  font-weight: 600;
}

.piece-name {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
}

.piece-chip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 28%, #fcf2dc, #dfc79b 72%);
  color: var(--cinnabar);
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  line-height: 1;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.35),
    inset 0 0 0 2px rgba(168, 50, 42, 0.5);
}

/* ---------------------------- 纸面：组合棋 ---------------------------- */

.paper {
  position: relative;
  padding: 44px;
  border: 1px solid #c9ae7e;
  border-radius: 20px;
  background:
    radial-gradient(120% 90% at 18% 0%, #f4e6c9 0%, #e9d5ac 46%, #dcc399 100%);
  color: var(--paper-ink);
  box-shadow:
    0 26px 60px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.paper::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(90, 60, 30, 0.20);
  border-radius: 12px;
  pointer-events: none;
}

.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background-image: radial-gradient(rgba(120, 85, 40, 0.12) 1px, transparent 1px);
  background-size: 5px 5px;
  opacity: 0.32;
  pointer-events: none;
}

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

.paper .sec-head {
  margin-bottom: 24px;
}

.paper h2 {
  color: var(--paper-ink);
}

.paper .sec-kicker {
  color: #8a5a1e;
}

.paper .sec-kicker span {
  border-color: rgba(120, 80, 30, 0.36);
  color: #8a5a1e;
}

.paper .sec-sub {
  color: var(--paper-dim);
}

.combo-shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 10px;
}

.combo-shots figure {
  max-width: 400px;
  margin: 0 auto;
  padding: 8px 8px 0;
  border: 1px solid rgba(90, 60, 30, 0.24);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.34);
}

.combo-shots .shot {
  border-radius: 8px;
}

.combo-shots img {
  border-radius: 8px;
}

.combo-shots figcaption {
  padding: 9px 2px 10px;
  color: var(--paper-dim);
  font-size: 12px;
  text-align: center;
}

.paper-note {
  margin: 0 0 28px;
  color: rgba(107, 85, 64, 0.86);
  font-size: 11px;
  text-align: center;
}

.combo-rules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 32px;
}

.rule b {
  display: block;
  margin-bottom: 4px;
  color: #3a2416;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.rule p {
  margin: 0;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.72;
}

.paper-callout {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--cinnabar);
  border-radius: 0 10px 10px 0;
  background: rgba(168, 50, 42, 0.07);
  color: #5b402c;
  font-size: 13px;
}

.paper-callout b {
  color: #3a2416;
}

/* ---------------------------- 胜负 ---------------------------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.result {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(44, 30, 21, 0.66), rgba(32, 21, 15, 0.66));
}

.result b {
  display: block;
  margin-bottom: 5px;
  color: var(--gold-hi);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.result p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* ---------------------------- 标记图例 ---------------------------- */

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

.legend-row {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  align-items: start;
}

.swatch {
  display: block;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
}

.swatch.move {
  background: var(--mark-move);
  box-shadow: 0 0 0 3px rgba(47, 143, 78, 0.15);
}

.swatch.capture {
  border: 3px solid var(--mark-capture);
}

.swatch.combo {
  border: 3px dashed var(--mark-combo);
}

.legend-row b {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.legend-row p {
  margin: 2px 0 0;
  color: var(--ink-dim);
  font-size: 13px;
}

.legend-extra {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.legend-extra-title {
  margin: 0 0 12px;
  color: var(--ink-weak);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* ---------------------------- 联机时间线 ---------------------------- */

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 162, 39, 0.08));
}

.timeline li {
  position: relative;
  padding: 0 0 24px 48px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline .dot {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--panel);
  color: var(--gold-hi);
  font-family: var(--num);
  font-size: 11px;
}

.timeline b {
  display: block;
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
}

.timeline p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13px;
}

/* ---------------------------- 注意事项 ---------------------------- */

.notes {
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--cinnabar);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(168, 50, 42, 0.07), rgba(36, 24, 17, 0.5));
}

.notes ol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 34px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: note;
}

.notes li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-dim);
  font-size: 13.5px;
  counter-increment: note;
}

.notes li::before {
  content: counter(note, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--cinnabar-hi);
  font-family: var(--num);
  font-size: 11px;
}

.notes b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------------------- 行动号召 ---------------------------- */

.cta {
  padding-top: 70px;
  padding-bottom: 60px;
}

.cta-inner {
  position: relative;
  padding: 56px 28px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(201, 162, 39, 0.16), transparent 62%),
    linear-gradient(180deg, #2b1d14, #1c120c);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 220, 170, 0.10);
  overflow: hidden;
  text-align: center;
}

.cta-inner::before {
  content: "帅";
  position: absolute;
  right: -14px;
  bottom: -48px;
  color: rgba(201, 162, 39, 0.05);
  font-family: var(--serif);
  font-size: 190px;
  line-height: 1;
  pointer-events: none;
}

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

.cta .eyebrow {
  justify-content: center;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.6vw, 40px);
}

.cta p {
  max-width: 46ch;
  margin: 0 auto 26px;
  color: var(--ink-dim);
  font-size: 14px;
}

.cta .cta-note {
  margin: 18px auto 0;
  color: var(--ink-weak);
  font-size: 12px;
}

/* ---------------------------- 页脚 ---------------------------- */

footer {
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 18px;
  color: var(--ink-weak);
  font-size: 12px;
}

.foot p {
  margin: 0;
}

.foot a {
  color: var(--ink-dim);
  text-decoration: none;
  transition: color 0.18s ease;
}

.foot a:hover {
  color: var(--gold-hi);
}

.foot span[aria-hidden] {
  margin: 0 4px;
  color: var(--ink-weak);
  opacity: 0.6;
}

/* ---------------------------- 大图 ---------------------------- */

.lightbox {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(8, 5, 3, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 80vh;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.lightbox-cap {
  margin: 12px 0 0;
  color: var(--ink-dim);
  font-size: 12px;
  text-align: center;
}

.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(20, 14, 9, 0.8);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  background: rgba(168, 50, 42, 0.8);
}

/* ---------------------------- 回到顶部 ---------------------------- */

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: rgba(36, 24, 17, 0.92);
  color: var(--gold-hi);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.2s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: rgba(51, 36, 26, 0.96);
}

/* ---------------------------- 入场动画 ---------------------------- */

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.52s ease, transform 0.52s ease;
  transition-delay: calc(var(--i, 0) * 60ms);
}

.reveal-ready .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
 * 响应式
 * ============================================================ */

@media (max-width: 1040px) {
  .grid-4 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 38px;
    padding-top: 52px;
    padding-bottom: 48px;
  }

  .hero-shot {
    max-width: 680px;
  }

  .split,
  .split-marks,
  .split-online {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .step {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: 14px;
    align-items: start;
  }

  .step-no {
    grid-row: span 2;
    font-size: 30px;
  }

  .step h3 {
    margin-top: 0;
  }

  .split-online .shot-card {
    max-width: 680px;
  }
}

@media (max-width: 860px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .topbar-in {
    gap: 12px;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 8px 18px 16px;
    background: #140e09;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  }

  .topbar.nav-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 10px;
    font-size: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .section {
    padding: 48px 0;
  }

  .notes ol {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .table-scroll {
    overflow: visible;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody,
  tr,
  tbody th,
  tbody td {
    display: block;
  }

  tbody tr {
    padding: 16px 18px;
    border-top: 1px solid var(--line);
  }

  tbody tr:first-child {
    border-top: 0;
  }

  tbody th {
    width: auto;
    padding: 0 0 8px;
    border: 0;
  }

  tbody td {
    padding: 4px 0;
    border: 0;
  }

  tbody td::before {
    content: attr(data-label);
    display: inline-block;
    width: 72px;
    color: var(--ink-weak);
    font-size: 11px;
    letter-spacing: 0.08em;
  }

  .paper {
    padding: 26px 20px;
    border-radius: 16px;
  }

  .paper::before {
    inset: 8px;
    border-radius: 10px;
  }

  .combo-rules {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .notes {
    padding: 22px 20px;
  }

  .cta {
    padding-top: 54px;
  }

  .cta-inner {
    padding: 42px 20px;
    border-radius: 18px;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .brand-text small {
    display: none;
  }

  h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .lede {
    font-size: 14.5px;
  }

  .hero-meta li {
    padding: 0 14px;
  }

  .hero-meta b {
    font-size: 16px;
  }

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

  .grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .combo-shots {
    grid-template-columns: 1fr;
  }

  .combo-shots figure {
    max-width: 360px;
    margin-inline: auto;
  }

  .legend-extra {
    margin-top: 22px;
  }

  .foot {
    flex-direction: column;
  }

  .to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 420px) {
  .top-actions .btn {
    display: none;
  }

  .brand-text b {
    font-size: 15px;
  }
}

/* ---------------------------- 减少动效 ---------------------------- */

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

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

  .reveal-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
