/* 2466335 品牌设计系统
   主色：#246633 深绿（取自域名 2466335 前六位）；#25A21F 鲜绿（2466335 的十六进制）。
   鲜绿对白底对比度不足 4.5:1，只用于图形、标记和大号装饰，不用于正文文字。 */
:root {
  --brand-deep: #246633;
  --brand-deep-hover: #1b5228;
  --brand-bright: #25a21f;
  --brand-bright-soft: #4cc93f;
  --ink: #13241a;
  --ink-soft: #2b3a30;
  --muted: #5b6a60;
  --line: #dfe6dc;
  --line-strong: #c8d3c5;
  --bg: #f6f8f3;
  --surface: #ffffff;
  --surface-soft: #f1f6ee;
  --tint: #e9f4e4;
  --tint-strong: #d7ebcf;
  --link: #1f6b31;
  --danger: #a93a2f;
  --danger-soft: #fbefed;
  --warning: #8f5a10;
  --warning-soft: #fbf4e6;
  --info: #285d85;
  --info-soft: #edf3f8;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(19, 36, 26, 0.05), 0 8px 24px rgba(19, 36, 26, 0.06);
  --shadow-lift: 0 2px 4px rgba(19, 36, 26, 0.06), 0 18px 40px rgba(19, 36, 26, 0.10);
  --content: 1120px;
  /* 旧变量名保留给仍引用它们的规则 */
  --green: var(--brand-deep);
  --green-strong: var(--brand-deep-hover);
  --green-soft: var(--tint);
  --blue: var(--link);
  --border: var(--line);
  --paper: var(--surface);
  color: var(--ink);
  background: var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
}

button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { letter-spacing: 0; color: var(--ink); }

.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hidden { display: none !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 230, 220, 0.9);
  background: rgba(246, 248, 243, 0.92);
  backdrop-filter: saturate(1.4) blur(14px);
}

.topbar-inner {
  width: min(100% - 40px, var(--content));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-logo { width: 34px; height: 34px; stroke: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.brand-copy { display: grid; gap: 3px; line-height: 1; }
.brand-copy strong { font-size: 19px; font-weight: 800; letter-spacing: 0.12em; }
.brand-copy small { color: var(--brand-deep); font-size: 9.5px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 600;
}
.site-nav a:hover { background: var(--surface-soft); color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--brand-deep); }

.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header-link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 650;
}
.header-link:hover { background: var(--surface-soft); color: var(--ink); }
.icon-button, .copy-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.icon-button:hover, .copy-button:hover { background: var(--surface-soft); color: var(--ink); }
:where(a, button, input, select, summary, .button):focus-visible {
  outline: 3px solid rgba(37, 162, 31, 0.35);
  outline-offset: 2px;
}

/* ---------- 页面骨架 ---------- */
.page { width: min(100% - 40px, var(--content)); flex: 1 0 auto; margin: 0 auto; padding: 44px 0 80px; }
.center-state { min-height: 50vh; display: grid; place-items: center; align-content: center; gap: 14px; color: var(--muted); }
.center-state p { margin: 0; }
.spinner { width: 30px; height: 30px; border: 3px solid var(--tint-strong); border-top-color: var(--brand-deep); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow {
  margin: 0;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ---------- 按钮 ---------- */
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.button.primary { background: var(--brand-deep); color: white; box-shadow: 0 1px 2px rgba(19, 36, 26, 0.12); }
.button.primary:hover { background: var(--brand-deep-hover); }
.button.secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button.secondary:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.button.ghost { background: transparent; color: var(--brand-deep); }
.button.ghost:hover { background: var(--tint); }
.button.danger { border-color: #dfb3ad; background: white; color: var(--danger); }
.button.danger:hover { background: var(--danger-soft); }
.button.compact { min-height: 36px; padding: 0 14px; font-size: 13.5px; }
.button.large { min-height: 50px; padding: 0 26px; font-size: 16px; }
.button.full { width: 100%; }
.button:disabled { cursor: wait; opacity: 0.65; }
.catalog-item .button.unavailable {
  border-color: var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  cursor: not-allowed;
  opacity: 1;
}
.text-link { display: inline-flex; align-items: center; gap: 7px; color: var(--link); font-weight: 650; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link svg { width: 18px; height: 18px; }
.text-button { padding: 0; border: 0; background: transparent; color: var(--link); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-button { padding: 0; border: 0; background: transparent; color: var(--link); cursor: pointer; }
.link-button:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 首页：主视觉 ---------- */
.buy-view { padding-top: 0; }
.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: center;
  gap: 56px;
  padding: 28px 0 56px;
}
.hero-copy { min-width: 0; }
.home-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 6px 12px 6px 8px;
  border: 1px solid var(--tint-strong);
  border-radius: 999px;
  background: var(--tint);
  font-size: 13px;
}
.home-hero .eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-bright);
}
.home-hero h1 { margin: 0; font-size: 54px; line-height: 1.12; font-weight: 800; letter-spacing: -0.01em; }
.hero-accent { color: var(--brand-deep); }
#catalogIntro { max-width: 600px; margin: 20px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-actions .button { min-height: 50px; padding: 0 26px; font-size: 16px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border-radius: 50%;
  background: var(--tint-strong);
  box-shadow: inset 0 0 0 4px var(--tint), inset 0 0 0 7px var(--brand-deep);
}

