/*
 * ============================================================================
 *  UppGame 官网样式表 (Index2.css)
 *  设计风格：浅色玻璃拟态 (Glassmorphism) + 酸性青柠色点缀 + 等宽字体
 *
 *  功能模块目录：
 *    01. 设计令牌 (:root CSS 变量)
 *    02. 全局重置与基础样式
 *    03. 全局视频背景 / 玻璃工具类
 *    04. 通用工具类 (切角、滚动显现、网格、扫描线)
 *    05. 顶部导航栏 (Logo / 链接 / 语言按钮)
 *    06. Hero 首屏 (旋转环、标题、按钮、数据条、滚动提示)
 *    07. 通用区块框架 (编号 + 标题)
 *    08. 核心能力区 (四宫格卡片 + 技术原理分栏)
 *    09. 最新动态区 (新闻列表)
 *    10. 云游戏库 (游戏卡片墙)
 *    11. 客户端下载区 (平台卡片 + 二维码)
 *    12. 发展历程 (竖向时间线)
 *    13. CTA 号召横幅
 *    14. 页脚
 *    15. 响应式适配 (<=1000px)
 * ============================================================================
 */

/* ============ 01. 设计令牌：全站统一的颜色 / 字体 / 阴影变量，改主题只改这里 ============ */
:root {
  --bg: #f2f4ee;            /* 页面主底色（米白） */
  --bg2: #ffffff;
  --panel: #ffffff;
  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .55);
  --glass-line: rgba(255, 255, 255, .65);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 10px 34px rgba(30, 40, 20, .08);
  --line: rgba(21, 21, 26, .10);
  --txt: #15151a;
  --txt-dim: #6e7074;
  --accent: #BBF56D;          /* AK-style acid lime */
  --accent-ink: #5f8f00;      /* darker lime for accent text on light bg */
  --accent2: #0aa3c9;
  --danger: #f04a4a;
  --font-mono: "Consolas", "SF Mono", "Roboto Mono", monospace;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

/* ============ 02. 全局重置与基础样式 ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;      /* 宽高包含 padding/border，布局计算更直观 */
}

html {
  scroll-behavior: smooth;
  background: #eef1e8;
}

body {
  background: transparent;
  color: var(--txt);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #000;
}

/* ============ 03. 全局视频背景：固定全屏，z-index:-2 沉于所有内容之下 ============ */
.video-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: linear-gradient(140deg, #eef1e6, #dfe8d8);
}

.video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 视频上的白色渐变蒙层：提亮画面，保证前景文字可读性 */
.video-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, .18) 45%, rgba(255, 255, 255, .45));
}

/* 玻璃拟态基础类：半透明背景 + 背景模糊，可直接加在任意容器上 */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}

/* ============ 04. 通用工具类：可在 HTML 中复用的原子样式 ============ */
/* 等宽字体强调（标签 / 编号 / 数据） */
.mono {
  font-family: var(--font-mono);
  letter-spacing: .12em;
}

/* 切角造型：右下角斜切（赛博/机能风标志处理） */
.cut {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
}

/* 切角造型：左上角斜切，与 .cut 方向相反 */
.cut-r {
  clip-path: polygon(28px 0, 100% 0, 100% 100%, 0 100%, 0 28px);
}

/*
 * 滚动显现初始态：透明 + 下移 36px。
 * 元素进入视口后由 Index2.js 加上 .on 类，过渡到可见状态。
 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}

.reveal.on {
  opacity: 1;
  transform: none;
}

/* 扫描线覆盖层：细密横线纹理覆盖全站，营造 CRT 屏幕质感（pointer-events:none 不挡点击） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, .02) 3px 4px);
}

/* 工程网格底纹：80px 方格 + 径向遮罩，仅在 Hero/CTA 等区块局部出现 */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: .5;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
}

/* ============ 05. 顶部导航栏：固定置顶、毛玻璃背景，z-index:100 ============ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw;
  height: 64px;
  background: rgba(255, 255, 255, .5);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}

/* ----- Logo 区（图标 + 文字，点击回到顶部） ----- */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
  display: block;
  box-shadow: 0 2px 10px rgba(71, 82, 60, 0.767);
}

