/* ============================================================
 * skin_5 — 小红书风
 * 关键词：米白底 · 小红书红(#FF2442) · Polaroid 拍立得卡 · emoji 贴纸装饰
 * 保留所有 id/class 钩子。
 * ============================================================ */

:root {
  --xhs-red: #FF2442;
  --xhs-red-2: #e51937;
  --xhs-red-soft: rgba(255, 36, 66, 0.10);
  --xhs-pink: #ffe5ea;
  --xhs-cream: #fffaf3;     /* 主底 暖白 */
  --xhs-cream-2: #fff4e6;   /* 二级 暖橙白 */
  --xhs-yellow: #ffe082;    /* 高亮黄 */
  --xhs-mint: #b6e8d0;      /* 清新薄荷 */

  --bg: var(--xhs-cream);
  --bg-2: var(--xhs-cream-2);
  --panel: #ffffff;
  --panel-2: #fffaf3;
  --panel-3: #fff4e6;
  --border: #f1e4d6;        /* 暖灰边 */
  --border-strong: #e5d3bf;
  --text: #2c1d12;          /* 深暖棕 */
  --text-2: #4d3a28;
  --muted: #8a7766;
  --muted-2: #b3a08c;

  --primary: var(--xhs-red);
  --primary-2: var(--xhs-red-2);

  --ok: #36c98c;
  --warn: #ffaa3a;
  --err: var(--xhs-red);
  --gold: #d99a2b;

  --shadow-xs: 0 1px 2px rgba(80, 50, 20, 0.04);
  --shadow-sm: 0 8px 22px rgba(80, 50, 20, 0.08);
  --shadow: 0 14px 36px rgba(80, 50, 20, 0.10);
  --shadow-lg: 0 28px 70px rgba(80, 50, 20, 0.16);

  --radius-cap: 999px;
  --radius-xl: 26px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC",
       "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ============ 暖色阳光背景 ============ */
body::before {
  content: "";
  position: fixed;
  inset: -10% -10% auto -10%;
  height: 80vh;
  pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(255, 36, 66, 0.10), transparent 70%) -8vw -10vh / 70vw 60vh no-repeat,
    radial-gradient(closest-side, rgba(255, 224, 130, 0.20), transparent 70%) 78vw -8vh / 70vw 60vh no-repeat,
    radial-gradient(closest-side, rgba(182, 232, 208, 0.16), transparent 70%) 50vw 50vh / 70vw 50vh no-repeat;
  z-index: 0;
}

body > * { position: relative; z-index: 1; }

a { color: var(--primary); text-decoration: none; font-weight: 600; }
a:hover { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }

/* ============ Topbar ============ */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(255, 250, 243, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand { display: flex; align-items: center; gap: 12px; }

.brand-title {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--text);
}

.brand-sub {
  color: var(--muted);
  font-size: 12.5px;
  margin-top: 2px;
  letter-spacing: 0.2px;
}

.logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--xhs-red) 0%, #ff5c75 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 36, 66, 0.32);
  position: relative;
}

/* logo 右上小爱心装饰 */
.logo::after {
  content: "♥";
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: #fff;
  color: var(--xhs-red);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(255, 36, 66, 0.28);
}

.top-actions { display: flex; align-items: center; gap: 8px; }

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-cap);
  font-weight: 700;
}