.hero-visual { position: relative; min-width: 0; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  z-index: 0;
  border-radius: 28px;
  background: linear-gradient(150deg, var(--tint) 0%, rgba(233, 244, 228, 0) 70%);
}
.preview-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.preview-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.preview-head span { color: var(--muted); font-size: 13px; }
.preview-tag { padding: 3px 9px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; font-weight: 600; }
.preview-balance { padding: 18px 0 10px; }
.preview-balance small { display: block; color: var(--muted); font-size: 13px; }
.preview-balance strong { display: block; margin-top: 6px; font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; }
.preview-bars { height: 76px; display: flex; align-items: flex-end; gap: 6px; margin: 6px 0 16px; }
.preview-bars i { flex: 1; border-radius: 4px 4px 0 0; }
.preview-bars i { background: var(--brand-deep); opacity: 0.85; }
.preview-bars i:last-child { background: var(--brand-bright); opacity: 1; }
.preview-bars .h1 { height: 30%; } .preview-bars .h2 { height: 46%; } .preview-bars .h3 { height: 38%; }
.preview-bars .h4 { height: 62%; } .preview-bars .h5 { height: 54%; } .preview-bars .h6 { height: 80%; }
.preview-bars .h7 { height: 70%; } .preview-bars .h8 { height: 92%; } .preview-bars .h9 { height: 66%; }
.preview-rows { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.preview-rows li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.preview-rows li:last-child { border-bottom: 0; padding-bottom: 0; }
.preview-rows code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 12.5px; color: var(--ink-soft); }
.preview-rows b { font-variant-numeric: tabular-nums; }
.preview-note { margin: 12px 0 0; color: var(--muted); font-size: 12px; text-align: right; }

/* ---------- 首页：分区 ---------- */
.campaign-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin: 0 0 24px;
  padding: 18px 22px;
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius);
  background: var(--tint);
  color: var(--brand-deep);
}
.campaign-copy > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.campaign-notice strong { font-size: 19px; }
.campaign-notice span { color: var(--ink-soft); font-size: 13px; font-variant-numeric: tabular-nums; }
.campaign-notice p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }
.campaign-price { flex: 0 0 auto; text-align: right; }
.campaign-price b { display: block; color: var(--brand-deep); font-size: 28px; line-height: 1.05; }
.campaign-price small { color: var(--muted); font-size: 13px; }

.home-section { padding: 56px 0 8px; scroll-margin-top: 80px; }
.home-section + .home-section { border-top: 1px solid var(--line); margin-top: 40px; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}
.home-section .section-heading .eyebrow { margin-bottom: 10px; }
.section-heading h2 { margin: 0; font-size: 34px; line-height: 1.25; font-weight: 800; }
.section-heading > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.7; }
.compact-heading { margin-bottom: 22px; }
.purchase-section { scroll-margin-top: 80px; }

