/* public-home bundle: home + tech-identity + confirm — build: npm run build:public-css */
:root {
  /* 主站浅色 + 青绿主色，易读、适合移动端长表单 */
  --bg: #f8fafc;
  --bg-subtle: #f1f5f9;
  --bg-elevated: #ffffff;
  --bg-elevated-strong: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --accent: #0d9488;
  /* 悬停：足够深，保证在白色/浅灰底上可辨 */
  --accent-hover: #0a5c52;
  --link-hover: #0a5c52;
  --accent-dim: rgba(13, 148, 136, 0.14);
  --indigo: #0284c7;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --glow: rgba(13, 148, 136, 0.22);
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 8px 24px rgba(13, 148, 136, 0.12);
  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background-color: var(--bg);
  background-image: radial-gradient(ellipse 100% 45% at 50% 0%, rgba(13, 148, 136, 0.07), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(13, 148, 136, 0.2);
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover, var(--accent-hover));
  text-decoration: underline;
}
a:focus-visible {
  color: var(--link-hover, var(--accent-hover));
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 双层顶栏（工具层 + 主导航平铺）：整体 sticky；z-index 低于 .ship-modal（已抬高） */
.nav.nav-chrome {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.nav-chrome .nav-top {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  backdrop-filter: blur(12px) saturate(1.1);
}

.nav-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
  min-height: 2.75rem;
  height: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  box-sizing: border-box;
}

/* 主导航平铺条：仅小屏（≤899px）展示；见下方 max-width:899 与 tech-identity */
.nav-chrome .nav-tabs {
  display: none;
  align-items: stretch;
  margin: 0;
  padding: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s ease, border-color 0.15s ease;
  box-sizing: border-box;
  min-height: 2.65rem;
}

.nav-tab:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.nav-tab--active,
.nav-tab[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 700;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  flex: 1 1 0;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
/* 站名过长时截断；行高与 .brand-mark 等高，避免继承 body 1.65 行高导致左侧整行比右侧按钮“抬高” */
#navSiteName {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.8rem;
  font-size: 0.95rem;
}

.brand:hover {
  text-decoration: none;
  color: var(--accent);
}
.brand:focus-visible {
  text-decoration: none;
  color: var(--text);
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.brand-mark {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, #0d9488 0%, #0ea5e9 48%, #22d3ee 100%);
  box-shadow: 0 3px 14px rgba(20, 184, 166, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  overflow: hidden;
}

.brand-mark .brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-mark.brand-mark--custom {
  background: transparent;
  box-shadow: none;
  width: auto;
  max-width: 140px;
  height: 2.25rem;
  padding: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488 0%, #0ea5e9 50%, #06b6d4 100%);
  color: #f8fafc;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 28px rgba(20, 184, 166, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 16px 40px rgba(14, 165, 233, 0.35);
}

.btn-ghost {
  background: rgba(20, 184, 166, 0.04);
  color: var(--muted);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(20, 184, 166, 0.08);
  border-color: rgba(20, 184, 166, 0.28);
}

/* hero */
.hero {
  padding: 4.75rem 0 5.25rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  left: -20%;
  bottom: auto;
  height: 75%;
  background: radial-gradient(ellipse at 50% 0%, rgba(20, 184, 166, 0.28), transparent 58%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text);
}

.hero-lead {
  margin: 0 auto 2rem;
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

/* 与后台「公开首页首屏」配置对应：副标题与主按钮之间 */
.hero-home-rich {
  margin: -0.5rem auto 1.75rem;
  max-width: 42rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero-home-rich :first-child {
  margin-top: 0;
}
.hero-home-rich :last-child {
  margin-bottom: 0;
}
.hero-home-rich a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-home-rich a:hover {
  color: var(--link-hover);
}
.hero-home-rich img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* 公开首页：首屏自定义块与主按钮之间的可选广告位（与 .hero-home-rich 独立） */
.public-home-ad {
  box-sizing: border-box;
  width: 100%;
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}
.public-home-ad :first-child {
  margin-top: 0;
}
.public-home-ad :last-child {
  margin-bottom: 0;
}
.public-home-ad a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.public-home-ad a:hover {
  color: var(--link-hover);
}
.public-home-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}

/* 公开首页：有后台首屏富文本时隐藏默认大标题、副标题与双按钮（自定义 HTML 内可自行放链接） */
.hero.hero--custom-rich #heroSiteTitle,
.hero.hero--custom-rich .hero-lead,
.hero.hero--custom-rich .hero-actions {
  display: none !important;
}
.hero.hero--custom-rich .hero-home-rich {
  margin-top: 0;
  margin-bottom: 0;
}
/* 首屏下独立横幅位（与左文右图块相邻，由 #heroHomeBannerWrap 包裹） */
.hero-home-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hero-home-banner[hidden] {
  display: none !important;
}
.hero .hero-home-banner .public-home-ad {
  max-width: 100%;
  width: 100%;
  margin: 1.25rem 0 0;
  text-align: center;
}
.hero .hero-home-banner .public-home-ad:first-child {
  margin-top: 0;
}

/* 热门线路页底部：Google AdSense 等（由 /api/config/public 注入） */
.page-footer-ad {
  box-sizing: border-box;
  width: 100%;
  max-width: 56rem;
  margin: 2rem auto 0;
  padding: 0 1rem;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* sections */
section {
  padding: 3.75rem 0;
  position: relative;
}

section h2 {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--text);
}

/* 区块标题左侧强调线（居中区块单独处理） */
#quote h2,
#features h2,
#flow h2,
#api h2,
#flutter h2 {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

#quote h2::after,
#features h2::after,
#flow h2::after,
#api h2::after,
#flutter h2::after {
  content: "";
  width: 2.75rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.25);
}

.section--center {
  text-align: center;
}

.section--center h2 {
  align-items: center;
  width: 100%;
}

.section--center h2::after {
  margin-left: auto;
  margin-right: auto;
}

.section--center .section-lead {
  margin-left: auto;
  margin-right: auto;
}

.section-lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 40rem;
  line-height: 1.65;
}

/* 热门线路入口（细部留白以 tech-identity 中 #hot-routes 为准，因全局 section 带 !important） */
#hot-routes {
  padding-top: 0.4rem;
  padding-bottom: 2.5rem;
  margin-top: 0;
}

#hot-routes .section-lead {
  margin-bottom: 1rem;
}

#hot-routes-page {
  padding-top: 2.5rem;
}

.hot-routes-page-title {
  margin: 0 0 0.65rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.hot-routes-grid {
  --hot-route-columns: 6;
  --hot-route-gap: 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: var(--hot-route-gap);
}

.hot-routes-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.65rem 1rem;
  margin-top: 1.35rem;
  padding: 0.65rem 0;
}

.hot-routes-pager__info {
  font-size: 0.86rem;
  color: var(--muted);
}

.hot-routes-pager__btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-size: 0.84rem;
  cursor: pointer;
}

.hot-routes-pager__btn:hover:not(:disabled) {
  border-color: rgba(20, 184, 166, 0.45);
  color: var(--link-hover);
}

.hot-routes-pager__btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.hot-routes-page-link {
  color: inherit;
  text-decoration: none;
}

.hot-routes-page-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hot-routes-all-link {
  display: inline-flex;
  margin-top: 0.9rem;
  font-size: 0.86rem;
  color: var(--accent);
  text-decoration: none;
}

.hot-routes-all-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hot-route-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.8rem 0.9rem;
  /* 避免旧版 WebKit 对 calc 内乘法解析失败；route-grid 布局下以弹性宽度为主 */
  flex: 1 1 200px;
  min-width: 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.hot-route-card:hover {
  background: #f8fafc;
  border-color: rgba(20, 184, 166, 0.42);
  box-shadow: var(--shadow-sm);
}

.hot-route-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.hot-route-sub {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.hot-route-seo {
  margin: 0;
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--muted-2);
  min-height: 2.2em;
}

.hot-route-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
  width: fit-content;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(13, 148, 136, 0.5);
  background: rgba(13, 148, 136, 0.1);
  color: var(--link-hover);
  font-size: 0.76rem;
  font-weight: 600;
  text-decoration: none;
}

.hot-route-btn:hover {
  text-decoration: none;
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 1200px) {
  .hot-routes-grid {
    --hot-route-columns: 4;
  }
}

@media (max-width: 900px) {
  .hot-routes-grid {
    --hot-route-columns: 3;
  }
}

@media (max-width: 640px) {
  .hot-routes-grid {
    --hot-route-columns: 2;
  }
}

@media (max-width: 420px) {
  .hot-routes-grid {
    --hot-route-columns: 1;
  }
}

#features,
#flow {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 27, 46, 0.35) 50%, transparent 100%);
}

.grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: linear-gradient(165deg, rgba(21, 34, 56, 0.9) 0%, rgba(17, 27, 46, 0.95) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.4rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.card-icon {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(14, 165, 233, 0.2);
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.06rem;
  font-weight: 600;
  color: var(--text);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* api strip */
.api-strip {
  background: #f1f5f9;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: #0369a1;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.api-strip > div + div {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.api-strip code {
  color: var(--text);
  font-size: 0.9em;
}

/* footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.25rem 0;
  color: var(--muted-2);
  font-size: 0.875rem;
  text-align: center;
  background: linear-gradient(180deg, transparent, rgba(7, 11, 20, 0.6));
}

footer .footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  justify-content: center;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  align-items: center;
}

.site-footer-links a {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
}

.site-footer-links a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.footer-sep {
  color: var(--muted-2);
  user-select: none;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  justify-content: center;
  align-items: center;
  color: var(--muted-2);
  font-size: 0.875rem;
}

.footer-meta a {
  color: var(--muted-2);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--text);
  text-decoration: underline;
}

/* 手机端：全站统一页脚（partials/site-public-footer）隐藏，避免与底栏主导航叠挤；法律入口仍可从各页正文/用户中心进入 */
@media (max-width: 899px) {
  body > footer {
    display: none !important;
  }
}

.nav-top-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
  min-width: 0;
}

/* label 默认基线会让 language 与按钮难对齐；与右侧按钮统一高度 */
header.nav .lang-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
  line-height: 0;
}

.lang-switch select {
  font-size: 0.85rem;
  padding: 0 0.5rem;
  /* 与 tech-identity 下 .nav-ghost 的 min-height:2.4rem 对齐 */
  height: 2.4rem;
  min-height: 2.4rem;
  max-height: 2.4rem;
  box-sizing: border-box;
  line-height: 1.2;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  vertical-align: middle;
}

.lang-switch select:hover {
  border-color: rgba(20, 184, 166, 0.35);
}

.lang-switch select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav-user .nav-user-home-link {
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
}
.nav-user .nav-user-home-link:hover {
  color: #0f766e;
  text-decoration: none;
}

/* 用户中心入口（在公开各页、含站首页时显示） */
.nav-user .nav-user-center-link {
  color: #4f46e5;
  text-decoration: none;
  font-weight: 600;
}
.nav-user .nav-user-center-link:hover {
  color: #4338ca;
  text-decoration: none;
}

