/* =========================================================
   在职证明网签系统 · 视觉规范
   风格：政务 / 公安系统 · 深藏蓝 + 严谨表单 + 高信息密度
   ========================================================= */

:root {
  --brand-900: #0a2240;
  --brand-800: #10335f;
  --brand-700: #17457f;
  --brand-600: #1d579c;
  --brand-500: #2468b6;
  --accent:    #c8102e;
  --accent-d:  #a50d25;
  --gold:      #c9a227;
  --bg:        #f3f5f9;
  --card:      #ffffff;
  --line:      #dde4ef;
  --line-soft: #e9eef6;
  --text:      #17233b;
  --text-2:    #3d4f6b;
  --muted:     #6d7e99;
  --ok:        #0e7a4e;
  --warn:      #a86400;
  --err:       #b3121a;
  --shadow:    0 2px 10px rgba(16, 41, 74, .06);
  --radius:    6px;
}

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

html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-600); text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
p { margin: 0; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }

.mono { font-family: "SF Mono", Menlo, Consolas, "Courier New", monospace; letter-spacing: .3px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12px; line-height: 1.6; }
.small { font-size: 12px; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.link { color: var(--brand-600); }
.name-strong { font-size: 16px; letter-spacing: 2px; }

/* ---------------- 徽标 / 页头 ---------------- */
.emblem,
.emblem-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: "Songti SC", "SimSun", serif;
  font-weight: 700;
  background: radial-gradient(circle at 30% 20%, #2a6cbf, #12375f 70%);
  border: 1px solid rgba(201, 162, 39, .7);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .06);
}
.emblem { width: 46px; height: 46px; border-radius: 50%; font-size: 22px; }
.emblem-sm { width: 30px; height: 30px; border-radius: 50%; font-size: 14px; }

