@charset "utf-8";

/* ============================================================
   设计令牌 Design Tokens
   圆角 4 档 / 字号 6 档 / 间距 8pt / 阴影 3 级 / 动效统一
   ============================================================ */
:root {
  /* 品牌 */
  --brand: #1565D8;
  --brand-dark: #0B4DA2;
  --brand-text: #1565D8;
  --price: #D93A2B;

  /* 文字层级 */
  --ink: #1F2733;
  --ink-2: #5F6B7A;
  --ink-3: #6B7684;

  /* 表面与描边 */
  --bg: #FFFFFF;
  --bg-raised: #FFFFFF;
  --surface: #F5F8FC;
  --line: #E4E9F0;
  --line-2: #DDE3EB;
  --footer-bg: #123A6B;

  /* 圆角 */
  --r-xs: 6px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* 字号 */
  --fs-hero: clamp(24px, 3.2vw, 34px);
  --fs-h2: clamp(19px, 2vw, 24px);
  --fs-h3: 17px;
  --fs-body: 15px;
  --fs-sm: 13px;
  --fs-xs: 12px;

  /* 间距（8pt 网格） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;

  /* 阴影 */
  --shadow-sm: 0 1px 2px rgba(18, 34, 54, .05);
  --shadow-md: 0 1px 2px rgba(18, 34, 54, .04), 0 6px 18px rgba(18, 34, 54, .06);
  --shadow-lg: 0 4px 8px rgba(18, 34, 54, .06), 0 16px 40px rgba(18, 34, 54, .10);

  /* 动效 */
  --ease: cubic-bezier(.2, 0, 0, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 300ms;

  --container: 1160px;
}

/* ---------- 深色模式 ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --brand: #1565D8;
    --brand-dark: #0A3D80;
    --brand-text: #7CB0FF;
    --price: #FF6B5B;

    --ink: #E6EBF2;
    --ink-2: #AEBACB;
    --ink-3: #8695A8;

    --bg: #0E131A;
    --bg-raised: #161D27;
    --surface: #1A222E;
    --line: #232D3A;
    --line-2: #2C3846;
    --footer-bg: #0B1017;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .40);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .40), 0 6px 18px rgba(0, 0, 0, .32);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, .36), 0 16px 40px rgba(0, 0, 0, .44);
  }
}

/* ============================================================
   基础层
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--brand-text);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-4);
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  z-index: 100;
}

.skip-link:focus {
  left: var(--sp-2);
  top: var(--sp-2);
}

/* ============================================================
   顶部条
   ============================================================ */
.topbar {
  background: var(--brand-dark);
  color: #DCE8FA;
  font-size: var(--fs-xs);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  gap: var(--sp-3);
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ============================================================
   导航
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-raised);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex: 0 0 auto;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-size: clamp(17px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--brand-text);
  letter-spacing: .5px;
}

.nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  gap: var(--sp-8);
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-1) 0;
  font-size: var(--fs-body);
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease);
}

.nav-list a:hover {
  color: var(--brand-text);
}

.nav-list a[aria-current="page"] {
  color: var(--brand-text);
  border-bottom-color: var(--brand-text);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-raised);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--sp-1);
  transition: background var(--dur-fast) var(--ease);
}

.nav-toggle:active {
  transform: scale(.95);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink-2);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  padding: var(--sp-12) 0 calc(var(--sp-12) + var(--sp-8));
  text-align: center;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-hero);
  font-weight: 600;
  letter-spacing: .5px;
  line-height: 1.25;
}

.hero p {
  margin: 0;
  font-size: var(--fs-body);
  opacity: .9;
}

/* ============================================================
   查询卡片
   ============================================================ */
.search-card {
  margin-top: calc(var(--sp-8) * -1.6);
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-5) var(--sp-6) var(--sp-6);
  box-shadow: var(--shadow-md);
}

.trip-tabs {
  display: flex;
  gap: var(--sp-6);
  margin-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line);
}

.trip-tabs button {
  border: 0;
  background: none;
  padding: 0 0 var(--sp-2);
  font-size: var(--fs-body);
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease);
}

.trip-tabs button:hover {
  color: var(--ink);
}

