/* AIOPlayer 官网样式：无外部依赖、无网络字体，首屏只需要 CSS + 一个 sprite。 */

/* hidden 属性必须真的隐藏。`.button { display: inline-flex }` 这类规则会覆盖它，
   于是「在线支付未开通」时下单按钮、非演示渠道的演示按钮会照常显示出来。 */
[hidden] { display: none !important; }

:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --text: #131722;
  --text-soft: #3d4657;
  --muted: #6b7488;
  --line: #dfe3ee;
  --brand: #3b6cf6;
  --brand-2: #7a4bff;
  --brand-ink: #ffffff;
  --ok: #1f9d63;
  --err: #c8384a;
  --shadow: 0 1px 2px rgba(19, 23, 34, .06), 0 8px 24px rgba(19, 23, 34, .06);
  --radius: 14px;
  --radius-sm: 9px;
  --max: 1140px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020;
    --bg-soft: #0e1428;
    --surface: #141b30;
    --surface-2: #1a2238;
    --text: #eef1f8;
    --text-soft: #c4cbdc;
    --muted: #8b95ab;
    --line: #26304a;
    --brand: #6d92ff;
    --brand-2: #a483ff;
    --brand-ink: #0b1020;
    --ok: #43d68f;
    --err: #ff7a8a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
  }
}

:root[data-theme="dark"] {
  --bg: #0b1020;
  --bg-soft: #0e1428;
  --surface: #141b30;
  --surface-2: #1a2238;
  --text: #eef1f8;
  --text-soft: #c4cbdc;
  --muted: #8b95ab;
  --line: #26304a;
  --brand: #6d92ff;
  --brand-2: #a483ff;
  --brand-ink: #0b1020;
  --ok: #43d68f;
  --err: #ff7a8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 32px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .86em; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.16em;
}
.icon.big { width: 2.6rem; height: 2.6rem; stroke-width: 1.2; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 22px;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.brand-text { display: flex; align-items: baseline; gap: 8px; letter-spacing: .2px; }
.brand-text em {
  font-style: normal; font-weight: 500; font-size: 13px; color: var(--muted);
}
.nav-links { display: flex; gap: 22px; margin-left: 18px; font-size: 14.5px; color: var(--text-soft); }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.icon-button {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}
.icon-button:hover { color: var(--text); border-color: var(--muted); }

/* ---------- 按钮 ---------- */
.button {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px;
  border-radius: 11px;
  border: 1px solid transparent;
  font: inherit; font-weight: 600;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease;
}
.button-small { padding: 7px 14px; font-size: 14px; border-radius: 9px; }
.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 40%, transparent);
}
.button-primary:hover { transform: translateY(-1px); }
.button-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}
.button-ghost:hover { border-color: var(--muted); }
.button[disabled] { opacity: .6; cursor: progress; transform: none; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 22px 72px;
}
.eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -.5px;
}
.grad {
  background: linear-gradient(100deg, var(--brand), var(--brand-2) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 22px; max-width: 34em; color: var(--text-soft); font-size: 17px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tags span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; }
.hero-facts .icon { color: var(--ok); stroke-width: 2.2; }

/* 播放器示意图：纯 CSS 画的四条轨 */
.hero-visual { perspective: 1200px; }
.mock {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(2deg);
  transition: transform .4s ease;
}
.mock:hover { transform: none; }
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 12px; color: var(--muted);
}
.mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-bar b { margin-left: 8px; font-weight: 500; }
.mock-screen {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 196px;
  padding: 26px 18px 24px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--brand) 22%, var(--surface)), var(--surface) 70%);
}
.mock-sub {
  max-width: 88%;
  margin: 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  color: #fff;
  font-size: 13px;
  text-align: center;
}
.mock-play {
  position: absolute; left: 50%; top: 38%;
  width: 44px; height: 44px;
  margin: -22px 0 0 -22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  border: 1px solid var(--line);
}
.mock-play .icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.mock-lanes { padding: 12px 14px 16px; display: grid; gap: 8px; }
.lane {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.lane i { font-style: normal; }
.wave {
  height: 18px;
  border-radius: 5px;
  background:
    repeating-linear-gradient(90deg,
      color-mix(in srgb, var(--brand) 70%, transparent) 0 2px,
      transparent 2px 4px);
  mask-image: repeating-linear-gradient(90deg, #000 0 2px, #000 2px 4px);
  opacity: .85;
}
.w2 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--brand-2) 75%, transparent) 0 2px, transparent 2px 4px); }
.w3 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ok) 65%, transparent) 0 2px, transparent 2px 5px); opacity: .7; }
.w4 { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 70%, transparent) 0 2px, transparent 2px 6px); opacity: .6; }