.platform-tag {
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 11px;
  border-radius: var(--radius-cap);
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.platform-tag[data-p="ios"]     { color: #5ec1c8; background: rgba(94, 193, 200, 0.14); border-color: #b8e3e6; }
.platform-tag[data-p="android"] { color: #36c98c; background: rgba(54, 201, 140, 0.14); border-color: #b6e8d0; }

/* ============ Buttons ============ */
.btn-primary,
.btn-ghost {
  border-radius: var(--radius-cap);
  padding: 12px 26px;
  font: inherit;
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 0;
  transition: background 0.15s, transform 0.06s, box-shadow 0.18s;
}

.btn-primary {
  background: var(--xhs-red);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255, 36, 66, 0.32);
}
.btn-primary:hover { background: var(--xhs-red-2); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-ghost {
  background: #ffffff;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--xhs-red); color: var(--xhs-red); }
.btn-ghost[disabled] { opacity: 0.5; cursor: not-allowed; }

/* "获取 token"：暖黄色辅按钮 */
.btn-grad-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-cap);
  padding: 12px 26px;
  font: inherit;
  font-weight: 800;
  font-size: 14.5px;
  letter-spacing: 0.2px;
  cursor: pointer;
  color: #5b4116;
  background: linear-gradient(135deg, var(--xhs-yellow) 0%, #ffd070 100%);
  box-shadow: 0 8px 18px rgba(255, 200, 64, 0.36);
  transition: transform 0.06s, box-shadow 0.18s;
}
.btn-grad-gold:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(255, 200, 64, 0.44); }
.btn-grad-gold:active { transform: translateY(1px); }
.btn-grad-gold[disabled] { opacity: 0.5; cursor: not-allowed; }

.btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: currentColor;
}

.btn-grad-cyan,
.btn-grad-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  border: 0;
  border-radius: var(--radius-cap);
  padding: 14px 18px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
  transition: filter 0.15s, transform 0.06s;
}
.btn-grad-cyan {
  background: var(--xhs-red);
  box-shadow: 0 10px 22px rgba(255, 36, 66, 0.32);
}
.btn-grad-cyan:hover { background: var(--xhs-red-2); transform: translateY(-1px); }
.btn-grad-orange {
  background: linear-gradient(135deg, #ffaa3a 0%, #ff7a45 100%);
  box-shadow: 0 10px 22px rgba(255, 122, 69, 0.32);
}
.btn-grad-orange:hover { transform: translateY(-1px); }
.btn-grad-cyan:active,
.btn-grad-orange:active { transform: translateY(1px); }
.btn-grad-cyan[disabled],
.btn-grad-orange[disabled] { opacity: 0.5; cursor: not-allowed; }

.bg-icon {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.30);
  font-weight: 800;
  font-size: 13px;
}

.link-btn {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 8px;
}
.link-btn:hover { color: var(--xhs-red); }

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
}

/* ============ Container ============ */
.container {
  max-width: 1100px;
  margin: 32px auto 0;
  padding: 0 24px 16px;
}

/* ============ Hero ============ */
.hero {
  max-width: 1100px;
  margin: 50px auto 0;
  padding: 0 24px;
  position: relative;
}

/* hero 周围"emoji 贴纸"装饰 */
.hero::before {
  content: "♥";
  position: absolute;
  top: 18px;
  left: 8%;
  font-size: 38px;
  color: var(--xhs-red);
  opacity: 0.85;
  transform: rotate(-12deg);
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(255, 36, 66, 0.30);
}
.hero::after {
  content: "✿";
  position: absolute;
  top: 60px;
  right: 9%;
  font-size: 36px;
  color: #ffaa3a;
  opacity: 0.85;
  transform: rotate(15deg);
  pointer-events: none;
  text-shadow: 0 4px 12px rgba(255, 170, 58, 0.32);
}

.hero-inner {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  display: block;
  text-align: center;
}

.hero-headline { margin: 0 auto; max-width: 760px; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: var(--xhs-red);
  background: var(--xhs-red-soft);
  border: 1.5px solid rgba(255, 36, 66, 0.4);
  border-radius: var(--radius-cap);
  padding: 6px 16px;
  margin-bottom: 22px;
  font-weight: 800;
}

.hero-tag::before {
  content: "♥";
  font-size: 14px;
}

.hero-title {
  margin: 0 auto 18px auto;
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  font-weight: 900;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: normal;
  max-width: 940px;
  position: relative;
}

.hero-grad {
  background-image: linear-gradient(135deg, var(--xhs-red) 0%, #ff7a45 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  position: relative;
}

/* 给渐变词加一条小红书风手写下划线 */
.hero-grad::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: 4px;
  height: 8px;
  background:
    radial-gradient(closest-side, rgba(255, 200, 0, 0.55), transparent 70%);
  pointer-events: none;
  border-radius: 999px;
  z-index: -1;
}

.hero-sub {
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 14px;
  max-width: 600px;
  font-weight: 500;
}

.hero-sub .kw { color: var(--text); font-weight: 700; }
.hero-sub .dot {
  color: var(--xhs-red);
  font-weight: 800;
  user-select: none;
}

