/* 芸拓国际物流 · 运单轨迹查询（临时查件网站，2026-11-25） */
:root {
  --ink: #0b1633; --ink-2: #2c3a57; --ink-3: #56647f; --ink-4: #8592a9; --ink-5: #aab4c6;
  --line: #e6ebf3; --line-2: #d9e0eb; --bg: #f3f5fa;
  --blue: #2f6bff; --blue-2: #2156ea; --blue-3: #1739a8; --blue-4: #0f2a7a; --blue-soft: #eef3ff;
  --orange: #ff7a1a;
  --r-sm: 10px; --r: 14px; --r-lg: 20px;
  --sh-card: 0 1px 2px rgba(16, 28, 60, .05), 0 10px 30px -14px rgba(16, 36, 92, .18);
  --f-cn: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-num: "DIN Alternate", "Bahnschrift", "SF Pro Display", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --f-mono: "SFMono-Regular", "JetBrains Mono", "Cascadia Mono", Consolas, "PingFang SC", "Microsoft YaHei", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.6 var(--f-cn); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea { font: inherit; color: inherit; }
svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.grow { flex: 1; }
a { color: inherit; }

/* ---------------- 状态颜色：--c 主色，--c-soft 浅底 ---------------- */
.s-ordered   { --c: #64748b; --c-soft: #eef1f6; }
.s-warehouse { --c: #4f46e5; --c-soft: #eeedff; }
.s-transit   { --c: #2f6bff; --c-soft: #eaf1ff; }
.s-customs   { --c: #e08600; --c-soft: #fff4e2; }
.s-arrived   { --c: #7c3aed; --c-soft: #f3edff; }
.s-delivery  { --c: #0e8fb0; --c-soft: #e4f6fb; }
.s-delivered { --c: #12a464; --c-soft: #e6f7ee; }
.s-exception { --c: #e5413a; --c-soft: #fdecea; }
.s-cancelled { --c: #8a94a8; --c-soft: #eff1f5; }
.s-updated   { --c: #3d5a99; --c-soft: #edf1fa; }
.s-missing   { --c: #8a94a8; --c-soft: #f1f3f7; }
.s-busy      { --c: #c07a00; --c-soft: #fff6e5; }
.s-loading   { --c: #aab4c6; --c-soft: #f1f3f7; }

/* ---------------- 按钮 ---------------- */
.btn { height: 42px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s, border-color .18s, color .18s; background: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:disabled { opacity: .55; cursor: default; transform: none !important; }
.btn.primary { color: #fff; background: linear-gradient(180deg, #3f7bff, #2156ea); box-shadow: 0 10px 22px -10px rgba(33, 86, 234, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(33, 86, 234, .9), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn.ghost { background: #fff; border-color: var(--line-2); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.subtle { color: var(--ink-3); padding: 0 12px; }
.btn.subtle:hover { color: var(--ink); background: #f1f4fa; }
.btn.link { color: var(--blue); padding: 0 6px; font-weight: 500; }
.btn.link:hover { color: var(--blue-2); text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-3);
  display: inline-grid; place-items: center; cursor: pointer; transition: all .18s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { color: var(--blue); border-color: var(--blue); }

/* ---------------- 品牌 ---------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { display: block; border-radius: 10px; box-shadow: 0 6px 16px -6px rgba(0, 0, 0, .5); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 18px; letter-spacing: 1px; }
.brand small { font: 600 10.5px var(--f-num); letter-spacing: 2.4px; opacity: .62; margin-top: 4px; }
.brand.small b { font-size: 15px; letter-spacing: .5px; }
.brand.small small { font: 12px var(--f-cn); letter-spacing: .5px; margin-top: 2px; }

/* ---------------- 查询页 ---------------- */
.hero-wrap { position: relative; min-height: 100vh; display: flex; flex-direction: column; color: #fff; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(1100px 560px at 85% -12%, rgba(64, 120, 255, .55), transparent 62%),
    radial-gradient(800px 480px at -8% 108%, rgba(255, 122, 26, .20), transparent 62%),
    linear-gradient(160deg, #081333 0%, #0c2263 52%, #091847 100%); }
.hero-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 38%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse 85% 70% at 50% 38%, #000 25%, transparent 78%); }
.route-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: .9; }
.route-air { stroke: url(#routeLine); stroke-width: 2.2; opacity: .55; }
.route-air-flow { stroke: #fff; stroke-width: 2.2; stroke-dasharray: 2 16; opacity: .55; animation: flow 1.6s linear infinite; }
.route-sea { stroke: rgba(127, 224, 255, .35); stroke-width: 1.6; stroke-dasharray: 3 9; }
.route-end text { fill: rgba(255, 255, 255, .86); stroke: none; font: 600 15px var(--f-cn); letter-spacing: 1px; }
.route-end text.en { fill: rgba(255, 255, 255, .45); font: 600 10.5px var(--f-num); letter-spacing: 2.5px; }
.route-end circle { stroke: none; }
.route-plane path { stroke: none; filter: drop-shadow(0 0 6px rgba(127, 200, 255, .9)); }
@keyframes flow { to { stroke-dashoffset: -36; } }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px clamp(18px, 4vw, 48px); }
/* 进入芸拓 ERP（张总 2026-11-25：右上角，醒目一点） */
.erp-link { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px 0 14px; border-radius: 999px;
  color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .5px; white-space: nowrap;
  background: linear-gradient(135deg, #ffa046 0%, #ff6a00 100%);
  box-shadow: 0 12px 26px -10px rgba(255, 106, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .38);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), filter .18s; }
.erp-link::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 1.5px solid rgba(255, 160, 70, .55); animation: erp-ring 2.8s ease-out infinite; pointer-events: none; }
.erp-link:hover { transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 16px 32px -12px rgba(255, 106, 0, 1), inset 0 1px 0 rgba(255, 255, 255, .38); }
.erp-link svg { width: 18px; height: 18px; stroke-width: 2; }
.erp-link .arr { width: 15px; height: 15px; margin-left: -1px; transition: transform .18s var(--ease); }
.erp-link:hover .arr { transform: translate(2px, -2px); }
.erp-link.small { height: 38px; padding: 0 14px 0 12px; font-size: 13.5px; }
@keyframes erp-ring { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.14); } }
.bar-div { flex: none; width: 1px; height: 24px; margin: 0 4px; background: rgba(255, 255, 255, .22); }

.hero { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: clamp(10px, 4vh, 48px) 16px 24px; }
.eyebrow { margin: 0; font: 700 12px var(--f-num); letter-spacing: 4px; color: #8fb4ff; }
.hero h1 { margin: 14px 0 0; font-size: clamp(28px, 4.2vw, 46px); line-height: 1.2; font-weight: 800; letter-spacing: 1px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #ffffff 0%, #a9c6ff 45%, #ffb27a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin: 14px 0 0; max-width: 620px; font-size: 16px; color: rgba(255, 255, 255, .72); }

.query-card { width: min(780px, 100%); margin-top: clamp(22px, 4vh, 36px); padding: 20px 22px 16px; text-align: left; color: var(--ink);
  background: rgba(255, 255, 255, .97); border-radius: 22px;
  box-shadow: 0 40px 90px -36px rgba(2, 8, 36, .85), 0 0 0 1px rgba(255, 255, 255, .55) inset, 0 0 0 6px rgba(255, 255, 255, .06); }
/* 记住的单号（张总 2026-11-25：不用每次复制输入） */
.memory { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 10px 10px 12px; border-radius: 14px;
  background: linear-gradient(90deg, #edf3ff 0%, #f6f9ff 100%); border: 1px solid #d6e2ff; }
.mem-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--blue); box-shadow: 0 3px 8px -3px rgba(47, 107, 255, .45); }
.mem-icon svg { width: 17px; height: 17px; }
.mem-text { font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.mem-text b { margin: 0 2px; font: 700 16px var(--f-num); color: var(--blue); }
.mem-text small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-4); }
.memory .mem-clear { height: 34px; font-size: 13px; color: var(--ink-4); }
.memory .mem-clear:hover { color: #c2312b; }
.memory .btn.mem-go { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 10px; }
.memory .btn.mem-go svg { width: 16px; height: 16px; }
.qc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.qc-title { font-weight: 700; font-size: 15px; }
.qc-count { font-size: 13px; color: var(--ink-4); }
.qc-count b { color: var(--blue); font: 700 15px var(--f-num); margin: 0 2px; }
.drop { position: relative; }
.drop textarea { display: block; width: 100%; min-height: 190px; max-height: 46vh; resize: vertical; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: #f7f9fe; font: 15px/1.75 var(--f-mono); letter-spacing: .3px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s; }
.drop textarea::placeholder { font-family: var(--f-cn); color: var(--ink-5); letter-spacing: 0; }
.drop textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, .12); }
.drop-mask { position: absolute; inset: 0; display: none; place-items: center; align-content: center; gap: 10px; border-radius: 14px;
  border: 2px dashed var(--blue); background: rgba(238, 243, 255, .94); color: var(--blue); font-weight: 600; font-size: 15px; }
.drop-mask svg { width: 30px; height: 30px; }
.drop.is-over .drop-mask { display: grid; }
.qc-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.qc-actions .btn.primary { min-width: 150px; height: 46px; font-size: 15px; border-radius: 13px; }
.qc-note { margin: 10px 2px 0; font-size: 13px; color: var(--ink-3); }
.qc-note:empty { display: none; }
.qc-note.is-warn { color: #c2410c; }

.hint-line { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px 14px; margin: 22px 0 0; font-size: 13px; color: rgba(255, 255, 255, .58); }
.hint-line i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255, 255, 255, .3); }

.foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 18px 16px 22px; font-size: 12px; color: rgba(255, 255, 255, .45); }
.foot a { text-decoration: none; }
.foot a:hover { color: rgba(255, 255, 255, .8); }

/* ---------------- 结果页 ---------------- */
.board { height: 100vh; height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.bar { flex: none; height: 64px; display: flex; align-items: center; gap: 10px; padding: 0 clamp(12px, 2vw, 22px); color: #fff;
  background: linear-gradient(90deg, #091745 0%, #10297a 60%, #1739a8 100%); box-shadow: 0 6px 20px -12px rgba(9, 23, 69, .8); position: relative; z-index: 3; }
.bar .brand { margin-right: 14px; }
.bar-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .75); min-width: 0; }
.bar-meta b { color: #fff; font: 700 15px var(--f-num); }
.bar-meta .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .25); }
.bar-btn { height: 38px; padding: 0 14px; color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .16); }
.bar-btn:hover { background: rgba(255, 255, 255, .18); }
.bar-btn.primary { background: #fff; color: var(--blue-3); border-color: #fff; box-shadow: none; }
.bar-btn.primary:hover:not(:disabled) { background: #eef3ff; box-shadow: none; }
.progress { flex: none; height: 3px; background: rgba(47, 107, 255, .12); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2f6bff, #7fb0ff); transition: width .35s var(--ease); }

.panes { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 16px; padding: 16px clamp(12px, 2vw, 22px) 18px; }
.list-pane, .detail-pane { min-height: 0; display: flex; flex-direction: column; background: #fff; border-radius: 18px; box-shadow: var(--sh-card); overflow: hidden; }

.lp-head { flex: none; padding: 14px 14px 10px; border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-3);
  font-size: 12.5px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: all .15s; }
.filter b { font: 700 12.5px var(--f-num); color: var(--ink-4); }
.filter:hover { border-color: var(--blue); color: var(--blue); }
.filter.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter.is-on b { color: #9fb6ea; }
.lp-tools { display: flex; gap: 8px; margin-top: 10px; }
.search { flex: 1; position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 11px; width: 16px; height: 16px; color: var(--ink-4); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 12px 0 34px; border-radius: 10px; border: 1px solid var(--line-2); background: #f7f9fd; outline: none; font-size: 13px; transition: all .15s; }
.search input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47, 107, 255, .1); }
.retry { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 10px;
  background: #fff6e5; color: #8a5a00; font-size: 12.5px; }
.retry button { flex: none; border: 0; background: #fff; color: #8a5a00; font-weight: 700; font-size: 12.5px; height: 28px; padding: 0 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.retry.is-calm { background: #e8f7ef; color: #0f6e43; }
.retry.is-calm button { color: #0f6e43; }

.list { flex: 1; overflow: auto; margin: 0; padding: 8px 10px 14px; list-style: none; outline: none; scrollbar-width: thin; }
.item { position: relative; padding: 12px 14px 12px 16px; border-radius: 14px; cursor: pointer; border: 1px solid transparent; transition: background .15s, border-color .15s; }
.item + .item { margin-top: 2px; }
.item:hover { background: #f6f8fd; }
.item.is-active { background: var(--blue-soft); border-color: #d3e0ff; }
.item.is-active::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--blue); }
.it-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.it-no { font: 600 14px var(--f-mono); letter-spacing: .3px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--c); background: var(--c-soft); }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.it-latest { margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 6px; font-size: 12px; color: var(--ink-4); }
.it-meta .num { font-family: var(--f-num); }
.it-remark { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 7px; height: 20px; line-height: 20px; border-radius: 6px; background: #f1f4f9; color: var(--ink-3); }
.it-bar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin-top: 10px; }
.it-bar i { height: 4px; border-radius: 4px; background: #e9eef6; }
.it-bar i.on { background: var(--c); }
.item.is-loading .it-latest, .item.is-loading .it-meta { color: transparent; }
.sk { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #eef2f8 25%, #f7f9fc 50%, #eef2f8 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.sk.w1 { width: 70%; margin-top: 10px; } .sk.w2 { width: 40%; margin-top: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.list-empty { padding: 40px 16px; text-align: center; color: var(--ink-4); font-size: 13px; }

/* ---------------- 详情 ---------------- */
.detail-pane { position: relative; }
.dt-scroll { flex: 1; overflow: auto; scrollbar-width: thin; }
.dt-head { padding: 22px 28px 18px; background: linear-gradient(180deg, #fafbff 0%, #fff 100%); border-bottom: 1px solid var(--line); }
.dt-top { display: flex; align-items: center; gap: 10px; }
.dt-back { display: none; }
.dt-no { display: flex; align-items: center; gap: 8px; min-width: 0; font: 700 18px var(--f-mono); letter-spacing: .5px; }
.dt-no span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-no .icon-btn { width: 32px; height: 32px; border-radius: 9px; }
.dt-no .icon-btn svg { width: 15px; height: 15px; }
.dt-status { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.dt-icon { flex: none; width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: #fff;
  background: var(--c); background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 68%, #0b1633)); box-shadow: 0 12px 26px -12px var(--c); }
.dt-icon svg { width: 28px; height: 28px; stroke-width: 1.8; }
.dt-status h2 { margin: 0; font-size: 24px; line-height: 1.25; color: var(--c); letter-spacing: .5px; }
.dt-status p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.dt-status p .num { font-family: var(--f-num); color: var(--ink-3); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 18px 0 0; }
.facts div { padding: 10px 14px; border-radius: 12px; background: #f6f8fc; border: 1px solid #edf1f7; }
.facts dt { font-size: 12px; color: var(--ink-4); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facts dd .num { font: 700 17px var(--f-num); }

.stepper { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 0; padding: 22px 20px 6px; }
.step { position: relative; text-align: center; font-size: 12px; color: var(--ink-4); }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: #e8edf5; border-radius: 3px; }
.step:first-child::before { display: none; }
.step .dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; background: #eef2f8; color: var(--ink-5); transition: all .3s; }
.step .dot svg { width: 16px; height: 16px; stroke-width: 2.2; }
.step.done { color: var(--ink-2); font-weight: 600; }
.step.done::before { background: var(--c); }
.step.done .dot { background: var(--c); color: #fff; }
.step.current .dot { animation: ring 2.2s infinite; }
.step.current { color: var(--c); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--c) 40%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

.tl { padding: 14px 28px 30px; }
.tl h3 { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 14px; font-size: 15px; }
.tl h3 small { font-size: 12px; font-weight: 400; color: var(--ink-4); }
.tl ol { list-style: none; margin: 0; padding: 0; }
.tl-item { display: grid; grid-template-columns: 74px 22px minmax(0, 1fr); gap: 0 12px; position: relative; padding-bottom: 18px; }
.tl-item time { text-align: right; line-height: 1.25; padding-top: 1px; }
.tl-item time b { display: block; font: 700 14px var(--f-num); color: var(--ink-2); }
.tl-item time small { display: block; margin-top: 3px; font: 12px var(--f-num); color: var(--ink-4); }
.tl-rail { position: relative; }
.tl-rail::after { content: ""; position: absolute; left: 10px; top: 18px; bottom: -18px; width: 2px; background: #e6ebf3; }
.tl-item:last-child .tl-rail::after { display: none; }
.tl-rail i { position: absolute; left: 4px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e6; }
.tl-item p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-3); word-break: break-word; }
.tl-item.is-latest .tl-rail i { background: var(--c); border-color: var(--c); box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 18%, transparent); }
.tl-item.is-latest p { color: var(--ink); font-weight: 700; }
.tl-item.is-latest time b { color: var(--c); }
.tl-item.is-warn p { color: #c2312b; }

.empty { flex: 1; display: grid; place-items: center; align-content: center; gap: 10px; padding: 40px 24px; text-align: center; color: var(--ink-3); }
.empty .em-icon { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: var(--c, var(--blue)); background: var(--c-soft, var(--blue-soft)); }
.empty .em-icon svg { width: 34px; height: 34px; }
.empty h2 { margin: 8px 0 0; font-size: 19px; color: var(--ink); }
.empty p { margin: 0; max-width: 380px; font-size: 13.5px; line-height: 1.7; }
.empty .btn { margin-top: 8px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 11px 18px; border-radius: 12px;
  background: rgba(11, 22, 51, .94); color: #fff; font-size: 13.5px; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); animation: toast-in .25s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------------- 窄屏 ---------------- */
@media (max-width: 980px) {
  .bar-btn span { display: none; }
  .bar-btn { width: 40px; padding: 0; }
  .bar .brand small { display: none; }
}
@media (max-width: 860px) {
  .top { padding: 16px; }
  .erp-link { height: 38px; padding: 0 13px 0 11px; font-size: 13px; }
  .bar .brand span { display: none; }
  .bar .brand { margin-right: 4px; }
  .route-end text { display: none; }
  .bar-meta { display: none; }
  .panes { grid-template-columns: 1fr; padding: 10px; }
  .detail-pane { position: fixed; inset: 0; z-index: 20; border-radius: 0; transform: translateX(102%); transition: transform .32s var(--ease); }
  body.show-detail .detail-pane { transform: none; }
  .dt-back { display: inline-grid; }
  .dt-head { padding: 16px 18px 14px; }
  .stepper { padding: 18px 8px 4px; }
  .step { font-size: 11px; }
  .tl { padding: 12px 18px 28px; }
  .tl-item { grid-template-columns: 62px 22px minmax(0, 1fr); gap: 0 8px; }
}
@media (max-width: 520px) {
  .query-card { padding: 16px 14px 12px; border-radius: 18px; }
  .memory { flex-wrap: wrap; }
  .memory .grow { display: none; }
  .memory .mem-text { flex: 1; min-width: 0; }
  .memory .mem-clear { margin-left: auto; }
  .qc-actions .btn.primary { width: 100%; order: 5; }
  .qc-actions .grow { display: none; }
  .hero h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .route-plane { display: none; }
}
