/* ═══════════════════════════════════════════════════════════════
   mobile-proto-pages.css —— 手机端「页面级」样式（2026-10-21）
   来源：mobile-prototype/*.html 的 <style> 段原样移植。

   分工：
   - 共享外壳（顶栏 / 抽屉 / 页脚 / TabBar / Toast / 分区标题 .sect-head /
     二级页头图 .sub-hero / 筛选胶囊 .chips / 徽标 .badge / 行列表 .rowlist /
     结算条 .cart-bar / 弹层 .modal）在 mobile-proto.css 里，本文件不重复定义。
   - 本文件只补共享层没有的「每个页面自己才有」的组件：
     首页（.hero 轮播 / .ad 广告位 / .video-card / .gallery-rail）、
     赛事（.race-card / .fee-list / .btn-primary）、
     通用三格事实条（.facts / .fact）、
     赛段（.tl-no / .tl-km / .sd-* 页签与前后翻页）、
     城市（.route 路线带 / .ccard 城市卡 / .seg 排序分段 / .intro / .allstops / .hop）、
     赞助商墙（.sponsors / .sp-*）、以及若干说明文字（.note / .sect-note / .list-note）。

   加载顺序：各页在 @section Head 里 <link> 本文件，晚于 <head> 里的 mobile-proto.css，
   同特异度下本文件的规则胜出。因此本文件末尾自带横屏 / 窄屏适配层，
   覆盖共享层同名媒体查询（共享层只留了 .hero / .cd-cell / .sponsors / .sp-grid 的适配条目）。
   ═══════════════════════════════════════════════════════════════ */

