/**
 * 赳赳大秦门户 · Hero 实时天气层（叠在 hero--mountain 结构之上）
 */
.hero--weather {
  background: #0a0807;
  --wx-tilt-x: 0deg;
  --wx-tilt-y: 0deg;
  --wx-pan-x: 0px;
  --wx-pan-y: 0px;
  perspective: 1600px;
  transform-style: preserve-3d;
  overflow: hidden;
}

.hero--weather::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero--weather .mountain-scene-canvas {
  display: none;
}

.hero--weather .wx-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero--weather #wxSky {
  z-index: 1;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.08), calc(var(--wx-pan-y) * 0.07), -160px)
    rotateX(calc(var(--wx-tilt-x) * 0.22))
    rotateY(calc(var(--wx-tilt-y) * 0.2))
    scale(1.08);
}

/* 天光漫射层：纯 CSS 位移，增强氛围又不占 Canvas 预算 */
.hero--weather .wx-ambient-sheen {
  position: absolute;
  inset: -18%;
  z-index: 2;
  pointer-events: none;
  opacity: calc(0.42 + var(--wx-wind-int, 0.2) * 0.28);
  background:
    radial-gradient(ellipse 58% 42% at 28% 18%, rgba(255, 228, 180, 0.16), transparent 68%),
    radial-gradient(ellipse 48% 36% at 72% 26%, rgba(210, 198, 175, 0.1), transparent 72%);
  mix-blend-mode: soft-light;
  animation: wxSheenDrift 26s ease-in-out infinite;
  will-change: transform, opacity;
}

.hero--weather.hero--wx-overcast .wx-ambient-sheen,
.hero--weather.hero--wx-fog .wx-ambient-sheen {
  background:
    radial-gradient(ellipse 72% 48% at 50% 24%, rgba(198, 192, 180, 0.2), transparent 70%),
    radial-gradient(ellipse 40% 30% at 20% 40%, rgba(176, 170, 160, 0.12), transparent 75%);
  animation-duration: 34s;
}

.hero--weather.hero--wx-rain .wx-ambient-sheen,
.hero--weather.hero--wx-heavyrain .wx-ambient-sheen,
.hero--weather.hero--wx-thunder .wx-ambient-sheen {
  opacity: calc(0.28 + var(--wx-wind-int, 0.3) * 0.22);
  background: radial-gradient(ellipse 80% 55% at 50% 10%, rgba(160, 168, 188, 0.14), transparent 72%);
  animation-duration: 22s;
}

@keyframes wxSheenDrift {
  0%,
  100% {
    filter: brightness(1);
    transform: translate3d(calc(var(--wx-wind-x, 0px) - 2%), calc(var(--wx-wind-y, 0px) - 1%), 0) scale(1);
  }

  50% {
    filter: brightness(1.08);
    transform: translate3d(calc(var(--wx-wind-x, 0px) + 3%), calc(var(--wx-wind-y, 0px) + 2%), 0) scale(1.05);
  }
}

.hero--weather #wxGround {
  z-index: 3;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.22), calc(var(--wx-pan-y) * 0.2), -24px)
    rotateX(calc(var(--wx-tilt-x) * 0.35))
    rotateY(calc(var(--wx-tilt-y) * 0.32));
}
.hero--weather #wxRipple {
  z-index: 6;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.36), calc(var(--wx-pan-y) * 0.32), 24px)
    rotateX(calc(var(--wx-tilt-x) * 0.42))
    rotateY(calc(var(--wx-tilt-y) * 0.4));
}
.hero--weather #wxCloud {
  z-index: 4;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.18), calc(var(--wx-pan-y) * 0.15), -72px)
    rotateX(calc(var(--wx-tilt-x) * 0.28))
    rotateY(calc(var(--wx-tilt-y) * 0.26));
}
.hero--weather #wxFx {
  z-index: 10;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.46), calc(var(--wx-pan-y) * 0.38), 70px)
    rotateX(calc(var(--wx-tilt-x) * 0.46))
    rotateY(calc(var(--wx-tilt-y) * 0.42));
}
.hero--weather #wxLight {
  z-index: 11;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.42), calc(var(--wx-pan-y) * 0.3), 110px)
    rotateX(calc(var(--wx-tilt-x) * 0.4))
    rotateY(calc(var(--wx-tilt-y) * 0.35));
}