.trip-tabs button[aria-selected="true"] {
  color: var(--brand-text);
  border-bottom-color: var(--brand-text);
  font-weight: 500;
}

.search-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) 128px;
  gap: var(--sp-3);
  align-items: stretch;
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.field > span {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: var(--sp-3) var(--sp-3);
  font: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.field textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.6;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #C3CDDA;
}

@media (prefers-color-scheme: dark) {
  .field input:hover,
  .field select:hover,
  .field textarea:hover {
    border-color: #3A4757;
  }
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-text);
  box-shadow: 0 0 0 3px rgba(21, 101, 216, .14);
  outline: none;
}

.btn-query {
  min-height: 46px;
  align-self: end;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn-query:hover {
  background: var(--brand-dark);
}

.btn-query:active {
  transform: scale(.98);
}

.btn-query[disabled] {
  background: #9AB7E4;
  cursor: not-allowed;
  transform: none;
}

@media (prefers-color-scheme: dark) {
  .btn-query[disabled] {
    background: #2A3646;
    color: #7A8798;
  }
}

.search-note {
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

/* ============================================================
   广告条
   ============================================================ */
.ad {
  margin: var(--sp-8) 0 0;
  position: relative;
  /* 桌面素材 1128×180（6.27:1）；手机端另有竖版素材，见下方断点覆盖。
     用 aspect-ratio 让高度随宽度等比缩放，任何宽度下画面都完整、不裁切 */
  aspect-ratio: 1128 / 180;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  /* 纵向滚动仍交给浏览器，横向手势留给 JS 滑动切换 */
  touch-action: pan-y;
}

.ad-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease);
}

.ad-slide.is-active {
  opacity: 1;
}

.ad-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 手机端用竖版素材 (750×360 = 2.08:1)，容器比例同步切换，保证画面完整不被裁 */
@media (max-width: 768px) {
  .ad {
    aspect-ratio: 750 / 360;
  }
}

.ad-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* 高度随广告条自适应（上限 56px），宽度由 aspect-ratio 按 44:56 推导，
     这样无论广告条是 180px 高还是更扁，箭头都不会大到压住画面内容 */
  height: min(56px, 62%);
  aspect-ratio: 44 / 56;
  width: auto;
  border: 0;
  background: rgba(18, 34, 54, .32);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.ad:hover .ad-arrow,
.ad-arrow:focus-visible {
  opacity: 1;
}

.ad-arrow:hover {
  background: rgba(18, 34, 54, .5);
}

.ad-arrow:active {
  transform: translateY(-50%) scale(.94);
}

.ad-arrow--prev {
  left: 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.ad-arrow--next {
  right: 0;
  border-radius: var(--r-sm) 0 0 var(--r-sm);
}

.ad-dots {
  position: absolute;
  left: 50%;
  bottom: var(--sp-3);
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
}

.ad-dots button {
  position: relative;
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
  transition: background var(--dur-fast) var(--ease), width var(--dur) var(--ease);
}

/* 视觉尺寸不变，热区撑到 44px */
.ad-dots button::after {
  content: '';
  position: absolute;
  inset: -18px;
}

.ad-dots button[aria-selected="true"] {
  background: #fff;
  width: 22px;
  border-radius: var(--r-pill);
}

/* ============================================================
   区块通用
   ============================================================ */
.section {
  padding: var(--sp-10) 0 0;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}

.section-head h2 {
  margin: 0;
  font-size: var(--fs-h2);
  font-weight: 600;
  letter-spacing: .2px;
}

.section-head .sub {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ============================================================
   城市筛选
   ============================================================ */
.city-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.city-tabs button {
  border: 0;
  min-height: 36px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  font-size: var(--fs-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.city-tabs button:hover {
  background: #E8EEF7;
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  .city-tabs button:hover {
    background: #232E3D;
  }
}

.city-tabs button:active {
  transform: scale(.96);
}

.city-tabs button[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
  font-weight: 500;
}

/* ============================================================
   航线卡片
   ============================================================ */
.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
}

.route-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5) var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.route-card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.route-card[hidden] {
  display: none;
}

.route-city {
  font-size: var(--fs-h3);
  color: var(--ink);
  letter-spacing: .2px;
  line-height: 1.4;
}

.route-city i {
  color: #A5B0BE;
  font-style: normal;
  font-weight: 400;
  margin: 0 var(--sp-2);
}

.route-tag {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.route-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
}

.route-price {
  font-size: 26px;
  color: var(--price);
  font-weight: 600;
  letter-spacing: -.5px;
  line-height: 1.2;
}

.route-price small {
  font-size: var(--fs-xs);
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 2px;
  letter-spacing: 0;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--sp-5);
  border: 1px solid var(--brand-text);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--brand-text);
  font-size: var(--fs-sm);
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn-mini:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn-mini:active {
  transform: scale(.96);
}

/* ============================================================
   服务保障 / 卡片区
   ============================================================ */
.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-10);
}

