/* ============================================================
   西安佳兴天宇货运有限公司 — 静态站样式
   技术栈对齐 shanxigeo.com：原生 CSS，无框架
   版本号随变更递增：?v=20260824a
   ============================================================ */

:root {
  --brand: #1d4ed8;
  --brand-2: #0ea5e9;
  --brand-dark: #1e3a8a;
  --accent: #f97316;
  --accent-2: #ef4444;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .14);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --header-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

[data-theme="dark"] {
  --ink: #e8edf4;
  --ink-2: #aab6c9;
  --ink-3: #6b7892;
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --bg-card: #111d33;
  --border: #1e2c45;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--brand); font-weight: 700; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 顶部公告 ---------- */
.topbar { background: linear-gradient(90deg, var(--brand-dark), var(--brand)); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; height: 38px; gap: 12px; }
.topbar-tel { color: #ffe9d6; font-weight: 700; white-space: nowrap; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s, background .25s;
}
.header.scrolled { box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }
.brand-text { font-size: 19px; line-height: 1; display: flex; flex-direction: column; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; position: relative; }
.nav a:not(.nav-cta):hover { color: var(--brand); }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--brand); transition: width .25s;
}
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  display: inline-block; text-align: center; line-height: 1.2;
  background: var(--brand); color: #fff !important; padding: 8px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(29, 78, 216, .35);
}
.nav-cta-tel { font-size: 13px; }
.nav-cta:hover { background: var(--brand-dark); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .3s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.1s ease, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(14,165,233,.22), transparent 60%),
    linear-gradient(180deg, rgba(7,18,40,.58) 0%, rgba(7,18,40,.42) 45%, rgba(7,18,40,.80) 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
          mask-image: radial-gradient(circle at 50% 40%, #000, transparent 75%);
}
.hero-inner {
  position: relative; z-index: 2; display: grid; grid-template-columns: 1fr;
  gap: 48px; align-items: center; padding: 78px 20px 88px;
}
.hero-tag {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px;
  color: #eaf4ff; background: rgba(11,26,58,.5); border: 1px solid rgba(255,255,255,.28);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.hero-content { text-align: center; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; }
.hero h1 strong { background: linear-gradient(90deg, #7dd3fc, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin: 22px auto 30px; font-size: 17px; color: #f2f7ff; max-width: 720px; }
.hero-sub em { color: #ffd9b8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 700; padding: 13px 26px; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(249,115,22,.4); }
.btn-primary:hover { background: #ea670c; }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-block { width: 100%; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; justify-content: center; }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #dce8fb; font-weight: 600; }
.hero-points .ic { font-size: 16px; }

/* ---------- 数据条 ---------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 34px 20px; text-align: center; }
.stat b { display: block; font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; color: var(--brand); }
.stat span { font-size: 14px; color: var(--ink-2); }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.eyebrow { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: 2px; color: var(--accent); text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 800; line-height: 1.25; letter-spacing: -.3px; }
.section-head p { margin-top: 16px; color: var(--ink-2); font-size: 16px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* 卡片 */
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card-ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 14%, transparent), color-mix(in srgb, var(--brand-2) 14%, transparent));
  margin-bottom: 16px;
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 15px; }

/* ---------- 服务 ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc { border-radius: var(--radius); padding: 34px 30px; color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow-lg); }
.svc::before { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: rgba(255,255,255,.1); }
.svc-primary { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); }
.svc-secondary { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.svc-badge { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 1px; background: rgba(255,255,255,.18); padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.svc h3 { font-size: 24px; margin-bottom: 12px; }
.svc-desc { font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 18px; }
.svc-list { list-style: none; display: grid; gap: 10px; }
.svc-list li { position: relative; padding-left: 24px; font-size: 14.5px; color: rgba(255,255,255,.95); }
.svc-list li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: 800; color: #fff; }
.svc-extra { margin-top: 24px; }
.mini { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; box-shadow: var(--shadow); }
.mini b { display: block; font-size: 17px; margin-bottom: 6px; }
.mini span { font-size: 14px; color: var(--ink-2); }

/* ---------- 车型 ---------- */
.fleet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fleet-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; text-align: center; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s;
  position: relative; overflow: hidden;
}
.fleet-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.fleet-imgwrap { width: 100%; aspect-ratio: 3 / 2; background: var(--bg-alt); border-radius: calc(var(--radius) - 6px); overflow: hidden; margin-bottom: 14px; }
.fleet-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fleet-card:hover .fleet-img { transform: scale(1.05); }
.fleet-len { font-size: 24px; font-weight: 800; color: var(--brand); }
.fleet-unit { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.fleet-toggle { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 12px; }
.ft-btn { font-family: inherit; font-size: 12.5px; line-height: 1; padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.ft-btn:hover { border-color: var(--brand); color: var(--brand); }
.ft-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.fleet-note { font-size: 12.5px; color: var(--ink-3); margin-top: 12px; }

/* ---------- 路线覆盖 ---------- */
.routes-search { max-width: 720px; margin: 0 auto 26px; text-align: center; }
.routes-search input[type="search"] {
  width: 100%; padding: 14px 18px; font-size: 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--ink); box-shadow: var(--shadow);
}
.routes-search input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.routes-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.chip {
  font-size: 14px; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--ink-2); transition: .2s;
}
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.routes-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.route-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.route-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.route-city { font-size: 17px; font-weight: 700; }
.route-region { font-size: 12px; color: var(--accent); font-weight: 700; }
.route-meta { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.routes-empty { text-align: center; color: var(--ink-2); margin-top: 20px; }

/* ---------- 业务网络（中国地图） ---------- */
.network-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 14px 10px; position: relative; }
.map-reset { position: absolute; top: 52px; right: 18px; z-index: 10; border: 1px solid var(--border); background: rgba(255,255,255,.92); color: var(--ink-2); font-size: 12px; padding: 5px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: all .2s; }
.map-reset:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.network-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 14px; margin: 2px 0 10px; font-size: 12px; color: var(--ink-2); }
.network-legend .nl-title { font-weight: 800; color: var(--ink); margin-right: 4px; }
.network-legend .nl-item { display: inline-flex; align-items: center; gap: 5px; }
.network-legend .nl-item::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.08); display: inline-block; }
.network-map { width: 100%; height: 760px; }
@media (max-width: 768px) { .network-map { height: 520px; } }