.hero--weather .wx-fog-wrap {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.3), calc(var(--wx-pan-y) * 0.26), 10px)
    rotateX(calc(var(--wx-tilt-x) * 0.35))
    rotateY(calc(var(--wx-tilt-y) * 0.32));
}

.hero--weather .wx-fog-band {
  position: absolute;
  left: -20%;
  width: 140%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(210, 205, 195, 0.18) 18%,
    rgba(210, 205, 195, 0.42) 42%,
    rgba(210, 205, 195, 0.58) 50%,
    rgba(210, 205, 195, 0.42) 58%,
    rgba(210, 205, 195, 0.18) 82%,
    transparent 100%
  );
  filter: blur(50px);
  animation: wxFogDrift ease-in-out infinite;
  transition: opacity 2.5s ease, height 2.5s ease;
  will-change: transform, opacity;
}

.hero--weather .wx-fog-band:nth-child(1) {
  bottom: 15%;
  height: 18%;
  animation-duration: 24s;
  opacity: 0.28;
}

.hero--weather .wx-fog-band:nth-child(2) {
  bottom: 10%;
  height: 14%;
  animation-duration: 38s;
  animation-delay: -12s;
  opacity: 0.2;
  filter: blur(65px);
}

.hero--weather .wx-fog-band:nth-child(3) {
  bottom: 5%;
  height: 22%;
  animation-duration: 33s;
  animation-delay: -7s;
  opacity: 0.15;
  filter: blur(80px);
}

.hero--weather .wx-fog-band:nth-child(4) {
  bottom: 20%;
  height: 10%;
  animation-duration: 45s;
  animation-delay: -20s;
  opacity: 0.12;
  filter: blur(55px);
}

@keyframes wxFogDrift {
  0% {
    transform: translate3d(calc(-10% + var(--wx-wind-x, 0px)), calc(var(--wx-wind-y, 0px) * 0.5), 0);
  }

  50% {
    transform: translate3d(calc(10% + var(--wx-wind-x, 0px)), calc(4px + var(--wx-wind-y, 0px) * 0.8), 0);
  }

  100% {
    transform: translate3d(calc(-10% + var(--wx-wind-x, 0px)), calc(var(--wx-wind-y, 0px) * 0.5), 0);
  }
}

.hero--weather .wx-dust-layer {
  position: absolute;
  inset: 0;
  z-index: 7;
  pointer-events: none;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.44), calc(var(--wx-pan-y) * 0.38), 85px)
    rotateX(calc(var(--wx-tilt-x) * 0.5))
    rotateY(calc(var(--wx-tilt-y) * 0.44));
}

.hero--weather .wx-dust {
  position: absolute;
  border-radius: 50%;
  background: rgba(245, 240, 230, 0.72);
  box-shadow: 0 0 6px rgba(255, 248, 235, 0.35);
  animation: wxDustDrift linear infinite;
}

@keyframes wxDustDrift {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  12% { opacity: 0.75; }
  80% { opacity: 0.28; }
  100% { transform: translate(var(--dx), var(--dy)) scale(0.3); opacity: 0; }
}

.hero--weather .wx-birds {
  position: absolute;
  inset: 0;
  z-index: 12;
  pointer-events: none;
  transition: opacity 2s;
  perspective: 1100px;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.52), calc(var(--wx-pan-y) * 0.42), 150px)
    rotateX(calc(var(--wx-tilt-x) * 0.56))
    rotateY(calc(var(--wx-tilt-y) * 0.5));
}

.hero--weather .wx-bird {
  position: absolute;
  opacity: var(--bird-opacity, 0.82);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
  will-change: transform, opacity;
  transform-style: preserve-3d;
  animation: wxBirdFly var(--bird-duration, 22s) linear infinite;
  animation-delay: var(--bird-delay, 0s);
  transform-origin: center center;
}

.hero--weather .wx-bird .wing {
  will-change: transform;
  transform-origin: 50% 70%;
  animation: wxFlap var(--wing-speed, 0.56s) ease-in-out infinite alternate;
}