/* 套餐三卡：Polaroid 拍立得风 + 轻微旋转 */
.plans {
  list-style: none;
  margin: 42px auto 16px auto;
  padding: 12px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 940px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: #ffffff;
  border: 1px solid #f5e9d8;
  border-radius: var(--radius-lg);
  padding: 18px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow:
    0 2px 6px rgba(80, 50, 20, 0.06),
    0 12px 30px rgba(80, 50, 20, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s, border-color 0.18s;
  text-align: left;
  min-width: 0;
}

/* 三张卡轻微"贴纸般"错位 */
.plan:nth-child(1) { transform: rotate(-1.2deg); }
.plan:nth-child(2) { transform: rotate(0.4deg); }
.plan:nth-child(3) { transform: rotate(1.2deg); }

.plan:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow:
    0 6px 16px rgba(80, 50, 20, 0.10),
    0 20px 40px rgba(255, 36, 66, 0.14);
  border-color: rgba(255, 36, 66, 0.4);
}

/* 拍立得右上角"图钉" */
.plan::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 22px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #ffd6dd 0%, var(--xhs-red) 75%);
  box-shadow: 0 4px 8px rgba(255, 36, 66, 0.35);
  z-index: 2;
}

.plan-name {
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.plan-name::after {
  /* 关键词下加亮黄高亮带（小红书风手写感） */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 6px;
  background: linear-gradient(90deg, transparent, rgba(255, 224, 130, 0.55), transparent);
  z-index: -1;
  border-radius: 999px;
}

.plan-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

ol.plan-list { counter-reset: ploi; }

ol.plan-list li {
  counter-increment: ploi;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
ol.plan-list li::before {
  content: counter(ploi);
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--xhs-red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

ul.plan-list li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.plan-list-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  column-gap: 6px;
  row-gap: 6px;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.plan-list-row::-webkit-scrollbar { display: none; }
.plan-list-row li { white-space: nowrap; }
.plan-list-row li:not(:last-child)::after {
  content: "·";
  margin-left: 6px;
  color: var(--xhs-red);
  font-weight: 800;
}

.plan-tag {
  position: absolute;
  top: -10px;
  left: 14px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  color: #fff;
  background: var(--xhs-red);
  padding: 3px 10px;
  border-radius: var(--radius-cap);
  line-height: 1.4;
  box-shadow: 0 4px 10px rgba(255, 36, 66, 0.4);
  transform: rotate(-6deg);
  z-index: 3;
}

.plan-hot {
  background: linear-gradient(180deg, #fff7e6 0%, #ffffff 60%);
  border-color: rgba(255, 200, 64, 0.4);
}

/* ============ Stepper ============ */
.stepper {
  list-style: none;
  margin: 50px 0 30px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.step {
  display: flex;
  align-items: center;
  position: relative;
}

.step + .step::before {
  content: "";
  display: block;
  width: 64px;
  height: 2.5px;
  background: var(--border-strong);
  margin: 0 8px;
  border-radius: 2px;
}

.step.done + .step::before,
.step.done::before {
  background: var(--xhs-red);
}

.step .num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #ffffff;
  border: 2.5px solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--muted);
  font-size: 14px;
  transition: all 0.15s;
}

.step.active .num {
  background: var(--xhs-red);
  border-color: var(--xhs-red);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(255, 36, 66, 0.18), 0 6px 14px rgba(255, 36, 66, 0.32);
}

.step.done .num {
  background: var(--xhs-red);
  border-color: var(--xhs-red);
  color: #fff;
}

/* ============ Card / Panel (拍立得卡风) ============ */
.card {
  background: var(--panel);
  border: 1px solid #f5e9d8;
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  box-shadow:
    0 2px 8px rgba(80, 50, 20, 0.05),
    0 16px 40px rgba(80, 50, 20, 0.08);
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* 卡片左上角"小贴纸"角标 */
.card::before {
  content: "✦";
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 18px;
  color: var(--xhs-yellow);
  pointer-events: none;
  text-shadow: 0 2px 6px rgba(255, 200, 64, 0.4);
}

.panel-title {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.012em;
  color: var(--text);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.panel-head .panel-title { margin: 0; }

.hint {
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: 14px;
}

.field { display: block; margin-bottom: 18px; }

.label {
  display: block;
  font-size: 12.5px;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.label::before {
  content: "♥ ";
  color: var(--xhs-red);
  font-weight: 900;
  margin-right: 2px;
}

input[type="text"],
textarea {
  width: 100%;
  background: #fffaf3;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder { color: #b8a896; }

input:focus,
textarea:focus {
  border-color: var(--xhs-red);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(255, 36, 66, 0.14);
}

.err-line {
  display: block;
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--err);
  font-weight: 600;
}

/* ============ Alert (banner) ============ */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: #ffffff;
  font-size: 14px;
  margin-bottom: 18px;
  animation: bannerIn 0.18s ease-out;
  box-shadow: var(--shadow-xs);
}

.alert-ok {
  border-color: rgba(54, 201, 140, 0.5);
  background: rgba(54, 201, 140, 0.08);
  color: #1c7d52;
}

.alert-err {
  border-color: rgba(255, 36, 66, 0.5);
  background: rgba(255, 36, 66, 0.06);
  color: #b3001a;
}

.alert-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  background: rgba(54, 201, 140, 0.22);
  color: #1c7d52;
}

.alert-err .alert-icon {
  background: rgba(255, 36, 66, 0.18);
  color: #b3001a;
}

.alert-text { flex: 1; font-weight: 700; }

.alert-close {
  background: transparent;
  border: 0;
  color: inherit;
  opacity: 0.5;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}
.alert-close:hover { opacity: 1; }

@keyframes bannerIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============ Bound-account card ============ */
.bind-card {
  max-width: 720px;
  margin: 0 auto;
  border: 1.5px solid var(--border);
  background: linear-gradient(180deg, #fff5e8 0%, #ffffff 60%);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: visible;
}

.bind-card::before {
  content: "💝";
  position: absolute;
  top: -14px;
  left: 24px;
  font-size: 28px;
  filter: drop-shadow(0 4px 8px rgba(255, 36, 66, 0.25));
}

.bind-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  padding-left: 36px;
}

.bind-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid var(--xhs-red);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--xhs-red);
  background: var(--xhs-red-soft);
}

.bind-sub {
  color: var(--text-2);
  font-size: 15px;
  margin-bottom: 18px;
  line-height: 1.55;
}

.bind-sub b {
  color: var(--xhs-red);
  font-weight: 800;
  word-break: break-all;
}

.bind-tip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-2);
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

.bind-tip-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 200, 64, 0.30);
  color: #b58300;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-style: italic;
  font-family: serif;
  flex-shrink: 0;
}