/* ---------- 区块 ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 22px; }
.section-alt {
  max-width: none;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-head { max-width: 720px; margin-bottom: 34px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3.4vw, 36px);
  letter-spacing: -.3px;
}
.section-sub { margin: 0; color: var(--text-soft); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(276px, 1fr));
  gap: 16px;
}
.card {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card h3 { margin: 12px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--text-soft); font-size: 14.5px; }
.card-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
}

/* 工作流 */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 0; padding: 0;
}
.steps li {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step-no {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-weight: 700; font-size: 14px;
  color: var(--brand-ink);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.steps h3 { margin: 12px 0 6px; font-size: 17px; }
.steps p { margin: 0; color: var(--text-soft); font-size: 14.5px; }

/* 表格 */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tr:last-child td { border-bottom: none; }
td code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); }

/* 授权 */
.license-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 16px;
  align-items: start;
}
.panel {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.panel-title { margin: 0 0 14px; font-size: 16px; }
.field { margin-bottom: 16px; }
.field > label, .field > legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.req { color: var(--err); }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 12.5px; }
.field input, .field select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.field input:focus, .field select:focus, textarea:focus {
  outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent);
  outline-offset: 1px;
  border-color: var(--brand);
}
.row { display: flex; gap: 10px; }
.row select { flex: 0 0 42%; }
.checks { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
.checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 14px;
}
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.checks input { width: auto; }
.checks .full { grid-column: 1 / -1; }
.token summary { cursor: pointer; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.error { margin: 12px 0 0; color: var(--err); font-size: 14px; }

.result-empty { text-align: center; padding: 26px 10px; color: var(--text-soft); }
.result-empty .icon { color: var(--muted); }
.result-empty p { margin: 12px 0 0; font-size: 14px; }

.result-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin: 0 0 14px;
  font-size: 14px;
}
.result-meta dt { color: var(--muted); }
.result-meta dd { margin: 0; }
textarea { font-family: var(--mono); font-size: 12.5px; line-height: 1.5; resize: vertical; }
.result-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--text-soft); font-size: 14.5px; }

/* 页脚 */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 22px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--text-soft);
  font-size: 13.5px;
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button, .card, .mock { transition: none; }
}

/* 窄屏 */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 36px; }
  .hero-visual { order: -1; }
  .mock { transform: none; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .brand-text em { display: none; }
  .nav { gap: 12px; padding: 12px 16px; }
  .hero h1 { font-size: 30px; }
  .section { padding: 52px 18px; }
  .panel, .card { padding: 18px; }
  .footer { flex-direction: column; }
}

