/* 设计系统：移动优先 · 蓝紫渐变 · 玻璃拟物 */
:root {
  --blue: #007AFF;
  --blue-deep: #0062CC;
  --purple: #7B61FF;
  --grad: linear-gradient(135deg, #D6E3FC 0%, #E4DDFB 50%, #F0F2F8 100%);
  --glass: rgba(255,255,255,.62);
  --glass-strong: rgba(255,255,255,.82);
  --blur: blur(20px);
  --ink: #1a1d29;
  --ink-2: #5b6072;
  --ink-3: #949aab;
  --line: rgba(30,40,80,.08);
  --ok: #16a34a;
  --warn: #f59e0b;
  --err: #e5484d;
  --shadow: 0 8px 32px rgba(40,60,120,.10);
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  color: var(--ink);
  background: var(--grad);
  background-attachment: fixed;
  min-height: 100vh;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 560px; margin: 0 auto; padding: 18px 16px 100px; }

/* 顶部 */
.top { display: flex; align-items: center; justify-content: space-between; padding: 8px 4px 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -.3px; }
.brand .dot { width: 30px; height: 30px; border-radius: 10px; background: linear-gradient(135deg, var(--blue), var(--purple)); box-shadow: 0 4px 12px rgba(0,122,255,.3); position: relative; }
.brand .dot::after { content: ""; position: absolute; inset: 9px; border: 2px solid #fff; border-radius: 50%; border-right-color: transparent; }
.quota-pill { background: var(--glass); border: 1px solid rgba(255,255,255,.7); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--blue-deep); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }

/* 玻璃卡片 */
.card { background: var(--glass); border: 1px solid rgba(255,255,255,.75); border-radius: var(--radius); padding: 20px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); margin-bottom: 14px; }
.card.tight { padding: 16px 18px; }
.card h2 { margin: 0 0 4px; font-size: 17px; font-weight: 700; letter-spacing: -.2px; }
.card .sub { margin: 0 0 18px; font-size: 13px; color: var(--ink-2); }

/* 表单 */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; padding-left: 2px; }
.field input, .field select {
  width: 100%; border: 1.5px solid var(--line); background: var(--glass-strong);
  border-radius: 13px; padding: 13px 15px; font-size: 16px; color: var(--ink);
  outline: none; transition: border .2s, box-shadow .2s; backdrop-filter: var(--blur);
}
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,122,255,.12); }
.field input::placeholder { color: var(--ink-3); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 12px; color: var(--ink-3); margin-top: 6px; padding-left: 2px; }
/* 时间：时 / 分 双下拉，精确到 1 分钟 */
.row-time { grid-template-columns: .78fr 1.22fr; }
.time-row { display: flex; align-items: center; gap: 4px; }
.time-row select {
  flex: 1 1 0; width: auto; min-width: 0; padding: 13px 16px;
  text-align: center; text-align-last: center; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238A8FA0' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 5px center; background-size: 9px 6px;
}
.time-row .colon { font-size: 18px; font-weight: 700; color: var(--ink-3); line-height: 1; }

/* 按钮 */
.btn {
  display: block; width: 100%; border: none; border-radius: 14px; padding: 15px;
  font-size: 16px; font-weight: 700; color: #fff; cursor: pointer;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  box-shadow: 0 8px 20px rgba(0,122,255,.28); transition: transform .15s, box-shadow .15s, opacity .15s;
  font-family: inherit;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; box-shadow: none; }