/* ══════════════ 通用：三格事实条（赛事 / 赛段 / 城市 / 赞助商共用） ══════════════ */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border-block: 1px solid var(--border);
}
.fact { padding: 13px 10px; background: var(--surface); text-align: center; }
/* 两格版（城市详情：沿途序位 / English） */
.facts--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fact-k {
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
/* 窄机型下三列只有 ~87px：clamp 缩字号，长值（如「07.11–07.18」）不溢到邻格 */
.fact-v {
  margin-top: 5px;
  font-family: var(--font-num);
  font-size: clamp(13px, 4.4vw, 17px);
  font-weight: 600;
  color: var(--fg);
}
.fact-v small { font-family: var(--font-body); font-size: 12px; font-weight: 400; }
/* 赛事页「届次」值可能带年份前缀（如 "2026第二十五届"）：压字号并禁止换行，
   避免三格要点条被撑成两行（原型该格为 "第 25 届"，单行）。 */
.facts--edition .fact-v {
  font-size: clamp(12px, 3.5vw, 14px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fact-v.is-km { color: var(--accent-ink); }
.fact-v.is-na { font-family: var(--font-body); font-size: 13px; font-weight: 400; color: var(--muted); }
.fact-en {
  display: block;
  margin-top: 2px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ══════════════ 通用：说明文字 ══════════════ */
.sect-note { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.note { margin-top: 10px; font-size: 12px; line-height: 1.6; color: var(--muted); }
.list-note {
  padding: 14px var(--inset-r) 20px var(--inset-l);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--muted);
}
.list-note code {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--ink-2);
  background: var(--on-ink-06);
  padding: 1px 5px;
  border-radius: 4px;
}
.list-note a { color: var(--fg); text-decoration: underline; text-underline-offset: 2px; }
.list-note a:hover { color: var(--accent-ink); }

/* ══════════════ 通用：描边次级按钮 / 实心主按钮 ══════════════ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease;
}
.back-btn:hover { background: var(--on-ink-06); border-color: var(--on-ink-45); }
.back-btn:active { background: var(--on-ink-12); }
.back-btn svg { width: 15px; height: 15px; color: var(--muted); }

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: var(--tap);
  margin-top: 14px;
  border-radius: var(--radius);
  background: var(--accent);
  color: #1f1f1f;
  font-size: 15px;
  font-weight: 700;
  transition: background-color .15s ease, transform .12s ease;
}
.btn-primary:hover { background: var(--accent-deep); }
.btn-primary:active { background: color-mix(in oklch, var(--accent) 86%, var(--fg)); transform: scale(.99); }
.btn-primary svg { width: 16px; height: 16px; }

/* ══════════════ 首页：头图轮播 ══════════════ */
.hero {
  position: relative;
  height: min(76vh, 560px);
  height: min(76svh, 560px);   /* svh：地址栏收起/展开都不引起跳版 */
  min-height: 430px;
  background: var(--navy);
  overflow: hidden;
  touch-action: pan-y;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-slide[data-pos="1"] img { object-position: center 34%; }
.hero-slide[data-pos="2"] img { object-position: center 52%; }
.hero-slide[data-pos="3"] img { object-position: center 30%; }
.hero-scrim { position: absolute; inset: 0; background: var(--scrim-hero); }

.hero-body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 0 var(--inset-r) 64px var(--inset-l);
  color: var(--on-dark);
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border: 1px solid var(--on-dark-40);
  border-radius: 999px;
  background: color-mix(in oklch, #000000 22%, transparent);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--on-dark);
}
.hero-tag b { color: var(--on-dark); font-weight: 700; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 8vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.16;
  margin-top: 10px;
  text-shadow: 0 2px 16px color-mix(in oklch, #000000 40%, transparent);
}
.hero-sub {
  font-size: 14px;
  color: var(--on-dark-88);
  margin-top: 5px;
  text-shadow: 0 1px 10px color-mix(in oklch, #000000 40%, transparent);
}
/* 赛后态：倒计时格换成三格规模统计 */
.hero-stats { display: flex; gap: 8px; margin-top: 12px; }
.hero-stat {
  flex: 1;
  padding: 8px 6px;
  border: 1px solid var(--on-dark-40);
  border-radius: var(--radius-sm);
  background: color-mix(in oklch, #000000 22%, transparent);
  text-align: center;
}
.hero-stat b {
  display: block;
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--on-dark);
}
.hero-stat span { font-size: 11px; color: var(--on-dark-70); }
/* 头图内的主/次 CTA：全页唯一一组实心主按钮 */
.hero-cta { display: flex; gap: 8px; margin-top: 12px; }
.hero-cta .btn-primary { width: auto; flex: 1 1 auto; margin-top: 0; }
.hero-cta .btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-height: var(--tap);
  padding: 0 16px;
  border: 1px solid var(--on-dark-58);
  border-radius: var(--radius);
  background: color-mix(in oklch, #000000 30%, transparent);
  color: var(--on-dark);
  font-size: 15px;
  font-weight: 600;
  transition: background-color .15s ease;
}
.hero-cta .btn-ghost:hover { background: color-mix(in oklch, #000000 45%, transparent); }
.hero-cta .btn-ghost:active { background: color-mix(in oklch, #000000 55%, transparent); }

/* 倒计时：PC .counter_con 的品牌形态，青柠底 + 白描边 + 深色数字 */
.countdown-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-dark-88);
  margin: 14px 0 8px;
  text-shadow: 0 1px 10px color-mix(in oklch, #000000 45%, transparent);
}
.countdown { display: flex; gap: 8px; }
.countdown[hidden] { display: none; }
.cd-cell {
  flex: 1;
  height: 62px;
  background: color-mix(in oklch, var(--lime) 70%, transparent);
  border: 1px solid var(--on-dark);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.cd-cell .cd-num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink-on-lime);
}
.cd-cell .cd-unit { font-size: 11px; line-height: 1; color: var(--ink-on-lime); opacity: .82; }

.hero-foot {
  position: absolute;
  left: var(--inset-l); right: var(--inset-r); bottom: 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--on-dark);
}

/* 指示点：视觉 6px，触摸区仍是 44px 宽且相邻互不重叠 */
.dots { display: flex; align-items: center; }
.dots button {
  position: relative;
  width: 24px; height: var(--tap);
  display: grid; place-items: center;
}
.dots button::before { content: ""; position: absolute; inset: 0 -10px; }
.dots button::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--muted);
  transition: width .2s ease, background-color .2s ease;
}
.dots button.is-active::after { width: 18px; background: var(--accent-ink); }
.dots button:hover::after { background: var(--fg); }
.dots button.is-active:hover::after { background: var(--accent-ink); }
.hero-foot .dots button::after { background: var(--on-dark-70); }
.hero-foot .dots button.is-active::after { background: var(--accent); }
.hero-foot .dots button:hover::after { background: var(--on-dark); }
.hero-foot .dots button.is-active:hover::after { background: var(--accent); }
.counter { font-size: 12px; color: var(--on-dark-88); letter-spacing: .06em; }

/* 视频 / 图集页脚行：左侧指示点 + 右侧页码（同一概念两处同一摆法） */
.video-foot, .gallery-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.video-foot .counter, .gallery-foot .counter { color: var(--muted); }
/* 指示点视觉 6px、按钮 24px，圆点在按钮内居中 → 左对齐会缩进 9px，回补 */
.video-foot .dots, .gallery-foot .dots, .hero-foot .dots { margin-left: -9px; }

/* ══════════════ 首页：广告位 ══════════════
   两种形态：
   ① 后台配置了 banner_primary 图片 → 直接展示该图（与 PC 端同一条记录）。
      图片按原始比例完整显示、不裁切：真实素材多为 11.6:1 超宽横幅
      （如 04065a54.png 1920×166），若强制裁成 4.4:1 会切掉两侧 ICBC/周年标志
      与右侧文案，因此宽度铺满、高度由图片比例决定（约 31px）。
   ② 后台未配图 → 退回原型自带的静态卡片（下方 .ad-glow/.ad-bar/.ad-text 那套）。 */
.ad {
  padding: 8px var(--inset-r) 8px var(--inset-l);
  background: var(--surface);
}

/* ① 图片形态 */
.ad-img-link {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.ad-img {
  display: block;
  width: 100%;
  height: auto;   /* 保持原始宽高比，完整显示不裁切 */
}

/* ② 静态卡片形态 */
/* 仅静态卡片形态（不含 .ad-img-link 图片形态）用这套排版 */
.ad a:not(.ad-img-link) {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 13px 14px 13px 17px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #005a8f 0%, #00456b 100%);
}
.ad-bar { flex: 0 0 auto; width: 3px; height: 36px; background: var(--accent); }
.ad-text { flex: 1 1 auto; min-width: 0; }
.ad-eyebrow {
  display: block;
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--on-dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ad-title {
  display: block;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .04em;
  line-height: 1.3;
  color: var(--on-dark);
}
.ad-sub { display: block; font-size: 11.5px; line-height: 1.4; color: var(--on-dark-88); }
.ad-glow {
  position: absolute;
  right: -34px; top: 50%;
  width: 128px; height: 128px;
  margin-top: -64px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .12;
  pointer-events: none;
}
.ad-flag {
  position: absolute;
  top: 6px; right: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: color-mix(in oklch, #000000 52%, transparent);
  font-size: 10px;
  color: var(--on-dark);
}

/* ══════════════ 首页：视频卡 ══════════════ */
.video-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy);
}
.video-stack { position: absolute; inset: 0; }
.video-stack video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}
.video-stack video.is-active { display: block; }
.video-card::after { content: ""; position: absolute; inset: 0; background: var(--scrim-photo); }
.play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  transition: transform .15s ease, opacity .15s ease;
}
.play img { width: 56px; height: 56px; }
.video-card:hover .play { transform: translate(-50%, -50%) scale(1.06); }
.video-card:active .play { transform: translate(-50%, -50%) scale(.94); opacity: .86; }
.video-meta {
  position: absolute;
  left: 14px; right: 14px; bottom: 12px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  color: var(--on-dark);
}
.video-meta h3 {
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 8px color-mix(in oklch, #000000 50%, transparent);
}
/* 弹层里的视频：可播放、无遮挡 */
.modal-card figure { margin: 0; background: var(--navy); }
.modal-card figure video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; display: block; background: #000; }

/* ══════════════ 首页：图集轨 ══════════════ */
.gallery-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  padding: 2px 0 4px;
  /* 2026-10-24：轨可滑但零滚动提示（实测 scrollWidth 1464 / clientWidth 358，超容器 1106px，
     滚动条宽 0，无箭头无渐隐），用户不知道右边还有图。右缘加渐隐遮罩。 */
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 32px), transparent 100%);
}
.gallery-rail::-webkit-scrollbar { display: none; }
.g-item {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--navy);
  transition: transform .15s ease;
}
.g-item:hover { transform: translateY(-2px); }
.g-item:active { transform: scale(.99); }
.g-open { display: block; width: 100%; height: 100%; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 22px 14px 12px;
  background: linear-gradient(180deg,
              color-mix(in oklch, #000000 0%, transparent),
              color-mix(in oklch, #000000 62%, transparent));
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--on-dark);
  pointer-events: none;
}
.g-item figcaption .g-idx {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--on-dark-70);
}

/* ══════════════ 赛事页：赛事卡（深蓝卡 + 满幅封面） ══════════════ */
.race-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: var(--on-dark);
  transition: transform .18s ease;
}
.race-card:active { transform: scale(.985); }
.race-cover { position: relative; aspect-ratio: 16 / 9; background: var(--navy-sunk); }
.race-cover img { width: 100%; height: 100%; object-fit: cover; }
.race-cover::after { content: ""; position: absolute; inset: 0; background: var(--scrim-photo); }
.race-cover .badge { position: absolute; left: 12px; top: 12px; }
.race-body { padding: 14px 14px 6px; }
.race-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-dark);
}
.race-meta {
  margin-top: 6px;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--on-dark-70);
}
.race-cta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--on-dark-88);
}
.race-cta svg { width: 15px; height: 15px; }
.race-card:hover .race-cta { color: var(--on-dark); }
.race-desc {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--on-dark-70);
}