.logo-txt {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .06em;
}

.logo-txt b {
  color: #92d40d;
}

/* ----- 导航链接组 ----- */
nav.links {
  display: flex;
  gap: 34px;
}

nav.links a {
  color: var(--txt-dim);
  text-decoration: none;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  position: relative;
  padding: 6px 0;
  transition: color .25s;
}

/* 下划线伪元素：默认宽度 0，悬停 / .active 时展开为 100%，形成扫入动画 */
nav.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width .3s;
}

/* 悬停：文字加深；选中项（.active）：青柠色 + 加粗，与悬停态明确区分 */
nav.links a:hover {
  color: var(--txt);
}

nav.links a.active {
  color: var(--accent-ink);
}

nav.links a:hover::after,
nav.links a.active::after {
  width: 100%;
}

/* 移动端折叠菜单开关：桌面端隐藏，<=1000px 时显示 */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 38px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .35);
  cursor: pointer;
  transition: .25s;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--txt);
  transition: .25s;
}

.nav-toggle:hover {
  border-color: var(--accent-ink);
}

.nav-toggle:hover span {
  background: var(--accent-ink);
}

/* ----- 语言切换下拉框 ----- */
/* 定位上下文：下拉菜单相对它绝对定位 */
.lang-select {
  position: relative;
}

/* 触发按钮：玻璃描边样式，显示当前语言代码 + 箭头 */
.lang-current {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  border: 1px solid var(--line);
  color: var(--txt-dim);
  padding: 8px 14px;
  cursor: pointer;
  background: rgba(255, 255, 255, .35);
  transition: .25s;
}

.lang-current:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* 箭头：下拉打开时旋转 180° */
.lang-caret {
  width: 10px;
  height: 7px;
  transition: transform .3s;
}

.lang-select.open .lang-caret {
  transform: rotate(180deg);
}

.lang-select.open .lang-current {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* 下拉菜单：右对齐弹出，默认隐藏（透明 + 上移），.open 时淡入 */
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 158px;
  list-style: none;
  padding: 8px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}

.lang-select.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 选项：圆角胶囊，悬停浅色底 */
.lang-item {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--txt-dim);
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;
}

.lang-item:hover {
  background: rgba(255, 255, 255, .7);
  color: var(--txt);
}

/* 当前选中项：青柠胶囊 + 深色字，与悬停态明确区分 */
.lang-item.selected {
  background: var(--accent);
  color: #000;
  font-weight: 700;
}

.lang-item.selected:hover {
  background: var(--accent);
  color: #000;
}

/*
 * ============ 06. Hero 首屏 ============
 * 满屏居中布局：背景旋转环 + 中央文案 + 底部数据条
 */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ----- 背景装饰圆环（基础类，r1/r2/r3 控制尺寸 / 方向 / 样式） ----- */
.hero-ring {
  position: absolute;
  border: 1px solid rgba(187, 245, 109, .18);
  border-radius: 50%;
  animation: spin 60s linear infinite;
}

.hero-ring.r1 {
  width: 70vmin;
  height: 70vmin;
  animation-duration: 80s;
}

.hero-ring.r2 {
  width: 52vmin;
  height: 52vmin;
  animation-direction: reverse;
  animation-duration: 55s;
  border-color: rgba(74, 208, 240, .15);
}

.hero-ring.r3 {
  width: 88vmin;
  height: 88vmin;
  border-style: dashed;
  opacity: .4;
}

/* 匀速旋转动画（圆环装饰用） */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ----- 中央文案容器 ----- */
.hero-core {
  position: relative;
  text-align: center;
  z-index: 2;
  padding: 0 5vw;
}

.hero-eyebrow {
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 13px;
  letter-spacing: .5em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(46px, 8.5vw, 118px);
  font-weight: 900;
  line-height: .98;
  letter-spacing: .01em;
}

/* .out：镂空描边字；.fill：实心青柠色字 —— 两种样式交错排列 */
.hero-title .out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--txt);
}

.hero-title .fill {
  color: var(--accent-ink);
}

