/* ==========================================================================
   GameWall 官网 · 视觉系统
   基调取自产品本体：深空黑底 + 电光青强调 + 琥珀点缀
   刻意避开"青转紫"渐变 —— 那是典型的 AI 生成感配色，产品设计上也一直在躲
   ========================================================================== */

:root {
  /* 底色层次：从最深到最浅，用来做纵深 */
  --void:      #05070A;
  --deep:      #080B10;
  --panel:     #0C1017;
  --raised:    #11161F;
  --line:      #1B2230;
  --line-soft: #151B26;

  /* 文字 */
  --text:      #E8EEF7;
  --text-mid:  #9AA8BC;
  --text-dim:  #6B7A90;
  --text-faint:#48546A;

  /* 强调色 */
  --cyan:      #3DDBFF;
  --cyan-deep: #12A8CC;
  --cyan-glow: rgba(61, 219, 255, .55);
  --amber:     #FFB64D;
  --amber-glow:rgba(255, 182, 77, .45);
  --mint:      #3DE8A0;
  --rose:      #FF5E7A;

  /* 尺寸 */
  --maxw: 1240px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --radius-xl: 32px;

  /* 字体 */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", sans-serif;
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas,
          "Liberation Mono", monospace;

  /* 动效曲线 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 页面底色自带一点极微弱的径向光，避免大面积死黑 */
  background-image:
    radial-gradient(1200px 700px at 50% -10%, rgba(61, 219, 255, .07), transparent 60%),
    radial-gradient(900px 600px at 90% 20%, rgba(255, 182, 77, .035), transparent 55%);
  background-attachment: fixed;
}

::selection { background: var(--cyan); color: #04070A; }

/* 滚动条跟着主题走，别出现系统默认的亮色条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb {
  background: #1E2735;
  border-radius: 6px;
  border: 2px solid var(--deep);
}
::-webkit-scrollbar-thumb:hover { background: #2A3648; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* ==========================================================================
   背景层：粒子星空 + 网格 + 噪点
   ========================================================================== */

#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .85;
}

/* 极细网格，给出"科技感"但不抢戏 */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 219, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 219, 255, .045) 1px, transparent 1px);
  background-size: 72px 72px;
  /* 用遮罩让网格只在页面中部可见，四周淡出 */
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 78%);
}

/* 一层极淡噪点，消掉渐变的色带 */
.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   布局
   ========================================================================== */

.wrap {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

/* 区块之间用渐隐分隔线，比一根实线干净 */
section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, var(--maxw));
  height: 1px;
  background: linear-gradient(90deg,
    transparent, var(--line-soft) 15%, var(--line) 50%, var(--line-soft) 85%, transparent);
}

/* ==========================================================================
   标题与文字
   ========================================================================== */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan));
}

h2.section-title {
  font-size: clamp(30px, 4.2vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

/* 标题后半段用青色渐变，强调关键信息 */
.grad-cyan {
  background: linear-gradient(100deg, var(--cyan) 0%, #7FE9FF 45%, var(--cyan-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-amber {
  background: linear-gradient(100deg, var(--amber), #FFD79A 60%, #E8952F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-lead {
  font-size: clamp(15px, 1.5vw, 17.5px);
  color: var(--text-mid);
  max-width: 660px;
  line-height: 1.85;
}

.section-head { margin-bottom: 64px; }
.section-head.center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-head.center .section-lead { margin: 0 auto; }
.section-head.center .eyebrow::before { display: none; }

/* ==========================================================================
   毛玻璃卡片
   ========================================================================== */

.glass {
  background: linear-gradient(160deg, rgba(23, 31, 43, .72), rgba(10, 14, 20, .55));
  border: 1px solid rgba(255, 255, 255, .065);
  border-radius: var(--radius-m);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  position: relative;
  overflow: hidden;
}

/* 卡片上沿的一道高光，模拟玻璃厚度 */
.glass::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  pointer-events: none;
}

/* ==========================================================================
   按钮
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 28px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  border: 1px solid transparent;
  transition: all .28s var(--ease-out);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* 主按钮：青色实心 + 外发光，是页面上唯一的强 CTA */
.btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, #24C4E8 100%);
  color: #03151B;
  box-shadow:
    0 8px 28px rgba(61, 219, 255, .26),
    inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 40px rgba(61, 219, 255, .42),
    inset 0 1px 0 rgba(255, 255, 255, .5);
}
.btn-primary:active { transform: translateY(0); }

/* 扫光：鼠标经过时一道高光斜着划过去 */
.btn-primary::after {
  content: "";
  position: absolute;
  top: 0; left: -140%;
  width: 70%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-22deg);
  transition: left .7s var(--ease-out);
}
.btn-primary:hover::after { left: 150%; }

.btn-ghost {
  background: rgba(255, 255, 255, .035);
  border-color: rgba(255, 255, 255, .11);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(61, 219, 255, .09);
  border-color: rgba(61, 219, 255, .45);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber), #F0A030);
  color: #1A1000;
  box-shadow: 0 8px 28px rgba(255, 182, 77, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
}
.btn-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(255, 182, 77, .38), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.btn svg { flex-shrink: 0; }

/* ==========================================================================
   滚动显现（由 JS 添加 .in）

   关键的写法约定：隐藏态只在 html.js 下生效。
   HTML 顶部有一段内联脚本先给 <html> 挂 .js，之后才渲染正文，
   所以正常情况下不会有闪烁；而一旦 JS 没跑起来、被 CSP 拦掉、
   或用户禁用脚本，.reveal 就是普通可见元素，页面永远不会白屏。
   反过来把 opacity:0 写成无条件声明，就等于拿内容做抵押——
   脚本一失手整页都是空的。
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* 尊重系统的"减少动态效果"设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
