:root {
  --canvas: #f4f0e8;
  --surface: #fffdf9;
  --surface-soft: #eee7dc;
  --ink: #191816;
  --muted: #6f6a61;
  --accent: #c34727;
  --accent-hover: #a83a20;
  --line: #d8d0c4;
  --danger: #a93226;
  --ok: #216e4e;
  --shadow: 0 16px 40px rgba(47, 38, 25, 0.08);
  --shell: 1120px;
  color-scheme: light;
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: inherit; }
.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;
}
.shell { width: min(var(--shell), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(244, 240, 232, 0.94);
}
.topbar-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  color: var(--ink);
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 24px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.main-nav { display: flex; align-self: stretch; gap: 38px; }
.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--ink); }
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--accent);
}

.hero { padding: 42px 0 30px; text-align: center; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.13em;
}
.hero h1 {
  max-width: 820px;
  margin: 0 auto;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: clamp(38px, 3.8vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.035em;
}
.hero-copy {
  max-width: 620px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.catalog { padding-bottom: 32px; }
.catalog-heading { margin: 0 auto 20px; text-align: center; }
.catalog-heading h2 {
  margin: 0;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 25px;
}
.catalog-heading p { margin: 7px 0 0; color: var(--muted); font-size: 14px; }
.btn:focus-visible,
.main-nav a:focus-visible,
summary:focus-visible,
.back:focus-visible,
.beian-link:focus-visible {
  outline: 3px solid rgba(185, 67, 40, 0.35);
  outline-offset: 3px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.loading-state,
.load-error {
  grid-column: 1 / -1;
  padding: 58px 24px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-align: center;
  background: var(--surface);
}
.load-error h3 { margin: 0 0 8px; color: var(--ink); }
.load-error p { margin: 0; }
.price-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 250px;
  flex-direction: column;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.82);
}
.price-card.is-recommended {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.recommendation {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  min-height: 27px;
  margin: 0;
  padding: 5px 16px;
  border-radius: 8px 8px 0 0;
  color: #fff;
  background: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}
.price-card.is-recommended { padding-top: 40px; }
.price-card h3 {
  margin: 0 0 7px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 21px;
  line-height: 1.3;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}
.price span {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 700;
  line-height: 1;
}
.price small { color: var(--muted); font-size: 14px; }
.plan-features {
  display: grid;
  gap: 6px;
  margin: 0 0 17px;
  padding-left: 19px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.plan-features li::marker { color: var(--accent); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { border-color: var(--accent); color: #fff; background: var(--accent); }
.btn.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn.secondary { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn.secondary:hover { color: #fff; background: var(--accent); }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none; }

.purchase-guide { border-block: 1px solid var(--line); background: rgba(255, 253, 249, 0.46); }
.purchase-guide .shell { padding-block: 18px 20px; }
.purchase-guide h2 {
  margin: 0 0 13px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 23px;
  text-align: center;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li { position: relative; text-align: center; }
.steps li + li::before {
  content: "";
  position: absolute;
  top: 15px;
  right: calc(50% + 34px);
  width: calc(100% - 68px);
  height: 1px;
  background: var(--line);
}
.step-number {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 700;
}
.steps strong { font-size: 16px; }
.steps p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.support {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 58px;
  padding-block: 19px 21px;
}
.support h2 {
  margin: 0 0 12px;
  font-family: "Songti SC", STSong, "Noto Serif SC", serif;
  font-size: 21px;
}
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-list summary {
  min-height: 36px;
  padding: 8px 2px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}
.faq-list details p { margin: 0; padding: 0 24px 16px 2px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.contact-block { padding-left: 38px; border-left: 1px solid var(--line); }
.contact-block dl { display: grid; gap: 12px; margin: 0; }
.contact-block dl div { display: grid; grid-template-columns: 52px 1fr; gap: 12px; }
.contact-block dt { color: var(--muted); font-size: 13px; }
.contact-block dd { min-width: 0; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.contact-block a:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.footer-inner {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer strong { color: var(--ink); font-family: "Songti SC", STSong, serif; font-size: 15px; }
.site-footer p { margin: 5px 0 0; }
.beian-link { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; }
.beian-link img { width: 18px; height: 20px; flex: 0 0 auto; object-fit: contain; }
.beian-link:hover { color: var(--accent); }

/* 支付与凭证页 */
.page { width: min(960px, calc(100% - 32px)); margin: 0 auto; padding: 40px 0 64px; }
.page.narrow { width: min(560px, calc(100% - 32px)); }
.page .hero { padding: 0; margin-bottom: 28px; text-align: left; }
.page .hero h1 { margin: 0 0 10px; font-family: "Songti SC", STSong, serif; font-size: 36px; }
.page .eyebrow { margin-bottom: 8px; }
.sub, .muted { color: var(--muted); font-size: 13px; line-height: 1.65; }
.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.panel.success h2 { margin-top: 0; color: var(--ok); }
.warn { padding: 11px 13px; border-left: 3px solid var(--danger); color: var(--danger); background: #f8e8e3; font-size: 13px; line-height: 1.55; }
.field { display: grid; gap: 7px; margin: 14px 0; color: var(--muted); font-size: 12px; }
.field input, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #faf6ef; }
.actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 9px; }
.actions .btn { margin-top: 0; }
.back { display: inline-block; margin-top: 16px; color: var(--accent); font-size: 13px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 32px, var(--shell)); }
  .topbar, .topbar-inner { min-height: 60px; }
  .brand { font-size: 20px; }
  .main-nav { gap: 22px; }
  .main-nav a { font-size: 13px; }
  .hero { padding: 34px 0 26px; }
  .eyebrow { font-size: 10px; }
  .hero h1 { font-size: 36px; letter-spacing: -0.04em; }
  .hero-copy { margin-top: 13px; font-size: 14px; }
  .catalog { padding-bottom: 40px; }
  .catalog-heading { margin-bottom: 16px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 14px; }
  .price-card { min-height: 0; padding: 23px 20px 20px; }
  .price-card.is-recommended { padding-top: 46px; }
  .price-card h3 { font-size: 21px; }
  .price span { font-size: 44px; }
  .plan-features { margin-bottom: 20px; }
  .purchase-guide .shell { padding-block: 32px 36px; }
  .purchase-guide h2 { margin-bottom: 24px; font-size: 24px; }
  .steps { grid-template-columns: 1fr; gap: 25px; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 10px; text-align: left; }
  .steps li + li::before { display: none; }
  .step-number { grid-row: 1 / span 2; margin: 0; }
  .steps p { margin-top: 4px; }
  .support { grid-template-columns: 1fr; gap: 36px; padding-block: 36px 42px; }
  .contact-block { padding: 0; border-left: 0; }
  .footer-inner { min-height: 0; padding-block: 24px; align-items: flex-start; flex-direction: column; }
  .page .hero h1 { font-size: 31px; }
}

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