/* ============================================================
   XTrack 设计系统 v1 —— 与 M&C 官网同一家族（海蓝 + 国际橙），但更克制、更细：
   · 发丝线（1px）+ 两级柔和阴影，不用大色块和大圆角（圆角 10 / 8 / 6）
   · 深色首屏：深海渐变 + 渐隐网格 + 细颗粒 + 会动的航线；其余区块留白为主
   · 状态色七种，全站同一套（chip / 进度条 / 时间线节点）
   · 明暗两套令牌；零外部字体、零 CDN；图标内联 SVG
   ============================================================ */
:root {
  --bg: #f6f9fc; --surface: #ffffff; --surface-2: #f0f5fa; --surface-3: #e8eff7;
  --line: #e1e9f2; --line-strong: #ccd9e7;
  --ink: #0b2239; --text: #3c5269; --muted: #71879d; --faint: #9db0c3;
  --brand: #0f6fd1; --brand-ink: #0a55a3; --brand-soft: #e8f2fd; --brand-line: #bcd9f6;
  --accent: #ff5a1f; --accent-ink: #d8440c; --accent-soft: #fff0e9;
  --st-none: #8597a9; --st-info: #5f7893; --st-transit: #0f6fd1; --st-ofd: #d98200;
  --st-ok: #0c9a68; --st-bad: #d63b3b; --st-return: #7356e8;
  --deep-1: #051523; --deep-2: #0a2a48; --deep-3: #0e406d;
  --r-lg: 10px; --r: 8px; --r-sm: 6px;
  --sh-1: 0 1px 2px rgba(11, 34, 57, .05);
  --sh-2: 0 1px 2px rgba(11, 34, 57, .04), 0 8px 24px rgba(15, 111, 209, .08);
  --sh-3: 0 2px 6px rgba(5, 21, 35, .08), 0 24px 60px rgba(5, 21, 35, .18);
  --grid: rgba(15, 111, 209, .07);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --sans: -apple-system, "Segoe UI Variable Text", "Segoe UI", "PingFang SC", "HarmonyOS Sans SC", "MiSans",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Mono", Consolas, Menlo, "Roboto Mono", monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07121d; --surface: #0d1b2a; --surface-2: #122437; --surface-3: #182e45;
  --line: #1c3148; --line-strong: #2a4462;
  --ink: #e9f1f9; --text: #b3c4d5; --muted: #8197ad; --faint: #5d748b;
  --brand: #4ea6f7; --brand-ink: #8cc6fb; --brand-soft: rgba(78, 166, 247, .13); --brand-line: rgba(78, 166, 247, .35);
  --accent: #ff7440; --accent-ink: #ff9468; --accent-soft: rgba(255, 116, 64, .13);
  --st-none: #7f93a7; --st-info: #8ea6bf; --st-transit: #4ea6f7; --st-ofd: #f0a530;
  --st-ok: #2fc48d; --st-bad: #f06a6a; --st-return: #9f8bff;
  --sh-1: 0 1px 2px rgba(0, 0, 0, .3);
  --sh-2: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px rgba(0, 0, 0, .35);
  --sh-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 70px rgba(0, 0, 0, .55);
  --grid: rgba(78, 166, 247, .07);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.7 var(--sans); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: var(--brand-soft); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); letter-spacing: 0; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 880px; }
