/* ============================================================
   account.css —— 顶栏账号入口 / 登录面板 / 设置页
   在 main.css 之后加载，复用主题变量（--primary / --surface 等），
   因此 6 套主题（含夜间墨绿）自动适配，不需要为某个主题单独写色值。
   ============================================================ */

/* ---------- 顶栏账号入口 ---------- */
.topbar-inner { gap: 10px; }
.topbar-inner .meta-count { margin-left: auto; }

.acct {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  transition: background .18s ease, color .18s ease;
}
.acct:active { transform: scale(.96); }
.acct.guest {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 500;
}
.acct-ico { display: flex; }
.acct-ico svg { width: 17px; height: 17px; }
.acct-txt { line-height: 1; }
.acct.signed { padding: 0; width: 30px; }
.acct-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- TabBar：主题入口先收起（功能迁到设置页） ---------- */
.tabbar.hide-theme #tabTheme { display: none; }

/* ---------- 登录面板 ---------- */
.authview {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.44);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
}
.authview.show { opacity: 1; visibility: visible; }

.auth-card {
  position: relative;
  width: 100%;
  max-height: 92vh;
  max-height: 92dvh;      /* 支持 dvh 的浏览器按视觉视口算，键盘弹出时自动收 */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  /* 键盘弹出时给底部留余量：移动端 fixed 弹层不随视觉视口缩小，
     这点 padding 能保证最后一行（提交按钮）不被键盘盖住 */
  scroll-padding-bottom: 40px;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -10px 46px rgba(0, 0, 0, 0.18);
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateY(16px);
}
.authview.show .auth-card { transform: translateY(0); }

/* 输入框聚焦时滚出足够间距，避免紧贴键盘上沿 */
.auth-input:focus,
.code-box:focus { scroll-margin-bottom: 60px; }

.auth-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.auth-close svg { width: 18px; height: 18px; }

.auth-hero { text-align: center; margin: 6px 0 20px; }
.auth-badge {
  width: 54px;
  height: 54px;
  margin: 0 auto 12px;
  border-radius: 17px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-badge svg { width: 30px; height: 30px; }

.auth-title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
.auth-title.left, .auth-sub.left { text-align: left; }
.auth-sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
}
.auth-sub b { color: var(--text-1); font-weight: 500; word-break: break-all; }
.auth-sub.dim { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }

/* 面板内的行内提示：这类信息（如「账号已注销」）必须看得见并能照着做，
   只发 toast 太容易被忽略，所以直接写在卡片里 */
.auth-note {
  margin: 0 0 16px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
}
.auth-note[hidden] { display: none; }
.auth-note b {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
}

/* Passkey 主按钮：面板里视觉权重最高的元素 */
.pk-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 13px 15px;
  border: none;
  border-radius: 18px;
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-lift);
  text-align: left;
  transition: transform .14s ease, opacity .18s ease;
}
.pk-btn:active { transform: scale(.98); }
.pk-btn[disabled] { opacity: .72; }
.pk-ico {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-ico svg { width: 24px; height: 24px; }
.pk-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pk-txt b { font-size: 16px; font-weight: 600; letter-spacing: 0.03em; }
.pk-txt i { font-style: normal; font-size: 11.5px; opacity: .84; line-height: 1.4; }
.pk-go { flex: 0 0 auto; display: flex; opacity: .9; }
.pk-go svg { width: 19px; height: 19px; }

/* 夜间墨绿主题的主色是浅绿，此时图标底不能再用半透明白 */
[data-theme="midnight"] .pk-ico { background: rgba(0, 0, 0, 0.16); }

/* 首次打开时呼吸一下，把视线引到 Passkey 上 */
.pk-btn.pulse-once { animation: pkPulse 1.5s ease-in-out 3; }
@keyframes pkPulse {
  0%, 100% { transform: scale(1); box-shadow: var(--shadow-lift); }
  50% { transform: scale(1.017); box-shadow: 0 0 0 5px var(--primary-soft), var(--shadow-lift); }
}

.pk-note {
  margin: 10px 2px 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}
.pk-note.warn { color: var(--text-2); background: var(--surface-2); border-radius: 12px; padding: 10px 12px; text-align: left; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-3);
  font-size: 11.5px;
}
.auth-or::before, .auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text-1);
  font-size: 15.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .18s ease;
}
.auth-input:focus { border-color: var(--primary); }

.auth-submit {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .14s ease, opacity .18s ease;
}
.auth-submit:active { transform: scale(.985); }
.auth-submit[disabled] { opacity: .6; }
.auth-submit.ghost {
  background: var(--surface-2);
  color: var(--text-1);
  border: 1px solid var(--border);
  font-weight: 500;
}

