:root {
  --red: #d52b1e;
  --red-on-dark: #f05545;
  --wechat-green: #95D36D;
  --wechat-green-dim: rgba(149, 211, 109, 0.16);
  --wechat-green-glow: rgba(149, 211, 109, 0.55);
  --wechat-sent-ink: #111610;
  --wechat-recv-bg: #2c2c30;
  --wechat-recv-border: rgba(255, 255, 255, 0.075);
  --weui-bg-card: #18181c;
  --weui-fg-0: rgba(255, 255, 255, 0.92);
  --weui-fg-1: rgba(255, 255, 255, 0.56);
  --weui-fg-2: rgba(255, 255, 255, 0.38);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Inter, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  font-variant-ligatures: none;
  font-variant-numeric: tabular-nums;
  background: #0a0a0d;
  color: #ffffff;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 10px 12px;
}

html.is-embedded,
html.is-embedded body {
  min-height: 0;
  overflow: hidden;
}

html.is-embedded body {
  align-items: flex-start;
  padding: 10px 12px 16px;
}

.hero-mono {
  font-family: var(--mono);
  font-variant-ligatures: none;
}

/* 外框与点阵背景，复刻 laya.studio .hero-stage.hero-window */
.hero-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: min(1104px, 100%);
  max-width: 100%;
  min-width: 0;
  direction: ltr;
  background:
    radial-gradient(1200px 600px at 50% -20%, rgba(255, 255, 255, 0.04), transparent 60%),
    rgb(14, 14, 17);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1.2px);
  background-size: 26px 26px;
  background-position: 13px 13px;
  mask-image: radial-gradient(75% 70% at 50% 55%, rgb(0, 0, 0) 25%, rgba(0, 0, 0, 0.35) 60%, transparent 90%);
}

.hero-window {
  border: 1px solid rgb(42, 42, 48);
  border-radius: 8px;
  box-shadow: -6px 6px 0 -1px var(--red), 0 24px 70px rgba(0, 0, 0, 0.7);
}

/* 顶部窗口栏 */
.hero-window-bar {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 6px 10px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.024);
}

.hero-window-dots {
  display: none;
  gap: 6px;
}

.hero-window-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

@media (min-width: 640px) {
  .hero-window-dots {
    display: inline-flex;
  }
}

.hero-tabs {
  display: flex;
  flex: 1 1 0%;
  min-width: 0;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-tabs::-webkit-scrollbar {
  display: none;
}

@media (max-width: 639px) {
  .hero-tabs {
    padding-right: 10px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 16px), transparent);
  }
}

.hero-tab {
  position: relative;
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 12px 8px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.12s, background-color 0.12s;
  cursor: pointer;
}

.hero-tab:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.hero-tab[aria-selected="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.hero-tab:focus-visible,
.hero-window-lang:focus-visible,
.hero-window-pause:focus-visible,
.hero-lang-option:focus-visible {
  outline: 2px solid var(--wechat-green);
  outline-offset: 2px;
}

.hero-tab-progress {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
  opacity: 0;
}

.hero-tab[aria-selected="true"] .hero-tab-progress {
  opacity: 1;
}

.hero-tab-progress::after {
  content: "";
  position: absolute;
  inset: 0;
  transform-origin: left center;
  transform: scaleX(var(--hero-progress, 0));
  background: var(--wechat-green);
}

/* 多语言下拉选择器 */
.hero-lang-wrap {
  position: relative;
  flex: 0 0 auto;
}

.hero-window-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--mono);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s, background-color 0.12s;
}

.hero-window-lang:hover,
.hero-window-lang[aria-expanded="true"] {
  color: #ffffff;
  border-color: rgba(149, 211, 109, 0.55);
  background: rgba(149, 211, 109, 0.08);
}

.hero-window-lang-flag {
  width: 15px;
  height: 11px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-window-lang-caret {
  width: 10px;
  height: 10px;
  opacity: 0.65;
}

.hero-lang-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 50;
  width: 210px;
  max-height: 310px;
  overflow-y: auto;
  padding: 5px;
  border-radius: 10px;
  background: #1b1c22;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.72);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.hero-lang-menu[hidden] {
  display: none !important;
}

.hero-lang-option {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--sans);
  font-size: 12.5px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.1s, color 0.1s;
}

.hero-lang-option:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #ffffff;
}

.hero-lang-option[aria-selected="true"] {
  background: rgba(149, 211, 109, 0.14);
  color: var(--wechat-green);
  font-weight: 600;
}

.hero-lang-option-code {
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.42);
}

.hero-lang-option[aria-selected="true"] .hero-lang-option-code {
  color: rgba(149, 211, 109, 0.85);
}

.hero-window-pause {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: color 0.12s, border-color 0.12s;
}

