/* ==========================================================================
   BT.Panel 授权柜台 · v2.1
   原则：少装饰、强对比、颜色即含义。
     朱红 = 现在该做的 / 主按钮
     绿色 = 已完成 / 通过
     琥珀 = 需要注意
     黄色 = 优惠
   ========================================================================== */

:root {
  --bg: #F5F0E6;
  --card: #FFFFFF;
  --ink: #17150F;
  --ink-2: #5B564C;
  --ink-3: #6F695D;
  --line: #E7E0D2;
  --line-2: #D5CCBA;

  --brand: #DE3713;
  --brand-d: #B02C14;
  --brand-soft: #FFEEE8;
  --go: #13A152;
  --go-d: #0E7A3E;
  --go-soft: #E5F6EC;
  --warn: #D97706;
  --warn-soft: #FFF4DD;
  --yellow: #FFD43B;
  --blue: #2563EB;
  --blue-soft: #E8EFFE;
  --wx: #07C160;
  --ali: #1677FF;

  --f-sans: 'MiSans VF', 'PingFang SC', 'HarmonyOS Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  --f-mono: ui-monospace, 'SFMono-Regular', 'Cascadia Mono', Consolas, 'MiSans VF', monospace;

  --wrap: 1200px;
  --r: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink);
  font: 400 16px/1.6 var(--f-sans);
  background: var(--bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32  0 0 0 0 .25  0 0 0 0 .15  0 0 0 .06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
}
::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
code { font: 600 .92em var(--f-mono); background: rgba(0, 0, 0, .06); padding: 1px 5px; border-radius: 4px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; text-decoration: none; border-radius: 8px; }
.skip-link:focus { top: 12px; }

/* ───────────────────────── 顶栏 ───────────────────────── */
.bar {
  max-width: var(--wrap); margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 20px 32px;
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.seal {
  width: 38px; height: 38px; flex-shrink: 0;
  display: grid; place-content: center;
  background: var(--brand); color: #fff;
  border-radius: 6px;
  box-shadow: inset 0 0 0 2.5px var(--brand), inset 0 0 0 4px #fff;
  font-size: 13.5px; font-weight: 800; line-height: 1.02; text-align: center;
  transform: rotate(-5deg);
  filter: url(#ink);
}
.seal span { display: block; }
.brand-text { display: flex; flex-direction: column; font-weight: 750; font-size: 17px; line-height: 1.1; }
.brand-text small { font-size: 12px; font-weight: 500; color: var(--ink-2); letter-spacing: .14em; margin-top: 3px; }

.bar-nav { display: flex; gap: 4px; margin-left: auto; background: rgba(255, 255, 255, .6); padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.bar-nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px;
  text-decoration: none; font-size: 15px; font-weight: 550; color: var(--ink-2);
  transition: background .15s, color .15s;
}
.bar-nav a i { display: none; }
.bar-nav a:hover { color: var(--ink); background: rgba(0, 0, 0, .05); }
.bar-nav a.on { background: var(--ink); color: #fff; }
.bar-docs { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; color: var(--ink-2); text-decoration: none; }
.bar-docs:hover { color: var(--ink); text-decoration: underline; }

/* ───────────────────────── 首屏 ───────────────────────── */
.hero {
  max-width: var(--wrap); margin: 0 auto;
  padding: 40px 32px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  grid-template-areas: "head slip" "more slip";
  grid-template-rows: auto 1fr;
  column-gap: 80px;
}
.hero-head { grid-area: head; padding-top: 16px; }
.hero-more { grid-area: more; }
.hero-slip { grid-area: slip; position: relative; }

.kicker {
  display: inline-block; margin: 0 0 22px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
}
h1 {
  margin: 0;
  font-size: clamp(40px, 5.4vw, 78px);
  line-height: 1.1; font-weight: 800; letter-spacing: -.03em;
}
h1 mark {
  color: inherit;
  background: linear-gradient(176deg, transparent 54%, var(--yellow) 54%, var(--yellow) 90%, transparent 90%);
  padding: 0 .05em; margin: 0 -.05em;
}
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.7; color: var(--ink-2); }
.lead b { color: var(--brand); font-weight: 800; }

/* 购买流程（随下单进度点亮） */
.flow { list-style: none; margin: 40px 0 0; padding: 0; max-width: 460px; }
.flow li { position: relative; display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.flow li:not(:last-child)::after {
  content: ''; position: absolute; left: 21px; top: 54px; bottom: -10px; width: 2px;
  background: repeating-linear-gradient(var(--line-2) 0 4px, transparent 4px 8px);
}
.flow li.is-done:not(:last-child)::after { background: var(--go); }
.flow-dot {
  position: relative; z-index: 1;
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); border: 2px solid var(--line-2); color: var(--ink-3);
  font-size: 18px; font-weight: 800;
  transition: background .25s, border-color .25s, color .25s;
}
.flow-txt { display: flex; flex-direction: column; line-height: 1.35; }
.flow-txt b { font-size: 18px; font-weight: 750; color: var(--ink-2); transition: color .25s; }
.flow-txt small { font-size: 14px; color: var(--ink-3); }

.flow li.is-current .flow-dot { background: var(--brand); border-color: var(--brand); color: #fff; animation: ping 1.8s ease-out infinite; }
.flow li.is-current .flow-txt b { color: var(--ink); }
.flow li.is-done .flow-dot { background: var(--go); border-color: var(--go); color: #fff; font-size: 0; animation: pop .45s var(--pop); }
.flow li.is-done .flow-dot::after { content: '\eb7b'; font: 400 22px/1 'remixicon'; }
.flow li.is-done .flow-txt b { color: var(--go-d); }
.flow li.is-error .flow-dot { background: var(--warn); border-color: var(--warn); color: #fff; font-size: 0; }
.flow li.is-error .flow-dot::after { content: '!'; font: 800 20px/1 var(--f-sans); }
.flow li.is-error .flow-txt b { color: var(--warn); }
.flow li.is-owned .flow-dot { background: var(--brand); border-color: var(--brand); }
.flow li.is-owned .flow-txt b { color: var(--brand-d); }
.flow-end .flow-dot { font-size: 22px; }

/* 包含内容 */
.perks { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; max-width: 520px; }
.perks li { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 550; color: var(--ink-2); }
.perks li::before { content: '\eb7b'; flex-shrink: 0; width: 1em; height: 1em; font: 400 18px/1 'remixicon'; color: var(--go); }

.hero-links { margin-top: 28px; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-links a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 600; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--line-2); padding-bottom: 2px;
  transition: border-color .15s, color .15s;
}
.hero-links a:hover { border-color: var(--brand); color: var(--brand-d); }

/* 官方版本号（Linux / Windows / aaPanel）：三张彩色卡片，版本号高亮 */
.versions { margin-top: 32px; max-width: 560px; }
.ver-cap { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink); letter-spacing: .02em; }
.ver-live { position: relative; width: 9px; height: 9px; border-radius: 50%; background: var(--go); flex-shrink: 0; }
.ver-live::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--go); opacity: 0; animation: ver-pulse 2s ease-out infinite; }
@keyframes ver-pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.ver-cap small { margin-left: auto; font-size: 12px; font-weight: 500; color: var(--ink-3); }

.ver-list { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ver-item {
  --vc: var(--brand); --vc-soft: var(--brand-soft);
  position: relative; min-width: 0; overflow: hidden;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 12px;
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r);
  box-shadow: 3px 3px 0 var(--vc);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.ver-item::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--vc); }
