/* ============================================================
 * 彩云之南 · 云南省劳务品牌地图
 * 美学方向：苍山夜墨 × 扎染靛蓝 × 鎏金铜光 × 宣纸暖白
 * ============================================================ */

:root {
  --night: #07161d;
  --ink: #0b2128;
  --pine: #0e3433;
  --jade-0: #0a2729;
  --jade: #155e58;
  --jade-2: #20857a;
  --teal: #0e7c7b;
  --gold: #d9b05f;
  --gold-2: #eccf86;
  --gold-deep: #a97c33;
  --cream: #f3e7cf;
  --cloud: #f7f0df;
  --cinnabar: #c2553d;
  --mist: rgba(243, 231, 207, .68);
  --line: rgba(217, 176, 95, .35);

  --f-brush: 'Ma Shan Zheng', 'STXingkai', 'STKaiti', 'KaiTi', cursive;
  --f-display: 'ZCOOL XiaoWei', 'STKaiti', 'KaiTi', serif;
  --f-serif: 'Noto Serif SC', 'STSong', serif;
  --f-body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;

  --ease-out: cubic-bezier(.19, 1, .22, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
  --z-spirit: 90;
  --z-chat: 95;
  --z-overlay: 60;
  --z-splash: 100;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--night);
  color: var(--cream);
  font-family: var(--f-body);
  font-weight: 300;
  letter-spacing: .04em;
}
body {
  background:
    radial-gradient(1200px 800px at 78% -10%, rgba(32, 133, 122, .28), transparent 60%),
    radial-gradient(1000px 900px at 8% 108%, rgba(21, 94, 88, .34), transparent 62%),
    radial-gradient(700px 500px at 30% 30%, rgba(217, 176, 95, .07), transparent 70%),
    linear-gradient(165deg, #0a1e25 0%, #07161d 55%, #061218 100%);
}
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
::selection { background: rgba(217, 176, 95, .35); }

/* 细滚动条 */
.scroll-thin::-webkit-scrollbar { width: 4px; height: 4px; }
.scroll-thin::-webkit-scrollbar-thumb { background: rgba(217, 176, 95, .4); border-radius: 4px; }

/* ---------- 全局氛围 ---------- */
#fx { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 80; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 7s steps(8) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); } 75% { transform: translate(-3%,-3%); }
}

/* ============================================================
 * 开屏
 * ============================================================ */
.splash {
  position: fixed; inset: 0; z-index: var(--z-splash);
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(900px 700px at 50% 42%, rgba(32, 133, 122, .22), transparent 64%),
    linear-gradient(180deg, #0a2027 0%, #07151b 100%);
  transition: opacity .9s var(--ease-out), visibility .9s;
}
.splash.leaving { opacity: 0; visibility: hidden; }
.splash.leaving .splash-svg { transform: scale(1.35) translateY(-8%); opacity: 0; }
.splash.leaving .splash-text { transform: translateY(-40px); opacity: 0; }

.splash-orbits span {
  position: absolute; border: 1px solid var(--line); border-radius: 50%;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  animation: orbitSpin 26s linear infinite;
}
.splash-orbits span:nth-child(1) { width: 56vmin; height: 56vmin; border-style: dashed; opacity: .5; }
.splash-orbits span:nth-child(2) { width: 74vmin; height: 74vmin; opacity: .25; animation-duration: 40s; animation-direction: reverse; }
.splash-orbits span:nth-child(3) { width: 92vmin; height: 92vmin; opacity: .12; animation-duration: 60s; }
@keyframes orbitSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.splash-svg {
  position: absolute; width: min(74vmin, 620px); height: auto;
  transition: transform 1.1s var(--ease-out), opacity 1.1s var(--ease-out);
}
.splash-outline {
  fill: rgba(32, 133, 122, .16);
  stroke: var(--gold-2);
  stroke-width: 2.2;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, .55));
}
.splash-dot { fill: var(--gold-2); opacity: 0; }
.splash-dot.pop { animation: dotPop .5s var(--ease-out) forwards; }
@keyframes dotPop {
  0% { opacity: 0; transform: scale(0); }
  70% { opacity: 1; transform: scale(1.8); }
  100% { opacity: .9; transform: scale(1); }
}
.splash-text {
  position: relative; z-index: 2; text-align: center;
  margin-top: 46vmin;
  transition: transform .9s var(--ease-out), opacity .9s;
}
.splash-eyebrow {
  font-size: 13px; letter-spacing: .9em; color: var(--gold); opacity: 0;
  text-indent: .9em;
}
.splash-eyebrow span { display: inline-block; width: 34px; height: 1px; background: var(--line); vertical-align: middle; margin: 0 14px; }
.splash-title {
  font-family: var(--f-brush);
  font-size: clamp(52px, 9vmin, 104px);
  font-weight: 400;
  color: var(--cream);
  margin: 14px 0 6px;
  text-shadow: 0 0 40px rgba(233, 196, 106, .35);
  opacity: 0; letter-spacing: .12em;
}
.splash-sub { font-size: clamp(13px, 1.8vmin, 17px); letter-spacing: .55em; text-indent: .55em; color: var(--mist); opacity: 0; }
.splash.phase-text .splash-eyebrow { animation: riseIn .9s var(--ease-out) .1s forwards; }
.splash.phase-text .splash-title { animation: riseIn 1s var(--ease-out) .28s forwards; }
.splash.phase-text .splash-sub { animation: riseIn .9s var(--ease-out) .5s forwards; }
@keyframes riseIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.splash-enter {
  margin-top: 34px; display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-2); letter-spacing: .35em; text-indent: .35em; font-size: 15px;
  opacity: 0; transform: translateY(16px);
  background: rgba(217, 176, 95, .08);
  transition: background .3s, box-shadow .3s;
}
.splash.phase-text .splash-enter { animation: riseIn .8s var(--ease-out) .72s forwards; }
.splash-enter:hover { background: rgba(217, 176, 95, .2); box-shadow: 0 0 30px rgba(217, 176, 95, .25); }
.splash-enter svg { animation: arrowSlide 1.6s var(--ease-soft) infinite; }
@keyframes arrowSlide { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(4px); } }