/* ---------- 购买授权 / 扫码支付 ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 16px;
  align-items: start;
}
.plans { display: grid; gap: 12px; }
.plan {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease;
}
.plan:hover { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); transform: translateY(-1px); }
.plan-highlight {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 65%);
}
.plan input { margin-top: 5px; }
.plan-body { display: grid; gap: 3px; }
.plan-name { font-weight: 700; }
.plan-price { font-size: 22px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.plan-note { color: var(--muted); font-size: 13px; }

.pay-panel { position: sticky; top: 86px; }
.mini-form { display: grid; gap: 6px; margin-bottom: 14px; }
.mini-form label { font-size: 13.5px; font-weight: 600; }
.mini-form input {
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
}
.mini-form input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 1px; }

.channels { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.channels-label { font-size: 13.5px; font-weight: 600; }
.channels label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

.pay-qr { margin-top: 16px; text-align: center; }
.pay-qr img {
  width: 208px; height: 208px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  padding: 6px;
}
/* 静态收款码（manual 渠道）：原图是竖版宣传图，按比例显示，别压成正方形 */
.pay-qr img.qr-raw {
  width: auto;
  height: auto;
  max-width: 260px;
  max-height: 440px;
}
.pay-amount { font-weight: 700; margin: 12px 0 4px; }
.pay-status { color: var(--muted); font-size: 14px; margin: 0 0 12px; word-break: break-all; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pay-panel { position: static; }
}

/* ---------- 机器码入口 / 设备面板 / 下单 / 后台 ---------- */
.small-note { font-size: 13px; }
.ok-text { margin: 10px 0 0; color: var(--ok); font-size: 14px; }
.sub-title { margin: 18px 0 8px; font-size: 14px; color: var(--muted); letter-spacing: .04em; }

.enter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 28px;
  align-items: start;
}
.enter-card { max-width: 480px; }
.enter-card .button { width: 100%; justify-content: center; }

.panel-head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel-machine { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 22px; }
.panel-machine code {
  padding: 4px 10px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 18px;
}
.panel-head-side { display: flex; align-items: center; gap: 10px; }

.badge {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 13px; font-weight: 600;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.badge-trial { color: var(--brand); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.badge-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }

.notice {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--err) 40%, var(--line));
  background: color-mix(in srgb, var(--err) 10%, var(--surface));
  color: var(--text);
  font-size: 14px;
}

.quota-card { display: grid; gap: 16px; }
.quota-main { display: grid; gap: 2px; }
.quota-number { margin: 0; font-size: 18px; color: var(--text-soft); }
.quota-number b { font-size: 46px; color: var(--brand); line-height: 1; }
.quota-number span { margin-left: 4px; }
.quota-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  gap: 10px;
  margin: 0;
}
.quota-row {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.quota-row dt { margin: 0; font-size: 12.5px; color: var(--muted); }
.quota-row dd { margin: 2px 0 0; font-weight: 700; }
.quota-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ledger-details summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-soft); }
.ledger { margin-top: 10px; display: grid; gap: 6px; }
.ledger-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 90px minmax(0, 1.4fr);
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 13.5px;
  align-items: center;
}
.ledger-kind { font-weight: 600; }
.ledger-delta { color: var(--err); font-weight: 700; }
.ledger-delta.plus { color: var(--ok); }
.ledger-time { color: var(--muted); font-size: 12.5px; }

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.invite-code-row { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.invite-code-row code {
  padding: 6px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px dashed var(--line);
  font-size: 18px;
  letter-spacing: 1px;
}
.row-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row-inline input { flex: 1 1 160px; }
.row-inline select { flex: 0 1 190px; }

.list-stack { display: grid; gap: 10px; margin: 12px 0; }
.list-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.list-card.revoked { border-color: color-mix(in srgb, var(--err) 45%, var(--line)); }
.list-title { margin: 0; font-weight: 600; font-size: 14.5px; }
.list-info p { margin: 2px 0; }
.list-actions { display: flex; gap: 8px; align-items: center; }
.entitlement-form { margin-top: 4px; }

/* 套餐卡片 */
.plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 22px;
}
.plan-card {
  display: flex;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: border-color .16s ease, transform .16s ease;
}
.plan-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.plan-card-highlight {
  border-color: color-mix(in srgb, var(--brand) 60%, var(--line));
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), var(--surface) 70%);
}
.plan-card-static { cursor: default; }
.plan-card-static:hover { transform: none; }
.plan-card input { margin-top: 6px; }
.plan-card-body { display: grid; gap: 4px; }
.plan-card-name { font-weight: 700; }
.plan-card-price { font-size: 24px; font-weight: 700; color: var(--brand); line-height: 1.15; }
.plan-card-note { color: var(--muted); font-size: 13px; }
.plan-card-meta { color: var(--text-soft); font-size: 12.5px; }
.plan-card-static .button { margin-top: 8px; justify-self: start; }