.hero--weather .wx-bird::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  transform: translate(-50%, -50%) translateZ(10px);
  background: radial-gradient(circle at 35% 35%, rgba(255, 252, 240, 0.86), rgba(255, 245, 225, 0.22) 62%, transparent 100%);
  pointer-events: none;
}

@keyframes wxFlap {
  0% { transform: scaleY(0.58) rotate(calc(var(--wing-tilt, 6deg) * -0.6)); }
  100% { transform: scaleY(1.05) rotate(var(--wing-tilt, 6deg)); }
}

@keyframes wxBirdFly {
  0% {
    transform:
      translate3d(-6vw, 0, var(--bird-z, 0px))
      rotateX(var(--bird-pitch, 8deg))
      rotateY(calc(var(--bird-bank, 7deg) * -1))
      scale(var(--bird-scale, 0.92));
    opacity: 0;
  }
  4% { opacity: var(--bird-opacity, 0.82); }
  20% {
    transform:
      translate3d(18vw, calc(var(--bird-lift, 14px) * -1), var(--bird-z, 0px))
      rotateX(calc(var(--bird-pitch, 8deg) * 0.9))
      rotateY(var(--bird-bank, 7deg))
      scale(calc(var(--bird-scale, 0.92) * 1.01));
  }
  38% {
    transform:
      translate3d(37vw, var(--bird-dip, 10px), var(--bird-z, 0px))
      rotateX(calc(var(--bird-pitch, 8deg) * 0.75))
      rotateY(calc(var(--bird-bank, 7deg) * -0.55))
      scale(var(--bird-scale, 0.92));
  }
  58% {
    transform:
      translate3d(58vw, calc(var(--bird-lift, 14px) * -0.6 + var(--bird-sway, 8px)), var(--bird-z, 0px))
      rotateX(var(--bird-pitch, 8deg))
      rotateY(calc(var(--bird-bank, 7deg) * 0.7))
      scale(calc(var(--bird-scale, 0.92) * 0.99));
  }
  78% {
    transform:
      translate3d(78vw, calc(var(--bird-dip, 10px) * -0.25), var(--bird-z, 0px))
      rotateX(calc(var(--bird-pitch, 8deg) * 0.85))
      rotateY(calc(var(--bird-bank, 7deg) * -0.4))
      scale(var(--bird-scale, 0.92));
  }
  96% { opacity: var(--bird-opacity, 0.82); }
  100% {
    transform:
      translate3d(106vw, calc(var(--bird-dip, 10px) * 0.35), var(--bird-z, 0px))
      rotateX(calc(var(--bird-pitch, 8deg) * 0.72))
      rotateY(calc(var(--bird-bank, 7deg) * 0.5))
      scale(var(--bird-scale, 0.92));
    opacity: 0;
  }
}

.hero--weather .wx-birds.wx-birds--pulse .wx-bird {
  animation-duration: calc(var(--bird-duration, 22s) * 0.82);
}

.hero--weather .wx-flash {
  position: absolute;
  inset: 0;
  z-index: 14;
  pointer-events: none;
  /* 局部环境微亮：以落雷云底为中心，非整屏死白 */
  background: radial-gradient(
    ellipse 55% 48% at var(--wx-flash-x, 50%) var(--wx-flash-y, 18%),
    rgba(190, 210, 255, 0.38) 0%,
    rgba(140, 165, 220, 0.14) 32%,
    rgba(40, 48, 70, 0.04) 58%,
    transparent 78%
  );
  opacity: 0;
  transition: opacity 0.08s ease-out;
  mix-blend-mode: screen;
}

.hero--weather .mountain-vignette {
  z-index: 15;
  background: radial-gradient(ellipse at 22% 44%, transparent 48%, rgb(10 8 7 / 0.48) 100%);
}

/* Hero 底部渐隐：天空平滑沉入下方深色子系统区，消除硬边 */
.hero--weather .hero-bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(140px, 22vh, 240px);
  z-index: 18;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 7, 0) 0%,
    rgba(6, 5, 4, 0.28) 55%,
    rgba(3, 2, 2, 0.42) 100%
  );
}

.portal-app.n-layout--light .hero--weather .hero-bottom-fade {
  background: linear-gradient(
    to bottom,
    rgba(246, 241, 232, 0) 0%,
    rgba(246, 241, 232, 0.22) 55%,
    rgba(246, 241, 232, 0.32) 100%
  );
}

