/* ============================================================
   墨白AI · GPT 官方直充 — 现代设计系统
   参照 ui-ux-design 规范：8px 间距 · 8px 字阶 · auto-fit 网格
   微交互 transform/opacity · WCAG 2.2 对比度已实测
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* 色板 */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --primary: #0F766E;
  --primary-hover: #0C625B;
  --primary-active: #0A524C;
  --primary-soft: #E7F5F3;
  --accent: #14B8A6;
  --accent-2: #0E7490;
  --success: #047857;
  --success-soft: #ECFDF5;
  --warning: #B45309;
  --warning-soft: #FFFBEB;
  --danger: #DC2626;
  --focus: #0F766E;
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* 暗色 Hero */
  --hero-bg: #0F172A;
  --hero-ink: #FFFFFF;
  --hero-ink-2: #CBD5E1;
  --hero-accent: #5EEAD4;

  /* 8px 间距阶梯 */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  --s-7: 64px;

  /* 圆角 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .08);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .12);
  --shadow-pop: 0 24px 64px rgba(15, 23, 42, .22);

  --font-ui: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC",
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1200px;
  --topbar-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 24px;
  letter-spacing: 0;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, fieldset, legend { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:disabled { cursor: not-allowed; }
input { font: inherit; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
strong { font-weight: 600; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s-3);
}

/* 焦点可见（WCAG 2.2，3:1） */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ============================================================
   Hero（暗色电影感）
   ============================================================ */
.hero-shell {
  position: relative;
  overflow: hidden;
  background: radial-gradient(1200px 600px at 20% -10%, #134E4A 0%, transparent 60%),
    radial-gradient(1000px 500px at 85% 10%, #155E75 0%, transparent 55%),
    var(--hero-bg);
  color: var(--hero-ink);
}
.hero-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .35;
}
.orb--a { width: 420px; height: 420px; left: -120px; top: -80px; background: #14B8A6; }
.orb--b { width: 380px; height: 380px; right: -100px; top: 40px; background: #0EA5E9; opacity: .28; }
.orb--c { width: 300px; height: 300px; left: 40%; bottom: -140px; background: #2DD4BF; opacity: .22; }

/* 顶栏 */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(15, 23, 42, .72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, .16);
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: var(--topbar-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand__mark { display: inline-flex; }
.brand__name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--hero-ink);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-inline: auto;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--hero-ink-2);
  border-radius: var(--r-full);
  transition: color .2s ease, background-color .2s ease;
}
.nav__link:hover { color: var(--hero-ink); background: rgba(255, 255, 255, .08); }
.nav__link.is-active { color: var(--hero-ink); background: rgba(255, 255, 255, .12); font-weight: 600; }

.topbar__right { display: flex; align-items: center; gap: var(--s-2); flex-shrink: 0; }
.btn-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--hero-bg);
  background: var(--hero-accent);
  border-radius: var(--r-full);
  transition: transform .2s ease, filter .2s ease;
}
.btn-pill:hover { transform: scale(1.04); filter: brightness(1.06); }
.btn-pill:active { transform: scale(.96); }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--hero-ink);
  border-radius: var(--r-md);
}
.nav-toggle:hover { background: rgba(255, 255, 255, .08); }

/* Hero 内容 */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hero-accent);
  background: rgba(94, 234, 212, .1);
  border: 1px solid rgba(94, 234, 212, .25);
  border-radius: var(--r-full);
}
.hero__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.hero__title {
  margin-top: var(--s-3);
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #FFFFFF 30%, #99F6E4 70%, #5EEAD4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin-top: var(--s-2);
  font-size: 18px;
  line-height: 28px;
  color: var(--hero-ink-2);
}
.hero__actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-4);
  flex-wrap: wrap;
  justify-content: center;
}
.hero__points {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-6);
  flex-wrap: wrap;
  justify-content: center;
}
.hpoint {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
  padding: var(--s-2) var(--s-3);
  text-align: left;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(148, 163, 184, .18);
  border-radius: var(--r-lg);
  transition: transform .2s ease, background-color .2s ease;
}
.hpoint:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .1); }
.hpoint__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--hero-accent);
  background: rgba(94, 234, 212, .12);
  border-radius: var(--r-md);
}
.hpoint__text { display: flex; flex-direction: column; }
.hpoint__text strong { font-size: 14px; font-weight: 600; color: var(--hero-ink); }
.hpoint__text em { font-style: normal; font-size: 12px; line-height: 18px; color: var(--hero-ink-2); }

