/* ==========================================================================
   卡密商城 · 样式
   纯手写 CSS，无外部依赖、无构建步骤，Dreamweaver 实时视图可直接编辑。
   改配色只改下面 :root 里的变量。
   ========================================================================== */

:root {
  --bg: #07080d;
  --bg-soft: #0c0e16;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef1f8;
  --muted: #98a1b8;
  --muted-2: #7d869b;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.85);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

/* hidden 属性必须压得住组件自己的 display：.btn 是 inline-flex、.plan 是 flex，
   否则 JS 里 el.hidden = true 之后按钮还挂在页面上（下载区空的时候会露馅）。 */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

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

h1, h2, h3 { line-height: 1.25; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; }

/* ------------------------------------------------------------ 背景装饰 */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.bg-glow {
  position: fixed;
  inset: -20% -10% auto -10%;
  height: 70vh;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 60% at 22% 18%, rgba(124, 92, 255, 0.28), transparent 70%),
    radial-gradient(42% 56% at 78% 8%, rgba(34, 211, 238, 0.18), transparent 70%);
  filter: blur(10px);
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ------------------------------------------------------------ 导航 */
.nav {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  backdrop-filter: blur(14px);
  background: rgba(7, 8, 13, 0.72);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.logo {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #4f46e5 55%, var(--accent-2));
  box-shadow: 0 8px 20px -8px rgba(124, 92, 255, 0.9);
}
.brand-tag {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-weight: 500;
}
.nav-links { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.18s; }
.nav-links a:hover { color: var(--text); }

/* ------------------------------------------------------------ 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, opacity 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #5b46ff 60%, #4338ca);
  box-shadow: 0 14px 30px -14px rgba(124, 92, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { box-shadow: 0 18px 38px -14px rgba(124, 92, 255, 1); transform: translateY(-1px); }
.btn-ghost { background: var(--panel-2); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.09); }
.btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 14px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ------------------------------------------------------------ Hero */
.hero {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 9vw, 104px) clamp(16px, 4vw, 32px) clamp(28px, 5vw, 48px);
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
}
.hero h1 {
  margin: 22px 0 16px;
  font-size: clamp(32px, 5.6vw, 58px);
  font-weight: 750;
  letter-spacing: -0.03em;
}
.hero h1 em { font-style: normal; color: var(--text); }
.grad {
  background: linear-gradient(100deg, #a78bfa 0%, #7c5cff 34%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(14px, 1.6vw, 16px);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-actions .btn { min-width: 136px; }
.trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted-2);
  font-size: 13px;
}
.trust b { color: var(--muted); font-weight: 600; margin-right: 4px; }

/* ------------------------------------------------------------ 区块 */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 68px) clamp(16px, 4vw, 32px);
}
#pricing { max-width: 1200px; }
.section-head { text-align: center; margin-bottom: 34px; }
.section-head h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.section-head p { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ 套餐卡 */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(196px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.plan.best {
  border-color: rgba(124, 92, 255, 0.55);
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(124, 92, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 70px -30px rgba(124, 92, 255, 0.85);
}
.plan-flag {
  position: absolute;
  top: -11px; right: 18px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: #150c33;
  background: linear-gradient(135deg, #c4b5fd, #7c5cff);
  box-shadow: 0 8px 20px -10px rgba(124, 92, 255, 0.9);
}
.plan-flag.alt { background: linear-gradient(135deg, #a5f3fc, #22d3ee); color: #062a33; }
.plan-name { color: var(--muted); font-size: 13.5px; letter-spacing: 0.04em; }
.plan-price { display: flex; align-items: baseline; gap: 3px; }
.plan-price .cur { font-size: 17px; color: var(--muted); font-weight: 600; }
.plan-price .num {
  font-size: clamp(30px, 4vw, 38px);
  font-weight: 750;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.plan-validity { color: var(--text); font-size: 13.5px; font-weight: 550; }
.plan-validity em { font-style: normal; color: var(--muted-2); font-size: 12.5px; font-weight: 400; }
.plan-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 12px;
  margin-top: auto;
  border-top: 1px dashed var(--border);
  color: var(--muted-2);
  font-size: 12.5px;
}
.plan-stock.ok { color: var(--ok); }
.plan-stock.low { color: var(--warn); }
.plan-stock.out { color: var(--danger); }
.plan .btn { width: 100%; }

.skeleton {
  min-height: 216px;
  background: linear-gradient(100deg, rgba(255,255,255,0.03) 30%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 70%);
  background-size: 240% 100%;
  animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -60% 0; } }

.plans-note { margin-top: 18px; text-align: center; color: var(--muted-2); font-size: 13px; }
.plans-note.err { color: var(--danger); }

/* ------------------------------------------------------------ 流程 */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.step-no {
  display: inline-block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 10px;
}
.steps h3 { font-size: 16px; font-weight: 650; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 2px 18px;
  transition: border-color 0.2s, background 0.2s;
}
details[open] { border-color: var(--border-strong); background: var(--panel-2); }
summary {
  cursor: pointer;
  padding: 15px 0;
  font-weight: 600;
  font-size: 14.5px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  color: var(--muted-2);
  font-weight: 400;
  font-size: 18px;
  transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
details p { padding: 0 0 16px; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------ 页脚 */
.foot { border-top: 1px solid var(--border); margin-top: 40px; background: rgba(255, 255, 255, 0.012); }
.foot-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 26px clamp(16px, 4vw, 32px);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
}
.foot-inner strong { color: var(--muted); font-weight: 600; }
.foot-sep { margin: 0 6px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }

/* ------------------------------------------------------------ 弹窗 */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 18px; }
.modal[hidden] { display: none; }
.modal-mask { position: absolute; inset: 0; background: rgba(3, 4, 8, 0.72); backdrop-filter: blur(6px); }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 26px clamp(18px, 3vw, 30px) 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(120% 70% at 50% -20%, rgba(124, 92, 255, 0.2), transparent 60%),
    #0b0d15;
  box-shadow: 0 40px 100px -30px #000;
  animation: pop 0.22s ease-out;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(0.985); } }
.modal-x {
  position: absolute;
  top: 12px; right: 14px;
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.modal-x:hover { color: var(--text); border-color: var(--border-strong); }

.steps-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 12px;
}
.sb {
  flex: 1;
  padding: 6px 0;
  text-align: center;
  color: var(--muted-2);
  border-bottom: 2px solid var(--border);
}
.sb.on { color: var(--text); border-color: var(--accent); }
.sb.done { color: var(--ok); border-color: rgba(52, 211, 153, 0.5); }

.panel h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.badge-soft {
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.3);
}

.m-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--panel);
}
.m-summary div { display: flex; flex-direction: column; gap: 4px; }
.m-summary div:last-child { align-items: flex-end; text-align: right; }
.m-summary span { color: var(--muted-2); font-size: 12px; }
.m-summary b { font-size: 14px; font-weight: 650; }
.m-summary .price { color: #c4b5fd; font-size: 17px; font-variant-numeric: tabular-nums; }

.field { display: block; margin-bottom: 16px; }
.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.field > span i { font-style: normal; font-weight: 400; color: var(--muted-2); margin-left: 6px; font-size: 12px; }
.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.field input::placeholder { color: var(--muted-2); }
.field input:focus {
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.16);
}
.pay-switch { display: flex; gap: 10px; }
.pay-opt {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 13.5px;
  transition: all 0.18s;
}
.pay-opt.on {
  color: #fff;
  border-color: rgba(124, 92, 255, 0.65);
  background: rgba(124, 92, 255, 0.16);
}
.m-hint { color: var(--muted-2); font-size: 12.5px; line-height: 1.6; }
.m-hint.center { text-align: center; margin-top: 14px; }
.m-hint strong { color: var(--muted); }
.m-err {
  margin-top: 12px;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.1);
  color: #fca5a5;
  font-size: 13px;
}
.support-line {
  margin-top: 12px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
.support-line b { color: var(--text); }

/* 付款面板 */
.pay-box { display: grid; grid-template-columns: 168px 1fr; gap: 18px; align-items: start; }
.qr-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.qr-wrap img { width: 100%; height: 100%; object-fit: contain; }
.qr-empty {
  color: #4b5563;
  font-size: 12.5px;
  text-align: center;
  line-height: 1.7;
  padding: 14px;
}
.qr-empty small { color: #9ca3af; }
.pay-info { display: grid; gap: 10px; }
.pay-amount { display: flex; flex-direction: column; gap: 2px; }
.pay-amount span { color: var(--muted-2); font-size: 12px; }
.pay-amount b { font-size: 28px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; color: #fff; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.kv span { color: var(--muted-2); }
.kv b { font-weight: 600; word-break: break-all; text-align: right; }
.order-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.order-actions .btn { flex: 1; min-width: 120px; }

/* 卡密展示 */
.codes { display: grid; gap: 10px; margin: 18px 0 4px; }
.code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.08);
}
.code-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #d1fae5;
  word-break: break-all;
}
.code-row { cursor: pointer; }
.copy-mini {
  flex-shrink: 0;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, 0.4);
  background: transparent;
  color: #a7f3d0;
  font-size: 12.5px;
  cursor: pointer;
}
.copy-mini:hover { background: rgba(52, 211, 153, 0.14); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(8px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #13161f;
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 20px 40px -18px #000;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ------------------------------------------------------------ 客户端介绍 */
.app-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}
.app-lead { color: var(--muted); font-size: 14.5px; line-height: 1.85; }
.app-lead b { color: var(--text); font-weight: 650; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
  transition: border-color 0.2s, background 0.2s;
}
.features li:hover { border-color: var(--border-strong); background: var(--panel-2); }
.f-ico {
  display: inline-block;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 8px;
}
.features h3 { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.features p { color: var(--muted); font-size: 13px; }

.app-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.app-facts div { display: flex; flex-direction: column; gap: 3px; }
.app-facts span { color: var(--muted-2); font-size: 12px; }
.app-facts b { font-size: 13.5px; font-weight: 600; }
.app-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.app-actions .btn { min-width: 130px; }

/* 手机界面示意（纯 HTML/CSS 画的，不是截图） */
.phone {
  justify-self: center;
  width: min(300px, 100%);
  padding: 12px;
  border-radius: 34px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow), 0 0 60px -20px rgba(124, 92, 255, 0.7);
}
.phone-screen {
  display: grid;
  gap: 12px;
  padding: 20px 18px 22px;
  border-radius: 26px;
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(124, 92, 255, 0.28), transparent 62%),
    #0a0c13;
  border: 1px solid var(--border);
}
.ps-bar { display: flex; gap: 5px; justify-content: center; }
.ps-bar i { width: 5px; height: 5px; border-radius: 50%; background: var(--border-strong); }
.ps-title { font-size: 19px; font-weight: 700; }
.ps-sub { color: var(--muted-2); font-size: 12px; margin-top: -8px; }
.ps-field {
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px dashed var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-align: center;
}
.ps-btn {
  padding: 11px;
  border-radius: 11px;
  text-align: center;
  font-weight: 650;
  font-size: 13.5px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #4338ca);
  box-shadow: 0 12px 26px -14px rgba(124, 92, 255, 0.95);
}
.ps-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  border: 1px solid rgba(52, 211, 153, 0.32);
  background: rgba(52, 211, 153, 0.09);
  color: #a7f3d0;
  font-size: 12.5px;
}
.ps-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted-2); }
.ps-row b { color: var(--muted); font-weight: 600; }
.ps-row b.ok { color: var(--ok); }

