/* =============================================================
   南山云银发科技小店 · 暖金设计系统
   ============================================================= */
:root {
  --ivory: #fbf6ec;
  --paper: #fffdf8;
  --sand: #f3e8d5;
  --sand-2: #ead9ba;
  --gold: #c08a2e;
  --gold-deep: #9c6a1c;
  --gold-bright: #e3bc6c;
  --gold-pale: #f7e9c8;
  --ink: #241b12;
  --ink-2: #3a2d20;
  --muted: #7d6b56;
  --line: rgba(120, 90, 50, 0.16);
  --line-strong: rgba(120, 90, 50, 0.28);
  --terra: #b85c3a;
  --sage: #6c7f5c;
  --green: #4f7a4a;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 30px 70px -38px rgba(70, 45, 10, 0.42);
  --shadow-soft: 0 18px 44px -30px rgba(70, 45, 10, 0.34);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(227, 188, 108, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 22%, rgba(184, 92, 58, 0.07), transparent 65%),
    var(--ivory);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: repeating-linear-gradient(90deg, rgba(120, 90, 50, 0.035) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 70%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--gold-bright); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.section { padding: clamp(64px, 8.5vw, 116px) 0; position: relative; }
.section--tight { padding: clamp(44px, 6vw, 72px) 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.eyebrow--center::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.display {
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.display em { font-style: normal; color: var(--gold-deep); position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 44px; }
.section-head p { max-width: 460px; color: var(--muted); }
.muted { color: var(--muted); }
.gold { color: var(--gold-deep); }
.center { text-align: center; }
.hairline { height: 1px; background: var(--line); }

/* ------------------------------------------------------------- 按钮 */
.btn {
  --h: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--h);
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, #efcd86, var(--gold-bright) 38%, #c89437);
  color: #2b1d0b;
  box-shadow: 0 16px 30px -18px rgba(156, 106, 28, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn-primary:hover { box-shadow: 0 22px 40px -20px rgba(156, 106, 28, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.5); }
.btn-dark { background: var(--ink); color: var(--gold-pale); box-shadow: var(--shadow-soft); }
.btn-dark:hover { background: #33261a; }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: rgba(255, 253, 248, 0.55); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--paper); }
.btn-link { height: auto; padding: 0; border: 0; border-radius: 0; color: var(--gold-deep); background: none; font-weight: 600; }
.btn-link:hover { transform: none; color: var(--ink); }
.btn-sm { --h: 40px; padding: 0 20px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; pointer-events: none; }
.btn .arr { transition: transform 0.25s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ------------------------------------------------------------- 顶栏 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(251, 246, 236, 0.82);
  backdrop-filter: blur(16px) saturate(130%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.site-head.is-scrolled { border-color: var(--line); box-shadow: 0 12px 30px -26px rgba(70, 45, 10, 0.5); }
.head-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 13px; }
.brand-lockup img { width: 40px; height: auto; }
.brand-word { display: flex; flex-direction: column; line-height: 1.12; }
.brand-word b { font-family: var(--serif); font-size: 19px; letter-spacing: 0.12em; font-weight: 600; }
.brand-word span { font-size: 10px; letter-spacing: 0.26em; color: var(--muted); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a {
  position: relative;
  font-size: 14px;
  color: var(--ink-2);
  padding: 6px 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover, .nav a.is-active { color: var(--gold-deep); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; min-width: 0; }
.head-actions > * { flex-shrink: 0; }
.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: var(--ink); }
.menu-btn span::before { top: -5px; }
.menu-btn span::after { top: 5px; }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--ivory);
  padding: 8px 0 20px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.mobile-nav .head-login,
.mobile-nav .btn { display: inline-flex; width: auto; justify-content: center; padding: 0 24px; }
.mobile-nav .btn { margin-top: 14px; }
.mobile-auth { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------- 首屏 */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 84px) 0 clamp(36px, 5vw, 60px); }
.hero::after {
  content: "";
  position: absolute;
  right: -12vw;
  top: -20vh;
  width: 58vw;
  height: 58vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 188, 108, 0.3), rgba(227, 188, 108, 0.05) 55%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.06fr 0.94fr; gap: clamp(36px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
.hero-copy { max-width: 620px; }
.hero-title {
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 1.08;
  margin: 24px 0 24px;
  letter-spacing: -0.035em;
}
.hero-title em { font-style: normal; position: relative; color: var(--gold-deep); white-space: nowrap; }
.hero-title em::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 12px;
  background: linear-gradient(90deg, rgba(227, 188, 108, 0.5), rgba(227, 188, 108, 0.05));
  z-index: -1;
}
.hero-sub { font-size: clamp(15px, 1.35vw, 17px); color: var(--muted); max-width: 500px; line-height: 1.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; font-size: 12.5px; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta i { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); display: inline-block; }

/* 首屏 · 编辑式产品册 */
.hero-art { position: relative; min-height: 470px; display: flex; align-items: center; justify-content: center; }
.edition-card {
  position: relative;
  width: min(360px, 78%);
  aspect-ratio: 0.76;
  background:
    radial-gradient(120% 90% at 20% 0%, rgba(227, 188, 108, 0.2), transparent 55%),
    linear-gradient(160deg, #2e2317, #1d150e 70%);
  border-radius: 26px;
  padding: 30px 30px 26px;
  color: var(--gold-pale);
  box-shadow: 0 46px 90px -40px rgba(35, 22, 6, 0.75);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: rotate(-2.5deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.edition-card:hover { transform: rotate(0deg) translateY(-6px); }
.edition-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(227, 188, 108, 0.26);
  border-radius: 18px;
  pointer-events: none;
}
.edition-card::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -150px;
  bottom: -170px;
  border: 1px solid rgba(227, 188, 108, 0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(227, 188, 108, 0.03), 0 0 0 62px rgba(227, 188, 108, 0.025);
  pointer-events: none;
}
.edition-top { display: flex; justify-content: space-between; font-size: 9px; letter-spacing: 0.28em; color: rgba(247, 233, 200, 0.62); text-transform: uppercase; }
.edition-mark { margin: 34px 0 18px; }
.edition-mark img { width: 72px; opacity: 0.96; }
.edition-title { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px); line-height: 1.24; letter-spacing: 0.02em; }
.edition-title em { font-style: normal; color: var(--gold-bright); }
.edition-desc { margin-top: 16px; font-size: 11px; letter-spacing: 0.32em; color: rgba(247, 233, 200, 0.55); }
.edition-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.edition-no { font-family: var(--serif); font-size: 44px; line-height: 1; color: rgba(227, 188, 108, 0.22); }
.edition-seal {
  width: 60px;
  height: 60px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.2;
  color: var(--gold-bright);
  letter-spacing: 0.1em;
  transform: rotate(8deg);
}
.float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid rgba(192, 138, 46, 0.24);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  animation: floaty 7s ease-in-out infinite;
}
.float-card b { display: block; font-size: 13px; letter-spacing: 0.02em; }
.float-card span { font-size: 10px; letter-spacing: 0.2em; color: var(--muted); text-transform: uppercase; }
.float-a { top: 4%; left: -12%; animation-delay: -1s; }
.float-b { bottom: 2%; right: -14%; animation-delay: -3.5s; }
.float-card .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); margin-right: 6px; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* 数据条 */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(38px, 5vw, 60px);
}
.stat { padding: 26px 22px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--serif); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; font-weight: 600; }
.stat b small { font-size: 0.5em; margin-left: 3px; }
.stat span { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ------------------------------------------------------------- 商品 */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.chip {
  height: 38px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 13px;
  color: var(--ink-2);
  transition: all 0.22s ease;
}
.chip:hover { border-color: var(--gold); color: var(--gold-deep); }
.chip.is-active { background: var(--ink); color: var(--gold-pale); border-color: var(--ink); }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: rgba(192, 138, 46, 0.34); }
.card-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1); }
.product-card:hover .card-cover img { transform: scale(1.04); }
.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(36, 27, 18, 0.82);
  color: var(--gold-pale);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  backdrop-filter: blur(6px);
}
.card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.card-cat { font-size: 10.5px; letter-spacing: 0.22em; color: var(--gold-deep); text-transform: uppercase; }
.card-title { font-size: 21px; margin: 10px 0 8px; line-height: 1.35; }
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; }
.price { font-family: var(--serif); color: var(--terra); font-size: 25px; line-height: 1; font-weight: 600; }
.price small { font-size: 13px; margin-right: 2px; }
.price em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 5px; font-family: var(--sans); font-weight: 400; }
.card-arrow { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; transition: color 0.2s ease, gap 0.2s ease; }
.product-card:hover .card-arrow { color: var(--gold-deep); gap: 9px; }
.skeleton-card { border-radius: var(--radius); background: linear-gradient(100deg, var(--sand) 20%, #faf1e2 40%, var(--sand) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; aspect-ratio: 3 / 4; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ------------------------------------------------------------- 价值主张 */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value-card {
  padding: 28px 26px;
  background: rgba(255, 253, 248, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: background 0.3s ease, transform 0.3s ease;
}
.value-card:hover { background: var(--paper); transform: translateY(-4px); }
.value-icon {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(192, 138, 46, 0.4);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--gold-deep);
  margin-bottom: 20px;
}
.value-icon svg { width: 20px; height: 20px; }
.value-card h3 { font-size: 17px; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ------------------------------------------------------------- 品牌故事 */
.story {
  background:
    radial-gradient(760px 420px at 84% 4%, rgba(227, 188, 108, 0.28), transparent 62%),
    linear-gradient(160deg, #fdf6e7, var(--sand) 58%, #f8eeda);
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(680px 360px at 82% 8%, rgba(184, 92, 58, 0.06), transparent 65%),
    repeating-linear-gradient(90deg, rgba(120, 90, 50, 0.05) 0 1px, transparent 1px 110px);
  pointer-events: none;
}
.story .container { position: relative; z-index: 2; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }
.story-quote { font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.42; color: var(--ink); }
.story-quote em { font-style: normal; color: var(--gold-deep); }
.story-copy p { color: var(--ink-2); font-size: 14px; line-height: 2; }
.story .eyebrow { color: var(--gold-deep); }
.story .eyebrow::before { background: var(--gold); }
.principle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; padding-top: 38px; border-top: 1px solid var(--line-strong); }
.principle b { display: block; font-family: var(--serif); font-size: 19px; color: var(--gold-deep); margin-bottom: 8px; }
.principle p { font-size: 12.5px; color: var(--ink-2); line-height: 1.8; }
.principle i { font-style: normal; font-size: 10px; letter-spacing: 0.24em; color: var(--muted); display: block; margin-bottom: 16px; }

/* ------------------------------------------------------------- FAQ */
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 17px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--gold-deep);
  font-family: var(--sans);
  transition: transform 0.3s ease;
}
.faq-list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-list .faq-a { padding: 0 44px 26px 0; color: var(--muted); font-size: 13.5px; line-height: 1.9; }