/* ══════════════ 赛事页：报名组别与费用 ══════════════ */
.fee-list { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; }
.fee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 56px;
}
.fee-row + .fee-row { border-top: 1px solid var(--border); }
.fee-main { flex: 1 1 auto; min-width: 0; }
.fee-name { font-size: 15px; font-weight: 600; }
.fee-desc { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.fee-amt {
  flex: 0 0 auto;
  font-family: var(--font-num);
  font-size: 16px;
  font-weight: 600;
  color: var(--fg);
}
.fee-amt::before { content: "￥"; font-size: 11px; margin-right: 1px; color: var(--muted); }

/* ══════════════ 赛段列表页：行内序号与里程 ══════════════
   序号与里程用 --accent-ink（品牌金在白底上 1.9:1，压暗版 5.49:1） */
.tl-no {
  flex: 0 0 auto;
  min-width: 34px;
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--accent-ink);
}
.tl-km {
  flex: 0 0 auto;
  text-align: right;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-ink);
  white-space: nowrap;
}
.tl-km i { font-style: normal; font-size: 11px; font-weight: 400; margin-left: 2px; }
.tl-km.is-na, .tl-na {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.rowlist-title { display: block; }
.rowlist-sub { display: block; }

/* ══════════════ 赛段详情页 ══════════════ */
.sd-back-row { padding: 14px var(--inset-r) 0 var(--inset-l); background: var(--surface); }
.sd-val {
  flex: 0 0 auto;
  max-width: 62%;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg);
}
.sd-val.is-na { font-size: 13px; font-weight: 400; color: var(--muted); }

