/* ==========================================================================
   工厂凭证管理系统
   视觉基线：深色 #0a0a0c + 香槟金 #c9a94e，扁平、无渐变、无阴影、无 emoji
   手机优先；PC 后台同一套色板。不引任何 CDN / 框架。
   ========================================================================== */
:root {
  --bg: #0a0a0c;
  --panel: #151518;
  --panel-2: #1b1b1f;
  --panel-3: #222227;
  --gold: #c9a94e;
  --gold-deep: #8a7434;
  --gold-dusk: #5a4c2a;
  --text: #e8e6e0;
  --muted: #8a8a86;
  --dim: #63635f;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --danger: #c8786e;
  --ok: #7ea889;
  --r: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
a { color: var(--gold); text-decoration: none; }
svg { display: block; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2c2c31; border-radius: 4px; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ---------- 通用控件 ---------- */
/* HTML 的 hidden 属性必须真的隐藏。
   .btn 等元素显式写了 display:inline-flex，会盖掉浏览器对 [hidden] 的默认 display:none，
   导致「该隐藏的按钮仍然显示」——加这条兜底。 */
[hidden] { display: none !important; }

.btn {
  min-height: 44px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--border-2);
  background: var(--panel-2); color: var(--text); font-size: 14px; display: inline-flex;
  align-items: center; justify-content: center; gap: 6px; white-space: nowrap;
}
.btn:hover:not(:disabled) { background: var(--panel-3); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: #14140f; font-weight: 600; }
.btn-primary:hover:not(:disabled) { background: #d8b95c; border-color: #d8b95c; }
.btn-ghost { background: transparent; }
.btn-gold-line { background: transparent; border-color: rgba(201, 169, 78, .45); color: var(--gold); }
.btn-gold-line:hover:not(:disabled) { background: #2a2418; }
.btn-danger-line { background: transparent; border-color: rgba(200, 120, 110, .45); color: var(--danger); }
.btn-sm { min-height: 34px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 56px; font-size: 16px; font-weight: 600; }
.input {
  width: 100%; max-width: 100%; min-width: 0;
  min-height: 46px; padding: 10px 12px; background: #101013; border: 1px solid var(--border-2);
  border-radius: 8px; color: var(--text); font-size: 15px; outline: none;
  /* iOS 的原生控件（尤其 date）会无视 width、按内容撑开，导致输入框冲出卡片边界。
     关掉 appearance 让它老老实实跟随 .input 的宽度。 */
  -webkit-appearance: none;
  appearance: none;
}
.input:focus { border-color: rgba(201, 169, 78, .6); }
.input::placeholder { color: var(--dim); }
/* iOS 的日期框默认把文字居中，改成左对齐，和其它输入框一致 */
input[type="date"] { text-align: left; }
input[type="date"]::-webkit-date-and-time-value { text-align: left; }
input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; }
select.input { appearance: none; -webkit-appearance: none; }
.label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; }
.field { margin-bottom: 14px; }
.hint { font-size: 11px; color: var(--dim); line-height: 1.7; }
.tag {
  display: inline-block; padding: 1px 8px; border: 1px solid currentColor; border-radius: 6px;
  font-size: 11px; line-height: 19px; white-space: nowrap;
}
.tag-keep { color: var(--ok); border-color: rgba(126, 168, 137, .4); }
.tag-done { color: #0a0a0c; background: var(--gold); border-color: var(--gold); font-weight: 600; }
.tag-pair { display: inline-flex; align-items: center; gap: 4px; }
.tag-off { color: var(--danger); border-color: rgba(200, 120, 110, .4); }

/* ---------- flash / toast ---------- */
.flash-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.flash {
  border: 1px solid rgba(126, 168, 137, .35); background: rgba(126, 168, 137, .1); color: #b6d3bd;
  border-radius: 8px; padding: 9px 12px; font-size: 13px;
}
.flash.warn { border-color: rgba(201, 169, 78, .4); background: rgba(201, 169, 78, .1); color: #e0cd93; }
.flash.error { border-color: rgba(200, 120, 110, .4); background: rgba(200, 120, 110, .1); color: #e3b0a9; }

/* ==========================================================================
   手机端
   ========================================================================== */
.m-body { min-height: 100vh; background: var(--bg); }
.m-shell { max-width: 560px; margin: 0 auto; padding: 0 14px 84px; }
.m-top {
  position: sticky; top: 0; z-index: 20; background: rgba(10, 10, 12, .96);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(6px);
}
.m-top-in {
  max-width: 560px; margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.avatar {
  width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(201, 169, 78, .45); border-radius: 9px;
  color: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.pu-main { flex: 1; min-width: 0; }
.pu-name { font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pu-sub { font-size: 10px; color: var(--muted); line-height: 1.4; }
.pu-time { text-align: right; flex: 0 0 auto; }
.pu-date { font-size: 10px; color: var(--muted); }
.pu-hms { font-size: 13px; color: var(--gold); letter-spacing: .6px; font-variant-numeric: tabular-nums; }
.icon-btn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--border); border-radius: 8px; color: var(--muted);
}
.m-title {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 0 10px;
}
.m-title h1 { font-size: 17px; font-weight: 600; margin: 0; }
.m-title .sub { font-size: 11px; color: var(--dim); font-weight: 400; }
.m-sec-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 12px; color: var(--muted); margin: 18px 0 9px;
}
.m-sec-title b { color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(12, 12, 15, .98); border-top: 1px solid var(--border);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar-in { max-width: 560px; margin: 0 auto; display: flex; gap: 6px; }
.tab-item {
  flex: 1; min-height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; background: transparent; border: 1px solid transparent; border-radius: 8px;
  color: var(--muted); font-size: 10px; text-decoration: none;
}
.tab-item.on { color: var(--gold); background: #262013; border-color: rgba(201, 169, 78, .3); }

/* 目录卡片 */
.dir-list { display: flex; flex-direction: column; gap: 10px; }
.dir-card {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 13px 14px 12px;
}
.dc-top { display: flex; align-items: flex-start; gap: 10px; }
.dc-main { flex: 1; min-width: 0; }
.dc-date { font-size: 11px; color: var(--muted); }
.dc-addr { font-size: 15px; font-weight: 600; margin-top: 2px; word-break: break-all; }
.dc-meta {
  display: flex; align-items: center; gap: 10px; margin-top: 9px;
  font-size: 12px; color: var(--muted);
}
.dc-num { color: var(--text); font-variant-numeric: tabular-nums; }
.dc-sep { width: 1px; height: 11px; background: var(--border-2); }
.dc-foot { font-size: 11px; color: var(--dim); margin-top: 8px; line-height: 1.7; }
.dc-keep { color: var(--gold); font-variant-numeric: tabular-nums; }
.dc-acts { display: flex; gap: 8px; margin-top: 11px; flex-wrap: wrap; }
.dc-acts .btn { flex: 1 1 auto; min-width: 104px; }

/* 空状态 */
.empty-box {
  border: 1px dashed var(--border-2); border-radius: var(--r); padding: 30px 16px;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.9;
}

/* 目录摘要条 */
.sum-strip {
  display: flex; gap: 8px; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--panel-2); padding: 11px 12px;
}
.sum-item { flex: 1; text-align: center; }
.sum-num { font-size: 17px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-lab { font-size: 10px; color: var(--muted); margin-top: 2px; }

/* 拍照页 */
.shoot-bar { margin: 4px 0 10px; }
.shoot-note { text-align: center; font-size: 11px; color: var(--dim); margin: 8px 0 14px; }
.up-state { font-size: 12px; margin-top: 8px; min-height: 18px; text-align: center; }
.up-state.on { color: var(--gold); }
.up-state.err { color: var(--danger); }
.offline-bar {
  display: flex; gap: 10px; align-items: flex-start; border: 1px solid rgba(201, 169, 78, .35);
  background: #241f14; border-radius: 8px; padding: 10px 12px; margin-bottom: 12px;
}
.ob-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 6px; flex: 0 0 7px; }
.ob-t { font-size: 11px; color: var(--gold); font-weight: 600; }
.ob-d { font-size: 10px; color: var(--muted); line-height: 1.6; margin-top: 2px; }

/* 照片缩略图 */
.thumb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.thumb { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--panel-2); }
.thumb-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #121215; display: block; }
.thumb-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-ph {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  color: var(--dim); font-size: 11px;
}
.thumb-no {
  position: absolute; left: 6px; top: 6px; font-size: 9px; color: var(--gold);
  background: rgba(10, 10, 12, .85); border: 1px solid rgba(201, 169, 78, .35);
  border-radius: 4px; padding: 1px 5px; font-variant-numeric: tabular-nums;
}
.thumb-state {
  position: absolute; right: 6px; bottom: 6px; font-size: 9px; color: var(--ok);
  background: rgba(10, 10, 12, .9); border: 1px solid rgba(126, 168, 137, .4);
  border-radius: 4px; padding: 1px 5px;
}
.thumb-dl {
  position: absolute; right: 6px; top: 6px; width: 22px; height: 22px; display: flex;
  align-items: center; justify-content: center; border-radius: 5px; color: var(--gold);
  background: rgba(10, 10, 12, .85); border: 1px solid rgba(201, 169, 78, .35);
}
.thumb-dl:hover { background: rgba(201, 169, 78, .95); color: #0a0a0c; }
.thumb-meta { padding: 6px 7px 7px; }
.tm-time { font-size: 9.5px; color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm-author { font-size: 9.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb-img { cursor: zoom-in; }
a.thumb-dl { text-decoration: none; }

/* 照片放大查看 */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(0, 0, 0, .94); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 14px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(10, 10, 12, .85); border: 1px solid var(--border-2);
  color: var(--text); font-size: 18px; line-height: 1; cursor: pointer;
}
.lb-close:hover { background: var(--panel-3); }
.lb-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(10, 10, 12, .92); border-top: 1px solid var(--border);
}
.lb-title { font-size: 11px; color: var(--muted); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 加载更多：转圈 / 到底提示 / 新照片淡入 */
.lm-spin {
  display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px;
  border: 2px solid rgba(201, 169, 78, .25); border-top-color: var(--gold); border-radius: 50%;
  animation: lmspin .7s linear infinite;
}
@keyframes lmspin { to { transform: rotate(360deg); } }
.lm-end { text-align: center; color: var(--dim); font-size: 11px; margin: 14px 0 4px; letter-spacing: .5px; }
.thumb.is-new { animation: tileIn .28s ease both; }
@keyframes tileIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 微信内置浏览器不能直接下载文件：拦下来给一句能执行的指引 */
.wx-tip { position: fixed; inset: 0; z-index: 400; background: rgba(0, 0, 0, .72); display: flex; align-items: flex-end; }
.wx-tip-card {
  width: 100%; background: var(--panel); border-top: 1px solid var(--border-2);
  border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
.wx-tip-title { font-size: 15px; color: var(--gold); margin-bottom: 8px; }
.wx-tip-body { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 0 0 14px; }

/* 我的 */
.me-card {
  border: 1px solid var(--border); border-radius: var(--r); background: var(--panel-2);
  padding: 16px; display: flex; align-items: center; gap: 13px;
}
.me-card .avatar { width: 46px; height: 46px; flex: 0 0 46px; font-size: 18px; border-radius: 11px; }
.me-name { font-size: 16px; font-weight: 600; }
.me-role { font-size: 11px; color: var(--muted); margin-top: 3px; }
.me-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.me-stat { border: 1px solid var(--border); border-radius: 8px; padding: 11px 6px; text-align: center; background: var(--panel-2); }
.ms-num { font-size: 17px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; }
.ms-lab { font-size: 10px; color: var(--muted); margin-top: 2px; }
.me-note { border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 13px 14px; margin-top: 12px; }
.me-note-t { font-size: 12px; color: var(--gold); font-weight: 600; margin-bottom: 6px; }
.me-note p { margin: 0; font-size: 11.5px; color: var(--muted); line-height: 1.85; }
.entry-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.entry-list form { margin: 0; }

/* 二次确认页 */
.confirm-box { border: 1px solid rgba(201, 169, 78, .35); border-radius: var(--r); background: #1d1a12; padding: 16px; }
.cf-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.cf-row:last-child { border-bottom: none; }
.cf-k { color: var(--muted); flex: 0 0 auto; }
.cf-v { color: var(--text); text-align: right; word-break: break-all; }
.cf-warn { margin-top: 12px; font-size: 12px; color: #e0cd93; line-height: 1.8; }

/* ==========================================================================
   登录 / 改密 / 错误页
   ========================================================================== */
.auth-body { display: flex; align-items: center; justify-content: center; padding: 24px 16px; min-height: 100vh; }
.auth-card { width: 100%; max-width: 400px; }
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-mark { display: inline-flex; align-items: center; gap: 9px; }
.auth-bar { width: 4px; height: 20px; background: var(--gold); border-radius: 1px; }
.auth-title { font-size: 19px; font-weight: 600; letter-spacing: .5px; }
.auth-sub { font-size: 11.5px; color: var(--dim); margin-top: 7px; }
.auth-form { border: 1px solid var(--border); border-radius: 12px; background: var(--panel); padding: 20px 18px; }
.auth-foot { text-align: center; font-size: 11px; color: var(--dim); margin-top: 16px; line-height: 1.9; }

/* 登录改造（新设备短信验证 / 忘记密码）新增 */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -2px 0 14px; }
.auth-row .hint { margin: 0; }
.auth-link { color: var(--gold); font-size: 12px; text-decoration: none; }
.auth-link:hover, .auth-link:focus { text-decoration: underline; }
.code-input {
  letter-spacing: 8px; text-align: center; font-size: 20px; font-weight: 600;
  font-variant-numeric: tabular-nums; padding-left: 14px;
}
.mono-phone { color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.dev-hint {
  border: 1px dashed rgba(201, 169, 78, .45); background: rgba(201, 169, 78, .08);
  color: #e0cd93; border-radius: 8px; padding: 8px 10px; font-size: 12px; margin-bottom: 14px;
}
.dev-hint b { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 3px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ==========================================================================
   PC 后台
   ========================================================================== */
.pc-head { border-bottom: 1px solid var(--border); background: #0d0d10; }
.pc-head-in {
  max-width: 1400px; margin: 0 auto; padding: 14px 28px; display: flex; align-items: center;
  gap: 22px; flex-wrap: wrap;
}
.pc-h1 { font-size: 17px; font-weight: 600; margin: 0; display: flex; align-items: center; gap: 9px; }
.g-mark { display: inline-block; width: 4px; height: 16px; background: var(--gold); border-radius: 1px; }
.pc-sub { font-size: 11px; color: var(--dim); margin: 4px 0 0 13px; }
.pc-nav { display: flex; gap: 4px; padding: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; }
.pc-nav a {
  min-height: 36px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 7px;
  color: var(--muted); font-size: 13px; text-decoration: none;
}
.pc-nav a:hover { color: var(--text); }
.pc-nav a.on { background: #2a2418; border: 1px solid rgba(201, 169, 78, .42); color: var(--gold); font-weight: 600; }
.pc-user { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.pc-wrap { max-width: 1400px; margin: 0 auto; padding: 20px 28px 48px; }
.pc-title { font-size: 14px; font-weight: 600; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); padding: 14px 16px; }
.kpi-lab { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; }
.kpi-val { font-size: 24px; font-weight: 600; margin-top: 8px; font-variant-numeric: tabular-nums; }
.kpi-val.gold { color: var(--gold); }
.kpi-unit { font-size: 12px; color: var(--muted); margin-left: 4px; font-weight: 400; }
.kpi-foot { font-size: 10.5px; color: var(--dim); margin-top: 6px; }
.panel { border: 1px solid var(--border); border-radius: var(--r); background: var(--panel); margin-top: 14px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--border); }
.panel-title { font-size: 13.5px; font-weight: 600; }
.panel-title .p-sub { font-size: 11px; color: var(--dim); font-weight: 400; margin-left: 8px; }
.panel-body { padding: 14px 16px; }
.cap-track { height: 10px; border-radius: 5px; background: #1d1d21; display: flex; overflow: hidden; margin: 10px 0 9px; }
.cap-seg-s { background: #c9a94e; height: 100%; }
.cap-seg-i { background: #8a7434; height: 100%; }
.cap-legend { display: flex; gap: 18px; font-size: 11.5px; color: var(--muted); }
.lg-dot { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.policy-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--border); padding: 12px 16px; }
.policy-item { font-size: 11.5px; color: var(--muted); line-height: 1.8; }
.policy-item b { color: var(--text); font-weight: 600; }

.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th {
  text-align: left; font-size: 11.5px; color: var(--muted); font-weight: 500;
  padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: #121216;
}
table.tbl th.th-sort { cursor: pointer; user-select: none; }
table.tbl th.th-sort:hover { color: var(--text); }
.arrow { display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: middle; }
.arrow.none { border: 3px solid transparent; border-top-color: #3a3a40; margin-bottom: -3px; }
.arrow.up { border: 4px solid transparent; border-bottom-color: var(--gold); margin-bottom: 2px; }
.arrow.down { border: 4px solid transparent; border-top-color: var(--gold); margin-bottom: -4px; }
table.tbl td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.tbl tbody tr:hover { background: #17171b; }
.t-addr { font-weight: 600; }
.t-date { font-size: 11px; color: var(--dim); margin-top: 2px; }
.t-num { font-variant-numeric: tabular-nums; }
.t-acts { display: flex; gap: 6px; }
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; padding: 12px 16px; font-size: 12px; color: var(--muted); }
.pager a, .pager span.cur { min-height: 32px; padding: 0 11px; display: inline-flex; align-items: center; border-radius: 6px; border: 1px solid var(--border-2); color: var(--text); text-decoration: none; }
.pager span.cur { border-color: rgba(201, 169, 78, .45); color: var(--gold); }
.pager .pg-info { margin-right: auto; }
.inline-form { display: inline; margin: 0; }
.filter-bar { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.filter-bar .input { width: auto; min-width: 160px; min-height: 38px; font-size: 13px; }
.log-action { font-size: 12px; color: var(--gold); }
.log-time { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.log-detail { font-size: 11px; color: var(--muted); }
.who { display: flex; align-items: center; gap: 9px; }
.who .avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 12px; border-radius: 8px; }
.who-name { font-size: 13px; font-weight: 600; }
.who-sub { font-size: 10.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* 错误页 */
.err-card { max-width: 520px; margin: 0 auto; }
.err-code { font-size: 46px; color: var(--gold); font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.err-title { font-size: 18px; font-weight: 600; margin: 12px 0 8px; }
.err-msg { font-size: 13px; color: var(--muted); line-height: 1.9; }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .policy-row { grid-template-columns: 1fr; }
  .pc-head-in, .pc-wrap { padding-left: 16px; padding-right: 16px; }
  .pc-user { margin-left: 0; }
}
