/* 迅运达运输服务 - 页面级样式（认证 / 预约 / 订单 / 支付 / 响应式） */

/* ---------- 认证页 ---------- */
.auth-body { background: linear-gradient(135deg, #0b2a52, #0e5fd8); }
.auth-main { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 4%; }
.auth-card {
  width: min(440px, 100%);
  background: var(--panel);
  border-radius: 18px;
  padding: 38px 36px;
  box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 24px; font-weight: 800; }
.auth-sub { color: var(--muted); font-size: 14px; margin: 6px 0 22px; }
.form-error {
  margin-top: 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: var(--err);
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: 10px;
}
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; color: var(--muted); }

/* ---------- 预约页 ---------- */
.booking-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.booking-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 26px 26px; }
.form-block { border: 0; padding: 18px 0 6px; }
.form-block legend { font-size: 17px; font-weight: 800; padding-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.booking-vehicles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.bv-card {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  cursor: pointer;
  transition: 0.15s;
  display: flex;
  gap: 10px;
  align-items: center;
}
.bv-card img { width: 74px; height: 52px; object-fit: cover; border-radius: 8px; background: #eef2f7; }
.bv-card .bv-name { font-size: 14.5px; font-weight: 700; }
.bv-card .bv-cap { font-size: 12px; color: var(--muted); }
.bv-card:hover { border-color: var(--brand); }
.bv-card.selected { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.14); background: #f7faff; }

.summary-card {
  position: sticky;
  top: 90px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.summary-card img { border-radius: 10px; background: #eef2f7; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 12px; }
.summary-card h3 { font-size: 18px; font-weight: 800; }
.sum-meta { color: var(--muted); font-size: 13px; margin: 4px 0 14px; }
.sum-rows { display: flex; flex-direction: column; gap: 8px; padding: 12px 0; border-top: 1px dashed var(--line); }
.sum-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.sum-row strong { color: var(--ink); }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff7ef;
  border: 1px solid #ffe1c4;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
}
.sum-total span { font-size: 14px; color: var(--muted); }
.sum-total strong { font-size: 26px; color: var(--accent); font-weight: 800; }
.sum-detail { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.sum-note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- 订单页 ---------- */
.orders-list { display: flex; flex-direction: column; gap: 18px; }
.orders-loading, .orders-empty {
  text-align: center;
  color: var(--muted);
  padding: 60px 0;
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.order-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.order-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.order-no { font-size: 13px; color: var(--muted); }
.order-status { font-size: 12.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.st-pending_payment { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.st-paid { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.st-in_progress { background: #f5f3ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.st-completed { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.st-cancelled { background: #f4f4f5; color: #52525b; border: 1px solid #e4e4e7; }
.order-body { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.order-route { flex: 1; min-width: 260px; display: flex; flex-direction: column; gap: 8px; }
.route-line { display: flex; align-items: baseline; gap: 10px; font-size: 14.5px; }
.route-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; position: relative; top: -2px; }
.route-dot.to { background: var(--accent); }
.route-line small { color: var(--muted); font-size: 12px; flex: none; }
.order-info { display: flex; gap: 22px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.order-price { font-size: 22px; font-weight: 800; color: var(--accent); }
.order-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.order-countdown {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 12.5px;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
}
.order-countdown.expired { color: #52525b; background: #f4f4f5; border-color: #e4e4e7; }

/* ---------- 支付页 ---------- */
.pay-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.pay-title { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.pay-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.pay-countdown {
  margin: -8px 0 20px;
  padding: 10px 14px;
  font-size: 13.5px;
  text-align: center;
  color: #c2410c;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
}
.pay-countdown b { color: #9a3412; }

/* ---------- 模态弹窗 ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.modal-overlay.show { opacity: 1; }
.modal-card {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 22px 20px;
  box-shadow: 0 24px 60px rgba(15, 35, 60, 0.28);
  transform: translateY(14px) scale(0.97);
  transition: transform 0.22s ease;
}
.modal-overlay.show .modal-card { transform: none; }
.modal-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #fff7ed;
  border: 1.5px solid #fed7aa;
  color: #c2410c;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-title { font-size: 18px; font-weight: 800; text-align: center; margin-bottom: 10px; }
.modal-message {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 20px;
}
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }

/* ---------- 个人中心 ---------- */
.profile-main { padding-bottom: 48px; }
.profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 16px;
  max-width: 560px;
}
.profile-card h3 { font-size: 16.5px; font-weight: 800; margin-bottom: 14px; }
.profile-head-card { display: flex; align-items: center; gap: 14px; }
.avatar-lg {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-head-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.profile-head-info strong { font-size: 18px; font-weight: 800; }
.profile-head-info span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-actions { padding: 16px 20px; }
a.nav-user { text-decoration: none; }
a.nav-user:hover { color: var(--brand); }

/* ---------- 车型与价格页 ---------- */
.fleet-main { padding-bottom: 40px; }
.fleet-list { display: flex; flex-direction: column; gap: 14px; }
.fleet-row {
  display: flex;
  gap: 14px;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.fleet-row-img {
  width: 130px;
  height: 96px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
  background: #eef2f7;
}
.fleet-row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fleet-row-body h3 { font-size: 17px; font-weight: 800; }
.fleet-row-body .vdesc { font-size: 12.5px; }
.fleet-row-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
.fleet-base { font-size: 17px; font-weight: 800; color: var(--accent); }
.fleet-base small { font-size: 12px; font-weight: 600; color: var(--muted); }
.fleet-rates {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  color: var(--muted);
}
.fleet-rates li:first-child { color: var(--ink); font-weight: 600; }

.fleet-table-head { margin-top: 38px; }
.fleet-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}
.fleet-table { width: 100%; min-width: 580px; border-collapse: collapse; font-size: 13px; }
.fleet-table th,
.fleet-table td {
  padding: 11px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.fleet-table th { background: #f7f9fc; font-weight: 700; color: var(--ink); white-space: nowrap; }
.fleet-table tr:last-child td { border-bottom: 0; }
.fleet-table td { color: var(--muted); }
.fleet-table td strong { color: var(--ink); font-weight: 700; }

.fleet-cta { margin: 26px 0 10px; }
.fleet-cta .sum-note { margin-top: 10px; }
.fleet-more { margin-top: 26px; text-align: center; }

@media (max-width: 560px) {
  .fleet-row { flex-direction: column; gap: 10px; }
  .fleet-row-img { width: 100%; height: 150px; }
  .fleet-table-head { margin-top: 30px; }
}
.pay-amount-box {
  background: linear-gradient(135deg, #0b2a52, #0e5fd8);
  color: #fff;
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  margin-bottom: 22px;
}
.pay-amount-box .label { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.pay-amount-box .amount { font-size: 40px; font-weight: 800; line-height: 1.2; }
.pay-booking {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 22px;
}
.pay-booking b { color: var(--ink); }
.pay-methods { display: grid; gap: 12px; margin-bottom: 22px; }
.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.15s;
}
.pay-method:hover { border-color: var(--brand); }
.pay-method.selected { border-color: var(--brand); background: #f7faff; box-shadow: 0 0 0 3px rgba(14, 95, 216, 0.12); }
.pm-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.pm-wechat { background: #e8f8ee; color: #16a34a; }
.pm-alipay { background: #eaf2ff; color: #1677ff; }
.pm-balance { background: #fff4e6; color: #d97706; }
.pm-name { font-weight: 700; font-size: 15px; }
.pm-desc { font-size: 12.5px; color: var(--muted); }
.pm-radio { margin-left: auto; width: 18px; height: 18px; border: 2px solid #cbd5e1; border-radius: 50%; flex: none; }
.pay-method.selected .pm-radio { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 40%, #fff 45%); }
.pay-success { text-align: center; padding: 30px 0 10px; }
.pay-success .check {
  width: 72px; height: 72px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: #f0fdf4;
  border: 2px solid #86efac;
  color: var(--ok);
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pay-success h3 { font-size: 22px; margin-bottom: 8px; }
.pay-success p { color: var(--muted); font-size: 14px; margin-bottom: 22px; }

/* ---------- 响应式（移动端优先） ---------- */

/* 平板与小桌面：<=960px */
@media (max-width: 960px) {
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-art { min-height: 220px; order: -1; }
  .hero-art img { max-width: 380px; }
  .calc-card { grid-template-columns: 1fr; gap: 20px; }
  .booking-layout { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links {
    display: none;
    position: absolute;
    top: 58px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 6% 16px;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* 移动端：<=768px（主要使用场景） */
@media (max-width: 768px) {
  /* 顶部导航 */
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-wrap { height: 58px; gap: 12px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-icon { width: 30px; height: 30px; border-radius: 8px; }
  .logo-sub { display: none; }
  .nav-links { top: 58px; }
  .nav-links a { padding: 12px 0; font-size: 16px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { font-weight: 700; }
  .nav-user { font-size: 13px; gap: 6px; }
  .nav-user .avatar { width: 28px; height: 28px; font-size: 13px; }
  .nav-toggle { padding: 12px 8px; }

  /* 首页 Hero */
  .hero { padding: 26px 0 34px; }
  .hero-tag { font-size: 12px; padding: 4px 12px; margin-bottom: 12px; }
  .hero h1 { font-size: 27px; }
  .hero-desc { font-size: 14.5px; margin-top: 12px; }
  .hero-cta { margin-top: 20px; gap: 10px; }
  .hero-cta .btn { flex: 1; padding: 12px 10px; }
  .hero-stats { gap: 0; justify-content: space-between; margin-top: 24px; }
  .hero-stats strong { font-size: 19px; }
  .hero-stats span { font-size: 11.5px; }
  .hero-art { min-height: 0; margin-bottom: 4px; }
  .hero-art img { max-width: 100%; border-radius: 14px; }
  .hero-orb { width: 220px; height: 220px; }

  /* 通用区块 */
  .section { padding: 34px 0; }
  .section-head { margin-bottom: 22px; }
  .section-head h2 { font-size: 23px; }
  .section-head p { font-size: 13.5px; margin-top: 6px; }

  /* 计价器 */
  .calc-card { padding: 18px 16px; gap: 16px; border-radius: 12px; }
  .vehicle-pills { gap: 8px; }
  .vpill { padding: 10px 18px; font-size: 14px; }
  .field { margin-bottom: 14px; }
  .field label { font-size: 13.5px; margin-bottom: 6px; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 12px 14px; }
  .calc-result { padding: 18px 16px; border-radius: 12px; }
  .calc-total .amount { font-size: 34px; }
  .calc-row { font-size: 13px; gap: 12px; }
  .calc-row strong { text-align: right; }

  /* 车型卡片 */
  .fleet-grid { gap: 16px; }
  .vehicle-body { padding: 16px 16px 18px; }
  .vehicle-body h3 { font-size: 17px; }
  .vdesc { font-size: 13px; }
  .vprice-row { font-size: 13px; }
  .vbase strong { font-size: 18px; }

  /* 服务流程 */
  .steps-grid { gap: 12px; }
  .steps-grid li { padding: 18px 16px 20px; }
  .step-num { font-size: 26px; }
  .steps-grid h3 { font-size: 15.5px; margin: 6px 0 4px; }
  .steps-grid p { font-size: 12.5px; }

  /* 页脚 */
  .site-footer { padding: 28px 0 20px; }
  .footer-wrap { gap: 12px; }
  .footer-links { gap: 18px; }
  .footer-links a { font-size: 13.5px; padding: 4px 0; }

  /* 认证页 */
  .auth-main { padding: 20px 4% 44px; align-items: flex-start; }
  .auth-card { padding: 26px 20px; border-radius: 16px; }
  .auth-card h1 { font-size: 21px; }
  .auth-switch { font-size: 13.5px; }

  /* 预约页 */
  .booking-main { padding-bottom: 108px; }
  .booking-form { padding: 4px 16px 16px; border-radius: 12px; }
  .form-block { padding: 14px 0 4px; }
  .form-block legend { font-size: 16px; padding-bottom: 10px; }
  .booking-vehicles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bv-card { flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; }
  .bv-card img { width: 100%; height: 68px; }
  .bv-card .bv-name { font-size: 13.5px; }
  .bv-card .bv-cap { font-size: 11px; }
  .summary-card { padding: 16px 16px 10px; border-radius: 12px; }
  .summary-card h3 { font-size: 16.5px; }
  .sum-total { padding: 10px 14px; margin-bottom: 12px; }
  .sum-total strong { font-size: 24px; }
  .sum-detail { font-size: 12px; }
  .sum-note { margin-top: 6px; }
  /* 提交按钮吸底（移动端主要操作） */
  .summary-card .btn-block {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 95;
    border-radius: 0;
    min-height: 56px;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    font-size: 17px;
    box-shadow: 0 -8px 24px rgba(15, 35, 60, 0.16);
  }
  .booking-main ~ .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .booking-main ~ .site-footer { padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px)); }

  /* 订单页 */
  .orders-main { padding-bottom: 44px; }
  .orders-list { gap: 12px; }
  .order-card { padding: 16px; gap: 12px; border-radius: 12px; }
  .order-top { gap: 8px; }
  .order-no { font-size: 12px; }
  .order-body { flex-direction: column; align-items: stretch; gap: 10px; }
  .order-route { min-width: 0; }
  .route-line { font-size: 14px; }
  .order-info { justify-content: space-between; gap: 10px; }
  .order-price { font-size: 20px; }
  .order-actions { margin-left: 0; width: 100%; }
  .order-actions .btn { flex: 1; }

  /* 支付页 */
  .pay-card { padding: 22px 16px; border-radius: 12px; }
  .pay-title { font-size: 18px; }
  .pay-amount-box { padding: 18px; }
  .pay-amount-box .amount { font-size: 34px; }
  .pay-booking { font-size: 13px; padding: 12px 14px; }
  .pay-method { padding: 12px 14px; gap: 10px; }
  .pm-name { font-size: 14.5px; }
  .pm-desc { font-size: 12px; }
  .pay-success { padding: 20px 0 6px; }
  .pay-success .check { width: 64px; height: 64px; font-size: 30px; margin-bottom: 14px; }
  .pay-success h3 { font-size: 20px; }
  .pay-success p { font-size: 13.5px; }

  /* Toast */
  .toast { bottom: 28px; padding: 12px 20px; }
}

/* 小屏手机：<=540px */
@media (max-width: 540px) {
  .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .hero-stats strong { font-size: 18px; }
}

/* 极小屏：<=380px */
@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
  .booking-vehicles { grid-template-columns: 1fr; }
  .bv-card { flex-direction: row; align-items: center; }
  .bv-card img { width: 72px; height: 52px; flex: none; }
  .summary-card .btn-block { font-size: 16px; }
  .order-price { font-size: 18px; }
}