[data-icon] { display: inline-flex; width: 1em; height: 1em; flex: none; vertical-align: -.125em; }
[data-icon] svg { width: 100%; height: 100%; }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); transition: background .25s, border-color .25s; }
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand svg { width: 28px; height: 28px; }
.brand small { font: 500 10.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 5px; letter-spacing: .04em; }
.nav-links { display: flex; gap: 4px; margin-right: auto; }
.nav-links a { color: var(--text); font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: var(--r-sm); white-space: nowrap; transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.on { color: var(--brand); background: var(--brand-soft); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--text); font-size: 17px; transition: .15s; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.lang-btn { width: auto; padding: 0 9px; font: 600 12px/1 var(--mono); letter-spacing: .03em; }
.nav-burger { display: none; }
/* 深色首屏上的顶栏：透明压在首屏上，滚动后恢复实底 */
body[data-hero="dark"] .nav:not(.scrolled) { background: transparent; border-color: rgba(255, 255, 255, .08); backdrop-filter: none; -webkit-backdrop-filter: none; }
body[data-hero="dark"] .nav:not(.scrolled) :is(.brand, .nav-links a, .icon-btn) { color: #dbe9f6; }
body[data-hero="dark"] .nav:not(.scrolled) .brand small { color: #9fc0de; border-color: rgba(255, 255, 255, .2); }
body[data-hero="dark"] .nav:not(.scrolled) :is(.nav-links a, .icon-btn):hover { background: rgba(255, 255, 255, .08); color: #fff; }
body[data-hero="dark"] .nav:not(.scrolled) .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .04); }
body[data-hero="dark"] main { margin-top: -65px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: var(--r-sm);
  border: 1px solid transparent; font-size: 14px; font-weight: 600; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s, border-color .15s, color .15s; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 92%, #fff), var(--brand)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 1px 2px rgba(10, 85, 163, .3); }
.btn-primary:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 6px 16px rgba(15, 111, 209, .32); transform: translateY(-1px); }
.btn-accent { background: linear-gradient(180deg, #ff6e38, var(--accent)); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 2px rgba(216, 68, 12, .35); }
.btn-accent:hover { color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 20px rgba(255, 90, 31, .35); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--brand-line); background: var(--brand-soft); }
.btn-danger { background: none; color: var(--st-bad); border-color: color-mix(in srgb, var(--st-bad) 35%, transparent); }
.btn-danger:hover { color: var(--st-bad); background: color-mix(in srgb, var(--st-bad) 9%, transparent); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: var(--r); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; font-size: inherit; }
.link-btn:hover { color: var(--brand-ink); text-decoration: underline; }

/* ---------- 小件：chip / 标签 / 卡片 ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--c, var(--muted)); background: color-mix(in srgb, var(--c, var(--muted)) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c, var(--muted)) 22%, transparent); }
.chip i.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.live i.dot { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.tag { display: inline-block; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line-strong); border-radius: 4px; padding: 3px 6px; }
.tag.warn { color: var(--st-ofd); border-color: color-mix(in srgb, var(--st-ofd) 40%, transparent); }
.st-not_found, .st-unsupported, .st-unknown_carrier, .st-unavailable, .st-invalid { --c: var(--st-none); }
.st-info_received { --c: var(--st-info); } .st-in_transit { --c: var(--st-transit); } .st-out_for_delivery { --c: var(--st-ofd); }
.st-delivered { --c: var(--st-ok); } .st-exception { --c: var(--st-bad); } .st-returned { --c: var(--st-return); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.card-pad { padding: 22px 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 15px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- 首屏 ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #cfe1f2; padding: 148px 0 96px;
  background: radial-gradient(900px 480px at 78% 8%, rgba(30, 132, 216, .38), transparent 62%),
    radial-gradient(700px 420px at 8% 100%, rgba(255, 90, 31, .13), transparent 60%),
    linear-gradient(160deg, var(--deep-1) 0%, var(--deep-2) 58%, var(--deep-3) 100%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 78%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .07; mix-blend-mode: overlay; pointer-events: none; }
.hero-routes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.hero-routes path { fill: none; stroke: rgba(140, 198, 251, .22); stroke-width: 1.2; stroke-dasharray: 3 7; }
.hero-routes circle.node { fill: #8cc6fb; opacity: .55; }
.hero-routes .parcel { fill: var(--accent); filter: drop-shadow(0 0 6px rgba(255, 110, 56, .9)); offset-rotate: 0deg; animation: fly 9s linear infinite; }
.hero-routes .parcel.p2 { animation-duration: 12s; animation-delay: -4s; fill: #8cc6fb; filter: drop-shadow(0 0 6px rgba(140, 198, 251, .9)); }
.hero-routes .parcel.p3 { animation-duration: 15s; animation-delay: -9s; }
@keyframes fly { from { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 56px; align-items: center; }
/* align-self：在 flex 列容器里（登录页左栏）inline-flex 会被拉满整列宽 */
.eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: #bfe0fb;
  background: rgba(140, 198, 251, .1); border: 1px solid rgba(140, 198, 251, .24); }
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: #36d399; box-shadow: 0 0 0 3px rgba(54, 211, 153, .2); }
.hero h1 { color: #fff; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; letter-spacing: -.025em; margin: 20px 0 18px; font-weight: 750; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #8cc6fb, #fff 55%, #ffb493); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 17px; line-height: 1.75; color: #a9c4dd; max-width: 560px; }
.hero-hints { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: 13px; color: #8fb0cf; }
.hero-hints span { display: inline-flex; align-items: center; gap: 7px; }
.hero-hints [data-icon] { color: #36d399; font-size: 14px; }

/* ---------- 查询框 ---------- */
.trackbox { margin-top: 30px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: var(--sh-3); transition: box-shadow .2s, border-color .2s; }
.trackbox:focus-within { border-color: var(--brand); box-shadow: var(--sh-3), 0 0 0 4px color-mix(in srgb, var(--brand) 22%, transparent); }
.trackbox-main { display: flex; align-items: flex-start; gap: 10px; padding: 10px 10px 10px 16px; }
.trackbox-main > [data-icon] { font-size: 20px; color: var(--muted); margin-top: 12px; }
.trackbox textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: none; color: var(--ink); font: 500 16px/1.6 var(--mono); padding: 9px 0; max-height: 168px; }
.trackbox textarea::placeholder { color: var(--faint); font-family: var(--sans); font-weight: 400; }
.trackbox-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); background: var(--surface-2); border-radius: 0 0 11px 11px; min-height: 42px; }
.trackbox-foot .spacer { margin-left: auto; }
.trackbox.compact { box-shadow: var(--sh-2); margin-top: 0; }
.trackbox.compact:focus-within { box-shadow: var(--sh-2), 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }

/* ---------- 首屏右侧示例卡 ---------- */
.preview { position: relative; border-radius: 14px; padding: 22px; color: #d6e6f5; background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .035));
  border: 1px solid rgba(255, 255, 255, .13); box-shadow: 0 30px 80px rgba(2, 10, 20, .5), inset 0 1px 0 rgba(255, 255, 255, .14); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.preview::before { content: ""; position: absolute; inset: -1px; border-radius: 15px; padding: 1px; background: linear-gradient(140deg, rgba(140, 198, 251, .55), transparent 40%, transparent 65%, rgba(255, 110, 56, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-no { font: 600 14px/1.3 var(--mono); color: #fff; }
.preview .tag { color: #9fc0de; border-color: rgba(255, 255, 255, .2); }
.preview-carrier { font-size: 12.5px; color: #8fb0cf; margin-top: 3px; }
.preview .stepper { margin: 22px 0 18px; --track: rgba(255, 255, 255, .14); --c: #36d399; }
.preview .stepper li { color: #8fb0cf; } .preview .stepper li.done { color: #d6e6f5; }
.preview .timeline li { border-color: rgba(255, 255, 255, .1); }
.preview .timeline .t-desc { color: #e6f0fa; } .preview .timeline .t-meta { color: #8fb0cf; }
.preview .timeline li::before { background: #0b2c4b; border-color: rgba(255, 255, 255, .3); }
.preview .timeline li::after { background: rgba(255, 255, 255, .12); }
.preview-float { position: absolute; right: -14px; bottom: -18px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; color: #0b2239; background: #fff; box-shadow: 0 16px 40px rgba(2, 10, 20, .4); }
.preview-float b { display: block; font-size: 13px; } .preview-float [data-icon] { font-size: 20px; color: var(--st-ok); }

/* ---------- 进度条（五格）与时间线 ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); --track: var(--line-strong); }
.stepper li { position: relative; text-align: center; font-size: 11.5px; color: var(--muted); padding-top: 22px; }
.stepper li::before { content: ""; position: absolute; top: 5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--track); z-index: 1; box-sizing: border-box; }
.stepper li::after { content: ""; position: absolute; top: 9px; left: -50%; width: 100%; height: 2px; background: var(--track); }
.stepper li:first-child::after { display: none; }
.stepper li.done { color: var(--ink); font-weight: 600; }
.stepper li.done::before { background: var(--c); border-color: var(--c); }
.stepper li.done::after { background: var(--c); }
.stepper li.now::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.preview .stepper li::before { background: #0b2c4b; }
.preview .stepper li.done::before { background: var(--c); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 26px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); z-index: 1; box-sizing: border-box; }
.timeline li::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: -8px; width: 1px; background: var(--line-strong); }
.timeline li:last-child::after { display: none; }
.timeline li.first::before { background: var(--c, var(--brand)); border-color: var(--c, var(--brand)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--brand)) 20%, transparent); }
.timeline .t-desc { color: var(--ink); font-size: 14px; line-height: 1.55; }
.timeline li.first .t-desc { font-weight: 600; }
.timeline .t-meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- 通用区块 ---------- */
.section { padding: 88px 0; }
.section.tint { background: var(--surface); border-block: 1px solid var(--line); position: relative; }
.section.tint::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000, transparent 60%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 60%); pointer-events: none; }
.section.tint > * { position: relative; }
.sec-head { max-width: 640px; margin-bottom: 44px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.kicker { font: 600 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 18px; height: 1px; background: currentColor; }
.sec-head h2 { font-size: clamp(26px, 3vw, 34px); margin: 14px 0 12px; letter-spacing: -.02em; }
.sec-head p { font-size: 16px; color: var(--text); }

.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; }
.page-head::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 60% 100% at 85% 0%, #000, transparent 70%); }
.page-head > * { position: relative; }
.page-head h1 { font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.02em; margin: 12px 0 10px; }
.page-head p { font-size: 16px; max-width: 640px; }

/* 承运商墙 */
.carrier-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 10px; }
.carrier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .15s, box-shadow .15s, transform .15s; }
.carrier:hover { border-color: var(--brand-line); box-shadow: var(--sh-2); transform: translateY(-1px); }
.carrier-mark { width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; font: 700 12px/1 var(--mono); color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); flex: none; }
/* 名称与副标题都不换行：承运商名长短差很多，一换行卡片高度就参差不齐 */
.carrier b, .carrier small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.carrier b { color: var(--ink); font-size: 14px; line-height: 1.35; }
.carrier small { color: var(--muted); font-size: 12px; line-height: 1.35; }
.carrier .chip { flex: none; height: 20px; font-size: 11px; padding: 0 7px; }

/* 特性格：发丝线网格，不是一张张浮起来的卡 */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.feat { background: var(--surface); padding: 28px 26px 30px; position: relative; transition: background .2s; }
.feat:hover { background: color-mix(in srgb, var(--brand-soft) 45%, var(--surface)); }
.feat-ic { width: 38px; height: 38px; border-radius: var(--r); display: grid; place-items: center; font-size: 19px; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); margin-bottom: 18px; }
.feat h3 { font-size: 16px; margin-bottom: 8px; }
.feat p { font-size: 14px; line-height: 1.7; }
.feat .num { position: absolute; right: 22px; top: 24px; font: 600 11px/1 var(--mono); color: var(--faint); letter-spacing: .08em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: s; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.step::before { counter-increment: s; content: "0" counter(s); position: absolute; top: -1px; left: 0; height: 2px; width: 44px; background: var(--accent); font: 600 12px/1 var(--mono); color: var(--accent); padding-top: 12px; letter-spacing: .08em; }
.step h3 { font-size: 17px; margin: 22px 0 8px; }
.step p { font-size: 14.5px; }

/* 代码窗 */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; font-size: 14.5px; }
.ticks [data-icon] { color: var(--st-ok); font-size: 17px; margin-top: 4px; }
.code { border-radius: var(--r-lg); overflow: hidden; background: #071a2b; border: 1px solid #16324d; box-shadow: var(--sh-3); color: #cfe1f2; }
.code-bar { display: flex; align-items: center; gap: 4px; padding: 0 8px 0 14px; height: 42px; border-bottom: 1px solid #16324d; background: #0a2238; }
.code-bar .dots { display: flex; gap: 6px; margin-right: 12px; } .code-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: #1d3b59; }
.code-tab { height: 28px; padding: 0 11px; border: 0; border-radius: 5px; background: none; color: #7f9dbb; font: 600 12px/1 var(--mono); }
.code-tab:hover { color: #cfe1f2; } .code-tab.on { background: #15314d; color: #fff; }
.code-copy { margin-left: auto; color: #7f9dbb; } .code-copy:hover { background: #15314d; color: #fff; }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; font: 13px/1.75 var(--mono); tab-size: 2; }
.code .k { color: #8cc6fb; } .code .s { color: #9be3b9; } .code .c { color: #5f7f9e; } .code .n { color: #ffb493; }
pre.inline-code, code.inline { font-family: var(--mono); font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; }
code.inline { padding: 1px 6px; color: var(--ink); } pre.inline-code { padding: 14px 16px; overflow-x: auto; color: var(--ink); line-height: 1.7; margin: 12px 0; }

/* ---------- 定价 ---------- */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { height: 32px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--text); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1), 0 0 0 1px var(--line); }
.seg .save { font: 600 11px/1 var(--mono); color: var(--st-ok); }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 26px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); position: relative; transition: box-shadow .2s, transform .2s, border-color .2s; }
.plan:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--line-strong); }
.plan.hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--sh-2); }
.plan.hot::before { content: attr(data-badge); position: absolute; top: -11px; left: 22px; height: 22px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; }
.plan h3 { font-size: 16px; } .plan .tagline { font-size: 13px; color: var(--muted); margin-top: 2px; min-height: 22px; }
.price { display: flex; align-items: baseline; gap: 6px; margin: 20px 0 4px; color: var(--ink); }
.price b { font-size: 36px; line-height: 1; font-weight: 750; letter-spacing: -.03em; } .price span { font-size: 13px; color: var(--muted); }
.price-note { font-size: 12.5px; color: var(--muted); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; flex: 1; align-content: start; }
.plan li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.5; } .plan li [data-icon] { color: var(--st-ok); margin-top: 3px; font-size: 15px; } .plan li b { color: var(--ink); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: .03em; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
table.t tr:last-child td { border-bottom: 0; } table.t tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
table.t td.num, table.t th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t .strong { color: var(--ink); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); } .faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; color: var(--ink); font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 20px/1 var(--mono); color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--brand); }
.faq details p { padding: 0 22px 20px; font-size: 14.5px; max-width: 760px; }

/* ---------- 引流带 ---------- */
.lead { position: relative; isolation: isolate; overflow: hidden; border-radius: 14px; padding: 48px; color: #cfe1f2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center;
  background: radial-gradient(600px 300px at 90% 0%, rgba(255, 90, 31, .22), transparent 60%), linear-gradient(150deg, var(--deep-1), var(--deep-2) 60%, var(--deep-3)); box-shadow: var(--sh-3); }
.lead::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .08; mix-blend-mode: overlay; }
.lead h2 { color: #fff; font-size: clamp(24px, 2.8vw, 30px); margin: 14px 0 12px; letter-spacing: -.02em; }
.lead .kicker { color: #ffb493; } .lead p { color: #a9c4dd; font-size: 15.5px; }
.lead-form { display: grid; gap: 10px; padding: 20px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.lead-form :is(input, textarea) { width: 100%; border-radius: var(--r-sm); border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 21, 35, .45); color: #fff; padding: 10px 12px; font-size: 14px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.lead-form :is(input, textarea)::placeholder { color: #7f9dbb; }
.lead-form :is(input, textarea):focus { border-color: #8cc6fb; box-shadow: 0 0 0 3px rgba(140, 198, 251, .18); }
.lead-form textarea { resize: vertical; min-height: 72px; }

/* ---------- 合作伙伴 ---------- */
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.partner { position: relative; display: flex; flex-direction: column; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s; }
.partner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--brand) 55%, transparent); opacity: 0; transition: opacity .2s; }
.partner:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); transform: translateY(-2px); } .partner:hover::before, .partner.featured::before { opacity: 1; }
.partner-top { display: flex; gap: 16px; align-items: flex-start; }
.partner-ic { width: 46px; height: 46px; flex: none; border-radius: 10px; display: grid; place-items: center; font-size: 22px; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.partner.featured .partner-ic { color: #fff; border-color: transparent; background: linear-gradient(140deg, #1d84d8, #0a4a7a); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 6px 16px rgba(15, 111, 209, .28); }
.partner h3 { font-size: 17px; } .partner-tagline { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.partner-desc { font-size: 14.5px; margin-top: 18px; } .partner-ticks { margin: 16px 0 0; gap: 9px; } .partner-ticks li { font-size: 13.5px; } .partner-ticks [data-icon] { font-size: 15px; margin-top: 4px; }
.partner-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 22px; }
.partner.compact { padding: 18px 20px; } .partner.compact .partner-ic { width: 38px; height: 38px; font-size: 18px; } .partner.compact h3 { font-size: 15px; } .partner.compact .partner-foot { padding-top: 14px; }
.partner-strip { margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--line-strong); }
.partner-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: 13px; color: var(--muted); } .partner-strip-head b { color: var(--ink); font-size: 14px; }
.become { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--surface-2); border-style: dashed; box-shadow: none; }

