/* ============================================================
   鑫飞国际货代物流查询系统 · 全站样式
   深空蓝科技风（默认） / 浅色商务蓝，双主题
   ============================================================ */

:root, :root[data-theme="dark"] {
  --bg: #081124;
  --bg2: #0a1526;
  --panel: #0d1b36;
  --panel2: #0f2040;
  --line: #1a2c52;
  --line-soft: rgba(26, 44, 82, .55);
  --blue: #3b82f6;
  --blue-deep: #2563eb;
  --blue2: #60a5fa;
  --cyan: #7dd3fc;
  --text: #e8f0ff;
  --muted: #8ea6d4;
  --muted2: #5a6f96;
  --ok: #34d399;
  --warn: #fbbf24;
  --danger: #f87171;
  --shadow: 0 8px 32px rgba(2, 8, 24, .45);
  --glow: 0 0 0 3px rgba(59, 130, 246, .14);
  --dot: rgba(96, 165, 250, .13);
  --hero-h1: #ffffff;
  --input-bg: rgba(8, 17, 36, .85);
  --bar-grad: linear-gradient(180deg, #3b82f6, #1d4ed8);
}
:root[data-theme="light"] {
  --bg: #eef3fb;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f4f8ff;
  --line: #d7e2f5;
  --line-soft: #e6edf9;
  --blue: #2563eb;
  --blue-deep: #1d4ed8;
  --blue2: #1d4ed8;
  --cyan: #0e7490;
  --text: #0f1d38;
  --muted: #5a6f96;
  --muted2: #7c8fb5;
  --ok: #059669;
  --warn: #b45309;
  --danger: #dc2626;
  --shadow: 0 8px 24px rgba(37, 99, 235, .10);
  --glow: 0 0 0 3px rgba(37, 99, 235, .12);
  --dot: rgba(37, 99, 235, .10);
  --hero-h1: #0f1d38;
  --input-bg: #ffffff;
  --bar-grad: linear-gradient(180deg, #60a5fa, #2563eb);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button { font-family: inherit; font-size: 14px; color: var(--text); }

/* ---------------- 通用 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 10px; border: 1px solid transparent;
  padding: 9px 20px; font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: var(--blue); }
.btn-sm { padding: 5px 13px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.link-blue { color: var(--blue2); }
.link-danger { color: var(--danger); background: none; border: 0; cursor: pointer; font-size: 13px; padding: 0; }
.link-danger:hover { text-decoration: underline; }
.link-ok { color: var(--ok); background: none; border: 0; cursor: pointer; font-size: 13px; padding: 0; }
.link-ok:hover { text-decoration: underline; }

.inline-form { display: inline; }

/* 呼吸点 */
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); display: inline-block; margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(125, 211, 252, .6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(125, 211, 252, .55); }
  70% { box-shadow: 0 0 0 8px rgba(125, 211, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(125, 211, 252, 0); }
}
@media (prefers-reduced-motion: reduce) { .pulse { animation: none; } }

/* 主题切换 */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  transition: all .18s;
}
.theme-toggle:hover { color: var(--cyan); border-color: var(--blue); }
:root[data-theme="dark"] .theme-toggle .ico-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: block; }
:root[data-theme="light"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ico-moon { display: none; }

/* 语言切换按钮 */
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px;
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: .5px; cursor: pointer;
  transition: all .18s; text-decoration: none;
}
.lang-btn:hover { color: var(--cyan); border-color: var(--blue); text-decoration: none; }

/* 品牌区 */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: 0 4px 14px rgba(37, 99, 235, .35);
}
.brand-mark img { width: 70%; height: 70%; object-fit: contain; }
.brand-mark-lg { width: 52px; height: 52px; border-radius: 14px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.25; }
.brand-txt b { font-size: 16px; color: var(--text); letter-spacing: .5px; }
.brand-txt i { font-style: normal; font-size: 10.5px; color: var(--muted); letter-spacing: 2px; }
.brand-lg .brand-txt b { font-size: 20px; }
.brand-lg .brand-txt i { font-size: 11.5px; }

/* ---------------- 顶部导航（公共页） ---------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg2) 82%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .topbar { background: var(--bg2); }
}
.topbar-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: 64px; display: flex; align-items: center; gap: 24px; }
.topnav { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 14px; color: var(--muted); }
.topnav > a { transition: color .15s; }
.topnav > a:hover { color: var(--text); }
.topnav > a.on { color: var(--cyan); font-weight: 600; }
.topnav-right { display: flex; align-items: center; gap: 10px; margin-left: 6px; }
.nav-burger { display: none; background: none; border: 0; color: var(--muted); cursor: pointer; margin-left: auto; }

/* 公告条 */
.notice-bar { background: linear-gradient(90deg, rgba(37, 99, 235, .18), rgba(56, 189, 248, .10)); border-bottom: 1px solid var(--line); }
.notice-in { max-width: 1160px; margin: 0 auto; padding: 9px 20px; font-size: 13px; color: var(--cyan); display: flex; align-items: center; }
.notice-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); margin-right: 10px; flex: none; }

/* ---------------- 首页 Hero ---------------- */
.hero {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  padding: 88px 20px 72px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero-in { max-width: 760px; margin: 0 auto; }
.hero-badge {
  display: inline-flex; align-items: center;
  font-size: 13px; color: var(--cyan);
  border: 1px solid color-mix(in srgb, var(--cyan) 40%, transparent);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
  border-radius: 999px; padding: 5px 16px; margin-bottom: 22px;
}
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: 2px; color: var(--hero-h1); margin-bottom: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #60a5fa, #38bdf8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 34px; }

.trackbox {
  display: flex; align-items: center; gap: 10px;
  max-width: 560px; margin: 0 auto;
  background: var(--input-bg);
  border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent);
  border-radius: 14px; padding: 7px 7px 7px 16px;
  box-shadow: var(--glow), var(--shadow);
  color: var(--muted);
}
.trackbox input { flex: 1; background: none; border: 0; outline: none; font-size: 14.5px; color: var(--text); min-width: 0; }
.trackbox input::placeholder { color: var(--muted2); }
.trackbox-lg { max-width: 620px; }
.trackbox-app { max-width: none; margin-bottom: 16px; }

/* ---------------- 区块通用 ---------------- */
.sec-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.sec-head { text-align: center; padding: 56px 0 36px; }
.sec-head h2 { font-size: 26px; font-weight: 700; color: var(--text); letter-spacing: 1px; }
.sec-head p { color: var(--muted); margin-top: 8px; font-size: 14px; }

