/* ==========================================================================
   云雀助学 · 用户端组件与页面样式（style.css）  v20.0
   --------------------------------------------------------------------------
   依赖 theme.css（必须先加载）。分区：
     01 顶栏与导航      02 移动抽屉      03 页面骨架
     04 卡片与标题      05 按钮          06 表单
     07 分类与课程列表  08 提示与消息    09 金额与支付
     10 订单与进度      11 数据与键值    12 首页模块
     13 弹窗与浮层      14 骨架屏与动效  15 页脚
     16 表格与分页      17 响应式
   ⚠ 本文件不能删除任何既有 class 规则：页面 JS 通过 class 名注入内容，
     尤其是 common.js 动态生成的顶栏 / 登录弹窗 / 公告 / toast 结构。
   ========================================================================== */

/* 隐藏属性优先级兜底：CSS 里给容器设了 display 时也不能盖住 [hidden] */
[hidden] { display: none !important; }

/* ==========================================================================
   01 顶栏与导航
   ========================================================================== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(190%) blur(20px);
  backdrop-filter: saturate(190%) blur(20px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 4px 18px rgba(22,34,66,.045);
}
[data-theme="dark"] .topbar { background: rgba(12,16,25,.82); }
.topbar .in {
  max-width: var(--maxw); margin: 0 auto; min-height: var(--header-h);
  padding: 10px 22px; display: flex; align-items: center; gap: 16px;
}
.brand-link { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-link .logo-sm {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover;
  box-shadow: var(--lift-sm), 0 0 0 1px var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.brand-link:hover .logo-sm { transform: translateY(-2px) rotate(-3deg); box-shadow: var(--lift); }
.brand-link .bn { display: flex; flex-direction: column; line-height: 1.25; }
.brand-link .bn b { font-size: 16.5px; font-weight: 800; letter-spacing: .01em; }
.brand-link .bn small { font-size: 11px; color: var(--faint); font-weight: 500; }
.live { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; }
.live i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px var(--ok-glow);
  animation: yqPulse 2.2s ease-in-out infinite;
}
.nav { display: flex; align-items: center; gap: 3px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 13px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--sub);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--acc); background: var(--acc-soft); }
.nav a.on { color: var(--acc); background: var(--acc-soft); }
.nav a.on::after {
  content: ""; position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%);
  width: 16px; height: 2.5px; border-radius: 99px; background: var(--acc);
}
.top-right { display: flex; align-items: center; gap: 9px; flex: none; }
.balchip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 11px; cursor: pointer;
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  font-size: 12.5px; font-weight: 600; color: var(--acc-ink);
  transition: transform .2s var(--ease), box-shadow .2s;
  font-variant-numeric: tabular-nums;
}
.balchip:hover { transform: translateY(-1px); box-shadow: var(--lift-sm); }
.balchip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.balchip.empty { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.balchip.empty svg { stroke: var(--warn); }
.who {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--ink); padding: 3px 3px 3px 6px;
  border-radius: 99px; transition: background .2s;
}
.who:hover { background: var(--panel2); }
.who .av {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: 800;
  box-shadow: var(--btn-shadow);
}
.theme-btn {
  width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel);
  color: var(--sub); transition: .2s var(--ease);
}
.theme-btn:hover { color: var(--acc); border-color: var(--acc-dim); transform: rotate(-12deg); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .icon-sun, [data-theme="dark"] .theme-btn .icon-moon { display: none; }
[data-theme="dark"] .theme-btn .icon-sun { display: block; }
.burger { display: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 9px 8px; flex: none; }
.burger span { display: block; height: 2px; border-radius: 2px; background: var(--ink); margin: 3px 0; transition: .2s; }

/* 返回顶部（common.js 动态插入） */
.back-top {
  position: fixed; right: 24px; bottom: 26px; z-index: 35;
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--panel); color: var(--acc); box-shadow: var(--lift);
  display: grid; place-items: center; opacity: 0; pointer-events: none;
  transform: translateY(12px); transition: .3s var(--ease);
}
.back-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-top:hover { background: var(--acc); color: #fff; border-color: var(--acc); }
.back-top svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ==========================================================================
   02 移动抽屉
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 60; pointer-events: none; visibility: hidden; }
.drawer.show { pointer-events: auto; visibility: visible; }
.drawer .dm {
  position: absolute; inset: 0; background: rgba(10,15,28,.46);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .3s;
}
.drawer.show .dm { opacity: 1; }
.drawer .dp {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(310px, 86vw);
  background: var(--panel); border-left: 1px solid var(--line);
  box-shadow: var(--lift-lg); padding: 18px;
  transform: translateX(100%); transition: transform .36s var(--ease);
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.drawer.show .dp { transform: none; }
.drawer .dp .dh { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer .dp .dh b { font-size: 16px; }
.drawer .dp .dh button { background: none; border: 0; font-size: 26px; line-height: 1; color: var(--faint); }
.drawer .dp a { padding: 11px 13px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--sub); }
.drawer .dp a:hover { background: var(--panel2); color: var(--acc); }
.drawer .dp a.on { background: var(--acc-soft); color: var(--acc); }
.drawer .dp .dsep { height: 1px; background: var(--line); margin: 12px 0; }

/* ==========================================================================
   03 页面骨架
   ========================================================================== */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 28px 22px 76px; flex: 1 0 auto; min-width: 0; }
