:root {
  --paper: #faf6ee;
  --paper-2: #f3ecdd;
  --ink: #221b14;
  --ink-soft: #5d5244;
  --red: #b23a2e;
  --red-dark: #8f2b22;
  --gold: #b8893b;
  --gold-soft: #e4d3ac;
  --line: #e6dcc9;
  --white: #fffdf8;
  --ok: #2f7d4f;
  --shadow: 0 18px 45px rgba(34, 27, 20, 0.09);
  --radius: 16px;
  --serif: Georgia, "Times New Roman", "Noto Serif SC", "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif { font-family: var(--serif); }

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 238, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 700; font-size: 20px; letter-spacing: 0.2px; }
.brand .seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 15px; font-family: var(--serif);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.35);
}
.brand .zh { color: var(--red); font-size: 14px; font-weight: 600; }
.nav-links { display: flex; gap: 26px; margin-left: 12px; font-size: 14.5px; color: var(--ink-soft); }
.nav-links a:hover { color: var(--red); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  font-size: 13px; font-weight: 600;
}
.lang-toggle button {
  border: 0; background: transparent; padding: 6px 14px; cursor: pointer; color: var(--ink-soft); font-family: var(--sans);
}
.lang-toggle button.active { background: var(--ink); color: var(--paper); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 26px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s ease; font-family: var(--sans);
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 22px rgba(178,58,46,0.28); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost:hover { border-color: var(--gold); color: var(--red); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 110px;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(184,137,59,0.16), transparent 60%),
    radial-gradient(900px 460px at 8% 0%, rgba(178,58,46,0.10), transparent 55%),
    var(--paper);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -2px; height: 130px;
  background: linear-gradient(to bottom, transparent, rgba(34,27,20,0.06));
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--red); border: 1px solid rgba(178,58,46,0.28); background: rgba(178,58,46,0.06);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: 64px; line-height: 1.08; letter-spacing: -0.5px; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero-sub { margin-top: 22px; font-size: 19px; color: var(--ink-soft); max-width: 560px; }
.hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 26px; display: flex; gap: 20px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-soft); }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* hero art */
.hero-art { position: relative; }
.art-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 22px; transform: rotate(1.2deg);
}
.art-card .art-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.art-card .art-head .t { font-family: var(--serif); font-weight: 700; font-size: 17px; }
.art-card .art-head .tag { font-size: 11.5px; color: var(--red); border: 1px solid rgba(178,58,46,0.3); padding: 3px 9px; border-radius: 999px; }
.art-map {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: linear-gradient(160deg, #f7efe0, #f0e4cc);
  height: 230px; position: relative;
}
.art-map svg { width: 100%; height: 100%; display: block; }
.art-row { display: flex; gap: 10px; margin-top: 12px; }
.art-chip {
  flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fffdf8;
  font-size: 12.5px; color: var(--ink-soft);
}
.art-chip b { display: block; color: var(--ink); font-family: var(--serif); font-size: 13.5px; margin-bottom: 2px; }
.art-stamp {
  position: absolute; top: -18px; right: -10px;
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 15px; font-weight: 700; text-align: center;
  box-shadow: 0 10px 26px rgba(178,58,46,0.4);
  border: 3px solid rgba(255,255,255,0.55);
  transform: rotate(8deg);
}

/* ---------- Stats ---------- */
.stats { border-block: 1px solid var(--line); background: var(--white); }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 18px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--red); }
.stat .lab { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 92px 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.sec-kicker { font-size: 12.5px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.sec-head h2 { font-size: 40px; line-height: 1.18; }
.sec-head p { margin-top: 14px; color: var(--ink-soft); font-size: 16.5px; }

/* modules */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.module {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: 0 8px 26px rgba(34,27,20,0.05); position: relative; overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.module .ico { font-size: 34px; }
.module h3 { font-size: 22px; margin: 16px 0 8px; }
.module p { color: var(--ink-soft); font-size: 14.5px; }
.module .more { margin-top: 16px; font-size: 13.5px; font-weight: 600; color: var(--red); }
.module::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

/* chapters */
.chapters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.chapter {
  display: flex; gap: 16px; align-items: baseline;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.chapter .no { font-family: var(--serif); font-weight: 700; color: var(--gold); font-size: 16px; min-width: 30px; }
.chapter .t { font-weight: 600; font-size: 15px; }
.chapter .d { color: var(--ink-soft); font-size: 13.5px; }

/* audience */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.persona {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  background: linear-gradient(180deg, var(--white), var(--paper-2));
}
.persona .emoji { font-size: 30px; }
.persona h3 { margin: 12px 0 6px; font-size: 19px; }
.persona p { font-size: 14px; color: var(--ink-soft); }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px;
  box-shadow: 0 8px 26px rgba(34,27,20,0.05); display: flex; flex-direction: column; gap: 16px;
}
.quote .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }
.quote p { font-family: var(--serif); font-size: 15.5px; font-style: italic; line-height: 1.65; flex: 1; }
.quote .who { font-size: 13px; color: var(--ink-soft); }
.quote .who b { display: block; color: var(--ink); font-family: var(--serif); font-size: 14.5px; }

/* pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px;
  display: flex; flex-direction: column; position: relative;
}
.plan.popular { border: 2px solid var(--red); box-shadow: 0 20px 50px rgba(178,58,46,0.16); }
.plan .flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 20px; }
.plan .price { margin: 14px 0 4px; font-family: var(--serif); font-size: 44px; font-weight: 700; }
.plan .price small { font-size: 15px; color: var(--ink-soft); font-family: var(--sans); font-weight: 400; }
.plan .desc { color: var(--ink-soft); font-size: 14px; margin-bottom: 18px; }
.plan ul { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; font-size: 14px; }
.plan li { display: flex; gap: 9px; align-items: flex-start; }
.plan li::before { content: "✓"; color: var(--red); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
details {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; cursor: pointer;
}
summary { font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::after { content: "+"; font-size: 20px; color: var(--red); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin-top: 10px; color: var(--ink-soft); font-size: 14.5px; }

/* final cta */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #3a2b1e 100%);
  border-radius: 26px; color: var(--paper); padding: 72px 48px; text-align: center; position: relative; overflow: hidden;
}
.cta-band::before {
  content: "中"; position: absolute; right: -30px; bottom: -70px; font-family: var(--serif);
  font-size: 300px; color: rgba(184,137,59,0.12); line-height: 1; pointer-events: none;
}
.cta-band h2 { font-size: 38px; }
.cta-band p { margin: 16px auto 30px; color: rgba(250,246,238,0.75); max-width: 520px; font-size: 16px; }
.cta-band .btn { position: relative; z-index: 2; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 52px; background: var(--paper-2); }
.foot-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot-note { font-size: 12.5px; color: var(--ink-soft); max-width: 560px; }
.foot-note b { color: var(--red); }

/* ---------- Auth / checkout pages ---------- */
.auth-body { background: var(--paper-2); min-height: 100vh; display: flex; flex-direction: column; }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 46px 20px; }
.auth-card {
  width: 100%; max-width: 520px; background: var(--white); border: 1px solid var(--line);
  border-radius: 22px; box-shadow: var(--shadow); padding: 42px 42px 36px;
}
.auth-card.wide { max-width: 900px; }
.auth-card h1 { font-size: 30px; }
.auth-card .sub { color: var(--ink-soft); margin-top: 8px; font-size: 14.5px; }
.field { margin-top: 20px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.field input, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: 11px;
  font-size: 15px; font-family: var(--sans); background: var(--paper); color: var(--ink);
  transition: border 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(178,58,46,0.12); background: #fff; }
.field .hint { font-size: 12px; color: var(--ink-soft); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-soft); margin-top: 16px; }
.form-note .ico { color: var(--gold); }
.auth-alt { text-align: center; margin-top: 22px; font-size: 13.5px; color: var(--ink-soft); }
.auth-alt a { color: var(--red); font-weight: 600; }
.auth-foot { text-align: center; padding: 26px; font-size: 12.5px; color: var(--ink-soft); }
.error-tip { color: var(--red); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--red); }
.field.invalid .error-tip { display: block; }

