/* ============================================================
   Central Asia Trucking — 样式
   - 亮/暗主题（跟随系统 + 手动覆盖）
   - 响应式：1440 / 1024 / 860 / 640 / 420
   - 组件：Header、语言菜单、抽屉、地图、卡片、FAQ、表单、移动 CTA
   ============================================================ */

/* ---------- 主题变量 ---------- */
:root {
  --navy: #0B1F3A;
  --navy-2: #122C4F;
  --amber: #F5A524;
  --amber-2: #E8820C;
  --teal: #12B3A8;
  --blue: #2F80ED;
  --purple: #8B5CF6;

  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --surface-2: #F6F9FD;
  --ink: #16233A;
  --muted: #5C6B82;
  --line: #E3E8F0;
  --chip: #EEF3FA;
  --chip-border: #DCE6F2;
  --header-bg: rgba(255, 255, 255, .86);
  --header-line: rgba(227, 232, 240, .9);
  --shadow-sm: 0 2px 8px rgba(11, 31, 58, .06);
  --shadow: 0 12px 32px rgba(11, 31, 58, .10);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, .16);

  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans", system-ui, -apple-system, sans-serif;
  --maxw: 1180px;
  --header-h: 72px;

  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B1220;
  --surface: #121B2B;
  --surface-2: #0F1826;
  --ink: #E7EEF9;
  --muted: #93A4BE;
  --line: #233349;
  --chip: #182437;
  --chip-border: #26374F;
  --header-bg: rgba(11, 18, 32, .88);
  --header-line: rgba(35, 51, 73, .9);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow: 0 14px 34px rgba(0, 0, 0, .45);
  --shadow-lg: 0 26px 64px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

/* ---------- 基础 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .25s ease, color .25s ease;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.container {
  width: min(var(--maxw), calc(100% - 40px));
  margin-inline: auto;
}

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 3000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--amber);
  color: #23180A;
  font-weight: 700;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #23180A;
  box-shadow: 0 8px 22px rgba(245, 165, 36, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(245, 165, 36, .42); }
.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber-2); }
.btn-ghost {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}
.icon-btn:hover { border-color: var(--amber); color: var(--amber-2); }
.icon-btn svg { width: 19px; height: 19px; }

/* ---------- 头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--header-line);
  transition: box-shadow .2s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--header-h);
  min-width: 0;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-width: 0; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.brand-text small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }

.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}
.nav a:hover { background: var(--chip); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 6px; flex-shrink: 0; }

.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  padding: 0 10px;
}
.lang-btn > svg { width: 18px; height: 18px; flex-shrink: 0; }
.lang-btn .chev { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.lang-code { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; }
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 190px;
  padding: 6px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  z-index: 1300;
}
.lang-menu li { margin: 0; }
.lang-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--ink);
}
.lang-menu button:hover, .lang-menu button[aria-selected="true"] { background: var(--chip); }
.lang-menu .native { font-weight: 600; }
.lang-menu .english { font-size: 12px; color: var(--muted); }

.theme-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: auto;
  padding: 0 12px;
}
.theme-text { font-size: 12.5px; font-weight: 600; }
.theme-icon { width: 18px; height: 18px; display: grid; place-items: center; }
.theme-icon svg { width: 18px; height: 18px; }

.menu-btn { display: none; flex-direction: column; justify-content: center; gap: 4px; }
.menu-btn span { display: block; width: 18px; height: 2px; margin-inline: auto; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 抽屉 ---------- */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1400;
  background: rgba(5, 12, 24, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .22s ease;
}
.drawer-backdrop.open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1500;
  width: min(380px, 88vw);
  padding: 18px 20px 28px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  transform: translateX(105%);
  transition: transform .26s cubic-bezier(.22, .8, .3, 1);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.drawer.open { transform: translateX(0); }