.hero-sub {
  margin: 26px auto 0;
  max-width: 640px;
  color: var(--txt-dim);
  font-size: 16px;
  line-height: 1.9;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- 按钮基础类：全站按钮共用的字号 / 间距 / 字体 ----- */
.btn {
  display: inline-block;
  padding: 15px 44px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .25em;
  text-transform: uppercase;
  position: relative;
  transition: .3s;
  cursor: pointer;
  border: none;
}

/* 主按钮：青柠底 + 切角造型（按钮内联版，不使用 .cut 工具类） */
.btn-primary {
  background: var(--accent);
  color: #000;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.btn-primary:hover {
  background: #15151a;
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--txt-dim);
  color: var(--txt);
}

.btn-ghost:hover {
  border-color: var(--accent-ink);
  color: var(--accent-ink);
}

/* ----- 底部数据条：四组关键指标，数字由 Index2.js 按 data-count 滚动计数 ----- */
.hero-stats {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}

.hero-stats .stat {
  padding: 22px 4vw;
  border-right: 1px solid var(--line);
  min-width: 180px;
}

.hero-stats .stat:last-child {
  border-right: none;
}

.stat .num {
  font-size: 30px;
  font-weight: 800;
  color: var(--txt);
  font-family: var(--font-mono);
}

.stat .num span {
  color: var(--accent-ink);
  font-size: 16px;
}

.stat .lbl {
  font-size: 11px;
  color: var(--txt-dim);
  font-family: var(--font-mono);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ----- 滚动提示：文字 + 下方循环下落的竖线 ----- */
.scroll-hint {
  position: absolute;
  bottom: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--txt-dim);
  letter-spacing: .4em;
  z-index: 2;
}

.scroll-hint::after {
  content: "";
  display: block;
  width: 1px;
  height: 34px;
  margin: 10px auto 0;
  background: linear-gradient(var(--accent), transparent);
  animation: drop 1.6s ease-in-out infinite;
}

/* 竖线下落动画：上半段从顶生长，51% 切换原点后从底收回，形成循环滴落效果 */
@keyframes drop {
  0% {
    transform: scaleY(0);
    transform-origin: top;
  }
  50% {
    transform: scaleY(1);
    transform-origin: top;
  }
  51% {
    transform-origin: bottom;
  }
  100% {
    transform: scaleY(0);
    transform-origin: bottom;
  }
}

/* ============ 07. 通用区块框架：各大内容 section 共用的间距与标题结构 ============ */
section.blk {
  position: relative;
  padding: 110px 6vw;
  overflow: hidden;
}

.sec-head {
  display: flex;
  align-items: flex-end;
  gap: 26px;
  margin-bottom: 64px;
}

/* 竖排编号（01–05）：writing-mode 文字竖排 + 右侧竖线，作为区块视觉锚点 */
.sec-head .idx {
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 13px;
  letter-spacing: .3em;
  writing-mode: vertical-rl;
  padding-bottom: 8px;
  border-right: 1px solid var(--accent);
  padding-right: 12px;
}

.sec-head h2 {
  font-size: clamp(30px, 4.2vw, 54px);
  font-weight: 900;
  line-height: 1.05;
}

.sec-head .en {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--txt-dim);
  letter-spacing: .35em;
  text-transform: uppercase;
  margin-top: 10px;
}

/*
 * ============ 08. 核心能力区 ============
 * 上方：四张能力卡片（.feat-grid）；下方：技术原理图文分栏（.split）
 */
#features {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feat {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: 38px 28px 46px;
  cursor: pointer;
  transition: .35s;
  overflow: hidden;
}

.feat:hover {
  border-color: var(--accent-ink);
  transform: translateY(-6px);
}

/* 卡片右上角大编号：读取 HTML 的 data-no 属性，默认描边镂空，悬停变青柠色 */
.feat::before {
  content: attr(data-no);
  position: absolute;
  right: 14px;
  top: 6px;
  font-family: var(--font-mono);
  font-size: 56px;
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(21, 21, 26, .16);
  transition: .35s;
}

.feat:hover::before {
  -webkit-text-stroke: 1px var(--accent);
}

.feat .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--accent-ink);
  text-transform: uppercase;
}

.feat h3 {
  font-size: 21px;
  margin: 14px 0 6px;
  font-weight: 800;
}

.feat .en {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-dim);
  letter-spacing: .15em;
}