/* 宽屏：首页链路与房屋图标同套青绿→蓝渐变 */
@media (min-width: 900px) {
  .nav-user a.nav-user-home-link.nav-ghost {
    display: inline-flex;
    align-items: center;
    color: #0d9488 !important;
  }
  .nav-user a.nav-user-home-link.nav-ghost::before {
    content: "";
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    margin-right: 0.3rem;
    flex-shrink: 0;
    background: linear-gradient(145deg, #2dd4bf, #3b82f6);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  .nav-user a.nav-user-center-link.nav-ghost {
    display: inline-flex;
    align-items: center;
    color: #4f46e5 !important;
  }
  .nav-user a.nav-user-center-link.nav-ghost::before {
    content: "";
    display: block;
    width: 1.05rem;
    height: 1.05rem;
    margin-right: 0.3rem;
    flex-shrink: 0;
    background: linear-gradient(145deg, #6366f1, #3b82f6);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  .nav-user a.nav-user-home-link.nav-ghost:hover,
  .nav-user a.nav-user-home-link.nav-ghost:focus-visible,
  .nav-user a.nav-user-home-link.nav-ghost:active {
    color: #0f766e !important;
  }
  .nav-user a.nav-user-center-link.nav-ghost:hover,
  .nav-user a.nav-user-center-link.nav-ghost:focus-visible,
  .nav-user a.nav-user-center-link.nav-ghost:active {
    color: #4338ca !important;
  }
}

/* 窄屏顶栏：未加载 tech-identity 的页面也隐藏全名，已登录为「用户中心/首页」+ 图标；与 tech-identity 中规则一致 */
@media (max-width: 899px) {
  /* 手机：LOGO + 站名（截断），右侧语言 + CTA；站名与 logo 的 aria 见 a.brand */
  #navSiteName {
    display: inline !important;
    max-width: min(9.5rem, 42vw);
    font-size: 0.88rem;
    line-height: 1.25;
    font-weight: 600;
  }
  .nav.nav-chrome {
    box-shadow: none;
  }
  .nav-chrome .nav-top {
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px) saturate(1.1);
    backdrop-filter: blur(10px) saturate(1.1);
    border-bottom: 1px solid #f0f0f0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  }
  /* 第二层主导航：仅手机出现，固定在视口最底部（底栏 Tab） */
  .nav-chrome .nav-tabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    border-bottom: none;
    border-top: 1px solid #eee;
    /* 细顶影：内容从下方滑过时有轻微「浮在底栏上」的层次 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05), 0 -8px 24px rgba(15, 23, 42, 0.04);
    padding-top: 0.1rem;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .nav-chrome .nav-tab {
    flex-direction: column;
    justify-content: center;
    gap: 0.12rem;
    border-bottom: none;
    margin-bottom: 0;
    border-top: 2px solid transparent;
    margin-top: -1px;
    padding-top: 0.35rem;
    padding-bottom: 0.25rem;
    font-size: 0.7rem;
    min-height: 2.9rem;
  }
  .nav-chrome .nav-tab__icon {
    font-size: 1.15rem;
    line-height: 1;
    display: block;
    transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-chrome .nav-tab__icon--color .nav-tab__ico {
    width: 1.3rem;
    height: 1.3rem;
    display: block;
    flex-shrink: 0;
  }
  .nav-chrome .nav-tab__label {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    transition: font-weight 0.15s ease;
  }
  .nav-chrome .nav-tab--active .nav-tab__label,
  .nav-chrome .nav-tab[aria-current="page"] .nav-tab__label {
    font-weight: 800;
    letter-spacing: -0.01em;
  }
  .nav-chrome .nav-tab--active .nav-tab__icon,
  .nav-chrome .nav-tab[aria-current="page"] .nav-tab__icon {
    transform: scale(1.12);
  }
  @media (prefers-reduced-motion: reduce) {
    .nav-chrome .nav-tab__icon {
      transition: none;
    }
    .nav-chrome .nav-tab--active .nav-tab__icon,
    .nav-chrome .nav-tab[aria-current="page"] .nav-tab__icon {
      transform: none;
    }
  }
  .nav-chrome .nav-tab--active,
  .nav-chrome .nav-tab[aria-current="page"] {
    border-bottom-color: transparent;
    border-top-color: var(--accent);
  }
  body[data-chrome-scope="public"]:has(.nav-chrome .nav-tabs) {
    padding-bottom: calc(3.6rem + env(safe-area-inset-bottom, 0px));
  }
  body[data-chrome-scope="public"]:has(.nav-chrome .nav-tabs) .home-toast {
    bottom: calc(3.75rem + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
  }
  .nav-user .nav-user-name {
    display: none;
  }
  .nav-user {
    gap: 0.35rem;
  }
  /* 已登录且仅 CTA 单链时压宽度；未登录（登录+注册+语言）勿限宽，否则会与 LOGO 挤压重叠 */
  .nav-user:has(> a.nav-user-home-link),
  .nav-user:has(> a.nav-user-center-link) {
    max-width: min(100%, 14rem);
  }
  header.nav .wrap {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  /* 单行：LOGO + 简/EN + 登录（注册在底栏场景下顶栏隐藏注册链，见上） */
  header.nav .nav-top-inner {
    flex-wrap: nowrap;
    align-items: center;
    min-height: 2.65rem;
    height: auto;
    max-height: none;
  }
  .nav-top-actions {
    gap: 0.5rem;
  }
  /* 与底栏主导航分工：顶栏在窄屏只保留「登录」，减少与 简/EN 挤压（注册自登录页等入口） */
  .nav-chrome .nav-user > a.nav-ghost--register {
    display: none;
  }
  .nav-chrome .brand-mark:not(.brand-mark--custom) {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.68rem;
    border-radius: 0.42rem;
  }
  .nav-chrome .brand-mark.brand-mark--custom {
    height: 1.5rem;
    max-width: 5.5rem;
  }
  .nav-tab {
    font-size: 0.82rem;
    min-height: 2.5rem;
    padding: 0.45rem 0.2rem;
  }
  /* 语言与登录/注册同高、同中线，避免一高一低 */
  header.nav .lang-switch select,
  header.nav .nav-user > a.nav-ghost {
    height: 2.25rem;
    min-height: 2.25rem;
    max-height: 2.25rem;
    box-sizing: border-box;
    line-height: 1.2;
    padding-top: 0;
    padding-bottom: 0;
  }
  .lang-switch select {
    font-size: 0.8rem;
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
  /* 未登录顶栏 CTA 略收，仍保证可点；tech-identity 的 padding 有 !important，此处用同等权重覆盖 */
  .nav-user > a.nav-ghost {
    padding: 0 0.5rem !important;
    font-size: 0.8rem !important;
  }
  .nav-user a.nav-user-home-link.nav-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    max-height: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem 0 0.5rem !important;
    max-width: 100%;
    color: #0d9488 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.12));
    border: 1px solid rgba(20, 184, 166, 0.45);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.12);
  }
  .nav-user a.nav-user-home-link.nav-ghost:hover,
  .nav-user a.nav-user-home-link.nav-ghost:focus-visible,
  .nav-user a.nav-user-home-link.nav-ghost:active {
    color: #0f766e !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(59, 130, 246, 0.18));
    border-color: rgba(14, 165, 180, 0.55);
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.16);
  }
  .nav-user a.nav-user-home-link.nav-ghost::before {
    content: "";
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-right: 0.3rem;
    background: linear-gradient(145deg, #2dd4bf, #3b82f6);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 3L2 12h3v8h6v-6h2v6h6v-8h3L12 3z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }
  .nav-user a.nav-user-center-link.nav-ghost {
    display: inline-flex;
    align-items: center;
    min-height: 2.25rem;
    max-height: 2.25rem;
    height: 2.25rem;
    padding: 0 0.6rem 0 0.5rem !important;
    max-width: 100%;
    color: #4f46e5 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.1));
    border: 1px solid rgba(99, 102, 241, 0.4);
    border-radius: 9999px;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1);
  }
  .nav-user a.nav-user-center-link.nav-ghost:hover,
  .nav-user a.nav-user-center-link.nav-ghost:focus-visible,
  .nav-user a.nav-user-center-link.nav-ghost:active {
    color: #4338ca !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.26), rgba(59, 130, 246, 0.16));
    border-color: rgba(79, 70, 229, 0.5);
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.14);
  }
  .nav-user a.nav-user-center-link.nav-ghost::before {
    content: "";
    display: block;
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    margin-right: 0.3rem;
    background: linear-gradient(145deg, #6366f1, #3b82f6);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }

  /* 会员登录后顶栏「消息」入口（窄屏）：仅图标，无衬底方框；未读角标见 .nav-inbox-badge */
  .nav-user a.nav-inbox-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem;
    box-sizing: border-box;
    border: none;
    border-radius: 0.35rem;
    background: transparent;
    color: #4f46e5;
    text-decoration: none;
    box-shadow: none;
  }
  .nav-user a.nav-inbox-link:hover {
    color: #4338ca;
    opacity: 0.92;
  }
  .nav-user a.nav-inbox-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .nav-inbox-link__ico {
    width: 1.28rem;
    height: 1.28rem;
    display: block;
    flex-shrink: 0;
  }
  .nav-inbox-badge {
    position: absolute;
    right: 0.12rem;
    top: 0.08rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.22rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
    box-sizing: border-box;
    border: 1.5px solid #fff;
  }
  .nav-inbox-badge[hidden] {
    display: none !important;
  }
}

@media (min-width: 900px) {
  .nav-user .nav-inbox-link {
    display: none !important;
  }
}

.link-btn {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
}

.link-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* quote — 询价区加宽容器、放大表单框与控件 */
#quote {
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.04) 0%, transparent 35%),
    linear-gradient(0deg, rgba(14, 165, 233, 0.03) 0%, transparent 28%);
}

#quote .wrap {
  max-width: 1240px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* 首页：独立通栏，夹在 #quote 与 #hot-routes 之间，与上方询价区灰底连续 */
.home-quote-ad-band {
  width: 100%;
  background: #f3f4f6;
  padding: 0.35rem 0 0.4rem;
  margin: 0;
  box-sizing: border-box;
}
.home-quote-ad-band[hidden] {
  display: none !important;
}
.home-quote-ad-band .wrap,
.home-quote-ad-band .home-quote-ad-band__inner {
  max-width: 1100px;
  margin: 0 auto;
}
.home-quote-ad-band .home-quote-ad {
  margin: 0;
}

/* 管理后台可配的「查询运价」与「热门线路」之间的通栏广告（HTML 由 /api 注入；无内容时 #homeQuoteAdBand 为 hidden） */
.home-quote-ad {
  box-sizing: border-box;
  width: 100%;
  margin: 0.65rem 0 0.15rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: #f8fafc;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.home-quote-ad :first-child {
  margin-top: 0;
}
.home-quote-ad :last-child {
  margin-bottom: 0;
}
.home-quote-ad a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.home-quote-ad a:hover {
  color: var(--link-hover);
}
.home-quote-ad img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  vertical-align: middle;
}

#quote h2 {
  font-size: 1.7rem;
}

#quote .section-lead {
  max-width: 52rem;
  font-size: 1.03rem;
  line-height: 1.68;
  color: #9ca8bc;
}

.quote-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.25rem;
}

@media (min-width: 900px) {
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.quote-fieldset {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.45rem 1.5rem;
  margin: 0;
  background: linear-gradient(165deg, rgba(21, 34, 56, 0.92) 0%, rgba(17, 27, 46, 0.98) 100%);
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quote-fieldset:focus-within {
  border-color: rgba(20, 184, 166, 0.28);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(20, 184, 166, 0.12);
}

.quote-parcel {
  border-color: rgba(14, 165, 233, 0.25);
  background: linear-gradient(165deg, rgba(24, 32, 58, 0.95) 0%, rgba(15, 23, 42, 0.92) 100%);
}

.quote-parcel:focus-within {
  border-color: rgba(129, 140, 248, 0.35);
}

.quote-fieldset legend {
  padding: 0 0.45rem;
  font-weight: 600;
  font-size: 1.05rem;
}

.quote-fieldset label {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 0.7rem;
}

.quote-fieldset label:first-of-type {
  margin-top: 0.25rem;
}

.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* 首页询价：长邮编说明放在输入框下，不占用 label 行高 */
.field-hint-below {
  display: block;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #94a3b8;
  margin: 0.25rem 0 0.35rem 0;
}

/* 美国邮编：输入框下的微型说明（主说明已并入 placeholder） */
.field-hint-micro {
  display: block;
  font-size: 0.65rem;
  line-height: 1.3;
  color: #94a3b8;
  margin: 0.15rem 0 0.2rem 0;
}

/* 询价：国家留在淡色底上；邮编/城市/州收入白卡片+弱阴影，与 #quote 渐变底形成对比 */
#quote .quote-wizard .address-card {
  background: transparent;
  border: none;
  padding: 0;
  margin-top: 0.35rem;
  box-shadow: none;
}
#quote .quote-wizard .address-card__panel {
  background: #ffffff;
  border-radius: 14px;
  padding: calc(0.75rem + 12px) calc(0.9rem + 12px) calc(0.85rem + 12px);
  margin-top: 0.5rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.07);
}
/* 扁平一行：邮编(3) + 城(4) + 州(3)；网页端(≥640px)横向 flex，窄屏竖向堆叠。参考 .address-row */
#quote .quote-wizard .quote-addr-grid.address-row.quote-wizard-addr-row,
#quote .quote-wizard .quote-addr-grid.quote-wizard-addr-row {
  display: flex;
  flex-direction: column;
  width: 100%;
  box-sizing: border-box;
  align-items: stretch;
  gap: 8px;
  margin: 0;
}
@media (min-width: 640px) {
  #quote .quote-wizard .quote-addr-grid.address-row.quote-wizard-addr-row,
  #quote .quote-wizard .quote-addr-grid.quote-wizard-addr-row {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 8px;
  }
  #quote .quote-wizard .quote-addr-col--zip {
    flex: 3 1 0;
  }
  #quote .quote-wizard .quote-addr-col--city {
    flex: 4 1 0;
  }
  #quote .quote-wizard .quote-addr-col--state {
    flex: 3 1 0;
  }
}
#quote .quote-wizard .quote-addr-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  font-size: inherit;
  gap: 0.1rem;
}
#quote .quote-wizard .quote-addr-col__label,
#quote .quote-wizard .quote-addr-col .state-field-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.03em;
  line-height: 1.2;
  margin: 0 0 0.04rem 0;
}
#quote .quote-wizard .quote-addr-col--state.state-field {
  gap: 0.12rem;
  margin-top: 0;
}
@media (min-width: 900px) {
  #quote .quote-wizard .quote-label-text,
  #quote .quote-wizard .quote-addr-col__label,
  #quote .quote-wizard .quote-addr-col .state-field-label {
    font-size: 0.8125rem !important;
    font-weight: 500;
    color: #4b5563 !important;
    letter-spacing: 0.01em;
  }
}
#quote .quote-wizard .address-card__panel .field-hint-micro {
  margin-top: 0.12rem;
  margin-bottom: 0.05rem;
}
#quote .quote-wizard .quote-addr-col--city input.input-underline {
  display: block;
  width: 100%;
  margin-top: 0.05rem;
}