/* checkout split */
.checkout-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 34px; align-items: start; }
.summary-card {
  background: linear-gradient(180deg, var(--white), var(--paper-2)); border: 1px solid var(--line);
  border-radius: 18px; padding: 28px; position: sticky; top: 92px;
}
.summary-card h3 { font-size: 19px; margin-bottom: 18px; }
.sum-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row.total { font-weight: 700; font-size: 17px; }
.sum-row .muted { color: var(--ink-soft); }
.sum-total { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--red); }
.sum-product { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.sum-product .p-ico {
  width: 52px; height: 52px; border-radius: 12px; background: rgba(178,58,46,0.1);
  display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.sum-product .p-name { font-weight: 700; font-family: var(--serif); font-size: 17px; }
.sum-product .p-sub { font-size: 12.5px; color: var(--ink-soft); }
.pay-badges { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.pay-badges span {
  font-size: 11.5px; border: 1px solid var(--line); border-radius: 8px; padding: 5px 10px; color: var(--ink-soft); background: #fff;
}
.guarantee { display: flex; gap: 10px; margin-top: 18px; font-size: 13px; color: var(--ink-soft); border: 1px solid rgba(47,125,79,0.25); background: rgba(47,125,79,0.06); border-radius: 12px; padding: 12px 14px; }
.guarantee b { color: var(--ok); }
.divider-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--ink-soft); font-size: 12px; }
.divider-or::before, .divider-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.pay-card {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  background: var(--paper-2); margin-top: 18px; display: grid; gap: 16px;
}
.pay-card-head {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; font-size: 13.5px; color: var(--ink-soft);
}
.pay-card-head .lock { font-size: 16px; }

/* success overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(34,27,20,0.55); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.overlay.show { display: flex; }
.success-box {
  background: var(--white); border-radius: 22px; padding: 44px 46px; text-align: center; max-width: 440px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.35); animation: pop 0.35s ease;
}
.success-box .check {
  width: 72px; height: 72px; border-radius: 50%; background: rgba(47,125,79,0.12); color: var(--ok);
  display: flex; align-items: center; justify-content: center; font-size: 34px; margin: 0 auto 18px;
}
.success-box h2 { font-size: 26px; }
.success-box p { color: var(--ink-soft); margin-top: 10px; font-size: 14.5px; }
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .checkout-grid { grid-template-columns: 1fr; }
  .modules, .audience, .quotes, .pricing { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .chapters { grid-template-columns: 1fr; }
  .hero h1 { font-size: 46px; }
  .nav-links { display: none; }
  .sec-head h2 { font-size: 32px; }
  .cta-band { padding: 52px 26px; }
  .auth-card { padding: 30px 24px; }
  .field-row { grid-template-columns: 1fr; }
}