/* 滚动提示与标题保持在渐隐层之上 */
.hero--weather .scroll-hint {
  z-index: 22;
  right: clamp(1rem, 2.6vw, 1.8rem);
  bottom: clamp(1.1rem, 2.8vh, 1.9rem);
}

/* 按天气类型加强氛围层 */
.hero--weather.hero--wx-fog .wx-fog-band,
.hero--weather.hero--wx-drizzle .wx-fog-band,
.hero--weather.hero--wx-rain .wx-fog-band,
.hero--weather.hero--wx-heavyrain .wx-fog-band,
.hero--weather.hero--wx-thunder .wx-fog-band {
  filter: blur(42px);
}

.hero--weather.hero--wx-fog .wx-fog-band {
  opacity: 0.85 !important;
}

.hero--weather.hero--wx-rain .wx-fog-band:nth-child(1),
.hero--weather.hero--wx-heavyrain .wx-fog-band:nth-child(1),
.hero--weather.hero--wx-thunder .wx-fog-band:nth-child(1) {
  opacity: 0.35 !important;
}

.hero--weather .mountain-grain {
  z-index: 16;
  mix-blend-mode: overlay;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.18), calc(var(--wx-pan-y) * 0.14), 40px)
    rotateX(calc(var(--wx-tilt-x) * 0.2))
    rotateY(calc(var(--wx-tilt-y) * 0.2));
}

.hero--weather .mountain-title-box {
  z-index: 20;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.58), calc(var(--wx-pan-y) * 0.46), 190px)
    rotateX(calc(var(--wx-tilt-x) * 0.62))
    rotateY(calc(var(--wx-tilt-y) * 0.58));
}

/* 标题区左对齐：与右侧天气徽章、右下时钟形成左右分栏 */
.hero--weather .mountain-title-glow {
  left: clamp(6rem, 18vw, 12rem);
  top: 48%;
  transform: translate(-20%, -50%);
}

.hero--weather .mountain-title-center {
  left: clamp(1.25rem, 4.5vw, 3.5rem);
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  width: min(92vw, 520px);
  max-width: min(520px, 46vw);
}

.hero--weather .mountain-sub {
  text-align: left;
}

.hero--weather .mountain-line {
  margin-left: 0;
  margin-right: auto;
  background: linear-gradient(90deg, rgb(201 168 106 / 0.5), rgb(201 168 106 / 0.12), transparent);
}

.hero--weather .mountain-desc {
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
  max-width: 34em;
  text-align: left;
}

.hero--weather .mountain-cta {
  justify-content: flex-start;
  margin-top: clamp(16px, 2.5vh, 28px);
}

.hero--weather .mountain-bottom-text {
  left: clamp(1.25rem, 4.5vw, 3.5rem);
  transform: none;
  text-align: left;
}

.hero--weather .wx-hero-block {
  margin-left: 0;
  margin-right: auto;
}

.hero--weather .wx-hero-title {
  text-indent: 0;
  text-align: left;
}

.hero--weather .wx-hero-sub-line {
  margin-left: 0;
  margin-right: auto;
  background: linear-gradient(90deg, rgba(201, 168, 106, 0.5), rgba(201, 168, 106, 0.1), transparent);
}

.hero--weather .wx-seal {
  margin-left: 0;
  margin-right: auto;
}

.hero--weather .wx-verse {
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.hero--weather .wx-badge {
  position: absolute;
  top: calc(var(--nav-height, 64px) + 1rem);
  right: clamp(1rem, 3vw, 3rem);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.35rem;
  background: rgba(8, 8, 12, 0.42);
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border: 1px solid rgba(201, 168, 106, 0.22);
  border-radius: 14px;
  color: rgba(241, 237, 227, 0.9);
  opacity: 0;
  transform: translateY(-10px) scale(0.97);
  transition: opacity 0.8s ease, transform 0.8s ease, border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  transform-style: preserve-3d;
}

.hero--weather .wx-badge.show {
  opacity: 1;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.72), calc(var(--wx-pan-y) * 0.56), 260px)
    rotateX(calc(var(--wx-tilt-x) * 0.72))
    rotateY(calc(var(--wx-tilt-y) * 0.68))
    scale(1);
}