/* ---------- CTA 按钮 ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-full);
  transition: transform .2s ease, filter .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn-cta--primary {
  color: #fff;
  background: linear-gradient(160deg, var(--primary), var(--primary-active));
  box-shadow: 0 8px 24px rgba(15, 118, 110, .35);
}
.btn-cta--primary:hover { transform: scale(1.04); filter: brightness(1.08); }
.btn-cta--primary:active { transform: scale(.96); transition-duration: .08s; }
.btn-cta--ghost {
  color: var(--hero-ink);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(203, 213, 225, .35);
}
.btn-cta--ghost:hover { background: rgba(255, 255, 255, .12); transform: scale(1.04); }
.btn-cta--ghost:active { transform: scale(.96); }
.btn-cta--block { width: 100%; }
.btn-cta:disabled { filter: grayscale(.6) opacity(.6); transform: none; }

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: var(--r-full);
  transition: background-color .2s ease, transform .2s ease;
}
.btn-mini:hover { background: var(--primary-soft); transform: scale(1.04); }
.btn-mini:active { transform: scale(.95); }
.btn-mini--soft {
  border-color: transparent;
  background: var(--primary-soft);
}

/* ============================================================
   套餐区
   ============================================================ */
.products {
  padding-top: var(--s-7);
  padding-bottom: var(--s-7);
}
.section-head {
  text-align: center;
  margin-bottom: var(--s-6);
}
.section-head__title {
  font-size: 36px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.section-head__sub {
  margin-top: var(--s-1);
  font-size: 16px;
  color: var(--ink-2);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-3);
  align-items: stretch;
}

/* ---------- 套餐卡 ---------- */
.pcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.pcard__accent {
  height: 4px;
  background: linear-gradient(90deg, var(--tint-a, var(--primary)), var(--tint-b, var(--accent)));
}

.pcard__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-3);
}
.pcard__top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.pcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  color: var(--tint-a, var(--primary));
  background: color-mix(in srgb, var(--tint-a, var(--primary)) 10%, white);
  border-radius: var(--r-md);
}
.pcard__name {
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  color: var(--ink);
}
.pcard__spec {
  margin-top: 2px;
  font-size: 13px;
  line-height: 18px;
  color: var(--ink-3);
}

.pcard__price-row {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-top: var(--s-3);
}
.pcard__cur {
  font-size: 20px;
  font-weight: 700;
  color: var(--tint-a, var(--primary));
}
.pcard__price {
  font-size: 40px;
  line-height: 44px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--tint-a, var(--primary));
  font-variant-numeric: tabular-nums;
}
.pcard__per {
  margin-left: 6px;
  font-size: 13px;
  color: var(--ink-3);
}

.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: var(--s-2);
}
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 500;
  border-radius: var(--r-full);
}
.tag--ship { color: var(--primary); background: var(--primary-soft); }
.tag--keep { color: var(--success); background: var(--success-soft); }
.tag--fast { color: var(--warning); background: var(--warning-soft); }

.pcard__feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--s-3) 0;
}
.pcard__feat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 22px;
  color: var(--ink-2);
}
.pcard__check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
}