/* 服务卡 */
.svc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; padding-bottom: 56px; }
.svc {
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  padding: 22px 18px; transition: all .22s ease;
}
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: var(--shadow); }
.svc svg { width: 30px; height: 30px; color: var(--blue2); margin-bottom: 14px; }
.svc b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--text); }
.svc span { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* 数据带 */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg2); }
.stats-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; }
.stat { flex: 1; text-align: center; padding: 30px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: var(--cyan); letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------------- Hero 动态氛围层 ---------------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.grid-flow {
  position: absolute; inset: -60px;
  background-image: linear-gradient(color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px),
                    linear-gradient(90deg, color-mix(in srgb, var(--blue) 12%, transparent) 1px, transparent 1px);
  background-size: 44px 44px;
  transform: perspective(500px) rotateX(28deg) scale(1.4);
  transform-origin: center 120%;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 42%, #000 20%, transparent 72%);
  animation: gridflow 16s linear infinite;
  opacity: .8;
}
@keyframes gridflow { to { background-position: 0 44px, 44px 0; } }
.arc {
  position: absolute; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--cyan) 22%, transparent);
}
.arc-1 { width: 560px; height: 560px; top: -280px; left: 50%; margin-left: -280px; border-left-color: transparent; border-right-color: transparent; border-top-color: transparent; animation: arcsSpin 26s linear infinite; }
.arc-2 { width: 820px; height: 820px; top: -420px; left: 50%; margin-left: -410px; opacity: .45; animation: arcsSpin 40s linear infinite reverse; }
@keyframes arcsSpin { to { transform: rotate(360deg); } }
.beam {
  position: absolute; top: 18%; left: -20%; width: 26%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; filter: blur(.4px);
  animation: beam 9s ease-in-out infinite;
}
@keyframes beam {
  0%, 64% { left: -26%; opacity: 0; }
  68% { opacity: .9; }
  92% { left: 96%; opacity: .5; }
  100% { left: 96%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .grid-flow, .arc, .beam { animation: none; }
}

/* ---------------- 发货流程时间线 ---------------- */
.flow { border-bottom: 1px solid var(--line); }
.flow-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding-bottom: 64px; position: relative; }
.flow-steps::before {
  content: ""; position: absolute; top: 27px; left: 10%; right: 10%;
  border-top: 1px dashed color-mix(in srgb, var(--blue) 35%, transparent);
}
.fstep { text-align: center; padding: 0 12px; position: relative; }
.fs-ico {
  width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel2); border: 1px solid color-mix(in srgb, var(--blue) 45%, transparent);
  color: var(--cyan); position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg), var(--glow);
  transition: transform .22s ease, border-color .22s ease;
}
.fstep:hover .fs-ico { transform: translateY(-4px); border-color: var(--cyan); }
.fs-ico svg { width: 24px; height: 24px; }
.fstep b { display: block; font-size: 14.5px; margin-bottom: 5px; color: var(--text); }
.fstep span { font-size: 12px; color: var(--muted); line-height: 1.7; display: block; max-width: 170px; margin: 0 auto; }

/* ---------------- 客户信赖（评价墙） ---------------- */
.trust { background: var(--bg2); border-bottom: 1px solid var(--line); }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 64px; }
.quote {
  position: relative; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); padding: 26px 22px 20px; overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}
.quote:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--blue) 50%, transparent); }
.quote::before {
  content: "\201C"; position: absolute; top: -14px; right: 14px;
  font-size: 88px; font-weight: 800; line-height: 1;
  color: color-mix(in srgb, var(--blue) 16%, transparent);
  font-family: Georgia, serif;
}
.quote p { color: var(--text); font-size: 13.5px; line-height: 1.95; min-height: 106px; }
.q-who { border-top: 1px dashed var(--line-soft); padding-top: 12px; margin-top: 12px; }
.q-who b { display: block; font-size: 13px; color: var(--cyan); }
.q-who span { font-size: 12px; color: var(--muted2); }

/* ---------------- 滚动渐入（全站） ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; } .reveal-d5 { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------------- mono 等宽数字（单号/数值对齐） ---------------- */
.mono, .tr-no b, .ev-time, .td-time, .tbl td, .kpi b {
  font-variant-numeric: tabular-nums;
}
.mono { font-family: "SF Mono", "Cascadia Mono", "JetBrains Mono", Consolas, "Liberation Mono", monospace; letter-spacing: .4px; }

/* ---------------- 微交互精细化 ---------------- */
.btn { transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary:hover { box-shadow: 0 6px 22px color-mix(in srgb, var(--blue) 45%, transparent); }
.svc { position: relative; overflow: hidden; }
.svc::after {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; transition: opacity .3s ease;
}
.svc:hover::after { opacity: .9; }
.apoint, .tt-card, .quote { will-change: transform; }

/* ---------------- 空状态插画化 ---------------- */
.td-empty, .mini-empty { color: var(--muted2); }
.td-empty::before, .mini-empty::before {
  content: ""; display: block; width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--muted2) 45%, transparent);
  background:
    radial-gradient(circle 3px at 50% 55%, color-mix(in srgb, var(--muted2) 60%, transparent) 98%, transparent),
    linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--muted2) 55%, transparent) 46%, color-mix(in srgb, var(--muted2) 55%, transparent) 54%, transparent 54%);
  background-size: 100% 100%, 14px 14px;
  background-repeat: no-repeat;
  background-position: center, center 4px;
  opacity: .75;
}

/* ---------------- KPI 卡片可点击 ---------------- */
.kpi-click { cursor: pointer; text-decoration: none; color: inherit; display: block; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 18px 20px; position: relative; overflow: hidden; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.kpi-click:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: var(--shadow); }
.kpi-click::after {
  content: "→"; position: absolute; right: 16px; top: 16px;
  color: var(--muted2); font-size: 14px; transition: right .18s ease, color .18s ease;
}
.kpi-click:hover::after { right: 12px; color: var(--cyan); }

/* ---------------- 运单进度条（6 节点） ---------------- */
.ship-progress { display: flex; align-items: flex-start; gap: 0; padding: 14px 6px 4px; }
.sp-node { flex: 1; text-align: center; position: relative; }
.sp-node::before {
  content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px;
  background: var(--line);
}
.sp-node:first-child::before { display: none; }
.sp-node.done::before, .sp-node.now::before { background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.sp-dot {
  width: 12px; height: 12px; border-radius: 50%; margin: 0 auto 7px;
  background: var(--bg2); border: 2px solid var(--line); position: relative; z-index: 1;
}
.sp-node.done .sp-dot { background: var(--blue); border-color: var(--blue); }
.sp-node.now .sp-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 22%, transparent); animation: spPulse 2s infinite; }
@keyframes spPulse {
  0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
  70% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--cyan) 0%, transparent); }
  100% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 28%, transparent); }
}
.sp-node span { font-size: 11px; color: var(--muted2); white-space: nowrap; }
.sp-node.done span, .sp-node.now span { color: var(--text); font-weight: 600; }
.sp-node.now span { color: var(--cyan); }

/* ---------------- 看板今日待办聚合卡 ---------------- */
.todo-card {
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent); border-radius: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 9%, transparent), transparent 60%), var(--panel);
  padding: 16px 20px; margin-bottom: 18px;
}
.todo-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.todo-head b { font-size: 15px; }
.todo-head span { font-size: 12.5px; color: var(--muted2); }
.todo-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.todo-item {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  padding: 12px 16px; text-decoration: none; color: inherit;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.todo-item:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--blue) 55%, transparent); box-shadow: var(--shadow); }
.todo-item b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--text); }
.todo-item.hot b { color: var(--danger); }
.todo-item span { font-size: 13px; color: var(--muted); flex: 1; line-height: 1.4; }
.todo-item em { font-style: normal; font-size: 12px; color: var(--cyan); white-space: nowrap; }
.todo-clear .todo-item b { color: var(--ok); }
@media (max-width: 760px) { .todo-items { grid-template-columns: 1fr; } }