.hero--weather .wx-badge .b-icon {
  font-size: 2rem;
  line-height: 1;
}

.hero--weather .wx-badge .b-temp {
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  color: var(--gold-light, #e6c982);
}

.hero--weather .wx-badge .b-info {
  line-height: 1.45;
}

.hero--weather .wx-badge .b-desc {
  font-size: 0.88rem;
  letter-spacing: 0.12em;
}

.hero--weather .wx-badge .b-detail {
  font-size: 0.7rem;
  opacity: 0.58;
  margin-top: 2px;
}

.hero--weather .wx-badge .b-loc {
  font-size: 0.66rem;
  opacity: 0.42;
  margin-top: 3px;
  letter-spacing: 0.08em;
}

.hero--weather .wx-badge .b-sun-times {
  display: flex;
  gap: 0.55rem;
  margin-top: 4px;
  font-size: 0.64rem;
  opacity: 0.48;
}

.hero--weather .mountain-wx-line {
  margin: clamp(12px, 2vw, 18px) auto 0;
  max-width: 36em;
  padding: 0 1rem;
  font-family: 'Noto Serif SC', serif;
  font-weight: 300;
  font-size: clamp(12px, 1.4vw, 14px);
  letter-spacing: 0.28em;
  line-height: 2;
  color: rgba(227, 217, 194, 0);
  opacity: 0;
  transition: opacity 1.2s ease 0.2s, color 3s ease;
}

.hero--weather .mountain-wx-line.show {
  opacity: 1;
  color: rgba(227, 217, 194, 0.58);
}

/* 天气诗意标题区（月夜 / 诗词 / 状态） */
.hero--weather .wx-hero-block {
  margin: clamp(10px, 2vh, 20px) auto 0;
  max-width: 42em;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 1s ease 0.15s, transform 1s ease 0.15s;
}

.hero--weather .wx-hero-block.show {
  opacity: 1;
  transform: translateY(0);
}

.hero--weather .wx-hero-title {
  margin: 0;
  font-family: 'ZCOOL XiaoWei', 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(2.4rem, 9vw, 5rem);
  font-weight: 400;
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  line-height: 1.15;
  color: rgba(255, 250, 240, 0.92);
  transition: color 3s ease;
}

.hero--weather .wx-hero-sub-line {
  width: clamp(48px, 12vw, 88px);
  height: 1px;
  margin: clamp(10px, 1.5vh, 16px) auto;
  background: linear-gradient(90deg, transparent, rgba(201, 168, 106, 0.45), transparent);
}

.hero--weather .wx-seal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(36px, 8vw, 48px);
  height: clamp(36px, 8vw, 48px);
  margin: 0 auto 0.65rem;
  font-family: 'Ma Shan Zheng', 'Noto Serif SC', serif;
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: rgba(201, 168, 106, 0.92);
  border: 1.5px solid rgba(201, 168, 106, 0.55);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(201, 168, 106, 0.12), rgba(8, 8, 12, 0.35));
  box-shadow: inset 0 0 0 1px rgba(255, 250, 240, 0.06);
}

/* 天气诗词：书卷式双句 + 出处笺脚 */
.hero--weather .wx-verse {
  --wx-verse-ink: rgba(255, 245, 225, 0.58);
  --wx-verse-muted: rgba(255, 245, 225, 0.42);
  position: relative;
  display: flex;
  gap: clamp(10px, 1.6vw, 16px);
  align-items: stretch;
  margin: clamp(10px, 1.8vh, 18px) auto 0;
  max-width: 34em;
  padding: clamp(12px, 2vh, 18px) 0 clamp(4px, 0.8vh, 8px);
  text-align: left;
  transition: color 3s ease;
}

.hero--weather .wx-verse-rail {
  flex: 0 0 2px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(201, 168, 106, 0.08),
    rgba(201, 168, 106, 0.72) 18%,
    rgba(154, 102, 64, 0.55) 82%,
    rgba(201, 168, 106, 0.06)
  );
  box-shadow: 0 0 12px rgba(201, 168, 106, 0.12);
}

.hero--weather .wx-verse-inner {
  flex: 1;
  min-width: 0;
}