.btn.ghost { background: var(--glass-strong); color: var(--blue-deep); border: 1.5px solid rgba(0,122,255,.25); box-shadow: none; }
.btn.sm { padding: 10px 14px; font-size: 14px; width: auto; display: inline-block; }
.btn.danger { background: linear-gradient(135deg, #f43f5e, #e11d48); }

/* 分段切换（立即下单 / 补记录） */
.seg { display: flex; gap: 4px; background: var(--glass); border: 1px solid rgba(255,255,255,.75); border-radius: 15px; padding: 4px; margin-bottom: 14px; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow); }
.seg-btn { flex: 1; border: none; background: transparent; padding: 11px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); border-radius: 11px; cursor: pointer; font-family: inherit; transition: background .2s, color .2s, box-shadow .2s; }
.seg-btn.active { background: linear-gradient(135deg, var(--blue), var(--purple)); color: #fff; box-shadow: 0 4px 12px rgba(0,122,255,.25); }

/* 底部导航 */
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; max-width: 560px; margin: 0 auto;
  display: flex; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid rgba(255,255,255,.8); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); z-index: 50; }
.tabbar a { flex: 1; text-align: center; color: var(--ink-3); text-decoration: none; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabbar a.active { color: var(--blue); }
.tabbar .ic { display: flex; align-items: center; justify-content: center; width: 23px; height: 23px; }
.tabbar .ic svg { width: 23px; height: 23px; display: block; }

/* 订单卡 */
.order { background: var(--glass-strong); border: 1px solid rgba(255,255,255,.8); border-radius: 16px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.order .oh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.order .oid { font-size: 12px; color: var(--ink-3); font-family: ui-monospace, monospace; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.badge.submitted { background: #e0edff; color: #0062CC; }
.badge.running { background: #fef3c7; color: #b45309; }
.badge.done { background: #dcfce7; color: #15803d; }
.badge.password_wrong { background: #fee2e2; color: #b91c1c; }
.badge.stuck { background: #f3e8ff; color: #7e22ce; }
.badge.failed { background: #f1f5f9; color: #64748b; }
.badge.confirming { background: #fef3c7; color: #b45309; }
.order .meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 13px; }
.order .meta .k { color: var(--ink-3); }
.order .meta .v { font-weight: 600; }
.order .rec { margin-top: 12px; padding: 10px 12px; background: linear-gradient(135deg, #eef7ff, #f5f0ff); border-radius: 11px; font-size: 13px; color: var(--blue-deep); font-weight: 600; }
.order .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* 邀请进度 */
.invite-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 2px 0 12px; }
.is-item { background: rgba(255,255,255,.6); border-radius: 12px; padding: 10px 6px; text-align: center; }
.is-n { font-size: 20px; font-weight: 800; color: var(--blue-deep); line-height: 1.2; }
.is-l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.share-acts { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }

/* 补记录标记 */
.mode-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #ede9fe; color: #6d28d9; }
/* 后台标签：已生成海报 / 老朋友 */
.tag-ok { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #dcfce7; color: #15803d; white-space: nowrap; }
.tag-mute { display: inline-block; margin-top: 3px; font-size: 10px; padding: 1px 6px; border-radius: 5px; background: rgba(0,0,0,.05); color: var(--ink-3); }

/* 微信分享引导浮层 */
#shareMask { display: none; position: fixed; inset: 0; background: rgba(10,14,25,.84); z-index: 200; flex-direction: column; align-items: flex-end; padding: 16px 24px; }
.share-arrow { font-size: 40px; color: #fff; line-height: 1; margin-top: 2px; animation: pulseArrow 1s infinite alternate; }
.share-tip { color: #fff; font-size: 15px; text-align: right; line-height: 1.75; margin-top: 6px; }
.share-tip b { color: #9ec5ff; letter-spacing: 2px; }
@keyframes pulseArrow { from { transform: translateY(0); opacity: .7; } to { transform: translateY(-6px); opacity: 1; } }

/* 个人邀请海报弹层 */
#posterMask {
  display: none; position: fixed; inset: 0; z-index: 210; padding: 16px;
  background: rgba(10,14,25,.86); align-items: center; justify-content: center;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.poster-box {
  width: 100%; max-width: 360px; max-height: 94vh; background: #fff;
  border-radius: 20px; padding: 12px; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 24px 64px rgba(0,0,0,.42);
}
.poster-head { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: center; }
.poster-stage {
  position: relative; flex: 1; min-height: 220px; border-radius: 14px;
  overflow: hidden; background: #f3f1fa;
  display: flex; align-items: center; justify-content: center;
}
.poster-stage img { display: none; max-width: 100%; max-height: 70vh; object-fit: contain; }
/* 生成后：先引导保存，再引导发群（微信不能由网页直接发图到群） */
.poster-acts { display: flex; flex-direction: column; gap: 8px; }
.poster-count { font-size: 12px; color: var(--ink-3); text-align: center; line-height: 1.5; }
.poster-guide { display: none; flex-direction: column; gap: 8px; }
.poster-guide .pg-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.poster-guide .pg-text {
  background: linear-gradient(135deg, #eef4ff, #f5f0ff); border-radius: 12px;
  padding: 11px 13px; font-size: 12.5px; line-height: 1.8; color: var(--blue-deep);
  white-space: pre-wrap; word-break: break-word; user-select: text; -webkit-user-select: text;
}
.poster-loading {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  font-size: 13px; color: var(--ink-3);
}
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid rgba(0,122,255,.18); border-top-color: var(--blue);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 状态/提示 */
.empty { text-align: center; padding: 50px 20px; color: var(--ink-3); }
.empty .ic { font-size: 46px; margin-bottom: 12px; opacity: .6; display: flex; justify-content: center; }
.alert { border-radius: 13px; padding: 12px 14px; font-size: 13px; margin-bottom: 14px; line-height: 1.55; }
.alert b { font-weight: 800; }
.alert b[onclick] { text-decoration: underline; cursor: pointer; }
/* 数据新鲜度提示：让人知道这不是死页面 */
.sync-tip { font-size: 11.5px; color: var(--ink-3); text-align: center; margin: -4px 0 12px; min-height: 14px; }
.alert.info { background: #e0edff; color: #1e40af; }
.alert.warn { background: #fef3c7; color: #92400e; }
.alert.err { background: #fee2e2; color: #991b1b; }
.alert.ok { background: #dcfce7; color: #166534; }

/* toast */
/* 注意 left:50% 会让 fixed 元素的可用宽度只剩屏幕一半，必须用 width:max-content 撑开，
   否则多行文案会被强行折成四五行 */
#toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-20px); z-index: 100;
  background: rgba(26,29,41,.94); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 600;
  opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none;
  width: max-content; max-width: min(92vw, 342px); text-align: center; line-height: 1.6;
  white-space: pre-line; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: rgba(190,30,45,.95); }

/* 大数字 */
.big-num { font-size: 34px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(135deg, var(--blue), var(--purple)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* 邀请码 */
.code-box { background: linear-gradient(135deg, #e0edff, #ede9fe); border-radius: 14px; padding: 16px; text-align: center; margin: 10px 0; }
.code-box .code { font-size: 30px; font-weight: 800; letter-spacing: 4px; color: var(--blue-deep); font-family: ui-monospace, monospace; }
.code-box .lbl { font-size: 12px; color: var(--ink-2); }

/* 管理后台表格 */
.admin-tbl { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-tbl th { text-align: left; color: var(--ink-3); font-weight: 600; padding: 8px 6px; border-bottom: 1.5px solid var(--line); position: sticky; top: 0; background: var(--glass-strong); }
.admin-tbl td { padding: 10px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-tbl tr:hover td { background: rgba(255,255,255,.4); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--glass-strong); border-radius: 14px; padding: 14px; text-align: center; }
.stat .n { font-size: 24px; font-weight: 800; color: var(--blue-deep); }
.stat .l { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.invite-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* 手机上不给够宽度，中文表头会被压成一列一个字，必须撑开横向滚动 */
.tbl-inviter { min-width: 520px; }
.tbl-inviter th, .tbl-inviter td { white-space: nowrap; }
.tbl-orders { min-width: 700px; }
/* 谁在拉人：卡片式列表 */
.inviter-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.iv-card { background: rgba(255,255,255,.66); border: 1px solid rgba(255,255,255,.9); border-radius: 13px; padding: 10px 12px; }
.iv-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; flex-wrap: wrap; }
.iv-tags { display: flex; gap: 4px; flex-shrink: 0; align-items: center; }
.iv-no { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.iv-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-2); margin-top: 7px; align-items: center; }
.iv-meta b { color: var(--blue-deep); }
.iv-time { font-size: 11px; color: var(--ink-3); margin-top: 5px; }

/* 加载 */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(0,122,255,.25); border-top-color: var(--blue); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: middle; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation: none; } }

/* ========== 加好友引导 ==========
   全站唯一 100% 必经的节点是「下单成功」，加好友转化只能在这里做。 */
#okMask, .wx-mask {
  display: none; position: fixed; inset: 0; z-index: 220; padding: 16px;
  background: rgba(10, 14, 25, .86); overflow-y: auto;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
#okMask.show, .wx-mask.show { display: flex; }

.ok-box {
  margin: auto; width: 100%; max-width: 336px; background: #fff;
  border-radius: 22px; padding: 22px 20px 14px; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
  animation: okIn .26s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes okIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .ok-box { animation: none; } }

.ok-ico {
  width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #059669);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 20px rgba(5, 150, 105, .3);
}
.ok-ico svg { width: 26px; height: 26px; display: block; }
.ok-box h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.ok-sub { margin: 7px 0 15px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.ok-sub b { color: var(--blue-deep); }

.ok-qr {
  width: 182px; height: 182px; margin: 0 auto 11px; border-radius: 14px;
  overflow: hidden; border: 1px solid var(--line); background: #fff;
}
.ok-qr img { width: 100%; height: 100%; display: block; }

.ok-id {
  display: inline-flex; align-items: center; gap: 7px;
  background: #f1f4fa; border-radius: 999px; padding: 6px 7px 6px 14px;
  font-size: 13.5px; font-weight: 700; font-family: ui-monospace, monospace;
  color: var(--ink); margin-bottom: 14px;
}
.ok-id button {
  border: none; background: var(--blue); color: #fff; font-size: 12px;
  font-weight: 700; padding: 5px 12px; border-radius: 999px;
  font-family: inherit; cursor: pointer;
}

.ok-why {
  text-align: left; background: linear-gradient(135deg, #eef4ff, #f5f0ff);
  border-radius: 13px; padding: 11px 13px; margin-bottom: 14px;
  font-size: 12.5px; line-height: 1.95; color: #3d4356;
}
.ok-why b { color: var(--blue-deep); font-weight: 700; }
.ok-later { display: block; margin-top: 8px; padding: 6px; font-size: 12.5px; color: var(--ink-3); text-decoration: none; }

/* ========== 换号拦截（红） ==========
   学生拿别人的 Keep 账号下单时弹这个。走 toast 会一闪而过，
   而这个提示的唯一目的是把人引到微信上，必须占满屏。 */
#bindMask {
  display: none; position: fixed; inset: 0; z-index: 240; padding: 16px;
  background: rgba(10, 14, 25, .88); overflow-y: auto;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
#bindMask.show { display: flex; }

.bind-box {
  margin: auto; width: 100%; max-width: 336px; background: #fff;
  border-radius: 22px; padding: 22px 20px 14px; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
  animation: okIn .26s cubic-bezier(.2, .9, .3, 1.2);
}
@media (prefers-reduced-motion: reduce) { .bind-box { animation: none; } }

.bind-ico {
  width: 50px; height: 50px; margin: 0 auto 10px; border-radius: 50%;
  background: linear-gradient(135deg, #f87171, #dc2626);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; font-weight: 800; color: #fff; line-height: 1;
  box-shadow: 0 8px 20px rgba(220, 38, 38, .3);
}
.bind-box h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; color: #b91c1c; }
.bind-sub { margin: 7px 0 13px; font-size: 13px; color: var(--ink-2); line-height: 1.65; }

.bind-cur {
  background: #fef2f2; border: 1px solid #fecaca; border-left: 3px solid #ef4444;
  border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; text-align: left;
  font-size: 12.5px; color: #7f1d1d; line-height: 1.6;
}
.bind-cur b { font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: .6px; color: #b91c1c; }
.bind-cur .muted { font-size: 11.5px; color: #b91c1c; margin-top: 3px; }

/* 首页：客服微信广告位（长期露出，点开就是二维码） */
.wx-notice {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 14px; padding: 11px 14px; margin-bottom: 14px;
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: var(--shadow);
}
.wx-notice .wn-ic {
  width: 30px; height: 30px; flex: 0 0 auto; border-radius: 9px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
}
.wx-notice .wn-ic svg { width: 17px; height: 17px; display: block; }
.wx-notice .wn-t { flex: 1; min-width: 0; }
.wx-notice .wn-l1 { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.wx-notice .wn-l1 b { color: var(--ink); font-weight: 800; font-family: ui-monospace, monospace; letter-spacing: .3px; }
.wx-notice .wn-l2 { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; white-space: nowrap; }
.wx-notice .wn-go { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #16a34a; }

/* 订单页：常驻加好友入口 */
.wx-bar {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  background: var(--glass-strong); border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; box-shadow: var(--shadow);
}
.wx-bar .wi {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  display: flex; align-items: center; justify-content: center;
}
.wx-bar .wi svg { width: 19px; height: 19px; display: block; }
.wx-bar .wt { flex: 1; min-width: 0; }
.wx-bar .wt .t1 { font-size: 13.5px; font-weight: 700; }
.wx-bar .wt .t2 { font-size: 11.5px; color: var(--ink-2); margin-top: 1px; }
.wx-bar .go { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: var(--blue-deep); }

/* 异常订单：直给加好友这条出路 */
.warn-add {
  margin-top: 12px; background: #fff1f2; border: 1px solid #fecdd3;
  border-radius: 12px; padding: 11px 13px; font-size: 12.5px;
  line-height: 1.7; color: #9f1239;
}
.warn-add b { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* 二维码小弹层（订单页用） */
.wx-box {
  margin: auto; width: 100%; max-width: 320px; background: #fff;
  border-radius: 20px; padding: 20px; text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}
.wx-t { font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.wx-s { font-size: 12.5px; color: var(--ink-2); margin: 6px 0 14px; line-height: 1.6; }

/* ========== 后台余额提醒 ==========
   余额见底时学生下单会直接被平台拒，这是唯一会让全站停摆的指标，
   所以正常状态下也要一直挂着，别藏在统计格里。 */
.bal-bar {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 10px 13px; border-radius: 13px; margin-bottom: 10px;
  font-size: 13px; line-height: 1.5;
}
.bal-bar .amt { font-family: ui-monospace, monospace; font-size: 16px; font-weight: 800; letter-spacing: -.2px; }
.bal-bar .note { font-size: 11.5px; font-weight: 500; opacity: .88; }
.bal-bar .fill {
  margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 11px;
  border-radius: 999px; background: rgba(255, 255, 255, .8); cursor: pointer;
  border: 1px solid rgba(0, 0, 0, .06); color: inherit; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}
.bal-bar .fill:active { transform: scale(.96); }

.bal-ok { background: rgba(255, 255, 255, .66); border: 1px solid rgba(255, 255, 255, .9); color: var(--ink-2); }
.bal-ok .amt { color: var(--ink); }

.bal-low { background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid #f59e0b; color: #92400e; }
.bal-low .amt { color: #b45309; }

.bal-empty { background: #fef2f2; border: 1px solid #fecaca; border-left: 3px solid #ef4444; color: #b91c1c; }
.bal-empty .amt { color: #b91c1c; }

/* 一号多绑的成员行 */
.mb-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.mb-row:last-child { border-bottom: none; }
.mb-row .who { font-family: ui-monospace, monospace; font-weight: 700; font-size: 13px; }
.mb-row .meta { font-size: 11.5px; color: var(--ink-3); }
.mb-row button {
  margin-left: auto; flex: 0 0 auto; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--blue-deep); font-family: inherit; cursor: pointer;
}
