:root {
  --bg: #eef2f9;
  --card: #ffffff;
  --text: #101828;
  --muted: #67708a;
  --line: #e5e9f2;
  --brand: #1d4ed8;
  --brand-2: #3b82f6;
  --brand-soft: #e8efff;
  --danger: #d92d20;
  --danger-soft: #fee4e2;
  --ok: #059669;
  --ok-soft: #d1fadf;
  --warn: #b54708;
  --warn-soft: #fef0c7;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 30px rgba(16, 24, 40, .08);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------------- 页面背景（柔光网格） ---------------- */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 620px at 10% -10%, rgba(59, 130, 246, .22), transparent 62%),
    radial-gradient(820px 540px at 92% 2%, rgba(16, 185, 129, .16), transparent 60%),
    radial-gradient(900px 640px at 78% 104%, rgba(99, 102, 241, .16), transparent 62%),
    radial-gradient(760px 520px at 2% 92%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, .05) 1px, transparent 0);
  background-size: auto, auto, auto, auto, 22px 22px;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, repeat;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
  min-height: 100dvh;
}

/* 顶部一层很淡的高光，让卡片浮起来 */
body::before {
  content: '';
  position: fixed;
  inset: 0 0 auto 0;
  height: 220px;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
}
#app { position: relative; z-index: 1; }

a { color: var(--brand); text-decoration: none; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); }

/* ---------------- shell ---------------- */
#app { min-height: 100dvh; }

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 16px calc(96px + var(--safe-b));
  min-height: 100dvh;
}
.shell.wide { max-width: 1180px; }
.shell.no-nav { padding-bottom: 32px; }

.page-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 2px 12px;
}
.page-head h1 { font-size: 19px; margin: 0; font-weight: 700; letter-spacing: .3px; }
.page-head .sub { color: var(--muted); font-size: 12.5px; margin-top: 1px; }
.page-head .spacer { flex: 1; }

.back-btn {
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  margin: 0 -16px 6px;
  padding: 12px 16px 10px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(229, 233, 242, .8);
  display: flex; align-items: center; gap: 12px;
}
.topbar .logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(145deg, #1e40af, #3b82f6);
  color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 17px; letter-spacing: 0;
  box-shadow: 0 6px 14px rgba(29, 78, 216, .30);
}
.topbar .tt { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.topbar .ts { font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.topbar .who {
  margin-left: auto; text-align: right; font-size: 12.5px; color: var(--muted); cursor: pointer;
}
.topbar .who b { display: block; color: var(--text); font-size: 13.5px; font-weight: 600; }

/* ---------------- cards ---------------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 233, 242, .75);
  padding: 16px;
  margin-bottom: 14px;
}
.card.tight { padding: 12px 14px; }
.card-title { font-size: 14px; font-weight: 700; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card-title .dot { width: 4px; height: 14px; border-radius: 3px; background: var(--brand); }
.card-title .spacer { flex: 1; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 11px 16px; font-size: 15px; font-weight: 600;
  background: #fff; color: var(--text); cursor: pointer;
  transition: transform .08s ease, box-shadow .15s ease, background .15s;
  box-shadow: var(--shadow-sm); white-space: nowrap;
}
.btn:active { transform: scale(.985); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: #fff; box-shadow: 0 8px 20px rgba(29, 78, 216, .28); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand); box-shadow: none; }
.btn-danger { background: #fff; border-color: #fda29b; color: var(--danger); }
.btn-danger-solid { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; box-shadow: 0 8px 20px rgba(220, 38, 38, .25); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 18px; font-size: 16px; border-radius: 14px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-link { background: none; border: none; color: var(--brand); padding: 4px 6px; cursor: pointer; font-size: 13.5px; font-weight: 600; }

/* ---------------- forms ---------------- */
.field { margin-bottom: 15px; }
.field > label {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #344054; margin-bottom: 7px;
}
.field > label .req { color: var(--danger); font-weight: 700; }
.field .tip { font-size: 11.5px; color: var(--muted); font-weight: 400; margin-left: auto; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #f8fafc;
  border-radius: 12px; padding: 11px 13px; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-2); background: #fff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, .13);
}
.textarea { min-height: 88px; resize: vertical; line-height: 1.55; }
.select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px;
}
.input-row { display: flex; gap: 10px; }
.input-row > * { flex: 1; min-width: 0; }