.hero-window-pause:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.35);
}

.hero-window-pause svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

/* 主体三栏网格（移动端纵向排版，防溢出且不遮挡地球） */
.hero-window-body {
  position: relative;
  padding: 18px 12px 16px;
}

@media (min-width: 768px) {
  .hero-window-body {
    padding: 24px 24px 18px;
  }
}

.hero-scene {
  --scene-gap: 20px;
  position: relative;
  width: 100%;
  min-width: 0;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  justify-items: center;
}

.hero-orb {
  position: relative;
  width: min(100%, 350px);
  aspect-ratio: 1 / 1;
  margin: 4px auto 2px;
  z-index: 0;
  order: -1;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

@media (min-width: 640px) and (max-width: 1023px) {
  .hero-orb {
    width: min(100%, 420px);
    aspect-ratio: 10 / 9;
  }
}

.hero-orb.is-dragging {
  cursor: grabbing;
}

.hero-orb-canvas {
  position: absolute;
  left: -14%;
  top: -14%;
  width: 128%;
  height: 128%;
  display: block;
  pointer-events: none;
  will-change: opacity, transform;
}

/* COBE v2 Polaroids 地球舞台（与暗色 Laya 点阵界面统一协调） */
.hero-cobe-stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.95);
  will-change: opacity, transform;
}

.hero-cobe-stage::before {
  content: "";
  position: absolute;
  width: min(92%, 392px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(240, 85, 69, 0.085) 0%,
    rgba(255, 255, 255, 0.032) 48%,
    transparent 72%
  );
  pointer-events: none;
}

.hero-cobe-frame {
  position: relative;
  width: min(86%, 352px);
  aspect-ratio: 1;
  overflow: visible;
  contain: style;
}

@media (min-width: 1024px) {
  .hero-cobe-frame {
    width: min(94%, 386px);
  }
}

.hero-cobe-canvas {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-cobe-pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 126%;
  height: 126%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

/* shuding/cobe Polaroids 经典拍立得卡片样式 */
.hero-polaroid {
  position: absolute;
  bottom: anchor(top);
  left: anchor(center);
  translate: -50% 0;
  margin-bottom: 7px;
  background: #f5f4f0;
  padding: 4px 4px 16px;
  border-radius: 2px;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.62),
    0 2px 6px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.14);
  transform: rotate(var(--polaroid-rotate, 0deg));
  transform-origin: center bottom;
  transition: opacity 0.35s ease, filter 0.35s ease;
  pointer-events: none;
  z-index: 2;
}

.hero-polaroid img {
  display: block;
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 1px;
  background: #1a1a1f;
}

.hero-polaroid-caption {
  position: absolute;
  bottom: 3px;
  left: 2px;
  right: 2px;
  text-align: center;
  font-family: var(--sans);
  font-size: 7px;
  font-weight: 600;
  color: #26262c;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 无 CSS Anchor Positioning 浏览器降级定位 */
@supports not (anchor-name: --test) {
  .hero-polaroid {
    bottom: auto;
    left: var(--fallback-x, 50%);
    top: var(--fallback-y, 50%);
    translate: -50% calc(-100% - 8px);
  }
}

@media (max-width: 639px) {
  .hero-polaroid {
    padding: 3px 3px 14px;
    margin-bottom: 6px;
  }
  .hero-polaroid img {
    width: 38px;
    height: 38px;
  }
  .hero-polaroid-caption {
    font-size: 6.5px;
    bottom: 3px;
  }
}

.hero-scene-req,
.hero-scene-res {
  width: min(100%, 460px);
  max-width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.hero-scene-note {
  grid-column: 1 / -1;
  max-width: 48rem;
  margin: 2px 0 0;
  text-align: center;
  text-wrap: balance;
  font-size: 11.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.45);
}

@media (min-width: 1024px) {
  .hero-scene {
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.28fr) minmax(0, 0.96fr);
    column-gap: var(--scene-gap);
    align-items: center;
  }
  .hero-orb {
    aspect-ratio: auto;
    height: 416px;
    width: 100%;
    margin: 0;
    grid-area: 1 / 2;
    order: 0;
  }
  .hero-scene-req {
    width: 100%;
    grid-area: 1 / 1;
  }
  .hero-scene-res {
    width: 100%;
    grid-area: 1 / 3;
  }
}

/* 左右微信聊天窗口容器（Tencent/weui Dark Mode 面板语义） */
.hero-card {
  position: relative;
  border-radius: 12px;
  overflow: visible;
  min-width: 0;
  background: var(--weui-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow:
    rgba(255, 255, 255, 0.035) 0px 1px 0px inset,
    rgba(0, 0, 0, 0.86) 0px 26px 54px -26px;
  animation: hero-card-in 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) 0s 1 normal both running;
}