.hero--weather .wx-verse-line {
  margin: 0;
  font-family: 'Noto Serif SC', serif;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1.85;
  color: var(--wx-verse-ink);
  transition: color 3s ease, opacity 0.65s ease, transform 0.65s ease;
}

.hero--weather .wx-verse-line--upper {
  font-size: clamp(13px, 1.65vw, 16px);
  margin-bottom: 0.12em;
}

.hero--weather .wx-verse-line--lower {
  font-size: clamp(12px, 1.45vw, 14.5px);
  font-weight: 300;
  opacity: 0.9;
}

.hero--weather .wx-verse-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em 1.25em;
  margin-top: clamp(10px, 1.5vh, 14px);
  padding-top: clamp(8px, 1.2vh, 12px);
  border-top: 1px solid rgba(201, 168, 106, 0.14);
}

.hero--weather .wx-verse-from {
  font-family: 'Noto Serif SC', serif;
  font-size: clamp(10px, 1.1vw, 11.5px);
  letter-spacing: 0.12em;
  color: var(--wx-verse-muted);
}

.hero--weather .wx-verse-from::before {
  content: '「';
  margin-right: 0.12em;
  opacity: 0.62;
}

.hero--weather .wx-verse-from::after {
  content: '」';
  margin-left: 0.08em;
  opacity: 0.62;
}

.hero--weather .wx-verse-from[hidden] {
  display: none;
}

.hero--weather .wx-verse-status {
  margin-left: auto;
  font-family: 'IBM Plex Mono', 'Noto Sans SC', sans-serif;
  font-size: clamp(10px, 1.05vw, 11px);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  color: var(--wx-verse-muted);
  opacity: 0;
  transition: opacity 1.2s ease 0.35s, color 3s ease;
  white-space: nowrap;
}

.hero--weather .wx-verse-status.show {
  opacity: 1;
}

.hero--weather .wx-verse--refresh .wx-verse-line--upper,
.hero--weather .wx-verse--refresh .wx-verse-line--lower {
  animation: wx-verse-in 0.72s ease both;
}

.hero--weather .wx-verse--refresh .wx-verse-line--lower {
  animation-delay: 0.08s;
}

@keyframes wx-verse-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero--weather .wx-verse--refresh .wx-verse-line--upper,
  .hero--weather .wx-verse--refresh .wx-verse-line--lower {
    animation: none;
  }
}

.hero--weather .wx-clock {
  position: absolute;
  right: clamp(1.8rem, 4vw, 3.3rem);
  bottom: clamp(9.2rem, 18vh, 11.5rem);
  z-index: 26;
  text-align: right;
  font-family: 'Noto Serif SC', serif;
  color: rgba(255, 250, 240, 0.88);
  pointer-events: none;
  transition: color 3s ease;
  transform-style: preserve-3d;
  will-change: transform;
  transform:
    translate3d(calc(var(--wx-pan-x) * 0.66), calc(var(--wx-pan-y) * 0.52), 225px)
    rotateX(calc(var(--wx-tilt-x) * 0.65))
    rotateY(calc(var(--wx-tilt-y) * 0.62));
}

.hero--weather .wx-clock-now {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
}

.hero--weather .wx-clock-date {
  margin-top: 0.35rem;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.18em;
  opacity: 0.55;
}

.portal-app.n-layout--light .hero--weather .wx-badge {
  background: rgba(255, 253, 248, 0.78);
  border-color: rgba(154, 102, 64, 0.22);
  color: #3b3429;
  box-shadow: 0 8px 28px rgba(44, 36, 24, 0.1);
}

.portal-app.n-layout--light .hero--weather,
html[data-dq-theme='light'] .hero--weather {
  --mh-ink: 44, 42, 40;
  --mh-ink-muted: 74, 68, 62;
  --mh-gold: 154, 102, 64;
}

.portal-app.n-layout--light .hero--weather .wx-badge .b-temp {
  color: #9a6640;
}

.portal-app.n-layout--light .hero--weather .mountain-wx-line.show {
  color: rgba(74, 68, 62, 0.72);
}

.portal-app.n-layout--light .hero--weather .wx-hero-title {
  color: rgba(59, 52, 41, 0.9);
}

