/* 车目 — 展示屏样式
   设计前提：远距离可读、深色底耐指纹、触摸目标够大、无鼠标指针。 */

:root {
  --brand: #ff552e;
  --brand-dim: #c33f1f;
  --bg: #0b0c0e;
  --fg: #f5f6f7;
  --muted: #8b9096;
  --panel: #14161a;
  --radius: 20px;
  /* 车辆轮播（朱砂）用的浅色变量；素材画面、详情浮层、楼层地图仍是深色 */
  --paper: #faf7f1;
  --car-ink: #17130f;
  --car-muted: #8a8075;
  --car-line: #e8e0d2;
  --car-accent: #b23a2e;
  --car-accent-ink: #8f2b22;
  --car-accent-soft: #f6e7e2;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

/* hidden 属性必须压过下面各处的 display 声明，否则「空态」会浮在内容上面 */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  overflow: hidden;
  cursor: none;                 /* 触摸屏没有指针 */
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC",
               "Source Han Sans SC", system-ui, sans-serif;
}

.stage { position: fixed; inset: 0; }

/* ---------- 单个画面 ---------- */

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .7s var(--ease);
  pointer-events: none;
  will-change: opacity;
}
.slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

/* 素材：满屏铺满 */
.slide-media { background: #000; }
.slide-media img,
.slide-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-media .caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 6vh 6vw;
  font-size: clamp(20px, 2.2vw, 60px);
  font-weight: 600;
  letter-spacing: .04em;
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
}

/* ---------- 车辆轮播：朱砂 · 白昼信息板 ----------
   照片在上（57vh）、暖白信息板在下，右下角是车辆官网二维码。
   只有这一个画面是浅色底：素材画面、详情浮层、楼层地图仍保持深色。
   设计稿：.scratch/design/previews/d-red-vermilion.html（同版式） */

.slide-car {
  display: block;
  background: var(--paper);
  color: var(--car-ink);
}

/* 照片：整屏铺底（信息板是半透明毛玻璃，压在照片下缘，车图会透上来） */
.car-pic {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e9e3d9;
}
.car-pic img {
  display: block;
  width: 102%;
  margin-left: -1%;
  height: 108%;
  object-fit: cover;
  object-position: 50% 100%;
}
/* 顶部一层很淡的暖白：角标压在照片任何位置都读得清 */
.car-pic::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(250, 247, 241, .22) 0%, rgba(250, 247, 241, 0) 24%);
}

.car-top {
  position: absolute;
  left: 4.6vw;
  right: 4.6vw;
  top: 3.6vh;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.car-lockup {
  display: flex;
  align-items: center;
  gap: .7vw;
  padding: 1.1vh 1.2vw;
  border-radius: 999px;
  background: rgba(250, 247, 241, .92);
  border: 1px solid rgba(23, 19, 15, .06);
  box-shadow: 0 .6vh 2vh rgba(70, 50, 30, .1);
  font-size: clamp(11px, .84vw, 22px);
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--car-ink);
}
.car-lockup .dot {
  width: max(7px, .52vw);
  height: max(7px, .52vw);
  border-radius: 50%;
  background: var(--car-accent);
}
.car-folio {
  padding: 1.1vh 1.2vw;
  border-radius: 999px;
  background: rgba(250, 247, 241, .92);
  border: 1px solid rgba(23, 19, 15, .06);
  box-shadow: 0 .6vh 2vh rgba(70, 50, 30, .1);
  font-size: clamp(11px, .8vw, 20px);
  font-weight: 700;
  letter-spacing: .24em;
  color: #3f3831;
  font-variant-numeric: tabular-nums;
}

/* 信息板：半透明毛玻璃，压在照片下缘；车图从下面透上来一点 */
.car-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 24vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0;
  padding: 1.5vh 4.6vw 1.2vh;
  background:
    radial-gradient(58% 120% at 50% 42%, rgba(178, 58, 46, .07), rgba(178, 58, 46, 0) 70%),
    linear-gradient(
      180deg,
      rgba(253, 246, 239, .30) 0%,
      rgba(250, 238, 230, .40) 34%,
      rgba(249, 235, 227, .56) 68%,
      rgba(248, 232, 223, .76) 100%
    );
  -webkit-backdrop-filter: blur(42px) saturate(1.2);
  backdrop-filter: blur(42px) saturate(1.2);
  border-top: 1px solid rgba(178, 58, 46, .24);
  box-shadow: 0 -2.4vh 5vh rgba(70, 50, 30, .12);
}
.car-row { display: flex; justify-content: space-between; gap: 2vw; }
.car-row-1 { align-items: center; }