/* ---------- 页脚 ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 28px; margin-top: 88px; font-size: 13.5px; position: relative; }
.footer::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--brand) 40%, transparent 80%); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; } .footer ul a { color: var(--text); } .footer ul a:hover { color: var(--brand); }
.footer-note { max-width: 320px; margin-top: 14px; color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
body.app .footer { margin-top: 56px; }

/* ---------- 查询结果 ---------- */
.results-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 26px 0 16px; }
.results-bar h2 { font-size: 17px; margin-right: 8px; }
.filter { height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.filter b { font-family: var(--mono); color: var(--muted); font-weight: 600; } .filter:hover { border-color: var(--brand-line); }
.filter.on { background: var(--ink); border-color: var(--ink); color: var(--bg); } .filter.on b { color: inherit; opacity: .7; }
.result { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 12px; overflow: hidden; transition: border-color .2s, box-shadow .2s; position: relative; }
.result::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--c); opacity: .9; }
.result:hover { border-color: var(--line-strong); box-shadow: var(--sh-2); }
.result-head { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 20px 18px 22px; background: none; border: 0; text-align: left; }
.result-ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 21px; color: var(--c); background: color-mix(in srgb, var(--c) 11%, transparent); border: 1px solid color-mix(in srgb, var(--c) 24%, transparent); }
.result-no { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.result-no b { font: 600 15.5px/1.3 var(--mono); color: var(--ink); letter-spacing: 0; word-break: break-all; }
.result-latest { font-size: 13.5px; color: var(--text); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-side { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 12px; }
.result-side [data-icon] { font-size: 16px; transition: transform .2s; } .result.open .result-side [data-icon] { transform: rotate(180deg); }
.result-body { display: none; padding: 4px 22px 22px 22px; border-top: 1px solid var(--line); }
.result.open .result-body { display: block; }
.result-body .stepper { margin: 22px 0 26px; }
.result-meta { display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-strong); font-size: 12.5px; color: var(--muted); }
.result-meta .spacer { margin-left: auto; }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r); font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); margin-top: 18px; color: var(--text); }
.notice [data-icon] { font-size: 18px; color: var(--muted); margin-top: 3px; } .notice b { color: var(--ink); }
.notice.warn { background: color-mix(in srgb, var(--st-ofd) 8%, transparent); border-color: color-mix(in srgb, var(--st-ofd) 28%, transparent); } .notice.warn [data-icon] { color: var(--st-ofd); }
.notice.bad { background: color-mix(in srgb, var(--st-bad) 7%, transparent); border-color: color-mix(in srgb, var(--st-bad) 26%, transparent); } .notice.bad [data-icon] { color: var(--st-bad); }
.notice.good { background: color-mix(in srgb, var(--st-ok) 8%, transparent); border-color: color-mix(in srgb, var(--st-ok) 26%, transparent); } .notice.good [data-icon] { color: var(--st-ok); }
.empty { text-align: center; padding: 64px 24px; color: var(--muted); }
.empty-ic { width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 18px; display: grid; place-items: center; font-size: 26px; color: var(--brand); background: var(--brand-soft); border: 1px solid var(--brand-line); }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.skeleton { border-radius: var(--r-lg); height: 82px; margin-bottom: 12px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 300% 100%; border: 1px solid var(--line); animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- 表单 ---------- */
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field .hint { font-size: 12.5px; color: var(--muted); }
.input, .select { width: 100%; height: 42px; padding: 0 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-size: 14.5px; outline: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.input.sm, .select.sm { height: 34px; font-size: 13.5px; }
.form-error { display: none; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; color: var(--st-bad); background: color-mix(in srgb, var(--st-bad) 8%, transparent); border: 1px solid color-mix(in srgb, var(--st-bad) 25%, transparent); margin-bottom: 16px; }
.form-error.show { display: block; }

.auth { min-height: calc(100vh - 65px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; isolation: isolate; overflow: hidden; color: #cfe1f2; padding: 64px 56px; display: flex; flex-direction: column; justify-content: center;
  background: radial-gradient(600px 400px at 80% 10%, rgba(30, 132, 216, .38), transparent 62%), linear-gradient(160deg, var(--deep-1), var(--deep-2) 60%, var(--deep-3)); }
.auth-side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--noise); opacity: .07; mix-blend-mode: overlay; }
.auth-side h2 { color: #fff; font-size: 30px; letter-spacing: -.02em; margin: 16px 0 14px; } .auth-side p { color: #a9c4dd; max-width: 420px; }
.auth-side .ticks li { color: #d6e6f5; } .auth-side .ticks [data-icon] { color: #36d399; }
.auth-main { display: grid; place-items: center; padding: 48px 24px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; } .auth-card .seg { width: 100%; margin: 22px 0 24px; } .auth-card .seg button { flex: 1; justify-content: center; }

/* ---------- 控制台 / 后台 ---------- */
.app-shell { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; padding: 32px 0 0; align-items: start; }
.side { position: sticky; top: 88px; display: grid; gap: 2px; }
.side button { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; }
.side button [data-icon] { font-size: 16px; color: var(--muted); }
.side button:hover { background: var(--surface-2); color: var(--ink); }
.side button.on { background: var(--brand-soft); color: var(--brand); font-weight: 600; } .side button.on [data-icon] { color: var(--brand); }
.side .badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font: 700 11px/18px var(--mono); text-align: center; }
.panel { display: none; } .panel.on { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel > h1 { font-size: 22px; margin-bottom: 4px; } .panel > .sub { color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.stat { padding: 18px 20px; } .stat small { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.stat b { font-size: 26px; line-height: 1.1; color: var(--ink); font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; } .stat span { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.meter { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 14px 0 8px; }
.meter i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #36d399)); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter.warn i { background: linear-gradient(90deg, var(--st-ofd), var(--accent)); } .meter.full i { background: var(--st-bad); }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; align-items: end; height: 120px; margin-top: 8px; }
.bars div { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font: 11px/1 var(--mono); color: var(--muted); }
.bars i { display: block; width: 100%; max-width: 44px; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--brand) 30%, transparent); transition: height .5s; }
.bars div:last-child i { background: var(--brand); } .bars b { font-weight: 600; color: var(--text); }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 10px 16px; font-size: 14px; } .kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--ink); }
.keybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--brand-line); font: 13px/1.5 var(--mono); color: var(--ink); word-break: break-all; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; } .toolbar .input { max-width: 280px; }