.splash-skip {
  position: absolute; right: 26px; bottom: 22px; z-index: 3;
  font-size: 13px; color: var(--mist); letter-spacing: .2em; opacity: .6;
  transition: opacity .3s;
}
.splash-skip:hover { opacity: 1; color: var(--gold); }

/* ============================================================
 * 主轨道
 * ============================================================ */
.track {
  position: fixed; inset: 0; z-index: 2;
  display: flex; flex-direction: row;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.page {
  position: relative;
  flex: 0 0 100vw; width: 100vw; height: 100dvh;
  scroll-snap-align: start; overflow: hidden;
}

/* ---------- 揭示动画（按页激活） ---------- */
.reveal, .it-line, .stat, .city-list, .map-frame, .map-head {
  opacity: 0; transform: translateY(28px);
}
.page.is-active .reveal,
.page.is-active .map-head,
.page.is-active .map-frame,
.page.is-active .city-list { animation: riseIn .95s var(--ease-out) var(--d, 0s) forwards; }
.page.is-active .it-line { animation: riseIn 1s var(--ease-out) var(--d, 0s) forwards; }
.page.is-active .stat { animation: riseIn .9s var(--ease-out) var(--d, 0s) forwards; }

/* ============================================================
 * 第一页 · 序章
 * ============================================================ */
.page-intro { padding: clamp(24px, 4vmin, 48px); display: flex; flex-direction: column; }

.sky-layer { position: absolute; inset: 0; pointer-events: none; }
.sky-1 {
  background: radial-gradient(420px 420px at 72% 26%, rgba(233, 196, 106, .14), transparent 70%);
  animation: breathe 9s ease-in-out infinite;
}
.sky-2 {
  background: radial-gradient(520px 360px at 18% 70%, rgba(32, 133, 122, .18), transparent 72%);
  animation: breathe 12s ease-in-out infinite reverse;
}
@keyframes breathe { 0%,100% { opacity: .7; } 50% { opacity: 1; } }

.intro-top {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand-mark { display: flex; align-items: center; gap: 12px; color: var(--gold-2); }
.brand-mark span { font-family: var(--f-display); font-size: 19px; letter-spacing: .25em; display: flex; flex-direction: column; }
.brand-mark small { font-family: var(--f-body); font-size: 9px; letter-spacing: .3em; color: var(--mist); margin-top: 2px; }
.intro-top-note { font-size: 11px; letter-spacing: .5em; color: var(--mist); }

.intro-body {
  position: relative; z-index: 2;
  flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center; gap: clamp(20px, 4vmin, 60px);
  max-width: 1440px; width: 100%; margin: 0 auto;
}
.intro-kicker { font-size: clamp(12px, 1.5vmin, 15px); color: var(--gold); letter-spacing: .3em; margin-bottom: 22px; }
.intro-title {
  font-family: var(--f-display);
  font-size: clamp(38px, 6.2vmin, 78px);
  line-height: 1.24; font-weight: 400;
  color: var(--cream);
}
.it-line { display: block; white-space: nowrap; }
.it-brush { font-family: var(--f-brush); font-size: 1.22em; color: #fff8e8; text-shadow: 0 0 36px rgba(233, 196, 106, .3); }
.it-gold { color: var(--gold-2); position: relative; }
.it-gold::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: .14em;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: .55; border-radius: 2px;
}
.intro-desc {
  margin-top: 28px; max-width: 34em;
  font-size: clamp(14px, 1.6vmin, 17px); line-height: 2.1; color: rgba(243, 231, 207, .82);
}
.intro-desc strong { color: var(--gold-2); font-weight: 500; }
.intro-stats { display: flex; gap: clamp(20px, 4vmin, 56px); margin-top: 42px; }
.stat { display: flex; flex-direction: column; }
.stat b {
  font-family: var(--f-serif); font-weight: 900;
  font-size: clamp(30px, 4.4vmin, 52px); color: var(--gold-2);
  line-height: 1;
}
.stat i { font-style: normal; font-size: 12px; letter-spacing: .3em; color: var(--mist); margin-top: 10px; }

/* 右侧孔雀艺术装置 */
.intro-art { position: relative; height: min(58vh, 520px); }
.art-sun {
  position: absolute; left: 50%; top: 42%; width: 46vmin; height: 46vmin; max-width: 380px; max-height: 380px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 196, 106, .22) 0%, rgba(233, 196, 106, .06) 55%, transparent 72%);
  animation: breathe 8s ease-in-out infinite;
}
.art-clouds { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cloud { animation: cloudDrift 14s ease-in-out infinite; }
.cloud-b { animation-duration: 18s; animation-delay: -6s; }
.cloud-c { animation-duration: 22s; animation-delay: -3s; }
@keyframes cloudDrift { 0%,100% { transform: translateX(-14px); } 50% { transform: translateX(18px); } }
.art-ring {
  position: absolute; left: 50%; top: 42%; border-radius: 50%;
  border: 1px dashed rgba(217, 176, 95, .28);
  transform: translate(-50%, -50%);
  animation: orbitSpin 30s linear infinite;
}
.art-ring-1 { width: 54vmin; height: 54vmin; max-width: 440px; max-height: 440px; }
.art-ring-2 { width: 66vmin; height: 66vmin; max-width: 540px; max-height: 540px; opacity: .5; animation-duration: 48s; animation-direction: reverse; }
.art-peacock {
  position: absolute; left: 50%; bottom: 0; width: 22vmin; max-width: 190px; transform: translateX(-50%);
  filter: drop-shadow(0 12px 30px rgba(0, 0, 0, .5));
  animation: peacockBob 5s ease-in-out infinite;
}
@keyframes peacockBob { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-12px); } }

/* 山影 */
.intro-mountains {
  position: absolute; left: 0; right: 0; bottom: -2px; z-index: 1;
  pointer-events: none; line-height: 0;
}
.intro-mountains svg { width: 100%; height: clamp(160px, 26vh, 300px); }