.sd-tabs {
  position: sticky;
  top: calc(var(--bar-h) + var(--safe-t));
  z-index: 40;
  display: flex;
  /* 页签齐上时（路线图/路书/海拔图/最后三公里/城市）390px 放不下，
     收缩会折行成两行高低不齐（2026-10-25 巡检 P2-2）——改为容器横向滑动 */
  overflow-x: auto;
  scrollbar-width: none;      /* Firefox 隐藏滚动条，滑动暗示靠页签截断 */
  background: var(--surface);
  border-block: 1px solid var(--border);
}
.sd-tabs::-webkit-scrollbar { display: none; }
.sd-tab {
  flex: 1 0 auto;             /* 少页签时均分铺满；放不下时不收缩，交给容器横滑 */
  white-space: nowrap;
  min-height: var(--tap);
  padding: 0 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color .15s ease, border-color .15s ease;
}
.sd-tab:hover { color: var(--fg); }
.sd-tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent-ink); }
/* display:flex 会盖掉 UA 的 [hidden]，不补这条会留下一条空页签条 */
.sd-tabs[hidden], .sd-hop[hidden] { display: none; }
.sd-pane { padding: 16px var(--inset-r) 18px var(--inset-l); background: var(--surface); }
.sd-pane[hidden] { display: none; }
.sd-pane-title { font-size: 15px; font-weight: 700; line-height: 1.4; }
.sd-pane-sub { margin-top: 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sd-media { width: 100%; border-radius: var(--radius); display: block; }
.sd-text { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.sd-text p { margin: 0 0 .8em; }
.sd-text img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.sd-text pre {
  background: var(--bg);
  padding: 12px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 12px;
}
.sd-text :is(h1, h2, h3, h4) { margin: 1.2em 0 .6em; font-weight: 700; font-size: 1em; }
.sd-text ul, .sd-text ol { padding-left: 1.4em; margin: .8em 0; }
.sd-text table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.sd-text th, .sd-text td { border: 1px solid var(--border); padding: 8px; font-size: 13px; }

.na-box {
  padding: 14px var(--inset-r) 16px var(--inset-l);
  background: var(--surface);
}
.na-title { font-size: 14px; font-weight: 700; }
.na-text { margin-top: 6px; font-size: 12.5px; line-height: 1.65; color: var(--muted); }

.sd-hop {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
}
.sd-hop-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 62px;
  padding: 12px 14px;
  background: var(--surface);
  transition: background-color .15s ease;
}
.sd-hop-link:hover { background: var(--on-ink-06); }
.sd-hop-link:active { background: var(--on-ink-12); }
.sd-hop-k { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.sd-hop-k svg { width: 13px; height: 13px; }
.sd-hop-v { font-size: 14px; font-weight: 600; line-height: 1.35; }
.sd-hop-link[aria-disabled="true"] { color: var(--muted); pointer-events: none; }
.sd-hop-link[aria-disabled="true"] .sd-hop-v { color: var(--muted); font-weight: 500; }

.notfound { padding: 56px var(--inset-r); background: var(--surface); text-align: center; }
.notfound p { font-size: 14px; color: var(--muted); }
.notfound .back-btn { margin-top: 16px; }
.notfound[hidden] { display: none; }

/* ══════════════ 城市页：沿途路线带 ══════════════ */
.route {
  display: flex;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 16px var(--inset-r) 18px var(--inset-l);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  touch-action: pan-x;
}
.route::-webkit-scrollbar { display: none; }
.stop {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 76px;
  padding-top: 3px;
  text-align: center;
}
.stop::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 50%;
  width: 76px;
  height: 1px;
  background: var(--on-ink-12);
}
.stop:last-child::after { display: none; }
.stop-dot {
  position: relative;
  z-index: 1;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--on-ink-45);
  transition: border-color .15s ease, background-color .15s ease;
}
.stop-name {
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--muted);
  transition: color .15s ease;
}
.stop:hover .stop-dot { border-color: var(--fg); }
.stop:hover .stop-name { color: var(--fg); }
.stop:active .stop-dot { background: var(--on-ink-12); border-color: var(--fg); }
.stop:focus-visible { outline-offset: 1px; }