.auth-foot {
  margin: 14px 2px 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}
.auth-foot b { color: var(--text-2); font-weight: 500; }

/* 验证码 6 格 */
.code-row { display: flex; gap: 8px; margin: 18px 0 4px; }
.code-box {
  flex: 1;
  height: 54px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: var(--bg);
  color: var(--text-1);
  font-size: 22px;
  font-weight: 600;
  text-align: center;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  outline: none;
  transition: border-color .18s ease, background .18s ease;
  min-width: 0;
}
.code-box:focus { border-color: var(--primary); background: var(--surface); }
.code-box.bad { border-color: #C0392B; background: rgba(192, 57, 43, .07); }

.auth-err {
  display: none;
  margin: 10px 2px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #C0392B;
}
.auth-err.show { display: block; }

.auth-resend, .auth-back, .auth-skip {
  width: 100%;
  height: 42px;
  margin-top: 10px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}
.auth-resend { color: var(--primary); }
.auth-resend[disabled] { color: var(--text-3); }
.auth-skip { text-decoration: underline; text-underline-offset: 3px; }
.auth-back { margin-top: 2px; }

/* 创建 Passkey 步骤 */
.pk-hero { display: flex; justify-content: center; margin: 4px 0 16px; }
.pk-ring {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pk-ring svg { width: 46px; height: 46px; }
.pk-ring::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  opacity: .35;
  animation: pkRing 2s ease-out infinite;
}
@keyframes pkRing {
  0% { transform: scale(.94); opacity: .38; }
  70% { transform: scale(1.06); opacity: 0; }
  100% { transform: scale(1.06); opacity: 0; }
}

.pk-why {
  margin: 18px 0;
  padding: 0;
  list-style: none;
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
}
.pk-why li {
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  padding-left: 12px;
  position: relative;
  margin-bottom: 6px;
}
.pk-why li:last-child { margin-bottom: 0; }
.pk-why li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
}
.pk-why b { color: var(--text-1); font-weight: 600; margin-right: 5px; }

/* 完成 */
.done-mark {
  width: 68px;
  height: 68px;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.done-mark svg { width: 34px; height: 34px; }

.spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin-right: 7px;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 设置页 ---------- */
.set-sec { margin-bottom: 16px; }
.set-h {
  margin: 0 0 8px 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-3);
}
.set-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.set-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 11px 13px;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  color: var(--text-1);
  text-align: left;
  font-size: 14px;
  transition: background .16s ease;
}
.set-card .set-row:last-child { border-bottom: none; }
.set-row:active { background: var(--surface-2); }
.set-row.static:active { background: transparent; }
.set-row.dim { opacity: .55; }
.set-row.picked { background: var(--primary-soft); }
.set-row.accent { background: var(--primary-soft); }
.set-row.accent .set-main b { color: var(--primary); }
.set-row.accent .set-val { color: var(--primary); }

.set-ico {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.set-ico svg { width: 17px; height: 17px; }
.set-av {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.set-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-main b { font-size: 14.5px; font-weight: 500; letter-spacing: 0.02em; word-break: break-all; }
.set-main i { font-style: normal; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

.set-val { flex: 0 0 auto; font-size: 12.5px; color: var(--text-3); }
.set-val.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.set-val.badge.ok { background: var(--primary-soft); color: var(--primary); }
.set-val.badge.warn { background: var(--surface-2); color: var(--text-2); }

.set-go { flex: 0 0 auto; display: flex; color: var(--text-3); }
.set-go svg { width: 17px; height: 17px; }

.set-note {
  margin: 0;
  padding: 10px 13px 12px;
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-3);
  border-top: 1px solid var(--border);
}

.set-lead {
  margin: 0 2px 12px;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}

.set-back, .set-logout {
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-top: 4px;
}
.set-back { border: 1px solid var(--border); background: var(--surface); color: var(--text-1); }
/* 退出登录是「常规操作」，不再用红色——红色留给注销账号，避免两者抢注意力 */
.set-logout { border: 1px solid var(--border); background: var(--surface); color: var(--text-1); }

/* 退出登录下方的一句提示：绝大多数想「删号」的人其实只是想暂时离开 */
.set-tip {
  margin: 8px 2px 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}

/* 分隔线：把「日常操作」与「不可逆操作」隔开 */
.set-hr {
  height: 1px;
  margin: 18px 2px 14px;
  background: var(--border);
}

/* 注销前的说明卡：只讲事实（还能反悔多久、会失去什么），不做挽留话术 */
.set-info {
  margin: 0 0 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: var(--primary-soft);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-2);
}

/* 注销账号入口：弱化的红字链接，故意不做得像主按钮，降低误触 */
.set-del-link {
  display: block;
  width: 100%;
  margin: 14px 0 0;
  padding: 10px;
  border: none;
  background: transparent;
  color: #C0392B;
  font-size: 13px;
  letter-spacing: 0.02em;
  opacity: .82;
}
.set-del-link:active { opacity: 1; transform: scale(.985); }

/* 退出登录二次确认（页内两步，不用原生 confirm） */
.set-confirm {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 16px 14px 14px;
}
.set-confirm p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-1);
}
.set-confirm-btns { display: flex; gap: 10px; }
.set-btn {
  flex: 1;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--bg);
  color: var(--text-1);
  font-size: 14.5px;
  font-weight: 500;
  transition: transform .14s ease;
}
.set-btn:active { transform: scale(.98); }
.set-btn.danger {
  background: #C0392B;
  border-color: #C0392B;
  color: #fff;
  font-weight: 600;
}