/* 滚动提示 */
.scroll-hint {
  position: absolute; z-index: 3; right: clamp(30px, 5vmin, 70px); bottom: clamp(30px, 5vh, 60px);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.sh-text { font-size: 11px; letter-spacing: .35em; color: var(--mist); writing-mode: vertical-rl; text-indent: 0; }
.sh-v { display: none; }
.sh-track { width: 1px; height: 64px; background: rgba(243, 231, 207, .18); position: relative; overflow: hidden; }
.sh-dot {
  position: absolute; left: 0; top: -8px; width: 1px; height: 22px;
  background: linear-gradient(var(--gold-2), transparent);
  animation: hintRun 2.2s var(--ease-soft) infinite;
}
@keyframes hintRun { 0% { top: -30%; } 100% { top: 110%; } }

/* ============================================================
 * 第二页 · 地图
 * ============================================================ */
.page-map {
  padding: clamp(20px, 3.6vmin, 42px) clamp(24px, 4vmin, 56px);
  display: flex; flex-direction: column;
}
.map-head {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.map-kicker { font-size: 11px; letter-spacing: .45em; color: var(--gold); margin-bottom: 8px; }
.map-title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(28px, 4vmin, 46px); letter-spacing: .12em; color: var(--cream);
  display: flex; align-items: center; gap: 16px;
}
.map-title-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: .95em; height: .95em; font-family: var(--f-brush); font-size: .62em;
  background: var(--cinnabar); color: #fff4e2; border-radius: 8px;
  transform: rotate(8deg); box-shadow: 0 4px 14px rgba(194, 85, 61, .5);
}
.map-hint { font-size: clamp(12px, 1.4vmin, 14px); color: var(--mist); display: flex; align-items: center; gap: 8px; }
.map-hint::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 10px var(--gold-2); animation: blink 2s infinite; }
@keyframes blink { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

.map-stage { position: relative; z-index: 2; flex: 1; min-height: 0; display: flex; gap: clamp(18px, 3vmin, 42px); align-items: stretch; }

.map-frame {
  position: relative; flex: 1.35 1 0; min-width: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217, 176, 95, .18);
  border-radius: 18px;
  background:
    radial-gradient(80% 80% at 50% 45%, rgba(32, 133, 122, .12), transparent 70%),
    rgba(7, 22, 29, .42);
  box-shadow: inset 0 0 80px rgba(10, 39, 41, .6), 0 20px 60px rgba(0, 0, 0, .35);
  overflow: hidden;
}
.map-frame::before {
  content: ''; position: absolute; inset: 12px; border: 1px solid rgba(217, 176, 95, .14); border-radius: 12px;
  pointer-events: none;
}
.frame-corner { position: absolute; width: 26px; height: 26px; border: 2px solid var(--gold); opacity: .8; z-index: 2; }
.fc-tl { left: 20px; top: 20px; border-right: none; border-bottom: none; border-radius: 6px 0 0 0; }
.fc-tr { right: 20px; top: 20px; border-left: none; border-bottom: none; border-radius: 0 6px 0 0; }
.fc-bl { left: 20px; bottom: 20px; border-right: none; border-top: none; border-radius: 0 0 0 6px; }
.fc-br { right: 20px; bottom: 20px; border-left: none; border-top: none; border-radius: 0 0 6px 0; }

.yn-map { width: 100%; height: 100%; padding: 34px; }