.update-token {
  margin-top: 4px;
  border-top: 1.5px dashed var(--border-strong);
  padding-top: 18px;
}

.bind-foot { margin-top: 6px; text-align: center; }

/* ============ Modal ============ */
.modal[hidden] { display: none; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(80, 50, 20, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 60px);
}

.modal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xhs-red) 0%, #ff7a45 50%, var(--xhs-yellow) 100%);
  z-index: 1;
}

.modal-wide { max-width: 720px; }
.modal-narrow { max-width: 380px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.modal-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.012em;
}

.modal-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 999px;
}
.modal-close:hover { color: var(--text); background: var(--panel-3); }

.modal-body { padding: 20px; overflow: auto; }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* getToken / confirmCharge 弹窗 */
.gt-head {
  text-align: center;
  padding: 30px 24px 8px;
  position: relative;
}

.gt-icon {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  margin: 0 auto 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--xhs-red) 0%, #ff7a45 100%);
  box-shadow: 0 12px 28px rgba(255, 36, 66, 0.32);
}

.gt-icon-success {
  background: linear-gradient(135deg, var(--ok) 0%, #2bb37c 100%);
  box-shadow: 0 12px 28px rgba(54, 201, 140, 0.32);
}

.gt-title {
  margin: 0 0 8px 0;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: -0.012em;
  color: var(--text);
}

.gt-sub {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}

.gt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 22px;
}

.confirm-list {
  list-style: none;
  margin: 8px 22px 0;
  padding: 14px 18px;
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-2);
}

.confirm-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  padding: 7px 0;
  font-size: 13.5px;
}

.confirm-list li + li { border-top: 1px solid var(--border); }

