:root {
  --bg: #f6f1e8;
  --surface: #fffdf8;
  --surface-2: #efe6d6;
  --text: #1f1a14;
  --text-muted: #4a4338;
  --accent: #9a3412;
  --accent-ink: #fff8ef;
  --border: #d7ccb8;
  --ring: #9a3412;
  --ok: #3f6b4a;
  --warn: #9a3412;
  --danger: #8a1f1f;
  --info: #3d4a5c;
  --cta: #7c2d12;
  --cta-ink: #fff8ef;
  --cta-wash: rgba(40, 16, 8, 0.24);
  --cta-stamp: rgba(255, 232, 200, 0.55);
  --fs-h1: 34px;
  --fs-h2: 22px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 13px;
  --lh: 1.7;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 0 var(--border);
  --shadow-2: 0 8px 20px rgba(31, 26, 20, 0.08);
  --container: 720px;
  --container-wide: 1120px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
  --dur: 160ms;
  --cta-loop: 2.7s;
  --header-h: 58px;
  --cta-space: 96px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-size: var(--fs-body);
  line-height: var(--lh);
  overflow-wrap: anywhere;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
}

body {
  padding-bottom: var(--cta-space);
}

h1,
.h1 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: var(--fs-h1);
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 var(--space-4);
}

h2 {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: var(--fs-h2);
  line-height: 1.3;
  font-weight: 700;
  margin: 0 0 var(--space-3);
}

h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  font-weight: 700;
  margin: 0 0 var(--space-2);
}

p {
  margin: 0 0 var(--space-4);
}

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

a:hover {
  color: var(--cta);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

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

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: var(--space-3);
  top: var(--space-3);
  background: var(--surface);
  padding: var(--space-2) var(--space-3);
  z-index: 80;
}

.wrap {
  width: min(var(--container-wide), calc(100% - var(--space-6)));
  margin: 0 auto;
}

.narrow {
  width: min(var(--container), 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.brand {
  color: var(--text);
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-weight: 700;
  font-size: 18px;
}

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

.nav-main {
  display: flex;
  gap: var(--space-2);
  margin-left: auto;
}

.nav-main a {
  color: var(--text);
  padding: var(--space-2) var(--space-3);
  border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mast {
  padding: var(--space-7) 0 var(--space-6);
  border-bottom: 1px solid var(--border);
}

.kicker {
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 var(--space-2);
}

.price {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: 72px;
  line-height: 1;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}

.price small {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--fs-small);
  color: var(--text-muted);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  font-weight: 400;
}

.lead {
  font-size: 17px;
  max-width: 40em;
}

.section {
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.ledger {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
}

.ledger th,
.ledger td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ledger th {
  width: 28%;
  color: var(--text-muted);
  font-weight: 400;
  background: var(--surface-2);
}

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

.nums {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: n;
}

.nums li {
  counter-increment: n;
  padding: var(--space-4) 0 var(--space-4) 48px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.nums li::before {
  content: counter(n);
  position: absolute;
  left: 0;
  top: var(--space-4);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  color: var(--text);
  font-size: var(--fs-small);
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--space-5);
}

.aside {
  background: var(--surface-2);
  padding: var(--space-5);
}

.paper-fig {
  margin: var(--space-5) 0 0;
  background: var(--surface-2);
}

.paper-fig img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.faq details {
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.crumb {
  color: var(--text-muted);
  font-size: var(--fs-small);
  margin-bottom: var(--space-3);
}

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

.site-footer {
  padding: var(--space-6) 0 calc(var(--cta-space) + var(--space-5));
  color: var(--text-muted);
  font-size: var(--fs-small);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: var(--space-5);
}

.site-footer a {
  color: var(--text);
  display: block;
  padding: var(--space-1) 0;
}

.footer-brand a {
  font-family: "Songti SC", "SimSun", "Noto Serif SC", serif;
  font-size: var(--fs-body);
  font-weight: 700;
}

.site-cta {
  position: fixed;
  left: 50%;
  bottom: var(--space-4);
  transform: translateX(-50%);
  z-index: 60;
  width: min(500px, calc(100vw - var(--space-5)));
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-5);
  background: var(--cta);
  color: var(--cta-ink);
  font-size: var(--fs-body);
  font-weight: 700;
  overflow: hidden;
  box-shadow: var(--shadow-2);
}

.site-cta:hover,
.site-cta:focus-visible {
  color: var(--cta-ink);
}

.site-cta::before,
.site-cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.site-cta::before {
  inset: 0;
  background: radial-gradient(120% 140% at 24% 50%, var(--cta-wash) 0%, transparent 72%);
  opacity: 0;
  animation: cta-wallpaste var(--cta-loop) var(--ease) infinite;
}

.site-cta::after {
  width: 18px;
  height: 18px;
  right: 18px;
  top: 50%;
  margin-top: -9px;
  background: var(--cta-stamp);
  opacity: 0;
  transform: translateY(3px);
  animation: cta-stamp var(--cta-loop) var(--ease) infinite;
}

.site-cta span {
  position: relative;
  z-index: 1;
}

@keyframes cta-wallpaste {
  0%,
  52% {
    opacity: 0;
  }
  66% {
    opacity: 0.28;
  }
  86%,
  100% {
    opacity: 0;
  }
}

@keyframes cta-stamp {
  0%,
  60% {
    opacity: 0;
    transform: translateY(3px);
  }
  72% {
    opacity: 0.7;
    transform: translateY(0);
  }
  88%,
  100% {
    opacity: 0.15;
    transform: translateY(0);
  }
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
}

.drawer.is-open {
  pointer-events: auto;
}

.drawer-mask {
  position: absolute;
  inset: 0;
  background: rgba(31, 26, 20, 0.28);
  opacity: 0;
}

.drawer.is-open .drawer-mask {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(280px, 86vw);
  height: 100%;
  background: var(--surface);
  padding: var(--space-5);
  transform: translateX(-100%);
  transition: transform var(--dur) var(--ease);
}

.drawer.is-open .drawer-panel {
  transform: none;
}

.drawer-panel a {
  display: block;
  padding: var(--space-3) 0;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

@media (max-width: 900px) {
  .split,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .price {
    font-size: 56px;
  }
}

@media (max-width: 640px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-main {
    display: none;
  }

  h1,
  .h1 {
    font-size: 26px;
  }

  .price {
    font-size: 48px;
  }

  .site-cta {
    left: 14px;
    right: 14px;
    width: auto;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-cta::before,
  .site-cta::after,
  .drawer-panel {
    animation: none;
    transition: none;
  }

  .site-cta::before {
    opacity: 0.16;
  }

  .site-cta::after {
    opacity: 0.45;
    transform: translateY(0);
  }
}