.region { transform-box: fill-box; transform-origin: center; cursor: pointer; }
.region path {
  fill: rgba(32, 133, 122, .30);
  stroke: rgba(233, 196, 106, .45);
  stroke-width: 1;
  stroke-linejoin: round;
  transition: fill .35s, stroke .35s, filter .35s;
}
.region:hover path,
.region.hover path {
  fill: color-mix(in srgb, var(--a, #d9b05f) 55%, transparent);
  stroke: var(--gold-2);
  stroke-width: 1.6;
  filter: drop-shadow(0 0 10px rgba(233, 196, 106, .55));
}
.region { transition: transform .35s var(--ease-out); }
.region:hover, .region.hover { transform: scale(1.028); }
.region.lit path { fill: color-mix(in srgb, var(--a, #20857a) 42%, rgba(32, 133, 122, .2)); }
.region.is-entering path { animation: regionIn .8s var(--ease-out) backwards; animation-delay: var(--d); }
@keyframes regionIn {
  from { opacity: 0; transform: translateY(18px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.region-label {
  pointer-events: none; text-anchor: middle;
  font-family: var(--f-display);
  fill: var(--cloud);
  font-size: 17px;
  letter-spacing: .08em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
  opacity: 0;
}
.region-label.is-entering { animation: fadeIn .8s ease var(--d) forwards; }
.region-label .autonym { display: none; }
@keyframes fadeIn { to { opacity: 1; } }
.region:hover .region-label, .region.hover .region-label { fill: #fff6dd; font-weight: 700; }
.region-dot { fill: var(--gold-2); opacity: 0; pointer-events: none; }
.region-dot.is-entering { animation: dotPop .55s var(--ease-out) var(--d) forwards; }

.map-compass {
  position: absolute; right: 26px; bottom: 24px; width: 44px; color: rgba(217, 176, 95, .7);
  animation: compassFloat 7s ease-in-out infinite;
}
@keyframes compassFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* 右侧州市目录 */
.map-side {
  flex: 0 0 clamp(240px, 24vw, 330px);
  display: flex; flex-direction: column; min-height: 0;
  border: 1px solid rgba(217, 176, 95, .18); border-radius: 18px;
  background: rgba(7, 22, 29, .5);
  backdrop-filter: blur(6px);
  padding: 20px 16px 16px;
}
.side-title { font-size: 12px; letter-spacing: .5em; color: var(--gold); text-align: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.city-list { flex: 1; overflow-y: auto; padding: 8px 4px 8px 0; display: flex; flex-direction: column; gap: 4px; scrollbar-width: thin; }
.city-list::-webkit-scrollbar { width: 3px; }
.city-list::-webkit-scrollbar-thumb { background: rgba(217, 176, 95, .35); }
.city-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid transparent;
  transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
.city-item:hover, .city-item.hover { background: rgba(217, 176, 95, .1); border-color: rgba(217, 176, 95, .28); transform: translateX(4px); }
.city-idx {
  font-family: var(--f-serif); font-size: 11px; color: var(--gold); opacity: .75;
  width: 22px; flex: none;
}
.city-name { font-family: var(--f-display); font-size: 17px; letter-spacing: .12em; color: var(--cream); flex: 1; }
.city-motto { font-size: 11px; color: var(--mist); letter-spacing: .15em; }
.city-item .ci-arrow { opacity: 0; transform: translateX(-6px); color: var(--gold-2); transition: .3s; }
.city-item:hover .ci-arrow, .city-item.hover .ci-arrow { opacity: 1; transform: none; }
.city-item.lit .city-idx { color: var(--cinnabar); }
.side-foot {
  padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--mist); letter-spacing: .12em; text-align: center;
}
.side-foot b { color: var(--gold-2); font-weight: 500; }
.dot-active { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); margin-right: 6px; }

/* 地图涟漪 */
.ripple-ring {
  fill: none; stroke: var(--gold-2); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: ripple 1.1s var(--ease-out) forwards;
}
@keyframes ripple {
  from { transform: scale(.3); opacity: .9; }
  to { transform: scale(3.2); opacity: 0; }
}

/* ============================================================
 * 分页器
 * ============================================================ */
.pager {
  position: fixed; z-index: 20; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(7, 22, 29, .55); border: 1px solid rgba(217, 176, 95, .2);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .6s .4s;
}
body.started .pager { opacity: 1; }
.pg-btn { color: var(--mist); display: flex; padding: 4px; transition: color .3s, transform .3s; }
.pg-btn:hover { color: var(--gold-2); transform: scale(1.15); }
.pg-dots { display: flex; gap: 10px; }
.pg-dot { width: 26px; height: 26px; border-radius: 50%; position: relative; color: var(--mist); font-size: 12px; }
.pg-dot i { font-style: normal; font-family: var(--f-display); }
.pg-dot::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--line); transition: .35s;
}
.pg-dot.is-current { color: #241503; }
.pg-dot.is-current::before { background: var(--gold-2); border-color: var(--gold-2); box-shadow: 0 0 14px rgba(233, 196, 106, .6); transform: scale(1.08); }

/* ============================================================
 * 覆盖层（州市 / 品牌详情）
 * ============================================================ */
.overlay {
  position: fixed; inset: 0; z-index: var(--z-overlay);
  visibility: hidden; opacity: 0;
  transition: opacity .5s var(--ease-out), visibility .5s, transform .5s var(--ease-out);
  transform: scale(1.04);
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(32, 133, 122, .2), transparent 60%),
    radial-gradient(900px 700px at 0% 100%, rgba(21, 94, 88, .22), transparent 60%),
    rgba(6, 18, 24, .96);
  backdrop-filter: blur(10px);
}
.overlay.open { visibility: visible; opacity: 1; transform: scale(1); }
.overlay-inner { position: absolute; inset: 0; }
.city-scroll, .brand-scroll { height: 100%; overflow-y: auto; scrollbar-width: thin; }
.city-scroll::-webkit-scrollbar, .brand-scroll::-webkit-scrollbar { width: 4px; }
.city-scroll::-webkit-scrollbar-thumb, .brand-scroll::-webkit-scrollbar-thumb { background: rgba(217, 176, 95, .35); }

.ov-close {
  position: fixed; top: 22px; left: 22px; z-index: 5;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  border: 1px solid rgba(243, 231, 207, .35); color: var(--cream);
  background: rgba(7, 22, 29, .55); backdrop-filter: blur(8px);
  font-size: 13px; letter-spacing: .2em;
  transition: background .3s, border-color .3s, transform .3s;
}
.ov-close:hover { background: rgba(194, 85, 61, .35); border-color: var(--cinnabar); transform: translateX(-4px); }

/* ---------- 州市详情 ---------- */
.city-hero {
  position: relative; min-height: 46vh;
  display: flex; align-items: flex-end;
  padding: clamp(70px, 10vh, 110px) clamp(24px, 6vw, 80px) clamp(30px, 5vh, 56px);
  overflow: hidden;
}
.city-hero-img { position: absolute; inset: 0; z-index: 0; transform: scale(1.12); }
.overlay.open .city-hero-img { animation: heroZoom 1.6s var(--ease-out) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.city-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,24,.55) 0%, rgba(6,18,24,.15) 40%, rgba(6,18,24,.92) 100%);
}
.city-hero-img img { opacity: 0; transition: opacity 1s .2s; }
.city-hero-img img.loaded { opacity: 1; }
.city-hero-inner { position: relative; z-index: 1; max-width: 1200px; width: 100%; margin: 0 auto; }
.city-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 12px;
  background: var(--cinnabar); color: #fff4e2;
  font-family: var(--f-brush); font-size: 34px;
  transform: rotate(7deg); box-shadow: 0 8px 26px rgba(194, 85, 61, .5);
  margin-bottom: 18px;
}
.city-hero h3 {
  font-family: var(--f-brush); font-weight: 400;
  font-size: clamp(48px, 8vmin, 96px); line-height: 1.05;
  color: #fff8e8; text-shadow: 0 6px 40px rgba(0, 0, 0, .6);
}
.city-hero h3 small {
  font-family: var(--f-display); font-size: .32em; letter-spacing: .4em;
  color: var(--gold-2); margin-left: 22px; vertical-align: middle;
}
.city-intro {
  max-width: 620px; margin-top: 18px;
  font-size: clamp(14px, 1.7vmin, 16px); line-height: 2.1; color: rgba(243, 231, 207, .9);
}
.city-brands {
  max-width: 1200px; margin: 0 auto;
  padding: clamp(34px, 6vh, 64px) clamp(24px, 4vw, 40px) clamp(120px, 16vh, 170px);
}
.cb-label {
  display: flex; align-items: center; gap: 16px; margin-bottom: 30px;
  font-size: 13px; letter-spacing: .4em; color: var(--gold);
}
.cb-label::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: clamp(18px, 2.4vmin, 30px); }

.brand-card {
  position: relative; border-radius: 16px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, rgba(20, 56, 55, .55), rgba(8, 30, 33, .85));
  border: 1px solid rgba(217, 176, 95, .2);
  opacity: 0; transform: translateY(46px);
  transition: transform .45s var(--ease-out), border-color .35s, box-shadow .35s;
}
.brand-grid.in .brand-card { animation: cardRise .8s var(--ease-out) forwards; animation-delay: calc(var(--i) * .09s); }
@keyframes cardRise { to { opacity: 1; transform: none; } }
.brand-card:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 176, 95, .6);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 30px rgba(217, 176, 95, .14);
}
.bc-img { position: relative; height: 210px; overflow: hidden; }
.bc-img img { opacity: 0; transform: scale(1.08); transition: opacity .9s, transform .9s var(--ease-out); }
.bc-img img.loaded { opacity: 1; transform: scale(1); }
.brand-card:hover .bc-img img.loaded { transform: scale(1.08); }
.bc-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 30, 33, .85));
}
.bc-cat {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  padding: 5px 13px; border-radius: 999px;
  background: rgba(7, 22, 29, .66); border: 1px solid rgba(217, 176, 95, .5);
  font-size: 11px; letter-spacing: .25em; color: var(--gold-2);
  backdrop-filter: blur(6px);
}
.bc-body { padding: 20px 22px 24px; position: relative; }
.bc-name {
  font-family: var(--f-display); font-size: 24px; letter-spacing: .1em; color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.bc-name svg { color: var(--gold); flex: none; transition: transform .35s; }
.brand-card:hover .bc-name svg { transform: translateX(6px); }
.bc-tag { margin-top: 10px; font-size: 13px; line-height: 1.8; color: var(--mist); }
.bc-line { margin-top: 16px; height: 2px; width: 40px; background: linear-gradient(90deg, var(--cinnabar), transparent); border-radius: 2px; transition: width .4s var(--ease-out); }
.brand-card:hover .bc-line { width: 100%; }

/* ---------- 品牌详情（杂志式） ---------- */
.brand-hero {
  position: relative; min-height: 62vh;
  display: flex; align-items: flex-end;
  padding: clamp(80px, 12vh, 130px) clamp(24px, 6vw, 90px) clamp(36px, 6vh, 60px);
  overflow: hidden;
}
.brand-hero-img { position: absolute; inset: 0; z-index: 0; }
.brand-hero-img::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,18,24,.45) 0%, rgba(6,18,24,.1) 42%, rgba(6,18,24,.95) 100%);
}
.brand-hero-img img { opacity: 0; transform: scale(1.1); transition: opacity 1.1s .15s, transform 1.6s var(--ease-out); }
.brand-hero-img img.loaded { opacity: 1; transform: scale(1); }
.brand-hero-inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; width: 100%; }
.bh-cat {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .4em; color: var(--gold-2); margin-bottom: 16px;
}
.bh-cat::before { content: ''; width: 26px; height: 1px; background: var(--gold-2); }
.brand-hero h3 {
  font-family: var(--f-brush); font-weight: 400;
  font-size: clamp(44px, 8.4vmin, 100px); line-height: 1.08;
  color: #fff8e8; text-shadow: 0 8px 44px rgba(0, 0, 0, .55);
}
.bh-tag {
  margin-top: 16px; font-family: var(--f-display);
  font-size: clamp(16px, 2.2vmin, 22px); color: var(--gold-2); letter-spacing: .08em;
}