.value-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.value-list article {
  min-width: 0;
  padding: 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.value-list strong { display: flex; align-items: center; gap: 10px; font-size: 17px; line-height: 1.4; }
.value-list strong > span {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--tint);
  position: relative;
}
.value-list strong > span::after {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: 50%;
  background: var(--brand-bright);
}
.value-list p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.catalog-item {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 12px;
  min-height: 228px;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.catalog-item:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.catalog-item.trial { border-color: var(--brand-deep); box-shadow: inset 0 4px 0 var(--brand-bright); }
.catalog-item.campaign { border-color: var(--tint-strong); }
.catalog-item-heading { min-height: 28px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.catalog-item h2 { margin: 0; font-size: 16px; font-weight: 700; color: var(--ink-soft); }
.catalog-badge {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.catalog-credit { margin-top: 6px; font-size: 36px; font-weight: 800; line-height: 1; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.catalog-pricing { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.catalog-price { color: var(--ink); font-size: 17px; font-weight: 700; }
.catalog-regular-price { color: var(--muted); font-size: 12.5px; }
.catalog-item > .button { align-self: end; width: 100%; margin-top: 8px; }
.catalog-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; }

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process-list li {
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.step-index {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand-deep);
  color: white;
  font-size: 14px;
  font-weight: 800;
}
.process-list div { min-width: 0; }
.process-list strong { display: block; font-size: 16.5px; }
.process-list p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.task-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.task-list li { position: relative; padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.6; }
.task-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--tint);
  box-shadow: inset 0 0 0 5px var(--tint), inset 0 0 0 8px var(--brand-bright);
}
.fine-print { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.price-disclaimer { margin-top: 8px; font-size: 12.5px; }

.plain-band {
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.plain-band h2 { margin: 6px 0 16px; font-size: 22px; }

.faq-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
}
.faq-group { min-width: 0; }
.faq-group h3 { margin: 0; padding: 0 0 12px; border-bottom: 2px solid var(--brand-deep); font-size: 17px; }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group summary {
  position: relative;
  padding: 15px 36px 15px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  list-style: none;
}
.faq-group summary:hover { color: var(--brand-deep); }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after {
  content: "+";
  position: absolute;
  top: 13px;
  right: 2px;
  color: var(--brand-deep);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: transform 160ms ease;
}
.faq-group details[open] summary::after { transform: rotate(45deg); }
.faq-group details p { margin: -2px 36px 16px 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }
.faq-group details p a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.cta-band {
  margin-top: 72px;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-radius: 18px;
  background: var(--brand-deep);
  color: white;
}
.cta-band h2 { margin: 0; color: white; font-size: 28px; }
.cta-band p { margin: 8px 0 0; color: #cfe3d2; }
.cta-band .button.primary { background: white; color: var(--brand-deep); }
.cta-band .button.primary:hover { background: var(--tint); }

.topup-mode .home-hero { display: block; padding-bottom: 8px; }
.topup-mode .home-hero h1 { font-size: 38px; }
.topup-mode .hero-visual, .topup-mode .hero-points { display: none; }
.topup-mode .home-section.purchase-section { padding-top: 20px; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.footer-brand p { max-width: 320px; margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-col h2 { margin: 0 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); letter-spacing: 0.04em; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: var(--muted); font-size: 14px; }
.footer-col a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.footer-col p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.footer-legal {
  width: min(100% - 40px, var(--content));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.footer-legal p { margin: 0; max-width: 760px; }

/* ---------- 登录、注册、领取 ---------- */
.login-view { min-height: calc(100vh - 320px); display: grid; place-items: center; padding: 16px 0; }
.login-panel {
  width: min(100%, 440px);
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.login-panel h1 { margin: 6px 0 24px; font-size: 28px; line-height: 1.25; font-weight: 800; }
.panel-intro { margin: -12px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.login-panel label, .claim-form label {
  display: block;
  margin: 14px 0 7px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 600;
}
.login-panel input, .claim-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: white;
  color: var(--ink);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.login-panel input:focus, .claim-form input:focus, .stack-form input:focus {
  border-color: var(--brand-deep);
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 162, 31, 0.18);
}
.login-panel .button { margin-top: 16px; }
.login-panel .field-action .button { margin-top: 0; }
.login-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 16px;
  margin-top: 20px;
  font-size: 14px;
}
.login-links a { color: var(--link); }
.login-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legacy-form { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.auth-note { margin: 18px 0 0; color: var(--muted); font-size: 12.5px; line-height: 1.7; }
.auth-note a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

.redeem-status-panel > p:not(.eyebrow) { margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.redeem-status-panel .spinner { display: block; margin: 0 auto; }
.redeem-status-panel .login-links { justify-content: flex-start; }
.redeem-status-panel .login-links .button { margin-top: 0; }

.claim-invalid { margin: 72px auto; max-width: 640px; }
.claim-invalid > p:not(.eyebrow) { color: var(--muted); line-height: 1.75; }
.claim-invalid-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.claim-view { padding-top: 12px; }
.claim-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 64px;
  align-items: start;
}
.claim-summary { padding-top: 16px; }
.claim-summary h1 { margin: 8px 0 22px; font-size: 38px; line-height: 1.2; font-weight: 800; }
.claim-summary > p:last-child { color: var(--muted); line-height: 1.75; }
.claim-summary dl { margin: 0; border-top: 1px solid var(--line); }
.claim-summary dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.claim-summary dt { color: var(--muted); }
.claim-summary dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.claim-form {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.claim-form label:first-child { margin-top: 0; }
.field-action { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.field-action .button { min-width: 116px; }
.field-hint { margin: 6px 0 4px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.turnstile-slot { margin-top: 16px; }
.form-message { margin: 12px 0 0; color: var(--brand-deep); font-size: 14px; }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 14px; }

/* ---------- 客户中心 ---------- */
.workspace-shell { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; align-items: start; }
.workspace-nav {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.workspace-tab {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  text-align: left;
  font: inherit;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
}
.workspace-tab:hover { background: var(--surface-soft); color: var(--ink); }
.workspace-tab.active { background: var(--tint); color: var(--brand-deep); }
.workspace-tab.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand-bright);
}
.workspace-content { min-width: 0; }
.workspace-panel { min-width: 0; }

.account-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding: 28px;
  border-radius: 16px;
  background: var(--brand-deep);
  color: white;
}
.account-heading .eyebrow { color: #bfe3c0; }
.account-heading h1 { margin: 10px 0 0; color: white; font-size: 48px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; }
.account-heading .status-pill { background: rgba(255, 255, 255, 0.12); color: white; }
.account-heading .status-pill.ok span { background: var(--brand-bright-soft); }
.account-heading .status-pill.error { background: rgba(255, 255, 255, 0.92); color: var(--danger); }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 13.5px; font-weight: 650; }
.status-pill span { width: 8px; height: 8px; border-radius: 50%; background: #9aa6a0; }
.status-pill.ok { background: var(--tint); color: var(--brand-deep); }
.status-pill.ok span { background: var(--brand-bright); }
.status-pill.error { background: var(--danger-soft); color: var(--danger); }
.status-pill.error span { background: var(--danger); }

.primary-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 0 28px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.metrics.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 24px; }
.metric { min-width: 0; position: relative; display: flex; align-items: center; gap: 14px; padding: 22px 20px; }
.metric + .metric { border-left: 1px solid var(--line); }
.metric > svg { flex: 0 0 auto; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: var(--tint); color: var(--brand-deep); }
.metric div { min-width: 0; display: grid; gap: 5px; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { min-width: 0; overflow-wrap: anywhere; font-size: 18px; font-variant-numeric: tabular-nums; }
.metric .copy-button { position: absolute; top: 50%; right: 8px; width: 34px; height: 34px; transform: translateY(-50%); }
.metric:last-child { padding-right: 48px; }

.redeem-panel {
  margin-top: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius);
  background: var(--tint);
}
.redeem-panel h2, .installer-panel h2, .usage-section h2, .developer-panel h2, .support-band h2 { margin: 6px 0 0; font-size: 20px; }
.redeem-panel .form-error { grid-column: 1 / -1; }

.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.panel-heading h1 { margin: 8px 0 8px; font-size: 34px; line-height: 1.15; font-weight: 800; }
.panel-heading > div > p:last-child { max-width: 640px; margin: 0; color: var(--muted); line-height: 1.7; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 10px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.segmented button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.segmented button.active { background: var(--brand-deep); color: white; }

.content-grid { display: grid; gap: 16px; margin-top: 24px; }
.content-grid.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.content-card { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.content-card .section-heading { align-items: center; margin-bottom: 16px; }
.content-card .section-heading h2, .content-card h2, .danger-zone h2 { margin: 6px 0 0; font-size: 19px; font-weight: 750; }
.recent-card { margin-top: 16px; }

.announcement-list { display: grid; gap: 8px; margin: 0 0 16px; }
.announcement { padding: 14px 16px; border: 1px solid #d5e3ee; border-left: 4px solid var(--info); border-radius: var(--radius-sm); background: var(--info-soft); color: #294c65; }
.announcement.warning { border-color: #ecc9c4; border-left-color: var(--danger); background: var(--danger-soft); color: #7f3631; }
.announcement.maintenance { border-color: #ecdab9; border-left-color: var(--warning); background: var(--warning-soft); color: #6f4810; }
.announcement strong { display: block; margin-bottom: 4px; }
.announcement p { margin: 0; font-size: 14px; line-height: 1.6; }

.bar-chart { min-height: 154px; display: flex; align-items: flex-end; gap: 4px; padding-top: 14px; overflow: hidden; }
.bar-column { min-width: 4px; flex: 1 1 0; display: grid; align-content: end; gap: 6px; height: 140px; }
.bar-column span { display: block; min-height: 2px; border-radius: 4px 4px 0 0; background: var(--brand-deep); }
.bar-column:hover span { background: var(--brand-bright); }
.bar-column small { overflow: hidden; color: var(--muted); font-size: 9px; text-align: center; white-space: nowrap; }
.model-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.model-chip { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }

.record-list { border-top: 1px solid var(--line); }
.record-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(100px, 0.8fr) auto; gap: 16px; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); }
.record-row:last-child { border-bottom: 0; }
.record-row > div { min-width: 0; }
.record-row strong { display: block; overflow-wrap: anywhere; font-size: 14px; }
.record-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.record-row .record-meta { color: var(--muted); font-size: 13px; text-align: right; }
.record-row .record-amount { min-width: 82px; font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.record-row .credit { color: var(--brand-deep); }
.record-row .debit { color: var(--danger); }
.record-list.detailed .record-row { grid-template-columns: minmax(150px, 1.3fr) minmax(140px, 1fr) minmax(160px, 1.1fr) auto; }
.distribution-list { display: grid; gap: 14px; }
.distribution-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
.distribution-row strong { overflow-wrap: anywhere; font-family: "Cascadia Mono", Consolas, monospace; font-size: 12px; }
.distribution-row span { color: var(--muted); font-size: 12px; }
.distribution-track { grid-column: 1 / -1; height: 8px; overflow: hidden; border-radius: 99px; background: var(--surface-soft); }
.distribution-track i { display: block; height: 100%; border-radius: inherit; background: var(--brand-deep); }
.empty-state { padding: 24px 0; color: var(--muted); border-top: 1px solid var(--line); }
.content-card .empty-state { border-top: 0; text-align: center; }

.balance-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  padding: 24px 26px;
  border-radius: 16px;
  background: var(--brand-deep);
  color: white;
}
.balance-banner span { color: #bfe3c0; font-size: 13px; }
.balance-banner strong { font-size: 32px; font-variant-numeric: tabular-nums; }
.balance-banner small { margin-left: auto; color: #bfe3c0; }
.balance-banner b { color: white; }

.installer-panel {
  margin-bottom: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.installer-panel p:last-child { margin: 7px 0 0; color: var(--muted); }
.installer-panel > div:first-child { flex: 1 1 320px; min-width: 0; overflow-wrap: anywhere; }
.installer-actions { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: end; gap: 10px; max-width: 100%; }
.installer-architecture { display: grid; gap: 5px; color: var(--muted); font-size: 11.5px; font-weight: 700; }
.installer-architecture select {
  min-width: 150px;
  height: 44px;
  padding: 0 28px 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
}
.installer-actions .button { min-width: 92px; text-align: center; }

.compatibility-installer { margin-top: 16px; }
.compatibility-installer > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.compatibility-installer > summary::-webkit-details-marker { display: none; }
.compatibility-installer > summary span:first-child { display: grid; gap: 4px; }
.compatibility-installer > summary small { color: var(--muted); font-weight: 500; }
.compatibility-badge { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-soft); color: var(--muted); font-size: 12px; }
.compatibility-steps { display: grid; gap: 12px; margin: 18px 0 12px; padding: 0; list-style: none; }
.compatibility-steps li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.compatibility-steps p { margin: 5px 0 0; color: var(--muted); }

.usage-section, .developer-panel { padding: 36px 0 12px; }
.usage-list { border-top: 1px solid var(--line); }
.usage-row { display: grid; grid-template-columns: minmax(100px, 1fr) auto auto; gap: 28px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.usage-row time { color: var(--muted); font-variant-numeric: tabular-nums; }
.usage-row span { color: var(--muted); font-size: 14px; }
.usage-row strong { min-width: 92px; text-align: right; font-variant-numeric: tabular-nums; }

.developer-panel {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.detail-list { margin: 0; border-top: 1px solid var(--line); }
.detail-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.detail-list dt { color: var(--muted); font-size: 13.5px; }
.detail-list dd { margin: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 14.5px; font-weight: 600; }
#apiBaseUrl, #keyLast4 { font-family: "Cascadia Mono", Consolas, monospace; font-size: 13.5px; font-weight: 500; }
.api-key-value {
  width: 100%;
  min-width: 0;
  height: 44px;
  margin: 8px 0 12px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
}
.api-key-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.developer-panel label { display: block; margin-top: 18px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }

.stack-form { display: grid; gap: 8px; }
.stack-form label { margin-top: 5px; color: var(--ink-soft); font-size: 13.5px; font-weight: 600; }
.stack-form input { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: white; }
.stack-form .button { margin-top: 8px; }
.danger-zone {
  margin-top: 18px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px solid #ecc9c4;
  border-radius: var(--radius);
  background: #fffafa;
}
.danger-zone p:last-child { max-width: 620px; margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

.support-band {
  margin-top: 32px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}
.support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  max-width: min(90vw, 480px);
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-lift);
  font-size: 14px;
}

/* ---------- 公开文档页（定价、条款、隐私、退款、关于） ---------- */
.doc-page { padding-top: 36px; }
.doc-hero { max-width: 760px; padding: 12px 0 36px; }
.doc-hero h1 { margin: 10px 0 0; font-size: 42px; line-height: 1.2; font-weight: 800; }
.doc-hero p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.doc-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; }
.doc-toc { position: sticky; top: 92px; padding: 6px 0; border-left: 2px solid var(--line); }
.doc-toc p { margin: 0 0 8px 16px; color: var(--ink); font-size: 13px; font-weight: 700; }
.doc-toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.doc-toc a { display: block; padding: 5px 0 5px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.doc-toc a:hover { border-left-color: var(--brand-bright); color: var(--brand-deep); }
.prose { max-width: 760px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.85; }
.prose h2 { margin: 44px 0 12px; padding-top: 4px; font-size: 22px; line-height: 1.35; font-weight: 800; scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 750; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 1.4em; }
.prose li { margin: 4px 0; }
.prose li::marker { color: var(--brand-deep); }
.prose { overflow-wrap: break-word; }
.prose a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose strong { color: var(--ink); }
.prose table { width: 100%; margin: 6px 0 20px; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { color: var(--ink); background: var(--surface-soft); font-weight: 700; }
.prose .note {
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid var(--tint-strong);
  border-radius: var(--radius-sm);
  background: var(--tint);
  color: var(--ink-soft);
  font-size: 14.5px;
}
.pending, .prose .pending {
  padding: 1px 6px;
  border-radius: 5px;
  background: #fff3c4;
  color: #6b4a00;
  font-weight: 700;
}

/* 付款方式选择弹窗：两个收款渠道在官网内以“付款方式”呈现；手机上是底部抽屉 */
.payment-sheet { box-sizing: border-box; width: min(440px, calc(100vw - 32px)); max-width: calc(100vw - 32px); padding: 0; border: 0; border-radius: 16px; background: var(--surface); color: var(--ink); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18); }
.payment-sheet::backdrop { background: rgba(16, 24, 18, 0.45); }
.payment-sheet-inner { display: grid; gap: 18px; margin: 0; padding: 24px; }
.payment-sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.payment-sheet-head h2 { margin: 0; font-size: 20px; }
.payment-sheet-summary { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.payment-sheet-summary b { color: var(--ink); font-size: 15px; font-weight: 700; }
.sheet-close { flex: none; width: 36px; height: 36px; border: 1px solid #e3e7e2; border-radius: 50%; background: var(--surface); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.sheet-close:hover { border-color: var(--brand-deep); color: var(--brand-deep); }
.sheet-close:focus:not(:focus-visible) { outline: none; box-shadow: none; }
.sheet-close:focus-visible { outline: 2px solid var(--brand-deep); outline-offset: 2px; box-shadow: none; }
.payment-sheet:focus { outline: none; }
.payment-options { display: grid; gap: 12px; }
.payment-option { box-sizing: border-box; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 68px; padding: 16px 18px; border: 1px solid #e3e7e2; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.payment-option::after { content: "\203A"; margin-left: auto; padding-left: 8px; color: #9aa49c; font-size: 24px; line-height: 1; }
.payment-option:hover:not(:disabled), .payment-option:focus-visible { border-color: var(--brand-deep); box-shadow: 0 0 0 3px rgba(36, 102, 51, 0.10); outline: none; }
.payment-option:disabled { cursor: not-allowed; }
.payment-option:disabled::after { content: none; }
.payment-option:disabled .pay-mark { opacity: .45; filter: grayscale(.6); }
.payment-option:disabled .pay-copy strong { color: #6b756d; }
.payment-option:disabled .pay-copy small { color: #8a948c; }
.pay-mark { flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 18px; }
.pay-mark svg { width: 24px; height: 24px; }
.pay-mark.wechat { background: #07c160; }
.pay-mark.alipay { position: relative; background: #1677ff; }
.pay-mark-badge { position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border: 2px solid var(--surface); border-radius: 50%; background: #07c160; }
.payment-sheet-fine { text-wrap: pretty; }
.payment-sheet-fine .nowrap { white-space: nowrap; }
.pay-copy em.muted-tag { color: var(--muted); background: var(--surface-soft); }
.payment-option:disabled .pay-mark-badge { display: none; }
.pay-copy { display: grid; gap: 3px; min-width: 0; }
.pay-copy strong { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.pay-copy em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--brand-deep); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.pay-copy small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.payment-sheet-fine { margin: 0; color: #6b756d; font-size: 12px; line-height: 1.6; }
.pay-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.pay-steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; }
.pay-step-index { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tint); color: var(--brand-deep); font-size: 13px; font-weight: 700; }
.pay-steps strong { display: block; font-size: 15px; line-height: 26px; }
.pay-steps small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.pay-email { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 8px 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.pay-email code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: inherit; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.pay-copy-email { flex: none; padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--brand-deep); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.pay-copy-email:hover { border-color: var(--brand-deep); }
.pay-cashier { width: 100%; }
.payment-sheet-alt { margin: -6px 0 0; text-align: center; font-size: 14px; }
.payment-sheet-alt .link-button { font: inherit; font-weight: 500; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }
.payment-sheet-alt + .payment-sheet-fine { text-align: center; }
@media (max-width: 520px) {
  .payment-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; }
  .payment-sheet-inner { padding: 20px 18px calc(28px + env(safe-area-inset-bottom)); }
}
.pricing-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 4px 0 28px; }
.pricing-grid .catalog-item { min-height: 0; grid-template-rows: auto auto auto auto 1fr; }
.pricing-grid .catalog-item p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.pricing-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 40px; }
.pricing-facts article { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pricing-facts strong { display: block; font-size: 16px; }
.pricing-facts p { margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.story-number {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 22px;
}
.story-number span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.story-number span small { display: block; margin-top: -6px; color: var(--brand-deep); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.swatches { display: flex; flex-wrap: wrap; gap: 14px; margin: 6px 0 20px; }
.swatch { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.swatch i { width: 38px; height: 38px; border-radius: 10px; }
.swatch.deep i { background: var(--brand-deep); }
.swatch.bright i { background: var(--brand-bright); }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { max-width: 520px; }
  .catalog-list, .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .value-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; gap: 20px; }
  .doc-toc { position: static; }
}

@media (max-width: 760px) {
  .page { padding-top: 24px; }
  .topbar-inner { gap: 12px; }
  .home-hero { padding-top: 12px; }
  .home-hero h1 { font-size: 38px; }
  #catalogIntro { font-size: 16px; }
  .hero-visual::before { inset: 16px 0 -12px 16px; }
  .home-section { padding-top: 44px; }
  .home-section + .home-section { margin-top: 40px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-heading h2 { font-size: 28px; }
  .campaign-notice { align-items: flex-start; flex-direction: column; }
  .campaign-price { text-align: left; }
  .task-list { grid-template-columns: 1fr; }
  .faq-groups { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 28px; }
  .workspace-shell { grid-template-columns: 1fr; gap: 20px; }
  .workspace-nav { position: static; display: flex; overflow-x: auto; padding: 4px; }
  .workspace-tab { flex: 0 0 auto; text-align: center; white-space: nowrap; }
  .workspace-tab.active::before { display: none; }
  .panel-heading { align-items: flex-start; flex-direction: column; }
  .toolbar { width: 100%; justify-content: space-between; }
  .account-heading { align-items: flex-start; flex-direction: column; padding: 22px; }
  .account-heading h1 { font-size: 40px; }
  .metrics { grid-template-columns: 1fr; }
  .metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric + .metric { border-left: 0; border-top: 1px solid var(--line); }
  .metrics.four .metric:nth-child(2n) { border-left: 1px solid var(--line); }
  .metrics.four .metric:nth-child(2) { border-top: 0; }
  .content-grid.two-columns { grid-template-columns: 1fr; }
  .record-list.detailed .record-row { grid-template-columns: minmax(0, 1fr) auto; }
  .record-list.detailed .record-row > :nth-child(2),
  .record-list.detailed .record-row > :nth-child(3) { grid-column: 1; }
  .record-list.detailed .record-row > :last-child { grid-column: 2; grid-row: 1 / span 3; }
  .claim-layout { grid-template-columns: 1fr; gap: 28px; }
  .claim-summary h1 { font-size: 32px; }
  .redeem-panel { grid-template-columns: 1fr; }
  .redeem-panel .button { width: 100%; }
  .installer-panel { align-items: flex-start; flex-direction: column; }
  .installer-panel > div:first-child { flex: 0 1 auto; width: 100%; }
  .installer-actions { width: 100%; }
  .installer-actions .button { flex: 1 1 0; }
  .compatibility-steps li { align-items: stretch; grid-template-columns: 1fr; }
  .compatibility-steps .button { justify-content: center; width: 100%; }
  .support-band, .danger-zone { align-items: flex-start; flex-direction: column; }
  .pricing-facts { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-hero h1 { font-size: 32px; }
}

@media (max-width: 480px) {
  .topbar-inner, .page, .footer-inner, .footer-legal { width: min(100% - 28px, var(--content)); }
  .topbar-inner { height: 60px; }
  .brand-copy small { display: none; }
  .header-link { padding: 8px; }
  .page { padding-bottom: 56px; }
  .home-hero h1 { font-size: 32px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .catalog-list { grid-template-columns: 1fr; }
  .pricing-grid, .value-list, .process-list { grid-template-columns: 1fr; }
  .login-panel { padding: 26px 20px; }
  .claim-form { padding: 22px 18px; }
  .field-action { grid-template-columns: 1fr; }
  .field-action .button { width: 100%; }
  .account-heading h1 { font-size: 36px; }
  .panel-heading h1 { font-size: 28px; }
  .primary-actions { display: grid; grid-template-columns: 1fr; }
  .faq-group summary { padding-right: 28px; }
  .faq-group details p { margin-right: 12px; }
  .plain-band { padding: 22px 18px; }
  .button { width: 100%; }
  .topbar .button { width: auto; }
  .metric { padding-left: 16px; padding-right: 16px; }
  .metric:last-child { padding-right: 48px; }
  .metrics.four { grid-template-columns: 1fr; }
  .metrics.four .metric:nth-child(2n) { border-left: 0; }
  .metrics.four .metric:nth-child(2) { border-top: 1px solid var(--line); }
  .usage-row { grid-template-columns: 1fr auto; gap: 8px 16px; }
  .usage-row span { grid-column: 1; }
  .usage-row strong { grid-column: 2; grid-row: 1 / span 2; }
  .detail-list > div { grid-template-columns: 1fr; gap: 6px; }
  .record-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .record-row .record-meta { grid-column: 1; text-align: left; }
  .record-row .record-amount { grid-column: 2; grid-row: 1 / span 2; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .balance-banner small { width: 100%; margin-left: 0; }
  .installer-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .installer-architecture select { width: 100%; }
  .installer-actions .button { width: 100%; min-height: 44px; }
  .footer-inner { grid-template-columns: 1fr; }
  .prose table { font-size: 13.5px; }
  .prose th, .prose td { padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .spinner { animation: none; }
  * { transition: none !important; }
}

.topup-mode .cta-band { display: none; }

/* ---------- 第二轮修正（设计审查 round2） ---------- */
.button-label { font-size: 14px; font-weight: 600; }
.topbar-actions .icon-button { width: auto; min-width: 38px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); }
#pricingStatus, #catalogEmpty {
  margin: 0 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 14.5px;
}
.workspace-panel > .metrics + .content-card,
.workspace-panel > .metrics + .content-grid,
.workspace-panel > .content-grid + .content-card,
.workspace-panel > .content-card + .content-card,
.workspace-panel > .installer-panel + .content-card { margin-top: 16px; }
.primary-actions { padding: 20px 0 24px; }
.bar-chart { justify-content: flex-start; border-bottom: 1px solid var(--line); }
.bar-column { max-width: 28px; }
.bar-column small { font-size: 11px; }
.developer-panel .section-heading h2 { margin: 6px 0 0; font-size: 19px; font-weight: 750; }
.story-number { display: grid; grid-template-columns: repeat(7, minmax(0, 46px)); gap: 8px; }
.value-list strong > span { display: grid; place-items: center; color: var(--brand-deep); }
.value-list strong > span::after { content: none; }
.value-list strong > span svg { width: 18px; height: 18px; }
.field-action:has(> .button.hidden) { grid-template-columns: 1fr; gap: 0; }
.auth-note a { text-decoration: none; font-weight: 600; white-space: nowrap; }
.auth-note a:hover { text-decoration: underline; }
.plain-band .task-list + .fine-print { margin-top: 14px; }
.commerce-grid.content-grid.two-columns { grid-template-columns: 1fr; }
.footer-legal p { max-width: 820px; }
.nowrap { white-space: nowrap; }
.support-band p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.legacy-toggle-row { margin-top: 14px; font-size: 13px; }
.doc-narrow { max-width: 820px; margin-inline: auto; }
.content-grid.two-columns { align-items: start; }
.login-links .link-button { color: var(--muted); font-size: 13px; }

@media (max-width: 980px) {
  .topbar-inner { height: auto; min-height: 60px; flex-wrap: wrap; row-gap: 0; padding-top: 10px; }
  .site-nav { display: flex; order: 3; width: 100%; gap: 2px; margin: 0 0 0 -10px; padding: 2px 0 8px; overflow-x: auto; scrollbar-width: none; }
  .site-nav a { padding: 6px 10px; font-size: 14px; white-space: nowrap; }
  .home-section, .purchase-section, .prose h2 { scroll-margin-top: 110px; }
}
@media (max-width: 760px) {
  .content-card .section-heading { align-items: flex-start; }
  .developer-panel .section-heading h2 { font-size: 19px; }
  .workspace-nav { scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .workspace-tab { padding: 0 12px; font-size: 14px; }
}
@media (max-width: 480px) {
  .story-number { gap: 5px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .story-number span { width: auto; height: 52px; font-size: 22px; }
  .metrics.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics.four .metric:nth-child(2n) { border-left: 1px solid var(--line); }
  .metrics.four .metric:nth-child(2) { border-top: 0; }
  .metrics.four .metric:nth-child(n+3) { border-top: 1px solid var(--line); }
  .metric { padding: 16px 14px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-col a { display: inline-block; padding: 4px 0; }
}
.doc-layout > * { min-width: 0; }
@media (max-width: 760px) {
  .prose table { display: block; overflow-x: auto; }
}

/* ---------- 第三轮修正（手机复查 round4） ---------- */
.doc-toc { scroll-margin-top: 110px; }
.doc-toc summary { cursor: pointer; margin: 0 0 8px; padding-left: 16px; color: var(--ink); font-size: 13px; font-weight: 700; list-style: none; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-top-link { display: none; }
.login-links .link-button { flex-basis: 100%; text-align: left; }
#catalogEmpty .text-link { display: inline; }
@media (max-width: 980px) {
  .doc-toc { padding: 10px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
  .doc-toc summary { margin: 0; padding: 4px 16px; }
  .doc-toc summary::after { content: "展开"; margin-left: 8px; color: var(--link); font-weight: 600; }
  .doc-toc details[open] summary::after { content: "收起"; }
  .doc-toc details[open] ol { margin-top: 8px; }
  .doc-toc a { margin-left: 0; }
  .doc-top-link {
    position: fixed; right: 14px; bottom: 16px; z-index: 20;
    display: inline-flex; align-items: center; height: 38px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 999px;
    background: var(--surface); box-shadow: var(--shadow);
    color: var(--brand-deep); font-size: 13.5px; font-weight: 700;
    opacity: 0; visibility: hidden; transform: translateY(12px); pointer-events: none;
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  }
  .doc-top-link.is-visible {
    opacity: 1; visibility: visible; transform: none; pointer-events: auto;
    transition: opacity .18s ease, transform .18s ease, visibility 0s;
  }
  body.has-doc-top-link { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .doc-top-link, .doc-top-link.is-visible { transition: none; }
}
@media (max-width: 760px) {
  .prose th, .prose td { min-width: 5em; }
  .prose th:first-child, .prose td:first-child { min-width: 6.5em; }
  .prose th { white-space: nowrap; }
  .prose td code { white-space: nowrap; }
  .prose table {
    background:
      linear-gradient(90deg, var(--bg) 30%, rgba(246, 248, 243, 0)) left center / 28px 100% no-repeat local,
      linear-gradient(270deg, var(--bg) 30%, rgba(246, 248, 243, 0)) right center / 28px 100% no-repeat local,
      radial-gradient(farthest-side at 0 50%, rgba(19, 36, 26, 0.16), transparent) left center / 12px 100% no-repeat scroll,
      radial-gradient(farthest-side at 100% 50%, rgba(19, 36, 26, 0.16), transparent) right center / 12px 100% no-repeat scroll;
  }
}

/* ---------- 第四轮修正（桌面复查 round4） ---------- */
.clause-no { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.prose h3 { color: var(--ink); }
.prose th { white-space: nowrap; }
.prose th:first-child, .prose td:first-child { min-width: 7em; }
.prose { max-width: 720px; }
.footer-legal p { text-wrap: pretty; }
.bar-column { max-width: 36px; }
.bar-column small { overflow: visible; }
.topup-mode .home-hero .eyebrow { padding: 0; border: 0; background: none; }
.topup-mode .home-hero .eyebrow::before { content: none; }
@media (max-width: 480px) {
  .topbar-actions .icon-button { padding: 0 6px; gap: 4px; }
  .button-label { font-size: 13px; }
}

/* ---------- 品牌字标：2466335（顶栏和页脚不再带副标题；small 规则留给 waffo-test 页） ---------- */
.brand-copy strong { letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.brand-copy small { font-size: 10.5px; letter-spacing: 0.06em; text-transform: none; }
@media (max-width: 480px) {
  .brand-copy small { display: block; font-size: 9.5px; letter-spacing: 0.02em; }
  .doc-top-link { height: 34px; padding: 0 12px; font-size: 13px; opacity: 0.94; }
}

/* ---------- 发布后修正（2026-11-03） ---------- */
.account-breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.account-breadcrumb a { color: var(--link); }
.account-breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.account-breadcrumb .account-breadcrumb-back { margin-left: auto; }