/* ------------------------------------------------------------ 下载区 */
.dl-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 16px;
  align-items: start;
}
.dl-card {
  display: grid;
  gap: 16px;
  padding: 26px clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 92, 255, 0.4);
  background:
    radial-gradient(120% 90% at 20% -20%, rgba(124, 92, 255, 0.22), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  box-shadow: 0 30px 70px -32px rgba(124, 92, 255, 0.85);
}
.dl-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dl-icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(140deg, var(--accent), #4f46e5 55%, var(--accent-2));
  box-shadow: 0 12px 26px -12px rgba(124, 92, 255, 0.95);
}
.dl-name { font-size: 17px; font-weight: 700; line-height: 1.3; }
.dl-tagline { color: var(--muted-2); font-size: 12.5px; }
.dl-badge {
  margin-left: auto;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  color: #c4b5fd;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid rgba(124, 92, 255, 0.34);
  white-space: nowrap;
}
.dl-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 10px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.24);
}
.dl-meta div { display: flex; flex-direction: column; gap: 3px; }
.dl-meta span { color: var(--muted-2); font-size: 11.5px; }
.dl-meta b { font-size: 13.5px; font-weight: 650; font-variant-numeric: tabular-nums; }
.dl-notes { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 4px; }
.dl-hash {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}
.dl-hash > span { flex-shrink: 0; color: var(--muted-2); font-size: 11.5px; letter-spacing: 0.06em; }
.dl-hash code {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dl-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-actions .btn { flex: 1; min-width: 150px; }
.dl-hint { color: var(--muted-2); font-size: 12px; }

.dl-side {
  padding: 22px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--panel);
}
.dl-side h3 { font-size: 14.5px; font-weight: 650; margin-bottom: 12px; }
.dl-tips { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dl-tips li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.7;
}
.dl-tips li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-2);
}
.dl-tips a { color: #c4b5fd; border-bottom: 1px solid rgba(196, 181, 253, 0.4); }

.dl-history { margin-top: 18px; }
.dl-history h3 { font-size: 14px; font-weight: 650; color: var(--muted); margin-bottom: 10px; }
.dl-old { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dl-old li {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  color: var(--muted);
}
.dl-old .ov { font-weight: 650; color: var(--text); }
.dl-old .od { margin-left: auto; color: var(--muted-2); font-size: 12px; }
.dl-old a { color: #c4b5fd; font-size: 12.5px; }

/* ------------------------------------------------------------ 响应式 */
@media (max-width: 720px) {
  .nav-links a { display: none; }
  /* 下载入口在手机上要留着：大多数买家是扫二维码用手机打开的 */
  .nav-links a#nav-download { display: inline; }
  .app-intro, .dl-wrap { grid-template-columns: 1fr; }
  .phone { order: -1; }
  .dl-badge { margin-left: 0; }
  .pay-box { grid-template-columns: 1fr; justify-items: center; }
  .qr-wrap { width: 200px; height: 200px; }
  .pay-info { width: 100%; }
  .m-summary { grid-template-columns: 1fr 1fr; }
  .m-summary div:last-child { grid-column: span 2; }
  .order-actions .btn { min-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
}