/* ---------------- 柱状图 tooltip（data-tip 属性） ---------------- */
.bars { position: relative; }
.bar-item { position: relative; }
.bar-item::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 8px); left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--panel2); border: 1px solid color-mix(in srgb, var(--blue) 50%, transparent);
  border-radius: 8px; padding: 6px 10px; font-size: 12px; color: var(--text);
  white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  box-shadow: var(--shadow); z-index: 5;
}
.bar-item:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }

/* 行内改状态 */
.status-sel {
  background: var(--input-bg); color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 3px 6px; font-size: 12.5px; outline: none; cursor: pointer;
}
.status-sel:focus { border-color: var(--blue); box-shadow: var(--glow); }

/* 关于我们 */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; padding-bottom: 64px; }
.about-txt p { color: var(--muted); line-height: 2; margin-bottom: 16px; font-size: 14.5px; }
.about-points { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apoint {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 16px;
}
.apoint i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); border-radius: 8px; padding: 2px 8px; flex: none; }
.apoint b { display: block; font-size: 14px; margin-bottom: 3px; }
.apoint span { font-size: 12px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg2); margin-top: auto; }
.footer-in { max-width: 1160px; margin: 0 auto; padding: 40px 20px 28px; display: flex; gap: 60px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-brand p { color: var(--muted); font-size: 13px; margin-top: 14px; line-height: 1.9; }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact b { font-size: 15px; margin-bottom: 4px; }
.footer-contact span { color: var(--muted); font-size: 13px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links b { font-size: 15px; margin-bottom: 4px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; transition: color .15s ease; }
.footer-links a:hover { color: var(--blue); }
.footer-bar { border-top: 1px solid var(--line); text-align: center; padding: 16px; font-size: 12.5px; color: var(--muted2); }

/* ---------------- 查询页 ---------------- */
.page-hero {
  background-image: radial-gradient(var(--dot) 1px, transparent 1px);
  background-size: 22px 22px;
  border-bottom: 1px solid var(--line);
  padding: 52px 20px 44px; text-align: center;
}
.page-hero h1 { font-size: 28px; font-weight: 700; color: var(--hero-h1); margin-bottom: 8px; }
.page-hero p { color: var(--muted); margin-bottom: 26px; font-size: 14px; }
.track-page { padding: 32px 20px 56px; }

.empty-panel { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty-panel svg { color: var(--muted2); margin: 0 auto 14px; }
.empty-panel b { display: block; font-size: 16px; color: var(--text); margin-bottom: 8px; }
.empty-panel p { font-size: 13px; }

.track-tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tt-card { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 20px; }
.tt-card b { display: block; font-size: 14.5px; margin-bottom: 6px; color: var(--text); }
.tt-card span { font-size: 13px; color: var(--muted); line-height: 1.7; }

/* 查询结果卡 */
.track-result { border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); border-radius: 14px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow); }
.tr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; background: color-mix(in srgb, var(--blue) 6%, transparent); }
.tr-no { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tr-no b { font-size: 19px; letter-spacing: 1px; color: var(--text); }
.tr-meta { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-bottom: 1px solid var(--line); }
.tr-meta > div { padding: 14px 18px; border-right: 1px solid var(--line-soft); }
.tr-meta > div:nth-child(5n) { border-right: 0; }
.tr-meta span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.tr-meta b { font-size: 13.5px; color: var(--text); font-weight: 600; word-break: break-all; }
.tr-events { padding: 18px 22px 22px; }
.tr-events-title { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.tr-events ul { list-style: none; }
.tr-events li { display: flex; gap: 18px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.tr-events li:last-child { border-bottom: 0; }
.ev-time { color: var(--muted2); font-size: 13px; font-variant-numeric: tabular-nums; flex: none; width: 170px; }
.ev-txt { color: var(--text); font-size: 13.5px; }
.tr-events li.latest .ev-txt { color: var(--cyan); font-weight: 700; }
.tr-events li.latest .ev-time { color: var(--cyan); }
.tr-events li.empty { color: var(--muted2); justify-content: center; }

/* ---------------- 登录 / 注册 ---------------- */
.auth-body { display: flex; min-height: 100vh; background: var(--bg); }
.auth-wrap { display: flex; width: 100%; min-height: 100vh; }
.auth-brand {
  flex: 1.1; display: flex; align-items: center; justify-content: center;
  background-image: radial-gradient(var(--dot) 1px, transparent 1px), linear-gradient(160deg, #0b1c3f, #081124);
  background-size: 22px 22px, cover;
  border-right: 1px solid var(--line);
}
:root[data-theme="light"] .auth-brand { background-image: radial-gradient(var(--dot) 1px, transparent 1px), linear-gradient(160deg, #1e40af, #0f2a6b); }
.auth-brand-in { max-width: 460px; padding: 40px; color: #e8f0ff; }
.auth-brand-in h1 { font-size: 30px; font-weight: 800; margin: 34px 0 12px; letter-spacing: 1px; }
.auth-brand-in > p { color: #93a8cf; margin-bottom: 30px; }
.auth-brand-in ul { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.auth-brand-in li { color: #c4d4f5; font-size: 14px; display: flex; align-items: center; }
.auth-form-area { flex: 1; display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.auth-form { width: 100%; max-width: 400px; }
.auth-form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.auth-form-head h2 { font-size: 22px; font-weight: 700; }
.auth-links { margin-top: 22px; display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.auth-links a { color: var(--blue2); }
.auth-links a:hover { text-decoration: underline; }

/* ---------------- 表单 ---------------- */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field label i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--input-bg);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: var(--glow); }
.field input:disabled { opacity: .55; cursor: not-allowed; }
.field textarea { resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-actions { display: flex; gap: 12px; margin-top: 8px; }
.input-group { display: flex; gap: 8px; }
.input-group input { flex: 1; }
.form-panel form { padding: 18px 22px 22px; }

/* ---------------- 应用布局（管理端 / 客户端） ---------------- */
.app { display: flex; min-height: 100vh; }
.side {
  width: 224px; flex: none; display: flex; flex-direction: column;
  background: var(--bg2); border-right: 1px solid var(--line);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side-top { padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.nav-brand { display: inline-flex; }
.side-top .nav-brand { width: 100%; }
.side-area { display: inline-block; margin-top: 12px; font-size: 11px; color: var(--cyan); letter-spacing: 2px; border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); background: color-mix(in srgb, var(--cyan) 8%, transparent); border-radius: 999px; padding: 1px 10px; }
.side-nav { display: flex; flex-direction: column; gap: 3px; padding: 14px 12px; flex: 1; }
.mi {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 14px; color: var(--muted); border-radius: 10px;
  padding: 11px 14px; border: 1px solid transparent; transition: all .15s;
}
.mi:hover { color: var(--text); background: var(--panel); }
.mi.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, var(--blue-deep), color-mix(in srgb, var(--blue-deep) 45%, transparent));
  border-color: color-mix(in srgb, var(--blue) 55%, transparent);
  box-shadow: 0 4px 14px rgba(37, 99, 235, .28);
}
:root[data-theme="light"] .mi.on { color: #fff; }
.mi em {
  font-style: normal; font-size: 11.5px; font-weight: 600;
  background: var(--warn); color: #1a1200; border-radius: 999px; padding: 0 8px; line-height: 18px;
}
.side-foot { border-top: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.side-user { display: flex; align-items: center; gap: 10px; }
.avatar {
  font-style: normal; width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: linear-gradient(135deg, #2563eb, #38bdf8); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700;
}
.side-user b { display: block; font-size: 13px; line-height: 1.3; }
.side-user span { font-size: 11.5px; color: var(--muted); }
.side-logout { margin-left: auto; color: var(--muted); display: flex; padding: 6px; border-radius: 8px; }
.side-logout:hover { color: var(--danger); background: var(--panel); }
.side-mask { display: none; }

.main { flex: 1; padding: 26px 30px 48px; min-width: 0; background: var(--bg); }
.page-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; font-weight: 700; letter-spacing: .5px; }
.page-date { font-size: 12.5px; color: var(--muted2); }

/* 欢迎条 */
.welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent);
  border-radius: 14px; padding: 20px 24px; margin-bottom: 18px; flex-wrap: wrap;
}
.welcome h2 { font-size: 18px; margin-bottom: 4px; }
.welcome p { color: var(--muted); font-size: 13px; }

/* KPI */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); padding: 16px 18px; }
.kpi span { font-size: 12.5px; color: var(--muted); }
.kpi b { display: block; font-size: 28px; font-weight: 800; color: var(--cyan); margin: 4px 0 2px; }
.kpi em { font-style: normal; font-size: 12px; color: var(--muted2); }
.kpi-link { color: var(--warn); }

/* 面板 */
.panel { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); overflow: hidden; }
.panel-h {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.panel-h b { font-size: 15px; }
.panel-more { font-size: 13px; color: var(--blue2); }
.panel-more:hover { text-decoration: underline; }
.panel-tag { font-size: 12px; color: var(--muted); }
.panel-sub { font-size: 12px; color: var(--muted); font-weight: 400; }

/* 货物 Excel 导入 */
.cargo-import { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-wrap: wrap; }
.cargo-import .field { flex: 1; min-width: 260px; margin-bottom: 0; }
.cargo-import input[type="file"] {
  width: 100%; padding: 9px 12px; font-size: 13px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 10px; background: var(--bg2); cursor: pointer;
}
.cargo-import input[type="file"]::-webkit-file-upload-button {
  border: none; border-radius: 8px; padding: 6px 14px; margin-right: 12px;
  background: var(--blue); color: #fff; font-size: 12.5px; cursor: pointer;
}

/* 货物到货图片 */
.cargo-thumb {
  display: block; width: 54px; height: 42px; object-fit: cover;
  border-radius: 6px; border: 1px solid var(--line); transition: transform .15s ease;
}
.cargo-thumb:hover { transform: scale(1.06); }
.cargo-img-wrap { padding: 14px 18px 0; }
.cargo-img {
  display: block; max-width: 100%; max-height: 420px; width: auto; height: auto;
  border-radius: 10px; border: 1px solid var(--line);
}
.btn-batch-del { color: var(--danger); border-color: var(--danger); }

.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 14px; align-items: start; }
.grid-form-left { grid-template-columns: 1fr 1.5fr; }
.col-stack { display: flex; flex-direction: column; gap: 14px; }

/* 表格 */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--panel2);
}
.tbl td { padding: 11px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr:hover td { background: color-mix(in srgb, var(--blue) 4%, transparent); }
.td-empty { text-align: center; color: var(--muted2); padding: 34px 16px !important; }
.td-time { font-size: 12px; color: var(--muted2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.td-act { white-space: nowrap; }
.td-act a, .td-act button {
  color: var(--blue2); font-size: 13px; background: none; border: 0; cursor: pointer; padding: 0;
}
.td-act a + a, .td-act form + form, .td-act form + a, .td-act a + form { margin-left: 10px; }
.td-act a:hover, .td-act button:hover { text-decoration: underline; }
.td-note { font-size: 12px; color: var(--muted); max-width: 160px; }
.td-wrap { max-width: 200px; }
.td-done { color: var(--muted2); font-size: 12.5px; }

/* 徽章 */
.bdg { display: inline-block; font-size: 12px; padding: 1px 10px; border-radius: 999px; white-space: nowrap; }
.bdg-wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.bdg-transit { color: var(--blue2); background: color-mix(in srgb, var(--blue) 13%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.bdg-port { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 10%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 38%, transparent); }
.bdg-delivery { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.bdg-done { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.bdg-reject { color: var(--danger); background: color-mix(in srgb, var(--danger) 10%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent); }

/* 看板：目的地在途件数横向占比条 */
.bar-line { height: 8px; border-radius: 99px; background: color-mix(in srgb, var(--blue) 10%, transparent); overflow: hidden; }
.bar-line i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue2), var(--blue)); }
.panel-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 10px; }

/* 看板：最新运单面板内滚动（表头吸顶） */
.tbl-scroll { max-height: 430px; overflow-y: auto; }
.tbl-scroll table { margin: 0; }
.tbl-scroll thead tr, .tbl-scroll tr:first-child { position: sticky; top: 0; z-index: 2; background: var(--panel2); }
.tbl-scroll tr:first-child th { box-shadow: 0 1px 0 var(--line); }
.bdg-blue { color: var(--blue2); background: color-mix(in srgb, var(--blue) 13%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 40%, transparent); }
.bdg { color: var(--muted); background: color-mix(in srgb, var(--muted) 10%, transparent); border: 1px solid color-mix(in srgb, var(--muted) 30%, transparent); }

/* 工具条 */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter input, .filter select {
  background: var(--input-bg); border: 1px solid var(--line); border-radius: 9px;
  padding: 7px 12px; outline: none; font-size: 13px;
}
.filter input:focus, .filter select:focus { border-color: var(--blue); }

/* 批量导入（工具栏内下拉） */
.toolbar .import-box { position: relative; display: inline-flex; align-items: center; }
.toolbar .import-box > summary { list-style: none; }
.toolbar .import-box > summary::-webkit-details-marker { display: none; }
.toolbar .import-box > summary::before { content: ''; display: none; }
.toolbar .import-cnt { position: absolute; top: calc(100% + 8px); right: 0; width: 460px; z-index: 30; box-shadow: 0 14px 40px rgba(0,0,0,.28); margin: 0; }

/* 导入模板说明（折叠） */
.import-notes { margin: -2px 0 12px; font-size: 12px; }
.import-notes > summary { cursor: pointer; list-style: none; color: var(--muted); width: fit-content; }
.import-notes > summary::-webkit-details-marker { display: none; }
.import-notes > summary::before { content: '▸ '; color: var(--blue2); transition: transform .15s; }
.import-notes[open] > summary::before { transform: rotate(90deg); }
.import-notes > summary:hover { color: var(--text); }
.import-notes-cnt { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); line-height: 1.7; }

/* 导入表单内部按钮 */
.import-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a {
  font-size: 13px; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 16px; transition: all .15s;
}
.tabs a:hover { color: var(--text); }
.tabs a.on { color: #fff; background: var(--blue-deep); border-color: var(--blue-deep); font-weight: 600; }

/* 柱状图 */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 18px 18px 6px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-item i { display: block; width: 100%; max-width: 30px; background: var(--bar-grad); border-radius: 5px 5px 0 0; transition: height .4s ease; }
.bar-item span { font-size: 11.5px; color: var(--muted2); margin-top: 7px; }
.bar-item em { font-style: normal; font-size: 12px; color: var(--cyan); font-weight: 600; margin-top: 2px; }

/* 迷你列表 */
.mini-list { display: flex; flex-direction: column; }
.mini-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.mini-item:last-child { border-bottom: 0; }
.mini-item b { display: block; font-size: 13.5px; }
.mini-item span { font-size: 12px; color: var(--muted); }
.mini-item time { font-size: 12px; color: var(--muted2); white-space: nowrap; }
.mini-empty { padding: 30px 18px; text-align: center; color: var(--muted2); font-size: 13px; }

/* 详情网格 */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; }
.detail-grid > div { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); }
.detail-grid > div:nth-child(odd) { border-right: 1px solid var(--line-soft); }
.detail-grid span { display: block; font-size: 12px; color: var(--muted); }
.detail-grid b { font-size: 13.5px; word-break: break-all; }
.status-form { display: flex; gap: 8px; padding: 14px 18px 4px; }
.status-form select { flex: 1; background: var(--input-bg); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; outline: none; }

/* 轨迹管理列表 */
.track-admin-list { max-height: 560px; overflow-y: auto; }
.ev-row { display: flex; align-items: flex-start; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); }
.ev-row:last-child { border-bottom: 0; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); margin-top: 6px; flex: none; }
.ev-row.latest .ev-dot { background: var(--cyan); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 30%, transparent); }
.ev-body { flex: 1; }
.ev-body b { display: block; font-size: 14px; }
.ev-body time { font-size: 12px; color: var(--muted2); font-variant-numeric: tabular-nums; }
.ev-row.latest .ev-body b { color: var(--cyan); }

/* 快捷标签 */
.quick-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 12.5px; color: var(--blue2); background: color-mix(in srgb, var(--blue) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 999px; padding: 3px 13px; cursor: pointer; transition: all .15s;
}
.tag:hover { background: var(--blue-deep); color: #fff; }

/* 公告条目 */
.notice-item { display: flex; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); align-items: flex-start; }
.notice-item:last-child { border-bottom: 0; }
.notice-body { flex: 1; }
.notice-body b { font-size: 14px; display: block; margin-bottom: 4px; }
.notice-body p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.notice-body time { font-size: 12px; color: var(--muted2); }

/* Flash 消息 */
.flash {
  border-radius: 10px; padding: 11px 16px; font-size: 13.5px; margin-bottom: 14px;
  border: 1px solid transparent;
}
.flash-ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); border-color: color-mix(in srgb, var(--ok) 32%, transparent); }
.flash-error { color: var(--danger); background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 32%, transparent); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 14px; justify-content: flex-end; padding: 14px 18px; font-size: 13px; color: var(--muted); }
.pager a { color: var(--blue2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; }
.pager a:hover { border-color: var(--blue); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-2, .grid-form-left { grid-template-columns: 1fr; }
  .tr-meta { grid-template-columns: repeat(3, 1fr); }
  .tr-meta > div:nth-child(5n) { border-right: 1px solid var(--line-soft); }
  .tr-meta > div:nth-child(3n) { border-right: 0; }
}
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .topnav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg2); border-bottom: 1px solid var(--line);
    padding: 10px 20px 16px;
  }
  .topnav.open { display: flex; }
  .topnav > a { padding: 10px 0; }
  .topnav-right { margin: 10px 0 0; }
  .auth-brand { display: none; }
  .app { flex-direction: column; }
  .side {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 100;
    width: 250px; transform: translateX(-100%); transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  .side.open { transform: translateX(0); }
  .side-mask {
    display: block; position: fixed; inset: 0; z-index: 99;
    background: rgba(2, 8, 24, .55); opacity: 0; pointer-events: none; transition: opacity .22s;
  }
  .side-mask.open { opacity: 1; pointer-events: auto; }
  .main { padding: 20px 16px 40px; }
  .main-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
    background: var(--panel); color: var(--muted); cursor: pointer; margin-bottom: 14px;
  }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .stats-in { flex-wrap: wrap; }
  .stat { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { border-right: 0; }
}
@media (min-width: 861px) {
  .main-burger { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 16px 48px; }
  .hero h1 { font-size: 30px; }
  .trackbox { flex-wrap: wrap; padding: 10px 14px; }
  .trackbox input { width: 100%; padding: 8px 0; }
  .trackbox .btn { width: 100%; }
  .trackbox svg { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .sec-head { padding: 40px 0 26px; }
  .sec-head h2 { font-size: 21px; }
  .form-grid, .field-row { grid-template-columns: 1fr; }
  .tr-meta { grid-template-columns: 1fr 1fr; }
  .tr-meta > div { border-right: 1px solid var(--line-soft); }
  .tr-meta > div:nth-child(2n) { border-right: 0; }
  .tr-events li { flex-direction: column; gap: 2px; }
  .ev-time { width: auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi b { font-size: 22px; }
  .page-head h1 { font-size: 18px; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar-actions { justify-content: flex-start; }
  .toolbar-actions .btn, .toolbar .import-box { flex: 1 1 auto; }
  .toolbar .import-box { display: inline-flex; }
  .toolbar .import-cnt { position: static; width: auto; margin-top: 10px; box-shadow: none; }
  .footer-in { gap: 24px; }
  .form-actions { flex-wrap: wrap; }
}

/* ============================================================
   v2.7.0 · 首页视觉重构新增样式
   ============================================================ */

/* ---------- Hero 不对称布局 ---------- */
.hero-in.hero-asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 1160px;
  text-align: left;
  align-items: center;
}
.hero-asym .hero-left { text-align: left; }
.hero-asym h1 { font-size: 44px; letter-spacing: 1px; text-align: left; margin-bottom: 16px; }
.hero-asym .hero-badge { margin-bottom: 20px; }
.hero-asym .hero-sub { margin-bottom: 28px; text-align: left; max-width: 520px; }
.hero-asym .trackbox { margin: 0 0 16px; max-width: none; }

/* Hero CTA 双按钮 */
.hero-ctas { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.hero-ctas .btn-primary { box-shadow: 0 6px 22px color-mix(in srgb, var(--blue) 40%, transparent); }
.hero-ctas .btn-ghost { border-color: var(--line); color: var(--muted); }
.hero-ctas .btn-ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* Hero 信任徽章行 */
.hero-trust { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-trust span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--muted);
}
.hero-trust svg { color: var(--ok); flex: none; }

/* ---------- Hero 粒子流动线 ---------- */
.particle-line {
  position: absolute; top: 52%; left: -60px; width: 55%; height: 2px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--cyan) 30%, transparent), transparent);
  transform: skewX(-18deg);
  overflow: hidden;
  opacity: .7;
}
.particle-line::before {
  content: ""; position: absolute; top: -3px; left: -20px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 10px var(--cyan);
  animation: particleFlow 4.5s linear infinite;
}
.particle-line::after {
  content: ""; position: absolute; top: -2px; left: -40px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue2); box-shadow: 0 0 8px var(--blue2);
  animation: particleFlow 4.5s linear infinite; animation-delay: -1.8s;
}
@keyframes particleFlow {
  0% { left: -20px; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% + 60px); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .particle-line, .particle-line::before, .particle-line::after { animation: none; } }

