/* ============================================================
   桶装水履约保证金管理系统 · 管理端设计系统
   靛蓝 × 薄荷绿 × 淡紫雾面 —— indigo-mint（SaaS 配色源）
   系统黑体 / 高对比 / 渐变质感 / 精致细节
   ============================================================ */
:root {
  --green-900: #1E1B4B;
  --green-800: #4F46E5;
  --green-700: #6366F1;
  --green-100: #E0E7FF;
  --green-50:  #EEF2FF;
  --gold-600:  #059669;
  --gold-100:  #D1FAE5;
  --ink:       #1E1B4B;
  --ink-soft:  #475569;
  --ink-mute:  #64748B;
  --bg:        #F5F3FF;
  --card:      #FFFFFF;
  --line:      #E4E2F7;
  --line-soft: #EEEDFA;
  --hover:     #F4F2FE;
  --red:       #DC2626;
  --red-bg:    #FEE2E2;
  --amber:     #D97706;
  --amber-bg:  #FEF3C7;
  --ok:        #059669;
  --ok-bg:     #D1FAE5;
  --serif: "Bahnschrift", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sans:  "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 2px 8px rgba(99,102,241,.08), 0 12px 32px rgba(99,102,241,.06);
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background:
    radial-gradient(1000px 460px at 92% -12%, rgba(99,102,241,.09), transparent 60%),
    radial-gradient(760px 420px at -8% 42%, rgba(5,150,105,.06), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--green-800); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C6C4E8; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #A5A3D6; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 数字与金额 ---------- */
.num {
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: .01em;
}

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1100px 520px at 88% -8%, rgba(99,102,241,.22), transparent 58%),
    radial-gradient(900px 560px at 4% 108%, rgba(16,185,129,.16), transparent 55%),
    radial-gradient(700px 420px at 55% 45%, rgba(129,140,248,.08), transparent 60%),
    var(--bg);
}
.login-card {
  width: 400px; background: rgba(255,255,255,.88); backdrop-filter: blur(14px);
  border: 1px solid rgba(99,102,241,.16);
  border-radius: 18px; box-shadow: 0 8px 24px rgba(99,102,241,.12), 0 30px 80px rgba(99,102,241,.10);
  padding: 44px 40px 36px; position: relative; overflow: hidden;
}
.login-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, #6366F1, #10B981);
}
.login-brand { text-align: center; margin-bottom: 34px; }
.login-brand .logo { width: 54px; height: 54px; margin: 0 auto 14px; display: block; }
.login-brand h1 { font-size: 23px; color: var(--green-900); font-weight: 700; letter-spacing: .08em; }
.login-brand p { color: var(--ink-mute); font-size: 12px; margin-top: 8px; letter-spacing: .24em; }
.login-sep { display: flex; align-items: center; gap: 12px; margin: 18px 0 22px; color: var(--gold-600); }
.login-sep::before, .login-sep::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.login-sep span { font-size: 11px; letter-spacing: .4em; }