/* 主题色卡横滑 */
.theme-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 11px;
  border-top: 1px solid var(--border);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.theme-strip::-webkit-scrollbar { display: none; }
.theme-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 8px 9px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.theme-chip:active { transform: scale(.97); }
.theme-chip.active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.tc-dots { display: flex; gap: 3px; }
.tc-dots i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .07); }
.tc-name { font-size: 10.5px; letter-spacing: 0.02em; }

/* 开关 */
.sw {
  position: relative;
  flex: 0 0 auto;
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: var(--surface-3);
  transition: background .2s ease;
}
.sw i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .22);
  transition: transform .2s cubic-bezier(.32, .72, 0, 1);
}
.sw.on { background: var(--primary); }
.sw.on i { transform: translateX(18px); }

/* ---------- 桌面 ---------- */
@media (min-width: 700px) {
  .authview { align-items: center; }
  .auth-card {
    width: 440px;
    border-radius: 22px;
    max-height: 86vh;
    padding: 26px 26px 26px;
  }
}

/* ============================================================
   付费墙：锁定的分类 chips / 总览格 / 网格占位 / 方案面板 / 订单确认
   ============================================================ */

/* 顶部 chips：锁定域只给名字，带小锁 */
.chip.locked { color: var(--text-3); }
.chip.locked .chip-emoji { opacity: .55; }
.chip-lock { display: flex; opacity: .8; }
.chip-lock svg { width: 13px; height: 13px; }

/* 分类总览格：名字照常显示，词数换成会员标记 */
.cat-item.locked { background: var(--surface-2); }
.cat-item.locked .cat-emoji { opacity: .5; }
.cat-item.locked .cat-count { color: var(--text-3); }

/* 网格里的付费墙占位 */
.lock-panel {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 18px 22px;
  box-shadow: var(--shadow);
}
.lock-badge {
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lock-badge svg { width: 28px; height: 28px; }
.lock-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
.lock-desc {
  margin: 0 auto 18px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.lock-desc b { color: var(--primary); font-weight: 600; }

.lock-plans { display: flex; gap: 8px; max-width: 380px; margin: 0 auto 14px; }
.lock-plan {
  flex: 1;
  position: relative;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 15px;
  padding: 13px 8px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-1);
  transition: border-color .16s ease, background .16s ease;
}
.lock-plan:active { transform: scale(.98); }
.lock-plan b { font-size: 21px; font-weight: 700; letter-spacing: 0.01em; }
.lock-plan i { font-style: normal; font-size: 11.5px; color: var(--text-3); }
.lock-plan em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--primary);
  margin-top: 3px;
}
.lock-plan.best { border-color: var(--primary); background: var(--primary-soft); }

.lock-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--primary);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  padding: 6px 8px;
}
.lock-go { font-size: 15px; line-height: 1; }
.lock-note {
  margin: 8px 0 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}

/* 方案面板 */
.pw-hero { text-align: center; margin: 2px 2px 18px; }
.pw-badge {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pw-badge svg { width: 27px; height: 27px; }
.pw-hero h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
.pw-hero p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-2);
}
.pw-foot {
  margin: 14px 2px 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
  text-align: center;
}