/* ══════════════ 城市页 / 城市详情页：排序分段控件 ══════════════ */
.city-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px var(--inset-r) 12px var(--inset-l);
}
.city-count { font-size: 12.5px; color: var(--muted); }
.city-count b { font-family: var(--font-num); font-weight: 600; color: var(--fg); }
.seg {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
}
.seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
  color: var(--muted);
  transition: background-color .15s ease, color .15s ease;
}
.seg-btn:hover { background: var(--on-ink-06); color: var(--fg); }
.seg-btn:active { background: var(--on-ink-12); color: var(--fg); }
.seg-btn[aria-pressed="true"] { background: var(--fg); color: var(--on-dark); font-weight: 600; }
.seg-btn[aria-pressed="true"]:hover,
.seg-btn[aria-pressed="true"]:active { background: var(--fg); color: var(--on-dark); }

/* ══════════════ 城市页：城市卡（照片按原始比例完整显示） ══════════════ */
.city-list { padding: 0 var(--inset-r) 4px var(--inset-l); }
.ccard {
  display: block;
  position: relative;
  margin-bottom: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color .15s ease, transform .16s ease;
}
.ccard:hover { border-color: var(--on-ink-45); transform: translateY(-2px); }
.ccard:active { transform: scale(.99); }
.ccard-photo { display: block; background: var(--on-ink-06); }
.ccard-photo img { width: 100%; height: auto; }
.ccard-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--accent);
  color: #1f1f1f;
  box-shadow: 0 2px 8px color-mix(in oklch, #000000 28%, transparent);
}
.ccard-body { display: block; padding: 12px 13px 14px; }
.ccard-top { display: flex; align-items: baseline; gap: 8px; }
.ccard-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg);
}
.ccard-en {
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ccard-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}
.ccard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--muted);
}
.ccard-arr { flex: 0 0 auto; width: 15px; height: 15px; margin-left: 4px; color: var(--on-ink-45); }
.ccard:hover .ccard-arr { color: var(--muted); }