/* 第一行左侧：小标题 + 品牌 + 展位并排；下面一行小字放年款/上牌/里程 */
.car-id { display: flex; flex-direction: column; gap: .5vh; min-width: 0; }
.car-idline { display: flex; align-items: center; gap: 1.1vw; min-width: 0; }
.car-kicker {
  display: flex;
  align-items: center;
  gap: .6vw;
  font-size: clamp(10px, .72vw, 18px);
  font-weight: 800;
  letter-spacing: .4em;
  color: var(--car-accent-ink);
  white-space: nowrap;
}
.car-kicker::before {
  content: "";
  width: 1.4vw;
  height: 1px;
  background: var(--car-accent);
}
.car-brand {
  font-size: clamp(34px, 3.9vw, 110px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.045em;
  color: var(--car-ink);
  white-space: nowrap;
}

/* 品牌下面那行小字：年款配置 · 上牌年份 · 里程 */
.car-sub {
  display: flex;
  align-items: center;
  gap: .9vw;
  font-size: clamp(12px, 1.02vw, 27px);
  color: #3a322a;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
}
.car-sub .car-model {
  font-size: inherit;
  font-weight: 500;
  color: #1d1914;
  letter-spacing: .01em;
}
.car-sub b { color: var(--car-ink); font-weight: 800; }
.car-sub i {
  flex: none;
  width: max(5px, .26vw);
  height: max(5px, .26vw);
  border-radius: 50%;
  background: var(--car-accent);
  opacity: .55;
}

/* 价格：衬线数字，朱砂色；「万」和「挂牌价」都跟着它 */
.car-price { display: flex; align-items: baseline; gap: .6vw; flex: none; }
.car-price .cur,
.car-price .num,
.car-price .unit {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", "Songti SC", Georgia, serif;
  color: var(--car-accent);
}
.car-price .cur { font-size: clamp(16px, 1.45vw, 42px); font-weight: 500; }
.car-price .num {
  font-size: clamp(40px, 4.8vw, 136px);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.car-price .unit { font-size: clamp(16px, 1.65vw, 46px); font-weight: 500; }
.car-tag {
  align-self: center;
  margin-left: .7vw;
  padding: .5vh .9vw;
  border-radius: 999px;
  background: var(--car-accent-soft);
  border: 1px solid rgba(178, 58, 46, .2);
  color: var(--car-accent-ink);
  font-size: clamp(10px, .72vw, 18px);
  font-weight: 800;
  letter-spacing: .18em;
  white-space: nowrap;
}

/* 展位：第一行紧挨品牌；白底 + 左侧朱砂竖条（这里不可点，点开地图的入口在详情页） */
.car-where {
  display: flex;
  align-items: center;
  gap: .7vw;
  padding: .45vh 1vw .45vh .8vw;
  background: #fffdfa;
  border: 1px solid var(--car-line);
  border-left: 3px solid var(--car-accent);
  border-radius: .6vw;
  box-shadow: 0 .6vh 1.6vh rgba(70, 50, 30, .08);
}
.car-where .pin {
  width: max(28px, 1.85vw);
  height: max(28px, 1.85vw);
  border-radius: 50%;
  background: var(--car-accent);
  color: #fffaf6;
  display: grid;
  place-items: center;
  flex: none;
}
.car-where .txt { display: grid; gap: 0; }
.car-where .label {
  font-size: clamp(8px, .55vw, 14px);
  letter-spacing: .26em;
  color: var(--car-accent-ink);
  font-weight: 800;
}
.car-where .value {
  font-size: clamp(16px, 1.25vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--car-ink);
  white-space: nowrap;
}
.car-where .venue {
  font-size: clamp(10px, .7vw, 18px);
  color: var(--car-muted);
}
.car-where .sub {
  margin-left: .5em;
  font-size: .72em;
  font-weight: 600;
  color: var(--car-muted);
  white-space: nowrap;
}

/* 第二行：只放车辆官网二维码 */
.car-qr-row { display: flex; align-items: center; justify-content: center; }
.car-qr {
  display: flex;
  padding: .6vh;
  background: #fffdfa;
  border: 1px solid var(--car-line);
  border-radius: .6vw;
  box-shadow: 0 .7vh 2vh rgba(120, 50, 30, .1);
}
.car-qr-code { width: 5.0vw; height: 5.0vw; min-width: 92px; min-height: 92px; }
.car-qr-code svg { display: block; width: 100%; height: 100%; }

/* 轻触提示贴右下角，不再单独占一行 */
.car-tap {
  position: absolute;
  right: 4.6vw;
  bottom: 1.2vh;
  font-size: clamp(11px, .85vw, 22px);
  letter-spacing: .08em;
  color: var(--car-muted);
  font-weight: 500;
  white-space: nowrap;
}
.car-tap .go { color: var(--car-accent); font-weight: 800; margin-left: .2em; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: clamp(13px, 1.02vw, 26px);
  font-weight: 800;
  letter-spacing: .44em;
}

/* ---------- 详情浮层 ---------- */

.detail {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: block;
  /* 必须不透明：半透明叠 blur 会把底下的轮播文字糊成可见的"雾" */
  background: #06070a;
  animation: rise .35s var(--ease);
}
.detail[hidden] { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(2.2%); }
  to   { opacity: 1; transform: none; }
}

/* 详情页与轮播同一种版式：照片铺满，信息压在底部渐层上 */
.detail .d-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
}
.detail .d-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail .d-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 顶部多压一层：详情页的「车辆详情 / 轻触任意处关闭」两个标签在亮墙或二维码上会看不见 */
  background: linear-gradient(
    180deg,
    rgba(6, 7, 9, .58) 0%,
    rgba(6, 7, 9, .16) 17%,
    rgba(6, 7, 9, .18) 42%,
    rgba(6, 7, 9, .78) 72%,
    rgba(6, 7, 9, .97) 100%
  );
}