.plans { display: flex; flex-direction: column; gap: 12px; }
.plan {
  position: relative;
  width: 100%;
  text-align: left;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 18px;
  padding: 15px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-1);
  transition: border-color .16s ease, background .16s ease;
}
.plan:active { transform: scale(.99); }
.plan.best { border-color: var(--primary); background: var(--primary-soft); }
.plan-tag {
  position: absolute;
  top: -9px;
  right: 14px;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.plan-name { font-size: 14.5px; font-weight: 600; letter-spacing: 0.03em; }
.plan-price { flex: 0 0 auto; color: var(--primary); }
.plan-price b { font-size: 22px; font-weight: 700; }
/* 单位文案从「一次」改成「永久」后，英/西/法会变长（forever / para siempre / à vie），
   2px 会糊成一团，给到 5px 才有词间距 */
.plan-price i { font-style: normal; font-size: 12px; margin-left: 5px; }
.plan-tagline { font-size: 11.5px; color: var(--text-3); }
.plan-perks { margin: 0; padding: 0; list-style: none; }
.plan-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--text-2);
  margin-bottom: 3px;
}
.pl-check {
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pl-check svg { width: 10px; height: 10px; }
.plan-cta {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
}
.plan-go { display: flex; }
.plan-go svg { width: 16px; height: 16px; }

/* 订单确认 */
/* 顶部返回方案：让用户能回去对比另一个方案的权益，不必关掉重走设置 */
.co-back {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 10px -6px;
  padding: 4px 6px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.co-back:active { opacity: .55; }
.co-back-ico { display: flex; }
.co-back-ico svg { width: 15px; height: 15px; }

.co-plan {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--primary-soft);
  margin-bottom: 14px;
}
.co-name { font-size: 14.5px; font-weight: 600; color: var(--text-1); letter-spacing: 0.03em; }
.co-price { color: var(--primary); }
.co-price b { font-size: 24px; font-weight: 700; }
.co-price i { font-style: normal; font-size: 12px; margin-left: 2px; }

.co-perks { margin: 0 2px 16px; padding: 0; list-style: none; }
.co-perks li {
  position: relative;
  padding-left: 24px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.co-perks .pl-check { top: 5px; }

.co-acct {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  margin-bottom: 16px;
}
.co-av {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.co-acct b { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-1); word-break: break-all; }
.co-acct i { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

.co-pay {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .14s ease;
}
.co-pay:active { transform: scale(.98); }
.co-go { display: flex; }
.co-go svg { width: 19px; height: 19px; }
.co-note {
  margin: 12px 2px 0;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}

/* 付款前的条款 / 退款政策披露（Waffo 要求结账前可见） */
.co-legal {
  margin: 6px 2px 2px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}

.co-legal a {
  color: var(--brand, #A94E74);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 换方案时的选择块：用户点「去支付」却发现另有一笔未完成订单时才出现。
   两个动作的后果完全不同（继续付 vs 作废旧单再买），所以必须并排展示、
   不能塞进 toast —— toast 一闪而过，用户会漏掉「旧单会被取消」这件事。 */
.co-pending {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2, rgba(0, 0, 0, .03));
}

.co-pending b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.5;
}

.co-pending span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--text-3);
}

.co-pending-act {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.co-pending-act button {
  flex: 1;
  height: 40px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
}

.co-pending-go {
  background: var(--primary);
  color: var(--on-primary);
}

.co-pending-new {
  background: transparent;
  color: var(--text-1);
  border-color: var(--line);
}

.co-pending-act button:disabled { opacity: .6; }

@media (min-width: 700px) {
  .lock-panel { max-width: 560px; margin: 0 auto; }
}

/* ---------- 词条加载态 / 失败态（词库改走接口后的过渡） ---------- */
.sk-wrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 12px;
}
.sk-card {
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%);
  background-size: 220% 100%;
  animation: skSlide 1.25s linear infinite;
  border: 1px solid var(--border);
}
@keyframes skSlide {
  from { background-position: 120% 0; }
  to { background-position: -20% 0; }
}

.grid-state {
  grid-column: 1 / -1;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 34px 18px 28px;
}
.gs-badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 18px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 27px;
}
.grid-state h2 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-1);
}
.grid-state p {
  margin: 0 auto 18px;
  max-width: 340px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--text-2);
}
.gs-btn {
  height: 46px;
  padding: 0 26px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.gs-btn:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .sk-card { animation: none; }
}

/* ---------- 动效策略（2026-10-27） ----------
   已关闭「一次性入场 / 位移」类动画：
     .card 的 rise 入场（含首屏与整包重载）、.lock-card / .grid-state 的 rise、
     .mask 淡入、.sheet / .dsheet 上滑、.toast 弹出、登录面板淡入与上浮。
   仍然保留：循环动画（朗读脉冲、.spinner、骨架流光、Passkey 光圈）、
             颜色 / 边框过渡、:active 缩放反馈。
   因为这些过渡被删除，transitionend 不再触发，app.js 的 TabBar 高亮清理
   已改为宏任务兜底。回滚步骤见 动画关闭方案.md。 */