/* ---------- 弹窗 / 轻提示 ---------- */
.modal-mask { position: fixed; inset: 0; z-index: 100; background: rgba(5, 21, 35, .55); backdrop-filter: blur(3px); display: grid; place-items: center; padding: 24px; animation: fade .18s; }
.modal { width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); animation: pop .22s cubic-bezier(.2, .9, .3, 1.2); max-height: calc(100vh - 48px); overflow: auto; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); } .modal-head h3 { font-size: 16px; }
.modal-body { padding: 22px; } .modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 14px 14px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.toasts { position: fixed; z-index: 120; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-size: 13.5px; font-weight: 500; box-shadow: var(--sh-3); animation: pop .22s; max-width: 380px; }
.toast.bad { background: var(--st-bad); color: #fff; }

/* ---------- 文档页 ---------- */
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 48px; padding-top: 40px; align-items: start; }
.doc-nav { position: sticky; top: 88px; display: grid; gap: 1px; font-size: 13.5px; border-left: 1px solid var(--line); }
.doc-nav a { color: var(--text); padding: 6px 14px; margin-left: -1px; border-left: 1px solid transparent; } .doc-nav a:hover { color: var(--ink); }
.doc-nav a.on { color: var(--brand); border-color: var(--brand); font-weight: 600; }
.doc-nav span { font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 16px 14px 6px; }
.doc-body { min-width: 0; }
.doc-body section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); } .doc-body section:last-child { border: 0; }
.doc-body h2 { font-size: 22px; margin-bottom: 12px; letter-spacing: -.015em; } .doc-body h3 { font-size: 15.5px; margin: 26px 0 8px; }
.doc-body p { margin-bottom: 12px; } .doc-body .code { margin: 16px 0; box-shadow: none; }
.endpoint { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font: 600 13.5px/1.4 var(--mono); color: var(--ink); margin: 14px 0; overflow-x: auto; white-space: nowrap; }
.method { font-size: 11px; padding: 3px 7px; border-radius: 4px; color: #fff; background: var(--st-ok); letter-spacing: .04em; } .method.post { background: var(--brand); }

/* ---------- 404 ---------- */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 24px; }
.nf b { display: block; font: 750 96px/1 var(--mono); letter-spacing: -.04em; color: var(--ink); background: linear-gradient(135deg, var(--brand), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-grid, .split, .lead { grid-template-columns: 1fr; } .preview-wrap { max-width: 480px; } .hero { padding: 124px 0 72px; }
  .plans { grid-template-columns: repeat(2, 1fr); } .feat-grid { grid-template-columns: repeat(2, 1fr); } .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; } .lead { padding: 36px 28px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; padding: 10px 16px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--sh-2); margin: 0; }
  .nav.open .nav-links { display: flex; } .nav.open { background: var(--surface) !important; } .nav.open :is(.brand, .nav-links a, .icon-btn) { color: var(--ink) !important; }
  .nav-links a { padding: 11px 12px; font-size: 15px; } .nav-burger { display: inline-grid; } .nav-in { gap: 12px; } .nav-right { margin-left: auto; } .nav-right .btn-ghost { display: none; }
  .auth { grid-template-columns: 1fr; } .auth-side { display: none; }
  /* minmax(0,1fr)：1fr 的下限是内容宽度，文档页里 nowrap 的 endpoint 行会把整格撑出屏幕 */
  .app-shell, .doc { grid-template-columns: minmax(0, 1fr); gap: 20px; } .side { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 6px; } .doc-nav { display: none; }
  .steps { grid-template-columns: 1fr; } .grid-2, .partner-grid { grid-template-columns: minmax(0, 1fr); } .section { padding: 64px 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; } .plans, .feat-grid, .stat-grid, .footer-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 32px; } .hero-sub { font-size: 15.5px; }
  /* 窄屏：按钮独占一行；输入框留够两行高——占位文案在 390px 下必然折行，rows=1 会把第二行切掉 */
  .trackbox-main { flex-wrap: wrap; padding: 10px 12px; } .trackbox-main > [data-icon] { display: none; } .trackbox-main .btn { width: 100%; }
  .trackbox textarea { flex-basis: 100%; min-height: 62px; }
  .result-head { grid-template-columns: auto minmax(0, 1fr); padding: 14px 14px 14px 18px; gap: 12px; } .result-side { grid-column: 1 / -1; justify-content: space-between; } .result-body { padding: 4px 16px 18px 18px; }
  .stepper li { font-size: 10.5px; } .preview-float { right: 8px; } .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 10px; } .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } .hero-routes .parcel { display: none; } }
@media print { .nav, .footer, .trackbox, .results-bar .filter, .toasts { display: none !important; } .result-body { display: block !important; } body { background: #fff; } }