/* ---------------- 通用组件 ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}
.card-main { border-top: 3px solid var(--brand-700); }
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line-soft);
}
.card-head h3 { font-size: 15px; color: var(--brand-900); }
.card-head h3::before {
  content: ""; display: inline-block; width: 3px; height: 14px;
  background: var(--brand-700); margin-right: 8px; vertical-align: -2px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 4px;
  font-size: 15px; font-weight: 600; letter-spacing: 1px;
  cursor: pointer; transition: .18s; white-space: nowrap;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #1d579c, #123a6b);
  border-color: #0f3360;
  box-shadow: 0 2px 6px rgba(18, 58, 107, .25);
}
.btn-primary:active { transform: translateY(1px); box-shadow: none; }
.btn-primary.is-disabled { opacity: .55; }
.btn-ghost { color: var(--brand-700); background: #fff; border-color: #c3d2e5; }
.btn-danger { color: #fff; background: linear-gradient(180deg, #c8102e, #9c0c23); border-color: #8d0b1f; }
.btn-mini { height: 30px; padding: 0 12px; font-size: 13px; font-weight: 500; letter-spacing: 0; border-radius: 3px; }
.btn-block { width: 100%; display: flex; }
.btn-row { display: flex; gap: 10px; margin-top: 12px; }
.btn-row .btn { flex: 1; }

.field { display: block; margin-bottom: 14px; }
.label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.label em { color: var(--accent); font-style: normal; margin-left: 3px; }
.field input[type=text], .field input[type=password], .field input[type=tel],
.field input[type=number], .field input[type=date], .field input[type=datetime-local],
.field select, .field textarea,
.filter-form input, .filter-inline input {
  width: 100%; height: 44px; padding: 0 12px;
  background: #fff; color: var(--text);
  border: 1px solid #ccd7e6; border-radius: 4px;
  outline: none; transition: border-color .15s, box-shadow .15s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236d7e99' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.field textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.7; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus,
.filter-form input:focus, .filter-inline input:focus {
  border-color: var(--brand-600); box-shadow: 0 0 0 3px rgba(29, 87, 156, .12);
}
.field input[type=file] { font-size: 13px; color: var(--text-2); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; min-width: 0; }
.field-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; padding-top: 4px; }

.checkline { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; font-size: 13px; color: var(--text-2); }
.checkline input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand-600); flex: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block; padding: 8px 12px;
  border: 1px solid #ccd7e6; border-radius: 3px;
  font-size: 13px; color: var(--text-2); background: #fff;
  transition: .15s;
}
.chip input:checked + span { color: var(--brand-700); border-color: var(--brand-600); background: #eef4fc; font-weight: 600; }
.chip { position: relative; cursor: pointer; }

.tag {
  display: inline-block; padding: 2px 8px; border-radius: 2px;
  font-size: 12px; font-style: normal; font-weight: 500;
  border: 1px solid transparent; white-space: nowrap;
}
.tag-info { color: var(--brand-700); background: #eef4fc; border-color: #cfe0f5; }
.tag-ok   { color: var(--ok); background: #edf8f1; border-color: #c5e8d6; }
.tag-warn { color: var(--warn); background: #fff8ec; border-color: #f0dcb4; }
.tag-err  { color: var(--err); background: #fdf0f1; border-color: #f1c9cd; }
.tag-done { color: #fff; background: var(--brand-700); border-color: var(--brand-700); }
.tag-muted{ color: var(--muted); background: #f2f4f7; border-color: #e2e7ef; }
.tag-lg { font-size: 13px; padding: 5px 12px; }

.alert {
  padding: 11px 14px; border-radius: 4px; margin-bottom: 12px;
  font-size: 13px; line-height: 1.7;
  border: 1px solid transparent; border-left-width: 4px;
}
.alert-ok   { background: #f2faf5; border-color: #bfe6d0; border-left-color: var(--ok); color: #14603f; }
.alert-err  { background: #fdf3f3; border-color: #f0c7ca; border-left-color: var(--err); color: #8d0c14; }
.alert-warn { background: #fffaf0; border-color: #efd9ae; border-left-color: var(--warn); color: #7c4a00; }
.alert-info { background: #f2f7fd; border-color: #cfe0f5; border-left-color: var(--brand-600); color: var(--brand-800); }

.note {
  background: #f7f9fc; border: 1px solid var(--line-soft); border-left: 3px solid var(--brand-600);
  padding: 10px 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.7; margin: 12px 0;
}

.kv { font-size: 13px; }
.kv-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 9px 0; border-bottom: 1px dashed var(--line-soft);
}
.kv-row:last-child { border-bottom: 0; }
.kv-row span { color: var(--muted); flex: none; }
.kv-row b { font-weight: 500; text-align: right; word-break: break-all; }
.kv-wide .kv-row b { color: var(--brand-900); }

.kv { font-size: 13px; }
.progress-line { height: 6px; background: #e6ecf5; border-radius: 3px; overflow: hidden; margin: 14px 0 8px; }
.progress-line i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-600), var(--brand-500)); }
.table-simple { font-size: 13px; }
.table-simple .tr { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.table-simple .tr.th { color: var(--muted); font-size: 12px; }
.table-simple .tr:last-child { border-bottom: 0; }
.notice-text { font-size: 13px; color: var(--text-2); line-height: 1.9; white-space: pre-line; }

/* ---------------- 登录页 ---------------- */
.page-auth { background: #0a2240; }
.auth-wrap {
  max-width: 440px; margin: 0 auto; padding: 0 20px 30px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 0%, rgba(36, 104, 182, .35), transparent 55%),
    linear-gradient(180deg, #0a2240 0%, #10335f 38%, #f3f5f9 38%, #f3f5f9 100%);
}
.auth-banner { padding: 44px 0 26px; color: #fff; }
.banner-inner { display: flex; align-items: center; gap: 14px; }
.banner-text h1 { font-size: 19px; letter-spacing: 1px; }
.banner-text p { font-size: 13px; opacity: .8; letter-spacing: 1px; }
.banner-line { height: 2px; margin: 18px 0 10px; background: linear-gradient(90deg, rgba(201, 162, 39, .9), rgba(201, 162, 39, .1)); }
.banner-sub { font-size: 10px; letter-spacing: 3px; opacity: .55; }

.auth-card { padding: 22px 20px; margin-top: 0; }
.auth-title { font-size: 18px; color: var(--brand-900); margin-bottom: 6px; }
.auth-tip { font-size: 12.5px; color: var(--muted); line-height: 1.7; margin-bottom: 18px; }
.auth-note { margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.auth-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.auth-links { display: flex; justify-content: center; gap: 18px; margin-top: 18px; font-size: 12.5px; color: var(--muted); }
.auth-foot { text-align: center; font-size: 11.5px; color: #93a2ba; margin-top: 22px; line-height: 1.8; }

/* ---------------- 员工端 ---------------- */
.page-employee { background: #e9edf4; }
.phone {
  max-width: 480px; margin: 0 auto; min-height: 100vh;
  background: var(--bg); box-shadow: 0 0 24px rgba(10, 34, 64, .12);
  display: flex; flex-direction: column;
}
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 10px 14px;
  background: linear-gradient(180deg, #10335f, #0a2240);
  border-bottom: 2px solid var(--gold);
  color: #fff;
}
.topbar-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.topbar-title { min-width: 0; }
.topbar-title strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.topbar-title small { display: block; font-size: 10.5px; opacity: .7; letter-spacing: 1px; }
.topbar-user { display: flex; align-items: center; gap: 10px; flex: none; }
.user-name { font-size: 12.5px; }
.link-quit { color: #fff; font-size: 12px; opacity: .85; border: 1px solid rgba(255, 255, 255, .35); padding: 3px 9px; border-radius: 3px; }

.stepper-wrap { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 12px 10px; position: sticky; top: 57px; z-index: 19; }
.stepper { display: flex; list-style: none; margin: 0; padding: 0; justify-content: space-between; }
.step { flex: 1; text-align: center; position: relative; }
.step i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-style: normal;
  background: #f0f3f8; color: #9aa8bd; border: 1px solid #dfe5ee;
  position: relative; z-index: 2;
}
.step span { display: block; font-size: 10.5px; color: #9aa8bd; margin-top: 4px; white-space: nowrap; transform: scale(.96); }
.step.on i { background: var(--brand-700); color: #fff; border-color: var(--brand-700); box-shadow: 0 0 0 3px rgba(23, 69, 127, .15); }
.step.on span { color: var(--brand-800); font-weight: 600; }
.step.done i { background: #e8f5ee; color: var(--ok); border-color: #bfe6d0; }
.step.done span { color: var(--ok); }
.step::after {
  content: ""; position: absolute; top: 11px; left: 50%; width: 100%;
  height: 1px; background: #e2e8f1; z-index: 1;
}
.step:last-child::after { display: none; }
.step.on::after, .step.done::after { background: #cfe0f5; }

.wrap { flex: 1; padding: 14px 14px 26px; }
.page-title { padding: 4px 2px 12px; }
.page-title h2 { font-size: 19px; color: var(--brand-900); letter-spacing: .5px; }
.page-title p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.foot { padding: 14px; text-align: center; border-top: 1px solid var(--line); background: #fff; }
.foot p { font-size: 11.5px; color: var(--muted); }
.foot-sub { margin-top: 4px; font-size: 10.5px; color: #93a2ba; }

/* 免责声明 */
.declaration {
  max-height: 46vh; overflow-y: auto; padding: 12px;
  background: #fbfcfe; border: 1px solid var(--line-soft);
  font-size: 13px; line-height: 1.95; color: var(--text-2);
  white-space: pre-line;
}
.declaration-end { text-align: center; font-size: 12px; color: #a3b0c4; margin-top: 8px; letter-spacing: 2px; }

/* 人脸采集 */
.face-stage {
  position: relative; width: 100%; aspect-ratio: 3 / 3.6; max-height: 380px;
  background: #0a1826; border-radius: 6px; overflow: hidden;
}
.face-stage video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.face-mask {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 42% 46% at 50% 44%, transparent 0 68%, rgba(6, 15, 25, .82) 69%);
  pointer-events: none;
}
.face-ring {
  position: absolute; left: 50%; top: 44%; width: 62%; aspect-ratio: 1 / 1.28;
  transform: translate(-50%, -50%);
  border: 1.5px dashed rgba(120, 190, 255, .65); border-radius: 50%;
  box-shadow: 0 0 20px rgba(70, 150, 230, .25) inset;
}
.face-prompt {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  text-align: center; color: #fff; font-size: 13px;
  background: rgba(10, 34, 64, .72); border: 1px solid rgba(120, 190, 255, .3);
  border-radius: 3px; padding: 7px 10px;
}
.face-count {
  position: absolute; top: 12px; right: 12px; color: #fff;
  font-size: 22px; font-weight: 700; font-family: "SF Mono", Menlo, monospace;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}
.face-shots { display: flex; gap: 8px; margin: 10px 0 12px; }
.face-shots .shot-empty {
  flex: 1; text-align: center; font-size: 12px; color: #8fa0b8;
  background: #f3f6fa; border: 1px dashed #d5deeb; border-radius: 3px; padding: 10px 0;
}
.face-shots .shot-empty.filled { color: var(--ok); border-style: solid; border-color: #c5e8d6; background: #f2faf5; }
.face-shots .shot-img {
  flex: 1; width: 0; min-width: 0; aspect-ratio: 3 / 4;
  object-fit: cover; border: 1px solid #c5e8d6; border-radius: 3px; background: #0a1826;
}
.face-result { margin-bottom: 10px; }
.face-result img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }

/* 签字 */
.sign-name-bar { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.sign-name-bar > span { font-size: 12.5px; color: var(--muted); }
.sign-name { font-family: "KaiTi", "STKaiti", "楷体", serif; font-size: 26px; letter-spacing: 6px; color: var(--brand-900); }
.sign-cells {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  margin: 6px 0 10px;
}
.sign-cell {
  position: relative; aspect-ratio: 1 / 1; background: #fff;
  border: 1px solid #cbd6e5; border-radius: 3px; overflow: hidden;
  touch-action: none;
}
.sign-cell.active { border-color: var(--brand-600); box-shadow: 0 0 0 2px rgba(29, 87, 156, .15); }
.sign-cell.done { border-color: #b7dcc9; background: #fbfefc; }
.sign-cell .grid-v, .sign-cell .grid-h, .sign-cell .grid-d {
  position: absolute; pointer-events: none;
}
.sign-cell .grid-v { left: 50%; top: 0; bottom: 0; border-left: 1px dashed #e3e9f2; }
.sign-cell .grid-h { top: 50%; left: 0; right: 0; border-top: 1px dashed #e3e9f2; }
.sign-cell .grid-d { left: 50%; top: 50%; width: 141%; border-top: 1px dashed #edf1f7; transform-origin: center; }
.sign-cell .grid-d.d1 { transform: translate(-50%, -50%) rotate(45deg); }
.sign-cell .grid-d.d2 { transform: translate(-50%, -50%) rotate(-45deg); }
.sign-cell .cell-guide {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  text-align: center; pointer-events: none;
  font-family: "KaiTi", "STKaiti", "楷体", serif;
  color: #dfe7f2; line-height: 1; user-select: none;
}
.sign-cell canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.sign-cell .cell-badge {
  position: absolute; left: 3px; top: 2px; font-size: 9px; color: #a9b7cb; pointer-events: none;
}
.sign-cell .cell-check {
  position: absolute; right: 3px; bottom: 3px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--ok); color: #fff; font-size: 9px;
  display: none; align-items: center; justify-content: center; pointer-events: none;
}
.sign-cell.done .cell-check { display: flex; }
.sign-status {
  font-size: 12.5px; color: var(--text-2); background: #f7f9fc; border-left: 3px solid var(--brand-600);
  padding: 8px 10px; margin-bottom: 10px; min-height: 34px;
}
.sign-actions { display: flex; gap: 10px; }
.sign-actions .btn { flex: 1; }
.sign-preview { border: 1px solid var(--line); background: #fff; padding: 10px; border-radius: 4px; margin-bottom: 10px; }
.sign-preview img { max-height: 160px; margin: 0 auto; }
.sign-box { border: 1px solid var(--line); background: #fff; padding: 10px; margin-bottom: 8px; }
.sign-box img { max-height: 150px; margin: 0 auto; }

/* 缴费 */
.pay-card { text-align: center; }
.pay-amount { padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.pay-amount span { display: block; font-size: 12.5px; color: var(--muted); }
.pay-amount b { display: block; font-size: 32px; color: var(--accent); font-family: "SF Mono", Menlo, monospace; letter-spacing: 1px; }
.pay-amount em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.pay-qr { padding: 16px 0 12px; display: flex; justify-content: center; }
.pay-qr img { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; padding: 6px; background: #fff; }
.qr-empty {
  width: 200px; height: 200px; border: 1px dashed #d3dcea; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: #9aa8bd; font-size: 12px; background: #f8fafd;
}
.qr-empty span { font-size: 14px; color: var(--muted); }
.pay-payee { font-size: 13px; color: var(--muted); padding-bottom: 10px; }
.pay-payee b { color: var(--brand-900); margin-left: 6px; }
.pay-steps { text-align: left; font-size: 12.5px; color: var(--text-2); padding-left: 18px; line-height: 1.9; margin: 12px 0; }
.pay-steps b { color: var(--accent); }
.pay-thumb { margin: 6px 0 12px; }
.pay-thumb img { max-height: 160px; border: 1px solid var(--line); border-radius: 4px; }

/* 提交核对 */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line-soft); font-size: 13px; }
.check-list li:last-child { border-bottom: 0; }
.check-list li i {
  width: 18px; height: 18px; border-radius: 50%; font-size: 11px; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center; flex: none;
}
.check-list li.ok i { background: #e8f5ee; color: var(--ok); }
.check-list li.no i { background: #fdf0f1; color: var(--err); }
.check-list li span { margin-left: auto; font-size: 12px; color: var(--muted); }

/* 进度页 */
.status-hero { display: flex; align-items: center; gap: 14px; border-left: 4px solid var(--brand-600); }
.status-hero h3 { font-size: 18px; color: var(--brand-900); }
.status-hero p { font-size: 12.5px; color: var(--muted); }
.status-hero-icon {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
  background: #eef4fc; color: var(--brand-700);
}
.status-ok .status-hero-icon { background: #e8f5ee; color: var(--ok); }
.status-err .status-hero-icon { background: #fdf0f1; color: var(--err); }
.status-done .status-hero-icon { background: var(--brand-700); color: #fff; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; padding-bottom: 18px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.tl-dot { width: 12px; height: 12px; border-radius: 50%; background: #dfe6f0; flex: none; margin-top: 3px; position: relative; z-index: 2; }
.timeline li::before { content: ""; position: absolute; left: 5.5px; top: 14px; bottom: 0; width: 1px; background: #e2e8f1; }
.timeline li:last-child::before { display: none; }
.timeline li.done .tl-dot { background: var(--ok); }
.timeline li.on .tl-dot { background: var(--brand-600); box-shadow: 0 0 0 3px rgba(29, 87, 156, .16); }
.tl-body b { font-size: 13.5px; color: var(--brand-900); }
.tl-body span { font-size: 12px; color: var(--muted); margin-left: 8px; }
.tl-body p { font-size: 12px; color: var(--muted); }

.verify-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.verify-item label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.verify-thumb { width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.verify-none { height: 90px; display: flex; align-items: center; justify-content: center; border: 1px dashed #d5deeb; border-radius: 4px; color: #a3b0c4; font-size: 12px; }

/* ---------------- 管理端 ---------------- */
.page-admin { background: #f0f3f8; }
.side {
  position: fixed; left: 0; top: 0; bottom: 0; width: 220px;
  background: linear-gradient(180deg, #0d2b52, #0a2240);
  color: #fff; display: flex; flex-direction: column; z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 16px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.side-brand strong { display: block; font-size: 14px; letter-spacing: .5px; }
.side-brand small { display: block; font-size: 10.5px; opacity: .6; letter-spacing: 1px; }
.side-nav { flex: 1; padding: 10px 10px; }
.side-nav a {
  display: block; padding: 11px 14px; margin-bottom: 4px;
  color: rgba(255, 255, 255, .78); font-size: 13.5px; border-radius: 4px;
  border-left: 3px solid transparent;
}
.side-nav a.on { background: rgba(60, 130, 220, .18); color: #fff; border-left-color: var(--gold); font-weight: 600; }
.side-foot { padding: 14px 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }
.side-user { opacity: .8; margin-bottom: 6px; }
.side-foot a { color: rgba(255, 255, 255, .65); }

.admin-main { margin-left: 220px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--line);
}
.admin-head h1 { font-size: 18px; color: var(--brand-900); }
.admin-head-right { font-size: 12.5px; color: var(--muted); }
.admin-body { padding: 18px 24px 30px; flex: 1; }
.admin-foot { padding: 14px 24px; font-size: 11.5px; color: #93a2ba; border-top: 1px solid var(--line); }

.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--brand-700);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
}
.stat span { font-size: 12.5px; color: var(--muted); }
.stat b { display: block; font-size: 26px; font-family: "SF Mono", Menlo, monospace; color: var(--brand-900); line-height: 1.3; }
.stat em { font-style: normal; font-size: 11px; color: #9aa8bd; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 14px;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 { font-size: 14.5px; color: var(--brand-900); }
.panel-head h3::before {
  content: ""; display: inline-block; width: 3px; height: 13px;
  background: var(--brand-700); margin-right: 8px; vertical-align: -2px;
}
.panel-body, .panel > .form, .panel > .kv, .panel > .table-wrap, .panel > .note, .panel > .empty,
.panel > .alert, .panel > p, .panel > .detail-head, .panel > .verify-layout, .panel > .pay-detail-grid,
.panel > .qr-setting, .panel > .sign-box, .panel > .net-table, .panel > .btn-row { padding: 14px 16px; }
.panel > .table-wrap { padding: 0; }
.panel > .field { padding: 0 16px 14px; }
.panel > .form-grid { padding: 16px; }
.panel > .sign-box { padding: 12px 16px; }
.panel > .kv + .kv { padding-top: 0; }
.panel-review { border-top: 3px solid var(--accent); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  text-align: left; padding: 10px 12px; background: #f7f9fc;
  color: var(--muted); font-weight: 500; font-size: 12px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:hover td { background: #fbfcfe; }
.table td.ops { white-space: nowrap; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.table td.ops a, .link-btn { color: var(--brand-600); font-size: 12.5px; background: none; border: 0; padding: 0; cursor: pointer; }
.link-btn.danger { color: var(--err); }
.inline-form { display: inline; }
.table-compact td { padding: 8px 12px; font-size: 12.5px; }
.col-ellipsis { max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.empty { padding: 26px 16px !important; text-align: center; color: #9aa8bd; font-size: 13px; }

.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs { display: flex; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.tab { padding: 8px 16px; font-size: 13px; color: var(--text-2); border-right: 1px solid var(--line-soft); }
.tab:last-child { border-right: 0; }
.tab.on { background: var(--brand-700); color: #fff; font-weight: 600; }
.filter-form, .filter-inline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-form input, .filter-inline input { height: 34px; padding: 0 10px; width: auto; border: 1px solid #ccd7e6; border-radius: 3px; }
.filter-form input[type=text] { width: 200px; }
.filter-form input[type=date] { width: 140px; }
.filter-inline input[type=text] { width: 200px; }
.dash { font-size: 12px; color: var(--muted); }

.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 14px; font-size: 13px; border-top: 1px solid var(--line-soft); }
.pager a { color: var(--brand-600); }

.detail-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 4px 2px 14px; }
.detail-head h2 { font-size: 19px; color: var(--brand-900); }
.detail-head p { font-size: 12.5px; color: var(--muted); }

.verify-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; }
.verify-photo img { border: 1px solid var(--line); border-radius: 4px; }
.verify-info .kv { margin-bottom: 10px; }
.net-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; font-size: 12.5px; background: #f8fafc; border: 1px solid var(--line-soft); border-radius: 4px; padding: 10px 12px; margin-top: 8px; }
.net-table div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed #e9eef6; padding: 3px 0; }
.net-table span { color: var(--muted); }
.net-table b { font-weight: 500; color: var(--brand-900); text-align: right; }
.ua { font-size: 11px; color: #93a2ba; margin-top: 8px; word-break: break-all; }

.pay-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 18px; }
.pay-proof img { border: 1px solid var(--line); border-radius: 4px; max-height: 320px; object-fit: contain; margin: 0 auto; }

.form-grid { padding: 16px; }
.form-inline-block { padding: 0 16px 14px !important; }
.form-inline { display: flex; gap: 8px; padding: 0 16px 16px !important; flex-wrap: wrap; }
.form-inline input { height: 36px; border: 1px solid #ccd7e6; border-radius: 3px; padding: 0 10px; width: 180px; }

.qr-setting { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; }
.qr-preview img { width: 200px; height: 200px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; padding: 6px; background: #fff; }
.qr-form .note { margin-top: 0; }

.flow { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; padding: 16px; }
.flow-step {
  flex: 1; min-width: 110px; background: #f7f9fc; border: 1px solid var(--line); border-top: 2px solid var(--brand-600);
  border-radius: 4px; padding: 10px 12px;
}
.flow-step i {
  display: inline-flex; width: 20px; height: 20px; border-radius: 50%;
  align-items: center; justify-content: center; font-style: normal; font-size: 11px;
  background: var(--brand-700); color: #fff; margin-bottom: 6px;
}
.flow-step b { display: block; font-size: 13px; color: var(--brand-900); }
.flow-step span { font-size: 11.5px; color: var(--muted); }
.flow-step.admin { border-top-color: var(--accent); }
.flow-step.admin i { background: var(--accent); }
.flow-arrow { display: flex; align-items: center; color: #a9b7cb; font-size: 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1080px) {
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-layout, .pay-detail-grid, .qr-setting { grid-template-columns: minmax(0, 1fr); }
  .verify-photo img { max-width: 340px; }
}

@media (max-width: 860px) {
  .side { position: static; width: 100%; height: auto; flex-direction: row; align-items: center; overflow-x: auto; }
  .side-brand { border-bottom: 0; padding: 10px 14px; flex: none; }
  .side-nav { display: flex; gap: 4px; padding: 8px; flex: none; }
  .side-nav a { margin: 0; padding: 8px 12px; border-left: 0; border-bottom: 2px solid transparent; white-space: nowrap; }
  .side-nav a.on { border-left: 0; border-bottom-color: var(--gold); }
  .side-foot { display: none; }
  .admin-main { margin-left: 0; }
  .admin-head { padding: 12px 16px; }
  .admin-body { padding: 12px 12px 24px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .table th, .table td { padding: 9px 10px; }
}

@media (max-width: 420px) {
  .sign-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .field-row { flex-direction: column; gap: 0; }
  .btn-row { flex-direction: column; }
  .stat b { font-size: 22px; }
}

@media print {
  .topbar, .stepper-wrap, .foot, .btn, .btn-row, .side, .admin-head { display: none !important; }
}

/* ---------- 安装向导 / 结果页 ---------- */
.auth-head { text-align: center; padding: 6px 0 18px; }
.auth-head h2 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--brand-900); letter-spacing: .5px; }
.auth-head p { margin: 0; font-size: 12.5px; color: var(--muted); }

.result-icon {
  width: 62px; height: 62px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 30px; font-weight: 700;
  background: #eef4ff; color: var(--brand-700);
  border: 2px solid #d7e3f7;
}
.result-icon.ok { background: #eaf7f1; color: var(--ok); border-color: #c6e8d8; }
.result-icon.err { background: #fdeceb; color: var(--err); border-color: #f5cdc9; }

.steps-text { margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: 13px; }
.steps-text li { margin-bottom: 8px; line-height: 1.7; }
.steps-text code { background: #f2f5fa; padding: 1px 4px; border-radius: 3px; font-size: 12px; }