.detail .d-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(12px, 1.7vh, 30px);
  padding: 0 6.5vw 6vh;
}

.detail .d-brand {
  font-size: clamp(54px, 6.2vw, 168px);
  text-shadow: 0 8px 46px rgba(0, 0, 0, .6);
  font-weight: 800;
  line-height: 1.02;
}
.detail .d-price {
  font-size: clamp(46px, 5vw, 132px);
  text-shadow: 0 8px 46px rgba(0, 0, 0, .55);
  font-weight: 800;
  color: var(--brand);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail .d-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
  font-size: clamp(17px, 1.55vw, 40px);
  color: #e7eaec;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .7);
}
.detail .d-specs .row {
  display: flex;
  gap: .55em;
  border: 0;
  padding: 0 1.7em 0 0;
}
.detail .d-specs .row + .row {
  border-left: 1px solid rgba(255, 255, 255, .22);
  padding-left: 1.7em;
}
.detail .d-specs .k {
  color: #a7aeb6;
  min-width: 0;
}

/* 详情页顶部状态条：明确"已经打开了详情"，而不是停留在轮播 */
.detail .d-head {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2vw;
  padding: 3.6vh 6.5vw;
  font-size: clamp(13px, 1.02vw, 26px);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.detail .d-close {
  color: rgba(255, 255, 255, .6);
  letter-spacing: .16em;
}

/* 展位徽标：这是详情页最重要的一块信息 */
.where {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 30px);
  margin-top: clamp(6px, 1vh, 16px);
  padding: clamp(18px, 2.4vh, 34px) clamp(22px, 2.2vw, 56px);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(30, 14, 9, .72), rgba(20, 10, 7, .58));
  border: 1px solid rgba(255, 85, 46, .42);
  backdrop-filter: blur(14px);
  align-self: flex-start;
}
.where .icon {
  flex: none;
  width: clamp(46px, 4.4vw, 118px);
  height: clamp(46px, 4.4vw, 118px);
  border-radius: 50%;
  border: 3px solid var(--brand);
  display: grid;
  place-items: center;
  font-size: clamp(22px, 2.2vw, 56px);
  color: var(--brand);
  font-weight: 800;
}
.where .text { display: grid; gap: .25em; }
.where .label {
  color: var(--brand);
  font-size: clamp(13px, 1.05vw, 28px);
  letter-spacing: .16em;
  font-weight: 700;
}
.where .value {
  font-size: clamp(30px, 3.2vw, 86px);
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.where .venue {
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 30px);
}

/* ---------- 角标与提示 ---------- */

.badge {
  position: fixed;
  top: 2.2vh;
  right: 2vw;
  z-index: 60;
  padding: .5em 1.1em;
  border-radius: 999px;
  background: rgba(255, 85, 46, .16);
  color: var(--brand);
  border: 1px solid rgba(255, 85, 46, .4);
  font-size: clamp(13px, 1vw, 18px);
  letter-spacing: .08em;
}

/* ---------- 左右翻页 ---------- */