/* CTA 行：查看详情 + 自助下单 并排 */
.pcard__actions {
  display: flex;
  gap: var(--s-1);
  margin-top: auto;
}
.pcard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 var(--s-1);
  font-size: 15px;
  font-weight: 700;
  color: var(--tint-a, var(--primary));
  background: color-mix(in srgb, var(--tint-a, var(--primary)) 8%, white);
  border: 1px solid color-mix(in srgb, var(--tint-a, var(--primary)) 35%, white);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: color .2s ease, background-color .2s ease, transform .2s ease, filter .2s ease;
}
.pcard__cta:hover {
  color: #fff;
  background: linear-gradient(160deg, var(--tint-a, var(--primary)), var(--tint-b, var(--primary-active)));
  transform: scale(1.03);
}
.pcard__cta:active { transform: scale(.96); transition-duration: .08s; }
.pcard__cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.pcard__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 var(--s-1);
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--primary);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: background-color .2s ease, transform .2s ease;
}
.pcard__order:hover { background: var(--primary-soft); transform: scale(1.03); }
.pcard__order:active { transform: scale(.96); transition-duration: .08s; }
.pcard__order:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* 弹窗内商品详情区 */
.dialog__detail {
  margin-top: var(--s-2);
  padding: var(--s-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.dialog__detail-title {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.dialog__detail p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 21px;
  color: var(--ink-2);
}
.dialog__detail p:last-child { margin-bottom: 0; }

/* 推荐卡 */
.pcard--featured {
  border-color: transparent;
  box-shadow: 0 0 0 2px var(--primary), var(--shadow-lg);
}
.pcard--featured .pcard__accent {
  background: linear-gradient(90deg, #14B8A6, #0EA5E9);
}
.pcard__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 26px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--hero-bg);
  background: linear-gradient(120deg, #FDE68A, #F59E0B);
  border-radius: var(--r-full);
  box-shadow: 0 4px 12px rgba(245, 158, 11, .4);
}

/* 商品详情（折叠） */
.card__detail {
  border-top: 1px solid var(--border);
  padding-top: var(--s-1);
  margin-top: var(--s-2);
}
.card__detail-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.card__detail-toggle::-webkit-details-marker { display: none; }
.card__detail-toggle svg { transition: transform .2s ease; }
.card__detail[open] .card__detail-toggle svg { transform: rotate(180deg); }
.card__detail-body { padding: 0 0 var(--s-1); }
.card__detail-body p {
  font-size: 13px;
  line-height: 22px;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.card__detail-body p:last-child { margin-bottom: 0; }

/* ---------- 骨架屏 ---------- */
.sk-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.sk {
  border-radius: var(--r-sm);
  background: linear-gradient(100deg, #E2E8F0 30%, #F1F5F9 50%, #E2E8F0 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.sk--title { height: 28px; width: 60%; }
.sk--line { height: 16px; width: 100%; }
.sk--price { height: 40px; width: 45%; }
.sk--btn { height: 48px; width: 100%; border-radius: var(--r-full); }
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .5s ease, transform .5s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   页脚（暗色）
   ============================================================ */
.footer {
  background: var(--hero-bg);
  color: var(--hero-ink-2);
  padding: var(--s-6) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
.footer__name { font-size: 14px; font-weight: 600; color: var(--hero-ink); }
.footer__note { font-size: 12px; line-height: 18px; margin-top: 2px; }
.footer__domain {
  color: var(--hero-accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.footer__domain:hover { border-bottom-color: var(--hero-accent); }
.footer__links {
  display: flex;
  gap: var(--s-3);
}
.footer__links a,
.footer__links button {
  font-size: 13px;
  color: var(--hero-ink-2);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}
.footer__links a:hover,
.footer__links button:hover { color: var(--hero-accent); }

/* ============================================================
   悬浮客服
   ============================================================ */
.cs-float {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 148px;
  padding: var(--s-2);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
.cs-float__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--ink-3);
  border-radius: var(--r-sm);
}
.cs-float__close:hover { color: var(--ink); background: var(--bg); }
.cs-float__title {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}
.cs-float__qr {
  padding: 6px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.cs-float__label {
  font-size: 12px;
  color: var(--ink-3);
}
.cs-float-reopen {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  color: #fff;
  background: linear-gradient(160deg, var(--primary), var(--primary-active));
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transition: transform .2s ease;
}
.cs-float-reopen:hover { transform: translateY(-50%) scale(1.06); }
.cs-float-reopen:active { transform: translateY(-50%) scale(.95); }

/* ============================================================
   弹窗 / 遮罩
   ============================================================ */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(15, 23, 42, .55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog {
  position: fixed;
  z-index: 60;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(440px, calc(100vw - 24px));
  max-height: min(88vh, 760px);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-pop);
  animation: dialog-in .25s ease;
}
@keyframes dialog-in {
  from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)) scale(.97); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.dialog--wide { width: min(600px, calc(100vw - 24px)); }
.dialog--detail {
  width: min(880px, calc(100vw - 24px));
  max-height: min(92vh, 880px);
}
.dialog__body--split {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: var(--s-2);
  align-items: start;
}
.dialog__col { min-width: 0; display: flex; flex-direction: column; gap: var(--s-2); }
.dialog__col--side .qr-pay { margin-bottom: 0; }
.dialog__col--side .dialog__actions { margin-top: 0; }
@media (max-width: 720px) {
  .dialog__body--split { grid-template-columns: 1fr; }
}
.dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-3) var(--s-1);
  flex-shrink: 0;
}
.dialog__title {
  font-size: 18px;
  line-height: 26px;
  font-weight: 700;
}
.dialog__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink-2);
  border-radius: var(--r-md);
}
.dialog__close:hover { background: var(--bg); color: var(--ink); }
.dialog__body {
  padding: 0 var(--s-3) var(--s-3);
  overflow-y: auto;
  overflow-x: hidden;
}
.dialog__actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.dialog__actions > * { flex: 1; }

/* 订单摘要 */
.order-summary {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s-2);
  margin-bottom: var(--s-3);
}
.order-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-2);
  padding: 6px 0;
}
.order-summary__label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.order-summary__value {
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}
.order-summary__value--price {
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* 二维码区 */
.qr-pay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: var(--s-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-2);
}
.qr-pay__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.qr-pay__box {
  /* 200px 码图 + 20px 内边距 + 2px 边框 = 222px；空间不足时随容器收缩 */
  width: min(222px, 100%);
  padding: 10px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  line-height: 0;
}
.qr-pay__box img {
  display: block;
  width: 100%;
  height: auto;
}
.qr-pay__hint {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  text-align: center;
}
.qr-pay__note {
  font-size: 12px;
  line-height: 18px;
  color: var(--ink-3);
  text-align: center;
}