.feat p {
  margin-top: 18px;
  color: var(--txt-dim);
  font-size: 13.5px;
  line-height: 1.85;
}

/* 卡片底部进度条：悬停时宽度从 0 拉满到 100% */
.feat .bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .4s;
}

.feat:hover .bar {
  width: 100%;
}

/* ----- 技术原理分栏：左视觉动效（#tech 锚点） + 右文案 ----- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 90px;
}

.split .visual {
  position: relative;
  height: 420px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.split .visual .ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(74, 208, 240, .3);
  animation: pulse 3.2s ease-in-out infinite;
}

.split .visual .ring:nth-child(2) {
  width: 230px;
  height: 230px;
  animation-delay: 1s;
  border-color: rgba(187, 245, 109, .3);
}

/* 中央六边形核心：clip-path 切出六边形 + 发光，呼吸式缩放 */
.split .visual .core {
  width: 120px;
  height: 120px;
  background: var(--accent);
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 22px;
  box-shadow: 0 0 60px rgba(187, 245, 109, .35);
  animation: breathe 3.2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.12);
    opacity: .5;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

.split .visual .lat {
  position: absolute;
  bottom: 20px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--txt-dim);
  letter-spacing: .2em;
  text-align: right;
  line-height: 2;
}

.split .visual .lat b {
  color: #5f8f00;
  font-size: 20px;
  letter-spacing: .1em;
}

.split h3 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  line-height: 1.15;
}

.split p {
  margin-top: 20px;
  color: var(--txt-dim);
  line-height: 2;
  font-size: 14.5px;
}

.tick-list {
  margin-top: 30px;
  display: grid;
  gap: 12px;
}

.tick {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--txt);
}

/* 条目前的菱形标记：青柠色块 + clip-path 切成菱形，替代图标字体 */
.tick::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  flex-shrink: 0;
}

.tick span {
  color: var(--txt-dim);
}

/* ============ 09. 最新动态区：横向新闻条目列表（分类 / 日期 / 标题 / 箭头） ============ */
#news {
  background: transparent;
}

.news-row {
  border-top: none;
  display: grid;
  gap: 10px;
}

.news-item {
  display: grid;
  grid-template-columns: 110px 130px 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 24px 22px;
  border: 1px solid var(--glass-line);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  text-decoration: none;
  color: var(--txt);
  transition: .3s;
  position: relative;
}

/* 左侧青柠竖条：默认 scaleY(0) 隐藏，悬停时自下而上展开（配合 padding-left 位移） */
.news-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform .3s;
  transform-origin: bottom;
}

.news-item:hover {
  background: rgba(255, 255, 255, .68);
  padding-left: 30px;
}

.news-item:hover::before {
  transform: scaleY(1);
}

.news-item .cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .25em;
  color: var(--accent-ink);
  text-transform: uppercase;
  border: 1px solid var(--accent);
  padding: 5px 10px;
  justify-self: start;
}

.news-item .cat.gray {
  color: var(--txt-dim);
  border-color: var(--line);
}

.news-item .date {
  font-family: var(--font-mono);
  color: var(--txt-dim);
  font-size: 13px;
  letter-spacing: .1em;
}

.news-item .title {
  font-size: 16px;
  font-weight: 600;
}

.news-item .arrow {
  color: var(--txt-dim);
  font-family: var(--font-mono);
  transition: .3s;
}

.news-item:hover .arrow {
  color: var(--accent-ink);
  transform: translateX(6px);
}

.news-more {
  margin-top: 40px;
  text-align: center;
}

/* ============ 10. 云游戏库：横向游戏海报墙（.g-card 可悬停放大） ============ */
#games {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* 横向海报较宽，桌面端 3 列排布，避免卡片过窄 */
.game-wall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

/* 所有卡片统一 16:9 比例，规则排列；内部结构：上部海报图 + 底部游戏名条。
   透明玻璃风格：低不透明度浅底 + 毛玻璃模糊 + 顶部高光，透出底层视频背景 */
.g-card {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .06));
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  transition: .35s;
  text-decoration: none;
  color: inherit;
}

.g-card:hover {
  border-color: var(--accent-ink);
  transform: scale(1.04);
  z-index: 2;
}