/* ---------- 表单 ---------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; font-weight: 500; }
.field label b { color: var(--red); font-weight: normal; margin-left: 2px; }
.ipt, select.ipt, textarea.ipt {
  width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #FFF;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea.ipt { height: auto; padding: 9px 12px; resize: vertical; }
.ipt:focus { border-color: var(--green-700); box-shadow: 0 0 0 3px rgba(99,102,241,.14); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 500;
  border: 1px solid transparent; transition: all .15s; white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, #6366F1, #4F46E5); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.32); }
.btn-primary:hover { background: linear-gradient(135deg, #818CF8, #6366F1); box-shadow: 0 6px 18px rgba(99,102,241,.4); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, #10B981, #059669); color: #fff; box-shadow: 0 4px 14px rgba(5,150,105,.3); }
.btn-gold:hover { background: linear-gradient(135deg, #34D399, #10B981); box-shadow: 0 6px 18px rgba(16,185,129,.4); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--green-800); border-color: var(--line); }
.btn-ghost:hover { background: var(--hover); border-color: #C7D2FE; }
.btn-danger { background: transparent; color: var(--red); border-color: #FCA5A5; }
.btn-danger:hover { background: var(--red-bg); }
.btn-sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 7px; }
.btn-sm svg { width: 14px; height: 14px; }
.btn-lg { height: 46px; font-size: 15px; width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.btn-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- 布局骨架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0;
  background: linear-gradient(195deg, #1E1B4B 0%, #312E81 58%, #3730A3 100%);
  color: #D6D9F5; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 30;
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 22px 20px 18px; border-bottom: 1px solid rgba(255,255,255,.09); }
.side-brand svg { width: 34px; height: 34px; flex-shrink: 0; }
.side-brand .t { font-size: 16px; color: #fff; font-weight: 600; letter-spacing: .06em; line-height: 1.3; }
.side-brand .s { font-size: 10.5px; color: rgba(214,217,245,.5); letter-spacing: .2em; margin-top: 2px; }
.side-nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.side-nav .group { font-size: 11px; color: rgba(214,217,245,.42); letter-spacing: .25em; padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 11px; padding: 9.5px 12px; margin: 1px 0;
  border-radius: 9px; color: #C3C7EE; font-size: 13.5px; cursor: pointer; transition: all .12s;
  position: relative;
}
.nav-item svg { width: 17px; height: 17px; opacity: .85; }
.nav-item:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-item.on { background: rgba(129,140,248,.22); color: #fff; box-shadow: inset 0 0 0 1px rgba(129,140,248,.25); }
.nav-item.on::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  background: #34D399; border-radius: 2px; box-shadow: 0 0 8px rgba(52,211,153,.8);
}
.nav-item .badge {
  margin-left: auto; background: #10B981; color: #fff; font-size: 11px;
  min-width: 18px; height: 18px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px; box-shadow: 0 0 10px rgba(16,185,129,.5);
}
.side-user { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.09); display: flex; align-items: center; gap: 10px; }
.side-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #34D399, #10B981); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600;
}
.side-user .info { flex: 1; min-width: 0; }
.side-user .n { color: #fff; font-size: 13.5px; }
.side-user .r { color: rgba(214,217,245,.55); font-size: 11px; }
.side-user .quit { color: rgba(214,217,245,.6); background: none; border: none; padding: 6px; border-radius: 6px; display: flex; }
.side-user .quit:hover { color: #fff; background: rgba(255,255,255,.1); }
.side-user .quit svg { width: 16px; height: 16px; }
/* 侧栏版本徽标：点击查看更新日志；有未读更新时亮绿点 */
.side-ver {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 9px 16px; background: none; border: none; border-top: 1px solid rgba(255,255,255,.07);
  color: rgba(214,217,245,.5); font-size: 11.5px; letter-spacing: .04em; cursor: pointer; transition: color .12s;
}
.side-ver:hover { color: rgba(214,217,245,.9); }
.side-ver b { font-family: Bahnschrift, "Segoe UI", sans-serif; font-weight: 600; color: #34D399; font-variant-numeric: tabular-nums; }
.side-ver .ver-dot { width: 6px; height: 6px; border-radius: 50%; background: #34D399; box-shadow: 0 0 8px rgba(52,211,153,.9); display: none; margin-left: auto; animation: verPulse 1.6s infinite; }
.side-ver.has-new .ver-dot { display: inline-block; }
@keyframes verPulse { 50% { opacity: .35; } }
/* 设置页/弹窗内版本徽章 */
.ver-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  background: linear-gradient(120deg, #EEF2FF, #ECFDF5); border: 1px solid #DDE3FC;
  font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 12.5px; font-weight: 700;
  color: #4F46E5; font-variant-numeric: tabular-nums; cursor: pointer; white-space: nowrap; transition: all .12s;
}
.ver-chip:hover { box-shadow: 0 3px 10px rgba(79,70,229,.18); transform: translateY(-1px); }
.ver-chip .d { font-weight: 400; color: #64748B; font-size: 11px; }
/* 更新日志弹窗 */
.rel-notes { padding: 4px 2px 8px; }
.rel-notes .rn-item { display: flex; gap: 10px; padding: 7px 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-soft, #475569); }
.rel-notes .rn-item::before { content: ""; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%; background: #34D399; margin-top: 8px; box-shadow: 0 0 0 3px #ECFDF5; }
.rel-banner { display: flex; align-items: center; gap: 10px; background: linear-gradient(120deg, #4F46E5, #6366F1); color: #fff; border-radius: 11px; padding: 12px 16px; margin-bottom: 12px; }
.rel-banner .v { font-family: Bahnschrift, "Segoe UI", sans-serif; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rel-banner .s { font-size: 12px; opacity: .75; }

.main { flex: 1; margin-left: 216px; display: flex; flex-direction: column; min-width: 0; }
.topbar {
  height: 58px; background: rgba(245,243,255,.85); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 28px; gap: 16px;
  position: sticky; top: 0; z-index: 20;
}
.topbar h2 { font-size: 18px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.topbar .sub { color: var(--ink-mute); font-size: 12.5px; }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.topbar .bell { position: relative; color: var(--ink-soft); background: none; border: none; padding: 8px; border-radius: 9px; display: flex; transition: all .12s; }
.topbar .bell:hover { background: #fff; color: var(--green-800); box-shadow: var(--shadow); }
.topbar .bell svg { width: 19px; height: 19px; }
.topbar .bell .dot {
  position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; border-radius: 8px;
  background: var(--red); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; padding: 0 4px;
  box-shadow: 0 0 0 2px rgba(245,243,255,.9);
}
.content { padding: 24px 28px 48px; flex: 1; }

/* ---------- 卡片 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-hd { display: flex; align-items: center; gap: 10px; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.card-hd h3 { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: .02em; }
.card-hd .cap { font-size: 12px; color: var(--ink-mute); }
.card-hd .ext { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.card-bd { padding: 18px 20px; }

/* KPI 卡 */
.kpi-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.kpi {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px 14px; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s;
}
.kpi:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(99,102,241,.12), 0 16px 40px rgba(99,102,241,.1); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #818CF8, #4F46E5); }
.kpi.k-gold::after { background: linear-gradient(180deg, #34D399, #059669); }
.kpi .lb { font-size: 12.5px; color: var(--ink-soft); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.kpi .lb svg { width: 14px; height: 14px; color: var(--gold-600); }
.kpi .v { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 26px; font-weight: 700; color: var(--ink); margin-top: 8px; line-height: 1.15; }
.kpi .v small { font-size: 12px; color: var(--ink-mute); font-weight: normal; margin-left: 3px; }
.kpi .tip { font-size: 11.5px; color: var(--ink-mute); margin-top: 5px; }

/* ---------- 表格 ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-weight: 500; color: var(--ink-soft); font-size: 12.5px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: #F8F7FE; white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tbody tr { transition: background .1s; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl .r { text-align: right; }
.tbl .num { font-size: 14px; }
.tbl .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tbl-empty { text-align: center; color: var(--ink-mute); padding: 44px 0 40px; font-size: 13px; }
.tbl-empty svg { width: 34px; height: 34px; display: block; margin: 0 auto 10px; opacity: .35; }

/* 状态点 */
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.st-ok { color: var(--ok); } .st-ok i { background: var(--ok); }
.st-warn { color: var(--amber); } .st-warn i { background: var(--amber); }
.st-danger { color: var(--red); } .st-danger i { background: var(--red); }
.st-mute { color: var(--ink-mute); } .st-mute i { background: #C6C9E8; }
.st-info { color: var(--green-700); } .st-info i { background: var(--green-700); }

/* 标签 */
.tag { display: inline-block; font-size: 11.5px; padding: 2.5px 9px; border-radius: 6px; background: var(--green-50); color: var(--green-800); border: 1px solid #C7D2FE; }
.tag.gold { background: var(--gold-100); color: #047857; border-color: #A7F3D0; }
.tag.red { background: var(--red-bg); color: var(--red); border-color: #FECACA; }
.tag.gray { background: #F1F0FA; color: var(--ink-soft); border-color: var(--line); }

/* ---------- 工具条 / 筛选 ---------- */
.filter { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter .ipt, .filter select.ipt { width: auto; min-width: 150px; height: 34px; font-size: 13.5px; }
.filter .search-box { position: relative; }
.filter .search-box svg { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: var(--ink-mute); }
.filter .search-box .ipt { padding-left: 32px; width: 210px; }

/* ---------- 弹窗 / 抽屉 ---------- */
.mask { position: fixed; inset: 0; background: rgba(30,27,75,.46); backdrop-filter: blur(2px); z-index: 90; display: flex; align-items: flex-start; justify-content: center; padding: 7vh 20px 40px; overflow-y: auto; animation: fadeIn .16s ease; }
.modal { background: var(--card); border-radius: 14px; box-shadow: 0 18px 50px rgba(30,27,75,.28), 0 40px 100px rgba(99,102,241,.14); width: 560px; max-width: 100%; animation: rise .18s ease; }
.modal.lg { width: 760px; }
.modal-hd { display: flex; align-items: center; padding: 17px 22px; border-bottom: 1px solid var(--line-soft); }
.modal-hd h3 { font-size: 16px; font-weight: 600; color: var(--ink); }
.modal-hd .x { margin-left: auto; background: none; border: none; color: var(--ink-mute); padding: 5px; border-radius: 6px; display: flex; }
.modal-hd .x:hover { background: var(--hover); color: var(--ink); }
.modal-hd .x svg { width: 17px; height: 17px; }
.modal-bd { padding: 20px 22px; max-height: 66vh; overflow-y: auto; }
.modal-ft { padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; justify-content: flex-end; gap: 10px; }

.drawer-mask { position: fixed; inset: 0; background: rgba(30,27,75,.4); z-index: 90; animation: fadeIn .16s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 92vw; background: var(--card); z-index: 91; box-shadow: -12px 0 40px rgba(30,27,75,.2); display: flex; flex-direction: column; animation: slideIn .2s ease; }
.drawer-hd { padding: 18px 22px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; }
.drawer-hd h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer-ft { padding: 13px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; }

@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(-8px); } }
@keyframes slideIn { from { transform: translateX(30px); opacity: .5; } }

/* ---------- 通知中心面板 ---------- */
.notif-panel {
  position: fixed; top: 66px; right: 26px; width: 390px; max-width: calc(100vw - 40px); max-height: 72vh; overflow-y: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(30,27,75,.24), 0 40px 100px rgba(99,102,241,.14); z-index: 95; animation: rise .16s ease;
}
.np-hd { display: flex; align-items: center; gap: 8px; padding: 14px 18px 11px; border-bottom: 1px solid var(--line-soft); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.np-hd svg { color: var(--green-800); }
.np-hd .cap { margin-left: auto; font-size: 11px; color: var(--ink-mute); font-weight: normal; }
.np-item { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .1s; }
.np-item:last-child { border-bottom: none; }
.np-item:hover { background: var(--hover); }
.np-item .ic { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.np-item .g { flex: 1; min-width: 0; }
.np-item .t { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.np-item .s { font-size: 12px; color: var(--ink-mute); margin-top: 2px; }
.np-warn .ic { background: var(--amber-bg); color: var(--amber); }
.np-danger .ic { background: var(--red-bg); color: var(--red); }
.np-info .ic { background: var(--green-50); color: var(--green-800); }
.np-empty { text-align: center; padding: 38px 0 34px; color: var(--ink-mute); font-size: 13px; }
.np-empty svg { opacity: .4; }

/* ---------- 详情键值 ---------- */
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 13.5px; }
.kv dt { color: var(--ink-mute); }
.kv dd { color: var(--ink); }
.sec-title { font-size: 13.5px; color: var(--gold-600); font-weight: 600; letter-spacing: .1em; margin: 22px 0 10px; display: flex; align-items: center; gap: 10px; }
.sec-title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 10px 18px; font-size: 14px; color: var(--ink-soft); cursor: pointer; border: none; background: none; position: relative; }
.tab:hover { color: var(--green-800); }
.tab.on { color: var(--green-800); font-weight: 600; }
.tab.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2.5px; background: linear-gradient(90deg, #6366F1, #10B981); border-radius: 2px; }

/* ---------- 看板 ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.bar-chart { display: flex; align-items: flex-end; gap: 14px; height: 170px; padding: 8px 6px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; height: 100%; justify-content: flex-end; }
.bar-col .bar { width: 30px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #818CF8, #4F46E5); box-shadow: 0 2px 10px rgba(79,70,229,.25); min-height: 3px; transition: height .3s ease; }
.bar-col .n { font-family: var(--serif); font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.bar-col .d { font-size: 11.5px; color: var(--ink-mute); }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10.5px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.list-row:last-child { border-bottom: none; }
.list-row .grow { flex: 1; min-width: 0; }
.list-row .t { color: var(--ink); }
.list-row .s { color: var(--ink-mute); font-size: 12px; margin-top: 2px; }

/* 大数字 */
.big-num { text-align: center; padding: 26px 10px 22px; }
.big-num .v { font-family: var(--serif); font-variant-numeric: tabular-nums; font-size: 34px; font-weight: 700; color: var(--green-800); }
.big-num .v.gold { color: var(--gold-600); }
.big-num .lb { color: var(--ink-soft); font-size: 13px; margin-top: 6px; }
.big-num .s { color: var(--ink-mute); font-size: 12px; margin-top: 3px; }

/* 进度条 */
.progress { height: 6px; background: var(--line-soft); border-radius: 3px; overflow: hidden; min-width: 90px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #10B981, #34D399); border-radius: 3px; }

/* 二维码 */
.qr-box { text-align: center; padding: 10px 0 4px; }
.qr-box img { width: 218px; height: 218px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: #fff; }
.qr-box .url { font-size: 11px; color: var(--ink-mute); word-break: break-all; margin-top: 10px; }

/* toast */
#toast {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-8px);
  background: var(--green-900); color: #fff; font-size: 13.5px; padding: 11px 22px;
  border-radius: 10px; z-index: 200; opacity: 0; pointer-events: none; transition: all .2s;
  box-shadow: 0 8px 24px rgba(30,27,75,.32); max-width: 80vw;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--red); }

/* 空态 */
.empty-block { text-align: center; color: var(--ink-mute); padding: 30px 0; font-size: 13px; }

/* 签约摘要 */
.sign-summary { background: var(--green-50); border: 1px dashed #C7D2FE; border-radius: 12px; padding: 16px 18px; margin-top: 6px; }
.sign-summary .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; }
.sign-summary .row.total { border-top: 1px solid #C7D2FE; margin-top: 7px; padding-top: 11px; font-weight: 600; }
.sign-summary .row.total .num { font-size: 19px; color: var(--green-800); }

/* 响应式 */
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) {
  .sidebar { width: 64px; } .main { margin-left: 64px; }
  .side-brand .tt, .side-nav .group, .nav-item span, .side-user .info { display: none; }
  .nav-item { justify-content: center; padding: 11px 0; }
  .side-brand { justify-content: center; padding: 18px 0; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
/* 手机级适配：抽屉式侧栏 */
.nav-toggle {
  display: none; align-items: center; justify-content: center; flex-shrink: 0;
  width: 37px; height: 37px; margin-right: 10px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink-soft);
  transition: all .15s;
}
.nav-toggle:active { background: var(--g50); color: var(--g800); }
@media (max-width: 700px) {
  .sidebar { width: 216px; transform: translateX(-100%); transition: transform .26s cubic-bezier(.2,.8,.3,1); z-index: 95; }
  .sidebar.open { transform: none; box-shadow: 22px 0 60px rgba(30,27,75,.35); }
  .sidebar .side-brand .tt, .sidebar .side-nav .group, .sidebar .nav-item span, .sidebar .side-user .info { display: block; }
  .sidebar .nav-item { justify-content: flex-start; padding: 9.5px 12px; }
  .sidebar .side-brand { justify-content: flex-start; padding: 22px 20px 18px; }
  .main { margin-left: 0; }
  .nav-toggle { display: flex; }
  .content { padding: 16px 13px 60px; }
  .topbar { padding: 10px 13px; }
  .topbar h2 { font-size: 16px; }
  .topbar .sub { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mask { padding: 10px 10px 24px; align-items: flex-end; }
  .modal { width: min(560px, calc(100vw - 20px)); max-height: 86vh; overflow-y: auto; }
  .card-bd { overflow-x: auto; }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
}
