/* 设计令牌已抽到 assets/tokens.css（必须在本文件之前引入）。
   本文件不再声明任何 :root 变量，避免出现第二份色值而导致改色漏改。 */

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: var(--lh-base);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; letter-spacing: -.01em; }
em { font-style: normal; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand), var(--cyan)); color: #fff;
  box-shadow: 0 4px 12px rgba(108, 92, 231, .35);
}
.brand-text { font-weight: 700; font-size: 17px; display: flex; flex-direction: column; line-height: 1.1; }
.brand-text small { font-weight: 500; font-size: 10.5px; color: var(--ink-3); letter-spacing: .08em; }
.topnav { display: flex; align-items: center; gap: 6px; }
.user-email {
  font-size: 13px; color: var(--ink-2); max-width: 170px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: inline-block; vertical-align: middle;
}

/* ---------- buttons ---------- */
.btn {
  font: inherit; font-size: var(--fs-base); font-weight: var(--fw-semibold);
  border: 1px solid transparent; border-radius: var(--radius-md);
  padding: 8px 14px; cursor: pointer; background: var(--surface); color: var(--text-primary);
  transition: var(--transition-control); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: var(--gradient-brand); color: var(--text-on-brand);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-brand-hover); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-2); }
.btn-outline { border-color: var(--line); background: #fff; }
.btn-outline:hover { border-color: var(--brand); color: var(--brand-2); }
.btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-mini { padding: 5px 10px; font-size: 12.5px; border-radius: var(--radius-sm); border: 1px solid var(--line); min-height: 30px; }
.btn-sm { padding: 7px 12px; font-size: 13px; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 52px 0 36px; }
.pill {
  display: inline-block; background: var(--brand-soft); color: var(--brand-2);
  font-size: 12.5px; font-weight: 700; padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: 40px; font-weight: 800; margin-bottom: 14px; letter-spacing: -.02em; }
.hero h1 em {
  /* 渐变文字必须用 --gradient-brand-text：
     原来的青端 #22d3ee 对浅底只有 1.69:1，远低于大字要求的 3:1，几乎看不清。
     --accent-600(#0e9bb1) 实测 3.11:1 达标。 */
  background: var(--gradient-brand-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--ink-2); font-size: 15.5px; margin: 0 0 18px; max-width: 520px; }
.hero-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.hero-list li { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink-2); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-1 { background: var(--brand); } .dot-2 { background: var(--cyan); } .dot-3 { background: var(--ok); }

.hero-visual { display: grid; place-items: center; }
.visual-card {
  width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 24px; position: relative;
  background: linear-gradient(160deg, #ffffff, #f3f4ff); border: 1px solid var(--line);
  box-shadow: var(--shadow-m); display: grid; place-items: center; overflow: hidden;
}
.visual-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(108, 92, 231, .07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(108, 92, 231, .07) 1px, transparent 1px);
  background-size: 22px 22px;
}
.visual-svg { position: relative; width: 74%; animation: float 5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- panel ---------- */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-s);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.panel-head h2 { font-size: 18px; font-weight: 700; }
.hint { font-size: 12.5px; color: var(--ink-3); }

.credit-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600;
  /* 原深端 #ffeccc 配 #b45309 仅 4.33:1，小字不达标；换成 --warn-100(#fff2e0) → 4.55:1 */
  background: linear-gradient(135deg, var(--warn-50), var(--warn-100)); color: var(--warn-700);
  padding: 6px 13px; border-radius: var(--radius-pill); border: 1px solid var(--warn-200);
}
.credit-chip b { font-size: 15px; }

/* ---------- dropzone ---------- */
.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius-xl); background: var(--surface-subtle);
  padding: 34px 20px; text-align: center; cursor: pointer;
  transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