.ver-linux   { --vc: #F26B1D; --vc-soft: #FFEFE3; }
.ver-windows { --vc: #1677FF; --vc-soft: #E6F0FF; }
.ver-aapanel { --vc: #13A152; --vc-soft: #E5F6EC; }
@media (hover: hover) { .ver-item:hover { transform: translate(-1px, -2px); box-shadow: 5px 5px 0 var(--vc); } }

.ver-item dt { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.ver-item dt i {
  width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 8px; background: var(--vc); color: #fff; font-size: 17px;
}
.ver-item dd { margin: 0; }
.ver-num {
  margin-top: 8px !important; align-self: flex-start;
  font: 800 24px/1.2 var(--f-mono); letter-spacing: -.03em; color: var(--ink);
  background: linear-gradient(176deg, transparent 58%, var(--vc-soft) 58%, var(--vc-soft) 92%, transparent 92%);
  box-shadow: inset 0 -3px 0 var(--vc);
  padding: 0 2px;
}
.ver-date { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px !important; font-size: 12.5px; color: var(--ink-3); }
.ver-new {
  display: inline-block; padding: 0 6px; border-radius: 999px;
  background: var(--yellow); color: var(--ink);
  font-size: 11px; font-weight: 800; line-height: 18px; letter-spacing: .04em;
}

/* 涂鸦箭头 */
.doodle { position: absolute; left: -132px; top: 96px; width: 124px; color: var(--brand); transform: rotate(6deg); pointer-events: none; }
.doodle-note { position: absolute; left: -146px; top: 64px; transform: rotate(-7deg); font-size: 15px; font-weight: 800; color: var(--brand); pointer-events: none; }

/* ───────────────────────── 小票 ───────────────────────── */
.slip-wrap { position: relative; }
.slip-shadow {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--card);
  filter: drop-shadow(0 1px 1px rgba(60, 40, 10, .06)) drop-shadow(0 18px 32px rgba(70, 48, 14, .13));
}
.slip-shadow::before, .slip-shadow::after { content: ''; position: absolute; left: 0; right: 0; height: 9px; background-size: 14px 9px; background-repeat: repeat-x; }
.slip-shadow::before { top: -9px; background-image: radial-gradient(circle at 50% 0, transparent 6px, var(--card) 6.5px); }
.slip-shadow::after { bottom: -9px; background-image: radial-gradient(circle at 50% 100%, transparent 6px, var(--card) 6.5px); }
.slip { position: relative; margin: 0; padding: 28px 28px 22px; background: var(--card); }
.slip::before { top: -9px; background-image: radial-gradient(circle at 50% 0, transparent 6px, var(--card) 6.5px); }
.slip::after { bottom: -9px; background-image: radial-gradient(circle at 50% 100%, transparent 6px, var(--card) 6.5px); }

.slip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 16px; border-bottom: 2px dashed var(--line); }
.slip-shop { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: .12em; }
.slip-sub { margin: 0; font: 500 12px var(--f-mono); color: var(--ink-3); }

.slip-sec { border: 0; margin: 22px 0 0; padding: 0; min-width: 0; position: relative; }
legend.sec-title { float: left; width: 100%; }
legend.sec-title + * { clear: both; }
.sec-title {
  display: flex; align-items: center; gap: 10px; padding: 0; margin-bottom: 12px;
  font-size: 17px; font-weight: 750; color: var(--ink-2);
  transition: color .2s;
}

/* 步骤圆点：灰=待办 / 朱红=当前 / 绿=完成 / 琥珀=注意 */
.step-dot {
  width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: #EFEAE0; color: var(--ink-3);
  font-size: 14px; font-weight: 800;
  transition: background .25s, color .25s;
}
.slip-sec[data-state="current"] .sec-title { color: var(--ink); }
.slip-sec[data-state="current"] .step-dot { background: var(--brand); color: #fff; animation: ping 1.8s ease-out infinite; }
.slip-sec[data-state="done"] .sec-title { color: var(--ink); }
.slip-sec[data-state="done"] .step-dot { background: var(--go); color: #fff; font-size: 0; animation: pop .45s var(--pop); }
.slip-sec[data-state="done"] .step-dot::after { content: '\eb7b'; font: 400 17px/1 'remixicon'; }
.slip-sec[data-state="error"] .sec-title { color: var(--ink); }
.slip-sec[data-state="error"] .step-dot { background: var(--warn); color: #fff; font-size: 0; }
.slip-sec[data-state="error"] .step-dot::after { content: '!'; font: 800 15px/1 var(--f-sans); }

/* 方案卡 */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 14px 13px;
  border: 2px solid var(--line); border-radius: var(--r);
  background: var(--card);
  transition: border-color .18s, background .18s, transform .18s var(--ease), box-shadow .18s;
}
.plan input { position: absolute; opacity: 0; pointer-events: none; }
.plan:hover { border-color: var(--line-2); }
@media (hover: hover) { .plan:hover { transform: translateY(-2px); } }
.plan-tag { align-self: flex-start; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; margin-bottom: 6px; }
.tag-cheap { background: var(--go-soft); color: var(--go-d); }
.tag-flex { background: var(--blue-soft); color: var(--blue); }
.plan-name { font-size: 17px; font-weight: 800; }
.plan-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); transition: color .18s; }
.plan-price i { font-style: normal; font-size: 16px; margin-right: 1px; }
.plan-price small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 2px; }
.plan-desc { margin-top: 6px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.plan-desc b { color: var(--ink); font-weight: 700; }
.plan-check {
  position: absolute; top: 10px; right: 10px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid var(--line-2); color: transparent; font-size: 16px;
  transition: all .2s var(--pop);
}
.plan.active { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 6px 16px -8px rgba(240, 68, 31, .5); }
.plan.active .plan-price { color: var(--brand-d); }
.plan.active .plan-check { background: var(--brand); border-color: var(--brand); color: #fff; transform: scale(1.08); }
.plan:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 密码 */
.password-group { margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--brand-soft); animation: drop .28s var(--ease); }
.field-label { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.field-label i { color: var(--brand); }
.pw-wrap { position: relative; }
.field {
  width: 100%; display: block;
  border: 2px solid var(--line-2); border-radius: 10px;
  background: #fff;
  padding: 11px 14px;
  font: 500 17px/1.5 var(--f-mono);
  transition: border-color .15s, box-shadow .15s;
}
.field::placeholder { color: var(--ink-3); font: 400 15px/1.5 var(--f-sans); }
.field:hover { border-color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(240, 68, 31, .16); }
.pw-wrap .field { padding-right: 48px; }
.pw-eye { position: absolute; right: 5px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: none; font-size: 19px; color: var(--ink-2); }
.hint { margin: 8px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.hint.center { text-align: center; }
.hint b { color: var(--ink); }

/* IP */
.ip-input { resize: none; min-height: 88px; max-height: 260px; line-height: 1.7; overflow-y: auto; }
.slip-sec[data-state="current"] .ip-input:not(:focus) { border-color: var(--brand); border-style: dashed; }
.slip-sec[data-state="done"] .ip-input { border-color: var(--go); }
.slip-sec[data-state="error"] .ip-input { border-color: var(--warn); }
.slip[data-stamp="owned"] .ip-input { border-color: var(--brand); }
.slip[data-stamp="owned"] .slip-sec[data-step="2"] .step-dot { background: var(--brand); color: #fff; }
.ip-meta { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ip-meta-r { display: flex; align-items: center; gap: 10px; }
.add-ip { padding: 3px 10px; border-radius: 999px; background: var(--blue-soft); }
.add-ip:hover { text-decoration: none; background: #D6E3FD; }
#selectionCount { font: 700 13px var(--f-mono); color: var(--ink-2); white-space: nowrap; background: #F1ECE2; padding: 3px 9px; border-radius: 999px; }
.help-btn {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 0;
  font-size: 14px; font-weight: 650; color: var(--blue);
}
.help-btn:hover { text-decoration: underline; }
.retry { margin-top: 8px; color: var(--brand-d); }
.ip-help { margin-top: 10px; padding: 14px 16px; border-radius: var(--r); background: var(--blue-soft); font-size: 14px; line-height: 1.7; animation: drop .25s var(--ease); }
.ip-help-title { margin: 0 0 4px; font-weight: 700; }
.ip-help ol { margin: 0; padding-left: 20px; color: var(--ink-2); }
.ip-help li { margin: 3px 0; }
.ip-help li b { color: var(--ink); }
.ip-help-warn { margin: 8px 0 0; display: flex; gap: 6px; color: var(--warn); font-weight: 600; font-size: 13px; }
.dedup-hint { color: var(--warn); font-weight: 600; }

/* 校验提示 */
.alert {
  margin-top: 10px; padding: 10px 12px 10px 38px; position: relative;
  border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.55;
  animation: drop .22s var(--ease);
}
.alert::before { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; text-align: center; font: 400 18px/18px 'remixicon'; }
.alert-info { background: #F1ECE2; color: var(--ink-2); }
.alert-info::before { content: '\eec6'; animation: spin 1s linear infinite; }
.alert-success { background: var(--go-soft); color: var(--go-d); }
.alert-success::before { content: '\eb80'; }
.alert-warning { background: var(--warn-soft); color: #9A5200; }
.alert-warning::before { content: '\eca0'; }
.alert-error { background: var(--brand-soft); color: var(--brand-d); }
.alert-error::before { content: '\eb96'; }
.alert .alert-link {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 6px;
  color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap;
}
.alert .alert-link:hover { opacity: .8; }

/* 印章（盖在 IP 区） */
.stamp {
  position: absolute; right: -6px; top: -12px; z-index: 3;
  width: 100px; height: 100px;
  color: var(--go);
  pointer-events: none;
  opacity: 0; transform: rotate(-16deg) scale(1.7);
  mix-blend-mode: multiply;
}
.stamp svg { width: 100%; height: 100%; display: block; filter: url(#ink); font-family: var(--f-sans); }
.stamp .stamp-owned { display: none; }
.slip[data-stamp="ready"] .stamp, .slip[data-stamp="owned"] .stamp { animation: thunk .42s cubic-bezier(.5, 0, .3, 1.4) forwards; }
.slip[data-stamp="owned"] .stamp { color: var(--brand-d); }
.slip[data-stamp="owned"] .stamp .stamp-ok { display: none; }
.slip[data-stamp="owned"] .stamp .stamp-owned { display: inline; }

/* 多台优惠 */
.tiers { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.tiers-cap { flex-shrink: 0; font-size: 13px; font-weight: 700; color: #8A6A00; display: flex; align-items: center; gap: 4px; }
.tiers-cap i { color: #E0A800; }
.rules-grid { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.rule-card {
  text-align: center; padding: 5px 0 4px; border-radius: 8px;
  background: #F6F2EA; transition: background .2s, transform .2s var(--pop);
}
.rule-card b { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.rule-card i { display: block; font-style: normal; font-size: 11px; color: var(--ink-3); line-height: 1.3; }
.rule-card.highlight { background: var(--yellow); transform: scale(1.06); }
.rule-card.highlight i { color: var(--ink); font-weight: 700; }

/* 付款方式 */
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.payment-method-card {
  position: relative; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: var(--r);
  border: 2px solid var(--line);
  font-size: 16px; font-weight: 700; color: var(--ink-2); white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.payment-method-card input { position: absolute; opacity: 0; pointer-events: none; }
.payment-method-card i { font-size: 24px; }
.pay-wx i { color: var(--wx); }
.pay-ali i { color: var(--ali); }
.payment-method-card:hover { border-color: var(--line-2); }
.payment-method-card.active { color: var(--ink); }
.pay-wx.active { border-color: var(--wx); background: #E9F9F0; }
.pay-ali.active { border-color: var(--ali); background: #EAF2FF; }
.payment-method-card.active::after {
  content: '\eb7b'; margin-left: auto; font: 400 14px/1 'remixicon';
  width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff;
}
.pay-wx.active::after { background: var(--wx); }
.pay-ali.active::after { background: var(--ali); }
.payment-method-card:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 结算 */
.checkout { margin-top: 22px; padding-top: 16px; border-top: 2px dashed var(--line); }
.slip-lines { font-size: 14.5px; }
.ln { display: flex; justify-content: space-between; align-items: baseline; padding: 3px 0; }
.ln > span:first-child { color: var(--ink-2); }
.ln > span:last-child { font-weight: 700; }
.ln-off > span:last-child { background: var(--yellow); padding: 0 6px; border-radius: 4px; }
.ln-saved > span { color: var(--go-d) !important; font-weight: 700; }

.slip-total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.slip-total .label { font-size: 16px; font-weight: 800; padding-bottom: 6px; }
.pay-amount { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.pay-amount i { font-style: normal; font-size: 22px; margin-right: 2px; vertical-align: 12px; }

/* 主按钮 */
.pay-btn {
  position: relative; overflow: hidden; width: 100%;
  margin-top: 18px; height: 60px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 14px;
  background: var(--brand); color: #fff;
  font-size: 19px; font-weight: 800; letter-spacing: .08em;
  box-shadow: 0 5px 0 var(--brand-d), 0 12px 24px -10px rgba(240, 68, 31, .7);
  transition: transform .12s, box-shadow .12s, background .2s;
}
.pay-btn::after { content: '→'; font-weight: 800; transition: transform .2s var(--ease); }
.pay-btn:not(:disabled):hover { background: #FF4F28; }
.pay-btn:not(:disabled):hover::after { transform: translateX(4px); }
.pay-btn:not(:disabled):active { transform: translateY(4px); box-shadow: 0 1px 0 var(--brand-d), 0 4px 10px -6px rgba(240, 68, 31, .7); }
.pay-btn:disabled {
  cursor: not-allowed; background: #ECE6DA; color: var(--ink-3);
  box-shadow: 0 5px 0 #DCD4C4; letter-spacing: .04em; font-size: 17px;
}
.pay-btn:disabled::after { content: none; }
.slip[data-ready="1"] .pay-btn:not(:disabled)::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: skewX(-20deg); animation: shine 2.6s ease-in-out infinite;
}
.pay-btn[aria-busy="true"]::after { content: ''; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.plan-restriction { margin: 14px 0 0; font-size: 13px; color: var(--ink-3); text-align: center; }

.slip-foot { margin-top: 18px; padding-top: 14px; border-top: 2px dashed var(--line); display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.slip-foot span { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.slip-foot span:nth-child(1) i { color: var(--go); }
.slip-foot span:nth-child(2) i { color: #E0A800; }
.slip-foot span:nth-child(3) i { color: var(--blue); }
.slip-foot i { font-size: 16px; }

/* 订单存根 */
.stub { margin-top: 24px; padding: 14px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--card); border: 2px dashed var(--brand); border-radius: var(--r); animation: drop .3s var(--ease); }
.stub-body { flex: 1; min-width: 0; }
.stub-body strong { font-size: 14px; color: var(--brand-d); }
.stub-body p { margin: 2px 0 0; font: 700 15px var(--f-mono); word-break: break-all; }
.stub-act { display: flex; gap: 8px; }
.stub-act button, .stub-act a { display: inline-flex; align-items: center; gap: 3px; padding: 7px 12px; border: 2px solid var(--ink); border-radius: 8px; background: none; font-size: 13px; font-weight: 700; text-decoration: none; }
.stub-act button:hover, .stub-act a:hover { background: var(--ink); color: #fff; }
.copy-feedback { width: 100%; font-size: 12.5px; font-weight: 600; color: var(--go-d); }
.copy-feedback:empty { display: none; }

/* ───────────────────────── 常见问题 ───────────────────────── */
.notice {
  max-width: var(--wrap); margin: 0 auto;
  padding: 72px 32px 88px;
  display: grid; grid-template-columns: 200px minmax(0, 1fr) 340px; column-gap: 56px; align-items: start;
  border-top: 2px solid var(--ink);
}
.notice-title { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border-radius: var(--r); border: 2px solid transparent; transition: border-color .2s; }
.faq details[open] { border-color: var(--ink); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-size: 17px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '\ea4e'; margin-left: auto; flex-shrink: 0; width: 1em; height: 1em; font: 400 22px/1 'remixicon'; color: var(--ink-3); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: rotate(180deg); color: var(--brand); }
.q-no { width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand-d); font-size: 13px; font-weight: 800; }
.faq details[open] .q-no { background: var(--brand-d); color: #fff; }
.faq p { margin: -4px 0 0; padding: 0 18px 18px 56px; font-size: 15px; line-height: 1.8; color: var(--ink-2); }

.windows { display: flex; flex-direction: column; gap: 10px; }
.windows a {
  display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: var(--r);
  background: var(--card); text-decoration: none;
  border: 2px solid transparent;
  transition: border-color .18s, transform .18s var(--ease);
}
.w-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #F1ECE2; font-size: 20px; transition: background .18s, color .18s; }
.w-name { display: flex; flex-direction: column; font-size: 17px; font-weight: 750; line-height: 1.3; }
.w-name small { font-size: 13px; font-weight: 400; color: var(--ink-2); margin-top: 2px; }
.windows a > i:last-child { font-size: 20px; color: var(--ink-3); transition: transform .2s var(--ease), color .2s; }
.windows a:hover { border-color: var(--ink); transform: translateX(4px); }
.windows a:hover .w-ic { background: var(--yellow); }
.windows a:hover > i:last-child { color: var(--ink); transform: translateX(3px); }

/* ───────────────────────── 页脚 ───────────────────────── */
.end { max-width: var(--wrap); margin: 0 auto; padding: 40px 32px 52px; text-align: center; border-top: 2px dashed var(--line-2); }
.end-thanks { margin: 0 0 14px; font-size: 14px; font-weight: 600; letter-spacing: .3em; color: var(--ink-3); }
.barcode {
  display: block; margin: 0 auto;
  background: repeating-linear-gradient(90deg,
    var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px,
    var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px,
    var(--ink) 16px 17px, transparent 17px 19px, var(--ink) 19px 22px, transparent 22px 25px);
}
.barcode-wide { width: 200px; height: 30px; opacity: .5; }
.end-row { margin-top: 20px; display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.end-row a { color: var(--ink-2); text-decoration: none; }
.end-row a:hover { color: var(--ink); text-decoration: underline; }

/* ───────────────────────── 付款弹窗 ───────────────────────── */
.modal-overlay { position: fixed; inset: 0; z-index: 1000; display: none; align-items: flex-start; justify-content: center; padding: 8vh 16px 24px; overflow-y: auto; background: rgba(23, 21, 15, .62); }
.modal-overlay.active { display: flex; animation: fade .2s ease-out; }
.modal { position: relative; width: min(372px, 100%); }
.printer-slot { position: relative; z-index: 2; height: 16px; margin: 0 -18px; background: #2A2722; border-radius: 8px; box-shadow: inset 0 -4px 0 #0E0D0B, 0 6px 16px rgba(0, 0, 0, .3); }
.modal-paper { position: relative; margin: -6px 6px 0; padding: 26px 24px 24px; background: var(--card); transform-origin: top; }
.modal-overlay.active .modal-paper { animation: print .55s var(--ease); }
.modal-paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -9px; height: 9px; background: radial-gradient(circle at 50% 100%, transparent 6px, var(--card) 6.5px) 0 0 / 14px 9px repeat-x; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 2px dashed var(--line); }
.modal-cap { display: inline-block; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-d); padding: 2px 8px; border-radius: 6px; }
.modal-title { margin: 6px 0 0; font-size: 24px; font-weight: 800; }
.modal-close { width: 38px; height: 38px; flex-shrink: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: #F1ECE2; font-size: 20px; }
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-body { padding-top: 18px; }
.modal-loading { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 36px 0 28px; }
.modal-loading p { margin: 0; font-size: 14px; color: var(--ink-2); }
.printing { width: 180px; display: flex; flex-direction: column; gap: 8px; }
.printing i { height: 8px; border-radius: 4px; background: #EFEAE0; animation: printline 1.4s var(--ease) infinite; transform-origin: left; }
.printing i:nth-child(2) { width: 80%; animation-delay: .15s; }
.printing i:nth-child(3) { width: 92%; animation-delay: .3s; }
.printing i:nth-child(4) { width: 56%; animation-delay: .45s; }
.pay-amount-box { display: flex; justify-content: space-between; align-items: flex-end; }
.pay-amount-box > span { font-size: 15px; font-weight: 700; padding-bottom: 6px; }
.pay-amount-box strong { font-size: 38px; font-weight: 800; line-height: 1; color: var(--brand-d); }
.pay-amount-box strong i { font-style: normal; font-size: 18px; vertical-align: 10px; margin-right: 2px; }
.modal-qr-wrapper { --qr-scan-rgb: 7, 193, 96; }
.modal-qr-wrapper[data-provider="alipay"],
.modal-qr-wrapper:has(.ri-alipay-fill) { --qr-scan-rgb: 22, 119, 255; }
.qr-code-box {
  position: relative; isolation: isolate; margin: 18px auto 0;
  width: fit-content; max-width: 100%; padding: 14px;
  background: #fff;
  border: 2px solid rgba(var(--qr-scan-rgb), .28);
  border-radius: 14px;
  box-shadow: 0 8px 24px -10px rgba(var(--qr-scan-rgb), .28);
}
.qr-code-box canvas { display: block; width: 220px; max-width: 100%; height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.qr-corners { position: absolute; inset: -3px; pointer-events: none; z-index: 2; }
.qr-corners i { position: absolute; width: 22px; height: 22px; border-color: rgb(var(--qr-scan-rgb)); border-style: solid; border-width: 0; }
.qr-corners i:nth-child(1) { top: 0; left: 0; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 14px; }
.qr-corners i:nth-child(2) { top: 0; right: 0; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 14px; }
.qr-corners i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 14px; }
.qr-corners i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 14px; }
/* Dual-layer scan effect: multiply wake keeps black QR modules pure #000; 4.5px leading laser bar sweeps smoothly. */
.qr-scan { display: none; position: absolute; inset: 6px; border-radius: 8px; overflow: hidden; pointer-events: none; z-index: 1; }
.qr-scan::before,
.qr-scan::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  transform: translateY(-100%);
}
.qr-scan::before {
  mix-blend-mode: multiply;
  background: linear-gradient(
    to top,
    rgba(var(--qr-scan-rgb), .30) 0%,
    rgba(var(--qr-scan-rgb), .13) 34px,
    rgba(var(--qr-scan-rgb), .03) 64px,
    transparent 78px
  );
}
.qr-scan::after {
  left: 2px; right: 2px;
  background: linear-gradient(
    90deg,
    rgba(var(--qr-scan-rgb), .18) 0%,
    rgba(var(--qr-scan-rgb), .92) 12%,
    rgb(var(--qr-scan-rgb)) 50%,
    rgba(var(--qr-scan-rgb), .92) 88%,
    rgba(var(--qr-scan-rgb), .18) 100%
  ) bottom / 100% 4.5px no-repeat;
  filter: drop-shadow(0 0 7px rgba(var(--qr-scan-rgb), .72)) drop-shadow(0 2px 4px rgba(var(--qr-scan-rgb), .35));
}
@keyframes qr-scan {
  0% { transform: translateY(-100%); opacity: 0; }
  8% { opacity: 1; }
  86% { transform: translateY(0); opacity: 1; }
  95%, 100% { transform: translateY(0); opacity: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal-overlay.active .qr-scan { display: block; }
  .modal-overlay.active .qr-scan::before,
  .modal-overlay.active .qr-scan::after { animation: qr-scan 2.4s cubic-bezier(.4, 0, .2, 1) infinite; }
}
.pay-instruction {
  margin: 16px auto 0; width: fit-content; max-width: 100%;
  padding: 6px 16px; border-radius: 999px;
  background: rgba(var(--qr-scan-rgb), .10);
  display: flex; justify-content: center; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 750; color: var(--ink);
}
.pay-instruction i { font-size: 26px; line-height: 1; }
.modal-order-record { margin-top: 16px; padding-top: 14px; border-top: 2px dashed var(--line); display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center; }
.modal-order-record > span:first-child { grid-column: 1 / -1; font-size: 12px; color: var(--ink-3); }
.modal-order-record strong { font: 700 14px var(--f-mono); word-break: break-all; }
.modal-order-record button { display: inline-flex; align-items: center; gap: 3px; padding: 6px 10px; border: 2px solid var(--ink); border-radius: 8px; background: none; font-size: 12.5px; font-weight: 700; transition: background .15s, border-color .15s, color .15s; }
.modal-order-record button:hover { background: var(--ink); color: #fff; }
.stub-act button.is-copied,
.modal-order-record button.is-copied { background: var(--go); border-color: var(--go); color: #fff; }
.modal-order-record .copy-feedback { grid-column: 1 / -1; }

/* ───────────────────────── 动画 ───────────────────────── */
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(240, 68, 31, .45); } 70%, 100% { box-shadow: 0 0 0 10px rgba(240, 68, 31, 0); } }
@keyframes pop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
@keyframes thunk { 0% { opacity: 0; transform: rotate(-24deg) scale(1.8); } 60% { opacity: .95; transform: rotate(-13deg) scale(.94); } 100% { opacity: .85; transform: rotate(-14deg) scale(1); } }
@keyframes shine { 0% { left: -40%; } 55%, 100% { left: 120%; } }
@keyframes drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: translateY(-24px); } to { clip-path: inset(0 0 -20px 0); transform: none; } }
@keyframes printline { 0% { transform: scaleX(0); background: var(--ink); } 50% { transform: scaleX(1); background: var(--ink); } 100% { transform: scaleX(1); background: #EFEAE0; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes feed { from { opacity: 0; clip-path: inset(0 0 100% 0); transform: translateY(-30px); } to { opacity: 1; clip-path: inset(-90px -90px -90px -90px); transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .hero-head > * { animation: rise .6s var(--ease) both; }
  .hero-head > :nth-child(2) { animation-delay: .05s; }
  .hero-head > :nth-child(3) { animation-delay: .1s; }
  .hero-head > :nth-child(4) { animation-delay: .15s; }
  .hero-more { animation: rise .6s .2s var(--ease) both; }
  .hero-slip .slip-wrap { animation: feed .85s .1s var(--ease) both; }
  .doodle path { stroke-dasharray: 200; stroke-dashoffset: 200; animation: draw .8s 1s var(--ease) forwards; }
  .doodle-note { animation: rise .5s 1.3s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .slip[data-stamp="ready"] .stamp, .slip[data-stamp="owned"] .stamp { opacity: .85; transform: rotate(-14deg); }
}

/* ───────────────────────── 响应式 ───────────────────────── */
@media (max-width: 1200px) {
  .doodle, .doodle-note { display: none; }
  .hero { column-gap: 56px; }
  .notice { grid-template-columns: minmax(0, 1fr) 320px; row-gap: 28px; }
  .notice-title { grid-column: 1 / -1; }
}
@media (max-width: 1000px) {
  .bar { flex-wrap: wrap; row-gap: 12px; padding: 16px 20px 8px; }
  .bar-docs { margin-left: auto; }
  .bar-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; justify-content: space-between; }
  .bar-nav::-webkit-scrollbar { display: none; }
  .bar-nav a { flex: 1 0 auto; justify-content: center; }

  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "slip" "more"; grid-template-rows: auto; padding: 24px 20px 56px; row-gap: 36px; }
  .hero-slip { width: 100%; max-width: 540px; justify-self: center; }
  /* 手机上流程改成横向一排，节省高度 */
  .flow { display: grid; grid-template-columns: repeat(4, 1fr); max-width: none; margin-top: 28px; }
  .flow li { flex-direction: column; text-align: center; gap: 8px; padding: 0; }
  .flow li:not(:last-child)::after { left: calc(50% + 26px); right: calc(-50% + 26px); top: 21px; bottom: auto; width: auto; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
  .flow li.is-done:not(:last-child)::after { background: var(--go); }
  .flow-txt b { font-size: 14px; }
  .flow-txt small { display: none; }

  .notice { grid-template-columns: minmax(0, 1fr); padding: 56px 20px 64px; }
  .notice-title br { display: none; }
  .notice-title { font-size: 32px; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .bar-docs { display: none; }
  .bar-nav a { padding: 7px 10px; font-size: 14px; }
  h1 { font-size: clamp(38px, 11.5vw, 54px); }
  .lead { font-size: 16px; margin-top: 16px; }
  .flow-dot { width: 40px; height: 40px; font-size: 16px; }
  .flow li:not(:last-child)::after { top: 19px; left: calc(50% + 24px); right: calc(-50% + 24px); }

  .slip { padding: 24px 16px 18px; }
  .slip-head { flex-direction: column; gap: 2px; }
  .plans { gap: 10px; }
  .plan { padding: 12px 11px 11px; }
  .plan-price { font-size: 22px; }
  .plan-desc { font-size: 12px; }
  .tiers { flex-direction: column; align-items: stretch; gap: 6px; }
  .stamp { width: 88px; height: 88px; }
  .pay-amount { font-size: 40px; }
  .slip-foot { justify-content: center; gap: 6px 14px; }
  .payment-method-card { padding: 11px 10px; gap: 6px; font-size: 15px; }
  .payment-method-card i { font-size: 22px; }
  .payment-method-card.active::after { width: 20px; height: 20px; }
  .faq p { padding-left: 18px; }
  .versions { margin-top: 24px; }
  .ver-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ver-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 10px; padding: 14px 14px 10px; }
  .ver-item dt { margin-top: 0; }
  .ver-num { margin-top: 0 !important; align-self: center; font-size: 22px; }
  .ver-date { grid-column: 1 / -1; margin-top: 4px !important; }
  .modal-overlay { padding-top: 4vh; }
  .printer-slot { margin: 0 -8px; }
}


/* ───────────────────────── v2.2 补充 ───────────────────────── */
h1, .lead, .notice-title { text-wrap: balance; }
.noscript { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; background: var(--warn-soft); color: #9A5200; font-size: 14px; font-weight: 600; }
.ip-help code b { color: var(--brand-d); }

/* 密码没设就点付款：晃一下提醒 */
.password-group.shake { animation: shake .4s var(--ease); }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }

/* 手机底部悬浮付款条：付款按钮不在屏幕里时出现 */
.sticky-pay { display: none; }
@media (max-width: 1000px) {
  .sticky-pay {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 84px calc(10px + env(safe-area-inset-bottom)) 16px;
    background: #fff;
    border-top: 2px solid var(--ink);
    transform: translateY(110%); visibility: hidden;
    transition: transform .28s var(--ease), visibility 0s .28s;
  }
  .sticky-pay.is-on { transform: none; visibility: visible; transition: transform .28s var(--ease); }
  .sp-sum { display: flex; flex-direction: column; line-height: 1.1; flex-shrink: 0; }
  .sp-sum small { font-size: 12px; color: var(--ink-3); font-weight: 600; }
  .sp-sum b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
  .sp-sum b i { font-style: normal; font-size: 14px; margin-right: 1px; }
  .sp-btn {
    flex: 1; min-width: 0; height: 46px; padding: 0 12px;
    border: 0; border-radius: 12px;
    background: var(--brand); color: #fff;
    font-size: 16px; font-weight: 800; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    box-shadow: 0 3px 0 var(--brand-d);
  }
  .sp-btn:active { transform: translateY(3px); box-shadow: none; }
  .sp-btn.is-wait { background: #ECE6DA; color: var(--ink-2); box-shadow: 0 3px 0 #DCD4C4; }
  body.has-sticky .end { padding-bottom: 96px; }
}

/* 密码没设时，提示文字变红更显眼 */
.slip-sec[data-step="1"][data-state="error"] .password-group .hint { color: var(--brand-d); font-weight: 700; }