.wrap.narrow { max-width: 760px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 20px; align-items: start; }
.split > * { min-width: 0; }
.side { display: flex; flex-direction: column; gap: 18px; }
.crumb { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--faint); margin: 2px 0 18px; }
.crumb a { color: var(--sub); font-weight: 600; }
.crumb a:hover { color: var(--acc); }
.crumb .sl { color: var(--line2); }
.crumb span:last-child { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   04 卡片与标题
   ========================================================================== */
.card {
  position: relative;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--lift); min-width: 0;
  transition: box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--acc), var(--cyan), transparent 78%);
  opacity: .55;
}
.card:hover { box-shadow: var(--lift-lg); }
.card.flat { box-shadow: none; }
.card.pad-sm { padding: 18px; }
.card h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.card h3 { font-size: 15px; font-weight: 700; }
.card .csub { font-size: 13px; color: var(--sub); margin-top: 7px; line-height: 1.75; }
.sec-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; }
.sec-title b { font-size: 15px; font-weight: 800; position: relative; padding-left: 12px; }
.sec-title b::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 15px; border-radius: 99px; background: var(--grad-brand);
}
.sec-title span { font-size: 12px; color: var(--faint); }
.notice-edit { margin-top: 8px; }
.notice-edit textarea {
  width: 100%; min-height: 132px; resize: vertical; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel2); color: var(--ink); font-size: 13.5px; line-height: 1.8; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.notice-edit textarea:focus { border-color: var(--acc); box-shadow: var(--ring); }
.ne-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.ne-count { font-size: 12px; color: var(--faint); }
.ne-count b { color: var(--acc); font-variant-numeric: tabular-nums; }
.ne-foot .msg { flex: 1; }
.ne-foot .msg.ok, .ne-foot .msg.info { color: var(--ok); }
.ne-foot .msg.err { color: var(--bad); }

/* ==========================================================================
   05 按钮
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 20px; border: 1px solid transparent; border-radius: var(--radius-sm);
  background: var(--grad-brand); color: #fff;
  font-size: 14px; font-weight: 700; line-height: 1.4;
  box-shadow: var(--btn-shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), filter .2s;
  position: relative; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.ghost {
  background: var(--panel); color: var(--ink); border-color: var(--line2);
  box-shadow: var(--lift-sm);
}
.btn.ghost:hover { color: var(--acc); border-color: var(--acc-dim); background: var(--acc-soft); box-shadow: none; }
.btn.ghost:disabled { color: var(--faint); background: var(--panel2); border-color: var(--line); }
.btn.danger { background: linear-gradient(135deg, #dc2626, #f87171); box-shadow: 0 4px 14px rgba(220,38,38,.22); }
.btn.gold { background: linear-gradient(135deg, #d97706, #f59e0b); box-shadow: 0 4px 14px rgba(217,119,6,.22); }
.btn.pri { background: var(--grad-brand); }
.btn.sm { padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }
/* v20.2：顶栏「后台管理」入口由 CSS 控制尺寸，不再写内联 padding */
.top-admin { text-decoration: none; line-height: 1.4; }
.btn + .btn { margin-left: 9px; }
.ba .btn + .btn, .hbtns .btn + .btn { margin-left: 9px; }

/* v20.2 全站按钮对齐规范 -------------------------------------------------
   1) 按钮统一放进 .btns / .form-actions 操作行，间距与间隙由 CSS 集中定义；
   2) 历史页面里直接放在 .card / .field 下的裸按钮，用兜底规则补齐上间距
      与最小尺寸，避免紧贴输入框、同组按钮宽度长短不一；
   3) 页面不再用内联 padding / margin-top 各自调试。                     */
.btns {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 10px; margin-top: 16px; min-width: 0;
}
.btns > * + * { margin-left: 0; }
.btns > .btn { flex: 0 1 auto; min-height: 42px; min-width: 116px; }
.card > .btn, .card > button.btn,
.field > .btn, .field > button.btn {
  margin-top: 16px; min-height: 42px; min-width: 132px;
}
.logingate > .btn { margin-top: 4px; min-height: 44px; min-width: 160px; }
.btn.loading { color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.42); border-top-color: #fff;
  animation: yqSpin .7s linear infinite;
}
.btn.ghost.loading::after { border-color: var(--line2); border-top-color: var(--acc); }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--acc); animation: yqSpin .7s linear infinite; display: inline-block; }