/* ---------- Hero Demo 追踪预览卡 ---------- */
.hero-demo {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.demo-card {
  width: 100%; max-width: 460px;
  border: 1px solid color-mix(in srgb, var(--blue) 35%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--blue) 15%, transparent);
  overflow: hidden;
  transform: rotate(-1deg);
  transition: transform .3s ease, box-shadow .3s ease;
}
.demo-card:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 14px 46px rgba(2, 8, 24, .55), 0 0 0 1px color-mix(in srgb, var(--cyan) 30%, transparent); }
.demo-card-head {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg2) 85%, transparent);
}
.demo-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.demo-dot-red { background: #ff5f57; }
.demo-dot-yellow { background: #ffbd2e; }
.demo-dot-green { background: #28c840; }
.demo-title { margin-left: 8px; font-size: 12px; color: var(--muted2); font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; letter-spacing: .5px; }
.demo-card-body { padding: 20px; }

/* 运单号行 */
.demo-waybill { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.demo-label { font-size: 11px; color: var(--muted2); letter-spacing: .5px; }
.demo-no { font-size: 17px; letter-spacing: 1px; font-variant-numeric: tabular-nums; color: var(--text); flex: 1; font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; }
.demo-status { font-size: 11px; padding: 2px 10px; border-radius: 999px; font-weight: 600; }
.demo-status-blue { color: var(--cyan); background: color-mix(in srgb, var(--cyan) 12%, transparent); border: 1px solid color-mix(in srgb, var(--cyan) 35%, transparent); }

/* 起运港 → 目的港 */
.demo-route { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.demo-city { display: flex; flex-direction: column; align-items: flex-start; min-width: 60px; }
.demo-city-right { align-items: flex-end; }
.demo-city-name { font-size: 14px; font-weight: 700; color: var(--text); }
.demo-city-sub { font-size: 11px; color: var(--muted2); }
.demo-route-line { flex: 1; height: 2px; background: var(--line); position: relative; overflow: visible; }
.demo-route-plane {
  position: absolute; top: 50%; left: 30%;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%) rotate(0deg);
  background: var(--cyan);
  clip-path: polygon(0% 45%, 40% 45%, 40% 10%, 60% 10%, 60% 45%, 100% 45%, 100% 55%, 60% 55%, 60% 90%, 40% 90%, 40% 55%, 0% 55%);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--cyan) 60%, transparent));
  animation: planeFly 3s ease-in-out infinite;
}
@keyframes planeFly {
  0% { left: 15%; }
  50% { left: 85%; }
  100% { left: 15%; }
}
@media (prefers-reduced-motion: reduce) { .demo-route-plane { animation: none; } }

/* 进度节点 */
.demo-progress { display: flex; gap: 0; margin-bottom: 18px; }
.demo-node { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.demo-node::before {
  content: ""; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px;
  background: var(--line); z-index: 0;
}
.demo-node:first-child::before { display: none; }
.demo-node-done::before, .demo-node-active::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}
.demo-node-dot {
  width: 12px; height: 12px; border-radius: 50%; background: var(--bg2);
  border: 2px solid var(--line); position: relative; z-index: 1; margin-bottom: 8px;
}
.demo-node-done .demo-node-dot { background: var(--blue); border-color: var(--blue); }
.demo-node-active .demo-node-dot {
  background: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent);
  animation: demoNodePulse 2s infinite;
}
@keyframes demoNodePulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 25%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--cyan) 0%, transparent); }
}
@media (prefers-reduced-motion: reduce) { .demo-node-active .demo-node-dot { animation: none; } }
.demo-node-label { font-size: 10px; color: var(--muted2); white-space: nowrap; margin-bottom: 3px; }
.demo-node-done .demo-node-label, .demo-node-active .demo-node-label { color: var(--text); }
.demo-node-active .demo-node-label { color: var(--cyan); font-weight: 600; }
.demo-node-time { font-size: 9.5px; color: var(--muted2); font-family: "SF Mono", "Cascadia Mono", Consolas, monospace; white-space: nowrap; }