/* 容器只负责定位，本身不吃触摸，避免挡住整块的「点车看详情」 */
.nav {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(76px, 6.2vw, 156px);
  height: clamp(76px, 6.2vw, 156px);
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .16);
  /* 深色信息面板和车图白底都要压得住：底色比两边的背景都亮一档，再加描边与投影 */
  background: rgba(38, 42, 48, .92);
  color: #ffffff;
  pointer-events: auto;
  opacity: .95;
  border-color: rgba(255, 255, 255, .3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
  transition: opacity .22s ease, background .18s ease, transform .12s ease;
}

.nav-btn.prev { left: clamp(14px, 1.4vw, 40px); }
.nav-btn.next { right: clamp(14px, 1.4vw, 40px); }

.nav-btn svg { width: 50%; height: 50%; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }

/* 车辆画面是暖白底：按钮翻成浅色，免得在照片和纸面上变成两块黑 */
body.on-car .nav-btn {
  border-color: rgba(23, 19, 15, .14);
  background: rgba(250, 247, 241, .94);
  color: var(--car-accent-ink);
  box-shadow: 0 10px 30px rgba(70, 50, 30, .18), inset 0 0 0 1px rgba(255, 255, 255, .5);
}
body.on-car .nav-btn:active {
  background: rgba(178, 58, 46, .18);
  border-color: rgba(178, 58, 46, .55);
}

/* 触摸屏没有 hover，靠按下反馈告诉用户「点到了」 */
.nav-btn:active {
  transform: translateY(-50%) scale(.92);
  background: rgba(255, 85, 46, .38);
  border-color: rgba(255, 85, 46, .7);
  opacity: 1;
}

.empty {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 1.2vh;
  text-align: center;
}
.empty-title { font-size: clamp(28px, 3vw, 80px); font-weight: 700; }
.empty-sub {
  color: var(--muted);
  font-size: clamp(15px, 1.3vw, 35px);
  line-height: 1.7;
}
.empty code {
  padding: .12em .5em;
  border-radius: 6px;
  background: rgba(255, 85, 46, .14);
  color: var(--brand);
  font-family: inherit;
  font-weight: 700;
}

/* 竖屏：照片仍在上，信息板在下；行内元素按空间换行，二维码缩一档 */
@media (orientation: portrait) {
  .car-sheet { height: 30vh; padding: 2.2vh 5vw 2vh; }
  /* 竖屏：照片按高度铺满，别用横屏那套"上移 100%"的取景（会放得过大） */
  .car-pic img { height: 100%; width: 102%; margin-left: -1%; object-position: 50% 50%; }
  .car-lockup { font-size: clamp(12px, 1.5vw, 22px); }
  .car-folio { font-size: clamp(11px, 1.3vw, 20px); }
  .car-kicker { font-size: clamp(11px, 1.3vw, 20px); }
  .car-idline { flex-wrap: wrap; gap: 1.6vh 3vw; }
  .car-row-1 { flex-direction: column; align-items: stretch; gap: 1.2vh; }
  .car-price { align-self: flex-end; }
  .car-brand { font-size: clamp(44px, 9vw, 130px); }
  .car-price .cur { font-size: clamp(16px, 1.9vw, 40px); }
  .car-price .num { font-size: clamp(40px, 8vw, 120px); }
  .car-price .unit { font-size: clamp(16px, 2.2vw, 44px); }
  .car-sub { font-size: clamp(14px, 1.9vw, 28px); white-space: normal; }
  .car-where .value { font-size: clamp(20px, 2.6vw, 44px); }
  .car-qr-code { width: 20vw; height: 20vw; min-width: 150px; min-height: 150px; }
}

/* ---------- 楼层地图（指引到车位）---------- */
/* 楼层图近方形 + 屏幕 16:9，按高度缩放后左右必然留白；
   所以把左边留给图（吃满整个高度），右边那条原本浪费的黑边做信息栏 */
.map {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 24vw;
  grid-template-rows: 1fr;
  background: #06070a;
}

.map-head {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.4vh;
  padding: 0 3vw 0 2vw;
  border-left: 1px solid rgba(255, 255, 255, .08);
}
/* 信息栏：楼层一行小的，号位一行大的 —— 用户找的是号位，楼层只是上下文 */
.map-floor {
  font-size: clamp(20px, 1.5vw, 44px);
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .12em;
  line-height: 1;
}
.map-spot {
  font-size: clamp(32px, 2.9vw, 84px);
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.08;
}
.map-sub {
  color: var(--muted);
  font-size: clamp(13px, 1.1vw, 28px);
}
/* 跨层提示：访客不在车的楼层时，醒目地告诉他往哪走 */
.map-hint {
  margin-top: .6vh;
  color: var(--brand);
  font-size: clamp(14px, 1.15vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
}

.map-close {
  margin-top: 4vh;
  padding-top: 2.2vh;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .5);
  font-size: clamp(13px, 1.02vw, 26px);
  letter-spacing: .16em;
}