.portal-app.n-layout--light .hero--weather .wx-verse,
html[data-dq-theme='light'] .hero--weather .wx-verse {
  --wx-verse-ink: rgba(38, 33, 28, 0.92);
  --wx-verse-muted: rgba(74, 68, 62, 0.62);
}

.portal-app.n-layout--light .hero--weather .wx-verse-rail,
html[data-dq-theme='light'] .hero--weather .wx-verse-rail {
  background: linear-gradient(
    180deg,
    rgba(154, 102, 64, 0.06),
    rgba(154, 102, 64, 0.58) 20%,
    rgba(124, 88, 56, 0.48) 80%,
    rgba(154, 102, 64, 0.05)
  );
  box-shadow: none;
}

.portal-app.n-layout--light .hero--weather .wx-verse-foot,
html[data-dq-theme='light'] .hero--weather .wx-verse-foot {
  border-top-color: rgba(154, 102, 64, 0.16);
}

.portal-app.n-layout--light .hero--weather .wx-verse-line--lower,
html[data-dq-theme='light'] .hero--weather .wx-verse-line--lower {
  opacity: 0.82;
}

.portal-app.n-layout--light .hero--weather .wx-clock {
  color: rgba(59, 52, 41, 0.85);
}

.portal-app.n-layout--light .hero--weather .mountain-sub,
html[data-dq-theme='light'] .hero--weather .mountain-sub {
  color: rgba(52, 46, 40, 0.92);
  text-shadow: 0 1px 0 rgba(255, 253, 248, 0.62), 0 2px 6px rgba(255, 248, 236, 0.35);
}

.portal-app.n-layout--light .hero--weather .mountain-bottom-text,
html[data-dq-theme='light'] .hero--weather .mountain-bottom-text {
  color: rgba(74, 68, 62, 0.68);
}

.portal-app.n-layout--light .hero--weather .btn-explore,
html[data-dq-theme='light'] .hero--weather .btn-explore {
  color: rgba(59, 52, 41, 0.9);
  border-color: rgba(154, 102, 64, 0.38);
  background: rgba(154, 102, 64, 0.12);
}

.portal-app.n-layout--light .hero--weather .btn-explore:hover,
html[data-dq-theme='light'] .hero--weather .btn-explore:hover {
  color: rgba(74, 52, 36, 0.95);
  border-color: rgba(154, 102, 64, 0.56);
  background: rgba(154, 102, 64, 0.2);
}

.portal-app.n-layout--light .hero--weather .wx-hero-block,
html[data-dq-theme='light'] .hero--weather .wx-hero-block {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.portal-app.n-layout--light .hero--weather .wx-seal,
html[data-dq-theme='light'] .hero--weather .wx-seal {
  color: rgba(102, 72, 45, 0.92);
  border-color: rgba(124, 88, 56, 0.52);
  background: linear-gradient(145deg, rgba(154, 102, 64, 0.14), rgba(246, 241, 232, 0.36));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 252, 0.55);
}

/* 调试面板：右下角齿轮，避免遮挡左侧标题 */
.wx-debug-toggle {
  display: flex;
}

.wx-debug-panel {
  display: block;
}

.wx-debug-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: auto;
  z-index: 100;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(30, 28, 25, 0.75);
  backdrop-filter: blur(16px);
  color: rgba(255, 255, 250, 0.6);
  font-size: 1.2rem;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.wx-debug-panel {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  left: auto;
  z-index: 99;
  width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: rgba(18, 16, 14, 0.88);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(201, 168, 106, 0.14);
  border-radius: 14px;
  padding: 1rem;
  color: rgba(241, 237, 227, 0.85);
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.wx-debug-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.wx-debug-panel .dp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  cursor: pointer;
}

.wx-debug-panel .dp-switch {
  width: 38px;
  height: 20px;
  border-radius: 10px;
  background: rgba(255, 255, 250, 0.12);
  position: relative;
  flex-shrink: 0;
}

.wx-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.wx-debug-head h3 {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
}

.wx-debug-badge {
  font-size: 0.58rem;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: rgba(201, 168, 106, 0.2);
  color: var(--gold-light, #e6c982);
  opacity: 0;
  transition: opacity 0.3s;
}

.wx-debug-badge.show {
  opacity: 1;
}

.wx-debug-panel .dp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}