/* 城市 / 州：浅灰底，区别于需手动的邮编框 */
#quote .quote-wizard .quote-wizard-addr-row .quote-addr-col--city input.input-underline,
#quote .quote-wizard .quote-wizard-addr-row .state-field input:not(.hidden) {
  min-height: 42px;
  line-height: 1.25;
  box-sizing: border-box;
  background: #f1f5f9 !important;
  border-radius: 6px;
  border: 1px solid #d1d5db !important;
  padding: 0.4rem 0.55rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.35s ease,
    opacity 0.35s ease;
}
#quote .quote-wizard .quote-wizard-addr-row .state-field select {
  min-height: 42px;
  line-height: normal;
  box-sizing: border-box;
  background: #f1f5f9 !important;
  border-radius: 6px;
  border: 1px solid #d1d5db !important;
  padding: 0.4rem 0.55rem;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.35s ease,
    opacity 0.35s ease;
}
#quote .quote-wizard .quote-addr-col--state.state-field {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
/* 邮编反查已验证：城市 / 州 正向提示（绿色底）；City 加右侧对勾 */
#quote .quote-wizard .quote-wizard-addr-row .quote-addr-col--city input.input-zip-ok {
  background-color: #ecfdf5 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2310b981'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.5rem center !important;
  background-size: 1.1rem 1.1rem !important;
  border-color: #6ee7b7 !important;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15) !important;
  padding-right: 2.15rem !important;
}
#quote .quote-wizard .quote-wizard-addr-row .state-field select.input-zip-ok {
  background: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.15);
}
/* 邮编 + 对勾：容器相对定位，对勾不单独占行 */
#quote .quote-wizard .quote-zip-input-wrap,
#quote .quote-wizard .zip-container {
  position: relative;
  display: block;
  margin-top: 0.1rem;
  width: 100%;
  box-sizing: border-box;
}
/* 首页询价邮编：底部渐变强调线（与 #quote h2::after 同款 teal→indigo） */
#quote .quote-wizard .quote-zip-input-wrap {
  border-radius: 6px;
  overflow: hidden;
}
#quote .quote-wizard .quote-zip-input-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--accent), var(--indigo));
  box-shadow: 0 0 12px rgba(13, 148, 136, 0.25);
  pointer-events: none;
  z-index: 1;
}
#quote .quote-wizard .quote-zip-input-wrap:focus-within::after {
  height: 4px;
  box-shadow: 0 0 14px rgba(13, 148, 136, 0.35);
}
#quote .quote-wizard .quote-zip-input-wrap .quote-zip-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  line-height: 1.2;
  padding: 0 2.1rem 0 0.55rem;
  border: 1px solid #e2e8f0;
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: #fff;
  font-size: 0.95rem;
  color: #0f172a;
}
#quote .quote-wizard .quote-zip-input-wrap .quote-zip-input::placeholder {
  color: #d1d5db;
  opacity: 1;
}
#quote .quote-wizard .quote-addr-col--city .input-underline::placeholder {
  color: #d1d5db;
  opacity: 1;
}
/* 已检测：仅框内对勾，文字不占位（见 .zip-detected-badge__text / .detected-state-text） */
#quote .quote-wizard .zip-detected-badge--infield {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  margin: 0;
  max-width: none;
  width: auto;
  padding: 0;
  border: none;
  background: none !important;
  box-shadow: none !important;
  align-self: auto;
  pointer-events: none;
  color: #10b981;
  gap: 0;
}
#quote .quote-wizard .zip-detected-badge--infield .zip-detected-badge__text,
#quote .quote-wizard .detected-state-text {
  display: none !important;
}
#quote .quote-wizard .zip-detected-badge--infield .zip-detected-badge__icon {
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 800;
  display: block;
  color: #10b981;
}
#quote .quote-wizard .zip-detected-badge--infield.is-on {
  opacity: 1;
  transform: translateY(-50%);
}
#quote .quote-wizard .zip-detected-badge--infield[hidden] {
  display: none !important;
}

/* 宽屏：寄件/收件块浅灰底；邮编+城+州同排；包裹两行布局 */
@media (min-width: 900px) {
  #quote .quote-wizard__desktop-row .quote-wizard__pane[data-wizard-idx="1"] > .quote-fieldset > .address-card,
  #quote .quote-wizard__desktop-row .quote-wizard__pane[data-wizard-idx="2"] > .quote-fieldset > .address-card {
    background: #f1f5f9;
    border-radius: 8px;
    padding: 1rem 0.9rem 0.65rem;
    border: none;
  }
  #quote .quote-wizard .address-form-en .quote-addr-grid.quote-wizard-addr-row {
    min-width: 0;
  }
  #quote .quote-wizard .address-form-en .quote-addr-col--zip,
  #quote .quote-wizard .address-form-en .quote-addr-col--city,
  #quote .quote-wizard .address-form-en .quote-addr-col--state {
    min-width: 0;
    width: 100%;
  }
}
/* 仅宽屏（与 quote 向导 900px+ 一致）：尺寸+重量 同一行、重量在右。≤899 保持上下两行，不动手机/窄平；!important 覆盖 .parcel-weight-row{width:100%} */
@media (min-width: 900px) {
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    width: 100%;
    min-width: 0;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-dims--inline {
    flex: 1 1 0 !important;
    min-width: 0;
    margin-bottom: 0;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact,
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    max-width: 14rem;
    margin: 0 0 0 auto !important;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact .parcel-weight {
    flex: 1 1 0;
    min-width: 0;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact .parcel-mass-unit {
    flex: 0 0 2.85rem;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row input[type="number"],
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact input[type="number"] {
    min-height: 2.35rem !important;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact select,
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-mass-unit select {
    min-height: 2.35rem !important;
  }
}

/* 邮编反查成功：城市/州行轻量滑入 + 蓝色高亮脉冲（由 JS 切换 class） */
#quote .quote-wizard .quote-wizard-addr-row.zip-autofill-row-reveal .quote-addr-col--city input,
#quote .quote-wizard .quote-wizard-addr-row.zip-autofill-row-reveal .state-field select {
  animation: zipAutofillFieldIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes zipAutofillFieldIn {
  from {
    opacity: 0.35;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#quote .quote-wizard .quote-wizard-addr-row.zip-autofill-row-highlight .quote-addr-col--city input.input-underline,
#quote .quote-wizard .quote-wizard-addr-row.zip-autofill-row-highlight .state-field select {
  animation: zipAutofillBluePulse 0.85s ease-out 1;
}
@keyframes zipAutofillBluePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.45);
  }
  55% {
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.22);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
}
#quote .quote-wizard .address-form-en > .address-card-legend {
  font-size: 0.875rem;
  font-weight: 600;
  color: #64748b;
}
#quote .quote-wizard .address-card .quote-field-span {
  margin-top: 0;
}
#quote .quote-wizard .address-card .quote-label-stack {
  margin-top: 0;
}
/* 邮编反查成功：淡绿 + 淡蓝，强化「已代填」感知 */
.quote-fieldset .input-zip-ok,
.quote-fieldset select.input-zip-ok {
  background: linear-gradient(
    135deg,
    rgba(209, 250, 229, 0.55) 0%,
    rgba(219, 234, 254, 0.65) 100%
  ) !important;
  border-color: rgba(34, 197, 94, 0.28) !important;
}
.quote-fieldset input.input-zip-ok:-webkit-autofill,
.quote-fieldset input.input-zip-ok:-webkit-autofill:hover,
.quote-fieldset input.input-zip-ok:-webkit-autofill:focus {
  box-shadow: 0 0 0 1000px rgba(226, 252, 239, 0.92) inset;
}

.state-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.65rem;
}

.state-field-label {
  font-size: 0.875rem;
  color: var(--muted);
}

.state-field select,
.state-field input[type="text"] {
  margin-top: 0;
}

.hidden {
  display: none !important;
}

.quote-field-span {
  width: 100%;
  margin-top: 0.65rem;
}

.quote-label-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin-top: 0 !important;
  font-size: 0.875rem;
  color: var(--muted);
}

.quote-label-text {
  display: block;
}

.quote-fieldset input,
.quote-fieldset select {
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.8rem;
  min-height: 2.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  color-scheme: light;
}

.quote-label-stack select {
  margin-top: 0;
}

.quote-fieldset input:hover,
.quote-fieldset select:hover {
  border-color: rgba(148, 163, 184, 0.28);
}

.quote-fieldset input:focus-visible,
.quote-fieldset select:focus-visible {
  outline: none;
  border-color: rgba(20, 184, 166, 0.55);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.quote-fieldset input:-webkit-autofill,
.quote-fieldset input:-webkit-autofill:hover,
.quote-fieldset input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 99999s ease-out 0s;
}

.quote-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  align-items: start;
}

.quote-parcel .parcel-dims {
  /* 旧 4 列布局已由 .parcel-dims--inline 替代；保留空规则避免历史引用报错 */
  grid-template-columns: none;
}

/* 包裹：三边一行 + 重量与单位一行（与 home.js 中 DOM 类名一致） */
.quote-parcel__legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  width: 100%;
  padding: 0 0 0.5rem 0.15rem;
  margin: 0 0 0.5rem 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.quote-parcel__unit-select {
  min-width: 0;
  width: 100%;
  font-size: 0.85rem;
  text-transform: none;
  font-weight: 600;
  letter-spacing: 0;
}
/* 长 × 宽 × 高 × 单位 同一行，压缩垂直空间 */
.parcel-dims--inline {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  align-items: flex-end;
  margin-top: 0 !important;
  grid-template-columns: none;
}
.parcel-dims--with-unit .parcel-dim:not(.parcel-dim--unit) {
  flex: 1 1 22%;
  min-width: 0;
}
.parcel-dims--with-unit .parcel-dim--unit {
  flex: 0 0 3.35rem;
  max-width: 4rem;
  min-width: 2.85rem;
}
.parcel-dim--unit-spacer {
  display: block;
  height: 0.68rem;
  margin-bottom: 0.1rem;
  line-height: 1.2;
}
.parcel-dims--inline .parcel-dim__hint,
.parcel-dims--inline .parcel-dim span.parcel-dim__hint {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.14rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.parcel-dims--inline .parcel-dim input {
  width: 100%;
  margin-top: 0;
  padding: 0.42rem 0.2rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 2.35rem;
}
.parcel-dims--with-unit .parcel-dim--unit .quote-parcel__unit-select {
  min-height: 2.35rem;
  padding: 0.35rem 0.15rem;
  text-align: center;
}
.parcel-weight-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.65rem;
  align-items: flex-end;
  grid-template-columns: none;
  margin-top: 0.45rem;
  width: 100%;
}
.parcel-weight-row .parcel-weight {
  flex: 1 1 60%;
  min-width: 0;
}
.parcel-weight-row .parcel-mass-unit {
  flex: 1 1 40%;
  min-width: 0;
  max-width: none;
}
.parcel-weight-row .parcel-mass-unit select,
.parcel-weight-row .parcel-weight input {
  margin-top: 0.12rem;
}

/* 询价第三步：重量与单位同一行；外露微型标题 + 无障碍完整名称 */
#quote .quote-fieldset.quote-parcel .parcel-field__hint {
  display: block;
  font-size: 0.64rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.14rem;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#quote .quote-fieldset.quote-parcel .parcel-weight,
#quote .quote-fieldset.quote-parcel .parcel-mass-unit {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  min-width: 0;
  gap: 0;
  margin-top: 0;
}
#quote .quote-fieldset.quote-parcel .parcel-weight-row > label {
  margin-top: 0;
}
#quote .quote-fieldset.quote-parcel .parcel-weight-row input[type="number"],
#quote .quote-fieldset.quote-parcel .parcel-weight-row select {
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  border: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #fff !important;
  min-height: 2.35rem;
  padding: 0.42rem 0.45rem !important;
  font-size: 0.9rem;
  -webkit-appearance: none;
  appearance: none;
}
#quote .quote-fieldset.quote-parcel .parcel-weight-row .parcel-mass-unit select {
  text-align: center;
  font-weight: 600;
  cursor: pointer;
}
/* 长/宽/高 + 长度单位：更矮一行，底边与重量行对齐 */
#quote .quote-fieldset.quote-parcel .parcel-dims--inline.parcel-dims--compact {
  align-items: stretch;
  margin-top: 0;
  gap: 0.32rem;
}
#quote .quote-fieldset.quote-parcel .parcel-dims--compact .parcel-dim,
#quote .quote-fieldset.quote-parcel .parcel-dims--compact .parcel-dim--unit {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  min-width: 0;
  gap: 0;
}
#quote .quote-fieldset.quote-parcel .parcel-dims--compact .parcel-dim input[type="number"] {
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0.32rem 0.24rem !important;
  font-size: 0.88rem;
  box-sizing: border-box;
}
#quote .quote-fieldset.quote-parcel .parcel-dims--compact .parcel-dim--unit .quote-parcel__unit-select {
  min-height: 2.35rem;
  height: 2.35rem;
  padding: 0.28rem 0.2rem !important;
  font-size: 0.86rem;
  box-sizing: border-box;
}
#quote .quote-fieldset.quote-parcel .parcel-weight-row--compact {
  margin-top: 0.32rem;
  gap: 0.5rem;
}
#quote .quote-fieldset.quote-parcel .parcel-weight-row--compact input[type="number"],
#quote .quote-fieldset.quote-parcel .parcel-weight-row--compact select {
  min-height: 2.05rem !important;
  padding: 0.28rem 0.4rem !important;
  font-size: 0.86rem !important;
}