.brand-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  max-width: 1100px; margin: -34px auto 0; position: relative; z-index: 3;
  border: 1px solid rgba(217, 176, 95, .3); border-radius: 16px; overflow: hidden;
  background: rgba(10, 32, 35, .85); backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
.bstat { flex: 1 1 30%; min-width: 150px; padding: 24px 28px; text-align: center; border-right: 1px solid rgba(217, 176, 95, .16); }
.bstat:last-child { border-right: none; }
.bstat b { display: block; font-family: var(--f-serif); font-size: clamp(22px, 3vmin, 34px); color: var(--gold-2); font-weight: 900; }
.bstat i { font-style: normal; display: block; margin-top: 8px; font-size: 12px; letter-spacing: .25em; color: var(--mist); }

.brand-story {
  max-width: 1100px; margin: 0 auto;
  padding: clamp(50px, 8vh, 90px) clamp(24px, 5vw, 60px) clamp(120px, 16vh, 170px);
}
.bs-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 70px); align-items: center; margin-bottom: clamp(60px, 9vh, 100px); }
.bs-section.reverse .bs-text { order: 2; }
.bs-text .bs-kicker { font-size: 11px; letter-spacing: .45em; color: var(--gold); margin-bottom: 18px; }
.bs-text p {
  font-size: clamp(15px, 1.8vmin, 17.5px); line-height: 2.25; color: rgba(243, 231, 207, .86);
  margin-bottom: 18px;
}
.bs-text .bs-kicker + p::first-letter {
  font-family: var(--f-brush); font-size: 3.1em; float: left;
  color: var(--cinnabar); line-height: .95; padding: 6px 12px 0 0;
}
.bs-figure {
  position: relative; border-radius: 18px; overflow: hidden;
  aspect-ratio: 4 / 3.6;
  border: 1px solid rgba(217, 176, 95, .25);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.bs-figure img { opacity: 0; transform: scale(1.06); transition: opacity 1s, transform 1.4s var(--ease-out); }
.bs-figure img.loaded { opacity: 1; transform: scale(1); }
.bs-figure::before {
  content: ''; position: absolute; inset: 12px; z-index: 2;
  border: 1px solid rgba(243, 231, 207, .4); border-radius: 10px; pointer-events: none;
}
.bs-figure figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 30px 22px 16px; font-size: 12px; letter-spacing: .2em; color: var(--cloud);
  background: linear-gradient(transparent, rgba(6, 18, 24, .85));
}
.bs-highlight {
  display: grid; gap: 16px; margin: 6px 0 0;
}
.bs-highlight li {
  list-style: none; display: flex; gap: 14px; align-items: flex-start;
  padding: 18px 22px; border-radius: 14px;
  background: rgba(217, 176, 95, .07); border: 1px solid rgba(217, 176, 95, .2);
  font-size: 15px; line-height: 1.8; color: var(--cream);
}
.bs-highlight li::before {
  content: ''; flex: none; width: 14px; height: 14px; margin-top: 5px; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--gold-2) 0 22%, #0e7c7b 23% 55%, #0b2128 56% 100%);
  box-shadow: 0 0 10px rgba(233, 196, 106, .4);
}
.bs-quote {
  margin: 10px 0 0; padding: 44px 36px; text-align: center;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative;
}
.bs-quote::before { content: '「'; position: absolute; top: 8px; left: 14px; font-family: var(--f-serif); font-size: 52px; color: rgba(217, 176, 95, .3); }
.bs-quote::after { content: '」'; position: absolute; bottom: -18px; right: 14px; font-family: var(--f-serif); font-size: 52px; color: rgba(217, 176, 95, .3); }
.bs-quote p { font-family: var(--f-brush); font-size: clamp(22px, 3.4vmin, 36px); color: var(--gold-2); line-height: 1.7; margin: 0; }