/* ------------------------------------------------------------- CTA */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: clamp(40px, 6vw, 70px);
  background:
    radial-gradient(700px 300px at 85% 0%, rgba(255, 253, 248, 0.45), transparent 60%),
    linear-gradient(135deg, #efd7a2, #e2b96a 45%, #c9973c);
  color: #2b1d0b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(43, 29, 11, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(43, 29, 11, 0.04), 0 0 0 68px rgba(43, 29, 11, 0.03);
}
.cta-band h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.25; }
.cta-band p { margin-top: 12px; font-size: 13.5px; color: rgba(43, 29, 11, 0.7); max-width: 460px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 2; }
.cta-band .btn-dark { background: #2b1d0b; color: var(--gold-pale); }
.cta-band .btn-ghost { border-color: rgba(43, 29, 11, 0.35); color: #2b1d0b; background: transparent; }

/* ------------------------------------------------------------- 页脚 */
.site-foot { background: #1f1710; color: rgba(247, 233, 200, 0.66); padding: 66px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr; gap: 46px; }
.foot-brand img { width: 44px; margin-bottom: 18px; }
.foot-brand b { display: block; font-family: var(--serif); font-size: 20px; color: var(--gold-pale); letter-spacing: 0.1em; margin-bottom: 10px; }
.foot-brand p { font-size: 12.5px; line-height: 1.9; max-width: 300px; }
.foot-col h4 { font-family: var(--sans); font-size: 11px; letter-spacing: 0.24em; color: var(--gold-bright); margin-bottom: 16px; text-transform: uppercase; }
.foot-col a, .foot-col p { display: block; font-size: 13px; color: rgba(247, 233, 200, 0.62); margin-bottom: 10px; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--gold-bright); }
.foot-bottom {
  margin-top: 46px;
  padding-top: 22px;
  border-top: 1px solid rgba(247, 233, 200, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 11px;
  line-height: 1.7;
  color: rgba(247, 233, 200, 0.55);
}
/* 版权与备案：同字号、同色、同行高，基线随同一行盒对齐 */
.foot-copy { text-align: left; }
.foot-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 10px;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}
.foot-legal a { color: inherit; white-space: nowrap; transition: color 0.2s ease; }
.foot-legal a:hover { color: var(--gold-bright); }
.foot-legal-sep { color: inherit; }

/* ------------------------------------------------------------- 子页公共 */
.page-head { padding: clamp(34px, 5vw, 58px) 0 28px; border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold-deep); }
.page-title { font-size: clamp(30px, 4vw, 50px); }
.page-sub { margin-top: 12px; color: var(--muted); font-size: 14px; max-width: 620px; }

/* 商品详情 */
.detail-grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(36px, 5vw, 70px); align-items: start; padding-top: clamp(34px, 4vw, 54px); }
.detail-cover { border-radius: 26px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--sand); position: sticky; top: 104px; }
.detail-cover img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid rgba(192, 138, 46, 0.36); border-radius: 999px; font-size: 11px; letter-spacing: 0.12em; color: var(--gold-deep); background: var(--gold-pale); }
.detail-title { font-size: clamp(30px, 3.5vw, 44px); margin: 16px 0 12px; }
.detail-sub { color: var(--muted); font-size: 14px; line-height: 1.9; }
.detail-trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 22px 0 28px; font-size: 12px; color: var(--muted); }
.detail-trust span::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }
.plan-list { display: grid; gap: 10px; }
.plan {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 253, 248, 0.6);
  cursor: pointer;
  transition: border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
  position: relative;
}
.plan:hover { border-color: var(--line-strong); background: var(--paper); }
.plan.is-active { border-color: var(--gold); background: var(--paper); box-shadow: 0 14px 30px -24px rgba(156, 106, 28, 0.8); }
.plan-radio { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; transition: border-color 0.2s ease; }
.plan.is-active .plan-radio { border-color: var(--gold-deep); }
.plan.is-active .plan-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-deep); }
.plan-main { flex: 1; min-width: 0; }
.plan-name { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.plan-tag { font-size: 9.5px; padding: 2px 7px; border-radius: 999px; background: var(--gold-pale); color: var(--gold-deep); border: 1px solid rgba(192, 138, 46, 0.3); letter-spacing: 0.08em; font-weight: 500; }
.plan-desc { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.plan-price { text-align: right; flex: 0 0 auto; }
.plan-price b { font-family: var(--serif); font-size: 21px; color: var(--terra); }
.plan-price b small { font-size: 12px; }
.plan-price del { display: block; font-size: 10.5px; color: var(--muted); opacity: 0.7; }
.buy-row { display: flex; gap: 12px; align-items: center; margin-top: 24px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; height: 50px; overflow: hidden; background: var(--paper); }
.qty button { width: 40px; height: 100%; border: 0; background: transparent; font-size: 16px; color: var(--muted); }
.qty button:hover { color: var(--ink); }
.qty span { width: 34px; text-align: center; font-size: 14px; }
.buy-row .btn { flex: 1; }
.detail-note { margin-top: 16px; font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.detail-note svg { flex: 0 0 auto; margin-top: 3px; }

.detail-sections { margin-top: clamp(50px, 7vw, 86px); border-top: 1px solid var(--line); }
.detail-block { padding: clamp(32px, 4vw, 52px) 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 220px 1fr; gap: 42px; }
.detail-block h2 { font-size: 22px; }
.detail-block h2 small { display: block; font-family: var(--sans); font-size: 10px; letter-spacing: 0.24em; color: var(--gold-deep); margin-bottom: 8px; }
.prose p { color: var(--ink-2); font-size: 14.5px; line-height: 2.1; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 30px; }
.feature-list li { position: relative; padding-left: 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.highlight-list { display: grid; gap: 14px; counter-reset: hl; }
.highlight-list li { counter-increment: hl; display: flex; gap: 16px; align-items: baseline; padding: 16px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.highlight-list li::before { content: "0" counter(hl); font-family: var(--serif); font-size: 13px; color: var(--gold-deep); letter-spacing: 0.1em; flex: 0 0 28px; }
.demo-wrap { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--paper); }
.demo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.demo-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--sand-2); }
.demo-bar .url { margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.demo-frame { width: 100%; height: 480px; border: 0; background: #fff; }

/* ------------------------------------------------------------- 表单 / 结算 */
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field > label { font-size: 12px; color: var(--ink-2); font-weight: 500; letter-spacing: 0.04em; }
.form-field > label i { color: var(--terra); font-style: normal; margin-left: 2px; }
.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--paper);
  padding: 0 15px;
  height: 48px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.textarea { height: auto; min-height: 96px; padding: 12px 15px; resize: vertical; line-height: 1.7; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 138, 46, 0.13); }
.input::placeholder, .textarea::placeholder { color: #b3a48f; }
.form-hint { font-size: 11px; color: var(--muted); }
.field-error { font-size: 11.5px; color: var(--terra); min-height: 16px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.check-row input { margin-top: 3px; accent-color: var(--gold-deep); }
.check-row a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

.steps { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.08em; }
.steps b { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.steps b i { width: 20px; height: 20px; border-radius: 50%; background: var(--gold-bright); color: #2b1d0b; display: grid; place-items: center; font-style: normal; font-size: 10px; }
.steps .sep { width: 26px; height: 1px; background: var(--line-strong); }
.steps .done { color: var(--gold-deep); }
.steps .done i { background: var(--gold-pale); border: 1px solid var(--gold); color: var(--gold-deep); }

.checkout-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 30px; align-items: start; padding-top: 34px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 1px 0 #fff inset; }
.panel + .panel { margin-top: 20px; }
/* 说明类长文（购买与交付说明） */
.doc-body h2 { font-family: var(--serif); font-size: 17px; color: var(--ink); margin: 26px 0 10px; }
.doc-body h2:first-child { margin-top: 0; }
.doc-body p, .doc-body li { font-size: 13.5px; line-height: 1.85; color: var(--ink-2); }
.doc-body ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.doc-body li + li { margin-top: 6px; }
.doc-body .doc-note { margin-top: 24px; padding: 12px 14px; border-radius: 10px; background: var(--gold-pale); color: var(--gold-deep); font-size: 12.5px; line-height: 1.75; }
.doc-body a { color: var(--gold-deep); }
/* 确认订单页的折叠说明：默认收起，不抢下单主流程的注意力 */
.terms-fold { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: rgba(255, 255, 255, .62); }
.terms-fold summary { cursor: pointer; font-size: 12.5px; color: var(--ink-2); list-style: none; }
.terms-fold summary::-webkit-details-marker { display: none; }
.terms-fold summary::before { content: "＋ "; color: var(--gold-deep); }
.terms-fold[open] summary::before { content: "－ "; }
.terms-fold ul { margin: 10px 0 8px; padding-left: 18px; list-style: disc; font-size: 12px; line-height: 1.7; color: var(--muted); }
.terms-fold li + li { margin-top: 6px; }
.terms-fold a { font-size: 12px; color: var(--gold-deep); }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.panel-head h2 { font-size: 20px; }
.panel-head span { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

.summary { position: sticky; top: 104px; }
.summary-product { display: flex; gap: 16px; align-items: flex-start; padding-bottom: 20px; border-bottom: 1px dashed var(--line); }
.summary-cover { width: 88px; flex: 0 0 auto; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.summary-cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.summary-name { font-family: var(--serif); font-size: 16px; line-height: 1.4; }
.summary-plan { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.summary-rows { padding: 18px 0; display: grid; gap: 12px; border-bottom: 1px dashed var(--line); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.summary-row b { color: var(--ink); font-weight: 500; }
.summary-total { display: flex; justify-content: space-between; align-items: flex-end; padding: 20px 0 4px; }
.summary-total span { font-size: 12px; color: var(--muted); }
.summary-total b { font-family: var(--serif); font-size: 34px; color: var(--terra); line-height: 1; }
.summary-total b small { font-size: 15px; }
.pay-note { display: flex; gap: 8px; font-size: 11px; color: var(--muted); margin-top: 14px; align-items: flex-start; line-height: 1.6; }
.pay-note svg { flex: 0 0 auto; margin-top: 2px; }

.channel-list { display: grid; gap: 10px; }
.channel {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  background: rgba(255, 253, 248, 0.55);
  transition: all 0.2s ease;
}
.channel:hover { border-color: var(--line-strong); }
.channel.is-active { border-color: var(--gold); background: var(--paper); box-shadow: 0 10px 24px -22px rgba(156, 106, 28, 0.9); }
.channel-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: 0 0 auto; }
.channel-logo.wx { background: #e8f7e9; color: #1aad19; }
.channel-logo.ali { background: #e8f1ff; color: #1677ff; }
.channel-logo svg { width: 20px; height: 20px; }
.channel-main { flex: 1; }
.channel-main b { display: block; font-size: 13.5px; font-weight: 600; }
.channel-main span { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.channel-radio { width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; }
.channel.is-active .channel-radio { border-color: var(--gold-deep); }
.channel.is-active .channel-radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-deep); }
.mode-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 9.5px; letter-spacing: 0.06em; padding: 2px 7px; border-radius: 999px; background: var(--sand); color: var(--muted); }
.mode-pill.live { background: #e8f3e6; color: var(--green); }
.mode-pill.sandbox { background: #f8e9cf; color: var(--gold-deep); }

/* ------------------------------------------------------------- 收银台 */
.cashier-wrap { padding: clamp(40px, 6vw, 76px) 0; display: flex; justify-content: center; }
.pay-card { width: min(520px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); padding: clamp(28px, 4vw, 42px); text-align: center; position: relative; overflow: hidden; }
.pay-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--gold-bright), var(--gold), var(--terra)); }
.pay-amount { font-family: var(--serif); font-size: clamp(40px, 6vw, 56px); line-height: 1; color: var(--terra); margin: 10px 0 6px; }
.pay-amount small { font-size: 20px; margin-right: 3px; }
.pay-order { font-size: 11.5px; color: var(--muted); letter-spacing: 0.06em; }
.pay-channel-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 999px; background: var(--sand); font-size: 11px; color: var(--ink-2); margin-top: 14px; }
.qr-box { width: 220px; height: 220px; margin: 26px auto 14px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; display: grid; place-items: center; }
.qr-box img { width: 100%; height: 100%; object-fit: contain; }
.qr-hint { font-size: 12px; color: var(--muted); }
.countdown { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); }
.countdown b { color: var(--terra); font-family: var(--serif); font-size: 15px; }
.pay-actions { display: flex; gap: 10px; margin-top: 22px; }
.pay-actions .btn { flex: 1; }
.pay-state { padding: 22px 0 6px; }
.spinner { width: 34px; height: 34px; border: 2px solid var(--sand-2); border-top-color: var(--gold); border-radius: 50%; margin: 0 auto 16px; animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sandbox-box { background: linear-gradient(150deg, #fdf3df, #f8e7c6); border: 1px dashed rgba(192, 138, 46, 0.5); border-radius: 16px; padding: 18px; margin-top: 20px; font-size: 12px; color: #6c5322; text-align: left; line-height: 1.7; }
.sandbox-box b { display: block; margin-bottom: 4px; color: #4c3813; }
.notice { padding: 12px 15px; border-radius: 12px; font-size: 12px; line-height: 1.7; margin-top: 16px; text-align: left; }
.notice.warn { background: #fcf0e9; color: #8a452a; border: 1px solid #f0d3c5; }
.notice.info { background: #f7f1e4; color: #6b5735; border: 1px solid var(--line); }

/* ------------------------------------------------------------- 支付结果 */
.result-wrap { padding: clamp(44px, 6vw, 80px) 0; display: flex; justify-content: center; }
.result-card { width: min(640px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; }
.result-hero { padding: 40px 36px 30px; text-align: center; border-bottom: 1px dashed var(--line); position: relative; }
.result-icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; }
.result-icon.ok { background: #e9f3e5; color: var(--green); }
.result-icon.pending { background: var(--gold-pale); color: var(--gold-deep); }
.result-icon.fail { background: #fbece6; color: var(--terra); }
.result-icon svg { width: 30px; height: 30px; }
.result-title { font-size: clamp(24px, 3.2vw, 32px); }
.result-sub { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.result-body { padding: 28px 36px 34px; }
.kv { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.kv span { color: var(--muted); flex: 0 0 auto; }
.kv b { font-weight: 500; text-align: right; word-break: break-all; }
.delivery-box { margin-top: 22px; background: var(--gold-pale); border: 1px solid rgba(192, 138, 46, 0.3); border-radius: 16px; padding: 20px; }
.delivery-box h3 { font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.delivery-box p { font-size: 12.5px; color: #6b5326; line-height: 1.8; }
.code-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.code-pill { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: 0.08em; padding: 8px 12px; background: #fff; border: 1px dashed rgba(192, 138, 46, 0.5); border-radius: 10px; color: var(--ink); cursor: pointer; }
.code-pill:hover { border-style: solid; }
.result-actions { display: flex; gap: 12px; margin-top: 26px; }
.result-actions .btn { flex: 1; }

/* ------------------------------------------------------------- 订单查询 */
.orders-wrap { padding: clamp(34px, 5vw, 56px) 0 20px; }
.search-bar { display: flex; gap: 12px; background: var(--paper); border: 1px solid var(--line); padding: 12px; border-radius: 18px; box-shadow: var(--shadow-soft); }
.search-bar .input { border: 0; background: transparent; box-shadow: none; height: 44px; }
.search-bar .input:focus { box-shadow: none; }
.search-bar .divider { width: 1px; background: var(--line); margin: 4px 0; }
.order-list { display: grid; gap: 16px; margin-top: 26px; }
.order-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.order-card:hover { border-color: rgba(192, 138, 46, 0.34); box-shadow: var(--shadow-soft); }
.order-top { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.order-no { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.order-name { font-family: var(--serif); font-size: 18px; margin-top: 6px; }
.order-meta { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.order-right { text-align: right; }
.order-amount { font-family: var(--serif); font-size: 22px; color: var(--terra); }
.order-amount small { font-size: 12px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 11px; letter-spacing: 0.04em; }
.status-pill::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-pending { background: #faf0da; color: #9a7420; }
.status-paid { background: #e8f2e6; color: var(--green); }
.status-delivered { background: #e8f2e6; color: var(--green); }
.status-expired, .status-cancelled { background: #f1ece4; color: #8d7a63; }
.status-refunded { background: #f0e8f5; color: #7a5590; }
.order-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.order-foot .left { font-size: 11.5px; color: var(--muted); }
.empty-state { text-align: center; padding: 64px 20px; border: 1px dashed var(--line-strong); border-radius: 20px; color: var(--muted); margin-top: 26px; }
.empty-state b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 8px; }

/* ------------------------------------------------------------- Toast / Modal */
.toast-wrap { position: fixed; top: 92px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 10px; width: min(420px, calc(100% - 32px)); pointer-events: none; }
.toast {
  background: rgba(36, 27, 18, 0.94);
  color: var(--gold-pale);
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(227, 188, 108, 0.25);
  animation: toast-in 0.3s ease both;
  text-align: center;
  backdrop-filter: blur(8px);
}
.toast.err { background: rgba(128, 52, 30, 0.96); }
.toast.ok { background: rgba(48, 72, 40, 0.96); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-10px); } }

.modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28, 20, 12, 0.55); backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(460px, 100%); background: var(--paper); border-radius: 22px; box-shadow: var(--shadow); padding: 30px; animation: modal-in 0.3s ease both; max-height: 90vh; overflow-y: auto; }
.modal-card h3 { font-size: 24px; margin-bottom: 8px; }
.modal-card .lead { font-size: 12.5px; color: var(--muted); margin-bottom: 22px; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border: 0; background: var(--sand); border-radius: 50%; font-size: 18px; color: var(--muted); display: grid; place-items: center; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

/* ------------------------------------------------------------- 动效 */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: 0.08s; }
[data-reveal][data-delay="2"] { transition-delay: 0.16s; }
[data-reveal][data-delay="3"] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- 响应式 */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 0.9fr; gap: 30px; }
  .hero-art { min-height: 420px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.2fr 1fr 1fr; }
  .foot-col:last-child { grid-column: 2 / -1; }
  .checkout-grid, .detail-grid { grid-template-columns: 1fr; }
  .summary, .detail-cover { position: static; }
  .detail-cover { max-width: 640px; }
  .story-grid { gap: 40px; }
}
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-actions .btn { display: none; }
  .head-actions .head-auth { display: none; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; min-height: 400px; margin-bottom: 10px; }
  .edition-card { width: min(320px, 74%); }
  .float-a { left: 0; top: 0; }
  .float-b { right: 0; bottom: 0; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .story-grid { grid-template-columns: 1fr; }
  .principle { grid-template-columns: 1fr; gap: 22px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .detail-block { grid-template-columns: 1fr; gap: 20px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-col:last-child { grid-column: auto; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 34px); }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; margin-bottom: 30px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .value-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
  .search-bar { flex-direction: column; }
  .search-bar .divider { display: none; }
  .search-bar .btn { width: 100%; }
  .result-hero, .result-body { padding-left: 24px; padding-right: 24px; }
  .result-actions, .pay-actions { flex-direction: column; }
  .buy-row { flex-wrap: wrap; }
  .buy-row .btn { flex: 1 1 100%; }
  .plan { padding: 14px; gap: 10px; }
  .plan-price b { font-size: 18px; }
  .demo-frame { height: 380px; }
  .hero-meta { gap: 12px 18px; }
  .detail-trust { gap: 10px 16px; }
  .steps { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .head-inner { height: 68px; }
  .brand-lockup img { width: 34px; }
  .brand-word b { font-size: 17px; }
  .hero { padding-top: 30px; }
  .hero-art { min-height: 350px; }
  .edition-card { padding: 24px; }
  .float-card { padding: 9px 12px; }
  .float-card b { font-size: 11.5px; }
  .cta-band { border-radius: 20px; padding: 30px 24px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  /* 窄屏单行放不下：折成版权一行、备案一行，仍各自顶到左右边缘 */
  .foot-bottom { flex-direction: column; align-items: stretch; gap: 6px; }
  .foot-copy { text-align: left; }
  .foot-legal { justify-content: flex-end; }
  .foot-legal-sep { display: none; }
  .toast-wrap { top: 80px; }
  .panel { padding: 20px; }
  .pay-card { padding: 24px 20px; }
  .qr-box { width: 190px; height: 190px; }
  .order-card { padding: 18px; }
  .order-right { text-align: left; }
}

/* ------------------------------------------------------------- 登录态（头部） */
.head-auth { display: flex; align-items: center; gap: 10px; }
.head-login {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 12.5px; color: var(--ink-2); white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.head-login:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--gold-pale); }
.head-user { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.head-user-avatar {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-pale), var(--sand-2));
  color: var(--gold-deep); font-family: var(--serif); font-size: 14px;
  border: 1px solid rgba(192, 138, 46, .28);
}
.head-user-name { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; color: var(--ink-2); }
.head-user:hover .head-user-name { color: var(--gold-deep); }
.head-logout { border: 0; background: none; padding: 4px 2px; font-size: 11.5px; color: var(--muted); }
.head-logout:hover { color: var(--terra); }

/* ------------------------------------------------------------- 登录 / 注册 */
.auth-wrap { display: grid; grid-template-columns: 1fr 440px; gap: clamp(30px, 6vw, 76px); align-items: center; padding: clamp(38px, 6vw, 76px) 0 20px; }
.auth-aside .eyebrow { color: var(--gold-deep); }
.auth-aside h1 { font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); line-height: 1.28; margin: 16px 0 18px; font-weight: 500; }
.auth-aside h1 em { font-style: normal; color: var(--terra); position: relative; }
.auth-aside h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 8px; background: rgba(227, 188, 108, .45); z-index: -1; }
.auth-aside > p { max-width: 430px; color: var(--muted); font-size: 13.5px; }
.auth-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.auth-points li { display: flex; gap: 12px; align-items: baseline; font-size: 12.5px; color: var(--ink-2); }
.auth-points li span { font-family: var(--serif); font-size: 12px; color: var(--gold); letter-spacing: .08em; }
.auth-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 26px;
  box-shadow: var(--shadow); padding: clamp(26px, 3.4vw, 38px);
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--sand); border-radius: 999px; margin-bottom: 26px; }
.auth-tab { border: 0; background: transparent; border-radius: 999px; height: 38px; font-size: 13px; color: var(--muted); transition: all .2s ease; }
.auth-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: 0 6px 16px -10px rgba(70, 45, 10, .45); font-weight: 600; }
.auth-form .form-field { margin-bottom: 16px; }
.auth-submit { height: 48px; margin-top: 6px; font-size: 14px; }
.auth-switch { margin: 16px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-switch .btn-link { font-size: 12.5px; margin-left: 4px; }
.auth-terms { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; line-height: 1.7; }

/* ------------------------------------------------------------- 个人中心 */
.account-layout { display: grid; grid-template-columns: 300px 1fr; gap: 24px; align-items: start; padding-bottom: 10px; }
.account-side { position: sticky; top: 96px; }
.profile-card { padding: 24px; }
.profile-loading { color: var(--muted); font-size: 12.5px; }
.profile-top { display: flex; align-items: center; gap: 14px; }
.profile-avatar {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--gold-pale), var(--sand-2));
  border: 1px solid rgba(192, 138, 46, .3); color: var(--gold-deep);
  font-family: var(--serif); font-size: 22px;
}
.profile-name { font-family: var(--serif); font-size: 18px; line-height: 1.3; }
.profile-phone { font-size: 12px; color: var(--muted); margin-top: 3px; letter-spacing: .04em; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0 16px; }
.profile-stats > div { background: var(--sand); border-radius: 14px; padding: 12px 14px; }
.profile-stats b { display: block; font-family: var(--serif); font-size: 20px; color: var(--ink); line-height: 1.2; }
.profile-stats span { font-size: 11px; color: var(--muted); }
.profile-meta { font-size: 11.5px; color: var(--muted); margin-bottom: 16px; }
.account-tip h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 8px; }
.account-tip p { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.account-tip .btn { margin-top: 8px; }
.account-main .panel-head span { letter-spacing: 0; }
.order-list { margin-top: 8px; }
.order-note { margin-top: 14px; padding: 9px 13px; border-radius: 10px; background: var(--sand); color: #6b5735; font-size: 11.5px; }
.order-card.is-highlight { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(227, 188, 108, .25); }
.order-downloads { margin-top: 16px; padding: 14px; background: linear-gradient(150deg, #fdf3df, #f9edda); border: 1px dashed rgba(192, 138, 46, .42); border-radius: 14px; }
.order-downloads-title { font-size: 11px; letter-spacing: .12em; color: var(--gold-deep); margin-bottom: 10px; text-transform: uppercase; }

/* ------------------------------------------------------------- 下载列表 */
.download-list { display: grid; gap: 8px; }
.delivery-box .download-list { margin: 14px 0 6px; }
.download-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.download-item:hover { border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 10px 22px -18px rgba(70, 45, 10, .5); }
/* 下载入口改为按钮后需复位原生按钮样式，保持与原链接一致的外观 */
button.download-item { width: 100%; font: inherit; text-align: left; cursor: pointer; }
button.download-item:disabled { opacity: .6; cursor: progress; transform: none; }
.download-icon {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: var(--gold-pale); color: var(--gold-deep);
  font-size: 15px; font-weight: 700;
}
.download-main { flex: 1; min-width: 0; }
.download-main b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.download-main small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.download-action { flex: 0 0 auto; font-size: 11.5px; color: var(--gold-deep); font-weight: 600; }
.download-action::after { content: " →"; }

/* ------------------------------------------------------------- 商品故事 */
.story-block { position: relative; }
.story-prose {
  font-family: var(--serif); font-size: 15.5px; line-height: 1.95; color: var(--ink-2);
  max-width: 720px;
}
.story-prose p { margin: 0 0 18px; }
.story-prose h3, .story-prose h4 {
  font-family: var(--serif); font-size: 19px; color: var(--ink);
  margin: 26px 0 12px; padding-left: 14px; border-left: 3px solid var(--gold-bright);
}
.story-prose blockquote {
  margin: 24px 0; padding: 16px 22px; background: var(--gold-pale);
  border-left: 3px solid var(--gold); border-radius: 0 12px 12px 0;
  color: #6b5326; font-style: normal;
}
.story-prose ul, .story-prose ol { margin: 0 0 18px; padding-left: 22px; }
.story-prose li { margin: 6px 0; }
.story-prose img { border-radius: 16px; margin: 18px 0; box-shadow: var(--shadow-soft); }
.story-prose figure { margin: 22px 0; }
.story-prose figcaption { font-size: 11.5px; color: var(--muted); text-align: center; font-family: var(--sans); margin-top: 8px; }
.story-prose a { color: var(--gold-deep); border-bottom: 1px solid rgba(192, 138, 46, .4); }
.story-prose hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 28px 0; }

@media (max-width: 980px) {
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .profile-stats { max-width: 420px; }
}
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 30px; }
  .auth-aside h1 { font-size: 32px; }
  .auth-aside > p { max-width: none; }
  .auth-points { display: none; }
}
@media (max-width: 720px) {
  .order-downloads { padding: 12px; }
  .download-main small { display: none; }
}