/* 卡底部 */
.demo-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px dashed var(--line-soft);
  font-size: 11.5px;
}
.demo-footer span { color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.demo-footer svg { color: var(--cyan); }
.demo-link { color: var(--cyan); font-weight: 600; text-decoration: none; transition: color .15s; }
.demo-link:hover { color: var(--blue2); }

/* 浮动标签 */
.demo-float-tag {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--panel) 94%, transparent);
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  box-shadow: 0 8px 26px rgba(2, 8, 24, .45);
  font-size: 12px; color: var(--text);
  animation: floatTagY 3.8s ease-in-out infinite;
  backdrop-filter: blur(6px);
}
.demo-float-tag span { font-size: 15px; }
.demo-float-1 { top: 22px; left: -24px; animation-delay: 0s; }
.demo-float-2 { bottom: 40px; right: -30px; animation-delay: -1.9s; }
@keyframes floatTagY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) { .demo-float-tag { animation: none; } }

/* ---------- 服务差异化网格 ---------- */
.svc-grid-v2 {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 14px;
  padding-bottom: 56px;
}
.svc-featured {
  grid-row: 1 / span 2;
  position: relative;
  overflow: hidden;
}
.svc-featured::before {
  content: ""; position: absolute; top: -60px; right: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, color-mix(in srgb, var(--blue) 25%, transparent), transparent 65%);
  pointer-events: none;
}
.svc-featured-tag {
  display: inline-flex; align-items: center; gap: 5px;
  position: absolute; top: 14px; right: 14px;
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 999px;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent);
  z-index: 2;
}
.svc-featured-tag svg { width: 12px; height: 12px; }
.svc-featured-inner { padding-top: 24px; }
.svc-featured-inner svg {
  width: 40px; height: 40px; color: var(--cyan); margin-bottom: 16px;
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--cyan) 35%, transparent));
}
.svc-featured-inner b { font-size: 17px; margin-bottom: 8px; }
.svc-featured-inner span { font-size: 13px; line-height: 1.8; }
.svc-featured-meta {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px dashed var(--line-soft);
}
.svc-featured-meta span { font-size: 11.5px; color: var(--muted); }
.svc-featured-meta b { font-size: 11.5px; color: var(--cyan); margin-right: 2px; }