/* 询价：全屏磨砂加载层 */
.quote-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(16px) saturate(1.1);
  -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.quote-loading-overlay[hidden] {
  display: none !important;
}
.quote-loading-overlay__panel {
  width: 100%;
  max-width: 20rem;
  padding: 1.65rem 1.35rem 1.5rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(15, 23, 42, 0.14);
}
.quote-loading-overlay__spinner {
  width: 2.5rem;
  height: 2.5rem;
  margin: 0 auto 1rem;
  border: 3px solid rgba(24, 144, 255, 0.2);
  border-top-color: #1890ff;
  border-radius: 50%;
  animation: quote-loading-spin 0.72s linear infinite;
}
@keyframes quote-loading-spin {
  to {
    transform: rotate(360deg);
  }
}
.quote-loading-overlay__text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.4;
  letter-spacing: 0.02em;
}
.quote-loading-overlay__msg {
  display: inline;
}
.quote-loading-dots {
  display: inline;
  white-space: nowrap;
}
.quote-loading-dots__d {
  display: inline-block;
  min-width: 0.32em;
  text-align: center;
  animation: quote-loading-dots-bounce 1.05s ease-in-out infinite;
}
.quote-loading-dots__d:nth-child(1) {
  animation-delay: 0ms;
}
.quote-loading-dots__d:nth-child(2) {
  animation-delay: 120ms;
}
.quote-loading-dots__d:nth-child(3) {
  animation-delay: 240ms;
}
@keyframes quote-loading-dots-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: 0.25;
  }
  30% {
    transform: translateY(-5px);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .quote-loading-dots__d {
    animation: none;
    opacity: 0.75;
  }
}
@media (min-width: 900px) {
  .quote-parcel .parcel-dims--inline,
  .quote-parcel .parcel-weight-row {
    display: flex;
  }
}
@media (max-width: 720px) {
  .quote-parcel .parcel-dims {
    grid-template-columns: 1fr 1fr;
  }
  .quote-parcel .parcel-dims--inline {
    display: flex;
  }
}

.rates-results {
  margin-top: 0.85rem;
}

.quote-msg {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
}

.quote-msg-ok {
  color: #86efac;
}

.quote-msg-warn {
  color: #fcd34d;
}

.quote-msg-err {
  color: #fca5a5;
}

/* Home toast (fixed bottom center, glass) */
.home-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 400;
  /* min() 在旧版 WebKit 中曾导致解析问题，改为 calc + max-width */
  width: calc(100% - 2rem);
  max-width: 28rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: linear-gradient(
    165deg,
    rgba(17, 27, 46, 0.88) 0%,
    rgba(11, 18, 32, 0.82) 100%
  );
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.home-toast.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(0.35rem);
}

.home-toast__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
}

.home-toast__glyph {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 0.05rem;
}

.home-toast__text {
  flex: 1;
  min-width: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  white-space: pre-wrap;
}

.home-toast__text p {
  margin: 0;
}

.home-toast__close {
  flex-shrink: 0;
  margin: -0.15rem -0.1rem 0 0;
  padding: 0.25rem;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.home-toast__close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.home-toast--err {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: var(--shadow-md), 0 0 24px rgba(248, 113, 113, 0.12);
}

.home-toast--err .home-toast__glyph {
  background: rgba(248, 113, 113, 0.18);
  color: #fca5a5;
}

.home-toast--err .home-toast__inner {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.42), rgba(15, 23, 42, 0.88));
}

.home-toast--err .home-toast__text {
  color: #fecaca;
}

.home-toast--warn {
  border-color: rgba(251, 191, 36, 0.4);
  box-shadow: var(--shadow-md), 0 0 24px rgba(251, 191, 36, 0.1);
}

.home-toast--warn .home-toast__glyph {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

.home-toast--warn .home-toast__inner {
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.38), rgba(15, 23, 42, 0.88));
}

.home-toast--warn .home-toast__text {
  color: #fef3c7;
}

.home-toast--info {
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: var(--shadow-md), 0 0 24px var(--glow);
}

.home-toast--info .home-toast__glyph {
  background: var(--accent-dim);
  color: var(--accent-hover);
}

.home-toast--ok {
  border-color: rgba(52, 211, 153, 0.45);
  box-shadow: var(--shadow-md), 0 0 24px rgba(16, 185, 129, 0.12);
}

.home-toast--ok .home-toast__glyph {
  background: rgba(16, 185, 129, 0.22);
  color: #6ee7b7;
}

.home-toast--ok .home-toast__inner {
  background: linear-gradient(145deg, rgba(5, 46, 22, 0.42), rgba(15, 23, 42, 0.88));
}

.home-toast--ok .home-toast__text {
  color: #d1fae5;
}

.home-toast--prominent {
  max-width: 32rem;
}

.home-toast--prominent .home-toast__inner {
  padding: 0.95rem 1.05rem;
}

.home-toast--prominent .home-toast__text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

/* 首页询价区：内联提示（加载 / 错误） */
.quote-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.quote-alert__mark {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.06rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.quote-alert__mark--pulse {
  animation: quoteAlertPulse 1.1s ease-in-out infinite;
}

@keyframes quoteAlertPulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.92);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.quote-alert__copy {
  min-width: 0;
  flex: 1;
}

.quote-alert__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.quote-alert__detail {
  margin-top: 0.35rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
  word-break: break-word;
}

.quote-alert--loading {
  border-color: rgba(20, 184, 166, 0.35);
  background: #f0fdfa;
}

.quote-alert--loading .quote-alert__mark {
  background: rgba(20, 184, 166, 0.2);
  color: var(--accent);
}

.quote-alert--loading .quote-alert__mark::before {
  content: "…";
  letter-spacing: 0.06em;
}

.quote-alert--error {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.22), rgba(15, 23, 42, 0.94));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.quote-alert--error .quote-alert__mark {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
}

.quote-alert--error .quote-alert__mark::before {
  content: "!";
}

.quote-alert--warn {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(145deg, rgba(120, 53, 15, 0.2), rgba(15, 23, 42, 0.94));
}

.quote-alert--warn .quote-alert__mark {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
}

.quote-alert--warn .quote-alert__mark::before {
  content: "!";
}

@media (prefers-reduced-motion: reduce) {
  .quote-alert__mark--pulse {
    animation: none;
    opacity: 0.85;
  }
}

/* #ratesResults：紧凑面板风 + __glyph / --err / spinner（与上方 .quote-alert 并存） */
#ratesResults .quote-alert {
  padding: 0.75rem 1rem;
  background: linear-gradient(
    165deg,
    rgba(30, 41, 59, 0.92) 0%,
    rgba(15, 23, 42, 0.95) 100%
  );
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

#ratesResults .quote-alert__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

#ratesResults .quote-alert__title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
}

#ratesResults .quote-alert__detail {
  margin: 0;
  margin-top: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.quote-alert__glyph {
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.06rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.quote-alert--err {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.22), rgba(15, 23, 42, 0.94));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.quote-alert--err .quote-alert__glyph {
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.35);
}

.quote-alert--err .quote-alert__glyph::before {
  content: "×";
}

.quote-alert--warn .quote-alert__glyph {
  background: rgba(251, 191, 36, 0.15);
  color: #fde68a;
  border-color: rgba(251, 191, 36, 0.35);
}

.quote-alert--warn .quote-alert__glyph::before {
  content: "!";
}

#ratesResults .quote-alert--loading {
  align-items: center;
  gap: 0.75rem;
}

.quote-alert__spinner {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  animation: quote-alert-spin 0.75s linear infinite;
  flex-shrink: 0;
}

.quote-alert__loading-text {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

@keyframes quote-alert-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .quote-alert__spinner {
    animation: none;
    border-color: rgba(20, 184, 166, 0.45);
    border-top-color: var(--accent);
    opacity: 0.85;
  }
}

.quote-debug {
  font-size: 0.75rem;
  overflow-x: auto;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
}

/* 运价结果：卡片列表 */
.rates-panel {
  margin-top: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.rates-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(20, 184, 166, 0.06);
}

.rates-panel-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.rates-count-pill {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--link-hover);
  border: 1px solid rgba(13, 148, 136, 0.35);
}

.rate-card-list {
  list-style: none;
  margin: 0;
  padding: 0.65rem;
}

.rate-card {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: #f8fafc;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}

.rate-card:last-child {
  margin-bottom: 0;
}

.rate-card:hover {
  border-color: rgba(20, 184, 166, 0.35);
  background: #ffffff;
  transform: translateY(-1px);
}

.rate-card-main {
  flex: 1;
  min-width: 0;
}

.rate-card-line1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.35rem;
}

.rate-carrier-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
  border-radius: 0.4rem;
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.12), rgba(13, 148, 136, 0.12));
  color: #0c4a6e;
  border: 1px solid rgba(13, 148, 136, 0.25);
}

.rate-eta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.rate-service-name {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.35;
  word-break: break-word;
}

.rate-card-aside {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  text-align: right;
}

.rate-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.1rem;
}

.rate-price-cur {
  font-size: 0.7rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.06em;
}

.rate-price-amt {
  font-size: 1.35rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text);
  text-shadow: none;
}

.rate-btn-ship {
  padding: 0.45rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 0.5rem;
  background: #e6f7ff;
  color: #0050b3;
  border: 1px solid #91caff;
  cursor: pointer;
  box-shadow: none;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.rate-btn-ship:hover {
  transform: translateY(-1px);
  background: #bae7ff;
  color: #002c8c;
  border-color: #69c0ff;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.16);
}

.rates-empty {
  margin-top: 1.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border-radius: 1rem;
  border: 1px dashed var(--border-strong);
  background: #fffbeb;
}

.rates-empty-title {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fcd34d;
}

.rates-empty-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 26rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .rate-card {
    flex-direction: column;
    align-items: stretch;
  }

  .rate-card-aside {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: left;
  }

  .rate-price-block {
    align-items: flex-start;
  }
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
}

/* 登录 / 注册页内联表单（与询价区一致的深色输入框） */
.auth-panel input {
  background: #ffffff !important;
  border-color: var(--border-strong) !important;
  color-scheme: light;
}

.auth-panel input:-webkit-autofill,
.auth-panel input:-webkit-autofill:hover,
.auth-panel input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 99999s ease-out 0s;
}

.auth-panel input:focus-visible {
  outline: none;
  border-color: rgba(20, 184, 166, 0.55) !important;
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.auth-msg-ok {
  color: #86efac;
  font-size: 0.92rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.auth-msg-warn {
  color: #fcd34d;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.auth-resend {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.auth-resend .btn-ghost {
  width: 100%;
  margin-top: 0.5rem;
}

/* 寄出：填写完整地址弹层 */
.ship-modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.ship-modal.hidden {
  display: none;
}
.ship-modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.ship-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 920px;
  margin: 2rem auto;
  padding: 1.25rem 1.35rem 1.5rem;
  overflow: visible;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* 街道联想：原生 datalist 在输入数字时往往不弹出，用自定义下拉 */
.street-suggest-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.street-suggest-wrap > input {
  width: 100%;
}
.street-suggest-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  z-index: 500;
  max-height: 220px;
  overflow-y: auto;
  margin: 0;
  padding: 0.25rem 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
}
/* 收件栏等在视口下方：向上展开，避免被底部按钮挡住 */
.street-suggest-panel.street-suggest-panel--up {
  top: auto;
  bottom: calc(100% + 2px);
}
.street-suggest-item {
  display: block;
  width: 100%;
  padding: 0.45rem 0.65rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}
.street-suggest-item:hover,
.street-suggest-item:focus {
  background: var(--bg-subtle);
  outline: none;
}
.street-suggest-empty {
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  color: var(--muted, #888);
  line-height: 1.35;
}
.ship-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.ship-modal-head h3 {
  margin: 0;
  font-size: 1.15rem;
}
.ship-modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.ship-modal-close:hover {
  color: var(--text);
}
.ship-modal-lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}
.ship-modal-err {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.95rem 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.35), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(248, 113, 113, 0.42);
  color: #fecaca;
  font-size: 0.9rem;
  line-height: 1.5;
  border-left: 3px solid #f87171;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.ship-modal-err.hidden {
  display: none;
}
.ship-modal-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.ship-modal-loading.hidden {
  display: none;
}
.ship-modal-form.hidden {
  display: none;
}
.ship-modal-form {
  overflow: visible;
}
.ship-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 2;
  overflow: visible;
}
@media (max-width: 768px) {
  .ship-modal-grid {
    grid-template-columns: 1fr;
  }
}
.ship-modal-fieldset {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: visible;
  position: relative;
  z-index: 1;
}
/* 哪一侧正在显示街道联想，哪一侧叠到最上，避免另一列盖住下拉 */
.ship-modal-fieldset.ship-modal-fieldset--suggest-open {
  z-index: 10;
}
.ship-modal-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.ship-modal-book span:first-child {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  color: var(--muted, #888);
}

.ship-phone-hint {
  margin: -0.35rem 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--muted, #94a3b8);
  min-height: 1.15em;
}

.ship-phone-hint.err {
  color: #f87171;
}

.ship-modal-fieldset input.ship-input-invalid {
  border-color: #f87171 !important;
}

.ship-modal-save-row {
  margin-top: 0.35rem;
}

/* 需高于 .ship-modal-fieldset label 的 display:block 与下方 input 的 width:100%，否则复选框与文字会拆成两行 */
.ship-modal-fieldset label.ship-modal-save-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text-muted, #cbd5e1);
}

