/* ==========================================================================
   永畅物流 · 智慧物流管理平台 — test4 设计系统
   浅蓝底 · 双栏导航（模块轨道 + 分组菜单）· PC 标准字号（正文 14px）
   ========================================================================== */
:root {
  --primary: #2468F2;
  --primary-hover: #4A84F5;
  --primary-active: #1753CC;
  --primary-soft: #EAF1FE;
  --primary-soft-2: #D6E4FD;

  --bg: #EDF3FB;               /* 页面浅蓝底 */
  --bg-2: #E3ECF8;
  --surface: #FFFFFF;
  --surface-2: #F7FAFE;        /* 表头/次级面 */
  --line: #E4EBF5;
  --line-2: #EEF2F8;

  --text: #1F2A3D;
  --text-2: #4E5B70;
  --text-3: #8592A6;
  --text-4: #B3BDCC;

  --success: #16A36A;  --success-soft: #E6F7EF;
  --warning: #E8900C;  --warning-soft: #FEF3E2;
  --danger:  #E5484D;  --danger-soft:  #FDECEC;
  --purple:  #7B5CF0;  --purple-soft:  #F0ECFE;
  --cyan:    #0B9BC7;  --cyan-soft:    #E3F5FB;
  --gray:    #6B778A;  --gray-soft:    #EFF2F6;

  --rail: #0F2B5B;
  --rail-2: #173C78;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(20, 50, 100, .04), 0 4px 14px rgba(20, 60, 130, .06);
  --shadow-lg: 0 12px 40px rgba(15, 40, 90, .18);

  --fs-xs: 12px; --fs-sm: 13px; --fs: 14px; --fs-md: 15px; --fs-lg: 16px; --fs-xl: 18px; --fs-2xl: 20px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;

  --nav-h: 60px;               /* 顶部一级导航 */
  --sub-h: 46px;               /* 面包屑子栏 */
  --top-h: 106px;              /* 顶部固定区域总高（页面 sticky 元素以此为偏移） */
  --side-w: 232px;
  --side-w-mini: 64px;         /* 菜单收起后的图标栏宽度 */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: var(--fs);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; color: var(--text); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs); color: var(--text); }