/* ---------- 保障信任条 ---------- */
.guarantee-bar {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.guarantee-in {
  max-width: 1160px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: stretch;
}
.guarantee-item {
  flex: 1; display: flex; align-items: center; gap: 12px;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
}
.guarantee-item:last-child { border-right: 0; }
.guarantee-item svg {
  width: 28px; height: 28px; color: var(--cyan); flex: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--cyan) 25%, transparent));
}
.guarantee-item b { display: block; font-size: 13px; color: var(--text); margin-bottom: 2px; }
.guarantee-item span { font-size: 11.5px; color: var(--muted2); }

/* ---------- 统计带加图标 ---------- */
.stat svg {
  width: 22px; height: 22px; color: var(--blue2); margin-bottom: 8px;
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--blue2) 25%, transparent));
}

/* ---------- 响应式（新增区块） ---------- */
@media (max-width: 1024px) {
  .hero-in.hero-asym { grid-template-columns: 1fr; gap: 40px; }
  .hero-asym h1 { font-size: 36px; text-align: center; }
  .hero-asym .hero-left { text-align: center; }
  .hero-asym .hero-sub { text-align: center; margin: 0 auto 28px; }
  .hero-asym .trackbox { margin: 0 auto 16px; }
  .hero-ctas { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-demo { max-width: 420px; margin: 0 auto; }
  .svc-grid-v2 { grid-template-columns: 1fr 1fr; }
  .svc-featured { grid-column: 1 / -1; grid-row: auto; }
}
@media (max-width: 860px) {
  .guarantee-in { flex-wrap: wrap; }
  .guarantee-item { flex: 1 1 50%; border-bottom: 1px solid var(--line); }
  .guarantee-item:nth-child(2n) { border-right: 0; }
  .guarantee-item:nth-last-child(-n+2) { border-bottom: 0; }
  .demo-float-tag { display: none; }
}
@media (max-width: 640px) {
  .hero { padding: 56px 16px 48px; }
  .hero-asym h1 { font-size: 28px; }
  .demo-card { max-width: none; transform: none; }
  .demo-progress { gap: 0; }
  .demo-node-label { font-size: 9px; }
  .demo-node-time { font-size: 8.5px; }
  .svc-grid-v2 { grid-template-columns: 1fr; }
  .guarantee-item { flex: 1 1 100%; }
  .guarantee-item { border-right: 0 !important; border-bottom: 1px solid var(--line); }
  .guarantee-item:last-child { border-bottom: 0; }
  .hero-trust { gap: 12px; }
}

/* ============================================================
   v2.7.1 · 页脚增强 + 管理端/客户端配色微调
   ============================================================ */

/* ---------- 页脚装饰光晕层（pointer-events:none 隔离） ---------- */
.footer { position: relative; overflow: hidden; }
.footer-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 300px;
  background: radial-gradient(ellipse at center, color-mix(in srgb, var(--blue) 18%, transparent) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.footer-in, .footer-regions, .footer-bar { position: relative; z-index: 1; }

/* ---------- 页脚列布局：统一四列 ---------- */
.footer-in {
  max-width: 1160px; margin: 0 auto;
  padding: 50px 20px 32px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.footer-col b {
  display: block; font-size: 13px; font-weight: 700; color: var(--text);
  margin-bottom: 14px; letter-spacing: .5px;
  padding-bottom: 8px; border-bottom: 1px solid var(--line-soft);
}
.footer-col span, .footer-col a {
  display: block; font-size: 12.5px; color: var(--muted);
  padding: 5px 0; text-decoration: none; transition: color .15s, transform .15s;
}
.footer-col a:hover { color: var(--cyan); transform: translateX(2px); }
.footer-col-brand p { color: var(--muted); font-size: 12.5px; line-height: 1.9; margin-top: 14px; max-width: 360px; }

/* ---------- 服务覆盖区域条 ---------- */
.footer-regions {
  max-width: 1160px; margin: 0 auto;
  padding: 20px 20px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  border-top: 1px dashed var(--line-soft);
}
.footer-regions b { font-size: 12px; color: var(--muted2); font-weight: 600; letter-spacing: 1px; }
.footer-regions span {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  padding: 4px 12px; border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 6%, transparent);
  border: 1px solid color-mix(in srgb, var(--blue) 15%, transparent);
  transition: all .2s;
}
.footer-regions span:hover {
  color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 35%, transparent);
  background: color-mix(in srgb, var(--cyan) 10%, transparent);
  transform: translateY(-1px);
}

/* ---------- 页脚版权条（加细上边框装饰） ---------- */
.footer-bar {
  border-top: 1px solid var(--line);
  text-align: center; padding: 18px; font-size: 12px; color: var(--muted2);
  background: color-mix(in srgb, var(--bg2) 88%, transparent);
}

/* ---------- 管理端/客户端侧栏 active 态微调配色 ---------- */
.side {
  background: linear-gradient(180deg, var(--bg2) 0%, color-mix(in srgb, var(--bg2) 95%, var(--panel) 5%) 100%);
}
.side-top {
  border-bottom: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  position: relative;
}
.side-top::after {
  content: ""; position: absolute; bottom: -1px; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--blue) 30%, transparent), transparent);
}
.mi {
  position: relative;
  border-radius: 10px;
}
.mi.on {
  background: linear-gradient(90deg, color-mix(in srgb, var(--blue-deep) 92%, transparent), color-mix(in srgb, var(--blue) 65%, transparent) 100%);
  border-left: 3px solid var(--cyan);
  box-shadow: 0 4px 16px color-mix(in srgb, var(--blue) 32%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--cyan) 20%, transparent);
}
.mi:hover:not(.on) {
  background: color-mix(in srgb, var(--blue) 8%, transparent);
  border-left: 3px solid transparent;
}