/* ==========================================================================
   06 表单
   ========================================================================== */
.field { margin-top: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--sub); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--line2); background: var(--panel); color: var(--ink);
  font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--acc); box-shadow: var(--ring); }
.field select {
  appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359657b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 16px;
}
.field input:disabled, .field select:disabled { background: var(--panel2); color: var(--faint); cursor: not-allowed; }
.field input.ok { border-color: var(--ok); }
.hint { font-size: 12px; color: var(--faint); margin-top: 7px; line-height: 1.7; }
.hint.warn { color: var(--warn); }
.fld-err { display: none; font-size: 12px; color: var(--bad); margin-top: 6px; }
.fld-err.on { display: block; }

/* ==========================================================================
   07 分类与课程列表
   ========================================================================== */
.cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cat {
  padding: 7px 14px; border: 1px solid var(--line2); border-radius: 99px;
  background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--sub);
  cursor: pointer; transition: .2s var(--ease);
}
.cat:hover { border-color: var(--acc-dim); color: var(--acc); transform: translateY(-1px); }
.cat.on { background: var(--acc); border-color: var(--acc); color: #fff; box-shadow: var(--btn-shadow); }
.cat .n { font-size: 11px; opacity: .75; margin-left: 4px; }
.cat.on .n { opacity: .9; }
.biz { display: flex; gap: 8px; flex-wrap: wrap; }
.biz button { padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line2); background: var(--panel); font-size: 12.5px; font-weight: 600; color: var(--sub); }
.biz button.on { background: var(--acc-soft); border-color: var(--acc-dim); color: var(--acc); }
.clist {
  margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel2); max-height: 310px; overflow-y: auto;
}
.clist:empty { display: none; }
.clist .ci {
  display: flex; align-items: center; gap: 10px; padding: 10px 13px;
  border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer;
  transition: background .16s;
}
.clist .ci:last-child { border-bottom: 0; }
.clist .ci:hover { background: var(--panel3); }
.clist .ci .cb {
  width: 17px; height: 17px; flex: none; border-radius: 5px;
  border: 1.6px solid var(--line2); background: var(--panel); position: relative;
}
.clist .ci.sel .cb { background: var(--acc); border-color: var(--acc); }
.clist .ci.sel .cb::after {
  content: ""; position: absolute; left: 5px; top: 1.5px; width: 4px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg);
}
.clist .ci .cid { font-size: 11px; color: var(--faint); margin-left: auto; font-family: ui-monospace, Consolas, monospace; flex: none; }
.clist .ci.ckall { background: var(--panel3); font-weight: 700; position: sticky; top: 0; z-index: 1; }
.clist .ci.ckall .ckall-t { color: var(--acc); }
.clist .ci.ckall:hover { background: var(--panel3); }
.clist .ci.ckall.sel .cb { background: var(--acc); border-color: var(--acc); }
.clist .ci.ckall.sel .cb::after { content: ""; position: absolute; inset: 3px; border: 0; border-radius: 2px; transform: none; background: #fff; }
.clist .ci.ckall .cid { color: var(--faint); }
.clist .empty { padding: 22px; text-align: center; font-size: 12.5px; color: var(--faint); }
.kcsum {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
  background: var(--acc-soft); border: 1px solid var(--acc-line);
  font-size: 13px; color: var(--sub);
}
.kcsum:empty { display: none; }
.kcsum b { color: var(--acc-ink); font-variant-numeric: tabular-nums; }
.kcsum .clr { margin-left: auto; }
.rungrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }

/* ==========================================================================
   08 提示与消息
   ========================================================================== */