.wx-debug-panel .dp-btn .ico {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.wx-debug-panel .dp-btn,
.wx-debug-panel .dp-phase-btn {
  padding: 0.45rem 0.2rem;
  text-align: center;
  background: rgba(255, 255, 250, 0.04);
  border: 1px solid rgba(255, 255, 250, 0.06);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.62rem;
  color: rgba(241, 237, 227, 0.72);
  transition: all 0.2s;
}

.wx-debug-panel .dp-btn.active,
.wx-debug-panel .dp-phase-btn.active {
  background: rgba(201, 168, 106, 0.18);
  border-color: rgba(201, 168, 106, 0.45);
  color: var(--gold-light, #e6c982);
}

.wx-debug-panel .dp-phase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.wx-debug-panel .dp-label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  opacity: 0.45;
  margin: 0.8rem 0 0.45rem;
}

.wx-debug-panel .dp-toggle-row span {
  font-size: 0.82rem;
}

.wx-debug-panel .dp-switch {
  position: relative;
  transition: background 0.3s;
}

.wx-debug-panel .dp-switch.on {
  background: rgba(201, 168, 106, 0.45) !important;
}

.wx-debug-panel .dp-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.3s;
}

.wx-debug-panel .dp-switch.on::after {
  transform: translateX(18px);
}

.wx-debug-panel .dp-slider-row {
  display: grid;
  grid-template-columns: 2.2rem 1fr auto;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
}

.wx-debug-panel .dp-slider-row input[type='range'] {
  width: 100%;
  accent-color: #c9a86a;
}

.wx-debug-panel .dp-slider-row .val {
  font-size: 0.62rem;
  opacity: 0.65;
  min-width: 3.2rem;
  text-align: right;
}

.wx-debug-quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.wx-debug-panel .dp-quick-btn {
  padding: 0.4rem 0.35rem;
  font-size: 0.62rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 250, 0.08);
  background: rgba(255, 255, 250, 0.04);
  color: rgba(241, 237, 227, 0.72);
  cursor: pointer;
  transition: all 0.2s;
}

.wx-debug-panel .dp-quick-btn:hover {
  border-color: rgba(201, 168, 106, 0.35);
  color: var(--gold-light, #e6c982);
}

.wx-debug-status {
  margin: 0.75rem 0 0;
  font-size: 0.62rem;
  line-height: 1.5;
  opacity: 0.5;
  letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  .hero--weather .wx-fog-band,
  .hero--weather .wx-bird,
  .hero--weather .wx-dust,
  .hero--weather .wx-ambient-sheen {
    animation: none !important;
  }
  .hero--weather,
  .hero--weather .wx-scene,
  .hero--weather .wx-fog-wrap,
  .hero--weather .wx-dust-layer,
  .hero--weather .wx-birds,
  .hero--weather .mountain-grain,
  .hero--weather .mountain-title-box,
  .hero--weather .wx-badge.show,
  .hero--weather .wx-clock {
    transform: none;
  }
}

@media (max-width: 768px) {
  .hero--weather .mountain-title-center {
    left: 1rem;
    right: 1rem;
    max-width: none;
    width: auto;
    top: 54%;
    transform: translateY(-50%);
  }

  .hero--weather .mountain-title-glow {
    left: 28%;
    top: 52%;
    transform: translate(-40%, -50%);
  }

  .hero--weather .mountain-bottom-text {
    left: 1rem;
  }

  .hero--weather .wx-badge {
    right: 0.75rem;
    left: 0.75rem;
    top: calc(var(--nav-height, 64px) + 0.5rem);
    padding: 0.65rem 1rem;
  }

  .hero--weather .wx-clock {
    right: 0.95rem;
    bottom: 10.5rem;
  }

  .hero--weather .scroll-hint {
    right: 0.9rem;
    bottom: 1.05rem;
  }

  .hero--weather .wx-hero-title {
    letter-spacing: 0.28em;
    text-indent: 0.28em;
  }

  .wx-debug-panel {
    width: min(320px, calc(100vw - 2rem));
    right: 1rem;
    left: auto;
  }

  .wx-debug-toggle {
    right: 1rem;
    left: auto;
  }
}