/* ---------- 应用区主背景加微渐变 ---------- */
.main {
  background:
    radial-gradient(ellipse 800px 400px at 12% -8%, color-mix(in srgb, var(--blue) 6%, transparent), transparent 70%),
    radial-gradient(ellipse 600px 300px at 88% 108%, color-mix(in srgb, var(--cyan) 5%, transparent), transparent 70%),
    var(--bg);
}

/* ---------- 面板 / KPI 卡片 hover 精致化 ---------- */
.panel, .kpi, .kpi-click, .todo-card, .todo-item {
  transition: transform .18s ease, border-color .18s ease, box-shadow .22s ease, background .18s ease;
}
.panel { box-shadow: 0 1px 3px color-mix(in srgb, var(--blue) 4%, transparent); }
.panel-h { background: linear-gradient(180deg, color-mix(in srgb, var(--panel) 92%, transparent), color-mix(in srgb, var(--panel2) 70%, transparent)); }
.kpi {
  background: linear-gradient(135deg, var(--panel) 0%, color-mix(in srgb, var(--panel2) 85%, transparent) 100%);
  position: relative; overflow: hidden;
}
.kpi::before {
  content: ""; position: absolute; top: 0; right: 0; width: 60px; height: 60px;
  background: radial-gradient(circle at top right, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%);
  pointer-events: none;
}
.kpi:hover { border-color: color-mix(in srgb, var(--blue) 45%, transparent); box-shadow: 0 4px 18px color-mix(in srgb, var(--blue) 14%, transparent); }
.kpi b { text-shadow: 0 0 12px color-mix(in srgb, var(--cyan) 20%, transparent)); }

/* ---------- 欢迎条增强 ---------- */
.welcome {
  position: relative; overflow: hidden;
}
.welcome::before {
  content: ""; position: absolute; top: -30px; right: -20px; width: 180px; height: 180px;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 12%, transparent), transparent 70%);
  pointer-events: none;
}