.confirm-list .ck {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.confirm-list .ck::before {
  content: "♥ ";
  color: var(--xhs-red);
  margin-right: 2px;
}

.confirm-list .cv {
  color: var(--text);
  word-break: break-all;
  font-weight: 700;
}

.confirm-list .cv.muted { color: var(--muted); font-weight: 400; }

.btn-cta {
  appearance: none;
  border: 0;
  cursor: pointer;
  height: 48px;
  border-radius: var(--radius-cap);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  transition: filter 0.15s, transform 0.06s, box-shadow 0.18s;
}
.btn-cta:hover { filter: brightness(1.04); transform: translateY(-1px); }
.btn-cta:active { transform: translateY(1px); }

.btn-cta-success {
  background: linear-gradient(135deg, var(--ok) 0%, #2bb37c 100%);
  box-shadow: 0 8px 18px rgba(54, 201, 140, 0.32);
}

.btn-cta-info {
  background: linear-gradient(135deg, var(--xhs-red) 0%, #ff7a45 100%);
  box-shadow: 0 8px 18px rgba(255, 36, 66, 0.32);
}

.btn-cta-ghost {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}
.btn-cta-ghost:hover {
  filter: none;
  background: var(--panel-3);
  border-color: var(--xhs-red);
  color: var(--xhs-red);
}

/* ============ 卡密查询弹窗 ============ */
.lookup-batch { margin-top: 16px; }

.lookup-stats {
  border: 1.5px solid var(--border);
  background: var(--bg-2);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 12px;
}

.lookup-stats-title {
  font-weight: 900;
  margin-bottom: 6px;
  font-size: 13.5px;
  color: var(--text);
}
.lookup-stats-title::before {
  content: "♥ ";
  color: var(--xhs-red);
}

.lookup-stats-row {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.lookup-stats-row b {
  color: var(--text);
  margin-left: 2px;
  font-weight: 800;
}

.lookup-stats-row .link-btn { margin-left: auto; }

.lookup-stats-row .dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
}

.dot-ok   { background: var(--ok); }
.dot-err  { background: var(--err); }
.dot-mute { background: var(--muted); }

.lookup-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #ffffff;
}

.lookup-item {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) 90px 1fr 1.2fr;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  align-items: center;
  background: #ffffff;
}
.lookup-item:nth-child(even) { background: var(--bg-2); }
.lookup-item:last-child { border-bottom: 0; }

.lookup-item .li-cdk {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
  color: var(--text);
}

.lookup-item .li-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
}
.lookup-item .li-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--muted);
}
.lookup-item.ok   .li-status::before { background: var(--ok); }
.lookup-item.warn .li-status::before { background: var(--warn); }
.lookup-item.err  .li-status::before { background: var(--err); }

.lookup-item .li-email {
  color: #b07a14;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  word-break: break-all;
}

.lookup-item .li-message {
  color: var(--muted);
  font-size: 12px;
  word-break: break-all;
}

@media (max-width: 720px) {
  .lookup-item { grid-template-columns: 1fr; }
}

/* ============ Step 3: 充值结果 ============ */
.result-grid {
  display: grid;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.result-time {
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
  font-weight: 700;
}

.review-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--xhs-red) 0%, #ff7a45 50%, var(--xhs-yellow) 100%);
}

.review-card-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.review-card-title {
  font-size: 12.5px;
  font-weight: 900;
  color: var(--text-2);
  letter-spacing: 0.2px;
}

.review-card-title::before {
  content: "✿ ";
  color: var(--xhs-red);
}

.review {
  list-style: none;
  margin: 0;
  padding: 0;
}

.review li {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 14px 18px;
  font-size: 14px;
}

.review li + li { border-top: 1px solid var(--border); }

.review .rk {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
}

.review .rk::before {
  content: "♥";
  color: var(--xhs-red);
  margin-right: 4px;
  font-size: 11px;
}

.review .rv {
  word-break: break-all;
  color: var(--text);
  font-weight: 700;
}

.review .rv.muted { color: var(--muted); font-weight: 400; }

.mono {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  letter-spacing: 0.3px;
}

.result {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 28px 28px;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--border);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.result::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--xhs-red) 0%, #ff7a45 50%, var(--xhs-yellow) 100%);
}

