/* buy.css — buy.html 样式（2026-11-08 批3-W2 原位抽取；2026-11-11 购买页改造批 C 重写）
 *
 * 改造要点：三档由静态卡片改「可选档位」，底部结算条闭合「选择→金额→按钮」。
 * 规范：室女座设计规范 v2（字号 10/12/15/20/30 五档；圆角 999/14/10/6；间距 4 基尺；
 *      按钮 §五.6 primary 44px/15px/600/radius10；过渡 .3s ease + reduced-motion 守卫）。
 * 头部 .vgp-hdr 与 --vg-* token 由 glass.css 提供，本文件只在缺失时兜底。
 */

:root {
  --b-sub: rgba(0, 0, 0, 0.04);
  --bg-base: #F5F5F7; --bg-surface: #FFFFFF; --bg-elevated: #FFFFFF;
  /* 2026-11-28 方案A: 苹果纯中性灰 + 苹果蓝 */
  --gold: #0071E3; --gold-bright: #0071E3; --gold-dim: #0071E3; --gold-glow: rgba(0, 113, 227, 0.14);
  --t1: #1D1D1F; --t2: #515154; --t3: #86868B;
  --b-subtle: rgba(0, 113, 227, 0.06); --b-line: rgba(0, 0, 0, 0.06); --b-strong: rgba(0, 113, 227, 0.22);
  --r-card: 16px; --r-btn: 10px; --r-sm: 6px;
  --f-sans: "PingFang SC", "Noto Sans SC", "Source Han Sans SC", "Inter", "Microsoft YaHei", system-ui, sans-serif;
  --f-num: "Manrope", "DIN Alternate", "Inter", "Noto Sans SC", sans-serif;
}

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

body {
  font-family: var(--f-sans); color: var(--t1);
  /* 不设 background：统一走 body.vg 机壳 + .vg-deco */
  min-height: 100vh; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 520px; margin: 0 auto; padding: 20px 16px 40px; }

/* ── 顶部提示 ── */
.notice {
  border: 1px solid var(--b-strong); border-radius: var(--r-card);
  background: var(--bg-surface); padding: 14px 16px; margin-bottom: 20px;
  font-size: 12px; line-height: 1.8; color: var(--t2);
}
.notice b { color: var(--gold); font-weight: 600; }

/* ── 标题（功能页禁衬线，§五.6） ── */
.hero { text-align: center; margin-bottom: 20px; }
.hero h1 { font-size: 20px; font-weight: 600; letter-spacing: .02em; }
.hero h1 em { font-style: normal; color: var(--gold); display: block; margin-top: 4px; font-size: 30px; }
.hero .sub { margin-top: 8px; font-size: 12px; color: var(--t2); line-height: 1.8; }