/* ---------------- seal chips ---------------- */
.seal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.seal-chip {
  position: relative; border: 1.5px solid var(--line); background: #f8fafc;
  border-radius: 13px; padding: 11px 8px; text-align: center; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: #475467;
  transition: all .15s ease; user-select: none;
}
.seal-chip .sq {
  width: 9px; height: 9px; border-radius: 3px; margin: 0 auto 6px; display: block;
}
.seal-chip.on {
  border-color: var(--c, var(--brand)); color: var(--c, var(--brand));
  background: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--c, #1d4ed8) 18%, transparent);
}
.seal-chip.on .sq { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #1d4ed8) 14%, transparent); }

/* ---------------- lists ---------------- */
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec {
  background: #fff; border-radius: 14px; padding: 13px 14px; cursor: pointer;
  border: 1px solid rgba(229, 233, 242, .9); box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .1s;
}
.rec:active { transform: scale(.995); }
.rec .r1 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.rec .code {
  font-weight: 700; font-size: 14px; letter-spacing: .2px;
  font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rec .r2 { font-size: 13px; color: #475467; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec .r3 { display: flex; gap: 10px; font-size: 11.5px; color: var(--muted); margin-top: 6px; flex-wrap: wrap; }

.tag {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand); line-height: 1.6;
}
.tag.void { background: var(--danger-soft); color: var(--danger); }
.tag.ok { background: var(--ok-soft); color: var(--ok); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.gray { background: #f2f4f7; color: #475467; }

.empty {
  text-align: center; color: var(--muted); padding: 40px 16px; font-size: 13.5px;
}
.empty .ic { font-size: 34px; opacity: .5; margin-bottom: 8px; }

/* ---------------- home ---------------- */
.hero {
  border-radius: 20px; padding: 18px; margin-bottom: 14px; color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 45%, #3b82f6 100%);
  box-shadow: 0 16px 34px rgba(29, 78, 216, .28);
  position: relative; overflow: hidden;
}
.hero::after {
  content: "印"; position: absolute; right: -12px; bottom: -34px;
  font-size: 120px; font-weight: 700; color: rgba(255, 255, 255, .08); line-height: 1;
}
.hero .hi { font-size: 18px; font-weight: 700; }
.hero .meta { font-size: 12.5px; opacity: .82; margin-top: 3px; }
.hero .stats { display: flex; gap: 26px; margin-top: 16px; position: relative; z-index: 1; }
.hero .stats .n { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hero .stats .l { font-size: 11.5px; opacity: .8; margin-top: -1px; }

.action-card {
  display: flex; align-items: center; gap: 14px; padding: 16px;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow);
  border: 1px solid rgba(229, 233, 242, .8); cursor: pointer; margin-bottom: 14px;
}
.action-card .ico {
  width: 46px; height: 46px; border-radius: 14px; flex: none;
  background: linear-gradient(145deg, #fee2e2, #fecaca); color: #b91c1c;
  display: grid; place-items: center; font-size: 22px;
}
.action-card .t { font-weight: 700; font-size: 15px; }
.action-card .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.action-card .arrow { margin-left: auto; color: #98a2b3; }

/* ---------------- auth ---------------- */
.auth-wrap { max-width: 430px; margin: 0 auto; padding: 40px 18px 36px; }
.auth-wrap .card { box-shadow: 0 18px 40px -22px rgba(16,24,40,.35); }
.brand { text-align: center; margin-bottom: 22px; }
.brand .mark {
  width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 22px;
  background: linear-gradient(150deg, #1e40af, #3b82f6);
  color: #fff; font-size: 34px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 16px 30px rgba(29, 78, 216, .32); position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 6px; border: 1.5px solid rgba(255, 255, 255, .38); border-radius: 17px;
}
.brand h1 { font-size: 21px; margin: 0; font-weight: 700; letter-spacing: .5px; }
.brand p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.auth-card { padding: 20px 18px; }
.auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ---------------- result ---------------- */
.result-wrap { padding-top: 26px; text-align: center; }
.tick {
  width: 68px; height: 68px; margin: 0 auto 14px; border-radius: 50%;
  background: var(--ok-soft); color: var(--ok); display: grid; place-items: center;
  animation: pop .45s cubic-bezier(.2, 1.4, .4, 1);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.result-title { font-size: 17px; font-weight: 700; }
.result-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

.code-card {
  margin: 20px 0 16px; border-radius: 20px; padding: 22px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, #0f172a, #1e3a8a 70%, #1d4ed8);
  box-shadow: 0 18px 40px rgba(15, 23, 42, .30);
}
.code-card::before {
  content: ""; position: absolute; width: 190px; height: 190px; border-radius: 50%;
  border: 26px solid rgba(255, 255, 255, .05); right: -70px; top: -70px;
}
.code-card .lbl { font-size: 11.5px; letter-spacing: 2px; opacity: .68; }
.code-card .code {
  font-size: 25px; font-weight: 700; letter-spacing: 1px; margin-top: 8px;
  font-variant-numeric: tabular-nums; word-break: break-all; position: relative; z-index: 1;
}
.code-card .sealname { font-size: 12.5px; opacity: .75; margin-top: 8px; }
.copy-btn {
  margin-top: 14px; display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  color: #fff; border-radius: 10px; padding: 7px 14px; font-size: 13px; cursor: pointer;
}

.kv { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: none; }
.kv .k { color: var(--muted); flex: none; width: 92px; }
.kv .v { flex: 1; text-align: right; word-break: break-all; }

/* ---------------- tabbar ---------------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 6px 0 calc(6px + var(--safe-b));
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid rgba(229, 233, 242, .9);
  display: flex; justify-content: center;
}
.tabbar .inner { display: flex; width: 100%; max-width: 560px; padding: 0 12px; }
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 0 4px; color: #8a94a6; font-size: 10.5px; font-weight: 600;
  border-radius: 12px; transition: color .15s;
}
.tab svg { width: 22px; height: 22px; }
.tab.on { color: var(--brand); }
.tab.mid { flex: 0 0 88px; }
.tab.mid .bubble {
  width: 46px; height: 46px; border-radius: 16px; margin-top: -16px; margin-bottom: 1px;
  background: linear-gradient(140deg, #2563eb, #1d4ed8); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 20px rgba(29, 78, 216, .35);
}
.tab.mid .bubble svg { width: 24px; height: 24px; }

/* ---------------- admin ---------------- */
.seg {
  display: flex; gap: 4px; background: #e8ecf5; padding: 4px; border-radius: 13px; margin-bottom: 14px;
}
.seg button {
  flex: 1; border: none; background: none; padding: 8px 4px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: #5b6b82; cursor: pointer; position: relative;
}
.seg button.on { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
.seg button .cnt {
  position: absolute; top: 3px; right: 12px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px;
}

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters .select, .filters .input { flex: 1; min-width: 120px; padding: 9px 12px; font-size: 13.5px; border-radius: 10px; }
.filters .select { padding-right: 32px; }

.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat {
  background: #fff; border-radius: 14px; padding: 13px 12px; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(229, 233, 242, .8);
}
.stat .n { font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.2; }
.stat .l { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.table { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(229,233,242,.9); }
.tr { display: grid; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #f0f3f8; font-size: 13px; align-items: center; }
.tr:last-child { border-bottom: none; }
.tr.th { background: #f8fafc; font-size: 12px; font-weight: 600; color: var(--muted); }
.tr.body { cursor: pointer; }
.tr.body:hover { background: #fafcff; }
.tr .ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.only-desktop { display: none; }
.only-mobile { display: block; }

/* ---------------- modal ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 24, 40, .45);
  display: flex; align-items: flex-end; justify-content: center;
  animation: fade .18s ease; padding: 0;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  background: #fff; width: 100%; max-width: 620px;
  /* 不能用 overflow:hidden/auto，否则下拉面板会被裁掉 */
  overflow: visible;
  border-radius: 20px 20px 0 0; padding: 18px 18px calc(18px + var(--safe-b));
  animation: up .24s cubic-bezier(.2, .9, .3, 1);
  margin: auto 0 0;
}
@keyframes up { from { transform: translateY(30px); opacity: .6 } to { transform: none; opacity: 1 } }
.modal-head { display: flex; align-items: center; margin-bottom: 14px; }
.modal-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.modal-head .x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 10px; border: none;
  background: #f2f4f7; color: #667085; font-size: 17px; cursor: pointer; display: grid; place-items: center;
}

/* ---------------- 扫码分享页 ---------------- */
.share-card {
  background: #fff;
  border-radius: 24px;
  padding: 26px 22px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(229, 233, 242, .8);
  max-width: 440px;
  margin: 0 auto 16px;
}
.share-org { font-size: 13px; color: var(--muted); letter-spacing: 3px; }
.share-title { font-size: 26px; font-weight: 700; letter-spacing: 8px; margin: 6px 0 20px; text-indent: 8px; }
.share-qr { width: 100%; max-width: 300px; height: auto; display: block; margin: 0 auto 16px; }
.share-tip { font-size: 13px; color: #475467; }
.share-url {
  margin-top: 10px; font-size: 12px; color: var(--muted); word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: #f8fafc; border-radius: 8px; padding: 6px 10px; display: inline-block;
}

@media print {
  @page { margin: 16mm; }
  body { background: #fff !important; background-image: none !important; }
  .no-print, .tabbar, .toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .share-card {
    box-shadow: none; border: none; margin: 0 auto; padding: 10mm 0;
    max-width: none;
  }
  .share-qr { max-width: 90mm; }
  .share-title { font-size: 40px; }
  .share-org { font-size: 16px; }
  .share-tip { font-size: 15px; }
  .share-url { font-size: 13px; background: none; border: 1px solid #ddd; }
}

/* ---------------- misc ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 200;
  background: rgba(17, 24, 39, .92); color: #fff; padding: 10px 18px; border-radius: 11px;
  font-size: 13.5px; opacity: 0; pointer-events: none; transition: all .22s ease; max-width: 84vw; text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: rgba(185, 28, 28, .95); }

.skeleton { color: var(--muted); text-align: center; padding: 40px; font-size: 13px; }

.notice {
  display: block; padding: 12px 14px; border-radius: 12px;
  background: #fffaeb; border: 1px solid #fedf89; color: #93370d; font-size: 12.5px; line-height: 1.6;
}
.notice.blue { background: #eff6ff; border-color: #bfdbfe; color: #1e40af; }
.notice.danger { background: #fef3f2; border-color: #fecdca; color: #b42318; }
.notice b { font-weight: 700; }

.center { text-align: center; }
.mt8 { margin-top: 8px } .mt12 { margin-top: 12px } .mt16 { margin-top: 16px }
.mb0 { margin-bottom: 0 }
.muted { color: var(--muted) }
.small { font-size: 12px }
.flex { display: flex; align-items: center; gap: 8px }
.gap8 { gap: 8px }
.grow { flex: 1 }

/* ---------------- desktop ---------------- */
@media (min-width: 760px) {
  .shell { padding-left: 24px; padding-right: 24px; }
  .only-desktop { display: grid; }
  .only-mobile { display: none; }
  .modal-mask { align-items: center; padding: 20px; }
  .modal { border-radius: 20px; overflow: visible; }
  .seal-grid { grid-template-columns: repeat(6, 1fr); }
  .stat-row { grid-template-columns: repeat(3, 1fr); max-width: 560px; }
}

/* ---------------- 登记类型选择 ---------------- */
.type-list { display: flex; flex-direction: column; gap: 12px; }
.type-card {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 16px 14px; border: 1px solid var(--line, #e5e7eb); border-radius: 14px;
  background: #fff; text-align: left; cursor: pointer; transition: .15s;
  box-shadow: var(--shadow-sm);
}
.type-card:active { transform: scale(.985); }
.type-ico {
  width: 42px; height: 42px; border-radius: 12px; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c) 12%, #fff); color: var(--c);
}
.type-body { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.type-name { font-size: 15px; font-weight: 700; color: var(--ink, #111827); }
.type-desc { font-size: 12px; color: var(--muted, #6b7280); line-height: 1.45; }
.type-arrow { color: #cbd5e1; font-size: 22px; line-height: 1; }

/* ---------------- 通用下拉（替代 datalist） ---------------- */
.combo { position: relative; }
.combo-input { padding-right: 40px; }
.combo-arrow {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border: 0; background: transparent;
  color: #6b7280; font-size: 16px; cursor: pointer; border-radius: 8px;
}
.combo-arrow:active { background: #f1f5f9; }
.combo-panel {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 240px; overflow-y: auto; z-index: 60;
  background: #fff; border: 1px solid var(--line, #e5e7eb); border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12); padding: 6px;
  -webkit-overflow-scrolling: touch;
}
.combo.open .combo-panel { display: block; }
.combo-item {
  display: block; width: 100%; text-align: left; padding: 11px 12px;
  border: 0; background: transparent; border-radius: 8px;
  font-size: 14px; color: var(--ink, #111827); cursor: pointer;
}
.combo-item:active { background: #eff6ff; color: var(--brand, #1d4ed8); }
.combo-empty { padding: 12px; font-size: 13px; color: var(--muted, #6b7280); text-align: center; }
/* ---------------- 证照名录（只读列表） ---------------- */
.cert-list {
  border: 1px solid var(--line, #e5e7eb); border-radius: 12px;
  overflow: hidden; max-height: 320px; overflow-y: auto; background: #fff;
}
.cert-row {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border-bottom: 1px solid #f1f5f9;
}
.cert-row:last-child { border-bottom: 0; }
.cert-idx {
  flex: 0 0 22px; height: 22px; border-radius: 7px;
  background: #eff6ff; color: var(--brand, #1d4ed8);
  font-size: 11px; font-weight: 700; line-height: 22px; text-align: center;
}
.cert-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cert-main b { font-size: 13.5px; font-weight: 600; color: var(--ink, #111827); }
.cert-sub {
  font-size: 11.5px; color: var(--muted, #6b7280);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* ---------------- 必填校验：未填项红框 ---------------- */
.input-error,
.input.input-error,
.combo-input.input-error {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .12) !important;
  background: #fff8f8 !important;
}
.input-error::placeholder { color: #f87171; }
/* ---------------- 多选下拉（审批领导） ---------------- */
.combo-display {
  padding: 11px 40px 11px 12px;
  border: 1px solid var(--line, #e5e7eb);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  line-height: 1.45;
  min-height: 44px;
  display: flex; align-items: center;
  color: var(--ink, #111827);
  cursor: pointer;
  word-break: break-all;
}
.combo-display .ph { color: #9ca3af; }
.combo.multi.open .combo-display {
  border-color: var(--brand, #1d4ed8);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .08);
}
.multi-item { display: flex !important; align-items: center; justify-content: flex-start !important; gap: 9px; text-align: left !important; }
.multi-item > span:last-child { flex: 1; text-align: left; }
.multi-item .tick {
  width: 17px; height: 17px; flex: none; border-radius: 5px;
  border: 1.5px solid #cbd5e1; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: transparent; background: #fff;
}
.multi-item.on { background: #eff6ff; color: var(--brand, #1d4ed8); }
.multi-item.on .tick { background: var(--brand, #1d4ed8); border-color: var(--brand, #1d4ed8); color: #fff; }
/* ---------------- 通知铃铛 / 通知列表 ---------------- */
.bell-btn {
  position: relative; margin-left: auto; margin-right: 10px;
  width: 36px; height: 36px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.7); color: #334155;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.bell-btn:active { background: #e2e8f0; }
.bell-dot {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff;
  font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
.notif { padding: 13px 14px; border-bottom: 1px solid #f1f5f9; cursor: pointer; }
.notif:last-child { border-bottom: 0; }
.notif.unread { background: #f8fbff; }
.notif.unread .n-title::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: #2563eb; margin-right: 7px; vertical-align: 1px;
}
.notif .n-title { font-size: 14px; font-weight: 600; color: #111827; }
.notif .n-body { font-size: 12.5px; color: #64748b; margin-top: 3px; line-height: 1.5; }
.notif .n-time { font-size: 11px; color: #94a3b8; margin-top: 5px; }

/* ---------------- 推送接收人 ---------------- */
.push-users { display: flex; flex-direction: column; gap: 2px; }
.push-user {
  display: flex; align-items: center; gap: 9px; padding: 9px 4px;
  border-bottom: 1px solid #f8fafc; font-size: 14px; cursor: pointer;
}
.push-user:last-child { border-bottom: 0; }
.push-user input { width: 17px; height: 17px; }
.push-user .pn { flex: 1; }
.push-user .pr {
  font-size: 11px; color: #64748b; background: #f1f5f9;
  padding: 2px 7px; border-radius: 6px;
}
/* 管理员令牌行：名字 + 状态 + 输入框 */
.token-row { cursor: default; flex-wrap: wrap; gap: 8px; }
.token-row .tk-name { min-width: 68px; font-weight: 600; }
.token-row .tk-input {
  flex: 1; min-width: 160px; padding: 8px 10px; font-size: 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fff;
}
/* ---------------- 花名册比对 ---------------- */
.roster-head {
  display: flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 12px; border-radius: 10px; font-size: 13px;
}
.roster-head .ri {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
}
.roster-head.ok { background: #ecfdf5; color: #047857; }
.roster-head.ok .ri { background: #10b981; }
.roster-head.warn { background: #fffbeb; color: #b45309; }
.roster-head.warn .ri { background: #f59e0b; }
.roster-head.bad { background: #fef2f2; color: #b42318; }
.roster-head.bad .ri { background: #ef4444; }
.roster-head.gray { background: #f8fafc; color: #64748b; }
.roster-head.gray .ri { background: #94a3b8; }
.roster-head .rc { margin-left: auto; font-size: 11px; opacity: .75; }
.roster-sub { font-size: 12px; color: #64748b; margin-top: 6px; padding: 0 4px; line-height: 1.6; }
.roster-diff {
  margin-top: 8px; border: 1px solid #fde68a; border-radius: 10px;
  overflow: hidden; font-size: 12.5px;
}
.rd-head, .rd-row { display: grid; grid-template-columns: 66px 1fr 1fr; gap: 6px; }
.rd-head { background: #fffbeb; color: #92400e; font-weight: 600; padding: 7px 10px; }
.rd-row { padding: 7px 10px; border-top: 1px solid #fef3c7; }
.rd-f { color: #92400e; }
.rd-a { color: #b42318; word-break: break-all; }
.rd-b { color: #047857; word-break: break-all; }
.roster-stat {
  display: flex; align-items: baseline; gap: 8px;
  padding: 10px 12px; background: #f0fdf4; border-radius: 10px;
}
.roster-stat .rs-n { font-size: 22px; font-weight: 800; color: #047857; }
.roster-stat .rs-l { font-size: 12px; color: #65a30d; }
/* ---------------- 扫码封面（多主题） ---------------- */
.theme-picker {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px;
  -webkit-overflow-scrolling: touch;
}
.theme-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px; font-size: 12.5px;
  border: 1px solid var(--line, #e5e7eb); background: #fff; color: #475467;
  cursor: pointer; white-space: nowrap;
}
.theme-chip .tc-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.theme-chip.on { border-color: #2563eb; color: #1d4ed8; background: #eff6ff; font-weight: 600; }

.qr-poster {
  position: relative; overflow: hidden;
  margin: 8px auto 0; max-width: 420px;
  padding: 26px 24px 24px;
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 8% 0%, var(--qp-glow1, rgba(96,165,250,.28)) 0%, rgba(255,255,255,0) 44%),
    radial-gradient(120% 90% at 100% 100%, var(--qp-glow2, rgba(45,212,191,.22)) 0%, rgba(255,255,255,0) 42%),
    linear-gradient(160deg, var(--qp-bg1) 0%, var(--qp-bg2) 52%, var(--qp-bg3) 100%);
  color: var(--qp-text);
  box-shadow: 0 18px 40px -18px rgba(2, 6, 23, .55);
  text-align: center;
}
.qr-poster.light { box-shadow: 0 14px 34px -20px rgba(2, 6, 23, .28); }
.qr-poster.light .qp-deco { opacity: .12; }
.qr-poster.bordered { border: 1px solid rgba(15,23,42,.08); }
.qp-deco { position: absolute; border-radius: 50%; pointer-events: none; opacity: .45; }
.qp-deco-a {
  width: 220px; height: 220px; top: -90px; right: -70px;
  background: radial-gradient(closest-side, var(--qp-accent), transparent 70%);
}
.qp-deco-b {
  width: 260px; height: 260px; bottom: -120px; left: -90px;
  background: radial-gradient(closest-side, var(--qp-accent2), transparent 70%);
}
.qp-top { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; }
.qp-logo {
  width: 38px; height: 38px; border-radius: 12px; flex: none;
  background: linear-gradient(140deg, var(--qp-accent), var(--qp-accent2));
  display: grid; place-items: center;
  font-weight: 800; font-size: 19px; color: var(--qp-logotext);
  box-shadow: 0 6px 16px -6px rgba(2, 6, 23, .5);
}
.qp-org { font-size: 15px; font-weight: 600; letter-spacing: .5px; opacity: .95; }
.qp-title {
  position: relative; margin-top: 18px;
  font-size: 34px; font-weight: 800; letter-spacing: 6px;
  color: var(--qp-text);
}
.qp-sub {
  position: relative; margin-top: 6px;
  font-size: 12.5px; letter-spacing: 3px; color: var(--qp-sub);
}
.qp-qrwrap {
  position: relative; margin: 20px auto 0;
  width: 216px; height: 216px; padding: 14px;
  border-radius: 20px; background: #fff;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,.55), 0 0 0 6px rgba(255,255,255,.10);
}
.qp-qr { width: 100%; height: 100%; display: block; border-radius: 6px; }
.qp-scan {
  position: relative; margin-top: 14px;
  font-size: 13px; letter-spacing: 4px; color: var(--qp-text); opacity: .85;
}
.qp-steps {
  position: relative; display: flex; justify-content: center; gap: 8px;
  margin-top: 18px;
}
.qp-step {
  flex: 1; max-width: 110px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 4px; border-radius: 12px;
  background: var(--qp-stepbg);
  border: 1px solid var(--qp-stepline);
}
.qp-step i {
  font-style: normal; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--qp-accent); color: var(--qp-logotext);
}
.qp-step span { font-size: 11.5px; color: var(--qp-text); opacity: .8; }
/* ---------------- 操作日志 ---------------- */
.logrow { padding: 12px 14px; border-bottom: 1px solid #f1f5f9; }
.logrow:last-child { border-bottom: 0; }
.lg-top { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: #111827; }
.lg-act {
  font-size: 11px; color: #3730a3; background: #eef2ff;
  padding: 2px 7px; border-radius: 6px;
}
.lg-detail { font-size: 12.5px; color: #475467; margin-top: 4px; line-height: 1.55; }
.lg-time { font-size: 11px; color: #94a3b8; margin-top: 4px; }
/* ---------------- 台账筛选统计 ---------------- */
.filter-stats { display: flex; gap: 8px; margin: 4px 0 10px; }
.fs-item {
  flex: 1; background: #f8fafc; border: 1px solid var(--line, #e5e7eb);
  border-radius: 12px; padding: 10px 6px; text-align: center;
}
.fs-item b { display: block; font-size: 19px; font-weight: 800; color: #1d4ed8; line-height: 1.2; }
.fs-item span { font-size: 11.5px; color: #64748b; }
/* ---------------- 台账时间段提示 ---------------- */
.range-hint {
  margin: -4px 0 10px; padding: 8px 12px;
  background: #eff6ff; color: #1e40af;
  border: 1px solid #dbeafe; border-radius: 10px;
  font-size: 12px; line-height: 1.5;
}
.range-hint b { font-weight: 700; }
/* ================= 自适应布局：平板 / 桌面 ================= */
@media (min-width: 768px) {
  .shell { max-width: 720px; }
  .shell.wide { max-width: 1080px; }
  .tabbar .inner { max-width: 720px; }
  .modal { max-width: 720px; }
  .home-grid { display: block; }
}

@media (min-width: 1100px) {
  .shell { max-width: 900px; padding-left: 32px; padding-right: 32px; }
  .shell.wide { max-width: 1320px; }
  .tabbar .inner { max-width: 900px; }
  .modal { max-width: 780px; }
  .hero { padding: 22px 24px; }
  .filters .select, .filters .input { min-width: 150px; }

  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 22px;
    align-items: start;
  }
  .home-grid .hg-side .card-title { margin-top: 0 !important; }
  .home-grid .hg-main .stat-row { margin-bottom: 0; }
}

@media (min-width: 1500px) {
  .shell { max-width: 1080px; }
  .shell.wide { max-width: 1460px; }
  .tabbar .inner { max-width: 1080px; }
}
/* ================= 桌面端：底部导航改为悬浮胶囊 ================= */
@media (min-width: 1100px) {
  .tabbar {
    left: 50%; right: auto; bottom: 20px; transform: translateX(-50%);
    padding: 6px; border-top: 0; border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(229, 233, 242, .95);
    box-shadow: 0 16px 40px -16px rgba(16, 24, 40, .35);
  }
  .tabbar .inner { width: auto; max-width: none; padding: 0; gap: 4px; }
  .tab {
    flex: none; flex-direction: row; gap: 7px;
    padding: 9px 18px; border-radius: 999px; font-size: 13px;
  }
  .tab svg { width: 18px; height: 18px; }
  .tab:hover { background: #f1f5fb; }
  .tab.mid { flex: none; }
  .tab.mid .bubble {
    width: 34px; height: 34px; border-radius: 11px; margin: 0;
  }
  .tab.mid .bubble svg { width: 18px; height: 18px; }
  .shell { padding-bottom: calc(88px + var(--safe-b)); }
}
/* 桌面端：分段控件不要拉太宽 */
@media (min-width: 1100px) {
  .shell.wide .seg { max-width: 560px; }
  .shell.wide .filters .input,
  .shell.wide .filters .select { max-width: 320px; }
  .shell.wide .filters { gap: 10px; }
  .table .tr { border-radius: 0; }
}
/* ---------------- 备份列表 ---------------- */
.bk-list { max-height: 300px; overflow-y: auto; border: 1px solid var(--line, #e5e7eb); border-radius: 12px; }
.bk-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 12px; border-bottom: 1px solid #f1f5f9; cursor: pointer; font-size: 13px;
}
.bk-item:last-child { border-bottom: 0; }
.bk-item input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.bk-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bk-main b { font-weight: 600; color: #111827; }
.bk-sub { font-size: 12px; color: #475467; }
.bk-note { font-size: 11.5px; color: #94a3b8; }
/* ================= 桌面全宽布局（v2.6） ================= */
/* 覆盖前面的 900/1080/1320 限制：桌面端铺满整屏，只留安全边距 */
@media (min-width: 900px) {
  .shell,
  .shell.wide {
    max-width: none;
    width: 100%;
    padding-left: 28px;
    padding-right: 28px;
  }
  .topbar { margin-left: -28px; margin-right: -28px; padding-left: 28px; padding-right: 28px; }
  .tabbar .inner { max-width: none; width: 100%; }
}

@media (min-width: 1500px) {
  .shell, .shell.wide { padding-left: 48px; padding-right: 48px; }
  .topbar { margin-left: -48px; margin-right: -48px; padding-left: 48px; padding-right: 48px; }
  .tabbar .inner { max-width: none; }
}

/* 表单类页面保持可读宽度 */
.shell.narrow { max-width: 860px; margin-left: auto; margin-right: auto; }

@media (min-width: 900px) {
  /* 首页：左 4 / 右 6 双栏，右边记录卡片在大屏两列 */
  .home-grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 24px;
    align-items: start;
  }
  .home-grid .hg-side .card-title { margin-top: 0 !important; }
  .home-grid .hg-main .stat-row { margin-bottom: 0; }

  /* 台账：统计条均分，表格铺满 */
  .filter-stats { gap: 14px; }
  .filters .input, .filters .select { max-width: none; }
  .shell.wide .seg { max-width: 620px; }
}

@media (min-width: 1500px) {
  /* 超宽屏：最近登记两列，统计四列 */
  .home-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 28px; }
  .hg-side .rec-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-row { grid-template-columns: repeat(3, 1fr); }
}

/* 平板区间也放宽一点 */
@media (min-width: 768px) and (max-width: 899px) {
  .shell { max-width: none; }
  .shell.wide { max-width: none; }
  .shell.narrow { max-width: 720px; }
}
/* ---------------- 桌面细节修正（v2.6） ---------------- */
@media (min-width: 900px) {
  /* 顶栏：铃铛靠右，账号最右 */
  .bell-btn { margin-left: 12px !important; order: 2; }
  .topbar .who { margin-left: auto; order: 3; }
  /* 统计卡片不要拉成超长条 */
  .filter-stats { justify-content: flex-start; }
  .fs-item { flex: 0 0 auto; min-width: 170px; max-width: 240px; }
  /* 首页左栏统计 */
  .home-grid .stat-row { max-width: 520px; }
}
/* 顶栏右侧顺序修正：标题 … 铃铛 … 账号 */
@media (min-width: 900px) {
  .bell-btn { margin-left: auto !important; margin-right: 8px !important; order: 2; }
  .topbar .who { margin-left: 0 !important; order: 3; }
}
/* ---------------- 首页「印信登记」主入口（醒目版） ---------------- */
.action-card.cta {
  position: relative; overflow: hidden;
  padding: 22px; border: 0; gap: 16px;
  background: linear-gradient(120deg, #4338ca 0%, #6d28d9 48%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 20px 42px -16px rgba(67, 56, 202, .62);
  transition: transform .16s ease, box-shadow .16s ease;
}
.action-card.cta::after {
  content: ''; position: absolute; right: -50px; top: -70px;
  width: 240px; height: 240px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .30), rgba(255, 255, 255, 0));
}
.action-card.cta::before {
  content: ''; position: absolute; left: -60px; bottom: -90px;
  width: 220px; height: 220px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(56, 189, 248, .35), rgba(56, 189, 248, 0));
}
.action-card.cta:hover { transform: translateY(-2px); box-shadow: 0 26px 50px -16px rgba(67, 56, 202, .72); }
.action-card.cta:active { transform: scale(.99); }

.action-card.cta .cta-ico {
  position: relative; z-index: 1; flex: none;
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center; color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}
.action-card.cta .cta-body { position: relative; z-index: 1; min-width: 0; }
.action-card.cta .t {
  font-size: 20px; font-weight: 800; letter-spacing: .6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .18);
}
.action-card.cta .s { color: rgba(255, 255, 255, .84); font-size: 12.5px; margin-top: 4px; }
.action-card.cta .cta-go {
  position: relative; z-index: 1; margin-left: auto; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 20px; border-radius: 999px;
  background: #fff; color: #4338ca; font-size: 13.5px; font-weight: 800;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45);
  white-space: nowrap;
}
.action-card.cta .cta-arrow { font-size: 15px; transition: transform .16s ease; }
.action-card.cta:hover .cta-arrow { transform: translateX(3px); }

@media (max-width: 520px) {
  .action-card.cta { padding: 16px; gap: 12px; border-radius: 18px; }
  .action-card.cta .cta-ico { width: 48px; height: 48px; border-radius: 15px; }
  .action-card.cta .t { font-size: 17px; }
  .action-card.cta .s { font-size: 11.5px; }
  .action-card.cta .cta-go { padding: 9px 14px; font-size: 12.5px; gap: 4px; }
}
/* 首页主入口图标：高对比（白底 + 深紫图标） */
.action-card.cta .cta-ico {
  background: #ffffff;
  border: 0;
  color: #4338ca;
  box-shadow: 0 10px 22px -8px rgba(0, 0, 0, .45);
}
.action-card.cta .cta-ico svg { stroke-width: 2.2; }

/* ---------------- 待审核 / 不可用：入口置灰 ---------------- */
.action-card.cta.off {
  background: linear-gradient(120deg, #f1f5f9 0%, #e8edf5 100%);
  color: #475569;
  box-shadow: none;
  border: 1px dashed #cbd5e1;
  cursor: default;
}
.action-card.cta.off::before,
.action-card.cta.off::after { display: none; }
.action-card.cta.off:hover { transform: none; box-shadow: none; }
.action-card.cta.off .cta-ico {
  background: #fff; color: #94a3b8;
  box-shadow: inset 0 0 0 1px #e2e8f0;
}
.action-card.cta.off .t { color: #64748b; text-shadow: none; }
.action-card.cta.off .s { color: #94a3b8; }
.action-card.cta.off .cta-go {
  background: #e2e8f0; color: #64748b; box-shadow: none;
}

/* ---------------- 状态横幅（待审核 / 已驳回） ---------------- */
.status-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 16px; margin-bottom: 14px;
  border: 1px solid #fde68a; background: #fffbeb; color: #92400e;
}
.status-banner.bad { border-color: #fecdca; background: #fef3f2; color: #b42318; }
.status-banner .sb-ico {
  width: 40px; height: 40px; flex: none; border-radius: 12px;
  display: grid; place-items: center;
  background: #fff; color: #b45309; box-shadow: 0 4px 12px -6px rgba(180, 83, 9, .5);
}
.status-banner.bad .sb-ico { color: #b42318; box-shadow: 0 4px 12px -6px rgba(180, 35, 24, .45); }
.status-banner .sb-body { min-width: 0; flex: 1; }
.status-banner .sb-t { font-weight: 800; font-size: 14.5px; }
.status-banner .sb-s { font-size: 12.5px; opacity: .82; margin-top: 2px; }
.status-banner .btn { flex: none; }
@media (max-width: 520px) {
  .status-banner { padding: 12px; gap: 10px; flex-wrap: wrap; }
  .status-banner .btn { margin-left: 50px; }
}

/* ---------------- 快速入口页 ---------------- */
.entry-steps { counter-reset: st; }
.entry-step {
  display: flex; gap: 12px; padding: 12px 2px;
  border-bottom: 1px dashed var(--line);
}
.entry-step:last-child { border-bottom: 0; }
.entry-step .n {
  counter-increment: st; flex: none;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: #eef2ff; color: #4338ca; font-weight: 800; font-size: 13px;
}
.entry-step .n::before { content: counter(st); }
.entry-step .tx { font-size: 13.5px; line-height: 1.6; }
.entry-step .tx b { font-weight: 700; }
.entry-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.entry-tabs .chip {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: #fff; color: #475569; border: 1px solid var(--line); cursor: pointer;
}
.entry-tabs .chip.on { background: #4338ca; color: #fff; border-color: #4338ca; }

/* 待审核用户的底部中间入口：置灰不可点 */
.tabbar .tab.mid.off { opacity: .5; }
.tabbar .tab.mid.off .bubble {
  background: #cbd5e1;
  box-shadow: none;
}

/* 可折叠说明（注册页 PushPlus 帮助） */
details.fold {
  margin: 2px 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfe;
  overflow: hidden;
}
details.fold summary {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
details.fold summary::-webkit-details-marker { display: none; }
details.fold summary::before {
  content: '?';
  width: 17px; height: 17px; border-radius: 50%;
  background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 800;
  display: grid; place-items: center; flex: none;
}
details.fold[open] summary { border-bottom: 1px solid var(--line); }
details.fold .fold-body { padding: 10px 14px 12px; }
details.fold .fold-body p { margin: 0 0 6px; font-size: 12.5px; color: #475569; line-height: 1.65; }
details.fold .fold-body p:last-child { margin-bottom: 0; }
details.fold .fold-body .muted { color: #94a3b8; }