/* ===== 买家端前台样式（列表页 + 详情页） ===== */

/* ===== 顶部导航 ===== */
.topnav {
  position: sticky; top: 0; z-index: 60;
  background: #0b2545;
  box-shadow: 0 2px 12px rgba(5, 20, 45, .28);
}
.topnav-in {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 0 16px; height: 56px;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}
.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; text-decoration: none; flex: none;
}
.brand-ico { font-size: 21px; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 22px; flex: 1; min-width: 0; }
.nav-links a {
  color: rgba(255,255,255,.82); text-decoration: none;
  font-size: 14px; padding: 7px 12px; border-radius: 7px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.cur { color: #fff; background: rgba(255,255,255,.12); }
.nav-call {
  flex: none; border: 0; cursor: pointer;
  background: linear-gradient(135deg, #ff8a2b, #f2610c);
  color: #fff; font-size: 14px; font-weight: 700;
  padding: 9px 18px; border-radius: 999px;
  box-shadow: 0 3px 10px rgba(242, 97, 12, .35);
}
.nav-call:active { transform: translateY(1px); }

/* ===== Hero 横幅：整块区域就是一张 AI 渲染的场景图 ===== */
.hero {
  position: relative;
  width: 100%;              /* 显式撑满，防止被 aspect-ratio 反推宽度 */
  /* ⚠️ 兜底：即使下面那个 .hero-bg（真实 <img>）因为任何原因没渲染出来，
     这层 CSS 背景也能保证 hero 视觉正常。两层图内容一致，浏览器只下载一次。 */
  background: #08203f url('/img/hero-truck.jpg') no-repeat center center;
  background-size: cover;
  color: #fff; overflow: hidden;
  /* 高度按背景图比例 1536×590 计算，宽高比一致 → cover 不裁画面。
     注意：这里刻意不用 max-height —— 它与 aspect-ratio 同时命中时，
     部分浏览器会反过来压缩元素宽度，导致右侧出现空白。 */
  aspect-ratio: 1536 / 590;
  min-height: 360px;
  display: flex; align-items: center;
}
/* 场景图铺满整个横幅（不是"贴一张小图"，而是整块就是这张图）。
   ⚠️⚠️ 这里必须用**真实 <img>**，绝不能用 CSS background-image！
   微信/朋友圈分享卡片只认页面里真实存在的 <img> 图片；用 CSS 背景图画出来的
   hero，在微信眼里"页面上根本没有图"，分享出去就只有个默认链接图标。
   （2026-09-19 实测：日志里微信从未请求过 og:image 指定的图片 → 微信不读 og:image） */
.hero-bg {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  display: block; pointer-events: none;
}
/* 微信分享抓取用的**固定**缩略图：真实 <img>，被上面的 .hero-bg 完全盖住（看不见、不占布局），
   作用有二：① 让微信有图可抓；② 保证不管分享哪个页面/哪辆车，卡片上的图都固定是同一张。 */
.share-thumb {
  position: absolute; top: 0; left: 0;
  width: 320px; height: 320px;
  display: block; pointer-events: none;
}
/* 详情页的固定分享缩略图：完全不可见（clip-path 裁掉），只为让微信有图可抓 */
.share-thumb-detail {
  position: absolute; top: 0; left: 0;
  width: 320px; height: 320px;
  clip-path: inset(50%);
  pointer-events: none;
}
/* 左侧压暗，让白色标题有足够对比度；向右自然过渡到原图 */
.hero::before {
  content: ''; position: absolute; pointer-events: none; inset: 0; z-index: 1;
  background: linear-gradient(90deg,
    rgba(6,20,40,.94) 0%,
    rgba(6,20,40,.80) 26%,
    rgba(6,20,40,.38) 50%,
    rgba(6,20,40,0) 70%);
}
.hero-in {
  position: relative; z-index: 2;
  width: 100%; max-width: 1160px; margin: 0 auto;
  padding: 40px 16px;
  padding-left: calc(16px + env(safe-area-inset-left));
  padding-right: calc(16px + env(safe-area-inset-right));
}
.hero-text { flex: 1; min-width: 0; max-width: 560px; }
.hero-title {
  font-size: 30px; font-weight: 900; letter-spacing: 1px; margin: 0;
  text-shadow: 0 2px 10px rgba(0, 20, 50, .35);
}
.hero-sub {
  margin: 12px 0 0; font-size: 14px; letter-spacing: .6px;
  color: rgba(220, 234, 255, .92);
}
.hero-count {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.26);
  font-size: 13px; color: #e8f1ff;
}
.hero-count b { font-size: 19px; color: #fff; }
/* 超宽屏：按比例算高度会过高，改为固定高度（cover 轻微裁边，不影响主体） */
@media (min-width: 1500px) {
  .hero { aspect-ratio: auto; height: 560px; }
}

/* 窄屏：横幅变矮、图靠右下显示，压暗改成上下渐变保证文字清晰 */
@media (max-width: 700px) {
  /* 比例算出来太矮，用 min-height 兜底，图定位到卡车所在区域 */
  .hero { min-height: 360px; }
  .hero-bg { object-position: 60% center; }
  .hero { background-position: 60% center; }
  .filter-bar { top: 52px; }
  .hero::before {
    background: linear-gradient(180deg,
      rgba(6,20,40,.90) 0%,
      rgba(6,20,40,.60) 46%,
      rgba(6,20,40,.28) 100%);
  }
  .hero-in { padding: 28px 16px; }
  .hero-text { max-width: none; }
  .hero-title { font-size: 25px; }
  .hero-sub { font-size: 13px; }
  .topnav-in { height: 52px; padding-left: 12px; padding-right: 12px; }
  .brand-name { font-size: 16px; }
  .nav-links { margin-left: 8px; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; padding: 6px 9px; }
  .nav-call { padding: 7px 12px; font-size: 13px; white-space: nowrap; }
}

/* ===== 车型筛选栏（独立于 Hero 的浅色条，滚动时吸顶在导航下方） ===== */
.filter-bar {
  position: sticky; top: 56px; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 32, 64, .04);
}
.filter-in {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 11px var(--gutter);
  padding-right: calc(var(--gutter) + env(safe-area-inset-right));
  padding-left: calc(var(--gutter) + env(safe-area-inset-left));
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.filter-in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; cursor: pointer; white-space: nowrap;
  background: #f2f5fa; color: #3b4c66;
  border: 1px solid #e4eaf3;
  font-size: 13.5px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--r-pill);
  min-height: 40px; display: inline-flex; align-items: center;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.chip:hover { background: #e8eef8; color: var(--primary); }
.chip.cur {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 3px 10px rgba(11, 37, 69, .22);
}
.chip:active { transform: scale(.97); }

/* ===== 通用区块 ===== */
.sec { padding: 56px 0 8px; }
.sec-about { padding-bottom: 8px; }
.sec-title {
  font-size: 21px; font-weight: 800; margin: 0 0 18px;
  color: #16304f; display: flex; align-items: center; gap: 10px;
}
.sec-title::before {
  content: ''; width: 4px; height: 20px; border-radius: 2px;
  background: linear-gradient(180deg, var(--price-2), var(--price));
}

/* 服务优势（5 张卡：实车实拍 / 支持现场看车 / 代办过户 / 价格透明 / 高价收车） */
.service-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
}
.svc {
  background: #fff; border-radius: var(--r-lg);
  padding: 24px 18px; text-align: center;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-ico { font-size: 28px; margin-bottom: 10px; }
.svc b { display: block; font-size: 15px; color: #16304f; }
.svc span { display: block; margin-top: 7px; font-size: 12.5px; color: #7b8798; line-height: 1.65; }

/* 关于车行 */
.about-card {
  background: #fff; border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
}
.about-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 15px 20px; font-size: 14px;
  border-bottom: 1px solid var(--line-2);
}
.about-row:last-child { border-bottom: 0; }
.about-row span { flex: none; width: 78px; color: #8a94a6; }
.about-row b { flex: 1; min-width: 0; color: #26364d; font-weight: 600; word-break: break-all; }

/* ---- 区块响应式 ---- */
@media (max-width: 900px) {
  .sec { padding: 42px 0 8px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .sec { padding: 32px 0 8px; }
  .sec-title { font-size: 18px; margin-bottom: 14px; }
  .service-grid { gap: 12px; }
  .svc { padding: 18px 12px; }
  .svc-ico { font-size: 24px; }
  .about-row { padding: 13px 16px; gap: 12px; }
  .about-row span { width: 64px; font-size: 13px; }
}

/* ---- 列表头 ---- */
.list-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 28px 0 14px;
}
.list-title { font-size: 20px; font-weight: 800; margin: 0; color: #16304f; flex: 1; }
.list-tools { display: flex; align-items: center; gap: 10px; }
.list-tools .result { font-size: 13px; color: var(--text2); white-space: nowrap; }
.sort-select {
  border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 13.5px; background: #fff; color: var(--text);
  outline: none; cursor: pointer; min-height: 36px;
  transition: border-color .15s;
}
.sort-select:focus { border-color: var(--price-2); }

@media (max-width: 640px) {
  .list-head { padding: 20px 0 10px; }
  .list-title { font-size: 18px; }
  .list-tools { width: 100%; justify-content: space-between; }
}

/* ---- 公告条 ---- */
.notice {
  background: #fff8ec; color: #9a6b13;
  font-size: 13px; padding: 8px 14px;
}
.notice strong { margin-right: 6px; }

/* ---- 车辆卡片栅格（按屏幕宽度切换列数） ---- */
.car-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 18px 0 40px;
}
@media (max-width: 1200px) {
  .car-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .car-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .car-grid { grid-template-columns: 1fr; gap: 14px; padding: 14px 0 28px; }
}
.car-card {
  background: var(--card); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow);
  cursor: pointer; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-card:active { transform: translateY(-1px); }
.card-photo {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8ebf0;
}
.card-photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .3s ease;
}
.car-card:hover .card-photo img { transform: scale(1.04); }
.photo-tag {
  position: absolute; right: 8px; bottom: 8px;
  background: rgba(0,0,0,.5); color: #fff;
  font-size: 12px; padding: 2px 7px; border-radius: 6px;
}
.sold-mask {
  position: absolute; inset: 0; background: rgba(30,34,42,.55);
  display: flex; align-items: center; justify-content: center;
}
.sold-mask span {
  color: #fff; font-size: 26px; font-weight: 900; letter-spacing: 4px;
  border: 3px solid #fff; padding: 8px 18px; border-radius: 10px;
  transform: rotate(-12deg);
}

/* 已售红色水印（图片中央印章式） */
.sold-watermark {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.10); pointer-events: none;
}
.sold-watermark span {
  color: #fff; font-size: clamp(24px, 8vw, 40px); font-weight: 900; letter-spacing: 8px;
  background: var(--accent); padding: 10px 24px; border-radius: 12px;
  border: 3px solid rgba(255,255,255,.9);
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
  transform: rotate(-10deg);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
}
/* 已售卡片整体淡出 */
.car-card.is-sold .card-photo img { filter: saturate(.75) brightness(.96); }
/* 已售红色角标（卡片标题旁） */
.sold-label {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; transform: translateY(-2px);
}
/* 详情页已售横幅 */
.sold-ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff0f0; color: var(--accent); font-weight: 800; font-size: 14px;
  padding: 6px 12px; border-radius: 8px; margin-bottom: 8px;
}
.card-body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; }
.card-title {
  font-size: 15px; font-weight: 700; color: #1b2a3f;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 44px; line-height: 1.45;
}
/* 图片左上角角标 */
.card-badge {
  position: absolute; left: 0; top: 10px; z-index: 4;
  background: linear-gradient(135deg, #ff8a2b, #e8580d);
  color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 1px;
  padding: 3px 10px 3px 8px; border-radius: 0 6px 6px 0;
  box-shadow: 0 2px 6px rgba(200, 70, 10, .35);
}
.card-tags {
  margin-top: 7px; font-size: 12.5px; color: #7b8798;
  display: flex; flex-wrap: wrap; line-height: 1.75;
}
.card-tags span { white-space: nowrap; }
.card-tags span:not(:last-child)::after { content: '·'; margin: 0 5px; color: #c3ccd9; }
.card-bottom {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
}
.price { color: #e8580d; font-weight: 900; font-size: 20px; }
.price small { font-size: 13px; font-weight: 600; }
.card-bottom .loc {
  font-size: 12px; color: var(--text2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 提示按钮组（微信复制成功气泡） */
.toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%);
  background: rgba(0,0,0,.78); color: #fff;
  padding: 9px 18px; border-radius: 999px; font-size: 14px;
  z-index: 99; opacity: 0; transition: opacity .25s; pointer-events: none;
}
.toast.show { opacity: 1; }

/* ---- 底部联系条 ---- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.contact-in {
  display: flex; gap: 10px;
  max-width: 640px; margin: 0 auto;
  padding: 10px 16px 10px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
}
.btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-md); font-size: 15px; font-weight: 600;
  padding: 12px 0; flex: 1; min-height: 46px;
  transition: opacity .15s, transform .12s;
}
.btn:active { transform: scale(.985); opacity: .92; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-green   { background: #1aad19; color: #fff; }
.btn-outline { background: #fff; border: 1px solid var(--line); color: var(--text); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.contact-extra { max-width: 640px; margin: 0 auto; }

/* 页面内容下方预留被联系条遮挡的空间 */
.page-bottom-space { height: 84px; }

/* ---- 页脚（首页用深蓝底，底部留出固定联系条的空间） ---- */
.site-footer {
  margin-top: 30px;
  background: #0b2545; color: #9fb2cc;
  text-align: center; font-size: 12.5px; line-height: 2;
  padding: 20px 16px calc(92px + env(safe-area-inset-bottom));
}
.site-footer .foot-main { color: #c3d3e8; }
.site-footer .foot-main i { font-style: normal; margin: 0 6px; color: #4a6a95; }
.site-footer .beian {
  display: inline-block; margin-top: 2px;
  color: #8fa4c0; text-decoration: none;
  border-bottom: 1px dotted rgba(143,164,192,.5);
}
.site-footer .beian:active { color: #fff; }
/* 公安联网备案：图标在前、编号在右（公安部硬性要求，图标必须放在编号之前） */
.site-footer .beian-police { margin-left: 12px; }
.site-footer .beian-police img {
  width: 18px; height: 20px; border: 0;
  vertical-align: -5px; margin-right: 4px;
}
/* 详情页页脚保持浅色（它下面还有 page-bottom-space） */
.detail-page .site-footer {
  background: none; color: #98a2b3;
  padding: 16px 16px 0; margin-top: 22px; max-width: 640px; margin-left: auto; margin-right: auto;
}
.detail-page .site-footer .foot-main { color: #98a2b3; }

/* ===== 照片放大查看（全屏） ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.94);
  display: flex; align-items: center; justify-content: center;
}
.lightbox.hidden { display: none; }
.lb-img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto; object-fit: contain;
  user-select: none; -webkit-user-drag: none;
}
.lb-top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
  color: #fff; font-size: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.55), rgba(0,0,0,0));
}
.lb-count { letter-spacing: 1px; opacity: .92; }
.lb-x {
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.18); color: #fff; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
}
.lb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 62px; border: 0; border-radius: 10px;
  background: rgba(255,255,255,.14); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-arrow.prev { left: 8px; }
.lb-arrow.next { right: 8px; }
/* 画廊照片可点放大 */
.gallery-slide { cursor: zoom-in; }

/* ===== 详情页 ===== */
.detail-head {
  background: var(--primary);
  color: #fff;
}
.detail-head-in { display: flex; align-items: center; gap: 10px; padding: 12px 0; }
.back-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.detail-head-in .t { font-weight: 600; font-size: 16px; }

.gallery { position: relative; background: #10131a; }
.gallery-slide { display: none; width: 100%; }
.gallery-slide.active { display: block; }
.gallery-slide img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  margin: 0 auto;
}
.gallery .g-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.22); color: #fff; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.g-arrow.prev { left: 8px; }
.g-arrow.next { right: 8px; }
.gallery .g-count {
  position: absolute; right: 12px; bottom: 10px; z-index: 5;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px;
  padding: 3px 9px; border-radius: 999px;
}
.g-dots { display: flex; justify-content: center; gap: 6px; padding: 8px 0; background: #10131a; }
.g-dots i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.g-dots i.on { background: #fff; width: 16px; border-radius: 3px; }

.panel {
  background: var(--card); margin: 12px 0;
  padding: 16px 18px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 560px) {
  .panel { padding: 14px 15px; margin: 10px 0; }
}
.d-price { color: var(--accent); font-size: 26px; font-weight: 800; }
.d-title { font-size: 17px; font-weight: 700; margin-top: 6px; line-height: 1.45; }
.param-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 10px;
  margin-top: 8px;
}
/* 手机上 3 列太挤（"年检至2027年9月"会换行），改 2 列 */
@media (max-width: 560px) {
  .param-grid { grid-template-columns: repeat(2, 1fr); gap: 13px 12px; }
}
.param-grid .k { font-size: 12px; color: var(--text2); }
.param-grid .v { font-weight: 600; font-size: 14px; margin-top: 2px; word-break: break-all; }
.param-grid div.narrow { grid-column: span 2; }

.d-section-t { font-size: 15px; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.d-section-t::before { content: ''; width: 4px; height: 15px; background: var(--accent); border-radius: 2px; }
.d-desc { font-size: 14px; color: #3d4453; white-space: pre-wrap; }
.d-shop-info { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.d-shop-info .row { display: flex; align-items: center; gap: 9px; }
.d-shop-info .ico {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: #f0f2f6; font-size: 16px;
}
.copy-wechat { color: #1aad19; font-weight: 600; margin-left: 4px; font-size: 13px; border-bottom: 1px dashed #1aad19; }

/* 无车辆时头图占位 */
.notice-call {
  background: #fff8ec; color: #9a6b13; font-size: 13px; padding: 8px 14px;
}

@media (min-width: 641px) {
  .contact-bar { left: auto; right: auto; width: 100%; }
}

/* ===== 看车地点地图卡 ===== */
.map-card {
  cursor: pointer; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--line, #e7ebf1);
  background: #fff; box-shadow: 0 2px 8px rgba(20, 30, 60, .05);
}
.map-card-frame {
  position: relative; width: 100%; height: 180px; background: #edf1f6;
}
.map-card-frame iframe,
.map-card-frame .map-card-map {
  width: 100%; height: 100%; border: 0; display: block; background: #edf1f6;
}
.map-card-frame iframe { pointer-events: none; }
.map-card-bar {
  display: flex; align-items: center; gap: 8px; padding: 11px 12px;
}
.map-card-pin { font-size: 17px; flex: none; }
.map-card-addr {
  flex: 1; min-width: 0; font-size: 13px; font-weight: 600; color: #31425e;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.map-card-go {
  flex: none; font-size: 12px; font-weight: 700; color: #fff;
  background: var(--accent, #d9261c); padding: 6px 13px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
}
.map-hint { font-size: 12px; color: var(--text2); margin-top: 8px; text-align: center; }

/* ===== 地图选择浮层 ===== */
.sheet-mask {
  position: fixed; inset: 0; background: rgba(10, 16, 30, .5); z-index: 90;
}
.nav-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 91;
  background: #fff; border-radius: 16px 16px 0 0;
  max-width: 640px; margin: 0 auto;
  padding: 16px 14px calc(12px + env(safe-area-inset-bottom));
  animation: sheet-up .2s ease;
}
@keyframes sheet-up {
  from { transform: translateY(25%); opacity: .5; }
  to { transform: none; opacity: 1; }
}
.nav-sheet-title {
  font-size: 14px; font-weight: 700; color: #31425e; text-align: center;
  margin: 2px 8px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 12px 8px; border-top: 1px solid #f1f3f6; text-align: left;
}
.nav-item .ico { font-size: 21px; width: 32px; text-align: center; flex: none; }
.nav-item b { font-size: 15px; color: #20293a; }
.nav-item small {
  margin-left: auto; font-size: 12px; color: #9aa2b1; flex: none;
}
.nav-item:active { background: #f4f6f9; }
.nav-item.nav-cancel {
  justify-content: center; margin-top: 8px; padding: 12px;
  color: #8a93a5; font-weight: 600; border: none; border-radius: 10px; background: #f2f4f8;
}
.nav-item.nav-cancel:active { background: #e6eaf1; }