.ship-modal-fieldset label.ship-modal-save-label input[type="checkbox"] {
  width: auto;
  flex-shrink: 0;
  margin: 0;
}

.ship-modal-fieldset label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.ship-modal-fieldset label span:first-child {
  display: block;
  margin-bottom: 0.2rem;
}
.ship-modal-fieldset input,
.ship-modal-fieldset select {
  width: 100%;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--text);
  font-size: 0.92rem;
}
.ship-readonly {
  opacity: 0.92;
  cursor: not-allowed;
}
.ship-locked-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}
@media (max-width: 640px) {
  .ship-locked-row {
    grid-template-columns: 1fr;
  }
}
.ship-modal-submit-status {
  margin: 0 0 0.75rem;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--muted, #94a3b8);
  min-height: 1.25em;
}

.ship-modal-submit-status.hidden {
  display: none;
}

#shipAddrModalSubmit.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.95;
}

#shipAddrModalSubmit.is-loading::after {
  content: "";
  display: inline-block;
  width: 0.95em;
  height: 0.95em;
  margin-left: 0.45em;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  animation: ship-submit-spin 0.7s linear infinite;
  vertical-align: -0.12em;
}

@keyframes ship-submit-spin {
  to {
    transform: rotate(360deg);
  }
}

.ship-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 0;
}

@media (max-width: 640px) {
  .quote-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 899px) {
  .address-form-en .quote-row:not(.parcel-dims) {
    grid-template-columns: 1fr;
  }
}

/* ========== 浅色组件覆盖 + 移动顶栏菜单 + 询价分步 + 地址全屏弹层 ========== */
.hot-routes-pager__btn {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border-strong);
}
.hot-route-card {
  background: #ffffff;
  border-color: var(--border);
}
.hot-route-card:hover {
  background: #f8fafc;
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-sm);
}
.hot-route-title {
  color: var(--text);
}
#features,
#flow {
  background: linear-gradient(180deg, transparent 0%, rgba(241, 245, 249, 0.6) 50%, transparent 100%);
}
.card {
  background: #ffffff;
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.card h3 {
  color: var(--text);
}
.card-icon {
  background: linear-gradient(145deg, rgba(13, 148, 136, 0.12), rgba(2, 132, 199, 0.08));
  border-color: rgba(13, 148, 136, 0.2);
}
.api-strip {
  background: #f1f5f9;
  border-color: var(--border);
  color: #0369a1;
}
.api-strip code {
  color: var(--text);
}
footer {
  background: #ffffff;
  border-top-color: var(--border);
  color: var(--muted-2);
}
.site-footer-links a {
  color: var(--accent);
}
.site-footer-links a:hover {
  color: var(--link-hover);
}
.home-quote-ad {
  background: #f8fafc;
  border-color: var(--border-strong);
  color: var(--text);
}
.quote-fieldset {
  background: #ffffff;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.quote-parcel {
  background: #f8fafc;
  border-color: var(--border);
}
.rate-service-name {
  color: var(--text);
}
.rates-panel {
  background: #ffffff;
  border-color: var(--border);
}
.rates-panel-head {
  background: #f8fafc;
  border-bottom-color: var(--border);
}
.rate-card {
  background: #f8fafc;
  border-color: var(--border);
}
.rate-card:hover {
  background: #ffffff;
}
.rate-price-amt {
  color: var(--text);
  text-shadow: none;
}
.rates-empty {
  background: #fffbeb;
  border-color: #fde68a;
}
.home-toast {
  background: #ffffff;
  border-color: var(--border-strong);
  color: var(--text);
}
.home-toast__text {
  color: var(--text);
}
.quote-alert {
  background: #f8fafc;
  border-color: var(--border);
}
.quote-alert__title {
  color: var(--text);
}
#ratesResults .quote-alert {
  background: #ffffff;
}
.ship-modal-dialog {
  background: #ffffff;
}
.ship-modal-fieldset {
  background: #f8fafc;
}
.ship-modal-fieldset input,
.ship-modal-fieldset select {
  background: #ffffff;
}

/* 顶栏：汉堡（仅窄屏） */
.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 0.5rem 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.nav-menu-btn__bars {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  box-shadow: 0 -5px 0 var(--text), 0 5px 0 var(--text);
}
@media (max-width: 899px) {
  .nav-menu-btn {
    display: inline-flex;
  }
}
.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}
.nav-drawer:not([hidden]) {
  pointer-events: auto;
}
.nav-drawer__backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.nav-drawer:not([hidden]) .nav-drawer__backdrop {
  opacity: 1;
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 88vw;
  max-width: 20rem;
  height: 100%;
  background: #ffffff;
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(15, 23, 42, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  outline: none;
}
.nav-drawer:not([hidden]) .nav-drawer__panel {
  transform: translateX(0);
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
}
.nav-drawer__title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.nav-drawer__close {
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.nav-drawer__close:hover {
  color: var(--text);
  background: #f1f5f9;
}
.nav-drawer__links {
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0;
  flex: 1;
  overflow-y: auto;
}
.nav-drawer__link {
  display: block;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid #f1f5f9;
}
.nav-drawer__link:hover {
  background: #f8fafc;
  text-decoration: none;
  color: var(--link-hover);
}
.nav-drawer__user {
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--muted);
}
.nav-drawer__user-block a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.nav-drawer__user-block a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
body.nav-drawer-open {
  overflow: hidden;
}

/* 询价：分步（窄屏） / 并列表单（宽屏） */
.quote-wizard {
  max-width: 100%;
}
.quote-wizard__bar {
  display: none;
  margin-bottom: 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  border: 1px solid var(--border);
}
.quote-wizard__pos {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.quote-wizard__progress {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}
.quote-wizard__progress-seg {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.35);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.quote-wizard__progress-seg.is-done {
  background: linear-gradient(90deg, #38bdf8, #2563eb);
}
.quote-wizard__progress-seg.is-current {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.22);
}
@keyframes zipAddrSkeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
#quote .quote-wizard .quote-wizard-addr-row.is-zip-lookup-pending .quote-addr-col--city input.input-underline,
#quote .quote-wizard .quote-wizard-addr-row.is-zip-lookup-pending .state-field select,
#quote .quote-wizard .quote-wizard-addr-row.is-zip-lookup-pending .state-field input:not(.hidden) {
  background: linear-gradient(90deg, #f1f5f9 0%, #f1f5f9 40%, #e2e8f0 50%, #f1f5f9 60%, #f1f5f9 100%) !important;
  background-size: 200% 100% !important;
  animation: zipAddrSkeleton 1.05s ease-in-out infinite !important;
  border-color: #e2e8f0 !important;
}
.quote-wizard__desktop-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .quote-wizard__desktop-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .quote-wizard__bar {
    display: none !important;
  }
  .quote-wizard__foot {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: stretch;
    align-items: center;
    gap: 0.65rem;
    margin-top: 0.65rem;
  }
  .quote-wizard__foot .quote-wizard__btn-prev {
    display: none !important;
  }
  .quote-wizard__next {
    min-width: 12rem;
  }
  /* 宽屏主 CTA：约 65% 宽居中，胶囊浅蓝条（见 tech-identity .quote-wizard__cta） */
  .quote-wizard__foot.quote-wizard__foot--wide {
    justify-content: center;
  }
  .quote-wizard__foot.quote-wizard__foot--wide .quote-wizard__next.quote-wizard__cta {
    flex: 0 0 65%;
    max-width: 70%;
    min-width: 0;
    width: 65%;
    margin: 1.25rem auto 0.4rem;
  }
  .quote-wizard__pane {
    display: block !important;
  }
  .quote-wizard__pane .quote-fieldset {
    height: 100%;
  }
}
@media (max-width: 899px) {
  .quote-wizard__bar {
    display: block;
  }
  .quote-wizard[data-wizard-step="1"] .quote-wizard__pane[data-wizard-idx="2"],
  .quote-wizard[data-wizard-step="1"] .quote-wizard__pane[data-wizard-idx="3"] {
    display: none !important;
  }
  .quote-wizard[data-wizard-step="2"] .quote-wizard__pane[data-wizard-idx="1"],
  .quote-wizard[data-wizard-step="2"] .quote-wizard__pane[data-wizard-idx="3"] {
    display: none !important;
  }
  .quote-wizard[data-wizard-step="3"] .quote-wizard__pane[data-wizard-idx="1"],
  .quote-wizard[data-wizard-step="3"] .quote-wizard__pane[data-wizard-idx="2"] {
    display: none !important;
  }
  .quote-wizard__foot {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.65rem;
    justify-content: space-between;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
  }
  /* 第 1 步：彻底隐藏「上一步」（避免 [hidden] 被 .btn 的 display 盖住仍占位） */
  #quote .quote-wizard[data-wizard-step="1"] .quote-wizard__foot .quote-wizard__btn-prev {
    display: none !important;
  }
  /* 第 1–2 步：底部更贴近地址卡，键盘弹出时少挡按钮 */
  #quote .quote-wizard[data-wizard-step="1"] .quote-wizard__foot,
  #quote .quote-wizard[data-wizard-step="2"] .quote-wizard__foot {
    margin-top: 0.28rem;
  }
  .quote-wizard__foot .quote-wizard__btn-prev {
    flex: 0 1 35%;
    max-width: 35%;
    min-width: 0;
    min-height: 2.65rem;
    padding: 0 0.45rem;
    font-weight: 600;
    color: #2563eb;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.45);
    border-radius: 25px;
    box-shadow: none;
  }
  .quote-wizard__foot .quote-wizard__btn-prev:hover {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.06);
    border-color: rgba(37, 99, 235, 0.55);
  }
  .quote-wizard__next {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 2.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }
  .quote-wizard__foot .quote-wizard__next.quote-wizard__cta {
    flex: 0 0 65%;
    max-width: 70%;
    border-radius: 30px;
    margin-left: auto;
    margin-right: auto;
  }
  .quote-wizard__foot:has(.quote-wizard__next:not(.quote-wizard__cta)) .quote-wizard__next {
    flex: 0 0 60%;
    max-width: 60%;
  }
  /* 第 1 步仅「下一步」、上一步隐藏时，主按钮占满一行 */
  .quote-wizard__foot .quote-wizard__btn-prev[hidden] + .quote-wizard__next {
    flex: 1 1 100% !important;
    max-width: 100% !important;
  }
  /* 第 2 步：双按钮横向；第 1 步仅「下一步」见下方覆盖 */
  .quote-wizard[data-wizard-step="2"] .quote-wizard__foot {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.5rem;
  }
  .quote-wizard[data-wizard-step="2"] .quote-wizard__foot .quote-wizard__btn-prev {
    flex: 0 0 35%;
    max-width: 35%;
  }
  .quote-wizard[data-wizard-step="2"] .quote-wizard__foot .quote-wizard__next:not(.quote-wizard__cta) {
    flex: 0 0 60%;
    max-width: 60%;
    width: auto;
    font-weight: 600;
    border-radius: 28px;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.28);
  }
  /* 第 1 步：整行宽大「下一步」，圆角 30px + 略强蓝色投影 */
  .quote-wizard[data-wizard-step="1"] .quote-wizard__foot {
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 0;
  }
  .quote-wizard[data-wizard-step="1"] .quote-wizard__foot .quote-wizard__next:not(.quote-wizard__cta) {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 6px 22px rgba(37, 99, 235, 0.26);
    min-height: 3rem;
  }
  .quote-wizard__next .quote-wizard__next-spinner {
    width: 1.05rem;
    height: 1.05rem;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    flex-shrink: 0;
  }
  .quote-wizard__next.is-loading .quote-wizard__next-spinner {
    animation: quote-wiz-spin 0.65s linear infinite;
  }
  @keyframes quote-wiz-spin {
    to {
      transform: rotate(360deg);
    }
  }
  .quote-wizard__foot.quote-wizard__foot--wide {
    justify-content: center;
  }
  .quote-wizard__foot .btn {
    min-height: 2.75rem;
  }
  /* 窄屏第 3 步：先步骤条，再只显示包裹，最后仅底部一行动线（无顶栏双按钮） */
  .quote-wizard[data-wizard-step="3"] {
    display: flex;
    flex-direction: column;
  }
  .quote-wizard[data-wizard-step="3"] .quote-wizard__bar {
    order: 1;
  }
  .quote-wizard[data-wizard-step="3"] .quote-wizard__desktop-row {
    display: none !important;
  }
  .quote-wizard[data-wizard-step="3"] .quote-wizard__pane[data-wizard-idx="3"] {
    order: 2;
  }
  .quote-wizard[data-wizard-step="3"] .quote-wizard__foot {
    order: 3;
    margin-top: 0.45rem;
    margin-bottom: 0.5rem;
  }
  #quote .quote-wizard[data-wizard-step="3"] .quote-parcel {
    margin-top: 0.25rem !important;
  }
}