.msg { font-size: 12.5px; margin-top: 12px; line-height: 1.7; }
.msg:empty { display: none; }
.msg.ok   { color: var(--ok);  padding: 9px 12px; border-radius: 9px; background: var(--ok-soft);   border: 1px solid var(--ok-line); }
.msg.err  { color: var(--bad); padding: 9px 12px; border-radius: 9px; background: var(--bad-soft);  border: 1px solid var(--bad-line); }
.msg.info { color: var(--acc-ink); padding: 9px 12px; border-radius: 9px; background: var(--acc-soft); border: 1px solid var(--acc-line); }
.msg b { font-weight: 800; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 700; background: var(--panel2); color: var(--sub);
  border: 1px solid var(--line);
}
.tag.n { background: var(--acc); color: #fff; border-color: var(--acc); font-variant-numeric: tabular-nums; }
.tag.gold { background: var(--gold-soft); color: var(--gold); border-color: var(--gold-line); }
.tag.bad  { background: var(--bad-soft);  color: var(--bad); }
.tag.ok   { background: var(--ok-soft);   color: var(--ok); }
.tip { font-size: 11.5px; color: var(--faint); margin-top: 12px; line-height: 1.7; }
.failmsg { color: var(--bad); font-size: 12.5px; }
.gt-hint { font-size: 12px; color: var(--sub); line-height: 1.7; padding: 8px 11px; border-radius: 9px; background: var(--panel2); border: 1px solid var(--line); }
.gt-hint.err { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
.gt-hint a { color: var(--acc); }

/* ==========================================================================
   09 金额与支付   v20.1 对齐修复
   --------------------------------------------------------------------------
   · 金额/支付方式改为显式等分列 minmax(0,1fr)，杜绝自动列宽造成的溢出与参差
   · 支付卡片内 图标 / 文字 / 单选点 统一垂直居中，文字区占满剩余宽度
   · 「去支付」独立成 .form-actions 操作条，不再紧贴卡片下沿
   · 窄屏列数规整降级（见 17 响应式）
   ========================================================================== */
.amts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px; margin-bottom: 10px; min-width: 0; max-width: 100%;
}
.amt {
  display: flex; align-items: center; justify-content: center;
  min-height: 54px; min-width: 0; padding: 12px 6px;
  border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--panel); text-align: center; font-size: 16px; font-weight: 800;
  color: var(--ink); cursor: pointer; transition: .2s var(--ease);
  font-variant-numeric: tabular-nums;
}
.amt:hover { border-color: var(--acc-dim); transform: translateY(-2px); }
.amt.sel { border-color: var(--acc); background: var(--acc-soft); color: var(--acc-ink); box-shadow: var(--ring); }
.paynote {
  margin-top: 18px; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--panel2); border: 1px dashed var(--line2);
  font-size: 12px; color: var(--sub); line-height: 1.9;
}
.payways {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px; min-width: 0; max-width: 100%;
}
.pw {
  display: flex; align-items: center; gap: 11px; padding: 12px 13px;
  min-height: 64px; min-width: 0;
  border: 1.5px solid var(--line2); border-radius: var(--radius-sm);
  background: var(--panel); cursor: pointer; transition: .2s var(--ease); position: relative;
}
.pw:hover { border-color: var(--acc-dim); transform: translateY(-2px); }
.pw.sel { border-color: var(--acc); background: var(--acc-soft); box-shadow: var(--ring); }
.pw-ico {
  width: 36px; height: 36px; border-radius: 10px; flex: none; align-self: center;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff; font-size: 15px; font-weight: 800;
}
.pw.ali .pw-ico { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.pw.wx .pw-ico  { background: linear-gradient(135deg, #15803d, #4ade80); }
.pw-tx { display: flex; flex-direction: column; justify-content: center; line-height: 1.5; flex: 1 1 auto; min-width: 0; }
.pw-tx b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-tx i { font-style: normal; font-size: 11px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-ck {
  width: 18px; height: 18px; border-radius: 50%; border: 1.6px solid var(--line2);
  flex: none; align-self: center; position: relative;
}
.pw.sel .pw-ck { border-color: var(--acc); background: var(--acc); }
.pw.sel .pw-ck::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }

/* 操作条：与上方卡片用细线分隔，按钮统一右对齐，不再挤在卡片下沿 */
.form-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  min-width: 0;
}
.form-actions .fa-note { font-size: 12px; color: var(--faint); line-height: 1.7; min-width: 0; }
.form-actions .btn { flex: none; min-width: 168px; }

.paycheck { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel2); }
.paycheck .pc-hd { display: flex; align-items: center; gap: 10px; padding: 13px 16px; background: var(--panel); border-bottom: 1px solid var(--line); font-size: 14px; }
.paycheck .pc-bd { padding: 14px 16px; font-size: 13px; color: var(--sub); line-height: 1.8; }
.paycheck .pc-ft { display: flex; gap: 9px; padding: 0 16px 15px; }
.pc-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); flex: none; }
.pc-dot.wait { background: var(--warn); animation: yqPulse 1.4s infinite; }
.pc-dot.ok { background: var(--ok); }
.pc-dot.bad { background: var(--bad); }
.demo-sw { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--sub); }
.demo-sw input { width: 16px; height: 16px; accent-color: var(--acc); }

/* ==========================================================================
   10 订单与进度
   ========================================================================== */