.result.ok {
  border-color: rgba(54, 201, 140, 0.4);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(54, 201, 140, 0.10), transparent 70%),
    #fff;
}
.result.ok::before { background: linear-gradient(90deg, var(--ok) 0%, #2bb37c 100%); }

.result.warn {
  border-color: rgba(255, 170, 58, 0.42);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(255, 170, 58, 0.10), transparent 70%),
    #fff;
}
.result.warn::before { background: linear-gradient(90deg, var(--warn) 0%, #ff7a45 100%); }

.result.err {
  border-color: rgba(255, 36, 66, 0.5);
  background:
    radial-gradient(420px 160px at 50% 0%, rgba(255, 36, 66, 0.08), transparent 70%),
    #fff;
}

.result-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: var(--bg-2);
  color: var(--text);
  border: 2px solid var(--border);
}

.result.ok .result-icon {
  background: linear-gradient(135deg, var(--ok) 0%, #2bb37c 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(54, 201, 140, 0.32);
}
.result.warn .result-icon {
  background: linear-gradient(135deg, var(--warn) 0%, #ff7a45 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(255, 170, 58, 0.32);
}
.result.err .result-icon {
  background: linear-gradient(135deg, var(--xhs-red) 0%, #ff7a45 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(255, 36, 66, 0.32);
}

.result-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.result-title {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -0.012em;
  color: var(--text);
  margin-bottom: 8px;
}

.result-msg {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 520px;
}

.result-extra {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

.result-tip {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--bg-2);
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.55;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
}

.result-tip a {
  color: var(--xhs-red);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 700;
}

.result-tip-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--xhs-red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-family: serif;
  font-style: italic;
}

.result-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ Footer ============ */
.site-foot {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 28px 24px 40px;
  border-top: 2px dashed var(--border);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.foot-title {
  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: 0.2px;
  margin-bottom: 8px;
  color: var(--text);
}

.foot-title::before {
  content: "♥ ";
  color: var(--xhs-red);
}

.foot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.9;
}

ol.foot-list { list-style: decimal inside; }

.foot-copy {
  margin-top: 22px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

/* ============ 移动端 ============ */
@media (max-width: 760px) {
  .topbar { padding: 12px 18px; }
  .brand-title { font-size: 15px; }
  .brand-sub { font-size: 11.5px; }

  .hero { margin-top: 28px; padding: 0 16px; }
  .hero::before { left: 4%; font-size: 28px; top: 8px; }
  .hero::after { right: 4%; font-size: 26px; top: 32px; }

  .hero-title {
    font-size: clamp(26px, 8vw, 44px);
    word-break: normal;
    overflow-wrap: anywhere;
  }
  .hero-sub { font-size: 14px; }
  .hero-tag { font-size: 11.5px; padding: 4px 12px; margin-bottom: 16px; }

  .plans {
    margin-top: 30px;
    gap: 18px;
    grid-template-columns: 1fr;
    padding-top: 16px;
  }
  /* 手机端取消旋转，单列时不好看 */
  .plan:nth-child(1),
  .plan:nth-child(2),
  .plan:nth-child(3) { transform: rotate(0deg); }
  .plan { padding: 14px 16px 14px 16px; min-width: 0; }
  .plan-name { font-size: 14px; }
  .plan-tag { top: -8px; left: 14px; font-size: 9.5px; padding: 2px 8px; }

  .plan-list-row {
    flex-wrap: wrap;
    overflow-x: visible;
    white-space: normal;
  }
  .plan-list-row li { white-space: nowrap; }

  .container { margin-top: 24px; padding: 0 16px 16px; }
  .stepper { margin: 30px 0 22px; }
  .step + .step::before { width: 36px; }

  .card { padding: 24px 18px; border-radius: 22px; }
  .panel-title { font-size: 18px; }
  .hint { font-size: 13.5px; }

  .bind-card { padding: 22px 18px; border-radius: 22px; }
  .actions { flex-wrap: wrap; }

  .modal-card {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    border-radius: 22px;
  }

  .lookup-stats-row { flex-wrap: wrap; gap: 10px; }
  .site-foot { margin-top: 32px; padding: 22px 16px 28px; }
  .foot-grid { grid-template-columns: 1fr; gap: 18px; }

  .result { padding: 28px 20px 22px; border-radius: 20px; }
  .result-icon { width: 64px; height: 64px; font-size: 28px; }
  .result-title { font-size: 19px; }
  .result-msg { font-size: 14px; }

  .review li {
    grid-template-columns: 92px 1fr;
    padding: 12px 16px;
    font-size: 13.5px;
  }
  .review-card-head { padding: 10px 16px; }
  .result-tip { font-size: 12.5px; }
}