.map-stage {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.5vh 1vw 3.5vh 3vw;
}

.map-msg {
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 36px);
}

.map-canvas {
  position: relative;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .6);
  border-radius: 10px;
}
.map-img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 10px;
}
.map-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.map-label {
  position: absolute;
  transform: translate(-50%, -140%);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: clamp(14px, 1.15vw, 32px);
  padding: .16em .55em;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .55);
}

/* 展示机标记的标签：默认在图标的右上，带底色保证压在任何线条上都读得清 */
.map-device-label {
  position: absolute;
  /* 放在图标下方：图标本身已贴着楼层右下角，标签压在上面会盖到通道 */
  transform: translate(-50%, 190%);
  background: rgba(10, 12, 16, .88);
  border: 1px solid rgba(255, 255, 255, .2);
  color: #e8eaec;
  padding: .18em .55em;
  border-radius: 6px;
  font-size: clamp(12px, .95vw, 24px);
  letter-spacing: .06em;
  white-space: nowrap;
}

.map-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2vh;
  text-align: center;
}
.map-fallback .big {
  font-size: clamp(34px, 3.6vw, 104px);
  font-weight: 800;
  color: #fff;
}
.map-fallback .small {
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 30px);
}

@media (orientation: portrait) {
  .map {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .map-head {
    grid-column: 1;
    grid-row: 1;
    flex-direction: row;
    align-items: baseline;
    gap: 1.4vw;
    padding: 3.2vh 5vw 0;
    border-left: 0;
  }
  /* 跨层提示：访客不在车的楼层时，醒目地告诉他往哪走 */
.map-hint {
  margin-top: .6vh;
  color: var(--brand);
  font-size: clamp(14px, 1.15vw, 30px);
  font-weight: 700;
  letter-spacing: .02em;
}

.map-close {
    margin: 0 0 0 auto;
    padding-top: 0;
    border-top: 0;
  }
  .map-stage {
    grid-column: 1;
    grid-row: 2;
    padding: 2vh 4vw 4vh;
  }
}

/* 展位徽标可点击时的样子 */
.where.is-action {
  cursor: pointer;
  border-color: rgba(255, 85, 46, .55);
  background: linear-gradient(135deg, rgba(30, 14, 9, .8), rgba(20, 10, 7, .66));
  text-align: left;
  font: inherit;
  color: inherit;
  transition: border-color .2s var(--ease);
}
.where.is-action:active { border-color: rgba(255, 85, 46, .9); }
.where .go {
  margin-left: auto;
  align-self: center;
  color: var(--brand);
  font-size: clamp(13px, 1.05vw, 26px);
  font-weight: 700;
  letter-spacing: .08em;
  white-space: nowrap;
}

/* ---------- 目标车位的脉冲 ----------
   只用 transform + opacity：面积很小、不重建大图纹理，
   和车图那种"缩放导致抖动"是两回事。
   地图层是点开才存在的，所以动画也只在那一刻跑。 */
.map-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-pulse 2.6s cubic-bezier(.2, .6, .4, 1) infinite;
}

@keyframes map-pulse {
  0%   { transform: scale(1);   opacity: .85; }
  75%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.map-target {
  animation: map-target 2.6s ease-in-out infinite;
}

@keyframes map-target {
  0%, 100% { stroke-opacity: 1;   stroke-width: 3; }
  50%      { stroke-opacity: .35; stroke-width: 2; }
}

/* 展示机的扩散脉冲：与目标车位同一节奏（2.6s），幅度略小，避免抢过目标 */
.map-device-pulse {
  transform-box: fill-box;
  transform-origin: center;
  animation: map-device-pulse 2.6s cubic-bezier(.2, .6, .4, 1) infinite;
}

@keyframes map-device-pulse {
  0%   { transform: scale(1);   opacity: .9; }
  75%  { transform: scale(2.2); opacity: 0; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* 系统开了"减少动态效果"就停掉脉冲（只影响这层，不影响播放） */
@media (prefers-reduced-motion: reduce) {
  .map-pulse, .map-target, .map-device-pulse { animation: none; }
}