.drawer[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head strong { font-size: 17px; }
.drawer-nav { display: flex; flex-direction: column; gap: 4px; }
.drawer-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid transparent;
}
.drawer-nav a:hover { border-color: var(--line); }
.drawer-nav a::after { content: "→"; color: var(--muted); font-weight: 400; }
.drawer-section { display: flex; flex-direction: column; gap: 10px; }
.drawer-section h4 { margin: 0; font-size: 12px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.lang-list { display: flex; flex-direction: column; gap: 6px; }
.lang-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
}
.lang-list button[aria-selected="true"] { border-color: var(--amber); background: rgba(245, 165, 36, .1); }
.lang-list .native { font-weight: 600; }
.lang-list .english { font-size: 12px; color: var(--muted); }

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.segmented button {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  padding: 88px 0 76px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 82% 8%, rgba(245, 165, 36, .22), transparent 62%),
    radial-gradient(760px 460px at 8% 92%, rgba(47, 128, 237, .22), transparent 60%),
    linear-gradient(180deg, #0B1F3A 0%, #0E2749 100%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  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: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .kicker { color: var(--amber); }
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.hero-sub { margin: 0 0 28px; color: rgba(228, 238, 252, .82); font-size: 17px; max-width: 60ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-stats li { display: flex; flex-direction: column; min-width: 84px; }
.hero-stats strong { font-size: 25px; color: var(--amber); letter-spacing: -.01em; }
.hero-stats span { font-size: 13px; color: rgba(228, 238, 252, .68); }

.hero-card {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}
.mini-route {
  position: relative;
  height: 150px;
  border-radius: 14px;
  background:
    radial-gradient(280px 120px at 20% 20%, rgba(47, 128, 237, .22), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  border: 1px solid rgba(255, 255, 255, .12);
  overflow: hidden;
}
.mini-line {
  position: absolute;
  left: 22px; right: 22px; top: 78px;
  height: 2px;
  background: linear-gradient(90deg, rgba(245, 165, 36, .2), rgba(245, 165, 36, .95));
  border-radius: 2px;
}
.mini-truck {
  position: absolute;
  top: 58px; left: 14px;
  width: 34px; height: 20px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35));
  animation: truckMove 9s ease-in-out infinite;
}
@keyframes truckMove {
  0%   { left: 14px;  opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: calc(100% - 56px); opacity: 0; }
}
.mini-dot {
  position: absolute;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(245, 165, 36, .22);
  top: 74px;
}
.d1 { left: 20px; } .d2 { left: 38%; } .d3 { left: 66%; } .d4 { right: 20px; }
.mini-label { position: absolute; font-size: 10.5px; color: rgba(255, 255, 255, .72); top: 96px; }
.l1 { left: 14px; } .l2 { left: 33%; } .l3 { left: 61%; } .l4 { right: 10px; }
.hero-card-foot { display: flex; gap: 8px; margin-top: 18px; }
.pill {
  font-size: 11.5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: rgba(255, 255, 255, .8);
}
.pill-amber { background: rgba(245, 165, 36, .16); border-color: rgba(245, 165, 36, .4); color: #FFD58A; }

/* ---------- 通用区块 ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 760px; margin-bottom: 42px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.section-sub { margin: 0; color: var(--muted); font-size: 16px; max-width: 72ch; }
.kicker {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-2);
}

/* ---------- 地图 ---------- */
.map-panel {
  position: relative;
  height: 560px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  min-width: 0;
}
.map-canvas { position: absolute; inset: 0; z-index: 1; }

.route-tabs {
  position: absolute;
  z-index: 500;
  top: 14px; left: 14px; right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.route-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(11, 31, 58, .12);
  background: rgba(255, 255, 255, .94);
  font-size: 12.5px;
  font-weight: 600;
  color: #33425B;
  box-shadow: 0 4px 14px rgba(11, 31, 58, .08);
  transition: transform .16s ease, background .16s ease, color .16s ease;
  white-space: nowrap;
}
.route-tab:hover { transform: translateY(-1px); }
.route-tab i { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.route-tab .tab-mode { font-weight: 400; opacity: .72; font-size: 11px; }
.route-tab[aria-selected="true"] { background: #0B1F3A; color: #fff; border-color: #0B1F3A; }

.map-legend {
  position: absolute;
  z-index: 500;
  left: 14px; bottom: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 4px 14px rgba(11, 31, 58, .1);
  font-size: 11.5px;
  color: #33425B;
}
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend em { font-style: normal; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-origin { background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .25); }
.dot-port { background: var(--blue); box-shadow: 0 0 0 3px rgba(47, 128, 237, .22); }
.dot-city { background: #94A3B8; }
.dot-dest { background: #E5484D; box-shadow: 0 0 0 3px rgba(229, 72, 77, .22); }

.leaflet-container { font-family: var(--font); background: #DCE6F2; }
[data-theme="dark"] .leaflet-container { background: #1E1E1E; }
[data-theme="dark"] .leaflet-control-attribution { background: rgba(11, 18, 32, .75) !important; color: #9FB0C8 !important; }
[data-theme="dark"] .leaflet-control-attribution a { color: #C8D6EA !important; }
[data-theme="dark"] .leaflet-bar a { background: #16202F !important; color: #E7EEF9 !important; border-color: #233349 !important; }
.leaflet-control-attribution { font-size: 10px !important; opacity: .8; }
.city-label {
  background: rgba(11, 31, 58, .88);
  border: none;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
  white-space: nowrap;
}
.city-label::before { display: none; }
.city-label.port { background: rgba(47, 128, 237, .92); }
.city-label.dest { background: rgba(229, 72, 77, .92); }
.truck-icon { background: none; border: none; }
.truck-badge {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #0B1F3A;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(11, 31, 58, .35);
  animation: truckPulse 2s ease-in-out infinite;
}
.truck-badge svg { width: 18px; height: 18px; }
.truck-svg { transform-origin: 50% 50%; transition: transform .25s ease; }
@keyframes truckPulse {
  0%, 100% { box-shadow: 0 6px 14px rgba(11, 31, 58, .35), 0 0 0 0 rgba(245, 165, 36, .55); }
  50%      { box-shadow: 0 6px 14px rgba(11, 31, 58, .35), 0 0 0 9px rgba(245, 165, 36, 0); }
}

.fallback-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: var(--surface-2);
  padding: 72px 18px 18px;
  display: none;
  flex-direction: column;
  gap: 10px;
}
.fallback-wrap:not([hidden]) { display: flex; }
.fallback-note { margin: 0; font-size: 12.5px; color: var(--muted); }
#fallbackMap { flex: 1; min-height: 0; }
#fallbackMap svg { width: 100%; height: 100%; }
[data-theme="dark"] #fallbackMap svg { filter: invert(.92) hue-rotate(180deg); }

/* 路线详情 */
.detail-panel {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  min-width: 0;
}
.d-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.d-head { display: flex; flex-direction: column; gap: 8px; }
.d-badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(245, 165, 36, .14);
  color: var(--amber-2);
}
[data-theme="dark"] .d-badge { color: #FFD58A; }
.d-head h3 { margin: 0; font-size: 20px; line-height: 1.3; overflow-wrap: anywhere; }
.d-summary { margin: 0; color: var(--muted); font-size: 13.5px; }
.d-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.d-meta div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.d-meta dt { font-size: 11.5px; color: var(--muted); }
.d-meta dd { margin: 0; font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.d-meta .wide { grid-column: 1 / -1; }
.d-block h4 { margin: 0 0 10px; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--amber), var(--blue));
  opacity: .5;
  border-radius: 2px;
}
.timeline li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13.5px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -18px; top: 13px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--amber);
}
.timeline li.is-port::before { border-color: var(--blue); }
.timeline li.is-dest::before { border-color: #E5484D; }
.timeline .tl-name { color: var(--ink); }
.timeline .tl-day { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 12.5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--ink);
  border: 1px solid var(--chip-border);
}
.chip-warn { background: rgba(245, 165, 36, .12); border-color: rgba(245, 165, 36, .35); color: var(--amber-2); }
[data-theme="dark"] .chip-warn { color: #FFD58A; }

.doc-list li, .note-list li { position: relative; padding-left: 16px; font-size: 13px; color: var(--muted); margin-bottom: 7px; overflow-wrap: anywhere; }
.doc-list li::before { content: "▸"; position: absolute; left: 0; color: var(--amber-2); }
.note-list li::before { content: "•"; position: absolute; left: 2px; color: var(--amber-2); }
.d-distance {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--muted);
}
.d-distance b { font-size: 22px; color: var(--ink); letter-spacing: -.01em; }

/* ---------- 服务 ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.service-card {
  position: relative;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  min-width: 0;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--chip-border); }
.service-badge {
  position: absolute;
  top: 14px; right: 14px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(245, 165, 36, .14);
  border: 1px solid rgba(245, 165, 36, .35);
  color: var(--amber-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
}
[data-theme="dark"] .service-badge { color: #FFD58A; }
.service-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(245, 165, 36, .18), rgba(245, 165, 36, .07));
  color: var(--amber-2);
  margin-bottom: 15px;
}
.service-icon svg { width: 23px; height: 23px; }
.service-card h3 { margin: 0 0 8px; font-size: 17px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- 口岸 ---------- */
.gateway-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.gateway-card {
  position: relative;
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-width: 0;
}
.gateway-card::after {
  content: "";
  position: absolute;
  right: -30px; top: -30px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, .14), transparent 70%);
}
.gateway-card h3 { margin: 0 0 4px; font-size: 16px; }
.gw-country {
  display: inline-block;
  font-size: 11.5px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--chip);
  color: var(--muted);
  margin-bottom: 10px;
}
.gateway-card p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- 提货与交付 ---------- */
.pickup-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 20px; align-items: stretch; }
.pickup-card { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); min-width: 0; }
.pickup-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 17px; }
.pickup-card h4 { margin: 22px 0 8px; font-size: 12.5px; letter-spacing: .08em; color: var(--muted); }
.pickup-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.pickup-icon-ok { background: rgba(30, 122, 68, .16); color: #1E7A44; }
[data-theme="dark"] .pickup-icon-ok { color: #6FD39A; }
.pickup-icon-go { background: rgba(47, 128, 237, .16); color: #2F5597; }
[data-theme="dark"] .pickup-icon-go { color: #8FB8F5; }
.pickup-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.pickup-note-gap { margin-top: 22px; }
.pickup-desc { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.75; }

/* ---------- 费用 ---------- */
.fee-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fee-card { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.fee-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-size: 17px; }
.fee-sign { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; flex-shrink: 0; }
.fee-in { border-top: 3px solid var(--teal); }
.fee-in .fee-sign { background: var(--teal); }
.fee-out { border-top: 3px solid #E5484D; }
.fee-out .fee-sign { background: #E5484D; }
.fee-card li { position: relative; padding-left: 18px; margin-bottom: 9px; font-size: 14px; color: var(--muted); }
.fee-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.fee-note { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--amber); }

/* ---------- 流程 ---------- */
.process-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.process-list li { position: relative; padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); min-width: 0; }
.process-list li::before { counter-increment: step; content: "0" counter(step); display: block; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--amber-2); margin-bottom: 10px; }
.process-list h3 { margin: 0 0 6px; font-size: 15px; }
.process-list p { margin: 0; font-size: 12.5px; color: var(--muted); }
.process-list li::after { content: ""; position: absolute; top: 50%; right: -14px; width: 14px; height: 2px; background: var(--line); }
.process-list li:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; transition: box-shadow .2s ease, border-color .2s ease; }
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--chip-border); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; font-weight: 400; color: var(--amber-2); transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 14px; max-width: 74ch; }

/* ---------- 询价 ---------- */
.quote-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; }
.contact-list { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; gap: 14px; font-size: 14px; align-items: baseline; min-width: 0; }
.contact-list span { width: 78px; color: var(--muted); flex-shrink: 0; font-size: 13px; }
.contact-list b, .contact-list a { font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--amber-2); }