.ocard {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel); padding: 15px 17px; margin-bottom: 11px;
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.ocard:first-child { margin-top: 0; }
.ocard:hover { border-color: var(--acc-dim); transform: translateY(-2px); box-shadow: var(--lift); }
.ocard .hd { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 10px; }
.ocard .hd b { font-size: 14px; }
.ocard .row { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 4px 0; color: var(--sub); }
.ocard .row span:first-child { color: var(--faint); flex: none; }
.ocard .row span:last-child { text-align: right; word-break: break-all; }
.st { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 7px; font-size: 11.5px; font-weight: 700; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.done { background: var(--ok-soft); color: var(--ok); }
.st.run  { background: var(--warn-soft); color: var(--warn); }
.st.run::before { animation: yqPulse 1.5s infinite; }
.st.fail { background: var(--bad-soft); color: var(--bad); }
.qempty { padding: 34px 14px; text-align: center; color: var(--faint); font-size: 13px; line-height: 1.9; }
.pwrap { display: inline-flex; align-items: center; gap: 8px; }
.pbar { width: 96px; height: 7px; border-radius: 99px; background: var(--panel3); overflow: hidden; display: inline-block; }
.pbar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .6s var(--ease); }
.pbar.full i { background: linear-gradient(90deg, var(--teal), var(--ok)); }
.pbar.empty i { background: var(--line2); }
.plabel { font-size: 11.5px; font-weight: 700; color: var(--acc); font-variant-numeric: tabular-nums; }
.progress { height: 8px; border-radius: 99px; background: var(--panel3); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: 99px; background: var(--grad-brand); transition: width .6s var(--ease); }