/* 地址弹窗：小屏全屏，易滚动 */
@media (max-width: 768px) {
  #quote .quote-wizard .quote-label-stack select,
  #quote .quote-wizard .quote-addr-col--zip .quote-zip-input,
  #quote .quote-wizard .quote-wizard-addr-row input,
  #quote .quote-wizard .quote-wizard-addr-row select:not(.hidden),
  #quote .quote-wizard .parcel-dim input,
  #quote .quote-wizard .parcel-weight input,
  #quote .quote-wizard .parcel-dim--unit select,
  #quote .quote-wizard .parcel-mass-unit select {
    min-height: 48px;
    font-size: 16px;
  }
  .ship-modal {
    padding: 0;
    align-items: stretch;
  }
  .ship-modal-dialog {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    display: flex;
    flex-direction: column;
  }
  .ship-modal-form {
    flex: 1;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ship-modal-head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    padding-top: 0.75rem;
  }
  .ship-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    background: #ffffff;
    border-top: 1px solid var(--border);
    margin-top: auto;
    padding-bottom: 0.75rem;
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Hero 网格装饰：浅色下更淡 */
.hero::before,
.hero::after {
  opacity: 0.25;
}
@media (max-width: 640px) {
  .hero {
    padding: 2.25rem 0 2.5rem;
  }
  .hero h1 {
    font-size: clamp(1.45rem, 6vw, 1.9rem);
  }
  .hero-lead {
    font-size: 0.98rem;
    margin-bottom: 1.5rem;
  }
  section {
    padding: 2.25rem 0;
  }
}
/**
 * Minimalist Tech 视觉层（电光蓝 + 青 + 高留白）
 * 依赖 home.css 中的布局类名；本文件为覆盖/增强层。
 */
:root {
  --tech-primary: #2563eb;
  --tech-secondary: #06b6d4;
  --tech-bg: #f8fafc;
  --tech-text: #1e293b;
  --tech-text-muted: #64748b;
  --tech-border: #e2e8f0;
  --tech-radius-card: 12px;
  --tech-radius-pill: 50px;
  --tech-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tech-dur: 0.3s;
}

/* ---------- 全局色与过渡 ---------- */
body {
  color: var(--tech-text) !important;
  background-color: var(--tech-bg) !important;
  background-image: none !important;
  transition: background-color var(--tech-dur) var(--tech-ease);
}

a {
  color: var(--tech-primary) !important;
  transition: color var(--tech-dur) var(--tech-ease), opacity var(--tech-dur) var(--tech-ease);
}
a:hover {
  color: #1d4ed8 !important;
}

::selection {
  background: rgba(37, 99, 235, 0.15);
  color: var(--tech-text) !important;
}

/* ---------- 顶栏：毛玻璃 + 细底边，与主内容「分层」如原生 App ---------- */
.nav-chrome .nav-top {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(10px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
  border-bottom: 1px solid #f0f0f0 !important;
  transition: box-shadow var(--tech-dur) var(--tech-ease);
}

.nav-chrome .nav-tabs {
  display: none;
  background: #ffffff !important;
  border-bottom: 1px solid var(--tech-border) !important;
}

.nav-chrome .nav-tab {
  color: var(--tech-text-muted) !important;
  font-weight: 600 !important;
}

.nav-chrome .nav-tab:hover {
  color: var(--tech-text) !important;
}

.nav-chrome .nav-tab--active,
.nav-chrome .nav-tab[aria-current="page"] {
  color: var(--tech-primary) !important;
  border-bottom-color: var(--tech-primary) !important;
  font-weight: 700 !important;
}

.nav-user {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.nav-ghost,
.nav-user > a.nav-ghost,
.nav-user a.nav-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.4rem;
  padding: 0.35rem 1rem !important;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--tech-text) !important;
  text-decoration: none !important;
  border: 1px solid var(--tech-border) !important;
  border-radius: var(--tech-radius-pill) !important;
  background: transparent !important;
  box-shadow: none !important;
  transition: all var(--tech-dur) var(--tech-ease) !important;
}
/* 勿作用于已登录的「用户中心/首页」链（.nav-user-home-link / .nav-user-center-link），
 * 否则白字+渐变会盖掉 home.css 里的青/紫字与药丸底，按压 :active 瞬间尤其容易「字消失」。 */
.nav-ghost:hover,
.nav-user > a.nav-ghost:hover:not(.nav-user-home-link):not(.nav-user-center-link),
.nav-user a.nav-ghost:hover:not(.nav-user-home-link):not(.nav-user-center-link) {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-secondary) 100%) !important;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25) !important;
}

/* 登录：线框主色 + 极浅蓝底，点击感更强；注册：浅底 + 边框，层次更清晰 */
.nav-user > a.nav-ghost--login {
  color: var(--tech-primary) !important;
  border-color: rgba(29, 78, 216, 0.55) !important;
  background: rgba(37, 99, 235, 0.09) !important;
}
.nav-user > a.nav-ghost--register {
  color: var(--tech-primary) !important;
  border-color: rgba(37, 99, 235, 0.3) !important;
  background: rgba(37, 99, 235, 0.07) !important;
}
.nav-user > a.nav-ghost--login:hover,
.nav-user > a.nav-ghost--register:hover {
  color: #fff !important;
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--tech-primary) 0%, var(--tech-secondary) 100%) !important;
}

.nav-user .nav-user-name {
  color: #334155;
  max-width: 7rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user a.nav-user-home-link.nav-ghost,
.nav-user a.nav-user-center-link.nav-ghost {
  -webkit-tap-highlight-color: rgba(20, 184, 166, 0.25);
}
.nav-user a.nav-user-center-link.nav-ghost {
  -webkit-tap-highlight-color: rgba(99, 102, 241, 0.22);
}
.nav-user .nav-user-home-link {
  color: #0d9488 !important;
  font-weight: 600;
}
.nav-user a.nav-user-home-link.nav-ghost {
  /* 已登录 CTA 二选一；彩色见下方各断点 */
}
.nav-user .nav-user-center-link {
  color: #4f46e5 !important;
  font-weight: 600;
}
/* 手机：底栏主导航；桌面宽屏不显示第二层 */
@media (min-width: 900px) {
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost {
    color: #0d9488 !important;
  }
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost::before {
    background: linear-gradient(145deg, #2dd4bf, #3b82f6) !important;
  }
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost {
    color: #4f46e5 !important;
  }
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost::before {
    background: linear-gradient(145deg, #6366f1, #3b82f6) !important;
  }
  .nav-chrome .nav-tabs {
    display: none !important;
  }
}
/* 手机：工具层毛玻璃；底栏 Tab 顶边线样式（与 home 固定底栏一致） */
@media (max-width: 899px) {
  .nav-chrome .nav-tabs {
    display: flex !important;
    border-bottom: none !important;
    border-top: 1px solid var(--tech-border) !important;
  }
  .nav-chrome .nav-tab--active,
  .nav-chrome .nav-tab[aria-current="page"] {
    border-bottom-color: transparent !important;
    border-top-color: var(--tech-primary) !important;
  }
  .nav-chrome .nav-top {
    background: rgba(255, 255, 255, 0.94) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.12) !important;
    backdrop-filter: blur(10px) saturate(1.12) !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  /* 与 home 一致：语言 select 与按钮同高、垂直中线对齐 */
  .nav-chrome .lang-switch select,
  .nav-chrome .nav-user > a.nav-ghost {
    height: 2.25rem !important;
    min-height: 2.25rem !important;
    max-height: 2.25rem !important;
    box-sizing: border-box !important;
    line-height: 1.2 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  .nav-chrome .lang-switch select {
    font-size: 0.78rem !important;
    font-weight: 400 !important;
    color: #94a3b8 !important;
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    padding-left: 0.4rem !important;
    padding-right: 0.4rem !important;
  }
  .nav-chrome .nav-user > a.nav-ghost {
    font-size: 0.8rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost {
    min-height: 2.25rem !important;
    height: 2.25rem !important;
    max-height: 2.25rem !important;
    padding: 0 0.6rem 0 0.5rem !important;
    font-size: 0.85rem !important;
    color: #0d9488 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(59, 130, 246, 0.12)) !important;
    border: 1px solid rgba(20, 184, 166, 0.45) !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 3px rgba(13, 148, 136, 0.12) !important;
  }
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost:hover,
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost:focus-visible,
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost:active {
    color: #0f766e !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.28), rgba(59, 130, 246, 0.18)) !important;
    border-color: rgba(14, 165, 180, 0.55) !important;
  }
  .nav-chrome .nav-user a.nav-user-home-link.nav-ghost::before {
    background: linear-gradient(145deg, #2dd4bf, #3b82f6) !important;
  }
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost {
    min-height: 2.25rem !important;
    height: 2.25rem !important;
    max-height: 2.25rem !important;
    padding: 0 0.6rem 0 0.5rem !important;
    font-size: 0.85rem !important;
    color: #4f46e5 !important;
    text-decoration: none !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(59, 130, 246, 0.1)) !important;
    border: 1px solid rgba(99, 102, 241, 0.4) !important;
    border-radius: 9999px !important;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.1) !important;
  }
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost:hover,
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost:focus-visible,
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost:active {
    color: #4338ca !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.26), rgba(59, 130, 246, 0.16)) !important;
    border-color: rgba(79, 70, 229, 0.5) !important;
  }
  .nav-chrome .nav-user a.nav-user-center-link.nav-ghost::before {
    background: linear-gradient(145deg, #6366f1, #3b82f6) !important;
  }
  .nav-chrome .brand-mark:not(.brand-mark--custom) {
    width: 1.35rem !important;
    height: 1.35rem !important;
    font-size: 0.68rem !important;
    border-radius: 0.45rem !important;
  }
}

.brand {
  color: var(--tech-text) !important;
  transition: color var(--tech-dur) var(--tech-ease);
}
.brand:hover {
  color: var(--tech-primary) !important;
}
.brand-mark {
  width: 1.8rem !important;
  height: 1.8rem !important;
  font-size: 0.9rem !important;
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22) !important;
  border-radius: 10px !important;
}
.brand-mark.brand-mark--custom {
  width: auto !important;
  max-width: 120px !important;
  height: 2rem !important;
  font-size: inherit !important;
}
.brand {
  gap: 0.55rem !important;
}
header.nav a.brand #navSiteName {
  font-size: 0.95rem !important;
  line-height: 1.8rem !important;
}
.nav-chrome .nav-top .wrap.nav-top-inner {
  padding-top: 0.45rem;
  padding-bottom: 0.45rem;
  min-height: 2.75rem;
  height: auto;
}

.brand:focus-visible {
  outline: 2px solid var(--tech-primary) !important;
  color: var(--tech-text) !important;
}

.lang-switch select {
  border-radius: 12px !important;
  border-color: #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-weight: 400 !important;
  font-size: 0.8rem !important;
  transition: border-color var(--tech-dur) var(--tech-ease);
}
.lang-switch select:hover {
  border-color: rgba(37, 99, 235, 0.28) !important;
  color: #64748b !important;
}

/* ---------- Hero：左文右图 ---------- */
.hero {
  padding: 5rem 0 3rem !important;
  overflow: hidden;
  transition: padding var(--tech-dur) var(--tech-ease);
}
.hero::before,
.hero::after {
  display: none !important;
}
.hero-inner.hero-split {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2.5rem 3.5rem;
  align-items: center;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-copy h1,
.hero-inner.hero-split h1 {
  text-align: left;
  font-size: clamp(1.75rem, 3.2vw, 2.5rem) !important;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--tech-text) !important;
  margin: 0 0 1rem;
}
.hero-inner.hero-split .hero-lead {
  text-align: left;
  margin: 0 0 1.75rem;
  color: var(--tech-text-muted) !important;
  max-width: 32rem;
  font-size: 1.05rem;
  line-height: 1.65;
}
.hero-inner.hero-split .hero-home-rich {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  color: var(--tech-text-muted) !important;
}
.hero-home-banner .public-home-ad {
  text-align: left;
  color: var(--tech-text-muted) !important;
  margin-top: 1.1rem;
}
@media (min-width: 700px) {
  .hero-home-banner .public-home-ad {
    text-align: center;
  }
}
.hero-inner.hero-split .hero-actions {
  justify-content: flex-start;
}
@media (max-width: 900px) {
  .hero-inner.hero-split {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy h1,
  .hero-inner.hero-split h1,
  .hero-inner.hero-split .hero-lead {
    text-align: center;
  }
  .hero-inner.hero-split .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
    min-height: 200px;
  }
}

/* 后台配置首屏富文本时仍保持左文右图（右侧默认线框图始终可见，避免右栏空白） */
.hero-visual {
  position: relative;
  min-height: 280px;
  border-radius: var(--tech-radius-card);
  border: 1px solid var(--tech-border);
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: box-shadow var(--tech-dur) var(--tech-ease), transform var(--tech-dur) var(--tech-ease);
}
.hero-visual:hover {
  box-shadow: 0 24px 48px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}
.hero-visual__grid {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background-image: linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}
.hero-visual__scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40%;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.12), transparent);
  animation: tech-scan 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes tech-scan {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  50% {
    transform: translateY(120%);
    opacity: 0.8;
  }
}
.hero-visual__svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-visual__scan {
    animation: none;
    opacity: 0.25;
  }
}

/* ---------- 区块留白 ---------- */
section {
  padding: 5rem 0 !important;
  transition: padding var(--tech-dur) var(--tech-ease);
}
@media (min-width: 900px) {
  section {
    padding: 5.5rem 0 !important;
  }
}

/* 首页：与上方 .home-quote-ad-band 或询价区衔接，顶距尽量小 */
#hot-routes {
  padding-top: 0.35rem !important;
  padding-bottom: 2.5rem !important;
  margin-top: 0 !important;
}