@keyframes hero-card-in {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.hero-scene--out .hero-card {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.4s, transform 0.4s;
}

.hero-card-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  min-height: 36px;
  font-size: 12px;
  color: var(--weui-fg-1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.022);
  border-radius: 12px 12px 0 0;
  min-width: 0;
}

.hero-card-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.hero-card-meta {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.46);
  white-space: nowrap;
}

.hero-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
  min-width: 0;
}

.hero-card-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wechat-green);
  box-shadow: 0 0 8px var(--wechat-green-glow);
}

.hero-chat-body {
  position: relative;
  padding: 13px 12px 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .hero-chat-body {
    min-height: 192px;
    padding: 15px 13px 17px;
  }
}

.chat-typing-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  font-size: 12px;
  color: var(--weui-fg-2);
  pointer-events: none;
  opacity: 0;
  animation: chat-typing-window var(--typing-dur, 1s) ease-in-out var(--typing-delay, 0s) 1 normal both running;
}

@keyframes chat-typing-window {
  0% { opacity: 0; }
  18% { opacity: 1; }
  84% { opacity: 1; }
  100% { opacity: 0; }
}

.chat-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.chat-typing-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wechat-green);
  opacity: 0.45;
  animation: chat-dot-pulse 0.9s ease-in-out infinite;
}

.chat-typing-dot:nth-child(2) {
  animation-delay: 0.18s;
}