.qr-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-2);
}
.qr-pair .qr-pay {
  margin-bottom: 0;
  min-width: 0;
  padding: var(--s-2);
}

/* 客服微信行 */
.contact-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
}
.contact-row__label {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.contact-row__value {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  overflow-wrap: anywhere;
}

/* 面板 */
.panel-section { display: flex; flex-direction: column; gap: var(--s-3); }
.panel-lead { font-size: 14px; line-height: 22px; color: var(--ink-2); }
.notice {
  padding: var(--s-2);
  background: var(--primary-soft);
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 21px;
  color: var(--ink-2);
}
.notice strong { color: var(--ink); }

/* ============================================================
   Toast / 云端提示
   ============================================================ */
.toast {
  position: fixed;
  z-index: 80;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
  animation: dialog-in .2s ease;
}
.toast--success { border-color: var(--success); color: var(--success); }
.toast--error { border-color: var(--danger); color: var(--danger); }

.cloud-notice {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 10px var(--s-2);
  background: var(--warning-soft);
  border: 1px solid var(--warning);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-lg);
  max-width: calc(100vw - 32px);
}
.cloud-notice__text {
  font-size: 13px;
  line-height: 19px;
  color: var(--warning);
}

/* ============================================================
   响应式（576 / 768 / 992 / 1200）
   ============================================================ */
@media (max-width: 1279px) {
  .cs-float {
    right: 16px;
    top: auto;
    bottom: 16px;
    transform: none;
  }
  .cs-float-reopen {
    top: auto;
    bottom: 16px;
    right: 16px;
    transform: none;
  }
  .cs-float-reopen:hover { transform: scale(1.06); }
  .cs-float-reopen:active { transform: scale(.95); }
}

@media (max-width: 992px) {
  .hero__title { font-size: 40px; }
}

@media (max-width: 768px) {
  .nav-toggle { display: inline-flex; }
  .btn-pill { display: none; }
  .nav {
    position: fixed;
    z-index: 45;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: var(--s-2);
    background: rgba(15, 23, 42, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, .16);
    box-shadow: var(--shadow-pop);
  }
  .nav[hidden] { display: none; }
  .nav__link { justify-content: flex-start; height: 48px; }
}

@media (max-width: 576px) {
  .hero { padding-top: var(--s-5); padding-bottom: var(--s-5); }
  .hero__title { font-size: 32px; }
  .hero__sub { font-size: 16px; line-height: 24px; }
  .hero__points { flex-direction: column; width: 100%; }
  .hpoint { min-width: 0; width: 100%; }
  .hero__actions { width: 100%; flex-direction: column; }
  .hero__actions .btn-cta { width: 100%; }
  .section-head__title { font-size: 28px; line-height: 36px; }
  .pcard__price { font-size: 36px; line-height: 40px; }
  .dialog__actions { flex-direction: column-reverse; }
  .cs-float { width: 128px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .hero__title { font-size: 28px; }
  .pcard__name { font-size: 18px; line-height: 26px; }
  .pcard__price { font-size: 32px; line-height: 36px; }
}

/* 减弱动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   常见问题（FAQ）
   ============================================================ */
.faq { padding-bottom: var(--s-7); }
.faq__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-1);
  max-width: 800px;
  margin: 0 auto;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 0 var(--s-2);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-1);
  min-height: 48px;
  padding: var(--s-1) 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: "+";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 500;
  color: var(--primary);
  transition: transform .2s ease;
}
.faq__item[open] .faq__q::after { content: "−"; }
.faq__q:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.faq__a {
  margin: 0 0 var(--s-2);
  font-size: 14px;
  line-height: 24px;
  color: var(--ink-2);
}
.faq__more {
  margin: var(--s-3) 0 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}