.home-quote-ad-band {
  background: #f3f4f6 !important;
  padding: 0.3rem 0 0.35rem !important;
}
.home-quote-ad-band[hidden] {
  display: none !important;
}

#quote h2,
#hot-routes h2,
section h2 {
  color: var(--tech-text) !important;
}
#quote h2::after,
#hot-routes h2::after,
section h2::after {
  background: linear-gradient(90deg, var(--tech-primary), var(--tech-secondary)) !important;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25) !important;
}

/* ---------- 智慧询价：沉浸卡片、并列、底边线输入 ---------- */
#quote {
  background: #f3f4f6 !important;
  /* 与首屏区整体留白过宽时，收紧上下边距；底边近 0，避免广告与「热门线路」之间大块灰带 */
  padding: 2.5rem 0 0.15rem !important;
}
#quote .wrap {
  max-width: 1100px;
}
#quote h2 {
  margin-bottom: 0.45rem;
  color: #0f172a;
}

.quote-immersive {
  position: relative;
  padding: 1.2rem 1.75rem 2rem;
  border-radius: 12px;
  border: none;
  background: #fff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.35rem;
  transition: box-shadow var(--tech-dur) var(--tech-ease);
}
@media (min-width: 900px) {
  .quote-immersive {
    padding: 1.5rem 2rem 2.5rem;
  }
}

.quote-wizard__desktop-row {
  display: grid;
  align-items: stretch;
  gap: 0;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .quote-wizard__desktop-row {
    grid-template-columns: 1fr auto 1fr;
    gap: 1.25rem 0;
  }
}

.quote-connector {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  color: var(--tech-text-muted);
  font-size: 1.5rem;
  user-select: none;
}
@media (min-width: 900px) {
  .quote-connector {
    display: flex;
  }
  .quote-connector__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    border: 1px solid rgba(37, 99, 235, 0.22);
    background: #fff;
    color: #2563eb;
    font-size: 1.65rem;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(37, 99, 235, 0.15);
  }
}

/* 底边线输入 */
.input-underline,
#quote .quote-fieldset input:not([type="checkbox"]):not([type="number"]),
#quote .quote-fieldset select,
.quote-fieldset .input-underline {
  border: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.6rem 0.15rem 0.5rem !important;
  min-height: 2.5rem;
  color: var(--tech-text) !important;
  transition: border-color var(--tech-dur) var(--tech-ease), color var(--tech-dur) var(--tech-ease);
}
#quote .quote-fieldset input:hover,
#quote .quote-fieldset select:hover,
.input-underline:hover {
  border-bottom-color: rgba(37, 99, 235, 0.35) !important;
}
#quote .quote-fieldset input:focus,
#quote .quote-fieldset select:focus,
.input-underline:focus,
.input-underline.input-underline--flash {
  outline: none !important;
  border-bottom-color: var(--tech-primary) !important;
  box-shadow: none !important;
}
#quote .quote-fieldset input:-webkit-autofill,
#quote .quote-fieldset input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--tech-text) !important;
  box-shadow: 0 0 0 1000px #fff inset !important;
  transition: background-color 99999s ease-out 0s;
}

#quote .quote-fieldset input[type="number"] {
  border: none !important;
  border-bottom: 1px solid #cbd5e1 !important;
  border-radius: 0 !important;
  background: transparent !important;
  max-width: 100%;
}
/* 包裹三边与单位同一行：小圆角描边，与单位下拉对齐 */
#quote .quote-fieldset.quote-parcel .parcel-dims--inline input[type="number"] {
  border: 1px solid #e2e8f0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #fff !important;
}
.quote-line--city {
  display: block;
  margin-top: 0.65rem;
}
.quote-line--city .quote-line__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.5rem;
}
.zip-detected-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.15rem 0.4rem 0.15rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tech-primary) !important;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 6px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  white-space: nowrap;
  flex-shrink: 0;
  opacity: 0;
  transform: translateX(-4px);
  pointer-events: none;
  transition: opacity 0.45s var(--tech-ease), transform 0.45s var(--tech-ease);
}
.zip-detected-badge[hidden] {
  display: none !important;
}
.zip-detected-badge.is-on {
  opacity: 1;
  transform: translateX(0);
}
.zip-detected-badge__icon {
  font-size: 0.7rem;
  line-height: 1;
  font-weight: 800;
}
/* 邮编行右侧：缩小徽标，不单独占行 */
.zip-detected-badge.zip-detected-badge--inline {
  flex-shrink: 0;
  align-self: flex-end;
  margin-bottom: 0.12rem;
  padding: 0.06rem 0.28rem 0.06rem 0.22rem;
  font-size: 0.58rem;
  gap: 0.1rem;
  border-radius: 5px;
  max-width: 42%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.zip-detected-badge--inline .zip-detected-badge__icon {
  font-size: 0.55rem;
}
.zip-detected-badge--inline .zip-detected-badge__text {
  overflow: hidden;
  text-overflow: ellipsis;
}
.input-underline--flash {
  animation: cityIn 0.6s var(--tech-ease) 1;
}
@keyframes cityIn {
  from {
    color: transparent;
  }
  to {
    color: var(--tech-text);
  }
}

#quote .quote-fieldset {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0.5rem 0.25rem 0 !important;
  border-radius: 0;
}
#quote .quote-fieldset legend {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tech-text-muted) !important;
  font-weight: 600;
  padding: 0 0 0.5rem 0.15rem;
  width: 100%;
  border-bottom: 1px solid var(--tech-border);
  margin-bottom: 0.75rem;
}
.quote-parcel {
  background: #fafbfc !important;
  border: 1px solid var(--tech-border) !important;
  border-radius: var(--tech-radius-card) !important;
  margin-top: 0.9rem;
  padding: 1rem 1rem 1.15rem !important;
}
.quote-parcel legend.quote-parcel__legend-row,
.quote-parcel__legend-row {
  border-bottom: 1px solid var(--tech-border) !important;
  margin: 0 0 0.5rem 0 !important;
  padding: 0 0 0.5rem 0.15rem !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--tech-text-muted) !important;
  font-weight: 600 !important;
  width: 100% !important;
  float: none !important;
}
/* 长度单位与长/宽/高同一行时 */
.parcel-dim--unit .quote-parcel__unit-select {
  border: 1px solid #cbd5e1 !important;
  background: #fff !important;
  border-radius: 6px !important;
  padding: 0.35rem 0.2rem !important;
  min-height: 2.35rem;
  color: var(--tech-text) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  text-transform: none !important;
  letter-spacing: 0;
  width: 100%;
}
.parcel-dims--inline {
  display: flex !important;
  gap: 0.35rem;
}
.parcel-dims--inline .parcel-dim input {
  text-align: center;
}
.parcel-weight-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 0.65rem;
  margin-top: 0.35rem;
  width: 100%;
}
.parcel-weight-row .parcel-weight {
  flex: 1 1 60%;
  min-width: 0;
}
.parcel-weight-row .parcel-mass-unit {
  flex: 1 1 40%;
  min-width: 0;
  max-width: none;
}
/* 紧接上文 .parcel-weight-row{width:100%}：有 wrap 时仅宽屏横排、重量在右；与 home.css 同用 900px+，窄屏不强制一行 */
@media (min-width: 900px) {
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end;
    gap: 0.5rem 0.75rem;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-dims--inline {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    margin-bottom: 0;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact,
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-end !important;
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: 14rem !important;
    min-width: 0 !important;
    margin: 0 0 0 auto !important;
    margin-top: 0 !important;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact .parcel-weight {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  #quote .quote-fieldset.quote-parcel .quote-parcel__dims-weight-wrap .parcel-weight-row--compact .parcel-mass-unit {
    flex: 0 0 2.85rem !important;
  }
}

/* 主按钮（全站 .btn-primary） */
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #06b6d4) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 28px !important;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2) !important;
  font-weight: 600;
  min-height: 2.9rem;
  padding: 0.65rem 1.25rem !important;
  transition: transform var(--tech-dur) var(--tech-ease), box-shadow var(--tech-dur) var(--tech-ease) !important;
}

/* 首页询价区「立即查询」：商务深蓝、胶囊、柔和投影 */
#quote .quote-wizard__next.quote-wizard__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 45%, #0ea5e9 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 16px rgba(8, 47, 73, 0.22) !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  min-height: 48px !important;
  height: 48px !important;
  min-width: min(100%, 14rem) !important;
  width: auto;
  padding: 0 1.5rem !important;
  transition: transform var(--tech-dur) var(--tech-ease), box-shadow var(--tech-dur) var(--tech-ease),
    filter 0.15s ease, background 0.2s ease !important;
  gap: 0.4rem;
}
#quote .quote-wizard__next.quote-wizard__cta::after {
  content: "→";
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.95;
}
#quote .quote-wizard__next.quote-wizard__cta.is-loading::after {
  content: none;
  display: none;
}
#quote .quote-wizard__next.quote-wizard__cta:hover:not(:disabled):not(.is-loading) {
  transform: translateY(-1px) !important;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 42%, #0369a1 100%) !important;
  box-shadow: 0 8px 28px rgba(30, 58, 138, 0.4) !important;
  filter: brightness(0.98);
}
#quote .quote-wizard__next.quote-wizard__cta.is-loading {
  justify-content: center;
  gap: 0.5rem;
}
#quote .quote-wizard__next.quote-wizard__cta.is-loading .quote-wizard__next-spinner {
  order: -1;
}
#quote .quote-wizard__next.is-loading {
  transform: none !important;
  opacity: 0.95;
  cursor: wait;
}
/* 未满足邮编校验等：置灰不可点（与加载中区分） */
#quote .quote-wizard__next:disabled:not(.is-loading) {
  transform: none !important;
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  background: #e2e8f0 !important;
  border: 1px solid #cbd5e1 !important;
  filter: grayscale(0.08);
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta):disabled:not(.is-loading),
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta):disabled:not(.is-loading) {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta):disabled:not(.is-loading) .quote-wizard__next-label,
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta):disabled:not(.is-loading) .quote-wizard__next-label {
  color: #64748b !important;
}
#quote .quote-wizard__next.quote-wizard__cta:disabled:not(.is-loading) {
  background: #e2e8f0 !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: none !important;
}
#quote .quote-wizard__next.quote-wizard__cta:disabled:not(.is-loading) .quote-wizard__next-label {
  color: #64748b !important;
}
#quote .quote-wizard__next.quote-wizard__cta .quote-wizard__next-label {
  color: #fff !important;
}
#quote .quote-wizard__next:not(.quote-wizard__cta) {
  /* 第 1–2 步「下一步」：次级主色块 */
  background: #fff !important;
  color: var(--tech-primary) !important;
  border: 1px solid rgba(37, 99, 235, 0.45) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06) !important;
}
#quote .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-label {
  color: var(--tech-primary) !important;
}
#quote .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-spinner {
  border-color: rgba(37, 99, 235, 0.35) !important;
  border-top-color: var(--tech-primary) !important;
}
/* 窄屏第 1–2 步：「下一步」与主 CTA 同色阶 */
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta),
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta) {
  background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%) !important;
  color: #fff !important;
  border: none !important;
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta) {
  border-radius: 30px !important;
  box-shadow: 0 5px 18px rgba(8, 47, 73, 0.22) !important;
}
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta) {
  border-radius: 28px !important;
  box-shadow: 0 4px 15px rgba(8, 47, 73, 0.2) !important;
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-label,
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-label {
  color: #fff !important;
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-spinner,
#quote .quote-wizard[data-wizard-step="2"] .quote-wizard__next:not(.quote-wizard__cta) .quote-wizard__next-spinner {
  border-color: rgba(255, 255, 255, 0.4) !important;
  border-top-color: #fff !important;
}
.btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.3) !important;
}
.btn-ghost {
  border-radius: var(--tech-radius-pill) !important;
  border: 1px solid var(--tech-border) !important;
  background: transparent !important;
  color: var(--tech-text) !important;
  transition: all var(--tech-dur) var(--tech-ease) !important;
}
.btn-ghost:hover {
  color: var(--tech-primary) !important;
  border-color: rgba(37, 99, 235, 0.35) !important;
  background: rgba(37, 99, 235, 0.04) !important;
}

/* 询价向导「上一步」：白底蓝框幽灵按钮，主 CTA 保持渐变（第 1 步隐藏） */
#quote .quote-wizard__foot .quote-wizard__btn-prev {
  background: #ffffff !important;
  border: 1px solid rgba(37, 99, 235, 0.45) !important;
  color: var(--tech-primary) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  border-radius: 25px !important;
}
#quote .quote-wizard__foot .quote-wizard__btn-prev:hover {
  background: rgba(37, 99, 235, 0.06) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.55) !important;
}
#quote .quote-wizard[data-wizard-step="1"] .quote-wizard__foot .quote-wizard__btn-prev {
  display: none !important;
}

.rates-loading__title {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--tech-text-muted) !important;
}

/* 运价区加载：覆盖 home 深色 .quote-alert，与浅色科技风一致 */
#ratesResults .quote-alert.quote-alert--loading.rates-loading {
  display: block;
  padding: 1.25rem 1.35rem;
  background: #fff !important;
  color: var(--tech-text) !important;
  border: 1px solid var(--tech-border) !important;
  border-radius: var(--tech-radius-card);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06) !important;
}