.quote-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.field input, .field select {
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--amber); box-shadow: 0 0 0 3px rgba(245, 165, 36, .2); background: var(--surface); }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.form-hint { margin: 0; font-size: 13px; min-height: 20px; color: var(--teal); }
.form-hint.error { color: #E5484D; }
.form-hint a { color: var(--amber-2); text-decoration: underline; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: rgba(233, 240, 250, .86); padding: 60px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 40px; }
.footer-brand { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: #fff; }
.footer-tag { margin: 0 0 16px; font-size: 13px; color: rgba(233, 240, 250, .62); }
.footer-note { margin: 0; font-size: 12px; color: rgba(233, 240, 250, .45); max-width: 380px; }
.site-footer h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(233, 240, 250, .55); }
.footer-contact li { display: flex; gap: 10px; font-size: 13px; margin-bottom: 10px; min-width: 0; }
.footer-contact span { width: 52px; color: rgba(233, 240, 250, .5); flex-shrink: 0; }
.footer-contact b, .footer-contact a { color: #fff; font-weight: 500; overflow-wrap: anywhere; }
.footer-links a { font-size: 13px; color: rgba(233, 240, 250, .72); display: block; padding: 5px 0; }
.footer-links a:hover { color: var(--amber); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 42px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: rgba(233, 240, 250, .45); }
.back-top-link { color: rgba(233, 240, 250, .6); }
.back-top-link:hover { color: var(--amber); }

/* ---------- 移动 CTA / 返回顶部 ---------- */
.mobile-cta {
  display: none;
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 1100;
  gap: 10px;
  padding: 8px;
  border-radius: 16px;
  background: var(--header-bg);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.mobile-cta .btn { flex: 1; min-height: 44px; padding: 10px 14px; font-size: 14px; }

.back-top {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 1150;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.back-top svg { width: 20px; height: 20px; }
.back-top.show { opacity: 1; transform: none; }
.back-top:hover { border-color: var(--amber); color: var(--amber-2); }
.back-top[hidden] { display: none; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 断点 ---------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-btn { display: flex; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .brand-text strong, .brand-text small { max-width: 180px; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 72px 0 60px; }
  .hero-card { max-width: 560px; }
  .map-panel { height: 500px; }
  .detail-panel { grid-template-columns: 1fr 1fr; }
  .pickup-grid { grid-template-columns: 1fr; }
  .quote-wrap { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .theme-text { display: none; }
  .theme-btn { width: 40px; padding: 0; }
}

@media (max-width: 860px) {
  :root { --header-h: 62px; }
  .header-cta { display: none; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 15px; max-width: 160px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gateway-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .process-list li:nth-child(3n)::after { display: none; }
  .fee-grid { grid-template-columns: 1fr; }
  .detail-panel { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 84px; }
  .back-top { bottom: 92px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  .map-panel { height: 440px; }
  .route-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .route-tabs::-webkit-scrollbar { display: none; }
  .route-tab { flex: 0 0 auto; }
  .hero-stats { gap: 24px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .brand-text strong { max-width: 112px; }
  .lang-btn { padding: 0 9px; }
  .lang-btn > svg { display: none; }
  .hero { padding: 56px 0 44px; }
  .hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
  .hero-sub { font-size: 15px; }
  .hero-card { display: none; }
  .card-grid, .gateway-grid { grid-template-columns: 1fr; }
  .process-list { grid-template-columns: 1fr 1fr; }
  .process-list li::after { display: none; }
  .map-panel { height: 400px; }
  .map-legend { left: 10px; right: 10px; bottom: 10px; justify-content: center; border-radius: 14px; }
  .route-tabs { left: 10px; right: 10px; top: 10px; gap: 6px; }
  .route-tab { padding: 7px 11px; font-size: 11.5px; }
  .detail-panel { padding: 20px; }
  .d-meta { grid-template-columns: 1fr; }
  .pickup-card, .fee-card, .quote-form { padding: 20px; }
  .field-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 1.45rem; }
  .quote-wrap { gap: 24px; }
  .contact-list span { width: 66px; }
  .faq-item summary { padding: 15px 16px; font-size: 14px; }
  .faq-item .faq-a { padding: 0 16px 16px; font-size: 13.5px; }
}

@media (max-width: 420px) {
  .map-panel { height: 360px; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero-stats li { min-width: 0; }
  .mobile-cta { left: 8px; right: 8px; bottom: 8px; }
  .mobile-cta .btn { font-size: 13px; }
  body { padding-bottom: 78px; }
  .back-top { right: 12px; bottom: 88px; width: 42px; height: 42px; }
}

@media (max-width: 360px) {
  .brand-text { display: none; }
  .header-inner { gap: 8px; }
  .brand-text strong { max-width: 140px; }
}

/* ---------- 可访问性 / 打印 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mini-truck { animation: none; left: 42%; }
  .truck-badge { animation: none; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .btn:hover, .service-card:hover, .route-tab:hover { transform: none; }
}

@media print {
  .site-header, .drawer, .drawer-backdrop, .mobile-cta, .back-top, .map-panel, .hero-card { display: none !important; }
  body { background: #fff; color: #000; padding-bottom: 0; }
  .section { padding: 16px 0; }
  a { text-decoration: underline; }
}
