/* =========================================================================
   YMIT · 养马岛旅游数字化运营平台 演示站
   app.css — 设计变量 / 基础组件 / 后台外壳 / 落地页 / 抽屉弹层 / 图表
   配色遵循方案：深海蓝 #0B4F6C、青绿 #16A0A0、沙金 #E8B44F、米白 #F7F9FA
   ========================================================================= */

/* ------------------------------ 1. 变量与重置 ------------------------------ */
:root {
  --deep: #0B4F6C;
  --deep-2: #0A4358;
  --teal: #16A0A0;
  --teal-2: #12908F;
  --teal-soft: #E7F5F5;
  --gold: #E8B44F;
  --sand: #F7F9FA;
  --ink: #1C2B33;
  --muted: #6B7A85;
  --line: #E4EBEF;
  --line-soft: #EFF4F7;
  --side: #0E2A38;
  --good: #0F8A5F;
  --warn: #B7791F;
  --bad: #C0392B;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 79, 108, .05), 0 2px 8px rgba(11, 79, 108, .04);
  --shadow: 0 1px 2px rgba(11, 79, 108, .05), 0 10px 28px rgba(11, 79, 108, .07);
  --shadow-lg: 0 30px 70px rgba(8, 40, 55, .22);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
          "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
  background: #F2F6F8;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img, svg { display: block; }
table { border-spacing: 0; }

::selection { background: rgba(22, 160, 160, .22); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.no-scroll { overflow: hidden; }

/* 滚动条（桌面） */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #CBD8DF; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #AFC2CC; background-clip: content-box; border: 3px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ------------------------------ 2. 基础工具类 ------------------------------ */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.tiny { font-size: 12px; }
.strong { font-weight: 600; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-10 { gap: 10px; }
.gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; } .mb-16 { margin-bottom: 16px; }
.hide { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-3-1 { grid-template-columns: minmax(0, 2.15fr) minmax(0, 1fr); }
.g-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); }

.ico { flex: none; }

/* ------------------------------ 3. 按钮 ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s, border-color .16s, box-shadow .16s, transform .08s;
}
.btn:hover { background: #F7FAFB; border-color: #D6E1E7; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, #17A6A6, #128C8C);
  border-color: #0F8483;
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px rgba(22, 160, 160, .22);
}
.btn-primary:hover { background: linear-gradient(180deg, #18B0B0, #139292); border-color: #0E7E7D; }
.btn-deep {
  background: linear-gradient(180deg, #0E5B7C, #0B4F6C);
  border-color: #0A4358;
  color: #fff;
  box-shadow: 0 6px 16px rgba(11, 79, 108, .2);
}
.btn-deep:hover { background: linear-gradient(180deg, #106687, #0C5574); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--deep); }
.btn-ghost:hover { background: rgba(11, 79, 108, .06); }
.btn-danger { color: var(--bad); border-color: #F1D3CE; background: #FFF7F6; }
.btn-danger:hover { background: #FDECEA; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 15px; border-radius: 11px; }
.btn-block { width: 100%; }
.btn-link {
  border: 0; background: none; color: var(--teal-2); font-size: 13px;
  padding: 2px 4px; cursor: pointer; border-radius: 5px;
}
.btn-link:hover { background: var(--teal-soft); }

.icon-btn {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; border-radius: 8px;
  color: var(--muted); cursor: pointer; transition: .16s;
}
.icon-btn:hover { color: var(--ink); border-color: #D6E1E7; background: #F7FAFB; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.plain:hover { background: #F0F5F7; }

/* ------------------------------ 4. 表单 ------------------------------ */
.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font-size: 13.5px;
  color: var(--ink);
  font-family: inherit;
  transition: border-color .16s, box-shadow .16s;
}
.textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.input:hover, .select:hover, .textarea:hover { border-color: #D6E1E7; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(22, 160, 160, .13);
}
.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #6B7A85 50%),
                    linear-gradient(135deg, #6B7A85 50%, transparent 50%);
  background-position: right 15px center, right 10px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.input-group { display: flex; align-items: center; gap: 8px; }

.search-box { position: relative; }
.search-box .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #93A3AD; }
.search-box .input { padding-left: 34px; }

.switch {
  position: relative; width: 38px; height: 22px; border-radius: 99px;
  background: #CBD8DF; border: 0; cursor: pointer; transition: background .18s; flex: none;
}
.switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  background: #fff; border-radius: 50%; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(16px); }

/* 分段 / 标签筛选 */
.seg {
  display: inline-flex; padding: 3px; background: #EEF3F6; border-radius: 9px; gap: 2px;
}
.seg button {
  height: 28px; padding: 0 12px; border: 0; background: transparent; border-radius: 7px;
  font-size: 12.5px; color: var(--muted); cursor: pointer; font-weight: 550; transition: .16s;
}
.seg button.on { background: #fff; color: var(--deep); box-shadow: 0 1px 3px rgba(11,79,108,.12); }
.seg button:hover:not(.on) { color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  height: 28px; padding: 0 11px; border: 1px solid var(--line);
  background: #fff; border-radius: 99px; font-size: 12.5px; color: #4C5E69;
  cursor: pointer; transition: .16s; white-space: nowrap;
}
.chip:hover { border-color: #C9D8E0; color: var(--ink); }
.chip.on { border-color: var(--teal); background: var(--teal-soft); color: #0E7C7C; font-weight: 550; }
.chip .ico { color: #8FA0AA; }
.chip.on .ico { color: var(--teal-2); }

/* 状态胶囊 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 22px; padding: 0 9px; border-radius: 99px;
  font-size: 12px; font-weight: 550; white-space: nowrap; line-height: 1;
}
.pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .8; }
.pill-green { color: #0F7A56; background: #E6F5EE; }
.pill-amber { color: #9A6A12; background: #FDF3E0; }
.pill-red { color: #B3352A; background: #FCEAE7; }
.pill-blue { color: #1F6E93; background: #E8F2F8; }
.pill-gray { color: #64757F; background: #EEF3F6; }
.pill-teal { color: #0E7C7C; background: #E4F4F4; }
.pill-gold { color: #8A6114; background: #FBF1DC; }

/* 徽标 / 角标 */
.tag {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px;
  border-radius: 5px; font-size: 12px; background: #F0F5F7; color: #556873; white-space: nowrap;
}
.tag.teal { background: var(--teal-soft); color: #0E7C7C; }
.tag.gold { background: #FBF1DC; color: #8A6114; }
.tag.deep { background: rgba(11, 79, 108, .08); color: var(--deep); }

.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.dot.teal { background: var(--teal); }
.dot.gold { background: var(--gold); }
.dot.deep { background: var(--deep); }
.dot.red { background: #D05548; }
.dot.gray { background: #A9B8C1; }

/* ------------------------------ 5. 后台外壳 ------------------------------ */
.app-shell { display: flex; min-height: 100vh; background: #F2F6F8; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 236px; z-index: 30;
  background: linear-gradient(180deg, #103342 0%, var(--side) 42%, #0A2029 100%);
  display: flex; flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.side-brand {
  height: 68px; display: flex; align-items: center; gap: 10px;
  padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, .07); flex: none;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #EAF7F7;
  background: linear-gradient(145deg, rgba(22, 160, 160, .95), rgba(11, 79, 108, .95));
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.brand-txt { min-width: 0; }
.brand-txt strong { display: block; font-size: 14px; letter-spacing: .06em; color: #fff; font-weight: 650; }
.brand-txt span { display: block; font-size: 12px; color: rgba(255, 255, 255, .42); letter-spacing: .04em; }

.side-scroll { flex: 1; overflow-y: auto; padding: 14px 0 8px; }
.side-group { padding: 0 0 6px; }
.side-label {
  padding: 12px 20px 6px; font-size: 12px; letter-spacing: .12em;
  color: rgba(255, 255, 255, .34); font-weight: 600;
}
.side-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 38px; margin: 2px 10px; padding: 0 10px; border-radius: 8px;
  color: rgba(255, 255, 255, .68); font-size: 13px; cursor: pointer;
  transition: background .16s, color .16s;
}
.side-item .ico { color: rgba(255, 255, 255, .46); transition: color .16s; }
.side-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-item:hover .ico { color: rgba(255, 255, 255, .8); }
.side-item.active {
  background: linear-gradient(90deg, rgba(22, 160, 160, .26), rgba(22, 160, 160, .05));
  color: #fff; font-weight: 550;
}
.side-item.active .ico { color: #7FD1CF; }
.side-item.active::before {
  content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--teal);
}
.side-item .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: #D05548; color: #fff; font-size: 12px; display: grid; place-items: center;
  font-family: var(--mono);
}
.side-item .badge.gold { background: rgba(232, 180, 79, .9); color: #3A2A05; }

.side-foot {
  padding: 12px; border-top: 1px solid rgba(255, 255, 255, .07); flex: none;
}
.side-user {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px;
  background: rgba(255, 255, 255, .05);
}
.avatar {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #2E6F86, #1B4E62); color: #fff; font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em;
}
.avatar.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.side-user .who { min-width: 0; }
.side-user .who b { display: block; font-size: 12.5px; color: #fff; font-weight: 600; }
.side-user .who span { display: block; font-size: 12px; color: rgba(255, 255, 255, .45); }
.side-foot .side-links { display: flex; gap: 14px; padding: 10px 6px 2px; }
.side-foot .side-links a { font-size: 12px; color: rgba(255, 255, 255, .4); }
.side-foot .side-links a:hover { color: #7FD1CF; }

.main { margin-left: 236px; min-width: 0; flex: 1; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20; height: 64px; flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 28px;
  background: rgba(247, 249, 250, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.crumb { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
.crumb b { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.crumb .sep { color: #B9C7CE; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.top-date {
  font-size: 12px; color: var(--muted); padding-right: 10px; border-right: 1px solid var(--line);
  font-family: var(--mono);
}
.top-bell { position: relative; }
.top-bell::after {
  content: ''; position: absolute; top: 6px; right: 7px; width: 6px; height: 6px;
  border-radius: 50%; background: #D05548; border: 1.5px solid #F7F9FA;
}
.top-user { display: flex; align-items: center; gap: 8px; padding-left: 6px; }
.top-user .who { line-height: 1.25; }
.top-user .who b { display: block; font-size: 12.5px; font-weight: 600; }
.top-user .who span { display: block; font-size: 12px; color: var(--muted); }

.content { padding: 22px 28px 48px; max-width: 1560px; width: 100%; }

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.page-head h1 { font-size: 21px; font-weight: 650; letter-spacing: -.015em; display: flex; align-items: center; gap: 10px; }
.page-head p { margin-top: 5px; font-size: 13px; color: var(--muted); max-width: 760px; }
.page-head .actions { display: flex; gap: 8px; flex: none; }

/* ------------------------------ 6. 卡片 / KPI ------------------------------ */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--line-soft);
}
.card-hd h3 { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.card-hd h3 .ico { color: var(--teal); }
.card-hd .hd-sub { font-size: 12px; color: var(--muted); }
.card-bd { padding: 18px; }
.card-bd.tight { padding: 0; }
.card-bd.pad-14 { padding: 14px; }
.card-ft { padding: 12px 18px; border-top: 1px solid var(--line-soft); }

.kpi {
  position: relative; padding: 16px 18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; min-width: 0;
}
.kpi-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.kpi-label .ico { color: #93A6B1; }
.kpi-val {
  margin-top: 8px; font-family: var(--mono); font-variant-numeric: tabular-nums;
  font-size: 26px; font-weight: 620; letter-spacing: -.02em; line-height: 1.15;
}
.kpi-val .unit { font-family: var(--font); font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.kpi-sub { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.kpi-accent { position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--teal), rgba(22, 160, 160, 0)); }
.kpi-accent.gold { background: linear-gradient(90deg, var(--gold), rgba(232, 180, 79, 0)); }
.kpi-accent.deep { background: linear-gradient(90deg, var(--deep), rgba(11, 79, 108, 0)); }
.kpi-accent.red { background: linear-gradient(90deg, #D05548, rgba(208, 85, 72, 0)); }

.delta {
  display: inline-flex; align-items: center; gap: 3px; height: 19px; padding: 0 6px;
  border-radius: 5px; font-size: 12px; font-weight: 600; font-family: var(--mono);
}
.delta.up { color: #0F7A56; background: #E6F5EE; }
.delta.down { color: #B3352A; background: #FCEAE7; }
.delta.flat { color: #64757F; background: #EEF3F6; }

/* 三卡（资金账户） */
.money-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.money-card {
  position: relative; padding: 20px; border-radius: var(--radius); color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0E5B7C, #0A4157); box-shadow: 0 12px 26px rgba(10, 60, 80, .18);
}
.money-card.teal { background: linear-gradient(135deg, #17A2A2, #0E7C7C); box-shadow: 0 12px 26px rgba(14, 124, 124, .2); }
.money-card.gold { background: linear-gradient(135deg, #D9A43C, #B9821F); box-shadow: 0 12px 26px rgba(185, 130, 31, .2); }
.money-card::after {
  content: ''; position: absolute; right: -40px; top: -50px; width: 180px; height: 180px;
  border-radius: 50%; background: rgba(255, 255, 255, .08);
}
.money-card .mc-label { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .78); }
.money-card .mc-val { margin-top: 10px; font-family: var(--mono); font-size: 27px; font-weight: 620; letter-spacing: -.02em; }
.money-card .mc-sub { margin-top: 8px; font-size: 12px; color: rgba(255, 255, 255, .68); display: flex; justify-content: space-between; gap: 10px; }
.money-card .mc-sub b { color: #fff; font-weight: 600; font-family: var(--mono); }

/* ------------------------------ 7. 表格 ------------------------------ */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th {
  padding: 10px 14px; text-align: left; font-weight: 600; font-size: 12px;
  color: #556873; background: #F4F8FA; border-bottom: 1px solid var(--line);
  white-space: nowrap; letter-spacing: .01em;
}
.table th:first-child { padding-left: 18px; }
.table th:last-child { padding-right: 18px; }
.table td {
  padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle;
  color: #2C3D46;
}
.table td:first-child { padding-left: 18px; }
.table td:last-child { padding-right: 18px; }
/* 金额、单号一律单行，负号不能与数字拆行 */
.table .mono, .table td.mono, .table td.nowrap { white-space: nowrap; }
.table tbody tr:nth-child(even) { background: #FBFCFD; }
.table tbody tr:hover { background: #F1F9F9; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.table .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.table tr.row-click { cursor: pointer; }
.table tr.row-done td { color: #8B9AA3; }
.table tr.row-done .mono { color: #8B9AA3; }

.toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 18px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.toolbar .left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar .right { display: flex; align-items: center; gap: 8px; }

.empty {
  padding: 44px 20px; text-align: center; color: var(--muted); font-size: 13px;
}
.empty .ico { margin: 0 auto 10px; color: #C2D0D7; }

/* 头像 + 名称单元 */
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cell-main .who b { display: block; font-weight: 600; font-size: 13px; color: var(--ink); }
.cell-main .who span { display: block; font-size: 12px; color: var(--muted); }

/* 进度条 */
.bar { height: 6px; background: #EDF2F5; border-radius: 99px; overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #19A8A8, #128A8A); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.bar.gold > i { background: linear-gradient(90deg, #EDBE62, #D9A43C); }
.bar.red > i { background: linear-gradient(90deg, #E07A6E, #C4544A); }
.bar.gray > i { background: #B7C5CC; }
.bar-lg { height: 8px; }

.progress-row { display: flex; align-items: center; gap: 10px; }
.progress-row .bar { flex: 1; }
.progress-row .num { width: 40px; text-align: right; font-size: 12px; color: #4C5E69; }

/* 排行 */
.rank-list { display: flex; flex-direction: column; }
.rank-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.rank-item:last-child { border-bottom: 0; }
.rank-no {
  width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center;
  font-family: var(--mono); font-size: 12px; color: #64757F; background: #F0F5F7; flex: none;
}
.rank-no.top { background: var(--deep); color: #fff; }
.rank-no.top2 { background: rgba(22, 160, 160, .18); color: #0E7C7C; }

/* 时间轴 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1.5px; background: #E1EBEF; }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -19px; top: 5px; width: 9px; height: 9px; border-radius: 50%;
  background: #fff; border: 2px solid #C9D8DF;
}
.tl-item.done::before { border-color: var(--teal); background: var(--teal); }
.tl-item.now::before { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 0 3px rgba(232, 180, 79, .2); }
.tl-item .tl-t { font-size: 12.5px; font-weight: 600; }
.tl-item .tl-d { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* 统计小块 */
.mini-stat { padding: 12px 14px; border-radius: 10px; background: #F7FAFB; border: 1px solid var(--line-soft); }
.mini-stat .k { font-size: 12px; color: var(--muted); }
.mini-stat .v { font-family: var(--mono); font-size: 18px; font-weight: 620; margin-top: 4px; }

/* ------------------------------ 8. 抽屉 / 弹窗 / Toast ------------------------------ */
.layer-mask {
  position: fixed; inset: 0; background: rgba(10, 32, 41, .38); z-index: 60;
  opacity: 0; transition: opacity .24s; backdrop-filter: blur(1.5px);
}
.layer-mask.open { opacity: 1; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 480px; max-width: 94vw; z-index: 61;
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  box-shadow: -20px 0 60px rgba(8, 40, 55, .18);
}
.drawer.open { transform: none; }
.drawer-hd {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding: 20px 22px 16px; border-bottom: 1px solid var(--line-soft); flex: none;
}
.drawer-hd h2 { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.drawer-hd p { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.drawer-bd { flex: 1; overflow-y: auto; padding: 20px 22px; }
.drawer-ft {
  padding: 14px 22px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end;
  flex: none; background: #FBFCFD;
}

.modal {
  position: fixed; z-index: 61; top: 50%; left: 50%; width: 560px; max-width: 94vw;
  transform: translate(-50%, -46%); opacity: 0; transition: opacity .2s, transform .22s;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg);
  max-height: 88vh; display: flex; flex-direction: column;
}
.modal.open { opacity: 1; transform: translate(-50%, -50%); }
.modal-hd { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-soft); }
.modal-hd h2 { font-size: 16px; font-weight: 650; }
.modal-bd { padding: 20px; overflow-y: auto; }
.modal-ft { padding: 14px 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; justify-content: flex-end; background: #FBFCFD; border-radius: 0 0 14px 14px; }

.toasts {
  position: fixed; top: 22px; left: 50%; transform: translateX(-50%); z-index: 90;
  display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none;
}
.toast {
  display: flex; align-items: center; gap: 9px; padding: 10px 16px 10px 12px;
  background: rgba(18, 38, 47, .94); color: #fff; border-radius: 10px;
  font-size: 13px; box-shadow: 0 12px 30px rgba(8, 30, 40, .28);
  opacity: 0; transform: translateY(-10px); transition: opacity .22s, transform .22s;
  backdrop-filter: blur(8px); max-width: 92vw;
}
.toast.in { opacity: 1; transform: none; }
.toast-ico { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(22, 160, 160, .22); color: #6FE0DE; flex: none; }
.toast-error .toast-ico { background: rgba(208, 85, 72, .22); color: #FF9C90; }
.toast-info .toast-ico { background: rgba(232, 180, 79, .2); color: #F3C877; }

/* ------------------------------ 9. 图表与图例 ------------------------------ */
.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4C5E69; }
.legend-item i { width: 9px; height: 9px; border-radius: 3px; display: block; }
.legend-item b { font-family: var(--mono); font-weight: 600; }

.chart-legend-list { display: flex; flex-direction: column; gap: 10px; }
.cl-row { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.cl-row .name { width: 74px; color: #4C5E69; flex: none; }
.cl-row .bar { flex: 1; height: 7px; }
.cl-row .val { width: 38px; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--ink); }

.heat { display: grid; grid-template-columns: repeat(8, 1fr); gap: 5px; }
.heat i { aspect-ratio: 1; border-radius: 4px; background: var(--teal); display: block; }

/* 比例条（分账试算） */
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: #EDF2F5; }
.split-bar i { display: block; height: 100%; transition: width .55s cubic-bezier(.2,.8,.2,1); }
.split-bar .s-merchant { background: linear-gradient(90deg, #19A8A8, #128A8A); }
.split-bar .s-platform { background: linear-gradient(90deg, #E8B44F, #D9A43C); }
.split-bar .s-channel { background: #A9BCC6; }

.split-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.split-row:last-child { border-bottom: 0; }
.split-row .l { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.split-row .l i { width: 8px; height: 8px; border-radius: 3px; }
.split-row .v { font-family: var(--mono); font-size: 15px; font-weight: 600; }
.split-row .p { font-family: var(--mono); font-size: 12px; color: var(--muted); width: 56px; text-align: right; }

/* 试算器 */
.calc-box { background: linear-gradient(160deg, #F8FBFC, #EFF6F7); border: 1px solid #E1EDF0; border-radius: 12px; padding: 16px; }
.calc-out { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-bottom: 10px; }
.calc-out .big { font-family: var(--mono); font-size: 30px; font-weight: 650; letter-spacing: -.02em; color: var(--deep); }
.calc-rows { display: flex; flex-direction: column; gap: 2px; }

/* ------------------------------ 10. 落地页 ------------------------------ */
.landing { background: #F7F9FA; min-height: 100vh; }

.lp-nav {
  position: sticky; top: 0; z-index: 30; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 clamp(20px, 5vw, 64px);
  background: rgba(8, 38, 50, .72); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff;
}
.lp-nav .brand { display: flex; align-items: center; gap: 11px; }
.lp-nav .brand .brand-mark { width: 36px; height: 36px; }
.lp-nav .brand-txt b { display: block; font-size: 15px; letter-spacing: .08em; font-weight: 650; }
.lp-nav .brand-txt span { display: block; font-size: 12px; color: rgba(255, 255, 255, .5); letter-spacing: .06em; }
.lp-links { display: flex; align-items: center; gap: 26px; font-size: 13px; color: rgba(255, 255, 255, .72); }
.lp-links a:hover { color: #fff; }
.lp-nav .right { display: flex; align-items: center; gap: 14px; }
.lp-ver {
  font-size: 12px; color: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .18);
  padding: 4px 10px; border-radius: 99px; font-family: var(--mono);
}

.lp-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1100px 520px at 78% 6%, rgba(22, 160, 160, .28), transparent 62%),
    radial-gradient(800px 420px at 8% 92%, rgba(232, 180, 79, .14), transparent 60%),
    linear-gradient(158deg, #0B3F55 0%, #0A2E3D 46%, #071F2A 100%);
}
.lp-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(680px 420px at 60% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(680px 420px at 60% 40%, #000 30%, transparent 78%);
}
.lp-hero-in {
  position: relative; z-index: 1; max-width: 1240px; margin: 0 auto;
  padding: 74px clamp(20px, 5vw, 64px) 92px;
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .1em;
  color: #7FD1CF; text-transform: none;
}
.eyebrow::before { content: ''; width: 26px; height: 1px; background: rgba(127, 209, 207, .7); }
.lp-title {
  margin-top: 18px; font-size: clamp(38px, 4.4vw, 58px); line-height: 1.14; font-weight: 700;
  letter-spacing: .01em;
}
.lp-title em { font-style: normal; color: var(--gold); }
.lp-sub {
  margin-top: 20px; font-size: 15.5px; line-height: 1.85; color: rgba(255, 255, 255, .72); max-width: 520px;
}
.lp-sub b { color: #fff; font-weight: 600; }
.lp-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  border-radius: 11px; border: 1px solid rgba(255, 255, 255, .22); color: #fff;
  background: rgba(255, 255, 255, .06); font-size: 14.5px; cursor: pointer; transition: .18s;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .34); }
.lp-hero-stats {
  margin-top: 44px; display: grid; grid-template-columns: repeat(4, auto); gap: 34px;
  padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .1);
}
.lp-hero-stats .s b { display: block; font-family: var(--mono); font-size: 22px; font-weight: 620; color: #fff; letter-spacing: -.02em; }
.lp-hero-stats .s span { display: block; margin-top: 3px; font-size: 12px; color: rgba(255, 255, 255, .5); }

.lp-art { position: relative; }
.lp-art-card {
  position: relative; border-radius: 20px; overflow: hidden;
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.lp-art-card svg { width: 100%; height: auto; display: block; }
.lp-chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 10px; font-size: 12px; color: #EAF7F7;
  background: rgba(8, 34, 45, .82); border: 1px solid rgba(127, 209, 207, .28);
  backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(0, 0, 0, .3);
  animation: floaty 6s ease-in-out infinite;
}
.lp-chip b { font-family: var(--mono); color: #7FD1CF; font-weight: 600; }
.lp-chip.c1 { top: 8%; left: -6%; }
.lp-chip.c2 { bottom: 16%; right: -5%; animation-delay: -2.6s; }
.lp-chip.c3 { bottom: 40%; left: -10%; animation-delay: -4.2s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.lp-section { max-width: 1240px; margin: 0 auto; padding: 70px clamp(20px, 5vw, 64px) 0; }
.section-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-hd h2 { font-size: 25px; font-weight: 650; letter-spacing: -.015em; }
.section-hd h2 span { color: var(--teal); }
.section-hd p { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
.section-hd .hint { font-size: 12px; color: var(--muted); }

.entry-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.entry-card {
  position: relative; display: block; padding: 20px 20px 18px; border-radius: 14px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden;
}
.entry-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #CFE0E6; }
.entry-card .ec-ico {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--teal-soft); color: #0E7C7C; margin-bottom: 14px;
}
.entry-card.deep .ec-ico { background: rgba(11, 79, 108, .09); color: var(--deep); }
.entry-card.gold .ec-ico { background: #FBF1DC; color: #A0740F; }
.entry-card.screen .ec-ico { background: #E9F0F5; color: #24506B; }
.entry-card h3 { font-size: 15.5px; font-weight: 650; }
.entry-card p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.65; min-height: 42px; }
.entry-card .ec-foot { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--teal-2); font-weight: 550; }
.entry-card .ec-num { font-family: var(--mono); color: #B9C7CE; }

.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pillar {
  padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); position: relative;
}
.pillar .p-no {
  font-family: var(--mono); font-size: 12px; color: #B9C7CE; letter-spacing: .08em;
}
.pillar h3 { margin-top: 8px; font-size: 15px; font-weight: 650; }
.pillar p { margin-top: 8px; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.pillar::after {
  content: ''; position: absolute; left: 20px; right: 20px; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent); opacity: .8;
}

.lp-band {
  margin-top: 70px; background: linear-gradient(120deg, #0C4A63, #0A3243);
  color: #fff; padding: 44px clamp(20px, 5vw, 64px);
}
.lp-band-in { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; align-items: center; }
.lp-band h3 { font-size: 18px; font-weight: 650; }
.lp-band p { margin-top: 6px; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.lp-band .b-item b { display: block; font-family: var(--mono); font-size: 24px; color: #7FD1CF; letter-spacing: -.02em; }
.lp-band .b-item span { display: block; margin-top: 2px; font-size: 12px; color: rgba(255, 255, 255, .55); }

.lp-foot {
  padding: 26px clamp(20px, 5vw, 64px) 40px; max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-size: 12px; color: #8B9AA3;
}
.lp-foot .links { display: flex; gap: 18px; }
.lp-foot a:hover { color: var(--deep); }

/* ------------------------------ 11. 路由调试页 ------------------------------ */
.routes-page { max-width: 1100px; margin: 0 auto; padding: 40px 24px 80px; }
.routes-page h1 { font-size: 24px; font-weight: 650; }
.routes-group { margin-top: 26px; }
.routes-group h2 { font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: .04em; margin-bottom: 10px; }
.routes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.route-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; transition: .16s;
}
.route-link:hover { border-color: var(--teal); background: var(--teal-soft); }
.route-link code { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.route-link .rl-no { font-family: var(--mono); font-size: 12px; color: #B9C7CE; flex: none; }
.route-link .rl-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.route-link .rl-t code { font-size: 12px; }
.route-link .rl-st { flex: none; display: flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.route-link .rl-st.ok { color: var(--good); font-weight: 550; }
.route-link.todo { opacity: .62; }

.routes-sum { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 20px; }
.routes-sum .rs-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  font-size: 12.5px; color: var(--muted);
}
.routes-sum .rs-item b { font-family: var(--mono); font-size: 13px; color: var(--deep); }

/* ------------------------------ 12. 登录态小件 ------------------------------ */
.notice {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  background: #F1F8F9; border: 1px solid #D9EBEC; border-radius: 10px;
  font-size: 12.5px; color: #3F5A64; line-height: 1.6;
}
.notice .ico { color: var(--teal); margin-top: 1px; }
.notice.warn { background: #FDF7EA; border-color: #F1E3C4; color: #7A5A14; }
.notice.warn .ico { color: #C08A1E; }

.divider { height: 1px; background: var(--line-soft); margin: 16px 0; }
.divider-dash { height: 0; border-top: 1px dashed var(--line); margin: 16px 0; }

.kv { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 550; text-align: right; }
.kv .v.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 响应式 */
@media (max-width: 1440px) {
  .content { padding: 20px 22px 40px; }
  .g5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1240px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .entry-grid, .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-hero-in { grid-template-columns: 1fr; gap: 40px; }
  .lp-art { max-width: 560px; }
  .lp-band-in { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .g3, .g-3-1, .g-1-2 { grid-template-columns: 1fr; }
  .money-cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .g4, .g5, .g2 { grid-template-columns: 1fr; }
  .lp-links { display: none; }
  .lp-hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .section-hd { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------ 13. AI 智能识别（平台运营端） ------------------------------ */
/* 只在 ops/ai-risk 与 ops/ai-vehicle 两个视图内使用，类名统一 ai- 前缀 */
.ai-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #0E7C7C; white-space: nowrap; }
.ai-live i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none;
  box-shadow: 0 0 0 3px rgba(22, 160, 160, .14); animation: ai-pulse 2.4s ease-in-out infinite;
}
@keyframes ai-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22, 160, 160, .14); }
  50% { box-shadow: 0 0 0 6px rgba(22, 160, 160, .04); }
}

.ai-sep { color: #C3D1D8; margin: 0 7px; font-weight: 400; }
.ai-oid { font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.ai-u { font-family: var(--font); font-size: 12px; color: var(--muted); margin-left: 2px; font-weight: 500; }

/* AI 研判 / 车牌轨迹 卡片顶部的一道渐变描边 */
.ai-glow { position: relative; overflow: hidden; }
.ai-glow::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), rgba(22, 160, 160, .12) 58%, var(--gold));
}

/* 表格里的彩色评分条 */
.ai-score-cell { display: flex; align-items: center; gap: 9px; min-width: 116px; }
.ai-score-track { position: relative; flex: 1; height: 7px; border-radius: 99px; background: #EDF2F5; overflow: hidden; }
.ai-score-track > i { display: block; height: 100%; border-radius: 99px; transition: width .45s cubic-bezier(.2, .8, .2, 1); }
.ai-score-track > em { position: absolute; top: 0; bottom: 0; width: 1.5px; background: rgba(255, 255, 255, .9); }
.ai-score-n { font-family: var(--mono); font-size: 12.5px; font-weight: 650; width: 22px; text-align: right; flex: none; }
.ai-score-cell.red .ai-score-track > i { background: linear-gradient(90deg, #E8A196, #C4544A); }
.ai-score-cell.red .ai-score-n { color: #B3352A; }
.ai-score-cell.gold .ai-score-track > i { background: linear-gradient(90deg, #EDBE62, #D9A43C); }
.ai-score-cell.gold .ai-score-n { color: #A0740F; }
.ai-score-cell.teal .ai-score-track > i { background: linear-gradient(90deg, #5FC3C1, #16A0A0); }
.ai-score-cell.teal .ai-score-n { color: #0E7C7C; }

/* 命中特征标签 */
.ai-feats { display: flex; flex-wrap: wrap; gap: 5px; }
.ai-feat {
  display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px;
  border-radius: 5px; font-size: 12px; background: #F2F6F8; color: #4C5E69; white-space: nowrap;
}
.ai-feat::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #D9A43C; }

/* 选中行 */
.table tbody tr.ai-sel { background: #EFF8F8; box-shadow: inset 3px 0 0 var(--teal); }
.table tbody tr.ai-sel:hover { background: #E9F6F6; }
.table tbody tr.ai-sel td { color: #1F3540; }

.ai-ops { display: flex; justify-content: flex-end; gap: 5px; flex-wrap: nowrap; }

/* AI 研判面板：评分 / 结论 / 关联订单三栏 */
.ai-detail { display: grid; grid-template-columns: 196px minmax(0, 1.4fr) minmax(0, .95fr); gap: 22px; align-items: start; }

.ai-scorebox {
  padding: 16px; border-radius: 12px; border: 1px solid #E3EEF1;
  background: linear-gradient(165deg, #F7FBFC, #EEF5F7);
}
.ai-score-lbl { font-size: 12px; color: var(--muted); }
.ai-score-val {
  margin-top: 6px; font-family: var(--mono); font-size: 40px; line-height: 1;
  font-weight: 650; letter-spacing: -.03em; color: var(--ink);
}
.ai-score-val span { font-family: var(--font); font-size: 12px; font-weight: 500; color: #93A3AD; margin-left: 2px; letter-spacing: 0; }
.ai-scorebox.red .ai-score-val { color: #B3352A; }
.ai-scorebox.gold .ai-score-val { color: #A0740F; }
.ai-scorebox.teal .ai-score-val { color: #0E7C7C; }
.ai-score-lvl { margin-top: 8px; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; }
.ai-meter { position: relative; height: 8px; margin-top: 12px; border-radius: 99px; background: #E4EDF0; overflow: hidden; }
.ai-meter > i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #E8A196, #C4544A); }
.ai-scorebox.gold .ai-meter > i { background: linear-gradient(90deg, #EDBE62, #D9A43C); }
.ai-scorebox.teal .ai-meter > i { background: linear-gradient(90deg, #5FC3C1, #16A0A0); }
.ai-meter > em { position: absolute; top: 0; bottom: 0; width: 1.5px; background: rgba(255, 255, 255, .92); }
.ai-score-note { margin-top: 7px; font-size: 11.5px; color: #8A99A3; line-height: 1.5; }

.ai-verdict {
  padding: 14px 16px; border-radius: 12px;
  border: 1px solid #D9EBEC; background: linear-gradient(120deg, #F1FAFA, #F8FCFC 72%);
}
.ai-verdict-lbl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #0E7C7C; }
.ai-verdict p { margin-top: 7px; font-size: 14.5px; line-height: 1.65; font-weight: 550; color: #1F3540; }
.ai-verdict .ai-feats { margin-top: 10px; }

.ai-block-hd { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; font-size: 12.5px; font-weight: 600; color: #2C3D46; }
.ai-block-hd span { font-size: 12px; color: var(--muted); font-weight: 400; }

.ai-ev li {
  display: flex; gap: 10px; padding: 8px 0; font-size: 12.5px; color: #3F535E; line-height: 1.6;
  border-bottom: 1px dashed var(--line-soft);
}
.ai-ev li:last-child { border-bottom: 0; }
.ai-ev li > i {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px; font-style: normal;
  background: var(--teal-soft); color: #0E7C7C; font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  display: grid; place-items: center;
}

.ai-block { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.ai-block + .ai-block { margin-top: 12px; }
.ai-block .ai-block-hd:first-child { margin-top: 0; }

.ai-rel-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12px;
  border-bottom: 1px dashed var(--line-soft);
}
.ai-rel-row:last-child { border-bottom: 0; }
.ai-rel-o { flex: 1; min-width: 0; color: #556873; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-rel-tag { flex: none; font-size: 11.5px; color: #8A6114; background: #FBF1DC; padding: 1px 6px; border-radius: 4px; }
.ai-rel-row b { flex: none; font-size: 12.5px; }
.ai-rel-row.is-this { padding: 7px 8px; margin-bottom: 2px; border-bottom: 0; border-radius: 8px; background: #F4FAFA; }
.ai-rel-row.is-this .ai-rel-tag { color: #0E7C7C; background: var(--teal-soft); }

.ai-advice p { margin-top: 6px; font-size: 12.5px; color: #3F535E; line-height: 1.65; }
.ai-advice-note { display: flex; gap: 6px; align-items: flex-start; margin-top: 10px; font-size: 11.5px; color: #8A99A3; line-height: 1.5; }
.ai-advice-note .ico { margin-top: 1px; color: #93A6B1; }

/* AI 今日研判摘要 */
.ai-sum-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
.ai-sum li {
  position: relative; padding: 9px 0 9px 26px; margin: 0 -2px;
  font-size: 13px; color: #2C3D46; line-height: 1.65; border-bottom: 1px dashed var(--line-soft);
}
.ai-sum li:last-child { border-bottom: 0; }
.ai-sum li::before {
  content: ''; position: absolute; left: 6px; top: 17px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 0 3px rgba(22, 160, 160, .12);
}
.ai-sum-side { padding-left: 24px; border-left: 1px solid var(--line-soft); }
.ai-sum-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }

/* 车牌 */
.ai-plate {
  display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 6px;
  background: linear-gradient(180deg, #1D63B8, #123F79); color: #fff; font-family: var(--mono);
  font-size: 13.5px; font-weight: 600; letter-spacing: .05em; white-space: nowrap;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), 0 1px 3px rgba(10, 40, 60, .18);
}
.card-hd h3 .ai-plate { margin-left: 2px; }

/* 异常类型 */
.ai-vtype {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-size: 12px; font-weight: 550; white-space: nowrap;
}
.ai-vtype::before { content: ''; width: 5px; height: 5px; border-radius: 2px; background: currentColor; opacity: .75; }
.ai-vtype.ai-rep { color: #8A6114; background: #FBF1DC; font-weight: 650; box-shadow: inset 0 0 0 1px #F0DFB8; }
.ai-vtype.ai-oft { color: #0E7C7C; background: var(--teal-soft); }
.ai-vtype.ai-cut { color: #B3352A; background: #FCEAE7; }
.ai-vtype.ai-fake { color: #9A4A2A; background: #FBEDE4; }
.ai-vtype.ai-stay { color: #1F6E93; background: #E8F2F8; }

/* 今日进出轨 */
.ai-vstat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ai-vstat .mini-stat .v { font-size: 17px; margin-top: 5px; }
.ai-vstat .mini-stat .sub { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.ai-vstat .mini-stat .v .u { font-size: 12px; }

.ai-track { position: relative; height: 92px; margin-top: 18px; }
.ai-track-axis { position: absolute; left: 0; right: 0; top: 46px; height: 2px; background: #E3EDF0; border-radius: 2px; }
.ai-tk-seg {
  position: absolute; top: 36px; height: 22px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(22, 160, 160, .92), rgba(14, 124, 124, .82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.ai-tk-seg.is-open { background: linear-gradient(90deg, rgba(232, 180, 79, .92), rgba(217, 164, 60, .82)); }
.ai-tk-dot {
  position: absolute; top: 42px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%;
  border: 2px solid #fff; box-shadow: 0 1px 4px rgba(8, 40, 55, .28); z-index: 2;
}
.ai-tk-dot.in { background: #0E7C7C; }
.ai-tk-dot.out { background: #B7791F; }
.ai-tk-lab {
  position: absolute; transform: translateX(-50%); font-family: var(--mono); font-size: 11px;
  line-height: 1.3; white-space: nowrap;
}
.ai-tk-lab.in { color: #0E7C7C; }
.ai-tk-lab.out { color: #A0740F; }
.ai-tk-tick {
  position: absolute; top: 62px; transform: translateX(-50%); font-family: var(--mono);
  font-size: 11px; color: #9AAAB3;
}
.ai-track-lg { display: flex; align-items: center; gap: 16px; margin-top: 4px; font-size: 11.5px; color: #4C5E69; }
.ai-track-lg span { display: inline-flex; align-items: center; gap: 6px; }
.ai-lg-seg { width: 16px; height: 8px; border-radius: 3px; background: linear-gradient(90deg, rgba(22, 160, 160, .92), rgba(14, 124, 124, .82)); }
.ai-lg-dot { width: 8px; height: 8px; border-radius: 50%; }
.ai-lg-dot.in { background: #0E7C7C; }
.ai-lg-dot.out { background: #B7791F; }

/* 时间线 + 结论 */
.ai-vbody { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; margin-top: 14px; align-items: start; }
.ai-tl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin-top: 2px; }
.ai-tl-row {
  display: flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 12.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.ai-tl-t { font-family: var(--mono); font-size: 12px; color: #3F535E; flex: none; }
.ai-tl-k {
  width: 20px; height: 20px; flex: none; border-radius: 6px; font-size: 11.5px;
  display: grid; place-items: center; font-weight: 550;
}
.ai-tl-k.in { background: var(--teal-soft); color: #0E7C7C; }
.ai-tl-k.out { background: #FBF1DC; color: #8A6114; }
.ai-tl-g { color: #6B7A85; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-block-note {
  display: flex; gap: 7px; align-items: flex-start; margin-top: 10px; padding: 9px 12px;
  border-radius: 9px; background: #F7FAFB; border: 1px solid var(--line-soft);
  font-size: 12px; color: #556873; line-height: 1.6;
}
.ai-block-note .ico { color: #93A6B1; margin-top: 2px; }
.ai-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

/* AI 处置建议 */
.ai-adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ai-adv {
  padding: 16px; border-radius: 12px; border: 1px solid var(--line);
  background: linear-gradient(170deg, #FBFDFE, #F3F8FA);
}
.ai-adv .n { font-family: var(--mono); font-size: 12px; color: #0E7C7C; letter-spacing: .1em; }
.ai-adv h4 { margin-top: 7px; font-size: 14px; font-weight: 650; color: var(--ink); }
.ai-adv p { margin-top: 7px; font-size: 12.5px; color: #4C5E69; line-height: 1.7; }
.ai-adv .meta { display: flex; align-items: center; gap: 6px; margin-top: 11px; font-size: 11.5px; color: #8A99A3; }
.ai-adv .meta .ico { color: #93A6B1; }

@media (prefers-reduced-motion: reduce) {
  .ai-live i { animation: none; }
  .ai-score-track > i, .ai-meter > i { transition: none; }
}
@media (max-width: 1240px) {
  .ai-detail { grid-template-columns: 176px minmax(0, 1fr); }
  .ai-detail .ai-side { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .ai-detail .ai-side .ai-block + .ai-block { margin-top: 0; }
}
@media (max-width: 1080px) {
  .ai-detail, .ai-sum-grid, .ai-vbody, .ai-adv-grid { grid-template-columns: 1fr; }
  .ai-sum-side { padding-left: 0; border-left: 0; padding-top: 6px; border-top: 1px solid var(--line-soft); }
  .ai-vstat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-tl { grid-template-columns: 1fr; }
}