/* ══════════════ 城市详情页 ══════════════ */
.intro { padding: 20px var(--inset-r) 22px var(--inset-l); background: var(--surface); }
.intro-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.intro-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fg);
}
.intro-text { font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.intro-text[lang="en"] { font-size: 13.5px; color: var(--muted); }
.intro-text img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }

.back-row { padding: 14px var(--inset-r) 4px var(--inset-l); background: var(--surface); }

/* ══════════════ 赞助商墙 ══════════════
   底色 --bg：与上方白面区分；卡片底色 --surface，色块仍从灰底上浮起。 */
.sponsors { background: var(--bg); padding: 26px 0 30px; }
.sp-group { padding: 4px 0 0; }
.sp-group + .sp-group { margin-top: 22px; }
.sp-group[hidden] { display: none; }
.sp-tier {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 var(--inset-l);
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  color: var(--muted);
}
.sp-tier::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--border); }
.sp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 0 var(--inset-l);
}
.sp-card { min-width: 0; text-align: center; }
.sp-hit {
  display: block;
  width: 100%;
  text-align: center;
  border-radius: 10px;
  transition: transform .15s ease;
}
.sp-hit:hover { transform: translateY(-2px); }
.sp-hit:active { transform: scale(.99); }
.sp-box {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color .15s ease;
}
.sp-hit:hover .sp-box { border-color: var(--on-ink-45); }
.sp-box img { max-width: 78%; max-height: 78%; width: auto; height: auto; object-fit: contain; }
.sp-box a { display: grid; place-items: center; width: 100%; height: 100%; }
/* Logo 缺失时的文字占位：名称首字淡显，避免一格纯白看不出这是 logo 位
   （2026-10-25 巡检 P3-5：开发库赞助商 Logo 全空，sp-box 全是纯白空盒） */