/* 订单自助操作条（v20 新增：把后端已有的 4 个能力接到前台） */
/* v20.2：操作按钮等宽，换行后行距加大，避免手机端挤成参差的一团 */
.oacts { display: flex; flex-wrap: wrap; gap: 12px 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.oacts .mbtn {
  padding: 5px 11px; min-width: 100px; min-height: 30px;
  border-radius: 8px; border: 1px solid var(--line2);
  background: var(--panel2); color: var(--sub); font-size: 11.5px; font-weight: 700;
  transition: .18s var(--ease);
}
.oacts .mbtn:hover { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.oacts .mbtn:disabled { opacity: .55; cursor: not-allowed; }
.oacts-note { font-size: 11.5px; color: var(--faint); margin-top: 9px; line-height: 1.7; }
.oa-logs { max-height: 46vh; overflow-y: auto; margin-top: 8px; }
.oa-log { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.oa-log time { color: var(--faint); flex: none; font-variant-numeric: tabular-nums; }
.oa-log span { color: var(--sub); word-break: break-all; }
.oa-desc { font-size: 12.5px; color: var(--sub); line-height: 1.85; margin: 4px 0 14px; }

/* ==========================================================================
   11 数据与键值
   ========================================================================== */
.kvlist { border-top: 1px solid var(--line); }
.kvlist .kv { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kvlist .kv:last-child { border-bottom: 0; }
.kvlist .kv .k { color: var(--faint); flex: none; }
.kvlist .kv .v { color: var(--ink); font-weight: 700; text-align: right; word-break: break-all; }
.kvlist .kv .v.num { font-variant-numeric: tabular-nums; }
.statgrid, .stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.stat {
  padding: 16px 14px; border-radius: var(--radius-sm);
  background: var(--grad-soft); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.stat b { font-size: 21px; font-weight: 800; color: var(--acc-ink); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat span { font-size: 11.5px; color: var(--sub); }
.balcard {
  position: relative; overflow: hidden; padding: 18px; border-radius: var(--radius);
  background: var(--grad-brand); color: #fff; box-shadow: var(--btn-shadow-hover);
}
.balcard::before {
  content: ""; position: absolute; right: -34px; top: -46px; width: 150px; height: 150px;
  border-radius: 50%; background: rgba(255,255,255,.13); pointer-events: none;
}
.balcard .bl { font-size: 12px; opacity: .85; position: relative; }
.balcard .bv { font-size: 29px; font-weight: 800; margin: 5px 0 15px; position: relative; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.balcard .ba { display: flex; gap: 8px; position: relative; }
.balcard .ba .btn { flex: 1; }
.balcard .ba .btn.ghost { background: rgba(255,255,255,.94); color: var(--acc-ink); border-color: transparent; }
.balcard .ba .btn:not(.ghost) { background: rgba(255,255,255,.18); box-shadow: none; border-color: rgba(255,255,255,.28); }
.balcard .ba .btn:hover { filter: brightness(1.08); }
.logoutbtn { width: 100%; margin-top: 14px; }
.logoutbtn:hover { color: var(--bad) !important; border-color: var(--bad) !important; background: var(--bad-soft) !important; }
.logoutbtn svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.logingate { text-align: center; padding: 42px 20px 34px; }
.logingate .lg-ico {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 18px;
  display: grid; place-items: center; background: var(--acc-soft); color: var(--acc);
}
.logingate .lg-ico svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logingate b { display: block; font-size: 16px; }
.logingate p { font-size: 12.5px; color: var(--sub); margin: 8px 0 18px; }
.contacts { display: grid; gap: 9px; }
.contact {
  display: flex; align-items: center; gap: 10px; padding: 11px 13px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--panel2); font-size: 13px; cursor: pointer; transition: .2s var(--ease);
}
.contact svg { width: 17px; height: 17px; fill: none; stroke: var(--acc); stroke-width: 1.8; }
.contact b { font-variant-numeric: tabular-nums; }
.contact:hover { border-color: var(--acc-dim); transform: translateX(3px); }
.contact:active { transform: scale(.99); }
.contact .cp { margin-left: auto; font-size: 11.5px; color: var(--acc); font-weight: 700; }
.contact.wide { grid-column: 1 / -1; }
.copy-ok { border-color: var(--ok) !important; background: var(--ok-soft) !important; }

/* ==========================================================================
   12 首页模块
   ========================================================================== */
.hero {
  position: relative; overflow: hidden;
  padding: 46px 44px 42px; margin-bottom: 24px;
  border-radius: var(--radius-lg); border: 1px solid var(--line);
  background: var(--grad-hero); box-shadow: var(--lift);
  animation: yqFadeUp .6s var(--ease) both;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .30;
  background-image: linear-gradient(var(--acc-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--acc-line) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: linear-gradient(120deg, #000, transparent 72%);
  mask-image: linear-gradient(120deg, #000, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -110px; width: 340px; height: 340px;
  border-radius: 50%; background: radial-gradient(circle, var(--acc-line), transparent 68%);
  pointer-events: none; animation: yqFloat 9s ease-in-out infinite;
}
.hero > * { position: relative; z-index: 1; }
.hero .hero-bar {
  position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: var(--grad-brand); z-index: 2;
}
.hero .htag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px;
  border-radius: 99px; font-size: 12px; font-weight: 600;
  background: var(--panel); border: 1px solid var(--line); color: var(--sub);
  box-shadow: var(--lift-sm);
}
.hero .htag .live { color: var(--ok); }
.hero h1 {
  font-size: clamp(27px, 4.2vw, 42px); font-weight: 800; line-height: 1.34;
  letter-spacing: -.025em; margin: 20px 0 14px; max-width: 720px;
}
.hero h1 em {
  font-style: normal; position: relative; color: var(--acc);
  background: linear-gradient(95deg, var(--acc), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .hsub { font-size: 14px; color: var(--sub); line-height: 1.95; max-width: 660px; }
.hero .hbtns { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero .hbtns .btn { padding: 12px 24px; }
.hero .hstats {
  display: flex; gap: 34px; margin-top: 30px; padding-top: 22px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hstat { display: flex; flex-direction: column; gap: 2px; }
.hstat b { font-size: 24px; font-weight: 800; color: var(--acc-ink); font-variant-numeric: tabular-nums; }
.hstat span { font-size: 11.5px; color: var(--faint); }
.sub { color: var(--sub); }
.faint { color: var(--faint); }
.csub, .hsub, .pd { color: var(--sub); }
.pn { color: var(--ink); }
.stepgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stepcard {
  position: relative; padding: 20px 20px 20px 22px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift);
  transition: transform .25s var(--ease), box-shadow .25s;
  counter-increment: yqstep;
}
.stepgrid { counter-reset: yqstep; }
.stepcard::before {
  content: counter(yqstep, decimal-leading-zero);
  position: absolute; right: 18px; top: 12px; font-size: 26px; font-weight: 800;
  color: var(--acc-dim); opacity: .55; font-variant-numeric: tabular-nums;
}
.stepcard::after {
  content: ""; position: absolute; left: 0; top: 20px; bottom: 20px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--grad-brand);
}
.stepcard:hover { transform: translateY(-4px); box-shadow: var(--lift-lg); }
.stepcard b { display: block; font-size: 15px; margin-bottom: 8px; }
.stepcard p { font-size: 12.5px; color: var(--sub); line-height: 1.8; }
.banner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; padding: 22px 26px; margin-bottom: 22px;
  border-radius: var(--radius); border: 1px solid var(--acc-line);
  background: var(--grad-soft);
}
.banner .bt b { font-size: 16px; }
.banner .bt p { font-size: 12.5px; color: var(--sub); margin-top: 6px; line-height: 1.75; }
.note {
  padding: 18px 22px; border-radius: var(--radius);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.note b { font-size: 14px; color: var(--gold); }
.note p { font-size: 12.5px; color: var(--sub); line-height: 1.85; margin-top: 7px; }
.note strong { color: var(--ink); }
.feat, .pkg {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--lift);
}
.sp { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.cnt { display: flex; align-items: center; gap: 10px; }
.featgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.feat {
  padding: 20px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.feat:hover { transform: translateY(-4px); box-shadow: var(--lift-lg); }
.feat .fi {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-size: 19px; font-weight: 800; margin-bottom: 12px;
}
.feat b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.feat p { font-size: 12.5px; color: var(--sub); line-height: 1.8; }

/* ==========================================================================
   13 弹窗与浮层
   ========================================================================== */
.mask {
  position: fixed; inset: 0; z-index: 80; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,15,28,.52);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mask.show { display: flex; animation: yqFadeIn .2s both; }
.dlg, .dlg2 {
  width: min(420px, 100%); max-height: min(88vh, 760px); overflow-y: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
  box-shadow: var(--lift-lg); animation: yqPop .32s var(--ease) both;
}
.dlg2 { width: min(520px, 100%); }
.dlg h3 { font-size: 19px; font-weight: 800; }
.dlg .dsub { font-size: 12.5px; color: var(--faint); margin-top: 5px; line-height: 1.7; }
.dlg .field { margin-top: 14px; }
.dlg .btns { margin-top: 20px; display: flex; gap: 10px; }
.dlg .btns .btn { flex: 1; }
.dlg .btns .btn + .btn { margin-left: 0; }
.dlg .tip { border-top: 1px solid var(--line); padding-top: 12px; }
.dlg a { color: var(--acc); }

/* 公告弹窗 */
.notice-dlg { padding: 0; overflow: hidden; }
.nd-top { position: relative; padding: 22px 24px 18px; background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.nd-close { position: absolute; right: 16px; top: 14px; background: none; border: 0; font-size: 26px; line-height: 1; color: var(--faint); }
.nd-head { display: flex; align-items: center; gap: 11px; }
.nd-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--acc); color: #fff; }
.nd-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.nd-head h3 { font-size: 18px; }
.nd-meta { display: block; font-size: 11.5px; color: var(--faint); margin-top: 10px; }
.nd-body { padding: 20px 24px; max-height: 46vh; overflow-y: auto; }
.nd-body p { font-size: 13.5px; line-height: 2; white-space: pre-wrap; color: var(--sub); cursor: pointer; }
.nd-foot { padding: 0 24px 22px; display: flex; justify-content: flex-end; }

/* 轻提示 */
.toast {
  position: fixed; left: 50%; top: 26px; z-index: 100;
  transform: translate(-50%, -16px); opacity: 0; pointer-events: none;
  padding: 11px 20px; border-radius: 11px; background: var(--panel);
  border: 1px solid var(--line); box-shadow: var(--lift-lg);
  font-size: 13px; font-weight: 600; color: var(--ink);
  transition: .3s var(--ease); max-width: min(88vw, 480px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 撒花 */
.confetti-box { position: fixed; inset: 0; z-index: 99; pointer-events: none; overflow: hidden; }
.confetti-piece { position: absolute; top: -20px; opacity: .9; animation: yqFall linear forwards; }
@keyframes yqFall { to { transform: translateY(105vh) rotate(720deg); opacity: 0; } }

/* 换肤控件（skin.js 动态插入，可选模块） */
.skin-switch { position: fixed; right: 24px; bottom: 80px; z-index: 38; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.skin-fab {
  width: 42px; height: 42px; border-radius: 13px; border: 1px solid var(--line);
  background: var(--panel); color: var(--acc); box-shadow: var(--lift);
  display: grid; place-items: center; transition: .25s var(--ease);
}
.skin-fab:hover { transform: rotate(-12deg) translateY(-2px); border-color: var(--acc-line); }
.skin-fab svg { width: 19px; height: 19px; fill: currentColor; }
.skin-panel {
  width: 176px; padding: 13px; border-radius: 14px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--lift-lg);
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(.97);
  transition: .25s var(--ease);
}
.skin-switch.open .skin-panel { opacity: 1; pointer-events: auto; transform: none; }
.skin-panel b { display: block; font-size: 12px; margin-bottom: 9px; color: var(--faint); }
.skin-dot {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 8px;
  border: 1px solid transparent; border-radius: 9px; background: none;
  color: var(--sub); font-size: 12.5px; font-weight: 600; text-align: left; transition: .18s;
}
.skin-dot:hover { background: var(--panel2); }
.skin-dot.on { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-ink); }
.skin-dot i { width: 16px; height: 16px; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px var(--panel); }
.skin-panel small { display: block; margin-top: 9px; font-size: 10.5px; color: var(--faint); line-height: 1.6; }

/* ==========================================================================
   14 骨架屏与动效
   ========================================================================== */
.sk, .skel-card {
  background: linear-gradient(90deg, var(--panel2) 22%, var(--panel3) 42%, var(--panel2) 62%);
  background-size: 420px 100%; animation: yqShimmer 1.3s linear infinite;
  border-radius: 6px;
}
.skel-card { padding: 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.sk.line { height: 11px; margin-bottom: 9px; width: 100%; }
.sk.b { height: 15px; }
.askel { padding: 14px; }
.askel .sk { margin-bottom: 8px; }

/* ==========================================================================
   15 页脚
   ========================================================================== */
.foot {
  border-top: 1px solid var(--line);
  background: var(--panel);
  background: color-mix(in srgb, var(--panel) 68%, transparent);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  flex: none;
}
.foot .in {
  max-width: var(--maxw); margin: 0 auto; padding: 26px 22px;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.foot .fl b { font-size: 15px; }
.foot .fl p { font-size: 12px; color: var(--faint); line-height: 1.9; margin-top: 7px; max-width: 430px; }
.foot .fr { font-size: 12px; color: var(--sub); line-height: 2; text-align: right; }
.foot .fr a:hover { color: var(--acc); }

/* ==========================================================================
   16 表格与分页（前后台共用）
   ========================================================================== */
.tblwrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel); }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 560px; }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { background: var(--panel2); color: var(--sub); font-weight: 700; font-size: 11.5px; position: sticky; top: 0; z-index: 1; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--acc-soft); }
.tbl td .btn { padding: 5px 10px; font-size: 11.5px; }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--sub); }
.pager .btn { padding: 6px 12px; }
.plist { display: flex; flex-direction: column; gap: 10px; }
.pitem, .pgrid { display: grid; gap: 10px; }
.pdetail { font-size: 12px; color: var(--sub); line-height: 1.8; }
.pi { font-style: normal; }
.ph { font-size: 12px; color: var(--faint); }
.act { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chkline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--sub); }
.chk, .cb { accent-color: var(--acc); width: 15px; height: 15px; cursor: pointer; }
.row { display: flex; align-items: center; gap: 10px; }
.logbox { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--panel2); padding: 10px 12px; font-size: 12px; }
.logrow { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.logrow:last-child { border-bottom: 0; }
.logtime { color: var(--faint); font-variant-numeric: tabular-nums; flex: none; }
.logmsg { color: var(--sub); word-break: break-all; }
.logact { color: var(--acc); font-weight: 700; flex: none; }

/* ==========================================================================
   17 响应式
   ========================================================================== */
@media (max-width: 1000px) {
  .nav { display: none; }
  .burger { display: block; }
  .top-right { margin-left: auto; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .side { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: start; }
  .stepgrid { grid-template-columns: repeat(2, 1fr); }
  .featgrid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 36px 28px; }
}
@media (max-width: 640px) {
  .wrap { padding: 20px 14px 56px; }
  /* v20.2：登录态顶栏元素多，手机端精简左侧、收紧右侧，避免把主题/汉堡挤出屏幕 */
  .topbar .in { padding: 9px 12px; gap: 8px; }
  .brand-link { flex: none; gap: 0; }
  .brand-link .bn { display: none; }
  .top-right { margin-left: auto; gap: 6px; min-width: 0; }
  .top-admin { padding: 6px 9px; font-size: 11.5px; }
  .balchip { padding: 5px 8px; font-size: 11px; }
  .who { padding: 5px 6px; }
  .who > span:first-child { display: none; }
  .theme-btn { width: 32px; height: 32px; flex: none; }
  .burger { width: 34px; height: 34px; padding: 8px 7px; flex: none; }
  .card { padding: 18px; }
  .card::before { left: 16px; right: 16px; }
  .hero { padding: 30px 20px; }
  .hero h1 { font-size: 26px; }
  .hero .hstats { gap: 22px; }
  .stepgrid { grid-template-columns: 1fr; }
  .featgrid { grid-template-columns: 1fr; }
  .statgrid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .banner { padding: 18px; }
  .foot .in { padding: 22px 16px; }
  .foot .fr { text-align: left; }
  .dlg, .dlg2 { padding: 20px; }
  .back-top { right: 14px; bottom: 16px; }
  /* 手机端隐藏浮动换肤钮：固定定位会压住「查进度」等功能按钮并拦截点击；
     桌面端保留完整换肤，深浅主题仍可用顶栏月亮按钮切换 */
  .skin-switch { display: none; }

  /* v20.1 对齐修复：金额规整铺满、支付方式单列、操作条全宽、弹窗不越界 */
  .amts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .amt { grid-column: span 2; font-size: 15px; min-height: 50px; }
  .amt:nth-child(4), .amt:nth-child(5) { grid-column: span 3; }
  .payways { grid-template-columns: minmax(0, 1fr); }
  .pw { min-height: 62px; }
  .paynote { padding-right: 42px; }   /* 给右下角浮动的换肤按钮让位，避免压住文字 */
  .form-actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .form-actions .fa-note { text-align: center; }
  .form-actions .btn { width: 100%; min-width: 0; }
  /* v20.2：手机端操作行等宽铺满，卡片内裸按钮统一全宽 */
  .btns { gap: 8px; }
  .btns > .btn { flex: 1 1 116px; min-width: 0; }
  .card > .btn, .card > button.btn, .field > .btn, .field > button.btn { width: 100%; min-width: 0; }
  .oacts .mbtn { flex: 1 1 100px; min-width: 0; }
  .mask { padding: 14px; }
  .dlg, .dlg2 { width: min(420px, calc(100vw - 28px)); }
  .nd-top, .nd-body, .nd-foot { padding-left: 18px; padding-right: 18px; }
}
@media (max-width: 360px) {
  .amts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .amt, .amt:nth-child(4), .amt:nth-child(5) { grid-column: span 1; }
  .amt:last-child { grid-column: 1 / -1; }
}
