/* ============================================================
   CE Logistics · 响应式适配
   Tablet  769–1024px  ·  Mobile  ≤ 768px
   设计原则：手机/平板各自为政，不是把桌面版压扁。
============================================================ */

/* 所有断点：navbar 一致固定在屏幕顶部 */
.header {
  position: sticky !important;
  top: 0 !important;
  z-index: 200 !important;
}

/* ─────────────────────────────────────────
   0) 桌面端共享 chrome 调整（≥ 1025px）
      - nav 链接更宽松
      - 语言切换换成 3 段式真入口
      - 下载按钮降权（次按钮，不抢主 CTA）
   ───────────────────────────────────────── */
@media (min-width: 1025px) {
  .header { height: auto !important; padding: 14px 0 !important; }
  .header .header-inner { gap: 56px !important; }
  .header .nav-list { gap: 6px !important; }
  .header .nav-list a {
    padding: 10px 18px;
    font-size: 14.5px;
    letter-spacing: 0.01em;
  }

  /* 语言切换：3 段式 pill，明确「这是切换语言入口」
     真 DOM 由 mobile-nav.js 注入 (.lang-pill)、原 .lang-switch 隐藏 */
  .header .lang-switch { display: none !important; }
  .header .lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 3px;
    height: 32px;
    border-radius: 9999px;
    border: 1px solid var(--color-border-subtle, #e5e5e5);
    background: var(--color-bg-page, #fafbfd);
    font-size: 13px; font-weight: 500;
  }
  .header .lang-pill .seg {
    padding: 0 12px;
    height: 100%;
    display: inline-flex; align-items: center;
    border-radius: 9999px;
    color: var(--color-text-tertiary, #737373);
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    border: 0; background: transparent;
    transition: color 150ms;
  }
  .header .lang-pill .seg:hover { color: var(--color-text-primary, #0c1422); }
  .header .lang-pill .seg.is-active {
    background: var(--color-primary, #1F4B82);
    color: #fff;
    font-weight: 600;
  }
  .header .lang-pill .sep {
    color: var(--color-border-default, #d4d4d4);
    pointer-events: none;
  }

  /* 下载按钮：图标 + 文字、改成次按钮，不再抢 hero 主 CTA
     用 background-color 专一特化，避免 shorthand 被继承冲掉 */
  .header { --button-primary-bg: transparent; --button-primary-bg-hover: transparent; }
  .header .btn.btn-primary,
  .header a.btn-primary,
  .header .btn-primary {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--color-text-primary, #0c1422) !important;
    border: 1px solid var(--color-border-default, #d4d4d4) !important;
    box-shadow: none !important;
    font-weight: 500 !important;
    transition: border-color 150ms, background-color 150ms;
  }
  .header .btn-primary:hover,
  .header .btn-primary:active {
    background-color: var(--color-bg-subtle, #f5f5f5) !important;
    background-image: none !important;
    border-color: var(--color-text-tertiary, #737373) !important;
    transform: none !important;
    box-shadow: none !important;
  }
  .header .btn-primary svg {
    color: var(--color-secondary, #D81F26);
  }

  /* 给 header-right 一点呼吸 */
  .header .header-right { gap: 14px; }
}

/* ─────────────────────────────────────────
   1) 全局 mobile chrome (drawer / tab targets)
   ───────────────────────────────────────── */

/* Hamburger */
.mobile-nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--color-border-subtle, rgba(0,0,0,0.1));
  border-radius: 12px;
  cursor: pointer; color: inherit; flex: none;
}
.mobile-nav-toggle svg { width: 22px; height: 22px; }

/* Drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 500;
  display: none; pointer-events: none;
}
.mobile-drawer.is-open { display: block; pointer-events: auto; }
.mobile-drawer-scrim {
  position: absolute; inset: 0;
  background: rgba(8, 18, 36, 0.55);
  opacity: 0; transition: opacity 220ms ease;
}
.mobile-drawer.is-open .mobile-drawer-scrim { opacity: 1; }
.mobile-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(86vw, 360px);
  background: #fff;
  display: flex; flex-direction: column;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(32px + env(safe-area-inset-bottom));
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: -16px 0 48px rgba(0,0,0,0.18);
}
.mobile-drawer.is-open .mobile-drawer-panel { transform: translateX(0); }
.mobile-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-subtle, #eee);
}
.mobile-drawer-head .logo img { height: 28px; display: block; }
.mobile-drawer-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: 0; cursor: pointer;
  color: var(--color-text-secondary, #444); border-radius: 8px;
}
.mobile-drawer-close:hover { background: var(--color-bg-subtle, #f4f5f7); }
.mobile-drawer-nav { list-style: none; padding: 8px 0 0; margin: 0; }
.mobile-drawer-nav li { border-bottom: 1px solid var(--color-border-subtle, #eee); }
.mobile-drawer-nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 4px;
  font-size: 17px; font-weight: 500;
  color: var(--color-text-primary, #0c1422); text-decoration: none;
}
.mobile-drawer-nav a.active { color: var(--color-primary, #1F4B82); }
.mobile-drawer-nav a::after { content: "›"; color: #9aa3b2; font-size: 22px; line-height: 1; }
.mobile-drawer-cta {
  display: flex; flex-direction: column; gap: 10px; padding-top: 20px;
}
.mobile-drawer-cta .btn { width: 100%; justify-content: center; }

/* 抽屉底部：语言横排 + Footer */
.mobile-drawer-foot {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--color-border-subtle, #eee);
  display: flex; flex-direction: column; gap: 14px;
}
.mobile-drawer-lang-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--color-text-tertiary, #9aa3b2);
}
.mobile-drawer-lang {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px;
  border-radius: 9999px;
  border: 1px solid var(--color-border-subtle, #e5e5e5);
  background: var(--color-bg-page, #fafbfd);
}
.mobile-drawer-lang .seg {
  height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 9999px;
  font-size: 14px; font-weight: 500;
  color: var(--color-text-secondary, #525252);
  background: transparent; border: 0; cursor: pointer;
  transition: all 150ms;
}
.mobile-drawer-lang .seg.is-active {
  background: var(--color-primary, #1F4B82); color: #fff; font-weight: 600;
}
body.no-scroll { overflow: hidden; }

/* mobile-only elements default-hidden on desktop */
.m-only { display: none; }

/* ============================================================
   TABLET  769–1024px
   接近手机体验：hero 堆叠 + 2 栏网格
============================================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  body { max-width: 100vw; }
  img, svg { max-width: 100%; }
  .container { padding-left: 28px !important; padding-right: 28px !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }

  /* hero 堆叠 */
  .hero-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
  .hero h1 { font-size: clamp(44px, 6vw, 64px) !important; line-height: 1.06 !important; }
  .hero-art { max-width: 720px; margin: 0 auto; }

  /* 2 栏网格 */
  .adv-grid, .svc-grid, .vas-grid, .stats-grid, .testi-grid,
  .num-grid, .val-grid, .team-grid, .help-grid, .faq-grid,
  .partner-grid, .price-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .hero-meta { grid-template-columns: repeat(2, 1fr) !important; gap: 24px !important; }

  /* footer 2 栏 */
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 32px !important; }
  .footer-brand { grid-column: 1 / -1; }

  .calc-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .result-sticky { position: static !important; }
  .result-grid { grid-template-columns: 1fr !important; gap: 28px !important; }
  .mission-grid, .fp-grid, .certs-grid { grid-template-columns: 1fr !important; gap: 36px !important; }

  /* services compare table — 平板下也变成卡片，不横向滚动 */
  .svc-compare { display: block !important; background: transparent !important; border: 0 !important; }
  .svc-compare .svc-cmp-head { display: none !important; }
  .svc-cmp-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    background: #fff !important;
    border: 1px solid var(--color-border-subtle, #e5e7eb) !important;
    border-radius: 14px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    overflow: hidden;
    min-width: 0 !important;
  }
  .svc-cmp-row > div { padding: 14px 18px !important; font-size: 13px !important; display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--color-border-subtle, #f0f1f4); }
  .svc-cmp-row > div::before { font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: var(--color-text-tertiary, #9aa3b2); }
  .svc-cmp-row > div:nth-child(1) { grid-column: 1 / -1; background: var(--color-bg-subtle, #f6f7f9); font-weight: 700; font-size: 15px !important; flex-direction: row !important; align-items: center; }
  .svc-cmp-row > div:nth-child(1)::before { content: none; }
  .svc-cmp-row > div:nth-child(2)::before { content: "时效"; }
  .svc-cmp-row > div:nth-child(3)::before { content: "起步价"; }
  .svc-cmp-row > div:nth-child(4)::before { content: "计费方式"; }
  .svc-cmp-row > div:nth-child(5)::before { content: "典型货物"; }
  .svc-cmp-row > div:nth-child(4),
  .svc-cmp-row > div:nth-child(5) { grid-column: 1 / -1; }
  .svc-cmp-row > div:last-child { border-bottom: 0; }
}

/* ============================================================
   MOBILE  ≤ 768px
   原生手机体验
============================================================ */
@media (max-width: 768px) {

  /* ---------- 全局 ---------- */
  :root { font-size: 15px; }
  /* 不要在 html/body 上设 overflow-x:hidden — 会破坏 position:sticky 的 header */
  body { -webkit-text-size-adjust: 100%; min-width: 0 !important; max-width: 100vw; }
  img, svg, video, canvas, iframe { max-width: 100%; height: auto; }
  .container { padding-left: 18px !important; padding-right: 18px !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }
  .m-only { display: block; }
  .d-only { display: none !important; }

  /* ---------- Header ---------- */
  .header {
    position: sticky !important;
    top: 0 !important;
    z-index: 200 !important;
    /* 为 iPhone 灵动岛 / 刘海预留空间 */
    padding: calc(12px + env(safe-area-inset-top)) 0 12px !important;
    height: auto !important;
    background: rgba(255,255,255,0.94) !important;
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
  }
  .header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
  }
  .header .nav-list,
  .header .lang-switch,
  .header .lang-pill,
  .header .header-cta,
  .header .btn-primary,
  .header .btn { display: none !important; }       /* 下载/主按钮入抽屉、桌面版语言隐藏 */
  .header .logo {
    display: inline-flex !important;
    align-items: center;
    flex: none !important;
  }
  .header .logo img {
    display: block !important;
    height: 28px !important;
    width: auto !important;
    max-width: none !important;
  }
  .header .header-right {
    margin-left: auto !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px !important;
  }

  /* 三档位： logo │ 语言迷你切换 │ 汉堡 */
  .mobile-lang-mini {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 12px;
    border-radius: 9999px;
    border: 1px solid var(--color-border-subtle, #e5e5e5);
    background: #fff;
    color: var(--color-text-secondary, #525252);
    font-size: 13px; font-weight: 600;
    line-height: 1; letter-spacing: 0.02em;
    cursor: pointer;
  }
  .mobile-lang-mini svg { width: 14px; height: 14px; color: var(--color-text-tertiary, #737373); }
  .mobile-lang-mini:hover { border-color: var(--color-text-tertiary, #737373); }
  .mobile-nav-toggle { display: inline-flex !important; }

  /* ---------- Hero — 通用 ---------- */
  .hero { padding: 40px 0 32px !important; }
  .hero-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
  .hero h1 {
    font-size: clamp(32px, 7.6vw, 42px) !important;
    line-height: 1.10 !important; letter-spacing: -0.02em !important;
    margin-bottom: 16px !important; max-width: none !important;
  }
  .hero-sub, .hero p.lead {
    font-size: 15.5px !important; line-height: 1.6 !important;
    margin-bottom: 22px !important; max-width: none !important;
  }
  .hero-eyebrow { font-size: 11px !important; margin-bottom: 14px !important; }
  .hero-cta {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    width: 100%;
    align-items: stretch !important;
  }
  .hero-cta .btn {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    justify-content: center;
    padding: 0 12px !important;
    font-size: 14px !important;
    white-space: nowrap;
  }
  .hero-cta .btn svg { flex: none; }
  .icon-bullets { display: none !important; }                /* 手机移除 */
  .hero-meta {
    display: grid !important; grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px 14px !important; margin-top: 24px !important; padding-top: 20px !important;
    border-top: 1px solid rgba(255,255,255,0.12) !important;
  }
  .hero-meta .item { min-width: 0; }
  .hero-meta .num { font-size: 20px !important; line-height: 1.1 !important; white-space: nowrap; }
  .hero-meta .num span { font-size: 12px !important; vertical-align: top; }
  .hero-meta .lbl, .hero-meta .item .lbl { font-size: 11px !important; line-height: 1.35 !important; }
  .hero-art { display: none !important; }                    /* 隐藏插画 */
  .hero::before, .hero::after { opacity: 0.35 !important; }

  /* ---------- Section heading ---------- */
  .section { padding: 56px 0 !important; }
  .section-head { margin-bottom: 24px !important; flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .section-h2 { font-size: 28px !important; line-height: 1.18 !important; letter-spacing: -0.02em !important; }
  .section-head .lead, .section-head p { font-size: 14px !important; }

  /* ---------- 按钮 ---------- */
  .btn { min-height: 48px; padding: 0 22px; font-size: 15px; }

  /* ---------- 卡片通用 padding ---------- */
  .adv, .svc-card, .vas, .stat, .quote, .help-card, .faq-card,
  .val, .person, .num-cell, .card-pad, .status-card, .price-tier {
    padding: 20px !important;
  }

  /* ============================================================
     横滑 carousel —— 用于服务/优势/评价
  ============================================================ */
  .adv-grid:not(.svc-grid),
  .svc-grid,
  .testi-grid,
  .team-grid {
    grid-template-columns: none !important;
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 12px !important;
    padding: 4px 18px 16px !important;
    margin: 0 -18px !important;
    scrollbar-width: none;
  }
  .adv-grid::-webkit-scrollbar,
  .svc-grid::-webkit-scrollbar,
  .testi-grid::-webkit-scrollbar,
  .team-grid::-webkit-scrollbar { display: none; }

  .adv-grid > *,
  .svc-grid > *,
  .testi-grid > *,
  .team-grid > * {
    flex: 0 0 80% !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .svc-grid > .svc-card { flex: 0 0 78% !important; scroll-snap-align: center; }
  .team-grid > .person { flex: 0 0 64% !important; }

  /* ---------- 单列网格 ---------- */
  .vas-grid, .num-grid, .val-grid, .help-grid, .faq-grid,
  .partner-grid, .price-grid, .stats-grid {
    grid-template-columns: 1fr !important; gap: 12px !important;
  }
  /* 数据 stat 在首页特殊处理见下 */

  /* ============================================================
     HOMEPAGE 专用
  ============================================================ */

  /* Hero：突出追单输入框 + 主 CTA */
  /* 底部 CTA 下载区 — 三个商店徽章居中堆叠 */
  .cta-band .cta-inner { text-align: center; }
  .cta-band .cta-actions {
    justify-content: center !important;
  }
  .store-badges {
    align-items: center !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .store-badges .store {
    width: 100% !important;
    max-width: 280px !important;
    justify-content: center !important;
  }

  /* 首页 track-bar 卡 — 不再向上叠压 hero，给一段呼吸 */
  .track-bar { margin-top: 24px !important; padding: 0 0 32px !important; }
  .track-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    grid-template-columns: none !important;
    padding: 18px !important; border-radius: 18px !important;
    gap: 12px !important;
  }
  .track-card > * { width: 100% !important; }
  .track-card .lbl { text-align: left; }
  .track-card .t-meta,
  .track-card .meta { font-size: 12px !important; }
  .track-card .track-input,
  .track-bar .track-input {
    height: 52px !important; font-size: 16px !important;
    width: 100% !important;
  }
  .track-card .btn { width: 100% !important; min-height: 52px !important; }

  /* 数据墙 — 全屏深色（保持页面无横滚，不用负 margin 出血） */
  section.stats {
    background: linear-gradient(165deg, #0F2A4F 0%, #061327 100%) !important;
    color: #fff !important;
    padding: 56px 18px 64px !important;
    margin: 0 !important;
    border-radius: 0 !important;
  }
  section.stats .container { padding: 0 !important; max-width: 100% !important; }
  section.stats .section-h2 { color: #fff !important; }
  section.stats .section-tag {
    background: rgba(255,255,255,0.10) !important;
    color: #fff !important;
  }
  section.stats .section-sub,
  section.stats .section-head p,
  section.stats .section-head .lead {
    color: rgba(255,255,255,0.72) !important;
  }
  section.stats .stats-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
  }
  section.stats .stat {
    background: rgba(255,255,255,0.04) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 14px !important;
    padding: 20px 18px !important;
    text-align: center;
  }
  section.stats .stat .num { color: #fff !important; font-size: 32px !important; }
  section.stats .stat .lbl, section.stats .stat p { color: rgba(255,255,255,0.65) !important; font-size: 12px !important; }

  /* 流程 process — 垂直时间线（左圆右内容）*/
  section.process { padding: 48px 0 !important; }
  .process-track,
  .process-grid,
  .process-steps {
    grid-template-columns: 1fr !important;
    position: relative;
    display: grid !important;
    gap: 8px !important;
  }
  /* 隐藏桌面端用的横向虚线 */
  .process-track::before { display: none !important; }
  /* 垂直时间线：单列左侧虚线 */
  .process-track::after {
    content: ""; position: absolute;
    left: 23px; top: 24px; bottom: 24px;
    width: 2px;
    background: repeating-linear-gradient(to bottom,
      var(--color-border-default, #d4d4d4) 0,
      var(--color-border-default, #d4d4d4) 4px,
      transparent 4px, transparent 8px);
    z-index: 0;
  }
  .step {
    position: relative;
    display: grid !important;
    grid-template-columns: 48px 1fr !important;
    grid-template-rows: auto auto auto !important;
    grid-template-areas:
      "badge label"
      ".     title"
      ".     desc" !important;
    column-gap: 14px !important;
    padding: 0 0 24px !important;
    text-align: left !important;
    z-index: 1;
  }
  .step:last-child { padding-bottom: 0 !important; }
  .step .badge {
    grid-area: badge !important;
    width: 48px !important; height: 48px !important;
    font-size: 18px !important;
    margin-bottom: 0 !important;
    box-shadow: 0 0 0 4px #fff !important;
  }
  .step .badge .chev { display: none !important; }
  .step .icon-row {
    grid-area: label !important;
    margin: 0 0 4px !important;
    min-height: 48px;
    align-items: center !important;
    gap: 8px !important;
  }
  .step .icon-row svg { width: 16px !important; height: 16px !important; }
  .step h3 {
    grid-area: title !important;
    font-size: 17px !important;
    margin-top: 2px !important;
  }
  .step p {
    grid-area: desc !important;
    margin-top: 4px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }

  /* ============================================================
     SERVICES 专用
  ============================================================ */

  /* svc-compare → 一个服务一张卡 */
  .svc-compare { display: block !important; border: 0 !important; background: transparent !important; }
  .svc-compare .svc-cmp-head { display: none !important; }      /* 隐藏表头 */
  .svc-cmp-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0 !important;
    background: #fff !important;
    border: 1px solid var(--color-border-subtle, #e5e7eb) !important;
    border-radius: 14px !important;
    margin-bottom: 10px !important;
    padding: 0 !important;
    overflow: hidden;
  }
  .svc-cmp-row > div {
    padding: 14px 16px !important;
    font-size: 13px !important;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border-subtle, #f0f1f4);
    display: flex; flex-direction: column; gap: 4px;
    justify-content: center;
  }
  .svc-cmp-row > div::before {
    font-size: 10px; font-weight: 700; letter-spacing: 0.10em;
    text-transform: uppercase; color: var(--color-text-tertiary, #9aa3b2);
  }
  .svc-cmp-row > div:nth-child(1) {
    grid-column: 1 / -1;
    background: var(--color-bg-subtle, #f6f7f9);
    border-bottom: 1px solid var(--color-border-subtle, #e5e7eb);
    flex-direction: row !important; align-items: center;
    font-size: 15px !important; font-weight: 700 !important;
  }
  .svc-cmp-row > div:nth-child(1)::before { content: none; }
  .svc-cmp-row > div:nth-child(2)::before { content: "时效"; }
  .svc-cmp-row > div:nth-child(3)::before { content: "起步价"; }
  .svc-cmp-row > div:nth-child(4)::before { content: "计费方式"; }
  .svc-cmp-row > div:nth-child(5)::before { content: "典型货物"; }
  .svc-cmp-row > div:nth-child(4),
  .svc-cmp-row > div:nth-child(5) { grid-column: 1 / -1; }
  .svc-cmp-row > div:last-child { border-bottom: 0; }

  /* ============================================================
     TRACK 专用 —— 首屏只是搜索 + 最近 5 包裹
  ============================================================ */

  /* 隐藏 results 与 help 区，把首屏简化 */
  body[data-page="track"] .results-section,
  body[data-page="track"] .help-section,
  body[data-page="track"] .state-strip-dark { display: none !important; }
  body[data-page="track"] .hero { padding-bottom: 24px !important; }

  /* sticky 底部搜索（移交给固定底栏） */
  body[data-page="track"] .search-bar {
    position: fixed !important;
    left: 0; right: 0; bottom: 0;
    z-index: 200;
    border-radius: 20px 20px 0 0 !important;
    margin: 0 !important;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom)) !important;
    box-shadow: 0 -12px 32px rgba(8, 18, 36, 0.18);
    background: #fff;
  }
  body[data-page="track"] .search-bar .field-label,
  body[data-page="track"] .search-bar .hint { display: none !important; }
  body[data-page="track"] .search-bar-inner {
    grid-template-columns: 1fr !important; gap: 10px !important;
  }
  body[data-page="track"] .search-bar-inner > .field:nth-child(2) { display: none !important; }
  body[data-page="track"] .search-bar-inner > button { width: 100% !important; min-height: 48px !important; }
  body[data-page="track"] .track-input { height: 48px !important; font-size: 15px !important; }
  body[data-page="track"] { padding-bottom: 130px; }

  /* "最近 5 个包裹" 列表 — 由 JS 注入 .m-recent-packages */
  .m-recent-packages {
    background: #fff;
    border-radius: 18px;
    padding: 6px 0;
    border: 1px solid var(--color-border-subtle, #e5e7eb);
  }
  .m-recent-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px;
  }
  .m-recent-head .ttl { font-size: 13px; font-weight: 700; letter-spacing: 0.02em; color: var(--color-text-primary, #0c1422); }
  .m-recent-head .more { font-size: 12px; color: var(--color-primary, #1F4B82); text-decoration: none; }
  .m-recent-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 12px;
    padding: 12px 18px;
    border-top: 1px solid var(--color-border-subtle, #f0f1f4);
    align-items: center;
    text-decoration: none; color: inherit;
  }
  .m-recent-item .ic {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--color-bg-subtle, #f4f5f7);
    display: flex; align-items: center; justify-content: center;
    color: var(--color-primary, #1F4B82);
  }
  .m-recent-item .ic svg { width: 20px; height: 20px; }
  .m-recent-item .tn { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; font-weight: 600; color: var(--color-text-primary); }
  .m-recent-item .meta { font-size: 11.5px; color: var(--color-text-tertiary, #6b7280); margin-top: 2px; }
  .m-recent-item .status {
    font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: 999px;
    background: rgba(31,75,130,0.10); color: var(--color-primary, #1F4B82);
  }
  .m-recent-item .status.delivered { background: rgba(34,139,87,0.10); color: #228B57; }
  .m-recent-item .status.exception { background: rgba(216,31,38,0.10); color: var(--color-secondary, #D81F26); }
  .m-recent-item .status.in-transit { background: rgba(31,75,130,0.10); color: var(--color-primary, #1F4B82); }

  /* ============================================================
     CALCULATOR 专用 —— sticky 底部报价卡
  ============================================================ */

  body[data-page="calculator"] .state-strip { display: none !important; }   /* 隐藏审稿状态切换 */
  body[data-page="calculator"] .price-table-section { padding: 36px 0 !important; }
  body[data-page="calculator"] .price-grid { gap: 12px !important; }

  /* form 单列 */
  .form-row, .form-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .calc-grid { grid-template-columns: 1fr !important; gap: 0 !important; }

  /* 隐藏桌面端的 .result-sticky aside，改用底部 sheet */
  body[data-page="calculator"] .result-sticky { display: none !important; }
  body[data-page="calculator"] { padding-bottom: 140px; }

  /* 底部报价 sheet — 由 JS 注入 .m-quote-sheet */
  .m-quote-sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 250;
    background: #fff;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -14px 36px rgba(8,18,36,0.18);
    padding-bottom: env(safe-area-inset-bottom);
    transition: transform 300ms cubic-bezier(0.22,0.61,0.36,1);
    transform: translateY(0);
    max-height: 85vh;
    overflow: hidden;
    display: flex; flex-direction: column;
  }
  .m-quote-handle {
    width: 36px; height: 4px; border-radius: 2px;
    background: var(--color-border-default, #d4d8df);
    margin: 8px auto 4px;
  }
  .m-quote-peek {
    padding: 12px 20px 16px;
    display: grid; grid-template-columns: 1fr auto; gap: 8px 12px;
    align-items: center;
    cursor: pointer;
  }
  .m-quote-peek .lbl { font-size: 11px; font-weight: 600; color: var(--color-text-tertiary); letter-spacing: 0.08em; text-transform: uppercase; }
  .m-quote-peek .ttl { font-size: 14px; font-weight: 600; color: var(--color-text-primary); }
  .m-quote-peek .price { font-size: 28px; font-weight: 800; color: var(--color-text-primary); font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: -0.02em; }
  .m-quote-peek .price .unit { font-size: 13px; color: var(--color-text-tertiary); margin-left: 4px; font-weight: 600; }
  .m-quote-peek .toggle {
    grid-column: 1 / -1;
    display: flex; justify-content: center; align-items: center; gap: 4px;
    font-size: 12px; color: var(--color-primary, #1F4B82);
    padding-top: 6px;
  }
  .m-quote-peek .toggle svg { width: 14px; height: 14px; transition: transform 220ms; }
  .m-quote-sheet.is-expanded .m-quote-peek .toggle svg { transform: rotate(180deg); }
  .m-quote-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms ease;
    border-top: 1px solid var(--color-border-subtle);
  }
  .m-quote-sheet.is-expanded .m-quote-body { max-height: 60vh; overflow-y: auto; }
  .m-quote-body-inner { padding: 16px 20px 24px; }
  .m-quote-line { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--color-border-subtle); font-size: 13px; color: var(--color-text-secondary); }
  .m-quote-line:last-child { border-bottom: 0; }
  .m-quote-line .val { color: var(--color-text-primary); font-weight: 600; font-family: 'JetBrains Mono', monospace; }
  .m-quote-cta { margin-top: 14px; }
  .m-quote-cta .btn { width: 100%; }

  /* ============================================================
     ABOUT 专用
  ============================================================ */
  body[data-page="about"] .mission { padding: 48px 0 !important; }
  body[data-page="about"] .num-grid {
    grid-template-columns: 1fr 1fr !important; gap: 10px !important;
  }
  body[data-page="about"] .num-grid .big { font-size: 30px !important; }
  body[data-page="about"] .fp-map {
    width: 100% !important; min-width: 0 !important;
    height: auto !important; aspect-ratio: 4/3 !important;
  }
  body[data-page="about"] .fp-map svg { width: 100% !important; height: 100% !important; }
  body[data-page="about"] .certs-grid { gap: 24px !important; }
  body[data-page="about"] .partners,
  body[data-page="about"] .partner-grid {
    width: 100% !important; max-width: 100% !important;
    overflow-x: hidden !important;
    grid-template-columns: 1fr 1fr !important;
  }
  body[data-page="about"] .partner { min-width: 0 !important; }

  /* About 团队改成纵向单卡（不再 carousel，避免视觉跳脱） */
  body[data-page="about"] .team-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    overflow: visible !important;
    margin: 0 !important; padding: 0 !important;
    width: 100% !important; max-width: 100% !important;
  }
  body[data-page="about"] .team-grid > .person {
    flex: none !important; scroll-snap-align: none !important;
    width: 100% !important; max-width: 100% !important;
  }

  /* Mission grid 强制单列 */
  body[data-page="about"] .mission-grid {
    grid-template-columns: 1fr !important; gap: 24px !important;
  }

  /* CTA 区 — 单栏，不让两栏撑爆 */
  .cta-inner, .cta-band-inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 36px 22px !important;
  }
  .cta-band { padding: 0 !important; }

  /* ============================================================
     Footer accordion —— 手风琴
  ============================================================ */
  .footer { padding: 40px 0 24px !important; margin-top: 56px !important; }
  .footer-grid {
    grid-template-columns: 1fr !important; gap: 0 !important;
  }
  .footer-brand { padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.10); }
  .footer-grid > *:not(.footer-brand) {
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }
  /* 折叠组：JS 给每个 <div> 加 .footer-col-head + 收起子 ul */
  .footer-col-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
    font-size: 14px; font-weight: 600;
    color: #fff;
    cursor: pointer;
    list-style: none;
  }
  .footer-col-head::-webkit-details-marker { display: none; }
  .footer-col-head::after {
    content: "";
    width: 10px; height: 10px;
    border-right: 1.5px solid rgba(255,255,255,0.55);
    border-bottom: 1.5px solid rgba(255,255,255,0.55);
    transform: rotate(45deg);
    transition: transform 220ms;
    margin-right: 6px;
  }
  details.footer-col[open] .footer-col-head::after {
    transform: rotate(-135deg);
  }
  details.footer-col > ul,
  details.footer-col > div {
    padding-bottom: 18px;
    animation: accSlide 260ms ease;
  }
  details.footer-col ul {
    list-style: none; padding-left: 0; margin: 0;
    display: flex; flex-direction: column; gap: 10px;
  }
  details.footer-col a {
    color: rgba(255,255,255,0.72); font-size: 14px; text-decoration: none;
  }
  @keyframes accSlide {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* ============================================================
     状态：审稿状态条收成横滑
  ============================================================ */
  .state-strip, .state-strip-dark {
    overflow-x: auto;
    flex-wrap: nowrap !important;
    scrollbar-width: none;
  }
  .state-strip::-webkit-scrollbar,
  .state-strip-dark::-webkit-scrollbar { display: none; }
}