.sp-box-ph {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in oklch, var(--fg) 20%, transparent);
  user-select: none;
}
.sp-name {
  display: block;
  margin-top: 8px;
  padding: 0 2px;
  font-size: 12px;
  line-height: 1.3;
  color: var(--muted);
  overflow-wrap: anywhere;
  transition: color .15s ease;
}
.sp-hit:hover .sp-name { color: var(--fg); }
.sp-empty { padding: 8px var(--inset-l) 4px; }
.sp-empty-title { font-family: var(--font-display); font-size: 17px; font-weight: 700; }
.sp-empty-sub { margin-top: 6px; font-size: 13px; line-height: 1.7; color: var(--muted); }
/* 商务合作：全页唯一主按钮 */
.sp-cta {
  margin-top: 30px;
  padding: 24px var(--inset-r) 26px var(--inset-l);
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.sp-cta h2 { font-family: var(--font-display); font-size: 18px; font-weight: 800; line-height: 1.4; }
.sp-cta p { margin-top: 7px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.sp-cta .cart-go { margin-top: 16px; }

/* ══════════════ 首页：资讯与商城（保留原功能，套用新设计语言） ══════════════ */
#products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
/* 商品卡沿用既有 .product-card-v3 标记（首页下拉加载追加的卡片由 mobile-home.js
   用同一套标记生成，两处必须同源），这里把旧设计令牌换成新设计系统的取值。 */
.product-card-v3 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.product-card-v3:active { border-color: var(--on-ink-45); }
.product-card-v3-thumb { background-color: var(--on-ink-06); }
.product-card-v3-badge {
  background: color-mix(in oklch, #000 74%, transparent);
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  padding: 2px 8px;
}
.product-card-v3-info { padding: 10px 11px 12px; }
.product-card-v3-name { font-size: 14px; color: var(--fg); min-height: 2.8em; }
.product-card-v3-price { font-size: 15px; color: var(--accent-ink); }
.product-card-v3-original { color: var(--muted); }

.news-row-cover {
  flex: 0 0 auto;
  width: 84px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--on-ink-06);
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.prod-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform .15s ease, border-color .15s ease;
}
.prod-card:hover { transform: translateY(-2px); border-color: var(--on-ink-45); }
.prod-card-thumb {
  aspect-ratio: 1 / 1;
  background: var(--on-ink-06) center / cover no-repeat;
  position: relative;
}
.prod-card-badge {
  position: absolute;
  top: 8px; left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in oklch, #000 74%, transparent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 600;
}
.prod-card-info { padding: 10px 11px 12px; }
.prod-card-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.prod-card-meta { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.prod-card-price {
  font-family: var(--font-num);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent-ink);
}
.prod-card-original {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--muted);
  text-decoration: line-through;
}

/* ══════════════ 移动端适配层（覆盖共享层同名媒体查询：本文件更晚加载） ══════════════ */
@media (hover: none) {
  .video-card:hover .play { transform: translate(-50%, -50%); }
  .g-item:hover, .sp-card:hover { transform: none; }
  .ccard:hover { transform: none; }
  .sp-hit:hover { transform: none; }
  .dots button:hover::after { background: var(--muted); }
  .dots button.is-active:hover::after { background: var(--accent-ink); }
  .hero-foot .dots button:hover::after { background: var(--on-dark-70); }
  .hero-foot .dots button.is-active:hover::after { background: var(--accent); }
}
@media (orientation: landscape) and (max-height: 560px) {
  .hero { height: 84vh; height: 84svh; min-height: 300px; }
  .hero-body { padding-bottom: 56px; }
  .hero-title { font-size: clamp(22px, 5vw, 30px); }
  .hero-sub { font-size: 13px; }
  .countdown-label { margin: 10px 0 6px; }
  .cd-cell { height: 50px; }
  .cd-cell .cd-num { font-size: 19px; }
  .hero-tag { height: 24px; }
  .sponsors { padding-block: 20px 24px; }
  .sp-group + .sp-group { margin-top: 16px; }
  .sp-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px 8px; }
  .sp-tier { margin-bottom: 10px; }
}
@media (max-width: 359px) {
  .cd-cell { height: 58px; }
  .cd-cell .cd-num { font-size: 21px; }
  .fact-v { font-size: 13px; }
}