.feature {
  position: relative;
  overflow: hidden;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  /* 四个卡片各用一种淡色系，由 nth-child 覆盖 --f-bg / --f-fg */
  background: var(--f-bg, var(--surface));
}

/* 淡色系：蓝 / 绿 / 橙 / 紫 —— 均通过 WCAG AA（正文 ≥4.5:1，图标 ≥3:1） */
.feature:nth-child(4n + 1) { --f-bg: #EDF4FE; --f-fg: #1565D8; }
.feature:nth-child(4n + 2) { --f-bg: #E8F6EF; --f-fg: #0B8A5F; }
.feature:nth-child(4n + 3) { --f-bg: #FEF1E6; --f-fg: #B85C0A; }
.feature:nth-child(4n + 4) { --f-bg: #F3EDFC; --f-fg: #6B3FB5; }

/* 背景中融合的大号水印图标 */
.feature-bg-icon {
  position: absolute;
  right: -16px;
  bottom: -20px;
  width: 108px;
  height: 108px;
  color: var(--f-fg);
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}

/* 前景内容压在水印之上 */
.feature > .feature-icon,
.feature > h3,
.feature > p {
  position: relative;
  z-index: 1;
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .78);
  color: var(--f-fg, var(--brand-text));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-3);
}

.feature-icon svg {
  width: 23px;
  height: 23px;
  display: block;
}

.feature h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-h3);
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* ============================================================
   荣誉资质图集（关于我们）
   ============================================================ */
.honor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--sp-4);
}

.honor {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.honor:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.honor img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.honor figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
  text-align: center;
}

/* ============================================================
   页脚
   ============================================================ */
.site-footer {
  margin-top: var(--sp-12);
  background: var(--footer-bg);
  color: #C7D6EC;
  font-size: var(--fs-sm);
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-5);
  padding: var(--sp-8) 0 var(--sp-6);
}

.footer-top h3 {
  margin: 0 0 var(--sp-3);
  font-size: var(--fs-body);
  font-weight: 600;
  color: #fff;
}

.footer-top li {
  margin-bottom: var(--sp-2);
}

.footer-top a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-qr {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}

.footer-qr img {
  width: 84px;
  height: 84px;
  padding: var(--sp-1);
  background: #fff;
  border-radius: var(--r-xs);
}

/* 联系页内嵌小程序码（白底保证任何主题下可扫） */
.qr-inline {
  flex: 0 0 auto;
  width: 120px;
  height: 120px;
  padding: var(--sp-1);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}

.footer-qr strong {
  display: block;
  color: #fff;
  font-size: var(--fs-h3);
  font-weight: 600;
  margin-bottom: var(--sp-1);
}

.footer-links {
  padding: var(--sp-4) 0;
  font-size: var(--fs-xs);
  color: #A9BEDA;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  line-height: 2;
}

.footer-links a {
  display: inline-block;
  margin-right: var(--sp-3);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  padding: var(--sp-4) 0 var(--sp-6);
  font-size: var(--fs-xs);
  color: #9DB2D2;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  justify-content: space-between;
}

.footer-bottom a {
  border-bottom: 1px solid rgba(255, 255, 255, .32);
}

.footer-bottom a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================================================
   小程序弹窗
   ============================================================ */