/* 底部游戏名条：固定高度，保证每张卡片名称位置对齐 */
.g-card .g-name {
  flex: none;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--txt-dim);
  text-align: center;
  padding: 10px 8px;
  transition: .3s;
  text-transform: uppercase;
}

/* 悬停时游戏名文字透明隐藏，由同位置的 PLAY 浮层接管显示 */
.g-card:hover .g-name {
  color: transparent;
}

/* 海报图容器：占满名称条以外的全部空间 */
.g-card .g-code {
  flex: 1;
  min-height: 0;
  display: block;
}

/* 图片完整展示：contain 保证横版/竖版海报都不被裁剪；
   留白区域几乎全透明，仅以极淡渐变 + 毛玻璃暗示玻璃厚度 */
.g-card .g-code img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .02));
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  backdrop-filter: blur(12px) saturate(1.3);
}

/* "PLAY" 浮层：与游戏名条同位置同排版（相同 padding/字号），
   默认透明，悬停时淡入，视觉上就是"游戏名变成了 PLAY" */
.g-card::after {
  content: "PLAY";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 8px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .4em;
  text-indent: .4em;
  color: var(--accent-ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}

.g-card:hover::after {
  opacity: 1;
}

/* ============ 11. 客户端下载区：四张平台卡片（Windows/Android/iOS/TV） + 二维码区 ============ */
#download {
  background: var(--glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.dl-card {
  position: relative;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  padding: 34px 26px 30px;
  text-align: center;
  transition: .35s;
  display: flex;
  flex-direction: column;
}

.dl-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent-ink);
}

.dl-card .os-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  background: var(--accent);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 22px rgba(187, 245, 109, .4);
}

.dl-card .os-icon svg {
  width: 28px;
  height: 28px;
  fill: #0d0d10;
}

.dl-card h3 {
  font-size: 19px;
  font-weight: 800;
}

.dl-card .ver {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--txt-dim);
  letter-spacing: .15em;
  margin-top: 6px;
}

.dl-card ul {
  list-style: none;
  margin: 20px 0 24px;
  display: grid;
  gap: 9px;
  text-align: left;
  font-size: 12.5px;
  color: var(--txt-dim);
}

.dl-card ul li {
  display: flex;
  gap: 9px;
  align-items: baseline;
}

.dl-card ul li::before {
  content: "◆";
  font-size: 7px;
  color: var(--accent-ink);
  flex-shrink: 0;
  transform: translateY(-1px);
}

.dl-btn {
  margin-top: auto;
  display: block;
  padding: 13px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: .3s;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.dl-btn.primary {
  background: var(--accent);
  color: #000;
}

.dl-btn.primary:hover {
  background: #15151a;
  color: #fff;
}

/* 未上线平台：明确的禁用态，不可点击、无悬停反馈 */
.dl-btn.soon {
  border: 1px dashed var(--line);
  color: var(--txt-dim);
  background: rgba(21, 21, 26, .02);
  clip-path: none;
  cursor: not-allowed;
  opacity: .7;
}

.dl-btn.ghost {
  border: 1px solid var(--accent-ink);
  color: var(--accent-ink);
  clip-path: none;
}

.dl-btn.ghost:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
}

/* 同一卡片内出现第二个按钮时，紧跟在第一个按钮下方而非再次顶到底部 */
.dl-btn + .dl-btn {
  margin-top: 10px;
}

/* 未上线平台禁用按钮下方的说明文字 */
.soon-note {
  margin-top: 10px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--txt-dim);
}

.dl-qr-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.dl-qr {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 22px;
  background: var(--glass-strong);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
}

.dl-qr .code {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 5px solid #fff;
  outline: 1px solid var(--line);
}

.dl-qr .txt b {
  display: block;
  font-size: 13.5px;
  margin-bottom: 4px;
}

.dl-qr .txt span {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--txt-dim);
  letter-spacing: .12em;
}

/* ---------- timeline ---------- */
#timeline {
  background: transparent;
}