.chat-typing-dot:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes chat-dot-pulse {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* 可复用的微信风格消息组件 (.chat-message) */
.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.chat-message--sent {
  flex-direction: row-reverse;
  animation: chat-msg-sent-in 0.38s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both running;
}

.chat-message--received {
  flex-direction: row;
  animation: chat-msg-recv-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0s 1 normal both running;
}

@keyframes chat-msg-sent-in {
  0% {
    opacity: 0;
    transform: translate3d(8px, 6px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

@keyframes chat-msg-recv-in {
  0% {
    opacity: 0;
    transform: translate3d(-8px, 6px, 0);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.chat-avatar {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #28282f;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.chat-avatar svg,
.chat-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.chat-main {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  max-width: calc(100% - 48px);
}

.chat-message--sent .chat-main {
  align-items: flex-end;
}

.chat-message--received .chat-main {
  align-items: flex-start;
}

.chat-meta {
  display: flex;
  align-items: baseline;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--weui-fg-1);
}

.chat-message--sent .chat-meta {
  flex-direction: row-reverse;
}

.chat-nickname {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.62);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.chat-time {
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--weui-fg-2);
  font-variant-numeric: tabular-nums;
}

.chat-bubble {
  position: relative;
  padding: 10px 12.5px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.56;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

@media (min-width: 1024px) and (max-width: 1200px) {
  .chat-bubble {
    font-size: 12.5px;
    padding: 9px 11px;
  }
  .chat-avatar {
    width: 34px;
    height: 34px;
  }
  .chat-main {
    max-width: calc(100% - 44px);
  }
}

.chat-message--sent .chat-bubble {
  background: var(--wechat-green);
  color: var(--wechat-sent-ink);
  font-weight: 450;
}

.chat-message--sent .chat-bubble::after {
  content: "";
  position: absolute;
  top: 12px;
  right: -4px;
  width: 9px;
  height: 9px;
  background: var(--wechat-green);
  transform: rotate(45deg);
  border-radius: 0 2px 0 0;
  pointer-events: none;
}

.chat-message--received .chat-bubble {
  background: var(--wechat-recv-bg);
  color: var(--weui-fg-0);
  border: 1px solid var(--wechat-recv-border);
}

.chat-message--received .chat-bubble::before {
  content: "";
  position: absolute;
  top: 12px;
  left: -5px;
  width: 9px;
  height: 9px;
  background: var(--wechat-recv-bg);
  border-left: 1px solid var(--wechat-recv-border);
  border-bottom: 1px solid var(--wechat-recv-border);
  transform: rotate(45deg);
  border-radius: 0 0 0 2px;
  pointer-events: none;
}

.chat-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

html[data-text-dir="rtl"] .chat-text,
html[data-text-dir="rtl"] .bulletin-desc,
html[data-text-dir="rtl"] .bulletin-search-text,
html[data-text-dir="rtl"] .bulletin-qr-hint,
html[data-text-dir="rtl"] .hero-scene-note {
  direction: rtl;
  text-align: right;
}

html[data-text-dir="rtl"] .bulletin-qr-hint,
html[data-text-dir="rtl"] .hero-scene-note {
  text-align: center;
}

html[data-text-dir="rtl"] .bulletin-headline {
  direction: rtl;
  text-align: right;
  padding-left: 0;
  padding-right: 10px;
  border-left: 0;
  border-right: 3px solid var(--wechat-green);
}

.chat-line {
  margin: 0;
}

.chat-line--anim {
  animation: hero-line-in 0.32s ease-out 0s 1 normal both running;
}

.chat-word {
  white-space: nowrap;
}

.chat-char {
  opacity: 0;
  animation: chat-char-in 0.14s ease-out 0s 1 normal both running;
}

@keyframes chat-char-in {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.hero-line {
  display: block;
  animation: hero-line-in 0.32s ease-out 0s 1 normal both running;
}

.hero-card-bar .hero-line {
  display: inline-flex;
}

@keyframes hero-line-in {
  0% {
    opacity: 0;
    transform: translateX(-3px);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.chat-metrics {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.chat-metric-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-metric-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  line-height: 1.35;
}

.chat-metric-label {
  color: rgba(255, 255, 255, 0.62);
}

.chat-metric-val {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--wechat-green);
  white-space: nowrap;
}

.hero-bar {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.hero-bar i {
  position: relative;
  flex: 1 1 0%;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.hero-bar i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left center;
  background: var(--wechat-green);
  transform: scaleX(var(--p));
  animation: hero-bar-in 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) 0s 1 normal both running;
  animation-delay: inherit;
}

@keyframes hero-bar-in {
  0% { transform: scaleX(0); }
}

.hero-link {
  display: none;
}

@media (min-width: 1024px) {
  .hero-link {
    display: block;
    position: absolute;
    top: 50%;
    height: 2px;
    width: calc(var(--scene-gap) + 28px);
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.28) 1px, transparent 1.4px) 0 50% / 8px 2px repeat-x;
  }
  .hero-link-out {
    left: 100%;
  }
  .hero-link-in {
    right: 100%;
  }
  .hero-packet {
    position: absolute;
    left: -4px;
    top: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wechat-green);
    box-shadow: 0 0 10px var(--wechat-green-glow);
    animation-name: hero-packet;
    animation-duration: 0.6s;
    animation-timing-function: cubic-bezier(0.5, 0, 0.5, 1);
    animation-fill-mode: both;
  }
  @keyframes hero-packet {
    0% {
      transform: translateX(0px);
      opacity: 0;
    }
    15% { opacity: 1; }
    85% { opacity: 1; }
    100% {
      transform: translateX(calc(var(--scene-gap) + 28px));
      opacity: 0;
    }
  }
}

/* Globe 标签页专用：WeUI Dark Mode 公告栏与粒子汇聚二维码舞台 */
.hero-card--bulletin .hero-card-bar {
  background: rgba(149, 211, 109, 0.045);
  border-bottom-color: rgba(149, 211, 109, 0.13);
}

.bulletin-badge-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--wechat-green);
}

.bulletin-body {
  position: relative;
  padding: 16px 15px 17px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
  min-width: 0;
}

@media (min-width: 1024px) {
  .bulletin-body {
    min-height: 220px;
  }
}

.bulletin-body--qr {
  align-items: center;
  padding: 13px 14px 15px;
  gap: 11px;
}

.bulletin-headline {
  margin: 0;
  padding-left: 10px;
  border-left: 3px solid var(--wechat-green);
  font-size: 15.5px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.96);
}

.bulletin-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.66;
  color: rgba(255, 255, 255, 0.76);
}

.bulletin-search-box {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.038);
  border: 1px solid rgba(149, 211, 109, 0.24);
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  min-width: 0;
}

.bulletin-search-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--wechat-green);
}

.bulletin-search-text {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.bulletin-kw {
  color: var(--wechat-green);
  font-weight: 600;
}

.bulletin-qr-stage {
  position: relative;
  width: 189px;
  height: 189px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #1d1e24;
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.46),
    inset 0 0 0 1px rgba(149, 211, 109, 0.26);
  overflow: hidden;
}

.bulletin-qr-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 1;
}

.bulletin-qr-hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--weui-fg-2);
  text-align: center;
}

.hero-stage.is-paused .hero-scene *,
.hero-stage.is-paused .hero-scene *::before,
.hero-stage.is-paused .hero-scene *::after {
  animation-play-state: paused !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-card,
  .chat-message,
  .chat-line--anim,
  .hero-line,
  .hero-bar i::after {
    animation-duration: 0.01s !important;
    transition-duration: 0.01s !important;
    transform: none !important;
  }
  .chat-char {
    animation: none !important;
    opacity: 1 !important;
  }
  .hero-packet,
  .chat-typing-dot {
    animation: none !important;
    opacity: 0 !important;
  }
  .hero-polaroid,
  .hero-scene--out .hero-card {
    transition: none !important;
  }
}