/* 滚动进入 */
.srv { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.srv.in { opacity: 1; transform: none; }

.brand-more {
  text-align: center; padding-top: 20px;
}
.brand-more button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 34px; border-radius: 999px;
  border: 1px solid var(--gold); color: var(--gold-2);
  letter-spacing: .3em; text-indent: .3em; font-size: 14px;
  background: rgba(217, 176, 95, .08);
  transition: background .3s, box-shadow .3s, transform .3s;
}
.brand-more button:hover { background: rgba(217, 176, 95, .2); box-shadow: 0 0 26px rgba(217, 176, 95, .25); transform: translateY(-2px); }

/* ============================================================
 * 精灵 & 聊天
 * ============================================================ */
.spirit {
  position: fixed; right: clamp(18px, 3vmin, 30px); bottom: calc(clamp(18px, 3vmin, 30px) + env(safe-area-inset-bottom));
  z-index: var(--z-spirit); width: clamp(58px, 7vmin, 72px); height: clamp(58px, 7vmin, 72px);
  border-radius: 50%; padding: 0;
  animation: spiritFloat 4.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(14, 124, 123, .45));
}
@keyframes spiritFloat {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-10px) rotate(3deg); }
}
.spirit-body { width: 100%; height: 100%; transition: transform .3s var(--ease-out); }
.spirit:hover .spirit-body { transform: scale(1.08); }
.spirit-lid { opacity: 0; transform-origin: center; }
.spirit:hover .spirit-lid, .spirit.blink .spirit-lid { animation: blinkLid .38s ease; }
@keyframes blinkLid { 0% { transform: scaleY(0); opacity: 0; } 45% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0); opacity: 0; } }
.spirit-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1.5px dashed rgba(233, 196, 106, .6);
  animation: orbitSpin 9s linear infinite;
}
.spirit-ring-2 { inset: -12px; border-color: rgba(233, 196, 106, .25); animation-duration: 15s; animation-direction: reverse; }
.spirit-spark {
  position: absolute; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2);
  opacity: 0;
}
.s1 { top: -4px; left: 12%; animation: spark 3.2s ease-in-out .4s infinite; }
.s2 { top: 20%; right: -6px; animation: spark 3.2s ease-in-out 1.4s infinite; }
.s3 { bottom: 4px; left: -4px; animation: spark 3.2s ease-in-out 2.3s infinite; }
@keyframes spark {
  0%,100% { opacity: 0; transform: translateY(4px) scale(.5); }
  50% { opacity: 1; transform: translateY(-6px) scale(1); }
}
.spirit-tip {
  position: fixed; right: clamp(78px, 10vmin, 104px);
  bottom: calc(clamp(42px, 6vmin, 58px) + env(safe-area-inset-bottom));
  z-index: var(--z-spirit);
  background: rgba(243, 231, 207, .96); color: #33220a;
  font-size: 13px; line-height: 1.6; letter-spacing: .06em;
  padding: 10px 16px; border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(10px) scale(.9); pointer-events: none;
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  transform-origin: right bottom;
}
.spirit-tip::after {
  content: ''; position: absolute; right: -7px; bottom: 14px;
  border: 8px solid transparent; border-left-color: rgba(243, 231, 207, .96); border-right-width: 0;
}
.spirit-tip.show { opacity: 1; transform: none; }