svg { flex-shrink: 0; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #C9D5E6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #AFC0D8; }
::-webkit-scrollbar-track { background: transparent; }
.ico { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================ 应用骨架 ============================ */
.app { display: flex; min-height: 100vh; }

/* ---- 顶部一级导航 ---- */
.topnav {
  position: fixed; left: 0; right: 0; top: 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 6px; padding-right: 16px;
  background: linear-gradient(90deg, var(--rail) 0%, var(--rail-2) 60%, #1D4F9C 100%);
  box-shadow: 0 2px 14px rgba(15, 43, 91, .22); color: #fff;
}
.nav-brand { width: var(--side-w); flex-shrink: 0; height: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 12px; color: #fff; }
.nav-brand:hover { color: #fff; }
.nav-logo {
  width: auto; height: 36px; max-width: calc(var(--side-w) - 24px);
  border-radius: 8px;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  overflow: hidden; flex-shrink: 0;
}
.nav-logo img { height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; }
.nav-logo .nav-logo-mini { display: none; }
.nav-logo svg { width: 22px; height: 22px; }
.nav-brand-t { display: block; font-size: 17px; font-weight: 700; letter-spacing: 1px; line-height: 1.25; }
.nav-brand-d { display: block; font-size: var(--fs-xs); opacity: .65; line-height: 1.25; }
.nav-mods { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; gap: 2px; overflow-x: auto; }
.nav-mods::-webkit-scrollbar { height: 0; }
.nav-mod {
  position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border-radius: 10px; color: rgba(224, 235, 255, .8); font-size: var(--fs-md); white-space: nowrap; transition: background .18s, color .18s;
}
.nav-mod svg { width: 18px; height: 18px; }
.nav-mod:hover { color: #fff; background: rgba(255,255,255,.1); }
.nav-mod.active { color: var(--primary); background: #fff; font-weight: 600; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.nav-mod .nav-dot { position: absolute; top: -3px; right: -5px; z-index: 1; box-shadow: 0 0 0 1.5px var(--rail-2); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #FF5A5F; color: #fff; font-size: 11px; line-height: 16px; font-weight: 600; font-style: normal; text-align: center; }
/* 顶栏右侧工具（深色底） */
.topnav .tb-search { width: 230px; }
.topnav .tb-search input { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.18); color: #fff; }
.topnav .tb-search input::placeholder { color: rgba(255,255,255,.6); }
.topnav .tb-search input:focus { background: #fff; color: var(--text); border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.topnav .tb-search > svg { color: rgba(255,255,255,.7); }
.topnav .tb-search kbd { background: transparent; color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.3); }
.topnav .tb-icon { color: rgba(255,255,255,.85); }
.topnav .tb-icon:hover { background: rgba(255,255,255,.12); color: #fff; }
.topnav .tb-icon .dot { border-color: var(--rail-2); }
.topnav .tb-user:hover { background: rgba(255,255,255,.1); }
.topnav .tb-user-name { color: #fff; }
.topnav .tb-user-role { color: rgba(255,255,255,.65); }
.topnav .tb-user > .caret { width: 14px; height: 14px; color: rgba(255,255,255,.7); }
.topnav .dropdown { color: var(--text); }
@media (max-width: 1600px) { .nav-mod { padding: 0 10px; font-size: var(--fs); gap: 6px; } .topnav .tb-search { width: 190px; } }
@media (max-width: 1440px) { .topnav .tb-user-text, .topnav .tb-search kbd { display: none; } .topnav .tb-search { width: 160px; } .nav-brand-d { display: none; } }
@media (max-width: 1320px) { .nav-mod svg:first-child { display: none; } }

/* ---- 分组菜单（二、三级） ---- */
.side {
  position: fixed; left: 0; top: var(--nav-h); bottom: 0; z-index: 30;
  width: var(--side-w); background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; transition: width .22s ease;
}
.side-head { padding: 18px 16px 12px; border-bottom: 1px solid var(--line-2); }
.side-module { display: flex; align-items: center; gap: 10px; }
.side-module-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.side-module-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.side-module-name { font-size: var(--fs-lg); font-weight: 600; line-height: 1.3; }
.side-module-desc { font-size: var(--fs-xs); color: var(--text-3); }
.side-search { margin-top: 12px; position: relative; }
.side-search input { width: 100%; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); padding: 0 10px 0 30px; font-size: var(--fs-sm); outline: none; transition: border-color .15s, background .15s; }
.side-search input:focus { border-color: var(--primary); background: #fff; }
.side-search svg { position: absolute; left: 9px; top: 8px; width: 16px; height: 16px; color: var(--text-3); stroke: currentColor; fill: none; stroke-width: 2; }
.side-menu { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.side-group-label { font-size: var(--fs-xs); color: var(--text-3); padding: 12px 10px 6px; letter-spacing: .5px; }
.menu-link {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; margin: 2px 0;
  border-radius: 8px; color: var(--text-2); font-size: var(--fs); cursor: pointer; user-select: none;
  position: relative; transition: background .15s, color .15s;
}
.menu-link:hover { background: var(--surface-2); color: var(--text); }
.menu-link .mi { width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: var(--gray-soft); color: var(--text-2); transition: all .15s; }
.menu-link .mi svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-link .mt { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-link .arrow { width: 14px; height: 14px; color: var(--text-4); transition: transform .2s; stroke: currentColor; fill: none; stroke-width: 2; }
.menu-link.open .arrow { transform: rotate(90deg); }
.menu-link .mb { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger-soft); color: var(--danger); font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.menu-link .mb.blue { background: var(--primary-soft); color: var(--primary); }
.menu-link .mb.new { background: linear-gradient(90deg,#FF7A45,#FF4D4F); color: #fff; }
.menu-link.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.menu-link.active .mi { background: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(36,104,242,.3); }
.menu-link.has-active { color: var(--text); font-weight: 600; }
.menu-link.has-active .mi { background: var(--primary-soft); color: var(--primary); }
.menu-sub { display: none; position: relative; margin-left: 23px; padding-left: 12px; border-left: 1px dashed var(--line); }
.menu-sub.show { display: block; }
.menu-sub .menu-link { height: 36px; font-size: var(--fs); padding-left: 8px; }
.menu-sub .menu-link .mi { width: 22px; height: 22px; background: transparent; }
.menu-sub .menu-link .mi svg { width: 15px; height: 15px; }
.menu-sub .menu-link.active .mi { background: transparent; color: var(--primary); box-shadow: none; }
.menu-sub .menu-link.active::before { content: ""; position: absolute; left: -13px; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--primary); }
.menu-sub .menu-sub { margin-left: 14px; }
.menu-empty { padding: 30px 10px; text-align: center; color: var(--text-3); font-size: var(--fs-sm); }
.side-foot { padding: 12px; border-top: 1px solid var(--line-2); }
.side-card { border-radius: 10px; padding: 12px; background: linear-gradient(135deg, #EEF4FF 0%, #E4F4FD 100%); display: flex; align-items: center; gap: 10px; }
.side-card-ico { width: 34px; height: 34px; border-radius: 9px; background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center; }
.side-card-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.side-card-t { font-size: var(--fs-sm); font-weight: 600; }
.side-card-d { font-size: var(--fs-xs); color: var(--text-3); }

/* ---- 工作区 ---- */
.workspace { flex: 1; min-width: 0; margin-left: var(--side-w); padding-top: var(--nav-h); transition: margin-left .22s ease; display: flex; flex-direction: column; min-height: 100vh; }
/* ---- 菜单收起：保留图标栏，二级菜单改为悬停弹出 ---- */
body.side-collapsed .side { width: var(--side-w-mini); }
body.side-collapsed .workspace { margin-left: var(--side-w-mini); }
/* 顶栏品牌区同步收窄，与图标栏对齐 */
body.side-collapsed .nav-brand { width: var(--side-w-mini); padding-left: 0; justify-content: center; }
body.side-collapsed .nav-brand > span:not(.nav-logo) { display: none; }
body.side-collapsed .nav-logo {
  width: 32px; height: 32px; max-width: 32px;
}
body.side-collapsed .nav-logo .nav-logo-full { display: none; }
body.side-collapsed .nav-logo .nav-logo-mini { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 模块信息卡：只留图标；搜索框与分组标题隐藏 */
body.side-collapsed .side-head { padding: 12px 0; }
body.side-collapsed .side-module { justify-content: center; }
body.side-collapsed .side-module > div:last-child { display: none; }
body.side-collapsed .side-search,
body.side-collapsed .side-group-label { display: none; }
/* 一级菜单：图标居中，文字/箭头隐藏 */
body.side-collapsed .side-menu { padding: 8px 6px 16px; overflow-x: hidden; }
body.side-collapsed .side-menu > .menu-link { justify-content: center; padding: 0; height: 42px; }
body.side-collapsed .side-menu > .menu-link .mt,
body.side-collapsed .side-menu > .menu-link .arrow { display: none; }
/* 收起态下内联展开的子菜单一律不显示（由悬停弹层承担） */
body.side-collapsed .side-menu .menu-sub { display: none; }
/* 待办角标收成小圆点，避免撑破图标栏 */
body.side-collapsed .side-menu > .menu-link .mb {
  position: absolute; top: 5px; right: 8px; min-width: 8px; width: 8px; height: 8px;
  padding: 0; border-radius: 50%; font-size: 0; line-height: 0; overflow: hidden;
}

/* ---- 收起态的悬停弹层（JS 渲染到 body，避开 .side-menu 的溢出裁剪）---- */
.side-flyout {
  position: fixed; z-index: 60; display: none;
  min-width: 172px; max-width: 264px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 16px); overflow-y: auto;
}
.side-flyout.show { display: block; }
.side-flyout .fo-t {
  padding: 7px 10px 7px; font-size: var(--fs-sm); font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line-2); margin-bottom: 4px; white-space: nowrap;
}
.side-flyout .fo-t.only { border-bottom: none; margin-bottom: 0; }
.side-flyout .fo-g { padding: 8px 10px 4px; font-size: var(--fs-xs); color: var(--text-3); white-space: nowrap; }
.side-flyout a {
  display: block; padding: 8px 10px; border-radius: 7px;
  color: var(--text-2); font-size: var(--fs-sm);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-flyout a:hover { background: var(--surface-2); color: var(--primary); }
.side-flyout a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }

/* 面包屑子栏 */
.topbar {
  position: sticky; top: var(--nav-h); z-index: 25; height: var(--sub-h);
  background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 0 20px 0 12px;
}
.tb-date { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); white-space: nowrap; }
.tb-date svg { width: 15px; height: 15px; }
.tb-mini { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 7px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; border: 1px solid var(--line); background: #fff; }
.tb-mini:hover { color: var(--primary); border-color: var(--primary-soft-2); }
.tb-mini svg { width: 14px; height: 14px; }
.tb-toggle { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-2); border: none; background: transparent; }
.tb-toggle:hover { background: var(--surface-2); color: var(--primary); }
.tb-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.crumb { display: flex; align-items: center; gap: 6px; font-size: var(--fs); color: var(--text-3); white-space: nowrap; overflow: hidden; }
.crumb a { color: var(--text-3); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { color: var(--text-4); }
.crumb .cur { color: var(--text); font-weight: 600; }
.tb-space { flex: 1; }
.tb-search { position: relative; width: 260px; }
.tb-search input { width: 100%; height: 34px; border-radius: 17px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 40px 0 34px; outline: none; font-size: var(--fs-sm); }
.tb-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(36,104,242,.12); }
.tb-search > svg { position: absolute; left: 11px; top: 9px; width: 16px; height: 16px; color: var(--text-3); stroke: currentColor; fill: none; stroke-width: 2; }
.tb-search kbd { position: absolute; right: 10px; top: 8px; font-size: 11px; color: var(--text-3); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; line-height: 16px; background: #fff; font-family: inherit; }
.tb-search-result { position: absolute; top: 40px; left: 0; right: 0; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; display: none; max-height: 360px; overflow-y: auto; }
.tb-search-result.show { display: block; }
.tb-search-result a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 6px; color: var(--text); font-size: var(--fs-sm); }
.tb-search-result a span { color: var(--text-3); font-size: var(--fs-xs); }
.tb-search-result a:hover, .tb-search-result a.hl { background: var(--primary-soft); color: var(--primary); }
.tb-icon { position: relative; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-2); cursor: pointer; }
.tb-icon:hover { background: var(--surface-2); color: var(--primary); }
.tb-icon svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; }
.tb-icon .dot { position: absolute; top: 1px; right: -2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; line-height: 16px; text-align: center; padding: 0 4px; border: 1.5px solid #fff; box-sizing: border-box; }
.tb-user { display: flex; align-items: center; gap: 10px; padding: 4px 8px 4px 4px; border-radius: 22px; cursor: pointer; position: relative; }
.tb-user:hover { background: var(--surface-2); }
.tb-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #3E86FF, #7B5CF0); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.tb-user-name { font-size: var(--fs); font-weight: 600; line-height: 1.2; }
.tb-user-role { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.2; }
.dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); padding: 6px; display: none; z-index: 70; cursor: default; }
.dropdown.show { display: block; }
.dropdown .dd-head { padding: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.dropdown .dd-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; color: var(--text-2); cursor: pointer; font-size: var(--fs); }
.dropdown .dd-item:hover { background: var(--surface-2); color: var(--primary); }
.dropdown .dd-item svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.dropdown .dd-item.danger:hover { color: var(--danger); background: var(--danger-soft); }
.dropdown .dd-sep { height: 1px; background: var(--line-2); margin: 4px 0; }
.notice-list { width: 340px; }
.notice-item { display: flex; gap: 10px; padding: 10px 12px; border-radius: 8px; cursor: pointer; }
.notice-item:hover { background: var(--surface-2); }
.notice-item .n-ico { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.notice-item .n-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.notice-item .n-t { font-size: var(--fs-sm); color: var(--text); line-height: 1.45; }
.notice-item .n-d { font-size: var(--fs-xs); color: var(--text-3); }

/* 访问页签 */
.visit-tabs { display: flex; align-items: center; gap: 6px; padding: 8px 20px 0; overflow-x: auto; white-space: nowrap; }
.visit-tabs::-webkit-scrollbar { height: 0; }
.visit-tab { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 12px; border-radius: 8px; background: rgba(255,255,255,.7); border: 1px solid var(--line); color: var(--text-2); font-size: var(--fs-sm); cursor: pointer; }
.visit-tab:hover { color: var(--primary); border-color: var(--primary-soft-2); }
.visit-tab.active { background: #fff; color: var(--primary); border-color: var(--primary-soft-2); box-shadow: 0 2px 6px rgba(36,104,242,.1); font-weight: 600; }
.visit-tab.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.visit-tab .vt-home { width: 14px; height: 14px; }
.visit-tab .x { width: 16px; height: 16px; border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-3); font-size: 14px; line-height: 1; }
.visit-tab .x:hover { background: var(--danger-soft); color: var(--danger); }

.main { flex: 1; padding: 16px 20px 28px; min-width: 0; }
.footer-note { text-align: center; color: var(--text-4); font-size: var(--fs-xs); padding: 0 0 16px; }

/* ============================ 页面头部 ============================ */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.4; display: flex; align-items: center; gap: 10px; }
.page-title .tag { font-weight: 500; }
.page-desc { font-size: var(--fs-sm); color: var(--text-3); margin-top: 2px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* 横幅 */
.banner { border-radius: var(--radius-lg); padding: 20px 24px; color: #fff; background: linear-gradient(120deg, #2468F2 0%, #3D8BFF 55%, #22B8F0 100%); position: relative; overflow: hidden; margin-bottom: 16px; }
.banner::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.1); }
.banner::before { content: ""; position: absolute; right: 120px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.07); }
.banner h2 { color: #fff; font-size: var(--fs-xl); }
.banner p { opacity: .85; font-size: var(--fs-sm); margin-top: 4px; }

/* ============================ 卡片 & 栅格 ============================ */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(228,235,245,.7); margin-bottom: 16px; min-width: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); min-height: 52px; flex-wrap: wrap; }
.card-title { font-size: var(--fs-lg); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--primary); }
.card-title.plain::before { display: none; }
.card-sub { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
.card-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body { padding: 16px 18px; }
.card-body.p0 { padding: 0; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; }

.grid { display: grid; gap: 16px; }
.grid > .card { margin-bottom: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-main-side { grid-template-columns: minmax(0, 1fr) 340px; }
.grid-side-main { grid-template-columns: 300px minmax(0, 1fr); }
.grid-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-all { grid-column: 1 / -1; }
.mb-16 { margin-bottom: 16px; } .mb-0 { margin-bottom: 0 !important; } .mt-16 { margin-top: 16px; } .mt-8 { margin-top: 8px; }
.flex { display: flex; align-items: center; gap: 8px; } .flex-between { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1; min-width: 0; }
.text-muted { color: var(--text-3); } .text-2 { color: var(--text-2); } .text-sm { font-size: var(--fs-sm); } .text-xs { font-size: var(--fs-xs); }
.text-primary { color: var(--primary); } .text-success { color: var(--success); } .text-warning { color: var(--warning); } .text-danger { color: var(--danger); } .text-purple { color: var(--purple); }
.text-right { text-align: right; } .text-center { text-align: center; } .fw-600 { font-weight: 600; } .nowrap { white-space: nowrap; }
.num { font-family: "DIN Alternate", "Roboto Mono", "Helvetica Neue", Arial, sans-serif; font-variant-numeric: tabular-nums; }
@media (max-width: 1500px) { .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1280px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-main-side, .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ============================ 统计卡 ============================ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(228,235,245,.7); padding: 16px 18px; display: flex; gap: 14px; align-items: center; position: relative; overflow: hidden; transition: transform .18s, box-shadow .18s; }
.stat:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,60,130,.1); }
.stat-ico { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.stat-ico svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.stat-body { flex: 1; min-width: 0; }
.stat-label { font-size: var(--fs-sm); color: var(--text-3); }
.stat-value { font-size: 26px; font-weight: 700; line-height: 1.3; color: var(--text); font-family: "DIN Alternate", "Helvetica Neue", Arial, var(--font); letter-spacing: .3px; white-space: nowrap; }
.stat-value small { font-size: var(--fs-sm); font-weight: 400; color: var(--text-3); margin-left: 3px; }
.stat-foot { font-size: var(--fs-xs); color: var(--text-3); }
.up { color: var(--success); } .down { color: var(--danger); }
.stat.c-green .stat-ico { background: var(--success-soft); color: var(--success); }
.stat.c-orange .stat-ico { background: var(--warning-soft); color: var(--warning); }
.stat.c-red .stat-ico { background: var(--danger-soft); color: var(--danger); }
.stat.c-purple .stat-ico { background: var(--purple-soft); color: var(--purple); }
.stat.c-cyan .stat-ico { background: var(--cyan-soft); color: var(--cyan); }
.stat.c-gray .stat-ico { background: var(--gray-soft); color: var(--gray); }
.stat.solid { background: linear-gradient(135deg, #2468F2, #4A9BFF); color: #fff; border: none; }
.stat.solid .stat-label, .stat.solid .stat-foot, .stat.solid .stat-value small { color: rgba(255,255,255,.82); }
.stat.solid .stat-value { color: #fff; }
.stat.solid .stat-ico { background: rgba(255,255,255,.18); color: #fff; }
.stat.clickable { cursor: pointer; }
.stat.selected { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(36,104,242,.15), var(--shadow); }

/* 迷你指标块 */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.kpi { background: var(--surface-2); border-radius: 8px; padding: 12px 14px; border: 1px solid var(--line-2); }
.kpi-label { font-size: var(--fs-xs); color: var(--text-3); }
.kpi-value { font-size: var(--fs-xl); font-weight: 700; color: var(--text); line-height: 1.4; }
.kpi-value small { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; margin-left: 2px; }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line);
  background: #fff; color: var(--text-2); font-size: var(--fs); cursor: pointer; white-space: nowrap;
  transition: all .15s; line-height: 1; user-select: none;
}
.btn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { color: var(--primary); border-color: var(--primary-soft-2); background: #F8FBFF; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 3px 8px rgba(36,104,242,.22); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #1DB877; border-color: #1DB877; color: #fff; }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #fff; }
.btn-warning:hover { background: #F5A023; border-color: #F5A023; color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #EE6468; border-color: #EE6468; color: #fff; }
.btn-soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn-soft:hover { background: var(--primary-soft-2); color: var(--primary-active); border-color: transparent; }
.btn-ghost-danger { color: var(--danger); border-color: #F7C6C8; }
.btn-ghost-danger:hover { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: var(--fs-sm); border-radius: 6px; }
.btn-lg { height: 40px; padding: 0 22px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; pointer-events: none; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: 8px 0 0 8px; margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 8px 8px 0; }
.btn-group .btn.active { background: var(--primary); border-color: var(--primary); color: #fff; position: relative; z-index: 1; }
/* 表格内文字按钮 */
.link { background: none; border: none; padding: 0; color: var(--primary); cursor: pointer; font-size: var(--fs); white-space: nowrap; }
.link:hover { color: var(--primary-hover); text-decoration: underline; }
.link-danger { color: var(--danger); } .link-danger:hover { color: #F06A6E; }
.link-success { color: var(--success); } .link-warning { color: var(--warning); } .link-gray { color: var(--text-3); }
.ops { display: inline-flex; align-items: center; gap: 12px; flex-wrap: nowrap; }
.ops .more { position: relative; }

/* ============================ 表单 ============================ */
.input, .select, .textarea,
.form-item input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),
.form-item select, .form-item textarea,
.filter input:not([type=checkbox]):not([type=radio]), .filter select {
  height: 34px; width: 100%; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff;
  font-size: var(--fs); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.textarea, .form-item textarea { height: auto; min-height: 80px; padding: 8px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus, .form-item input:focus, .form-item select:focus, .form-item textarea:focus, .filter input:focus, .filter select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(36,104,242,.12); }
.input::placeholder, .form-item input::placeholder, .form-item textarea::placeholder, .filter input::placeholder { color: var(--text-4); }
.form-item input[readonly], .form-item input:disabled, .form-item select:disabled, .form-item textarea[readonly] { background: var(--surface-2); color: var(--text-2); }
select.select, .form-item select, .filter select { appearance: none; -webkit-appearance: none; padding-right: 30px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238592A6' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat right 10px center; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); width: 15px; height: 15px; vertical-align: middle; cursor: pointer; margin: 0; }

.filter { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(228,235,245,.7); padding: 16px 18px 4px; margin-bottom: 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 18px; align-items: center; }
.card > .filter, .filter.inner { box-shadow: none; border: none; border-bottom: 1px solid var(--line-2); border-radius: 0; margin-bottom: 0; }
.filter .f-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; min-width: 0; }
.filter .f-item > label { flex-shrink: 0; width: 72px; text-align: right; font-size: var(--fs); color: var(--text-2); white-space: nowrap; }
.filter .f-item.range { grid-column: span 2; }
.filter .f-item .range-box { flex: 1; display: flex; align-items: center; gap: 6px; }
.filter .f-item .range-box span { color: var(--text-3); }
.filter .f-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; justify-content: flex-end; grid-column: -2 / -1; }
.filter .f-actions.left { justify-content: flex-start; }
.filter.collapsed .f-item.adv { display: none; }

/* 行内工具条（筛选 + 操作） */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .input, .toolbar .select { width: 180px; }
.search-input { position: relative; }
.search-input svg { position: absolute; left: 10px; top: 9px; width: 16px; height: 16px; color: var(--text-3); stroke: currentColor; fill: none; stroke-width: 2; }
.search-input .input { padding-left: 32px; }
.batch-bar { display: none; align-items: center; gap: 10px; padding: 8px 18px; background: var(--primary-soft); color: var(--primary); font-size: var(--fs-sm); }
.batch-bar.show { display: flex; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.form-grid.cols-1 { grid-template-columns: 1fr; }
.form-item { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-item > label { font-size: var(--fs); color: var(--text-2); font-weight: 500; }
.form-item > label .req, .req { color: var(--danger); margin-right: 2px; }
.form-item .hint { font-size: var(--fs-xs); color: var(--text-3); }
.form-item.full, .form-item.span-all { grid-column: 1 / -1; }
.form-item.span-2 { grid-column: span 2; }
.form-item.inline { flex-direction: row; align-items: center; }
.form-item.inline > label { width: 96px; flex-shrink: 0; text-align: right; }
.input-group { display: flex; align-items: stretch; }
.input-group input, .input-group .input { border-radius: 8px 0 0 8px !important; }
.input-group .addon { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-left: none; border-radius: 0 8px 8px 0; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-sm); white-space: nowrap; }
.input-group .btn { border-radius: 0 8px 8px 0; margin-left: -1px; }
.radio-group, .check-group { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; min-height: 34px; }
.radio-group label, .check-group label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: var(--fs); color: var(--text-2); font-weight: 400; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.radio-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px; cursor: pointer; transition: all .15s; }
.radio-card:hover { border-color: var(--primary-soft-2); }
.radio-card.active { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 2px rgba(36,104,242,.1); }
.radio-card .rc-t { font-weight: 600; } .radio-card .rc-d { font-size: var(--fs-xs); color: var(--text-3); }
.form-section { margin-bottom: 20px; }
.form-section-title { font-size: var(--fs-md); font-weight: 600; margin: 4px 0 14px; padding-left: 10px; border-left: 3px solid var(--primary); line-height: 1.2; display: flex; align-items: center; justify-content: space-between; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #C8D2E0; border-radius: 22px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span::before { transform: translateX(18px); }

.upload { border: 1.5px dashed #C4D3EA; border-radius: 10px; background: var(--surface-2); padding: 22px; text-align: center; color: var(--text-3); cursor: pointer; transition: all .15s; font-size: var(--fs-sm); }
.upload:hover, .upload.drag { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.upload svg { width: 32px; height: 32px; stroke: currentColor; fill: none; stroke-width: 1.6; margin-bottom: 6px; }
.upload .u-t { font-size: var(--fs); color: var(--text-2); }
.upload-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.upload-thumb { width: 96px; height: 72px; border-radius: 8px; border: 1px dashed #C4D3EA; background: var(--surface-2); display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-3); font-size: var(--fs-xs); cursor: pointer; gap: 2px; }
.upload-thumb:hover { border-color: var(--primary); color: var(--primary); }
.upload-thumb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.upload-thumb.filled { border-style: solid; background: linear-gradient(135deg, #DCE8FB, #EAF4FF); color: var(--primary); }

/* ============================ 表格 ============================ */
.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--fs); }
.table th { background: var(--surface-2); color: var(--text-2); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: relative; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); color: var(--text); vertical-align: middle; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover td { background: #F5F9FF; }
.table tbody tr.selected td { background: #EEF4FF; }
.table .nowrap td, .table.nowrap td { white-space: nowrap; }
.table th.chk, .table td.chk { width: 44px; text-align: center; padding-left: 10px; padding-right: 6px; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable::after { content: "⇅"; margin-left: 4px; color: var(--text-4); font-size: 12px; }
.table th.sort-asc::after { content: "↑"; color: var(--primary); }
.table th.sort-desc::after { content: "↓"; color: var(--primary); }
.table .sticky-r { position: sticky; right: 0; background: #fff; box-shadow: -6px 0 8px -6px rgba(20,50,100,.12); }
.table th.sticky-r { background: var(--surface-2); }
.table .sticky-l { position: sticky; left: 0; background: #fff; z-index: 1; }
.table th.sticky-l { background: var(--surface-2); }
.table tbody tr:hover td.sticky-r, .table tbody tr:hover td.sticky-l { background: #F5F9FF; }
.table.compact th, .table.compact td { padding: 8px 12px; }
.table.bordered th, .table.bordered td { border-right: 1px solid var(--line-2); }
.table tfoot td { background: var(--surface-2); font-weight: 600; }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .cell-sub { font-size: var(--fs-xs); color: var(--text-3); }
.table .empty-row td { text-align: center; color: var(--text-3); padding: 48px 0; }
.card > .table-wrap .table th:first-child, .card > .table-wrap .table td:first-child { padding-left: 18px; }
.card > .table-wrap .table th:last-child, .card > .table-wrap .table td:last-child { padding-right: 18px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 6px; padding: 12px 18px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--text-3); }
.pager .pg-total { margin-right: auto; }
.pager button { min-width: 32px; height: 32px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text-2); cursor: pointer; font-size: var(--fs-sm); }
.pager button:hover:not(:disabled) { color: var(--primary); border-color: var(--primary-soft-2); }
.pager button.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .45; cursor: not-allowed; }
.pager select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: #fff; }
.pager .pg-jump input { width: 50px; height: 32px; border: 1px solid var(--line); border-radius: 8px; text-align: center; margin: 0 4px; }

/* ============================ 标签 / 状态 ============================ */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: var(--fs-xs); font-weight: 500; white-space: nowrap; background: var(--primary-soft); color: var(--primary); line-height: 1; }
.tag-blue { background: var(--primary-soft); color: var(--primary); }
.tag-green { background: var(--success-soft); color: var(--success); }
.tag-orange { background: var(--warning-soft); color: var(--warning); }
.tag-red { background: var(--danger-soft); color: var(--danger); }
.tag-purple { background: var(--purple-soft); color: var(--purple); }
.tag-cyan { background: var(--cyan-soft); color: var(--cyan); }
.tag-gray { background: var(--gray-soft); color: var(--gray); }
.tag-solid { background: var(--primary); color: #fff; }
.tag-line { background: #fff; border: 1px solid currentColor; }
.tag.round { border-radius: 12px; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.status.green::before { background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.status.orange::before { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-soft); }
.status.red::before { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-soft); }
.status.gray::before { background: var(--text-4); box-shadow: 0 0 0 3px var(--gray-soft); }
.status.purple::before { background: var(--purple); box-shadow: 0 0 0 3px var(--purple-soft); }
.badge { display: inline-block; min-width: 18px; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 600; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, #5C9BFF, #7B5CF0); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: var(--fs-sm); flex-shrink: 0; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; } .avatar.sm { width: 26px; height: 26px; font-size: 12px; }
.plate { display: inline-block; padding: 1px 8px; border-radius: 4px; background: #1D4ED8; color: #fff; font-weight: 600; font-size: var(--fs-sm); letter-spacing: 1px; border: 1px solid #93B4F5; box-shadow: inset 0 0 0 1px #1D4ED8; white-space: nowrap; }
.plate.yellow { background: #F5B301; color: #222; box-shadow: inset 0 0 0 1px #F5B301; border-color: #FFE08A; }
.plate.green { background: linear-gradient(180deg, #F3FFF6, #5ED18A); color: #111; border-color: #5ED18A; box-shadow: none; }

/* ============================ 标签页 ============================ */
.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs::-webkit-scrollbar { height: 0; }
.tab { position: relative; padding: 10px 16px; font-size: var(--fs); color: var(--text-2); cursor: pointer; white-space: nowrap; border: none; background: none; display: inline-flex; align-items: center; gap: 6px; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); font-weight: 600; }
.tab.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--primary); }
.tab .cnt { font-size: 11px; min-width: 18px; height: 18px; line-height: 18px; padding: 0 6px; border-radius: 9px; background: var(--gray-soft); color: var(--text-3); font-weight: 500; }
.tab.active .cnt { background: var(--primary-soft); color: var(--primary); }
.card > .tabs { padding: 0 12px; margin-bottom: 0; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
/* 胶囊分段 */
.seg { display: inline-flex; background: var(--bg-2); border-radius: 9px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg > * { border: none; background: none; padding: 5px 14px; border-radius: 7px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.seg > *:hover { color: var(--primary); }
.seg > .active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 1px 4px rgba(20,50,100,.12); }
/* 卡片式状态筛选 */
.status-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.status-tab { flex: 1; min-width: 110px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; cursor: pointer; transition: all .15s; }
.status-tab:hover { border-color: var(--primary-soft-2); }
.status-tab .st-l { font-size: var(--fs-sm); color: var(--text-3); }
.status-tab .st-v { font-size: var(--fs-xl); font-weight: 700; color: var(--text); }
.status-tab.active { border-color: var(--primary); background: var(--primary-soft); }
.status-tab.active .st-v, .status-tab.active .st-l { color: var(--primary); }

/* ============================ 弹窗 / 抽屉 ============================ */
.modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(12, 28, 58, .45); backdrop-filter: blur(2px); }
.modal.show { display: flex; animation: mFade .18s ease; }
.modal-dialog { width: 560px; max-width: 100%; max-height: calc(100vh - 48px); background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: mPop .22s cubic-bezier(.2,.9,.3,1.2); }
.modal-sm .modal-dialog, .modal-dialog.sm { width: 420px; }
.modal-md .modal-dialog, .modal-dialog.md { width: 640px; }
.modal-lg .modal-dialog, .modal-dialog.lg { width: 820px; }
.modal-xl .modal-dialog, .modal-dialog.xl { width: 1080px; }
.modal-full .modal-dialog, .modal-dialog.full { width: calc(100vw - 80px); height: calc(100vh - 60px); }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line-2); background: linear-gradient(180deg, #F6F9FF 0%, #fff 100%); }
.modal-head h3, .modal-title { font-size: var(--fs-lg); font-weight: 600; flex: 1; display: flex; align-items: center; gap: 8px; }
.modal-head .m-ico { width: 30px; height: 30px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; }
.modal-head .m-ico svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.modal-x { width: 30px; height: 30px; border-radius: 8px; border: none; background: transparent; color: var(--text-3); font-size: 22px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.modal-x:hover { background: var(--danger-soft); color: var(--danger); }
.modal-body { padding: 20px 22px; overflow-y: auto; flex: 1; }
.modal-foot { display: flex; justify-content: flex-end; align-items: center; gap: 10px; padding: 12px 22px; border-top: 1px solid var(--line-2); background: #FBFCFE; }
.modal-foot .foot-left { margin-right: auto; font-size: var(--fs-sm); color: var(--text-3); }
.modal.drawer { justify-content: flex-end; padding: 0; }
.modal.drawer .modal-dialog { height: 100vh; max-height: 100vh; border-radius: 14px 0 0 14px; width: 620px; animation: dSlide .25s ease; }
.modal.drawer.modal-lg .modal-dialog { width: 860px; }
.modal.drawer.modal-xl .modal-dialog { width: 1080px; }
@keyframes mFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mPop { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes dSlide { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
/* 确认框 */
.confirm-box { display: flex; gap: 14px; }
.confirm-ico { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--warning-soft); color: var(--warning); }
.confirm-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.confirm-ico.danger { background: var(--danger-soft); color: var(--danger); }
.confirm-ico.info { background: var(--primary-soft); color: var(--primary); }
.confirm-ico.success { background: var(--success-soft); color: var(--success); }
.confirm-t { font-size: var(--fs-lg); font-weight: 600; margin-bottom: 4px; }
.confirm-d { color: var(--text-2); font-size: var(--fs); line-height: 1.7; white-space: pre-line; }

/* 详情描述列表 */
.desc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.desc.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.desc.cols-1 { grid-template-columns: 1fr; }
.desc-item { display: flex; border-bottom: 1px solid var(--line-2); min-width: 0; }
.desc-item.full { grid-column: 1 / -1; }
.desc-label { width: 110px; flex-shrink: 0; padding: 10px 12px; background: var(--surface-2); color: var(--text-3); font-size: var(--fs-sm); }
.desc-value { flex: 1; padding: 10px 12px; color: var(--text); font-size: var(--fs); word-break: break-all; min-width: 0; }
.info-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.info-list.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-list.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.info-list .il-l { font-size: var(--fs-sm); color: var(--text-3); }
.info-list .il-v { font-size: var(--fs); color: var(--text); font-weight: 500; }

/* 提示条 */
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 8px; background: var(--primary-soft); color: #1F4FB8; font-size: var(--fs-sm); margin-bottom: 14px; border: 1px solid var(--primary-soft-2); }
.alert svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; margin-top: 2px; }
.alert-success { background: var(--success-soft); color: #0E7A4F; border-color: #BDEBD4; }
.alert-warning { background: var(--warning-soft); color: #A15F00; border-color: #F9DDB0; }
.alert-danger { background: var(--danger-soft); color: #B42328; border-color: #F7C6C8; }

/* 步骤条 */
.steps { display: flex; align-items: flex-start; }
.step { flex: 1; position: relative; text-align: center; padding: 0 6px; }
.step::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 20px); right: calc(50% + 20px); height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step-dot { width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 8px; display: flex; align-items: center; justify-content: center; background: #fff; border: 2px solid var(--line); color: var(--text-3); font-weight: 600; position: relative; z-index: 1; font-size: var(--fs-sm); }
.step-t { font-size: var(--fs); color: var(--text-2); font-weight: 500; }
.step-d { font-size: var(--fs-xs); color: var(--text-3); }
.step.done .step-dot { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.step.done::before, .step.active::before { background: var(--primary); }
.step.active .step-dot { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 0 0 5px rgba(36,104,242,.15); }
.step.active .step-t { color: var(--primary); font-weight: 600; }

/* 流程卡（横向） */
.flow { display: flex; align-items: stretch; gap: 0; overflow-x: auto; }
.flow-node { flex: 1; min-width: 120px; padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line-2); text-align: center; cursor: default; }
.flow-node .fn-v { font-size: var(--fs-xl); font-weight: 700; color: var(--primary); }
.flow-node .fn-l { font-size: var(--fs-sm); color: var(--text-2); }
.flow-arrow { display: flex; align-items: center; padding: 0 6px; color: var(--text-4); }
.flow-arrow svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.flow-node.clickable { cursor: pointer; } .flow-node.clickable:hover, .flow-node.active { border-color: var(--primary); background: var(--primary-soft); }

/* 时间线 */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); }
.tl-item.green::before { border-color: var(--success); } .tl-item.orange::before { border-color: var(--warning); } .tl-item.red::before { border-color: var(--danger); } .tl-item.gray::before { border-color: var(--text-4); }
.tl-t { font-size: var(--fs); font-weight: 500; color: var(--text); }
.tl-d { font-size: var(--fs-sm); color: var(--text-2); }
.tl-time { font-size: var(--fs-xs); color: var(--text-3); }

/* 进度条 */
.progress { height: 8px; border-radius: 8px; background: var(--line-2); overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, #4A84F5, #2468F2); }
.progress.green > i { background: linear-gradient(90deg, #3CCB8C, #16A36A); }
.progress.orange > i { background: linear-gradient(90deg, #FFB547, #E8900C); }
.progress.red > i { background: linear-gradient(90deg, #FF8A8D, #E5484D); }
.progress-row { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); }
.progress-row .progress { flex: 1; }

/* 列表 */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .li-main { flex: 1; min-width: 0; }
.list-item .li-t { font-size: var(--fs); color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .li-d { font-size: var(--fs-xs); color: var(--text-3); }
.rank { width: 22px; height: 22px; border-radius: 6px; background: var(--gray-soft); color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank.r1 { background: #FFE8C2; color: #C27400; } .rank.r2 { background: #E4EAF3; color: #5B6B84; } .rank.r3 { background: #F9DCCB; color: #B5541C; }

/* 空状态 */
.empty { text-align: center; padding: 40px 20px; color: var(--text-3); }
.empty svg { width: 56px; height: 56px; stroke: #C4D3EA; fill: none; stroke-width: 1.5; margin-bottom: 8px; }

/* 快捷入口 */
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.quick-item { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 10px; cursor: pointer; color: var(--text-2); font-size: var(--fs-sm); transition: all .15s; text-align: center; }
.quick-item:hover { background: var(--primary-soft); color: var(--primary); }
.quick-item .q-ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #4A8CFF, #2468F2); box-shadow: 0 6px 14px rgba(36,104,242,.25); }
.quick-item .q-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; }
.q-green { background: linear-gradient(135deg, #3CCB8C, #16A36A) !important; box-shadow: 0 6px 14px rgba(22,163,106,.25) !important; }
.q-orange { background: linear-gradient(135deg, #FFB547, #E8900C) !important; box-shadow: 0 6px 14px rgba(232,144,12,.25) !important; }
.q-purple { background: linear-gradient(135deg, #9D84FF, #7B5CF0) !important; box-shadow: 0 6px 14px rgba(123,92,240,.25) !important; }
.q-red { background: linear-gradient(135deg, #FF8A8D, #E5484D) !important; box-shadow: 0 6px 14px rgba(229,72,77,.25) !important; }
.q-cyan { background: linear-gradient(135deg, #3FC6EC, #0B9BC7) !important; box-shadow: 0 6px 14px rgba(11,155,199,.25) !important; }

/* 图表容器 */
.chart { width: 100%; height: 260px; position: relative; }
.chart svg { display: block; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; font-size: var(--fs-xs); color: var(--text-2); margin-top: 6px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-tip { position: fixed; z-index: 2000; pointer-events: none; background: rgba(15,30,60,.92); color: #fff; font-size: var(--fs-xs); padding: 7px 10px; border-radius: 8px; line-height: 1.6; display: none; white-space: nowrap; }

/* 地图占位 */
.map { position: relative; border-radius: 10px; overflow: hidden; background:
  linear-gradient(0deg, rgba(255,255,255,.0), rgba(255,255,255,.0)),
  repeating-linear-gradient(0deg, transparent 0 39px, rgba(36,104,242,.07) 39px 40px),
  repeating-linear-gradient(90deg, transparent 0 39px, rgba(36,104,242,.07) 39px 40px),
  linear-gradient(135deg, #E7F0FC 0%, #EEF6F2 60%, #F3F0FA 100%); min-height: 320px; }
.map-pin { position: absolute; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; font-size: var(--fs-xs); color: var(--text); white-space: nowrap; }
.map-pin i { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.map-pin.green i { background: var(--success); } .map-pin.orange i { background: var(--warning); } .map-pin.red i { background: var(--danger); }
.map-pin span { background: #fff; padding: 1px 6px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.12); margin-bottom: 3px; }
.map svg.route { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Toast */
.toast-wrap { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 3000; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-lg); font-size: var(--fs); color: var(--text); border: 1px solid var(--line); animation: tIn .25s ease; pointer-events: auto; }
.toast svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.toast.success svg { color: var(--success); } .toast.error svg { color: var(--danger); } .toast.warning svg { color: var(--warning); } .toast.info svg { color: var(--primary); }
.toast.out { animation: tOut .25s ease forwards; }
@keyframes tIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes tOut { to { opacity: 0; transform: translateY(-10px); } }

/* 打印 */
@media print { .topnav, .side, .topbar, .visit-tabs, .page-actions, .modal { display: none !important; } .workspace { margin: 0 !important; } body { background: #fff; } }