/* ── 档位卡（label 可点，隐藏原生 radio） ── */
.plans { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.plan {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; min-height: 56px;
  border: 1px solid var(--b-line); border-radius: var(--r-card);
  background: var(--bg-surface); cursor: pointer;
  transition: border-color .2s ease, background .2s ease, opacity .2s ease, transform .18s ease, box-shadow .18s ease;
}
.plan:hover { border-color: rgba(0, 113, 227, .38); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(15, 29, 64, .06); }
.plan:active { transform: scale(.99); }
.plan input[type="radio"] {
  position: absolute; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}
.plan.on { border-color: var(--gold); background: var(--b-subtle); box-shadow: 0 0 0 1px var(--gold), 0 8px 22px rgba(0, 113, 227, .10); }
.plan.dim { opacity: .58; }

.plan .radio {
  width: 18px; height: 18px; flex: 0 0 auto; border-radius: 999px;
  border: 1.5px solid rgba(0, 0, 0, .16); position: relative;
  transition: border-color .16s ease, background-color .16s ease;
}
.plan.on .radio { border-color: var(--gold); background: var(--gold); }
@keyframes vgRadioPop {
  from { transform: scale(.35); opacity: .4; }
  to { transform: scale(1); opacity: 1; }
}
.plan.on .radio::after {
  content: ""; position: absolute; inset: 3px; border-radius: 999px; background: #fff;
  animation: vgRadioPop 160ms cubic-bezier(.22, 1.25, .36, 1) both;
}

.plan .tt { flex: 1 1 auto; min-width: 0; }
.plan .tt .n { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.plan .tt .n em {
  font-style: normal; font-size: 10px; font-weight: 600;
  color: var(--gold); border: 1px solid var(--b-strong); border-radius: var(--r-sm);
  padding: 1px 6px; background: rgba(0, 113, 227, .08); white-space: nowrap;
}
.plan .tt .d { font-size: 10px; color: var(--t3); margin-top: 2px; }
.plan .pp {
  font-family: var(--f-num); font-size: 20px; font-weight: 700;
  color: var(--gold); white-space: nowrap;
}
.plan .pp small { font-size: 10px; font-weight: 400; color: var(--t3); margin-left: 2px; }

/* ── 权益清单 ── */
.perks {
  border: 1px solid var(--b-line); border-radius: var(--r-card);
  background: var(--bg-surface); padding: 14px 16px; margin-bottom: 16px;
}
.perks .h { font-size: 12px; font-weight: 600; color: var(--t2); letter-spacing: .04em; margin-bottom: 10px; }
/* 权益行与 plan 页同一套图标语言（勾/横），全站只此一种"有/无"符号 */
.perks .pk { padding: 0; }
.perks .pk::before { content: ""; flex: 0 0 auto; width: 14px; height: 14px;
  background: no-repeat center/13px 13px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230071E3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 5'/%3E%3C/svg%3E"); }
.perks .pk i { display: none; }
/* 对比三列：标签 / 完整版值 / 免费版值（2026-11-18 并入 plan 的对比后改） */
/* 四列：勾(14px) | 标签(1fr) | 完整版值 | 免费版值 —— ::before 在 grid 里也占一格，漏了它整体错位 */
.perks .pk { display:grid; grid-template-columns:14px 1fr auto auto; align-items:center; gap:10px;
  font-size:12px; color:var(--t2); line-height:1.9; }
.perks .pk b { font-weight:600; color:var(--t1); font-size:12px; text-align:right; min-width:52px; }
.perks .pk em { font-style:normal; color:var(--t3); font-size:10px; text-align:right; min-width:52px; }

/* ── 结算条 ── */
.settle {
  border: 1px solid var(--b-line); border-radius: var(--r-card);
  background: var(--bg-surface); padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(35, 40, 64, .06);
}
.settle .row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.settle .row .l { font-size: 12px; color: var(--t2); }
.settle .row .r { font-family: var(--f-num); font-size: 20px; font-weight: 700; color: var(--gold); }
.settle .row .r small { font-size: 10px; font-weight: 400; color: var(--t3); }

.perks,
.settle { position: relative; }
.perks::before,
.settle::before {
  content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 1px;
  pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent 8%, rgba(0, 113, 227, .24) 50%, transparent 92%);
}

/* ── 按钮（§五.6） ── */
.cta {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 44px; border: 0; border-radius: var(--r-btn);
  background: #0071E3; color: #fff;
  font-family: var(--f-sans); font-size: 15px; font-weight: 600;
  letter-spacing: 0; white-space: nowrap; text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 22px rgba(0, 113, 227, .26);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(0, 113, 227, .32); }
.cta:active { transform: scale(.985); opacity: .94; }

.links { display: flex; justify-content: center; gap: 20px; margin-top: 14px; }
.links a {
  font-size: 12px; color: var(--t3); text-decoration: none;
  min-height: 32px; display: inline-flex; align-items: center;
}
.links a:active { color: var(--gold); }

/* ── 其它 ── */
.card {
  border: 1px solid var(--b-line); border-radius: var(--r-card);
  background: var(--bg-surface); padding: 16px; margin-bottom: 16px;
}
.center { text-align: center; }

.note { text-align: center; font-size: 12px; color: var(--t2); line-height: 1.8; }
.note.foot { margin-top: 24px; font-size: 10px; color: var(--t3); line-height: 1.9; }

.back {
  display: flex; align-items: center; justify-content: center;
  margin-top: 12px; min-height: 40px;
  font-size: 12px; color: var(--t3); text-decoration: none;
}
.back:active { color: var(--gold); }

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