/* 迅运达运输服务 - 基础样式（页面级样式见 pages.css，需在本文件之后引入） */
:root {
  --bg: #f4f6fa;
  --panel: #ffffff;
  --ink: #13202f;
  --muted: #5b6b7c;
  --line: #e3e8ef;
  --brand: #0e5fd8;
  --brand-dark: #0a4aa8;
  --accent: #ff7a1a;
  --accent-dark: #e86a0d;
  --ok: #16a34a;
  --warn: #d97706;
  --err: #dc2626;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 35, 60, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 35, 60, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* 锚点跳转时避开固定顶部导航 */
section[id] { scroll-margin-top: 78px; }
@media (max-width: 768px) {
  section[id] { scroll-margin-top: 66px; }
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.container-narrow { width: min(720px, 92%); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.logo-icon { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 4px 10px rgba(14, 95, 216, 0.35); }
.logo-sub { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }
.logo-light { color: #fff; }
.logo-light .logo-sub { color: rgba(255, 255, 255, 0.7); }

.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-weight: 500; padding: 6px 2px; position: relative; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand);
}
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-user { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.nav-user .avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.18s;
  white-space: nowrap;
  touch-action: manipulation;
  min-height: 44px;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: linear-gradient(135deg, var(--brand), #2f7ff0); color: #fff; box-shadow: 0 6px 16px rgba(14, 95, 216, 0.3); }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(14, 95, 216, 0.38); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #ff9a4d); color: #fff; box-shadow: 0 6px 16px rgba(255, 122, 26, 0.3); }
.btn-accent:hover:not(:disabled) { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.12); color: #fff; border: 1px solid rgba(255, 255, 255, 0.35); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.2); }
.btn-sm { padding: 7px 16px; font-size: 13.5px; min-height: 38px; }
.btn-lg { padding: 13px 30px; font-size: 16.5px; min-height: 50px; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1000px 400px at 85% -10%, rgba(255, 122, 26, 0.25), transparent 60%),
    linear-gradient(135deg, #0b2a52 0%, #0e3f86 55%, #0e5fd8 100%);
  color: #fff;
  padding: 72px 0 84px;
  overflow: hidden;
}
.hero-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.25; font-weight: 800; }
.hero h1 span { color: #ffb267; }
.hero-desc { margin-top: 16px; font-size: 16.5px; color: rgba(255, 255, 255, 0.82); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { list-style: none; display: flex; gap: 38px; margin-top: 40px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 24px; font-weight: 800; }
.hero-stats span { font-size: 13px; color: rgba(255, 255, 255, 0.65); }
.hero-art { position: relative; min-height: 300px; display: flex; align-items: center; justify-content: center; }
.hero-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.hero-orb {
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 178, 103, 0.55), rgba(255, 122, 26, 0.12) 60%, transparent 75%);
  filter: blur(6px);
  z-index: 1;
}

/* ---------- 通用 Section ---------- */
.section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 { font-size: 30px; font-weight: 800; }
.section-head p { color: var(--muted); margin-top: 8px; }

/* ---------- 计价器 ---------- */
.calculator-section { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.vehicle-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.vpill {
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: 0.15s;
}
.vpill:hover { border-color: var(--brand); color: var(--brand); }
.vpill.selected { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(14, 95, 216, 0.3); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.12); }
.field-tip { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.field-inline { display: flex; align-items: center; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch-slider {
  width: 44px; height: 24px;
  background: #cbd5e1;
  border-radius: 999px;
  position: relative;
  transition: 0.2s;
  flex: none;
}
.switch-slider::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: 0.2s;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}
.switch input:checked + .switch-slider { background: var(--ok); }
.switch input:checked + .switch-slider::after { transform: translateX(20px); }
.switch-text { font-size: 14px; font-weight: 600; }

.calc-result { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.calc-hint { color: var(--muted); text-align: center; margin: auto; font-size: 14.5px; }
.calc-total { text-align: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 14px; }
.calc-total .label { font-size: 13.5px; color: var(--muted); }
.calc-total .amount { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1.2; }
.calc-rows { display: flex; flex-direction: column; gap: 8px; }
.calc-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.calc-row strong { color: var(--ink); font-weight: 600; }
.calc-vehicle { font-size: 15px; font-weight: 700; margin-bottom: 4px; text-align: center; }

/* 滑动条（重量 / 里程快速选择） */
.slider-field { margin-bottom: 20px; }
.slider-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 6px;
}
.slider-head label { font-size: 14px; font-weight: 600; }
.slider-value {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
/* 可手动输入的数值框（里程） */
.slider-input { display: inline-flex; align-items: baseline; gap: 5px; }
.slider-input input {
  width: 80px;
  border: 1.5px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: 3px 8px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand);
  text-align: right;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.slider-input input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.12);
}
.slider-input .unit { font-size: 13px; color: var(--muted); }
.slider-input input::-webkit-outer-spin-button,
.slider-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.slider-input input { -moz-appearance: textfield; appearance: textfield; }
.slider-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  touch-action: pan-y;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--brand) 0%,
    var(--brand) var(--fill, 0%),
    #dde4ee var(--fill, 0%),
    #dde4ee 100%
  );
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  margin-top: -9px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 8px rgba(14, 95, 216, 0.35);
}
input[type="range"]::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: #dde4ee;
}
input[type="range"]::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: var(--brand);
}
input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
  box-shadow: 0 2px 8px rgba(14, 95, 216, 0.35);
}
input[type="range"]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }

/* 按重量推荐方案 */
.rec-card { display: flex; flex-direction: column; gap: 12px; }
.rec-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), #ff9a4d);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(255, 122, 26, 0.3);
}
.rec-card h3 { font-size: 21px; font-weight: 800; margin-top: 8px; }
.rec-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.rec-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 12px;
  background: #eef2f7;
}
.rec-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fff7ef;
  border: 1px solid #ffe1c4;
  border-radius: 10px;
  padding: 12px 16px;
}
.rec-price .label { font-size: 13px; color: var(--muted); }
.rec-price strong { font-size: 30px; color: var(--accent); font-weight: 800; line-height: 1.1; }
.alt-plans { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }
.alt-plans h4 { font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.alt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.alt-row:last-child { border-bottom: 0; }
.alt-info { display: flex; flex-direction: column; }
.alt-info strong { font-size: 14.5px; font-weight: 700; }
.alt-info span { font-size: 12px; color: var(--muted); }
.alt-price { margin-left: auto; font-size: 17px; font-weight: 800; color: var(--ink); }
.overweight-tip {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.6;
}

/* ---------- 车型卡片 ---------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.vehicle-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
}
.vehicle-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.vehicle-card .vimg { aspect-ratio: 16/10; object-fit: cover; width: 100%; background: #eef2f7; }
.vehicle-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.vehicle-body h3 { font-size: 19px; font-weight: 800; }
.vmeta { display: flex; gap: 8px; margin: 10px 0 6px; flex-wrap: wrap; }
.vmeta span {
  background: #eef4ff;
  color: var(--brand-dark);
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.vdesc { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.vprice-table { border-top: 1px dashed var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.vprice-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--muted); }
.vprice-row strong { color: var(--ink); font-weight: 700; }
.vprice-row.highlight strong { color: var(--accent); }
.vne { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 8px; padding: 8px 10px; font-size: 12.5px; color: #15803d; margin-bottom: 12px; }
.vne b { font-weight: 700; }
.vfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.vbase { font-size: 13px; color: var(--muted); }
.vbase strong { font-size: 20px; color: var(--accent); font-weight: 800; }

/* ---------- 服务流程 ---------- */
.steps-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-grid li {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.step-num {
  font-size: 34px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--brand);
  opacity: 0.55;
}
.steps-grid h3 { font-size: 17px; margin: 10px 0 6px; }
.steps-grid p { color: var(--muted); font-size: 13.5px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #0b1f38;
  color: rgba(255, 255, 255, 0.78);
  padding: 44px 0 30px;
  margin-top: auto;
}
.site-footer-simple { padding: 22px 0; }
.footer-wrap { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p { font-size: 13.5px; margin-top: 8px; color: rgba(255, 255, 255, 0.6); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(255, 255, 255, 0.78); font-size: 14px; }
.footer-links a:hover { color: #fff; }
.footer-note { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.footer-copy { font-size: 12.5px; color: rgba(255, 255, 255, 0.45); }
.site-footer-simple .footer-note, .site-footer-simple .footer-copy { text-align: center; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  background: rgba(19, 32, 47, 0.92);
  color: #fff;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 200;
  max-width: 86%;
  text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
