/* 衡岳租车 · 运营后台（桌面端） */
:root {
  --brand: #0aa8ff;
  --brand-2: #12e0c4;
  --brand-deep: #0672c9;
  --ink: #0b1723;
  --ink-2: #4a5b6b;
  --muted: #8a9aab;
  --line: #e8eef4;
  --bg: #f3f6fa;
  --card: #fff;
  --price: #ff5a2d;
  --ok: #12b886;
  --warn: #f08c00;
  --danger: #e03131;
  --side: #0c1b2a;
  --side-2: #0f2537;
  --r: 14px;
  --shadow: 0 1px 2px rgba(11, 23, 35, .04), 0 8px 24px rgba(11, 23, 35, .06);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg); color: var(--ink); font-size: 13.5px; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #ccd8e3; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 登录 ---------- */
.login-wrap { min-height: 100vh; display: flex; align-items: stretch; background: #f6f9fc; }
.login-visual {
  flex: 1.05; position: relative; overflow: hidden; color: #fff; padding: 56px 60px;
  background: radial-gradient(1200px 600px at 10% 0%, #17608f 0%, transparent 55%),
              linear-gradient(150deg, #071522 0%, #0b2b45 45%, #0a5f77 100%);
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-visual::after {
  content: ''; position: absolute; right: -160px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(18, 224, 196, .38), transparent 62%);
  filter: blur(6px);
}
.lv-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 17px; letter-spacing: .4px; }
.lv-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04202b; }
.lv-title { font-size: 34px; font-weight: 800; line-height: 1.32; letter-spacing: -.5px; margin: 0 0 16px; }
.lv-title em { font-style: normal; color: #7ff0dc; }
.lv-sub { font-size: 13.5px; color: #9fc0d4; line-height: 1.9; max-width: 420px; }
.lv-stats { display: flex; gap: 42px; position: relative; z-index: 1; }
.lv-stats b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.5px; }
.lv-stats span { font-size: 12px; color: #8fb2c8; }
.login-card { width: 480px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px; }
.lc-inner { width: 100%; max-width: 336px; }
.lc-inner h2 { margin: 0 0 6px; font-size: 23px; letter-spacing: -.3px; }
.lc-inner p.tip { margin: 0 0 26px; font-size: 12.5px; color: var(--muted); }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: 7px; font-weight: 600; }
.field input, .field select {
  width: 100%; height: 44px; border: 1px solid #dfe8f1; border-radius: 10px; padding: 0 13px; font-size: 13.5px;
  background: #fbfdff; outline: none; transition: .16s; color: var(--ink);
}
.field input:focus, .field select:focus { border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(10, 168, 255, .12); }
.lc-row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin: 4px 0 20px; }
.lc-row label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.btn-login { width: 100%; height: 46px; border: 0; border-radius: 11px; font-size: 15px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--brand), #14c8c0); box-shadow: 0 8px 20px rgba(10, 168, 255, .28); }
.btn-login:hover { filter: brightness(1.04); }
.lc-hint { margin-top: 18px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.7; }
.lc-hint b { color: var(--brand-deep); }

/* ---------- 主框架 ---------- */
.shell { display: flex; min-height: 100vh; }
.side { width: 226px; flex: none; background: linear-gradient(180deg, var(--side), var(--side-2)); color: #b9cddd;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 20px 20px 18px; color: #fff; }
.side-brand .mk { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 17px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #04202b; }
.side-brand b { font-size: 14.5px; letter-spacing: .3px; display: block; }
.side-brand span { font-size: 10.5px; color: #7e9ab0; letter-spacing: .6px; }
.nav { padding: 6px 12px 20px; overflow-y: auto; flex: 1; }
.nav-g { font-size: 10.5px; letter-spacing: 1.4px; color: #5f778c; padding: 16px 10px 8px; font-weight: 700; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9.5px 11px; border-radius: 9px; font-size: 13px; color: #a9c0d2;
  margin-bottom: 2px; transition: .15s; position: relative; }
.nav a svg { width: 17px; height: 17px; opacity: .85; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(10, 168, 255, .22), rgba(18, 224, 196, .1)); color: #fff; font-weight: 600; }
.nav a.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2)); }
.nav a .n { margin-left: auto; font-size: 10.5px; background: rgba(255, 130, 90, .2); color: #ffb199; padding: 1px 6px; border-radius: 20px; }
.side-foot { padding: 12px; border-top: 1px solid rgba(255, 255, 255, .06); }
.side-foot a { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: #93aec2; padding: 8px 10px; border-radius: 8px; }
.side-foot a:hover { background: rgba(255, 255, 255, .06); color: #fff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 62px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px;
  padding: 0 26px; position: sticky; top: 0; z-index: 30; }
.crumb { font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 7px; }
.crumb b { color: var(--ink); font-weight: 600; font-size: 13px; }
.tb-search { margin-left: auto; position: relative; }
.tb-search input { width: 250px; height: 36px; border: 1px solid var(--line); border-radius: 9px; background: #f7fafd;
  padding: 0 12px 0 34px; font-size: 12.5px; outline: none; }
.tb-search input:focus { border-color: var(--brand); background: #fff; }
.tb-search svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--muted); }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center;
  color: var(--ink-2); position: relative; }
.icon-btn:hover { background: #f6f9fc; }
.icon-btn .dot { position: absolute; top: 6px; right: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--price); }
.tb-user { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.tb-user .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #04303a; background: linear-gradient(135deg, #9fe9ff, #7ff0dc); }
.tb-user b { font-size: 12.5px; display: block; line-height: 1.3; }
.tb-user span { font-size: 11px; color: var(--muted); }

.view { padding: 22px 26px 40px; max-width: 1440px; width: 100%; }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-h h1 { margin: 0 0 5px; font-size: 21px; letter-spacing: -.4px; }
.page-h p { margin: 0; font-size: 12.5px; color: var(--muted); }
.page-h .acts { display: flex; gap: 9px; }

/* ---------- 通用组件 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; padding: 15px 18px 0; }
.card-h h3 { margin: 0; font-size: 14px; }
.card-h .sub { font-size: 11.5px; color: var(--muted); font-weight: 400; }
.card-b { padding: 16px 18px 18px; }
.btn { height: 36px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line); background: #fff; font-size: 12.5px;
  font-weight: 600; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.btn:hover { border-color: #cfdde9; background: #f9fbfd; }
.btn-pri { background: linear-gradient(135deg, var(--brand), #14c8c0); border: 0; color: #fff; box-shadow: 0 6px 16px rgba(10, 168, 255, .24); }
.btn-pri:hover { filter: brightness(1.05); background: linear-gradient(135deg, var(--brand), #14c8c0); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; border-radius: 8px; }
.btn-danger { color: var(--danger); border-color: #f6d5d5; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand-deep); }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 23px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 600; }
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.b-unpaid { color: #d9480f; background: #fff1e6; }
.b-pending { color: #0b7ec4; background: #e7f5ff; }
.b-using { color: #0c8599; background: #e3fafc; }
.b-done { color: #2b8a3e; background: #ebfbee; }
.b-canceled { color: #868e96; background: #f1f3f5; }
.b-warn { color: #b26a00; background: #fff6e6; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi .k-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kpi .k-ic { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; }
.kpi .k-ic svg { width: 16px; height: 16px; }
.kpi b.val { display: block; font-size: 27px; font-weight: 800; letter-spacing: -.8px; margin: 9px 0 6px; font-variant-numeric: tabular-nums; }
.kpi .k-foot { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi .up { color: var(--ok); font-weight: 700; }
.kpi .down { color: var(--danger); font-weight: 700; }
.kpi::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(10,168,255,.07), transparent 70%); }

.grid-2 { display: grid; grid-template-columns: 1.62fr 1fr; gap: 14px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 16px; }

/* 图表 */
.chart { position: relative; padding: 6px 4px 0; }
.chart svg { width: 100%; height: 214px; display: block; overflow: visible; }
.chart .lbl { font-size: 10px; fill: #9aaaa9; }
.legend { display: flex; gap: 16px; font-size: 11.5px; color: var(--ink-2); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; }

/* 待办 */
.todo { display: flex; gap: 11px; padding: 11px 4px; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.todo:last-child { border-bottom: 0; }
.todo .ti { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.todo .ti svg { width: 15px; height: 15px; }
.todo b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.todo small { font-size: 11px; color: var(--muted); }
.todo .go { margin-left: auto; font-size: 11.5px; color: var(--brand-deep); white-space: nowrap; }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { text-align: left; font-weight: 600; color: var(--muted); font-size: 11.5px; padding: 11px 12px; background: #f8fbfe;
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child { border-radius: 8px 0 0 8px; }
.tbl th:last-child { border-radius: 0 8px 8px 0; }
.tbl td { padding: 12px; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: #fafcff; }
.tbl .oid { font-family: "SFMono-Regular", Consolas, monospace; font-size: 11.5px; color: var(--ink-2); }
.tbl .who b { display: block; font-weight: 600; font-size: 12.5px; }
.tbl .who span { font-size: 11px; color: var(--muted); }
.tbl .money { font-weight: 700; font-variant-numeric: tabular-nums; }
.tbl .mono { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tbl .row-act { display: flex; gap: 6px; justify-content: flex-end; }
.tbl .car-cell { display: flex; align-items: center; gap: 9px; }
.tbl .car-cell .ph { width: 42px; height: 30px; border-radius: 6px; background: #f2f7fc; display: grid; place-items: center; overflow: hidden; }
.tbl .car-cell .ph svg { width: 40px; height: 28px; }
.empty-row { text-align: center; color: var(--muted); padding: 44px 0 !important; font-size: 12.5px; }

/* 筛选条 */
.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); }
.seg button.on { background: linear-gradient(135deg, rgba(10,168,255,.12), rgba(18,224,196,.12)); color: var(--brand-deep); font-weight: 700; }
.sel { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12.5px; padding: 0 10px; color: var(--ink-2); outline: none; }
.filters .sp { margin-left: auto; }
.f-search { position: relative; }
.f-search input { height: 34px; width: 220px; border: 1px solid var(--line); border-radius: 9px; padding: 0 12px 0 32px; font-size: 12.5px; outline: none; background: #fff; }
.f-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,168,255,.1); }
.f-search svg { position: absolute; left: 10px; top: 9px; width: 15px; height: 15px; color: var(--muted); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pager .sp { margin-left: auto; }
.pager button { min-width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--line); background: #fff; font-size: 12px; color: var(--ink-2); }
.pager button.on { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 700; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }

/* 门店卡 */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.store-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.store-card .sc-top { padding: 16px 18px 14px; background: linear-gradient(135deg, #f7fcff, #f2fbf9); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; }
.store-card h4 { margin: 0 0 4px; font-size: 14.5px; }
.store-card .sc-top small { font-size: 11.5px; color: var(--muted); }
.store-card .sc-b { padding: 14px 18px 16px; }
.store-card .row { display: flex; justify-content: space-between; font-size: 12px; padding: 5px 0; color: var(--ink-2); }
.store-card .row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.store-card .sc-f { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.bar { height: 6px; border-radius: 6px; background: #eef4f9; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* 开关 */
.sw { width: 40px; height: 22px; border-radius: 20px; background: #dfe7ee; position: relative; border: 0; transition: .18s; flex: none; }
.sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: .18s; }
.sw.on { background: linear-gradient(135deg, #12c6a4, #0aa8ff); }
.sw.on i { left: 20px; }

/* 优惠券 */
.cp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.cp-card { border-radius: var(--r); padding: 16px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #0d7ab5, #0aa8ff 55%, #12c0c4); box-shadow: 0 10px 24px rgba(10,120,180,.22); }
.cp-card::after { content: ''; position: absolute; right: -46px; top: -46px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cp-card .cp-val { font-size: 26px; font-weight: 800; letter-spacing: -.6px; }
.cp-card .cp-name { font-size: 13px; font-weight: 600; margin-top: 2px; }
.cp-card .cp-desc { font-size: 11px; color: rgba(255,255,255,.72); margin-top: 3px; }
.cp-card .cp-meta { display: flex; gap: 18px; margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.82); }
.cp-card .cp-meta b { display: block; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; }

/* 设置 */
.set-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; border-bottom: 1px solid #f1f5f9; }
.set-row:last-child { border-bottom: 0; }
.set-row .sl b { display: block; font-size: 12.5px; font-weight: 600; }
.set-row .sl small { font-size: 11.5px; color: var(--muted); }
.set-row .sr { flex: none; }
.set-row input[type=text], .set-row input[type=number] { height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; font-size: 12.5px; outline: none; width: 150px; }
.set-row input:focus { border-color: var(--brand); }
.set-row .unit { font-size: 12px; color: var(--muted); margin-left: 6px; }

/* 报表 */
.rank { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.rank .idx { width: 20px; height: 20px; border-radius: 6px; background: #f0f5fa; color: var(--ink-2); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.rank .idx.top { background: linear-gradient(135deg, #ffd43b, #ffa94d); color: #5c3a00; }
.rank .nm { width: 108px; font-size: 12px; color: var(--ink-2); }
.rank .bar { flex: 1; }
.rank .vl { width: 76px; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* 抽屉 */
.mask { position: fixed; inset: 0; background: rgba(9, 20, 32, .42); opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
.mask.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: 92vw; background: #fff; z-index: 61;
  transform: translateX(102%); transition: transform .26s cubic-bezier(.32,.72,.28,1); display: flex; flex-direction: column; box-shadow: -18px 0 44px rgba(9,20,32,.16); }
.drawer.on { transform: translateX(0); }
.dw-h { display: flex; align-items: center; gap: 12px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.dw-h h3 { margin: 0; font-size: 15px; }
.dw-h .x { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; border: 0; background: #f4f7fa; display: grid; place-items: center; color: var(--ink-2); }
.dw-b { padding: 18px 20px 90px; overflow-y: auto; flex: 1; }
.dw-f { position: absolute; left: 0; right: 0; bottom: 0; padding: 13px 20px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 9px; }
.dw-f .btn { flex: 1; justify-content: center; height: 40px; }
.sec-t { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .4px; margin: 18px 0 8px; }
.sec-t:first-child { margin-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 18px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px dashed #eef3f8; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 600; text-align: right; }
.kv .total { color: var(--price); font-size: 15px; }
.flow { display: flex; align-items: center; margin: 6px 0 14px; }
.flow .st { text-align: center; flex: 1; position: relative; }
.flow .st i { display: block; width: 9px; height: 9px; border-radius: 50%; background: #dde7f0; margin: 0 auto 6px; }
.flow .st.on i { background: var(--brand); box-shadow: 0 0 0 3px rgba(10,168,255,.16); }
.flow .st span { font-size: 10.5px; color: var(--muted); }
.flow .st.on span { color: var(--ink); font-weight: 600; }
.flow .ln { height: 2px; background: #e8eef4; flex: 1; margin-bottom: 16px; }
.flow .ln.on { background: var(--brand); }

/* toast */
.toast { position: fixed; left: 50%; bottom: 44px; transform: translate(-50%, 14px); background: rgba(12,27,42,.94); color: #fff;
  font-size: 13px; padding: 11px 20px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .22s; z-index: 99; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* 车辆图 */
.thumb-svg { width: 100%; height: 100%; }

/* 响应式：窄屏桌面 */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .store-grid, .cp-grid, .grid-3 { grid-template-columns: 1fr; }
  .set-grid { grid-template-columns: 1fr; }
  .side { width: 74px; }
  .side-brand span, .side-brand b, .nav-g, .nav a span, .side-foot span { display: none; }
  .nav a { justify-content: center; }
  .nav a .n { display: none; }
  .login-visual { display: none; }
  .login-card { width: 100%; }
}

[hidden] { display: none !important; }

/* ---------- AI 助手 ---------- */
.ai-mark { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-size: 11px; font-weight: 800;
  background: linear-gradient(135deg, #9fe9ff, #7ff0dc); color: #04303a; letter-spacing: .2px; flex: none; }
.ai-bar { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 13px; margin-bottom: 14px;
  background: linear-gradient(100deg, #eef9ff, #ecfbf6); border: 1px solid #d8eefc; }
.ai-bar-tx { min-width: 0; display: flex; flex-direction: column; }
.ai-bar-tx b { font-size: 12.5px; }
.ai-bar-tx span { font-size: 11.5px; color: #4a5b6b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bar .btn { margin-left: auto; flex: none; border-color: #bfe4f7; color: #0672c9; background: #fff; }

.ai-hero { border-radius: 16px; padding: 18px 20px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden;
  background: radial-gradient(700px 300px at 88% -20%, rgba(18,224,196,.35), transparent 60%), linear-gradient(135deg, #071a2b, #0c3350 55%, #0a5f77); }
.ai-hero-h { display: flex; align-items: center; gap: 10px; }
.ai-hero-h b { font-size: 15px; display: block; }
.ai-hero-h small { font-size: 11px; color: #9fc0d4; }
.ai-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #7ff0dc; }
.ai-live i { width: 6px; height: 6px; border-radius: 50%; background: #7ff0dc; box-shadow: 0 0 0 3px rgba(127,240,220,.18); }
.ai-points { margin: 12px 0 10px; }
.ai-points p { margin: 7px 0; font-size: 12.5px; color: #d6e8f3; line-height: 1.7; padding-left: 15px; position: relative; }
.ai-points p::before { content: ''; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: #7ff0dc; }
.ai-points b { color: #fff; }
.ai-hero-f { font-size: 11.5px; color: #9fc0d4; border-top: 1px solid rgba(255,255,255,.12); padding-top: 10px; }

.ai-act { display: flex; gap: 11px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.ai-act:last-child { border-bottom: 0; }
.ai-tag { flex: none; font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 5px; margin-top: 1px; }
.ai-act-tx { min-width: 0; flex: 1; }
.ai-act-tx b { font-size: 12.5px; display: block; }
.ai-act-tx p { margin: 3px 0 4px; font-size: 11.5px; color: var(--ink-2); line-height: 1.65; }
.ai-act-tx small { font-size: 11px; color: var(--ok); }
.ai-act .btn { flex: none; }

.ai-price { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.ai-price:last-child { border-bottom: 0; }
.ap-tx { min-width: 0; flex: 1; }
.ap-tx b { font-size: 12.5px; display: block; font-family: Consolas, monospace; }
.ap-tx small { font-size: 11px; color: var(--muted); display: block; margin-top: 2px; }
.ap-num { text-align: right; flex: none; }
.ap-num s { font-size: 11px; color: var(--muted); margin-right: 6px; }
.ap-num b { font-size: 14px; font-variant-numeric: tabular-nums; }
.ap-num b.up { color: #e8590c; }
.ap-num b.down { color: #0c8599; }
.ap-num small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.ai-chat { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fbfdff; }
.ai-log { height: 300px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.msg { display: flex; gap: 8px; align-items: flex-start; max-width: 86%; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .ava { width: 24px; height: 24px; border-radius: 7px; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 800;
  background: linear-gradient(135deg, #9fe9ff, #7ff0dc); color: #04303a; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; line-height: 1.7; color: #22323f; }
.msg.me .bubble { background: linear-gradient(135deg, #0aa8ff, #12c0c4); border: 0; color: #fff; }
.msg-links { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.msg-links .btn { height: 26px; padding: 0 9px; font-size: 11.5px; }
.ai-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 9px 12px 0; border-top: 1px solid #eef3f8; background: #fff; }
.ai-chip { border: 1px solid #dbe8f2; background: #f7fbfe; color: #0b6b95; font-size: 11.5px; border-radius: 20px; padding: 4px 10px; }
.ai-chip:hover { background: #eaf7ff; border-color: #b9ddf3; }
.ai-input { display: flex; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid #eef3f8; }
.ai-input input { flex: 1; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 11px; font-size: 12.5px; outline: none; }
.ai-input input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,168,255,.1); }

/* ============ 数据大屏 ============ */
.screen{box-sizing:border-box;overflow:hidden;background:radial-gradient(1200px 400px at 20% -10%, rgba(10,168,255,.22), transparent 60%),#06121c;color:#dff1ff;border-radius:16px;padding:18px 20px 24px;min-height:calc(100vh - 120px)}
.screen *{box-sizing:border-box}
.sc-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:14px}
.sc-title{font-size:21px;font-weight:800;letter-spacing:.5px}
.sc-title em{font-style:normal;color:#12e0c4}
.sc-sub{font-size:12px;color:#7fa6c0;margin-top:5px}
.sc-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.sc-time{font-size:12px;color:#8fb6cf;font-variant-numeric:tabular-nums}
.sc-btn{border:1px solid rgba(120,200,255,.28);background:rgba(10,168,255,.10);color:#cfe9ff;border-radius:8px;padding:7px 12px;font-size:12px;cursor:pointer}
.sc-btn:hover{background:rgba(10,168,255,.2)}
.sc-btn.on{border-color:#12e0c4;color:#12e0c4;background:rgba(18,224,196,.12)}
.sc-kpis{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.sc-kpi{background:linear-gradient(160deg,rgba(10,168,255,.13),rgba(18,224,196,.04));border:1px solid rgba(120,200,255,.18);border-radius:12px;padding:11px 13px}
.sc-kpi span{font-size:11.5px;color:#8fb6cf}
.sc-kpi b{display:block;font-size:21px;margin-top:5px;color:#fff;font-weight:800;font-variant-numeric:tabular-nums}
.sc-kpi i{font-style:normal;font-size:10.5px;color:#5f9fbe}
.sc-grid{display:grid;grid-template-columns:1.45fr 1fr;gap:10px;margin-top:10px}
.sc-grid3{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;margin-top:10px}
.sc-card{background:rgba(255,255,255,.035);border:1px solid rgba(120,200,255,.16);border-radius:12px;padding:12px 14px;min-width:0}
.sc-card h4{margin:0 0 10px;font-size:12.8px;color:#cfe9ff;font-weight:600;display:flex;justify-content:space-between;gap:8px}
.sc-card h4 small{color:#6f95ae;font-weight:400;font-size:11px}
.sc-chart{width:100%;height:auto;display:block}
.sc-bar{display:flex;align-items:center;gap:9px;margin:9px 0;font-size:12px;color:#bcd7e8}
.sc-bar span{width:96px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-bar i{flex:1;height:8px;border-radius:5px;background:rgba(255,255,255,.07);overflow:hidden;display:block}
.sc-bar i b{display:block;height:8px;border-radius:5px}
.sc-bar em{font-style:normal;width:66px;text-align:right;color:#e8f6ff;font-variant-numeric:tabular-nums}
.sc-donut{display:flex;align-items:center;gap:14px}
.sc-legend{flex:1;min-width:0}
.sc-legend div{display:flex;align-items:center;gap:7px;font-size:12px;color:#a8c8dd;margin:7px 0}
.sc-legend i{width:9px;height:9px;border-radius:3px;flex:none}
.sc-legend b{margin-left:auto;color:#fff}
.sc-heat{display:grid;grid-template-columns:40px repeat(12,1fr);gap:3px;font-size:9px;color:#5f86a0;align-items:center}
.sc-heat i{height:15px;border-radius:3px;background:rgba(255,255,255,.05);display:block}
.sc-live{overflow:hidden}
.sc-live div{display:flex;justify-content:space-between;gap:10px;font-size:11.8px;padding:7px 0;border-bottom:1px dashed rgba(120,200,255,.12);color:#bcd7e8}
.sc-live b{color:#fff;font-weight:600}
.sc-empty{color:#5f86a0;font-size:12px;padding:12px 0}
.sc-funnel{display:flex;flex-direction:column;gap:9px}
.sc-fn{display:flex;align-items:center;gap:9px;font-size:11.5px;color:#9dc0d6}
.sc-fn span{width:38px;flex:none}
.sc-fn i{height:20px;border-radius:4px;background:linear-gradient(90deg,#0aa8ff,#12e0c4);min-width:8px}
.sc-fn em{font-style:normal;color:#e8f6ff;font-variant-numeric:tabular-nums}
@media (max-width:1180px){.sc-kpis{grid-template-columns:repeat(3,1fr)}.sc-grid,.sc-grid3{grid-template-columns:1fr}}

.sc-seg{display:inline-flex;border:1px solid rgba(120,200,255,.24);border-radius:8px;overflow:hidden}
.sc-seg button{background:transparent;border:0;color:#9dc0d6;font-size:12px;padding:7px 11px;cursor:pointer}
.sc-seg button+button{border-left:1px solid rgba(120,200,255,.18)}
.sc-seg button.on{background:rgba(18,224,196,.16);color:#12e0c4;font-weight:700}

/* 大屏二级页 */
.sc-tbl{width:100%;border-collapse:collapse;font-size:12px;color:#bcd7e8}
.sc-tbl th{text-align:left;font-weight:500;color:#6f95ae;font-size:11px;padding:6px 8px;border-bottom:1px solid rgba(120,200,255,.16)}
.sc-tbl td{padding:9px 8px;border-bottom:1px dashed rgba(120,200,255,.10);vertical-align:middle}
.sc-tbl td b{color:#fff;font-weight:600}
.sc-tbl td small{color:#6f95ae;font-size:10.5px}
.sc-tbl td.num{font-variant-numeric:tabular-nums;white-space:nowrap}
.sc-rank{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:6px;font-style:normal;font-size:11px;font-weight:700;background:rgba(255,255,255,.08);color:#9dc0d6}
.sc-rank.r1{background:linear-gradient(135deg,#ffd43b,#ff922b);color:#3b2400}
.sc-rank.r2{background:linear-gradient(135deg,#e9ecef,#adb5bd);color:#2b2f33}
.sc-rank.r3{background:linear-gradient(135deg,#ffc078,#e8590c);color:#3b1c00}
.sc-stk{display:flex;align-items:center;gap:10px;margin:10px 0;font-size:12px;color:#bcd7e8}
.sc-stk>span{width:104px;flex:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sc-stk>i{flex:1;height:12px;border-radius:4px;overflow:hidden;display:flex;background:rgba(255,255,255,.05)}
.sc-stk>i b{height:12px;display:block}
.sc-stk>em{font-style:normal;width:76px;text-align:right;color:#e8f6ff;font-size:11.5px}
.sc-note{margin-top:12px;font-size:11px;color:#7fa6c0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sc-note i{width:9px;height:9px;border-radius:3px;display:inline-block;margin-left:10px}
.sc-todo{display:flex;justify-content:space-between;gap:10px;font-size:12.5px;padding:10px 0;border-bottom:1px dashed rgba(120,200,255,.12);color:#bcd7e8}
.sc-todo b{color:#fff;font-weight:600}
.sc-todo em{font-style:normal;color:#12e0c4;font-weight:700;margin-left:2px}
.sc-tip{font-size:11px;color:#5f86a0;margin:12px 0 0;line-height:1.7}

/* ---------- 数据接口徽标 ---------- */
.side-foot .api-chip { gap: 7px; font-size: 12px; color: #7f9bb0; }
.api-chip > i { width: 7px; height: 7px; border-radius: 50%; background: #8a9aab; flex: none; box-shadow: 0 0 0 3px rgba(138, 154, 171, .14); }
.api-chip.on { color: #12e0c4; }
.api-chip.on > i { background: #12e0c4; box-shadow: 0 0 0 3px rgba(18, 224, 196, .16); }
.api-info { font-size: 13px; }
.api-row { display: flex; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: flex-start; }
.api-row > span { width: 74px; flex: none; color: var(--muted); font-size: 12.5px; }
.api-row > div { flex: 1; color: #22364a; line-height: 1.6; word-break: break-all; }
.api-row code, .api-note code { background: #f1f5fa; border: 1px solid #e2ebf3; border-radius: 5px; padding: 1px 6px; font-size: 12px; color: #0b6ea8; }
.api-note { margin-top: 14px; padding: 12px 14px; background: #f7fbff; border: 1px solid #e4eef8; border-radius: 10px; font-size: 12.5px; color: #4a5b6b; line-height: 1.95; }
.api-note b { color: #0b1723; }
/* ---------- 大屏数据源标签 ---------- */
.sc-src { font-size: 11px; padding: 4px 9px; border-radius: 999px; color: #7fa6c0; background: rgba(120, 200, 255, .08); border: 1px solid rgba(120, 200, 255, .14); white-space: nowrap; }
.sc-src.on { color: #12e0c4; border-color: rgba(18, 224, 196, .32); background: rgba(18, 224, 196, .1); }
.pager .pg-gap{color:#9aabb9;padding:0 2px;font-size:12px}