/* 购买对比 */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}
.compare-buy { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.bullet-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.bullet-list li { position: relative; padding-left: 20px; color: var(--text-soft); }
.bullet-list li::before {
  content: "";
  position: absolute; left: 4px; top: .62em;
  width: 7px; height: 7px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

/* 下单页 */
.order-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 16px;
  align-items: start;
}
.order-main { display: grid; gap: 16px; }
.order-side { display: grid; gap: 16px; position: sticky; top: 86px; }
.order-side .pay-panel { position: static; }
.price-summary {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 14px;
}
.price-summary b { font-size: 22px; color: var(--brand); }

/* 须知 */
.legal { max-width: 860px; display: grid; gap: 6px; }
.legal h3 { margin: 26px 0 6px; font-size: 17px; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-soft); font-size: 14.5px; }

/* 后台 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.stat {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.stat b { font-size: 24px; color: var(--brand); line-height: 1.1; }
.stat span { font-size: 12.5px; color: var(--muted); }
.admin-summary { margin-bottom: 16px; }
.table-wrap table { font-size: 13px; }
.table-wrap th, .table-wrap td { padding: 8px 10px; }

@media (max-width: 900px) {
  .enter-grid, .order-grid { grid-template-columns: 1fr; }
  .order-side { position: static; }
  .ledger-row { grid-template-columns: 1fr auto; }
  .ledger-time { grid-column: 1 / -1; }
}

/* ---------- 支付弹窗（扫码出码，对齐 DeepSeek 充值交互） ---------- */
.pay-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pay-modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 24, .62);
  backdrop-filter: blur(3px);
}

.pay-modal-card {
  position: relative;
  width: min(340px, 100%);
  padding: 22px 22px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #6f7bd8 0%, #5d69c9 100%);
  box-shadow: 0 24px 64px rgba(4, 8, 20, .45);
  text-align: center;
  color: #fff;
}

.pay-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, .72);
  cursor: pointer;
}

.pay-modal-close:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.pay-modal-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .92);
}

.pay-modal-logo { width: 20px; height: 20px; flex: none; }

.pay-modal-label {
  margin: 14px 0 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, .82);
}

.pay-modal-amount {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
}

.pay-modal-qr {
  padding: 10px;
  border-radius: 12px;
  background: #fff;
  display: inline-block;
}

.pay-modal-qr img {
  display: block;
  width: 188px;
  height: 188px;
}

.pay-modal-tip {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .78);
}

.pay-modal-status {
  margin: 6px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, .62);
}

.pay-modal-paid .pay-modal-qr { display: none; }

.pay-modal-paid .pay-modal-status {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #c9f7d8;
}

@media (max-width: 420px) {
  .pay-modal-qr img { width: 168px; height: 168px; }
  .pay-modal-amount { font-size: 26px; }
}

/* 收银台内嵌：支付宝收银台页面较宽（约 900px），按比例缩放塞进弹窗 */
.pay-modal-frame {
  width: 552px;
  max-width: 100%;
  height: 392px;
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  position: relative;
}

.pay-modal-frame iframe {
  width: 920px;
  height: 653px;
  border: 0;
  transform: scale(.6);
  transform-origin: top left;
  display: block;
}

.pay-modal-card { width: min(600px, 100%); }

@media (max-width: 640px) {
  .pay-modal-frame { width: 100%; height: 340px; }
  .pay-modal-frame iframe { transform: scale(.42); }
}