.tl-wrap {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.tl-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.tl-item {
  display: flex;
  margin-bottom: 44px;
  position: relative;
}

.tl-item:nth-child(even) {
  flex-direction: row-reverse;
}

.tl-item .half {
  width: 50%;
  padding: 24px 44px;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
}

.tl-item:nth-child(odd) .half {
  text-align: right;
}

.tl-item .node {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 13px;
  height: 13px;
  background: rgba(255, 255, 255, .92);
  border: 2px solid var(--accent);
  transform: translateX(-50%) rotate(45deg);
}

.tl-item .y {
  font-family: var(--font-mono);
  color: var(--accent-ink);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .1em;
}

.tl-item .m {
  font-family: var(--font-mono);
  color: var(--txt-dim);
  font-size: 11px;
  letter-spacing: .3em;
  margin: 4px 0 10px;
}

.tl-item .t {
  font-size: 16px;
  font-weight: 700;
}

.tl-item .d {
  color: var(--txt-dim);
  font-size: 13px;
  margin-top: 8px;
  line-height: 1.8;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative;
  padding: 120px 6vw;
  text-align: center;
  overflow: hidden;
  background: transparent;
}

.cta-banner .cta-inner {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  padding: 70px 8vw;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

.cta-banner .big {
  font-size: clamp(38px, 6.5vw, 90px);
  font-weight: 900;
  line-height: 1.05;
}

.cta-banner .big .out {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent-ink);
}

.cta-banner p {
  color: var(--txt-dim);
  margin-top: 24px;
  letter-spacing: .05em;
}

/* ---------- footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 70px 6vw 40px;
  background: rgba(255, 255, 255, .45);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
}

.f-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.f-grid h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--txt-dim);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.f-grid a {
  display: block;
  color: var(--txt-dim);
  text-decoration: none;
  font-size: 13.5px;
  padding: 6px 0;
  transition: .25s;
}

.f-grid a:hover {
  color: var(--accent-ink);
  padding-left: 6px;
}

.f-brand p {
  color: var(--txt-dim);
  font-size: 13px;
  line-height: 2;
  margin-top: 16px;
  max-width: 300px;
}

.f-bottom {
  max-width: 1200px;
  margin: 56px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #9a9ca1;
  letter-spacing: .15em;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .feat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split {
    grid-template-columns: 1fr;
  }

  .game-wall {
    grid-template-columns: repeat(2, 1fr);
  }

  .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .f-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* 窄屏下导航折叠为下拉菜单，由 .nav-toggle 控制展开 */
  nav.links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 6px 4vw 12px;
    background: rgba(255, 255, 255, .92);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-bottom: 1px solid var(--line);
  }

  nav.links.open {
    display: flex;
  }

  nav.links a {
    padding: 14px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--line);
  }

  nav.links a:last-child {
    border-bottom: none;
  }

  nav.links a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    flex-wrap: wrap;
  }

  .hero-stats .stat {
    min-width: 44%;
  }

  .tl-line {
    left: 8px;
  }

  .tl-item,
  .tl-item:nth-child(even) {
    flex-direction: row;
  }

  .tl-item .half {
    width: 100%;
    padding: 0 0 0 36px;
    text-align: left !important;
  }

  .tl-item .node {
    left: 8px;
  }
}

/* ---------- 手机端：新闻条目改为两行堆叠（标签+日期一行，标题整行） ---------- */
@media (max-width: 700px) {
  .news-item {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "cat date arrow"
      "title title title";
    gap: 10px 14px;
    padding: 18px 16px;
  }

  .news-item .cat {
    grid-area: cat;
  }

  .news-item .date {
    grid-area: date;
    justify-self: end;
    font-size: 12px;
  }

  .news-item .arrow {
    grid-area: arrow;
  }

  .news-item .title {
    grid-area: title;
    font-size: 14px;
    line-height: 1.55;
  }

  .news-item:hover {
    padding-left: 22px;
  }
}

/* ---------- 无障碍：尊重系统「减少动效」偏好，并据此降级背景视频 ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* 关闭动态视频，改由 .video-bg 的静态渐变兜底 */
  .video-bg video {
    display: none;
  }

  .hero-ring,
  .split .visual .ring,
  .split .visual .core,
  .scroll-hint::after {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .feat,
  .g-card,
  .dl-card,
  .news-item {
    transition: none;
  }
}