/* 键盘用户 Tab 到上传区时给出与 hover 同等的视觉反馈（拖拽区要能纯键盘操作） */
.dropzone:focus-visible { border-color: var(--brand); background: var(--brand-soft); }
.dz-icon { color: var(--brand); margin-bottom: 10px; }
.dz-title { font-size: 15.5px; font-weight: 600; margin: 0 0 6px; }
.dz-title .link { color: var(--brand-2); text-decoration: underline; text-underline-offset: 3px; }
.dz-sub { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.dz-preview { display: flex; align-items: center; gap: 18px; text-align: left; }
.dz-preview img {
  width: 96px; height: 96px; object-fit: contain; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; padding: 4px;
  box-shadow: var(--shadow-s); flex: none;
}
.dz-meta { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.dz-meta b { font-size: 15px; word-break: break-all; }
.dz-meta span { font-size: 12.5px; color: var(--ink-3); }

/* ---------- 多文件列表 ---------- */
.dz-files { text-align: left; }
.dz-files-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.dz-count { font-size: 14px; font-weight: 700; }
.file-list { display: grid; gap: 8px; max-height: 260px; overflow: auto; }
.file-row {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.fr-thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); background: #fafbff; flex: none; }
.fr-main { min-width: 0; flex: 1; }
.fr-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr-size { font-size: 12px; color: var(--ink-3); }
.fr-del { flex: none; }

/* ---------- formats ---------- */
.formats { margin-top: 22px; }
.formats-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.formats-head h3 { font-size: 14.5px; font-weight: 700; }
.fmt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.fmt {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 13px;
  cursor: pointer; transition: var(--transition-control); background: var(--surface); position: relative;
}
.fmt:hover { border-color: #c7cbe4; }
.fmt.on { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 2px 10px rgba(108, 92, 231, .14); }
.fmt-top { display: flex; align-items: center; gap: 8px; }
.fmt-badge {
  font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 6px;
}
.fmt.on .fmt-badge { background: var(--gradient-brand); }
.fmt-check { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #cfd3e6; display: grid; place-items: center; }
.fmt.on .fmt-check { background: var(--brand); border-color: var(--brand); }
.fmt-check svg { opacity: 0; }
.fmt.on .fmt-check svg { opacity: 1; }
.fmt-desc { font-size: 12px; color: var(--ink-3); margin-top: 6px; }

.actions { display: flex; align-items: center; gap: 14px; margin-top: 22px; flex-wrap: wrap; }
.actions-note { font-size: 13px; color: var(--ink-3); }

/* ---------- job ---------- */
.job-box { display: grid; gap: 14px; }
.job-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; }
.job-top { display: flex; align-items: center; gap: 14px; }
.job-thumb {
  width: 62px; height: 62px; border-radius: 10px; object-fit: contain;
  border: 1px solid var(--line); background: #fafbff; flex: none; padding: 3px;
}
.job-name { font-weight: 700; font-size: 14.5px; word-break: break-all; }
.job-sub { font-size: 12.5px; color: var(--ink-3); }
.status-tag { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.st-queued { background: #eef2ff; color: #4f46e5; }
.st-processing { background: #fff7e6; color: #b45309; }
.st-done { background: #ecfdf5; color: #047857; }
.st-partial { background: #fff7e6; color: #b45309; }
.st-failed { background: #fef2f2; color: #b91c1c; }

.progress { height: 6px; background: #eef0f7; border-radius: 999px; overflow: hidden; margin-top: 14px; }
.progress-bar {
  height: 100%; border-radius: var(--radius-pill);
  /* 原青端 #22d3ee 对轨道只有 1.59:1，不满足非文本图形 3:1 要求；
     --accent-700(#0991a6) 实测 3.29:1 达标，同时保留「紫→青」的视觉语言。 */
  background: var(--gradient-progress);
  transition: width var(--dur-progress) var(--ease-out); width: 4%;
}
.progress-bar.indet { animation: indet 1.4s ease-in-out infinite; width: 38% !important; }
@keyframes indet { 0% { margin-left: -38%; } 100% { margin-left: 100%; } }
.progress-text { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; display: flex; gap: 8px; align-items: center; }

.target-list { display: grid; gap: 10px; margin-top: 16px; }
.target {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fcfcff;
}
.target.done { border-color: #a7f3d0; background: #f0fdf7; }
.target.failed { border-color: #fecaca; background: #fef6f6; }
.tg-badge { font-size: 12.5px; font-weight: 800; padding: 4px 10px; border-radius: 7px; background: var(--ink); color: #fff; flex: none; }
.target.done .tg-badge { background: var(--ok); }
.target.failed .tg-badge { background: var(--err); }
.tg-info { font-size: 12.5px; color: var(--ink-3); }
.tg-actions { margin-left: auto; display: flex; gap: 8px; }

.preview-box { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbff; }
.preview-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.preview-bar span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.preview-stage { padding: 16px; display: grid; place-items: center; min-height: 200px; max-height: 420px; overflow: auto; }
.preview-stage img { max-width: 100%; max-height: 380px; }
.preview-stage iframe { width: 100%; height: 380px; border: 0; }
.preview-svg { max-width: 100%; max-height: 380px; }
.checker {
  background-image: linear-gradient(45deg, #eceef7 25%, transparent 25%), linear-gradient(-45deg, #eceef7 25%, transparent 25%),
                    linear-gradient(45deg, transparent 75%, #eceef7 75%), linear-gradient(-45deg, transparent 75%, #eceef7 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.no-preview { color: var(--ink-3); font-size: 13px; text-align: center; padding: 30px 0; }

.job-extra { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.job-extra .hint { margin-right: 2px; }
.job-preview { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fafbff; }
.pv-head { display: flex; align-items: center; padding: 9px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.pv-head b { font-size: 12.5px; }
.pv-head button { margin-left: auto; }
.pv-stage { padding: 14px; display: grid; place-items: center; max-height: 420px; overflow: auto; }
.pv-stage iframe { width: 100%; height: 360px; border: 0; }
.pv-stage img { max-width: 100%; max-height: 360px; }

/* ---------- 邀请 ---------- */
.invite-box { display: grid; gap: 16px; }
.invite-hero {
  display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(135deg, #f5f3ff, #eef6ff);
  border: 1px solid #e3dfff; border-radius: 14px; padding: 20px;
}
.invite-left h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.invite-left p { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.invite-left p b { color: var(--brand-2); }
.invite-link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.invite-link-row input {
  flex: 1; min-width: 200px; font: inherit; font-size: 13px; padding: 9px 12px;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-2);
}
.invite-stats { display: flex; gap: 26px; }
.invite-stats div { display: flex; flex-direction: column; }
.invite-stats b { font-size: 22px; font-weight: 800; color: var(--brand-2); line-height: 1.2; }
.invite-stats span { font-size: 12px; color: var(--ink-3); }
.invite-qr { display: grid; place-items: center; gap: 8px; }
.invite-qr img {
  width: 132px; height: 132px; border-radius: 12px; background: #fff;
  border: 1px solid var(--line); padding: 6px; box-shadow: var(--shadow-s);
}
.invite-qr span { font-size: 12px; color: var(--ink-3); }
.invite-list { display: grid; gap: 6px; }
.il-head { font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 2px; }
.inv-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px;
}
.inv-mail { font-weight: 600; }
.inv-time { color: var(--ink-3); font-size: 12px; }
.inv-tag { margin-left: auto; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.inv-tag.ok { background: #ecfdf5; color: #047857; }
.inv-tag.wait { background: #fff7e6; color: #b45309; }
.invite-tip {
  background: var(--brand-soft) !important; color: var(--brand-2) !important;
  padding: 8px 12px; border-radius: 8px; font-weight: 600 !important;
}

/* ---------- plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.plan {
  border: 1.5px solid var(--line); border-radius: 14px; padding: 20px 18px;
  background: #fff; cursor: pointer; transition: var(--transition-control); position: relative; text-align: left;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--brand); }
.plan.hot { border-color: var(--brand); box-shadow: 0 4px 18px rgba(108, 92, 231, .16); }
.plan-tag {
  position: absolute; top: -10px; right: 12px; font-size: 11px; font-weight: 800;
  /* 原来渐变到青色，白字压在青端只有 1.81:1；改用与主按钮完全一致的品牌渐变，
     既把对比度提到 4.86:1，也让「角标 / 主按钮」的视觉语言统一。 */
  background: var(--gradient-brand); color: var(--text-on-brand);
  padding: 3px 10px; border-radius: var(--radius-pill);
}
.plan-name { font-size: 14.5px; font-weight: 700; }
.plan-credits { font-size: 30px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; }
.plan-credits small { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 4px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--brand-2); }
.plan-desc { font-size: 12.5px; color: var(--ink-3); margin-top: 8px; }

/* ---------- history ---------- */
.history-box { display: grid; gap: 10px; }
.hist {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.hist img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); flex: none; }
.hist-main { min-width: 0; }
.hist-name { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hist-meta { font-size: 12px; color: var(--ink-3); }
.hist-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 26px 0; }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 8px 0 40px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.feat-ico { font-size: 22px; margin-bottom: 8px; }
.feat h4 { font-size: 14.5px; font-weight: 700; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; margin-top: 20px; }
.foot p { margin: 0; font-size: 13px; color: var(--ink-2); text-align: center; }
.foot-sub { color: var(--ink-3) !important; font-size: 12px !important; margin-top: 6px !important; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.modal-mask { position: absolute; inset: 0; background: rgba(20, 22, 43, .45); backdrop-filter: blur(3px); }
.modal-box {
  position: relative; width: min(420px, calc(100vw - 40px)); background: #fff;
  border-radius: 18px; padding: 26px; box-shadow: var(--shadow-l);
  max-height: calc(100vh - 60px); overflow: auto;
}
/* 关闭按钮：原来只有 ~14×24px 的可点区域，不满足 WCAG 2.2 的 24×24 最小目标。
   改成 34×34 的盒子（top/right 已按原视觉中心 24px / 21px 反算，像素级不变），
   并补 hover 底色让它「看起来就能点」。 */
.modal-x {
  position: absolute; top: 7px; right: 4px;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: none; border: 0; border-radius: var(--radius-sm);
  font-size: 24px; color: var(--text-muted); cursor: pointer; line-height: 1;
}
.modal-x:hover { background: var(--gray-100); color: var(--text-primary); }
.modal-title { font-size: 17px; font-weight: 700; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; background: #f3f4f9; padding: 4px; border-radius: 10px; }
.tab { flex: 1; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px; border-radius: 8px; cursor: pointer; color: var(--ink-2); }
.tab.active { background: #fff; color: var(--brand-2); box-shadow: var(--shadow-s); }
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
label input {
  display: block; width: 100%; margin-top: 6px; font: inherit; font-size: 14px;
  padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px; outline: none; transition: border-color .15s;
}
label input:focus { border-color: var(--brand); }
.err { color: var(--err); font-size: 12.5px; min-height: 18px; margin-bottom: 8px; }
.tip { font-size: 12.5px; color: var(--ink-3); text-align: center; margin: 10px 0 0; }

.pay-summary {
  background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
}
.pay-summary b { font-size: 15px; }
.pay-summary .amt { font-size: 22px; font-weight: 800; color: var(--brand-2); }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pmethod {
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer;
  display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; background: #fff;
  transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.pmethod.on { border-color: var(--brand); background: var(--brand-soft); }
.pmethod .pico { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #fff; }
.pay-waiting { text-align: center; padding: 18px 0 4px; }
.pay-waiting p { margin: 8px 0 0; font-size: 14px; }
.spinner {
  width: 34px; height: 34px; margin: 0 auto; border-radius: 50%;
  border: 3px solid var(--brand-soft); border-top-color: var(--brand); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 500;
  padding: 12px 22px; border-radius: 12px; box-shadow: var(--shadow-l); z-index: 200;
  animation: pop .22s ease; max-width: 90vw;
}
.toast.ok { background: var(--ok-900); }
.toast.err { background: var(--err-900); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 24px; gap: 24px; }
  .hero h1 { font-size: 30px; }
  .hero-visual { display: none; }
  /* 原来这里是 .topnav .btn-ghost { display:none } ——
     会把「任务列表 / 邀请好友 / 充值积分」三个入口整块抹掉，手机上根本没法充值。
     改成横向可滑动的导航条，功能不再丢失，也不会把顶栏撑破。 */
  .topnav {
    gap: 2px; overflow-x: auto; scrollbar-width: none;
    -ms-overflow-style: none; -webkit-overflow-scrolling: touch;
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav .btn-ghost { padding: 7px 9px; font-size: 13px; }
  .panel { padding: 20px 16px; }
  .target { flex-wrap: wrap; }
  .tg-actions { margin-left: 0; width: 100%; }
}

/* ===== 邮箱验证横幅 ===== */
.verify-panel { border-left: 4px solid var(--warn-500, #d97706); }
.verify-row { display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.verify-text { display: grid; gap: 2px; flex: 1; min-width: 220px; }
.verify-text b { color: var(--ink); font-size: 15px; }
.verify-text span { color: var(--ink-3, var(--gray-600)); font-size: 13px; }
.verify-form { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.code-input { width: 130px; letter-spacing: 3px; font-family: var(--font-mono, Consolas, monospace); text-align: center; }
.verify-panel .err { margin: var(--space-2) 0 0; }

/* 注册表单里的验证码行 */
.code-row { display: flex; gap: var(--space-2); align-items: center; margin-top: 6px; }
.code-row .code-input { flex: 1; min-width: 0; }

/* ===== 微信扫码登录 ===== */
.wx-login { margin-top: var(--space-3); }
.wx-divider { position: relative; text-align: center; color: var(--ink-3); font-size: 12px; margin: var(--space-3) 0; }
.wx-divider::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line, var(--gray-200)); }
.wx-divider span { position: relative; background: var(--surface); padding: 0 10px; }
.btn-wx { background: #07c160; color: #fff; }
.btn-wx:hover { background: #06ad56; }
.btn-wx:focus-visible { outline: var(--focus-ring-width) solid var(--brand-600); outline-offset: 2px; }
.wx-modal-box { text-align: center; }
.wx-qr { min-height: 220px; display: grid; place-items: center; }
.wx-qr-img { width: 200px; height: 200px; border-radius: var(--radius-md); border: 1px solid var(--line, var(--gray-200)); }
.wx-qr-loading { color: var(--ink-3); font-size: 13px; }
.wx-tip { color: var(--ink-3); font-size: 13px; margin: var(--space-3) 0 0; line-height: 1.7; }
