/* ============ 甘肃省卫健舆情平台 设计系统（政府庄重 + Apple 质感） ============ */
:root {
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --bg: #f2f5fa;
  --card: #ffffff;
  --ink: #17233d;
  --ink2: #5a6b8c;
  --ink3: #93a1bd;
  --line: #e6ebf4;
  --primary: #2153d8;
  --primary2: #4f46e5;
  --grad: linear-gradient(135deg, #2153d8 0%, #4f46e5 60%, #6d3ee0 100%);
  --grad-soft: linear-gradient(135deg, #eaf1ff 0%, #f0edff 100%);
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --lv-blue: #3b82f6; --lv-yellow: #f59e0b; --lv-orange: #f97316; --lv-red: #ef4444;
  --shadow: 0 8px 30px rgba(23, 45, 105, .08);
  --shadow-lg: 0 16px 48px rgba(23, 45, 105, .16);
  --radius: 18px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14px; -webkit-font-smoothing: antialiased; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #c3cfe6; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 侧栏抽屉式收起/展开 ---------- */
.nav-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 6px 4px 0; padding: 9px 0; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .06); color: #c6d6ff; cursor: pointer; font-family: var(--font); font-size: 12.5px; width: calc(100% - 8px); transition: all .25s; }
.nav-toggle:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.nav-toggle svg { width: 15px; height: 15px; fill: currentColor; transition: transform .35s cubic-bezier(.4, 0, .2, 1); }
body.nav-collapsed .nav-toggle svg { transform: rotate(180deg); }
body.nav-collapsed .app { grid-template-columns: 68px 1fr; }
body.nav-collapsed .sidebar { padding: 20px 10px; }
body.nav-collapsed .brand { justify-content: center; padding-bottom: 14px; }
body.nav-collapsed .brand > div, body.nav-collapsed .nav-group .gt, body.nav-collapsed .nav-group a span, body.nav-collapsed .nav-toggle span { display: none; }
body.nav-collapsed .nav-toggle { margin-top: 2px; padding: 9px 0; }
body.nav-collapsed .nav-group a { justify-content: center; padding: 11px 0; }
body.nav-collapsed .nav-group a:hover { transform: none; }
body.nav-collapsed .nav-group a.active::before { left: -10px; }
.sidebar, .nav-group a, .brand, .nav-group .gt { transition: all .3s cubic-bezier(.4, 0, .2, 1); }

/* ---------- 布局 ---------- */
.app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: linear-gradient(180deg, #0a1e52 0%, #0f2f7e 70%, #123a8f 100%); color: #dce6ff; padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 50; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand .logo { width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #2f6bff, #7c3aed); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(47, 107, 255, .45); }
.brand .logo svg { width: 24px; height: 24px; fill: #fff; }
.brand b { font-size: 15px; letter-spacing: .5px; color: #fff; display: block; line-height: 1.3; }
.brand span { font-size: 10px; color: #8fa7e0; letter-spacing: 1px; }
.nav-group { margin-top: 14px; }
.nav-group .gt { font-size: 11px; color: #7e97d6; padding: 10px 12px 6px; letter-spacing: 2px; }
.nav-group a { display: flex; align-items: center; gap: 10px; color: #c6d6ff; text-decoration: none; padding: 10px 12px; border-radius: 12px; margin: 3px 0; transition: all .25s cubic-bezier(.4, 0, .2, 1); font-size: 13.5px; position: relative; }
.nav-group a svg { width: 17px; height: 17px; fill: currentColor; opacity: .9; flex: none; }
.nav-group a:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateX(3px); }
.nav-group a.active { background: linear-gradient(135deg, rgba(47, 107, 255, .35), rgba(124, 58, 237, .3)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.nav-group a.active::before { content: ""; position: absolute; left: -14px; top: 20%; height: 60%; width: 4px; border-radius: 4px; background: linear-gradient(180deg, #4f8bff, #8b5cf6); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 60px; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; padding: 0 26px; position: sticky; top: 0; z-index: 40; }
.topbar h1 { font-size: 17px; font-weight: 600; flex: 1; }
.topbar .who { display: flex; align-items: center; gap: 10px; }
.topbar .avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; box-shadow: 0 4px 12px rgba(37, 83, 216, .35); }
.topbar .who .meta b { display: block; font-size: 13px; }
.topbar .who .meta span { font-size: 11px; color: var(--ink3); }
.topbar .who-user { display: flex; align-items: center; gap: 10px; padding: 5px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.topbar .who-user:hover { background: rgba(37, 83, 216, .08); }
/* —— APP下载 二维码悬浮弹层 —— */
.qr-pop-wrap { position: relative; }
.qr-pop-wrap .qr-pop { position: absolute; top: calc(100% + 14px); right: -6px; width: 216px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(15, 35, 95, .18); padding: 18px 18px 14px; text-align: center; opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: top center; transition: all .22s cubic-bezier(.34, 1.56, .64, 1); z-index: 90; }
.qr-pop-wrap .qr-pop::before { content: ''; position: absolute; top: -7px; right: 30px; width: 12px; height: 12px; background: #fff; border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.qr-pop-wrap:hover .qr-pop, .qr-pop-wrap:focus-within .qr-pop { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.qr-pop img { width: 156px; height: 156px; object-fit: contain; border-radius: 8px; background: #fff; display: block; margin: 0 auto 10px; }
.qr-pop .qr-empty { width: 156px; height: 156px; margin: 0 auto 10px; border: 1.5px dashed #c3cde4; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #8a97b8; font-size: 11px; line-height: 1.6; }
.qr-pop .qr-empty svg { width: 34px; height: 34px; opacity: .55; }
.qr-pop b { display: block; font-size: 14px; color: #1c2b4a; }
.qr-pop > span:not(.qr-empty) { display: block; margin-top: 3px; font-size: 11.5px; color: var(--ink3); }
.content { padding: 24px 26px 40px; animation: pageIn .4s cubic-bezier(.4, 0, .2, 1); min-width: 0; max-width: 100%; overflow-x: hidden; }
.content > * { min-width: 0; max-width: 100%; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- 卡片 ---------- */
.cards { display: grid; gap: 16px; }
.cards > * { min-width: 0; }
.cards.c4 { grid-template-columns: repeat(4, 1fr); }
.cards.c3 { grid-template-columns: repeat(3, 1fr); }
.cards.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; border: 1px solid rgba(255, 255, 255, .6); transition: transform .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s; animation: cardIn .5s cubic-bezier(.4, 0, .2, 1) backwards; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.cards > *:nth-child(1) { animation-delay: .02s } .cards > *:nth-child(2) { animation-delay: .07s } .cards > *:nth-child(3) { animation-delay: .12s } .cards > *:nth-child(4) { animation-delay: .17s } .cards > *:nth-child(5) { animation-delay: .22s } .cards > *:nth-child(6) { animation-delay: .27s }
.card h3 { font-size: 14px; color: var(--ink2); font-weight: 500; display: flex; align-items: center; gap: 8px; }
.card h3 svg { width: 16px; height: 16px; fill: var(--primary); }
.card .big { font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.card .sub { font-size: 12px; color: var(--ink3); margin-top: 6px; }
.card .icon-bubble { position: absolute; right: 16px; top: 16px; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; opacity: .95; }
.card .icon-bubble svg { width: 22px; height: 22px; fill: #fff; }
.card .rel { position: relative; }
.span2 { grid-column: span 2; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; border: none; cursor: pointer; font-family: var(--font); font-size: 13px; padding: 9px 18px; border-radius: 12px; transition: all .25s cubic-bezier(.4, 0, .2, 1); background: #eef2fb; color: var(--ink); font-weight: 500; }
.btn svg { width: 15px; height: 15px; fill: currentColor; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(23, 45, 105, .14); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(59, 74, 229, .35); }
.btn.primary:hover { filter: brightness(1.08); box-shadow: 0 10px 24px rgba(59, 74, 229, .45); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.danger { background: linear-gradient(135deg, #ef4444, #dc2626); color: #fff; }
.btn.warn { background: linear-gradient(135deg, #f59e0b, #d97706); color: #fff; }
.btn.ok { background: linear-gradient(135deg, #22c55e, #16a34a); color: #fff; }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 9px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- 表格 ---------- */
.table-card { padding: 8px 0 4px; overflow-x: auto; }
.table-card .thead-bar { display: flex; align-items: center; gap: 10px; padding: 14px 20px; flex-wrap: wrap; }
.table-card .thead-bar .sp { flex: 1; }
table.dt { width: 100%; border-collapse: collapse; font-size: 13px; }
table.dt th { text-align: left; color: var(--ink3); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #f8fafd; }
table.dt td { padding: 11px 14px; border-bottom: 1px solid #f0f4fb; color: var(--ink); white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
table.dt tbody tr { transition: background .2s; }
table.dt tbody tr:hover { background: #f4f7ff; }
table.dt .ops { display: flex; gap: 6px; }
.pager { display: flex; align-items: center; gap: 10px; padding: 14px 20px; color: var(--ink3); font-size: 12.5px; }
.pager button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 5px 12px; cursor: pointer; transition: all .2s; font-family: var(--font); }
.pager button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- 徽章/标签 ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; padding: 3px 10px; border-radius: 20px; font-weight: 500; }
.tag.blue { background: #eaf2ff; color: #2563eb; } .tag.yellow { background: #fef6e7; color: #b45309; }
.tag.orange { background: #fff1e6; color: #c2410c; } .tag.red { background: #fee9e9; color: #b91c1c; }
.tag.gray { background: #f0f3fa; color: #64748b; } .tag.green { background: #e8f8ee; color: #15803d; }
.tag.purple { background: #f1ecff; color: #6d28d9; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.pulse { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } }

/* ---------- 表单 ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; color: var(--ink2); margin-bottom: 6px; font-weight: 500; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 11px; padding: 9px 12px; font-size: 13.5px; font-family: var(--font); background: #fbfcfe; transition: all .25s; color: var(--ink); }
.field textarea { min-height: 90px; resize: vertical; line-height: 1.6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37, 83, 216, .12); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters .field { margin: 0; }
.filters input, .filters select { width: auto; min-width: 130px; }

/* ---------- 弹窗 ---------- */
.modal-mask { position: fixed; inset: 0; background: rgba(10, 22, 54, .45); backdrop-filter: blur(6px); display: grid; place-items: center; z-index: 100; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
.modal { background: #fff; border-radius: 22px; width: min(680px, 92vw); max-height: 88vh; overflow: auto; box-shadow: 0 30px 80px rgba(6, 18, 60, .35); animation: popIn .32s cubic-bezier(.34, 1.4, .64, 1); }
.modal.wide { width: min(940px, 94vw); }
@keyframes popIn { from { opacity: 0; transform: scale(.92) translateY(16px); } to { opacity: 1; transform: none; } }
.modal .mh { display: flex; align-items: center; padding: 18px 24px 0; }
.modal .mh h3 { font-size: 16px; flex: 1; }
.modal .mh .x { cursor: pointer; color: var(--ink3); font-size: 20px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; transition: all .2s; }
.modal .mh .x:hover { background: #f1f4fb; color: var(--ink); }
.modal .mb { padding: 16px 24px 22px; }
.modal .mf { display: flex; gap: 10px; justify-content: flex-end; padding: 0 24px 20px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast { background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 18px; display: flex; gap: 10px; align-items: center; font-size: 13.5px; animation: slideL .35s cubic-bezier(.34, 1.3, .64, 1); border-left: 4px solid var(--ok); }
.toast.err { border-left-color: var(--danger); } .toast.warn { border-left-color: var(--warn); }
@keyframes slideL { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }

/* ---------- 登录页 ---------- */
.login-body { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(160deg, #0a1e52 0%, #123a8f 45%, #2563eb 80%, #4f46e5 100%); position: relative; overflow: hidden; }
.login-body::before { content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(96, 165, 250, .25), transparent 65%); top: -180px; right: -120px; animation: float 9s ease-in-out infinite; }
.login-body::after { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; background: radial-gradient(circle, rgba(167, 139, 250, .2), transparent 65%); bottom: -160px; left: -100px; animation: float 11s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(26px) } }
.login-card { position: relative; z-index: 2; width: 400px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(20px); border-radius: 26px; padding: 40px 38px 32px; box-shadow: 0 40px 90px rgba(4, 12, 40, .5); animation: popIn .6s cubic-bezier(.34, 1.3, .64, 1); }
.login-card .lg { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.login-card .lg .logo { width: 46px; height: 46px; border-radius: 14px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 8px 20px rgba(47, 107, 255, .4); }
.login-card .lg .logo svg { width: 27px; height: 27px; fill: #fff; }
.login-card .lg b { font-size: 16.5px; line-height: 1.35; }
.login-card .tip { color: var(--ink3); font-size: 12px; margin-bottom: 24px; }
.login-acc { margin-top: 18px; background: #f4f7fe; border-radius: 14px; padding: 12px 14px; font-size: 12px; color: var(--ink2); line-height: 1.9; }
.login-acc code { background: #e6edfb; padding: 1px 7px; border-radius: 6px; color: var(--primary); font-size: 11.5px; }
.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: none } 25% { transform: translateX(-7px) } 75% { transform: translateX(7px) } }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, #c7d7fa, #e3dbfa); border-radius: 2px; }
.tl-item { position: relative; padding: 8px 0 14px; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 0 0 4px rgba(37, 83, 216, .12); }
.tl-item .tt { font-size: 11.5px; color: var(--ink3); }
.tl-item .tx { font-size: 13px; margin-top: 2px; line-height: 1.6; }

/* ---------- 键值 & 明细 ---------- */
.kv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.kv .k { font-size: 12px; color: var(--ink3); }
.kv .v { font-size: 13.5px; margin-top: 2px; word-break: break-all; }
.sec-title { font-size: 15px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.sec-title::before { content: ""; width: 4px; height: 16px; border-radius: 3px; background: var(--grad); }

/* ---------- 步骤条 ---------- */
.steps { display: flex; gap: 0; overflow-x: auto; padding: 6px 2px 2px; }
.step { flex: 1; text-align: center; position: relative; min-width: 86px; }
.step::before { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step .b { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; background: #e8edf7; color: var(--ink3); font-size: 12px; font-weight: 600; position: relative; z-index: 1; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(23, 45, 105, .12); transition: all .3s; }
.step.done .b, .step.cur .b { background: var(--grad); color: #fff; box-shadow: 0 4px 14px rgba(59, 74, 229, .4); }
.step.done::before, .step.cur::before { background: var(--grad); }
.step .lb { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 6px; }
.step.cur .lb { color: var(--primary); font-weight: 600; }

/* ---------- 权限勾选 ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.perm-grid label { display: flex; gap: 7px; align-items: center; font-size: 12.5px; background: #f6f8fd; padding: 8px 10px; border-radius: 10px; cursor: pointer; transition: all .2s; }
.perm-grid label:hover { background: #eaf1ff; }
.perm-grid input { accent-color: var(--primary); }

/* ---------- 图表容器 ---------- */
.chart-wrap { width: 100%; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink2); margin-top: 10px; }
.legend .li { display: flex; align-items: center; gap: 6px; }

/* ---------- 组织树 ---------- */
.tree { font-size: 13px; user-select: none; }
.tree .node { padding: 6px 8px; border-radius: 9px; cursor: pointer; display: flex; align-items: center; gap: 7px; transition: all .2s; }
.tree .node:hover { background: #f0f4ff; }
.tree .node.sel { background: var(--grad-soft); color: var(--primary); font-weight: 600; }
.tree .children { margin-left: 18px; border-left: 1px dashed #d6e0f5; padding-left: 8px; }

/* ---------- 大屏 ---------- */
.screen { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, #0d2a6e 0%, #060f33 55%, #04081f 100%); color: #dfe9ff; padding: 18px 22px; position: relative; overflow: hidden; }
.screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(79, 129, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(79, 129, 255, .06) 1px, transparent 1px); background-size: 44px 44px; pointer-events: none; }
.screen h1 { text-align: center; font-size: 24px; letter-spacing: 6px; background: linear-gradient(180deg, #ffffff, #9db9ff); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 4px; }
.screen .sclock { text-align: center; color: #7f9be0; font-size: 12.5px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.sgrid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.scard { background: rgba(13, 30, 78, .55); border: 1px solid rgba(90, 130, 255, .22); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); animation: cardIn .6s backwards; box-shadow: inset 0 0 30px rgba(47, 107, 255, .06); }
.scard h4 { font-size: 12.5px; color: #8fb0ff; font-weight: 500; display: flex; gap: 7px; align-items: center; letter-spacing: 1px; }
.scard h4::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #4f8bff, #8b5cf6); }
.scard .sbig { font-size: 30px; font-weight: 700; color: #fff; margin-top: 6px; font-variant-numeric: tabular-nums; }
.scard .sbig small { font-size: 12px; color: #7f9be0; font-weight: 400; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s6 { grid-column: span 6; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.sbar { display: flex; align-items: center; gap: 8px; margin: 7px 0; font-size: 12px; }
.sbar .n { width: 76px; color: #9db4ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbar .track { flex: 1; height: 8px; background: rgba(70, 100, 200, .25); border-radius: 6px; overflow: hidden; }
.sbar .fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #2f6bff, #7c3aed); transition: width 1s cubic-bezier(.4, 0, .2, 1); position: relative; }
.sbar .fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: shimmer 2.4s infinite; }
@keyframes shimmer { from { transform: translateX(-100%) } to { transform: translateX(100%) } }
.sbar .v { width: 46px; text-align: right; color: #e6edff; font-variant-numeric: tabular-nums; }
.slist { max-height: 200px; overflow: hidden; }
.slist .si { display: flex; gap: 8px; padding: 7px 4px; border-bottom: 1px dashed rgba(90, 130, 255, .18); font-size: 12.5px; animation: slideL .5s backwards; }
.slist .si .tag { flex: none; }
.slist .si span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blink { animation: blink 1.6s infinite; }
@keyframes blink { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* ---------- 合规文档页 ---------- */
.doc-page { max-width: 980px; }
.doc-page .card { margin-bottom: 16px; }
.doc-page h2 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.doc-page h2 svg { width: 19px; height: 19px; fill: var(--primary); }
.doc-page p, .doc-page li { font-size: 13.5px; line-height: 1.9; color: #374766; }
.doc-page ul { padding-left: 20px; }
.doc-page table.dt { margin-top: 8px; }
.badge-chip { display: inline-flex; padding: 3px 12px; border-radius: 20px; font-size: 12px; background: var(--grad-soft); color: var(--primary); margin-right: 8px; }

/* 响应式 */
@media (max-width: 1100px) { .cards.c4 { grid-template-columns: repeat(2, 1fr) } .cards.c3 { grid-template-columns: 1fr } }
@media (max-width: 960px) { .cards.c2 { grid-template-columns: 1fr } }
@media (max-width: 860px) { .app { grid-template-columns: 64px 1fr } .brand b, .brand span, .nav a span { display: none } body.nav-collapsed .app { grid-template-columns: 64px 1fr } }
.skeleton { background: linear-gradient(90deg, #eef1f8 25%, #f7f9fd 50%, #eef1f8 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; height: 14px; }
.empty { text-align: center; color: var(--ink3); padding: 40px 0; font-size: 13px; }
.empty svg { width: 46px; height: 46px; fill: #c9d5ec; margin-bottom: 10px; }

/* ===== 品牌Logo（后台可上传/配置） ===== */
.brand .logo.img-logo, .login-card .lg .logo.img-logo, .hd .lg.img-logo { overflow: hidden; }
.brand .logo.img-logo img, .login-card .lg .logo.img-logo img, .hd .lg.img-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; border-radius: inherit; }
.brand .logo.img-logo.fallback, .login-card .lg .logo.img-logo.fallback { display: none; }
.brand .logo.img-logo.fallback + div b::before { content: ''; }