/* ---------- 管理端/客户端响应式（页脚相关） ---------- */
@media (max-width: 1024px) {
  .footer-in { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .footer-in { grid-template-columns: 1fr; gap: 24px; padding: 36px 20px 24px; }
  .footer-regions { gap: 10px; }
  .footer-regions span { font-size: 11px; padding: 3px 10px; }
  .footer-glow { width: 500px; top: -80px; }
}

/* ================= 【体验优化 - 追加段】 ================= */

/* ---------- A1 登录/注册品牌面板：光束 + 粒子装饰 ---------- */
.auth-brand { position: relative; overflow: hidden; }
.ab-beam {
  position: absolute; top: 30%; left: -30%; width: 24%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0; filter: blur(.4px); pointer-events: none; z-index: 0;
  animation: ab_beam 8s ease-in-out infinite;
}
@keyframes ab_beam {
  0%, 58% { left: -30%; opacity: 0; }
  62% { opacity: .9; }
  88% { left: 108%; opacity: .5; }
  100% { left: 108%; opacity: 0; }
}
.ab-p {
  position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan); pointer-events: none; opacity: .65; z-index: 0;
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--cyan) 65%, transparent);
  animation: ab_float 7s ease-in-out infinite;
}
.ab-p1 { top: 18%; left: 22%; }
.ab-p2 { top: 26%; left: 68%; width: 5px; height: 5px; animation-delay: -2.3s; }
.ab-p3 { top: 72%; left: 38%; width: 6px; height: 6px; animation-delay: -4.6s; }
@keyframes ab_float {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 6px 1px color-mix(in srgb, var(--cyan) 45%, transparent); }
  50% { transform: translateY(-10px); box-shadow: 0 0 14px 4px color-mix(in srgb, var(--cyan) 78%, transparent); }
}
.auth-brand-in { position: relative; z-index: 1; }

/* ---------- A3 页脚品牌列层级 ---------- */
.footer-col-brand .brand { margin-bottom: 8px; }
.footer-col-brand p { margin-top: 6px; color: color-mix(in srgb, var(--muted) 70%, var(--text)); }

/* ---------- A4 按钮 loading/禁用态 ---------- */
.btn:disabled, .btn[disabled] { opacity: .7; cursor: not-allowed; pointer-events: none; }
.btn:disabled:hover { transform: none; box-shadow: none; }
.btn-spin {
  display: inline-block; width: 12px; height: 12px; flex: none;
  border: 2px solid color-mix(in srgb, #fff 40%, transparent); border-top-color: #fff;
  border-radius: 50%; margin-right: 4px;
  animation: btnspin .7s linear infinite; vertical-align: -1px;
}
@keyframes btnspin { to { transform: rotate(360deg); } }

/* ---------- A5 表格空状态：支持额外态 + hover 微动 ---------- */
.td-empty { transition: background .2s ease, color .2s ease; }
.td-empty:hover { background: color-mix(in srgb, var(--blue) 3%, transparent); }
/* 普通空态（与原 .td-empty 等价，语义化命名，便于按需切换） */
.td-empty-empty::before {
  border-color: color-mix(in srgb, var(--muted2) 45%, transparent);
  background:
    radial-gradient(circle 3px at 50% 55%, color-mix(in srgb, var(--muted2) 60%, transparent) 98%, transparent),
    linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--muted2) 55%, transparent) 46%, color-mix(in srgb, var(--muted2) 55%, transparent) 54%, transparent 54%);
  background-size: 100% 100%, 14px 14px;
  background-repeat: no-repeat;
  background-position: center, center 4px;
}
/* 搜索/筛选无结果态：青色系区分 */
.td-empty-sf { color: var(--muted); }
.td-empty-sf::before {
  border-color: color-mix(in srgb, var(--cyan) 55%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--cyan) 8%, transparent) inset;
  background:
    radial-gradient(circle 3px at 50% 55%, color-mix(in srgb, var(--cyan) 70%, transparent) 98%, transparent),
    linear-gradient(115deg, transparent 46%, color-mix(in srgb, var(--cyan) 58%, transparent) 46%, color-mix(in srgb, var(--cyan) 58%, transparent) 54%, transparent 54%);
  background-size: 100% 100%, 14px 14px;
  background-repeat: no-repeat;
  background-position: center, center 4px;
}

/* ---------- A6 侧栏 .mi hover 左→右滑入青色下划线（保留 .on 态不变） ---------- */
.mi::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s ease;
  pointer-events: none;
}
.mi:hover:not(.on)::after { transform: scaleX(1); }
/* 管理端说明文本链接等不受影响 */

/* ---------- A7 登录/注册表单区装饰 ---------- */
.auth-remember {
  display: flex; align-items: center; gap: 8px;
  margin: 2px 0 18px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none;
}
.auth-remember input { width: 15px; height: 15px; accent-color: var(--cyan); cursor: pointer; margin: 0; }
.auth-banner {
  display: flex; gap: 10px; align-items: center;
  border: 1px solid color-mix(in srgb, var(--cyan) 28%, transparent);
  background: linear-gradient(90deg, color-mix(in srgb, var(--cyan) 12%, transparent), transparent);
  border-radius: 10px; padding: 11px 14px; margin-bottom: 20px; font-size: 13px; color: var(--text);
  line-height: 1.5;
}
.auth-banner .abi { font-size: 17px; flex: none; }
.auth-banner b { color: var(--cyan); }

/* ---------- B3 面包屑 ---------- */
.crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumb a { color: var(--blue2); }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: var(--muted2); }
.crumb em { font-style: normal; color: var(--text); font-weight: 600; }

/* ---------- B4 数据看板时间范围切换 ---------- */
.range-switch { display: inline-flex; gap: 4px; padding: 3px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.range-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted); padding: 6px 16px; border-radius: 8px;
  transition: all .18s ease;
}
.range-btn:hover { color: var(--text); }
.range-btn.on {
  color: #fff; font-weight: 600;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  box-shadow: 0 3px 10px color-mix(in srgb, var(--blue) 35%, transparent);
}
:root[data-theme="light"] .range-btn.on { color: #fff; }

/* ---------- track.php 最近查询标签 ---------- */
.track-recent { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; max-width: 620px; }
.track-recent-label { font-size: 12.5px; color: var(--muted2); margin-right: 2px; }
.track-recent-tag {
  font-size: 12px; color: var(--muted); border: 1px solid var(--line);
  background: var(--panel); border-radius: 999px; padding: 3px 12px; cursor: pointer;
  transition: all .16s ease;
}
.track-recent-tag:hover { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 45%, transparent); background: color-mix(in srgb, var(--cyan) 8%, transparent); }

/* ---------- B5 404 页 ---------- */
.error-page { text-align: center; padding: 70px 20px 110px; max-width: 600px; }
.error-code { font-size: 104px; font-weight: 800; color: var(--cyan); letter-spacing: 4px; line-height: 1; text-shadow: 0 0 30px color-mix(in srgb, var(--cyan) 30%, transparent); }
.error-page h1 { font-size: 24px; font-weight: 700; margin: 22px 0 10px; }
.error-page p { color: var(--muted); margin-bottom: 30px; }
.error-page .buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- 减少动效偏好：关闭新增动画 ---------- */
@media (prefers-reduced-motion: reduce) {
  .ab-beam, .ab-p { animation: none; opacity: .55; }
  .mi::after { transition: none; transform: scaleX(0); }
}
