/* TradingVane 宣传页「进入系统」入口（右上角 + 首屏），2026-07-12 随部署新增。
   替代原顶部胶囊导航（2D DATA / 3D ALERT / HEAT CLOUD / TRADING SCHOOLS）。 */

/* —— 右上角入口（描边胶囊，悬停反色，与原 pill 导航同语言） —— */
.header-enter-cta {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 1.45rem;
  border: 1px solid rgba(142, 231, 255, 0.52);
  border-radius: 999px;
  background: rgba(5, 12, 18, 0.64);
  color: #eafbff;
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(79, 195, 255, 0.16) inset, 0 0 16px rgba(79, 195, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.header-enter-cta:hover,
.header-enter-cta:focus-visible {
  background: rgba(239, 252, 255, 0.94);
  color: #06131b;
  box-shadow: 0 0 30px rgba(79, 195, 255, 0.42);
  transform: translateY(-1px);
}
.header-enter-arrow {
  transition: transform 0.25s ease;
}
.header-enter-cta:hover .header-enter-arrow,
.header-enter-cta:focus-visible .header-enter-arrow {
  transform: translateX(3px);
}

/* —— 首屏主入口（人像下方居中，实心高对比主按钮） —— */
.hero-enter {
  position: absolute;
  left: 50%;
  bottom: clamp(5.6rem, 11vh, 8.4rem);
  z-index: 34; /* 必须高于 scroll-hint(title-contrast 提到 33)——其不可见点击盒上探
                  会盖住按钮中央,曾导致点「进入系统」实际触发「向下继续」 */
  pointer-events: none;
  transform: translateX(-50%);
  animation: heroEnterRise 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.hero-enter-btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 2.6rem;
  border: 1px solid rgba(142, 231, 255, 0.65);
  border-radius: 999px;
  background: rgba(239, 252, 255, 0.93);
  color: #06131b;
  font-family: Fira Code, ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 36px rgba(79, 195, 255, 0.35), 0 12px 30px rgba(3, 8, 12, 0.5);
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.hero-enter-btn:hover,
.hero-enter-btn:focus-visible {
  background: #ffffff;
  box-shadow: 0 0 48px rgba(79, 195, 255, 0.55), 0 14px 34px rgba(3, 8, 12, 0.55);
  transform: translateY(-2px);
}
.hero-enter-arrow {
  transition: transform 0.25s ease;
}
.hero-enter-btn:hover .hero-enter-arrow,
.hero-enter-btn:focus-visible .hero-enter-arrow {
  transform: translateX(4px);
}
@keyframes heroEnterRise {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* 原设计首幕（scene 0）隐藏顶栏，企业站需要 logo + 右上角入口常驻，此处恢复。
   需在 index-B69TIeF2.css / title-contrast.css 之后加载才能覆盖同特异性规则。 */
.hero[data-scene="0"] .site-header {
  opacity: 1;
}

/* —— 页脚备案合规：版权行 + ICP 备案号(→ 工信部) + 公安徽标编号(→ 公安部查询)。
     单行流式排布、竖线分隔，盖过 title-contrast 的两列网格与首项加粗样式；
     链接需盖过 .footer-bottom a 的胶囊按钮样式，按大陆惯例呈现纯文字小链接。 —— */
.footer-page .footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.45rem;
  max-width: none;
  color: rgba(231, 249, 255, 0.62);
}
.footer-page .footer-legal span:first-child {
  color: inherit;
  font-weight: inherit;
}
.footer-legal-divider {
  margin: 0 0.85em;
  opacity: 0.32;
  user-select: none;
}
.footer-bottom .footer-beian-link {
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.4em;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: inherit;
  color: inherit;
  text-decoration: none;
}
.footer-bottom .footer-beian-link:hover,
.footer-bottom .footer-beian-link:focus-visible {
  color: #fff;
  filter: none;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}
.footer-beian-icon {
  width: 14px;
  height: auto;
  flex: none;
}

/* ═══ 尾幕过渡:消除星空场景与页脚的硬切割裂 ═══
   原状:sticky 星空画布被推出时底缘硬切;页脚顶缘有高亮光斑(72% -18% 等)与
   被 overflow 裁断的轨道圆环,形成亮色矩形接缝。
   方案:① 星空底缘渐隐到页面底色 #05060a;② 页脚顶部同色承接、再渐入原毛玻璃
   质感,高亮光斑下移弱化;③ 圆环下移 + 顶部渐隐蒙版;④ 纵向空隙收紧。 */

/* ① 星空画布底缘渐隐(z6:盖过 webgl stage(5),低于 hitarea(8)/scroll-hint(12)/文案(30)) */
.story-scroll .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(7rem, 17svh, 11.5rem);
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0) 0%, rgba(5, 6, 10, 0.3) 38%, rgba(5, 6, 10, 0.72) 68%, #05060a 100%);
}

/* ② 页脚幕布:整幕 100svh 毛玻璃,上缘回叠进 sticky 星空的粘滞区间——
      星空全程钉住不被顶走,收尾只剩"玻璃幕布滑入"单一运动;
      且最后一段吸附行程与前五幕同为整屏,滚动节奏完全一致。
      顶部半透明渐入深色(星空透过磨砂上缘),玻璃边配发丝线与上投影。 */
.story-scroll::after {
  content: "";
  display: block;
  height: 100svh;
}
.story-scroll + .footer-page {
  min-height: 100svh;
  margin-top: -100svh;
  border-top: 1px solid rgba(142, 231, 255, 0.12);
  box-shadow: 0 -22px 52px rgba(2, 6, 12, 0.5);
  /* 性能重构:关掉 34px 实时毛玻璃(盖在动态 WebGL 上每帧重滤,滚动掉帧主因),
     换成预混高不透明度渐变;顶部仍留星光隐约透出的余地 */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* 顶部 ~18rem 内星光隐透(该区域只有星野与光环弧),中下部完全不透明遮住人像 */
  background:
    linear-gradient(180deg, rgba(5, 6, 10, 0.82) 0%, rgba(5, 6, 10, 0.93) 8rem, rgba(6, 10, 16, 0.99) 14rem, #060a10 18rem),
    radial-gradient(ellipse at 74% 22%, rgba(202, 246, 255, 0.11), transparent 18rem),
    radial-gradient(ellipse at 84% 44%, rgba(138, 107, 255, 0.09), transparent 14rem),
    radial-gradient(circle at 8% 84%, rgba(79, 195, 255, 0.07), transparent 24rem),
    linear-gradient(180deg, #070e16 0%, #081018 45%, #05070c 100%);
  padding-top: clamp(4.2rem, 7vw, 6.5rem);
}

/* 页脚内容随幕布滑入渐显上浮(scroll-driven animation,渐进增强) */
@supports (animation-timeline: view()) {
  .footer-shell {
    animation: footerShellRise linear both;
    animation-timeline: view(block);
    animation-range: entry 15% entry 100%;
  }
  @keyframes footerShellRise {
    from {
      opacity: 0.1;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .footer-shell {
    animation: none;
  }
}

/* ③ 装饰圆环:顶部渐隐蒙版化解 overflow 裁切的生硬边,整体弱化 */
.footer-page .footer-orbit {
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 62%);
  mask-image: linear-gradient(180deg, transparent 30%, #000 62%);
}

/* ④ 收紧列区与底栏之间的空档(原 clamp(2.4rem,5vw,4.5rem) 过大) */
.footer-shell .footer-bottom {
  margin-top: clamp(1.5rem, 2.6vw, 2.4rem);
}

/* ═══ 滚动丝滑化:整页逐幕吸附 + 锚点平滑滚动 ═══
   页面本为 6 幕全屏结构但无吸附,滚轮停在幕间导致文案闪切、观感生硬。
   吸附点:幕0(story-scroll 顶) + 幕1-5(scroll-anchor) + 页脚底(end),
   幕间与"星空推出"过程只在滚动动画中经过,不可停留。 */
html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
}
.story-scroll {
  scroll-snap-align: start;
}
.scroll-anchor {
  scroll-snap-align: start;
}
.story-scroll + .footer-page {
  scroll-snap-align: end;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
    scroll-snap-type: none;
  }
}

/* ═══ 文字色统一:去暖金橙,归一到冰蓝-白-星紫(与深空/人像青紫氛围一致) ═══
   原 story-intro/body 渐变混入 #fff0a8/#ffb47a/#ffbd82 等金橙段,
   chips 偶数项为橙金底,页脚 kicker/描述拖金色尾巴,与主题相冲。
   注意:这些是 background-clip:text 渐变字,只覆写 background-image,
   保留原规则的 clip 设置。 */
.story-eyebrow {
  background-image: linear-gradient(90deg, #7fefff 0%, #fff 34%, #bfe4ff 68%, #d8c8ff 100%);
}
.story-intro {
  background-image: linear-gradient(92deg, #fff 0%, #a8f4ff 28%, #cfe9ff 60%, #a9d6ff 82%, #d8c8ff 100%);
}
.story-body {
  background-image: linear-gradient(95deg, #fff 0%, #c8f8ff 30%, #dceeff 58%, #b7dcff 78%, #d9ccff 100%);
}
.story-panel-right .story-eyebrow::after {
  background: linear-gradient(90deg, #8a6bff, rgba(79, 195, 255, 0));
}
.story-chips span {
  background: linear-gradient(135deg, rgba(33, 169, 214, 0.72) 0%, rgba(91, 115, 255, 0.6) 55%, rgba(138, 107, 255, 0.55) 100%);
  border-color: rgba(142, 231, 255, 0.82);
  text-shadow: 0 0 12px rgba(79, 195, 255, 0.6);
}
.story-chips span:nth-child(2n) {
  background: linear-gradient(135deg, rgba(105, 160, 255, 0.66) 0%, rgba(105, 207, 255, 0.55) 100%);
  border-color: rgba(142, 231, 255, 0.75);
  text-shadow: 0 0 12px rgba(142, 231, 255, 0.6);
}
.footer-kicker {
  background-image: linear-gradient(90deg, #8ee7ff, #fff, #c9c2ff);
}
.footer-description {
  background-image: linear-gradient(95deg, #fff, #bff5ff 45%, #d4e6ff 78%, #d9ccff);
}
.footer-page::after {
  background:
    radial-gradient(ellipse at 72% 0%, rgba(191, 230, 255, 0.08), transparent 19rem),
    linear-gradient(180deg, rgba(3, 6, 10, 0), rgba(5, 12, 20, 0.22) 45%, rgba(3, 6, 10, 0));
}

/* —— 移动端收紧 —— */
@media (max-width: 720px) {
  .header-enter-cta {
    padding: 0.5rem 1.05rem;
    font-size: 0.74rem;
    letter-spacing: 0.16em;
  }
  .hero-enter {
    bottom: clamp(4.8rem, 13vh, 6.6rem);
  }
  .hero-enter-btn {
    padding: 0.82rem 1.9rem;
    font-size: 0.88rem;
    letter-spacing: 0.18em;
  }
  .footer-page .footer-legal {
    display: grid;
    gap: 0.4rem;
  }
  .footer-legal-divider {
    display: none;
  }
}