/* 聊天窗 */
.chat {
  position: fixed; z-index: var(--z-chat);
  right: clamp(18px, 3vmin, 30px);
  bottom: calc(clamp(86px, 11vmin, 108px) + env(safe-area-inset-bottom));
  width: min(390px, calc(100vw - 36px));
  height: min(580px, calc(100dvh - 140px));
  display: flex; flex-direction: column;
  border-radius: 22px; overflow: hidden;
  background: linear-gradient(180deg, rgba(12, 38, 43, .98), rgba(8, 26, 30, .98));
  border: 1px solid rgba(217, 176, 95, .3);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6), 0 0 40px rgba(14, 124, 123, .15);
  transform-origin: right bottom;
  transform: translateY(26px) scale(.92); opacity: 0; visibility: hidden;
  transition: transform .45s var(--ease-out), opacity .45s, visibility .45s;
}
.chat.open { transform: none; opacity: 1; visibility: visible; }
.chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(217, 176, 95, .2);
  background:
    linear-gradient(90deg, rgba(32, 133, 122, .25), transparent),
    rgba(10, 32, 35, .7);
}
.chat-avatar { flex: none; animation: peacockBob 4s ease-in-out infinite; }
.chat-title { flex: 1; }
.chat-title b { font-family: var(--f-display); font-weight: 400; font-size: 18px; letter-spacing: .12em; display: block; color: var(--cream); }
.chat-title small { font-family: var(--f-body); font-size: 10px; background: var(--cinnabar); color: #fff4e2; padding: 2px 8px; border-radius: 8px; margin-left: 8px; letter-spacing: .15em; }
.chat-status { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--mist); margin-top: 3px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #5fd6a4; box-shadow: 0 0 8px #5fd6a4; }
.chat-close { color: var(--mist); padding: 6px; border-radius: 50%; transition: color .3s, background .3s; }
.chat-close:hover { color: var(--cinnabar); background: rgba(194, 85, 61, .12); }

.chat-msgs { flex: 1; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.chat-msgs::-webkit-scrollbar { width: 3px; }
.chat-msgs::-webkit-scrollbar-thumb { background: rgba(217, 176, 95, .3); }
.msg { display: flex; gap: 10px; max-width: 88%; animation: msgIn .4s var(--ease-out); }
@keyframes msgIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.msg-avatar {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #2bb6a8, #0a4f52);
  border: 1px solid rgba(233, 196, 106, .5);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}
.msg-bubble {
  padding: 12px 16px; border-radius: 4px 16px 16px 16px;
  background: rgba(217, 176, 95, .09); border: 1px solid rgba(217, 176, 95, .18);
  font-size: 14px; line-height: 1.85; color: rgba(243, 231, 207, .92);
}
.msg-bubble b { color: var(--gold-2); font-weight: 500; }
.msg-bubble .msg-brand {
  display: block; margin-top: 8px; padding: 8px 12px; border-radius: 10px;
  background: rgba(32, 133, 122, .18); border: 1px solid rgba(32, 133, 122, .35);
  color: var(--cream); text-align: left; width: 100%;
  font-size: 13px; letter-spacing: .05em;
  transition: background .3s, border-color .3s;
}
.msg-bubble .msg-brand:hover { background: rgba(32, 133, 122, .38); border-color: var(--gold); }
.msg.user { align-self: flex-end; }
.msg.user .msg-bubble {
  background: linear-gradient(135deg, rgba(217, 176, 95, .9), rgba(185, 138, 61, .9));
  color: #2a1a06; border: none; border-radius: 16px 4px 16px 16px;
  font-weight: 400;
}
.typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); opacity: .5; animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-chips { display: flex; gap: 8px; padding: 0 16px 10px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 12px;
  border: 1px solid rgba(217, 176, 95, .35); color: var(--gold-2);
  background: rgba(217, 176, 95, .06);
  transition: background .3s, transform .2s;
}
.chip:hover { background: rgba(217, 176, 95, .2); transform: translateY(-2px); }
.chat-form { display: flex; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid rgba(217, 176, 95, .16); }
.chat-input {
  flex: 1; background: rgba(7, 22, 29, .7); border: 1px solid rgba(217, 176, 95, .25);
  border-radius: 999px; padding: 11px 18px; color: var(--cream);
  font-family: inherit; font-size: 14px; outline: none;
  transition: border-color .3s, box-shadow .3s;
}
.chat-input::placeholder { color: rgba(243, 231, 207, .35); }
.chat-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217, 176, 95, .12); }
.chat-send {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-deep)); color: #2a1a06;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s, box-shadow .3s;
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 0 18px rgba(233, 196, 106, .5); }

/* ============================================================
 * Toast
 * ============================================================ */
.toasts { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  padding: 12px 24px; border-radius: 999px;
  background: rgba(10, 32, 35, .9); border: 1px solid rgba(217, 176, 95, .4);
  color: var(--cream); font-size: 13px; letter-spacing: .15em;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .5); backdrop-filter: blur(8px);
  animation: toastIn 3.6s var(--ease-out) forwards;
}
@keyframes toastIn {
  0% { opacity: 0; transform: translateY(-18px) scale(.94); }
  10%,85% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px) scale(.96); }
}

/* ============================================================
 * 真实数据：层级 / 视频 / 占位 / 杂志正文
 * ============================================================ */