/* ---------- 骨架屏 ---------- */
.rates-skeleton {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.rates-skeleton__row {
  position: relative;
  height: 5.5rem;
  border-radius: var(--tech-radius-card);
  border: 1px solid var(--tech-border);
  background: #fff;
  overflow: hidden;
}
.rates-skeleton__shine {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: linear-gradient(90deg, #f1f5f9 0%, #e2e8f0 50%, #f1f5f9 100%);
  background-size: 200% 100%;
  animation: tech-skeleton-breath 1.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .rates-skeleton__shine {
    animation: none;
  }
}
@keyframes tech-skeleton-breath {
  0%,
  100% {
    opacity: 0.55;
    background-position: 0% 0%;
  }
  50% {
    opacity: 0.9;
    background-position: 100% 0%;
  }
}

/* ---------- 运价 tech-card ---------- */
.rates-panel {
  background: #fff !important;
  border: 1px solid rgba(0, 0, 0, 0.05) !important;
  border-radius: var(--tech-radius-card) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden;
}
.rates-panel-head {
  background: #fafbfc !important;
  border-color: var(--tech-border) !important;
  padding: 1rem 1.25rem;
}
.rates-count-pill {
  background: rgba(37, 99, 235, 0.1) !important;
  color: #1d4ed8 !important;
  border-color: rgba(37, 99, 235, 0.25) !important;
  border-radius: var(--tech-radius-pill) !important;
}
.rate-card-list {
  padding: 0.75rem !important;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tech-card,
.rate-card.tech-card {
  position: relative;
  list-style: none;
  display: block;
  border: 1px solid rgba(226, 232, 240, 0.98) !important;
  background: #fff !important;
  border-radius: var(--tech-radius-card) !important;
  padding: 1.1rem 1.2rem 1.15rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06), 0 1px 0 rgba(15, 23, 42, 0.04);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  animation: rate-card-enter 0.45s var(--tech-ease) forwards;
  transition: border-color var(--tech-dur) var(--tech-ease), transform var(--tech-dur) var(--tech-ease),
    box-shadow var(--tech-dur) var(--tech-ease);
}
.tech-card::before,
.rate-card.tech-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, #2563eb, #06b6d4);
  opacity: 0;
  transition: opacity var(--tech-dur) var(--tech-ease);
  pointer-events: none;
  border-radius: 2px 0 0 2px;
}
.tech-card:hover,
.rate-card.tech-card:hover {
  border-color: #2563eb !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04) !important;
}
.tech-card:hover::before,
.rate-card.tech-card:hover::before {
  opacity: 1;
}
.tech-card__inner,
.rate-card.tech-card .rate-card__inner {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 1rem;
}
@keyframes rate-card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.rate-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.rate-carrier-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  flex: 1 1 auto;
}
.rate-carrier-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
  flex-shrink: 0;
  background: #f1f5f9;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.tech-card:hover .rate-carrier-logo,
.rate-card.tech-card:hover .rate-carrier-logo {
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.rate-carrier-badge {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #1e293b;
  filter: none;
  transition: color var(--tech-dur) var(--tech-ease);
}
.tech-card:hover .rate-carrier-badge,
.rate-card.tech-card:hover .rate-carrier-badge {
  color: #0f172a !important;
}
.rate-eta {
  color: var(--tech-text-muted) !important;
  font-size: 0.8rem;
}
.tech-card .rate-timeline {
  position: relative;
  height: 2px;
  background: #e2e8f0;
  border-radius: 2px;
  margin: 0.5rem 0 0.75rem;
  overflow: visible;
}
.tech-card .rate-timeline__dot {
  position: absolute;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(37, 99, 235, 0.35);
  transition: left 0.4s var(--tech-ease);
}
.rate-service-name {
  color: var(--tech-text) !important;
  font-size: 0.95rem;
  font-weight: 500;
  margin: 0 0 0.25rem;
}
.tech-card__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.5rem;
  text-align: right;
}
.rate-price-cur {
  color: var(--tech-text-muted) !important;
}
.rate-price-amt {
  color: var(--tech-text) !important;
  font-size: 1.35rem;
  font-weight: 800;
}
.ship-btn-tech,
.rate-btn-ship,
.tech-card .ship-btn-tech {
  border-radius: 8px !important;
  padding: 0.5rem 1.2rem !important;
  font-size: 0.88rem;
  background: #e6f7ff !important;
  color: #0050b3 !important;
  border: 1px solid #91caff !important;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--tech-dur) var(--tech-ease) !important;
  box-shadow: none !important;
}
.tech-card:hover .ship-btn-tech,
.tech-card:hover .rate-btn-ship,
.rate-btn-ship:hover {
  background: #bae7ff !important;
  color: #002c8c !important;
  border-color: #69c0ff !important;
  box-shadow: 0 2px 8px rgba(24, 144, 255, 0.18) !important;
  transform: translateY(-1px);
}
.rates-empty {
  background: #fffbeb !important;
  border-color: #fde68a !important;
  border-radius: var(--tech-radius-card) !important;
}

/* ---------- 热门线路：路径卡片 Grid（与询价区宽度对齐） ---------- */
#hot-routes .wrap,
#hot-routes-page .wrap {
  max-width: 1100px;
}
.hot-routes-grid.route-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.15rem 1.25rem;
  padding: 1.1rem 0 0;
  list-style: none;
}
#hot-routes .hot-routes-grid.route-grid {
  /* 与上方询价卡片左右留白一致感 */
  margin-top: 0.25rem;
}
.route-card {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.15rem;
  transition: border-color 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1),
    transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}
a.route-card.route-card--block-link {
  display: block;
  text-decoration: none !important;
  color: inherit !important;
  cursor: pointer;
}
a.route-card.route-card--block-link:visited,
a.route-card.route-card--block-link:hover,
a.route-card.route-card--block-link:active,
a.route-card.route-card--block-link:focus,
a.route-card.route-card--block-link:focus-visible {
  text-decoration: none !important;
  color: inherit !important;
}
a.route-card.route-card--block-link:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.route-card:hover {
  transform: translateY(-6px);
  border-color: #2563eb;
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.06);
}
.route-header__tags {
  margin-bottom: 0.5rem;
}
.route-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}
.route-path {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin: 0.15rem 0 0;
  min-width: 0;
}
.path-line {
  flex: 1 1 auto;
  position: relative;
  height: 2px;
  min-width: 1.5rem;
  margin: 0 0.4rem;
  background: #e2e8f0;
  border-radius: 1px;
  align-self: center;
}
.path-line .line {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #06b6d4);
  border-radius: 1px;
  transition: width 0.6s ease;
}
.route-card:hover .path-line .line {
  width: 100%;
}
.path-line .plane-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 0.78rem;
  line-height: 1;
  font-style: normal;
  background: #fff;
  padding: 0 3px;
  pointer-events: none;
}
.city {
  flex: 0 1 38%;
  min-width: 0;
  font-weight: 600;
  color: #1e293b;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
}
.route-info {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #f1f5f9;
}
.route-info .info-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.route-info .info-item + .info-item {
  margin-top: 0.45rem;
}
.route-info .info-item--route-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.45rem 1rem;
}
.route-info .route-meta-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem 0.45rem;
  min-width: 0;
}
.route-info .route-meta-pair--solo {
  width: 100%;
  justify-content: space-between;
}
.route-info .label {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 400;
}
.route-info .value {
  font-size: 0.9rem;
  font-weight: 400;
  color: #0f172a;
}
@media (prefers-reduced-motion: reduce) {
  .route-card,
  .path-line .line {
    transition: none !important;
  }
  .route-card:hover {
    transform: none;
  }
  .route-card:hover .path-line .line,
  .route-card:focus-within .path-line .line {
    width: 100%;
  }
}

/* ---------- Toast & 其他 ---------- */
.home-toast {
  border-radius: 12px !important;
  border: 1px solid var(--tech-border) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--tech-text) !important;
  backdrop-filter: blur(8px) !important;
}
.home-toast__text {
  color: var(--tech-text) !important;
}
.home-quote-ad {
  border-radius: var(--tech-radius-card) !important;
  border: 1px solid var(--tech-border) !important;
  background: #f8fafc !important;
  color: var(--tech-text) !important;
}
.quote-wizard__bar {
  background: #f1f5f9 !important;
  border: 1px solid var(--tech-border) !important;
  border-radius: 12px !important;
}
.quote-wizard__pos {
  color: #2563eb !important;
}

/* 侧栏与菜单按钮协调 */
.nav-menu-btn {
  border-radius: 12px !important;
  border-color: var(--tech-border) !important;
  background: #fff !important;
}
.nav-drawer__link:hover {
  color: #1d4ed8 !important;
}
.nav-drawer__user-block a:hover {
  color: #1d4ed8 !important;
}
footer {
  background: #fff !important;
}
/**
 * 全站 uiConfirm 确认层（首页询价、用户中心、订单等）
 * 与内联 critical 样式一致；外链加载后覆盖/补充动画等。
 * 色板可与公开页 :root 变量对齐（见 home.css）。
 * z-index 需高于询价弹窗 .ship-modal（200）、toast（400）等。
 */
.ui-confirm-root {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
  animation: ui-confirm-root-in 0.18s ease-out;
}

.ui-confirm-root:not([hidden]) {
  display: flex;
}

@keyframes ui-confirm-root-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.ui-confirm-backdrop {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ui-confirm-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 28rem;
  /* 原 min(88vh, 34rem)；避免旧版 WebKit 解析 min() 异常，单用视口高限制 + overflow:auto */
  max-height: 90vh;
  overflow: auto;
  margin: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  border-radius: 16px;
  border: 1px solid var(--border-strong, rgba(148, 163, 184, 0.22));
  background: var(--bg-elevated, #ffffff);
  box-shadow: var(--shadow-md, 0 12px 32px rgba(15, 23, 42, 0.1)), 0 0 0 1px rgba(15, 23, 42, 0.05) inset;
  color: var(--text, #0f172a);
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.55;
  animation: ui-confirm-dialog-in 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.ui-confirm-accent {
  height: 4px;
  margin: -1.15rem -1.25rem 1rem;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, var(--accent, #14b8a6) 0%, var(--indigo, #0ea5e9) 100%);
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.35);
}

.ui-confirm-body {
  min-width: 0;
}

.ui-confirm-title--hidden {
  display: none !important;
  margin: 0 !important;
  height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  position: absolute;
}

@keyframes ui-confirm-dialog-in {
  from {
    opacity: 0;
    transform: translateY(0.35rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ui-confirm-title {
  margin: 0 0 0.55rem;
  font-size: 1.08rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--text, #0f172a);
  line-height: 1.35;
}

.ui-confirm-msg {
  margin: 0;
  color: var(--muted, #64748b);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.6;
}

.ui-confirm-actions {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(148, 163, 184, 0.12));
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.6rem;
}

.ui-confirm-btn {
  margin: 0;
  padding: 0.48rem 1rem;
  border-radius: var(--radius-sm, 0.5rem);
  border: 1px solid var(--border-strong, rgba(148, 163, 184, 0.22));
  background: var(--bg-subtle, #f8fafc);
  color: var(--text, #0f172a);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ui-confirm-btn:hover {
  background: var(--bg-elevated-strong, #f1f5f9);
  border-color: rgba(148, 163, 184, 0.32);
}

.ui-confirm-btn:focus-visible {
  outline: 2px solid var(--accent, #0d9488);
  outline-offset: 2px;
}

.ui-confirm-btn.primary {
  border-color: rgba(13, 148, 136, 0.5);
  background: linear-gradient(165deg, #0d9488 0%, #0ea5e9 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.22);
}

.ui-confirm-btn.primary:hover {
  border-color: rgba(45, 212, 191, 0.65);
  background: linear-gradient(165deg, #14b8a6 0%, #0284c7 100%);
}

/* 移入回收站、软删订单：琥珀顶条 + 暖色主按钮，区别于默认青绿 */
.ui-confirm-dialog.ui-confirm--trash .ui-confirm-accent {
  background: linear-gradient(90deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 0 20px rgba(234, 88, 12, 0.35);
}

.ui-confirm-btn.primary.ui-confirm-btn--trash-ok {
  border-color: rgba(234, 88, 12, 0.45);
  background: linear-gradient(165deg, #ea580c 0%, #dc2626 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.3);
}

.ui-confirm-btn.primary.ui-confirm-btn--trash-ok:hover {
  border-color: rgba(251, 146, 60, 0.6);
  background: linear-gradient(165deg, #f97316 0%, #b91c1c 100%);
  color: #fff;
}

/* 高危险（可选 variant） */
.ui-confirm-dialog.ui-confirm--danger .ui-confirm-accent {
  background: linear-gradient(90deg, #dc2626 0%, #991b1b 100%);
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.28);
}

.ui-confirm-btn.primary.ui-confirm-btn--danger-ok {
  border-color: rgba(220, 38, 38, 0.45);
  background: linear-gradient(165deg, #dc2626 0%, #b91c1c 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}

.ui-confirm-btn.primary.ui-confirm-btn--danger-ok:hover {
  border-color: rgba(248, 113, 113, 0.6);
  background: linear-gradient(165deg, #ef4444 0%, #991b1b 100%);
  color: #fff;
}