.qr-dialog {
  position: relative;
  width: min(92vw, 380px);
  padding: var(--sp-8) var(--sp-6) var(--sp-6);
  border: 0;
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--ink);
  background: var(--bg-raised);
  box-shadow: var(--shadow-lg);
}

.qr-dialog::backdrop {
  background: rgba(18, 34, 54, .55);
}

.qr-dialog h2 {
  margin: 0 0 var(--sp-2);
  font-size: 19px;
  font-weight: 600;
}

.qr-dialog .desc {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.qr-dialog img {
  width: 168px;
  height: 168px;
  margin: 0 auto var(--sp-4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
}

.qr-dialog .wxid {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-body);
}

.qr-dialog .tel {
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.qr-dialog .tel a {
  color: var(--brand-text);
}

.btn-close {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: transparent;
  font-size: var(--fs-body);
  color: var(--ink-2);
  transition: border-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.btn-close:hover {
  border-color: var(--brand-text);
  color: var(--brand-text);
}

.btn-close:active {
  transform: scale(.98);
}

.dialog-close-x {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-3);
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--ink-3);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.dialog-close-x:hover {
  color: var(--ink);
  background: var(--surface);
}

/* ============================================================
   内容页
   ============================================================ */
.prose {
  max-width: 800px;
}

.prose p {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-body);
  line-height: 1.9;
  color: var(--ink-2);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-4);
  margin-top: var(--sp-2);
}

.stat {
  padding: var(--sp-5) var(--sp-3);
  text-align: center;
  background: var(--surface);
  border-radius: var(--r-lg);
}

.stat b {
  display: block;
  font-size: 26px;
  font-weight: 600;
  color: var(--brand-text);
  letter-spacing: -.5px;
}

.stat span {
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

.panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}