.faq__more a { color: var(--primary); font-weight: 600; text-decoration: none; }
.faq__more a:hover { text-decoration: underline; }

/* ============================================================
   教程中心 / 文章页
   ============================================================ */
.article-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); }
.article-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--hero-bg);
}
.article-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  max-width: 880px;
  margin: 0 auto;
  padding: var(--s-1) var(--s-2);
}
.article-bar .brand__name { color: var(--hero-ink); }
.article-bar__back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--s-2);
  font-size: 14px;
  font-weight: 600;
  color: var(--hero-accent);
  text-decoration: none;
  border-radius: var(--r-full);
}
.article-bar__back:hover { background: rgba(255, 255, 255, .08); }

.article-main {
  flex: 1;
  max-width: 880px;
  width: 100%;
  margin: 0 auto;
  padding: var(--s-5) var(--s-2) var(--s-7);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: var(--s-2);
  font-size: 12px;
  color: var(--ink-3);
}
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--primary); }

.article-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 40px;
  letter-spacing: -.02em;
  color: var(--ink);
  margin: 0 0 var(--s-1);
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: var(--s-4);
}

.prose { font-size: 15px; line-height: 26px; color: var(--ink-2); }
.prose h2 {
  font-size: 22px;
  line-height: 30px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
  margin: var(--s-5) 0 var(--s-1);
}
.prose h3 {
  font-size: 17px;
  line-height: 26px;
  font-weight: 600;
  color: var(--ink);
  margin: var(--s-3) 0 6px;
}
.prose p { margin: 0 0 var(--s-2); }
.prose ul, .prose ol { margin: 0 0 var(--s-2); padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--primary); font-weight: 600; text-decoration: none; }
.prose a:hover { text-decoration: underline; }
.prose blockquote {
  margin: var(--s-2) 0;
  padding: var(--s-1) var(--s-2);
  border-left: 3px solid var(--primary);
  background: var(--primary-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--s-2);
  font-size: 14px;
  line-height: 22px;
}
.prose th, .prose td {
  padding: 10px 12px;
  text-align: left;
  border: 1px solid var(--border);
}
.prose th { background: var(--bg); color: var(--ink); font-weight: 600; }

.article-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding: var(--s-3);
  background: var(--hero-bg);
  border-radius: var(--r-lg);
}
.article-cta__text { color: var(--hero-ink-2); font-size: 14px; line-height: 22px; }
.article-cta__text strong { color: var(--hero-ink); display: block; font-size: 16px; margin-bottom: 2px; }
.article-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--s-3);
  font-size: 15px;
  font-weight: 700;
  color: var(--hero-bg);
  background: var(--hero-accent);
  border-radius: var(--r-full);
  text-decoration: none;
  transition: transform .15s ease, filter .15s ease;
}
.article-cta__btn:hover { filter: brightness(1.06); transform: scale(1.03); }
.article-cta__btn:active { transform: scale(.97); }
.article-cta__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.article-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.article-card {
  display: block;
  padding: var(--s-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.article-card__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: var(--r-full);
}
.article-card__title {
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  color: var(--ink);
  margin: 0 0 4px;
}
.article-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-3);
}
.article-footer {
  background: var(--hero-bg);
  color: var(--hero-ink-2);
  font-size: 12px;
  padding: var(--s-3) var(--s-2);
  text-align: center;
}
.article-footer a { color: var(--hero-accent); text-decoration: none; }

@media (max-width: 576px) {
  .article-title { font-size: 25px; line-height: 33px; }
  .prose h2 { font-size: 19px; line-height: 27px; }
  .article-cta { flex-direction: column; align-items: stretch; text-align: center; }
}