/* 州市头图内层级统计 */
.city-lvbar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lv-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 15px; border-radius: 999px;
  font-size: 12px; font-style: normal; letter-spacing: .18em;
  background: rgba(7, 22, 29, .55); border: 1px solid var(--line);
  color: var(--cream); backdrop-filter: blur(6px);
}
.lv-pill b { color: var(--gold-2); font-weight: 600; }
.lv-pill.lv-national { border-color: rgba(224, 92, 60, .75); color: #ffe8d6; background: rgba(194, 85, 61, .35); }
.lv-pill.lv-national b { color: #ffd9a8; }
.lv-pill.lv-provincial { border-color: rgba(217, 176, 95, .75); }
.lv-pill.lv-city { opacity: .9; }

/* 分组标题 */
.cb-label { position: relative; }
.cb-label span { margin-left: auto; color: var(--mist); font-size: 12px; letter-spacing: .2em; }
.cb-seal {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 7px; margin-right: 12px;
  font-style: normal; font-family: var(--f-brush); font-size: 18px;
  background: rgba(217, 176, 95, .16); border: 1px solid var(--gold);
  color: var(--gold-2); transform: rotate(-4deg);
}
.cb-seal.lv-national { background: rgba(194, 85, 61, .85); border-color: var(--cinnabar); color: #fff3e0; }
.cb-seal.lv-provincial { background: rgba(217, 176, 95, .85); color: #2a1a06; }
.cb-seal.lv-city { background: rgba(32, 133, 122, .7); color: #f4fbf8; }
.cb-label { display: flex; align-items: center; gap: 6px; }

/* 卡片层级描边 */
.brand-card.lv-national { border-color: rgba(217, 116, 84, .5); }
.brand-card.lv-national .bc-line { background: linear-gradient(90deg, var(--cinnabar), var(--gold), transparent); }

/* 视频缩略 */
.bc-img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.bc-img.is-video, .bc-img video { background: #000; }
.bc-play {
  position: absolute; z-index: 3; left: 50%; top: 50%;
  width: 52px; height: 52px; transform: translate(-50%, -50%);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(7, 22, 29, .5); border: 1.4px solid rgba(243, 231, 207, .85);
  backdrop-filter: blur(4px); pointer-events: none;
  transition: transform .35s var(--ease-out), background .3s;
}
.bc-play svg { width: 22px; height: 22px; fill: var(--cream); margin-left: 3px; }
.brand-card:hover .bc-play { transform: translate(-50%, -50%) scale(1.12); background: rgba(194, 85, 61, .75); }

/* 无图占位 */
.bc-img.bc-noimg {
  background:
    radial-gradient(90% 80% at 110% -10%, color-mix(in srgb, var(--a, #20857a) 45%, transparent), transparent 70%),
    linear-gradient(155deg, #123f3c 0%, #0a2326 75%);
  overflow: hidden;
}
.bc-ph-wm {
  position: absolute; z-index: 0; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-brush); font-size: 64px; color: rgba(243, 231, 207, .07);
  white-space: nowrap; transform: rotate(-14deg); padding: 0 14px; text-align: center;
}
.bc-ph-char {
  position: absolute; z-index: 1; left: 16px; bottom: 8px;
  font-family: var(--f-brush); font-size: 96px; line-height: 1;
  color: rgba(233, 196, 106, .28); text-shadow: 0 6px 24px rgba(0, 0, 0, .4);
  transition: transform .45s var(--ease-out), color .35s;
}
.brand-card:hover .bc-ph-char { transform: translateY(-6px) scale(1.06); color: rgba(233, 196, 106, .5); }

/* 品牌详情头图视频 */
.brand-hero-img.is-video::after { z-index: 2; }
.brand-hero-img.is-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; background: #000; }
.bh-fallback-note {
  position: absolute; right: 18px; bottom: 16px; z-index: 3;
  font-size: 11px; letter-spacing: .3em; color: rgba(243, 231, 207, .65);
  padding: 5px 12px; border: 1px solid rgba(243, 231, 207, .25); border-radius: 999px;
  background: rgba(7, 22, 29, .4);
}
.bh-cat { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bh-cat em { font-style: normal; color: var(--mist); letter-spacing: .3em; font-size: 12px; }

/* 杂志正文（单栏排版） */
.bs-prose {
  max-width: 780px; margin: 0 auto;
  padding: 8px 4px 10px;
}
.bs-prose .bs-kicker {
  text-align: center; font-size: 11px; letter-spacing: .6em;
  color: var(--gold); margin-bottom: 30px; position: relative;
}
.bs-prose .bs-kicker::before, .bs-prose .bs-kicker::after {
  content: ''; display: inline-block; vertical-align: middle;
  width: 46px; height: 1px; background: var(--line); margin: 0 18px;
}
.bs-prose p {
  font-family: var(--f-serif);
  font-size: clamp(15.5px, 1.85vmin, 18px);
  line-height: 2.3; color: rgba(243, 231, 207, .9);
  margin-bottom: 26px; text-align: justify;
}
.bs-prose .bs-kicker + p::first-letter {
  font-family: var(--f-brush); font-size: 3.1em; float: left;
  color: var(--cinnabar); line-height: .92; padding: 6px 14px 0 0;
}
.bs-empty {
  text-align: center; padding: 70px 20px; color: var(--gold);
  border: 1px dashed var(--line); border-radius: 16px;
}
.bs-empty svg { margin-bottom: 18px; opacity: .7; }
.bs-empty p { font-size: 15px; line-height: 2.1; color: var(--mist); margin: 0; text-align: center; }

.bs-figure-wide { max-width: 920px; margin: 20px auto 0; aspect-ratio: 16 / 8.4; }

/* ============================================================
 * 竖屏（手机竖屏 / 平板竖屏）
 * ============================================================ */
@media (orientation: portrait) {
  .track { flex-direction: column; overflow-x: hidden; overflow-y: auto; scroll-snap-type: y mandatory; }
  .page { flex: 0 0 auto; }

  .intro-body { grid-template-columns: 1fr; gap: 8px; align-content: center; }
  .intro-art { display: none; }
  .intro-title { white-space: normal; }
  .it-line { white-space: normal; }
  .intro-top-note { display: none; }
  .intro-stats { margin-top: 30px; }
  .sh-h { display: none; }
  .sh-v { display: inline; }
  .scroll-hint { right: auto; left: 50%; bottom: 58px; transform: translateX(-50%); }
  .sh-text { writing-mode: horizontal-tb; letter-spacing: .3em; }
  .sh-track { width: 64px; height: 1px; }
  .sh-dot { width: 22px; height: 1px; animation: hintRunV 2.2s var(--ease-soft) infinite; }
  @keyframes hintRunV { 0% { left: -30%; top: 0; } 100% { left: 110%; top: 0; } }

  .page-map { padding: 18px 16px 90px; }
  .map-head { gap: 8px; }
  .map-hint { font-size: 11px; }
  .map-stage { flex-direction: column; gap: 12px; }
  .map-frame { flex: 1 1 auto; min-height: 0; }
  .yn-map { padding: 8px; }
  /* 打开详情覆盖层时，精灵移至左下，让出卡片右侧箭头热区 */
  .overlay.open ~ #spirit { right: auto; left: 18px; bottom: calc(20px + env(safe-area-inset-bottom)); }
  .overlay.open ~ #spiritTip { display: none; }
  .region-label { font-size: 15px; }
  .map-side { flex: 0 0 30%; min-height: 150px; padding: 12px 12px 10px; }
  .side-title { padding-bottom: 9px; font-size: 11px; }
  .city-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; align-content: start; }
  .city-item { padding: 9px 10px; gap: 8px; }
  .city-name { font-size: 15px; }
  .city-motto { display: none; }
  .side-foot { padding-top: 9px; font-size: 11px; }

  .pager { bottom: 14px; }
  .pg-btn { display: none; }

  .brand-grid { grid-template-columns: 1fr; }
  .bs-section, .bs-section.reverse { grid-template-columns: 1fr; gap: 24px; }
  .bs-section.reverse .bs-text { order: 0; }
  .bs-figure { aspect-ratio: 16 / 10; }
  .bstat { min-width: 33.33%; padding: 18px 12px; }
  .brand-stats { margin: -26px 16px 0; }
  .ov-close { top: 14px; left: 14px; padding: 9px 15px 9px 12px; }
  .chat { height: min(640px, calc(100dvh - 110px)); }
}

/* 超小屏 */
@media (max-width: 380px) {
  .intro-title { font-size: 34px; }
  .city-list { grid-template-columns: 1fr 1fr; }
}

/* 亮点栅格 */
.hl-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
@media (orientation: portrait) { .hl-grid { grid-template-columns: 1fr; } }

/* 图片容器兜底纹理（加载中 / 失败时） */
.img-fallback {
  background:
    radial-gradient(80% 70% at 50% 30%, rgba(32, 133, 122, .35), transparent 72%),
    radial-gradient(50% 50% at 80% 90%, rgba(217, 176, 95, .14), transparent 70%),
    linear-gradient(160deg, #0f3331, #0a2026);
}
.img-fallback img.failed { display: none; }

.spirit-tip { max-width: calc(100vw - 120px); }

/* 开屏未结束时锁定主轨道 */
body:not(.started) .track { overflow: hidden !important; }

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .15s !important; }
}