.panel h2 {
  margin: 0 0 var(--sp-4);
  font-size: 18px;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

/* 左列：联系方式 + 微信客服 上下堆叠，与右列「在线留言」并排 */
.contact-col {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  min-width: 0;
}

.info-list li {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  border-bottom: 1px dashed var(--line);
  font-size: var(--fs-body);
}

.info-list li:last-child {
  border-bottom: 0;
}

.info-list b {
  flex: 0 0 84px;
  font-weight: 400;
  color: var(--ink-2);
}

.field--full {
  grid-column: 1 / -1;
}

.form-actions {
  margin-top: var(--sp-1);
}

.form-tip {
  margin: var(--sp-4) 0 0;
  padding: var(--sp-3);
  border-radius: var(--r-sm);
  background: #E1F5EE;
  color: #0F6E56;
  font-size: var(--fs-sm);
  line-height: 1.7;
}

.form-tip[hidden] {
  display: none;
}

.form-tip--error {
  background: #FCEBEB;
  color: #A32D2D;
}

.form-tip--warn {
  background: #FAEEDA;
  color: #854F0B;
}

@media (prefers-color-scheme: dark) {
  .form-tip {
    background: rgba(61, 214, 152, .12);
    color: #7EE2B8;
  }

  .form-tip--error {
    background: rgba(255, 120, 120, .12);
    color: #FF9B9B;
  }

  .form-tip--warn {
    background: rgba(239, 159, 39, .14);
    color: #FFC46B;
  }
}

/* 深色模式：保障卡片改用低饱和暗底 + 提亮图标色 */
@media (prefers-color-scheme: dark) {
  .feature:nth-child(4n + 1) { --f-bg: rgba(21, 101, 216, .13); --f-fg: #7CB0FF; }
  .feature:nth-child(4n + 2) { --f-bg: rgba(11, 138, 95, .15);  --f-fg: #5FD3A6; }
  .feature:nth-child(4n + 3) { --f-bg: rgba(184, 92, 10, .15);  --f-fg: #F5B77A; }
  .feature:nth-child(4n + 4) { --f-bg: rgba(107, 63, 181, .16); --f-fg: #C3A6F5; }

  .feature-icon {
    background: rgba(255, 255, 255, .08);
  }

  .feature-bg-icon {
    opacity: .13;
  }
}

/* 双号码之间的分隔符 */
.topbar-sep {
  margin: 0 6px;
  opacity: .65;
}

.tel-sep {
  opacity: .55;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.field-error input,
.field-error textarea {
  border-color: var(--price);
}

/* ============================================================
   入场动效
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes dx-rise {
    from {
      opacity: 0;
      transform: translateY(10px);
    }

    to {
      opacity: 1;
      transform: none;
    }
  }

  .search-card,
  .ad,
  .section {
    animation: dx-rise 500ms var(--ease) both;
  }

  .ad {
    animation-delay: 60ms;
  }

  .section {
    animation-delay: 100ms;
  }
}

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .search-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .btn-query {
    grid-column: 1 / -1;
  }

  .route-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-list {
    gap: var(--sp-5);
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: 74vw;
    max-width: 300px;
    height: 100dvh;
    background: var(--bg-raised);
    padding: 72px var(--sp-5) var(--sp-5);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
    box-shadow: var(--shadow-lg);
    margin-left: 0;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: var(--sp-1);
  }

  .nav-list a {
    display: flex;
    min-height: 48px;
    padding: 0 var(--sp-1);
    font-size: 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-list a[aria-current="page"] {
    border-bottom-color: var(--line);
  }

  .nav-mask {
    position: fixed;
    inset: 0;
    background: rgba(18, 34, 54, .4);
    z-index: 40;
  }

  .hero {
    padding: var(--sp-8) 0 calc(var(--sp-10) + var(--sp-2));
  }

  .route-grid,
  .features,
  .footer-top,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  /* 触摸设备：可点元素统一抬到 44px */
  .city-tabs button,
  .btn-mini,
  .footer-links a {
    min-height: 44px;
  }

  .city-tabs button {
    padding: 0 var(--sp-5);
  }

  .footer-links {
    line-height: 44px;
  }

  /* 手机端隐藏左右箭头：箭头会压住画面文案，改用左右滑动切换（见 main.js），
     圆点仍可点选，自动轮播照常 */
  .ad-arrow {
    display: none;
  }
}

@media (max-width: 480px) {
  .search-fields {
    grid-template-columns: 1fr;
  }

  .topbar .container {
    font-size: var(--fs-xs);
    justify-content: center;
  }

  /* 窄屏优先保证两个号码完整显示，隐藏标语 */
  .topbar .container > span:first-child {
    display: none;
  }

  .route-grid {
    gap: var(--sp-3);
  }

  .footer-bottom {
    flex-direction: column;
  }

  .route-price {
    font-size: 23px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   微信客服（联系我们）
   ============================================================ */
.wechat-grid {
  display: grid;
  /* 列宽自适应：窄列(联系方式下方)两卡并排，手机整宽时自动单列 */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--sp-4);
}

.panel-note {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--ink-2);
}

/* 复用 .honor 卡片，但图片按原始比例显示，不裁切 */
.honor--auto img {
  aspect-ratio: auto;
}

/* ============================================================
   锂电池安全运输提示页（battery.html）
   正文与配图为原文照录，这里只做必要的排版适配，
   字号/行高/间距尽量贴近原页，不做二次设计。
   ============================================================ */
.battery-body {
  color: var(--ink);
  font-size: var(--fs-body);
}

/* 原页 p / span: line-height 2，p 上下外边距 10px */
.battery-body p {
  margin: 10px 0;
  line-height: 2;
}

/* 原页 h2: 18px、加粗、padding 10px 0 5px */
.battery-body h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  padding: 10px 0 5px;
  margin: 0;
  color: var(--ink);
}

/* 原页 ul 已重置项目符号，li 顶部 10px */
.battery-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.battery-body li {
  margin-top: 10px;
}

.battery-body b,
.battery-body strong {
  font-weight: 700;
}

/* 配图：原页 width 85% 居中，桌面端按原比例；手机端放大到满宽以保证图内文字可读 */
.battery-body .bat-img {
  display: block;
  width: 85%;
  max-width: 100%;
  height: auto;
  margin: 10px auto 0;
  border-radius: var(--r-md);
  background: #fff;
}

@media (max-width: 768px) {
  .battery-body p {
    line-height: 1.9;
  }

  .battery-body .bat-img {
    width: 100%;
    border-radius: var(--r-sm, 8px);
  }
}