/* ---------- 客户 ---------- */
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; transition: transform .2s; }
.client:hover { transform: translateY(-5px); }
.client b { display: block; font-size: 18px; margin: 8px 0 6px; }
.client span { font-size: 13.5px; color: var(--ink-2); }

/* ---------- 联系 ---------- */
.contact { background: linear-gradient(135deg, var(--brand-dark), #0b1a3a); color: #fff; }
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h2 { font-size: clamp(24px, 3vw, 34px); margin: 12px 0 14px; font-weight: 800; }
.contact-info p { color: #cdddf5; font-size: 16px; }
.contact-list { list-style: none; margin-top: 24px; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list i { font-size: 22px; }
.contact-list b { display: block; font-size: 14px; color: #bfe9ff; }
.contact-list a, .contact-list span { font-size: 16px; font-weight: 600; }
.contact-list a:hover { color: #ffd9b8; }
.contact-form { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: #dce8fb; }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.08); color: #fff; font-size: 15px; font-family: inherit; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,.5); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); background: rgba(255,255,255,.12); }
.form-note { font-size: 12.5px; color: #aec6e8; margin-top: 10px; }

/* ---------- 页脚 ---------- */
.footer { background: #07101f; color: #c8d4e6; padding-top: 54px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px; }
.footer-brand p { font-size: 14px; color: #93a3bd; margin-top: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a, .footer-col span { display: block; font-size: 14px; color: #93a3bd; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: #7dd3fc; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13px; color: #6b7892; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- 返回顶部 ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; font-size: 20px; cursor: pointer; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; z-index: 40;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-3px); background: var(--brand-dark); }

/* ---------- 滚动揭示动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; padding: 60px 20px 70px; }
  .contact-wrap { grid-template-columns: 1fr; gap: 32px; }
  .grid-3, .fleet-grid, .routes-grid, .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    padding: 8px 20px 18px; transform: translateY(-120%); transition: transform .3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px 4px; border-bottom: 1px solid var(--border); }
  .nav-cta { text-align: center; margin-top: 10px; }
  .menu-toggle { display: flex; }
  .topbar-inner { font-size: 12px; }
  .svc-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 480px) {
  .grid-3, .fleet-grid, .routes-grid, .clients-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1; }
}

/* ---------- 价格查询 ---------- */
.price-wrap { display: grid; grid-template-columns: 360px 1fr; gap: 28px; align-items: start; margin-bottom: 48px; }
.price-calc { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.price-calc .field { margin-bottom: 16px; }
.price-calc label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.price-calc .dest-label { font-size: 17px; font-weight: 800; }
.price-calc .round-trip { color: var(--accent); margin: 0 8px; font-weight: 800; }
.price-calc select, .price-calc input {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-size: 15px; font-family: inherit;
}
.price-calc select:focus, .price-calc input:focus { outline: 2px solid var(--brand); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.price-result { min-height: 100%; }
.pr-empty { background: var(--bg-card); border: 1px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; color: var(--ink-3); font-size: 15px; }
.pr-card { background: linear-gradient(135deg, var(--brand-dark), #0b1a3a); color: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); }
.pr-head { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.pr-time { font-size: 14px; color: #bfe9ff; margin-bottom: 18px; }
.pr-time b { color: #ffd9b8; font-size: 16px; }
.pr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed rgba(255,255,255,.14); font-size: 14.5px; }
.pr-row span { color: #cdddf5; }
.pr-row b { font-size: 17px; }
.pr-row small { color: #7dd3fc; font-size: 12px; margin-left: 6px; }
.pr-freight { border-bottom: none; }
.pr-freight b { color: #ffd9b8; font-size: 20px; }
.pr-fee b { color: #ffd9b8; }
.pr-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; padding-top: 14px; border-top: 2px solid rgba(255,255,255,.2); }
.pr-total span { font-size: 16px; font-weight: 700; }
.pr-total b { font-size: 26px; color: #ffd9b8; }
.pr-note { font-size: 12px; color: #aec6e8; margin-top: 14px; }

.form-note.center { text-align: center; margin-top: 18px; }

@media (max-width: 960px) {
  .price-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
}

/* 大区 / 省份 / 城市 三级级联 */
.cascade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cascade select:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 480px) {
  .cascade { grid-template-columns: 1fr; }
}
