/* ==========================================================
   焰火益游社群 官网样式（1:1 复刻 yanhuoyiyou.cn）
   ========================================================== */
:root {
  --bg: #0a0a0a;
  --fg: #faf8f5;
  --muted-fg: #8c8780;
  --muted-fg-50: rgba(140, 135, 128, .5);
  --card: #121212;
  --orange: #f97316;
  --amber: #fbbf24;
  --red: #dc2626;
  --line: rgba(255, 255, 255, .04);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --theme-ease: cubic-bezier(.32, .72, 0, 1);   /* 主题切换专用：前段柔、后段稳，避免生硬 */
  /* 弹性曲线（顶部菜单反馈用）：末端越过目标再回弹，形成「果冻感」
     强过冲用于小位移（缩放/滑动条），弱过冲用于大位移（展开面板） */
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --spring-soft: cubic-bezier(.22, 1.12, .36, 1);
  --line-2: rgba(255, 255, 255, .06);
  --line-3: rgba(255, 255, 255, .08);
  --hover: rgba(255, 255, 255, .05);
  --hover-strong: rgba(255, 255, 255, .1);
  --wash: rgba(255, 255, 255, .02);
  --wash-3: rgba(255, 255, 255, .03);
  --glass: rgba(10, 10, 10, .6);
  --panel: rgba(18, 18, 18, .8);
  --panel-6: rgba(18, 18, 18, .6);
  --panel-4: rgba(18, 18, 18, .4);
  --scrim: rgba(10, 10, 10, .8);
  --scrim-strong: rgba(10, 10, 10, .95);
  --inset-hi: rgba(255, 255, 255, .04);
  --border: var(--line);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .4);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, .5);
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Space Grotesk", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}


/* 消除横向布局溢出：hero 光晕球绝对定位伸出区块外（clip-path 只裁视觉不裁布局），
   导致手机端页面实际宽度变大、可被整体缩小错位；
   overflow-x:clip 裁掉横向滚动溢出，且不影响 hero 顶部 64px 的纵向特效溢出 */
html, body { overflow-x: clip; }

/* ---------- 主题切换过渡：全页面亮暗色渐变 ----------
   切换期间给全站元素挂上颜色过渡，分两层：
   ① 大面积背景（body / 悬浮头部 / 页脚）先行 .55s；
   ② 其余元素延迟 60ms 跟随 .5s，形成"背景先换、细节后跟"的层次；
   另有一层从触发点扩散的柔光（.theme-veil）掩盖首帧色彩跳变。
   过渡结束后移除 theme-anim，避免影响日常交互动画 */
html.theme-anim, html.theme-anim body,
html.theme-anim .site-header, html.theme-anim .site-footer {
  transition: background-color .55s var(--theme-ease), color .55s var(--theme-ease),
              border-color .55s var(--theme-ease), box-shadow .55s var(--theme-ease),
              fill .55s var(--theme-ease), stroke .55s var(--theme-ease) !important;
}
html.theme-anim *, html.theme-anim *::before, html.theme-anim *::after {
  transition: background-color .5s var(--theme-ease) .06s, color .5s var(--theme-ease) .06s,
              border-color .5s var(--theme-ease) .06s, box-shadow .5s var(--theme-ease) .06s,
              fill .5s var(--theme-ease) .06s, stroke .5s var(--theme-ease) .06s !important;
}
@media (prefers-reduced-motion: reduce) {
  html.theme-anim, html.theme-anim * { transition: none !important; }
  .theme-veil.run::before { animation: none !important; }
}

/* ---------- 柔光层：切换时从触发点扩散的一层中性光 ----------
   掩盖颜色渐变首帧的跳变感；亮色用暖白光（如天亮），暗色用深邃光（如夜幕） */
.theme-veil { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: 0; }
.theme-veil::before {
  content: ""; position: absolute; inset: -25%;
  transform-origin: var(--vx, 50%) var(--vy, 50%);
  background: radial-gradient(circle at var(--vx, 50%) var(--vy, 50%), var(--veil-c) 0%, transparent 55%);
}
.theme-veil.to-light { --veil-c: rgba(255, 250, 238, .5); }
.theme-veil.to-dark  { --veil-c: rgba(5, 8, 16, .45); }
.theme-veil.run { will-change: opacity, transform; }
.theme-veil.run::before { animation: theme-veil-spread .72s var(--theme-ease) forwards; }
@keyframes theme-veil-spread {
  0%   { opacity: 0; transform: scale(.25); }
  28%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.12); }
}

/* ---------- 亮色模式（仿原站 html.light：06:00-17:59 自动启用） ---------- */
.theme-light {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted-fg: #645f5a;
  --muted-fg-50: rgba(100, 95, 90, .5);
  --card: #fafafa;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .1);
  --line-3: rgba(0, 0, 0, .14);
  --hover: rgba(0, 0, 0, .04);
  --hover-strong: rgba(0, 0, 0, .08);
  --wash: rgba(0, 0, 0, .02);
  --wash-3: rgba(0, 0, 0, .03);
  --glass: rgba(255, 255, 255, .6);
  --panel: rgba(255, 255, 255, .8);
  --panel-6: rgba(255, 255, 255, .6);
  --panel-4: rgba(255, 255, 255, .4);
  --scrim: rgba(255, 255, 255, .8);
  --scrim-strong: rgba(255, 255, 255, .95);
  --inset-hi: rgba(255, 255, 255, .8);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .08);
  --shadow-xl: 0 8px 32px rgba(0, 0, 0, .12);
  color-scheme: light;
}
.theme-light .glow-1 { background: rgba(249, 115, 22, .06); }
.theme-light .glow-2 { background: rgba(251, 191, 36, .05); }
.theme-light .glow-3 { background: rgba(220, 38, 38, .04); }
/* 主题按钮图标：暗色显太阳、亮色显月亮（同原站） */
#themeBtn .icon-moon { display: none; }
.theme-light #themeBtn .icon-sun { display: none; }
.theme-light #themeBtn .icon-moon { display: block; }
/* 图标配色与官网一致：fire-amber 琥珀色（亮暗两态相同） */
#themeBtn svg { color: var(--amber); }

/* 亮色主题：滚动条/表单控件跟随亮色（body 默认 dark，需覆盖） */
.theme-light body { color-scheme: light; }

/* 亮色模式：成员页主题预设覆盖（对应原站 html.light 规则）——
   否则 --sp-card 保持暗色 18 18 18，深色卡片叠在白底上、深色文字不可读 */
.theme-light .staff-preset {
  --sp-card: 255 255 255;
  --sp-glow-1: .05; --sp-glow-2: .04; --sp-glow-3: .03;
  --sp-bezel-bg: rgb(0 0 0 / .02);
  --sp-bezel-border: rgb(0 0 0 / .06);
}
/* 亮色下 preset 主色换为更深的可读色（同原站） */
.theme-light .staff-preset-anime {
  --sp-1: 219 39 119; --sp-2: 124 58 237; --sp-3: 79 70 229;
  --sp-bezel-bg: rgb(var(--sp-1) / .05);
  --sp-bezel-border: rgb(var(--sp-1) / .26);
}
.theme-light .staff-preset-youth {
  --sp-1: 4 120 87; --sp-2: 101 163 13; --sp-3: 13 148 136;
  --sp-bezel-bg: rgb(var(--sp-1) / .05);
  --sp-bezel-border: rgb(var(--sp-1) / .26);
}
.theme-light .staff-preset .card-bezel-inner {
  box-shadow: inset 0 1px 1px #fffc, 0 4px 18px rgb(var(--sp-1) / .1);
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  color-scheme: dark;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; }

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

.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; position: relative; }
.bg-base { background: var(--bg); }
.bg-card { background: var(--card); overflow: hidden; }
.relative { position: relative; }
.rel { position: relative; z-index: 10; }
.z-10 { position: relative; z-index: 10; }
.overflow-hidden { overflow: hidden; }
.block { display: block; }
.group:hover .hover-glow { opacity: 1; }

/* ---------- 网格背景 ---------- */
.mesh-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(249, 115, 22, .08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(251, 191, 36, .06), transparent),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgba(220, 38, 38, .05), transparent);
}
.opacity-50 { opacity: .5; }

/* ---------- 顶部悬浮导航（三段式：LOGO 贴左 / 链接居中 / 操作贴右） ----------
   整条导航铺满视口宽度（不再是居中定宽容器），三段分别贴靠左端、正中、右端。 */
.site-header {
  position: fixed; top: 16px; left: 0; right: 0;
  z-index: 50; padding: 0 1rem;
  /* 入场：从上方弹性落位（末态与静态 transform 一致，不影响后续滚动表现） */
  animation: nav-drop .9s var(--spring) both;
}
@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-26px) scale(.94); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* 外壳：全宽排布，LOGO 与操作区被 space-between 顶到两端；
   同时充当移动端下拉面板和中间段居中的定位基准 */
.nav-shell {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}

/* 胶囊公共外观：两块共用，滚动收缩等既有规则继续复用 .nav-pill */
.nav-pill {
  position: relative; isolation: isolate;
  border-radius: 9999px;
  background: var(--glass);          /* 兜底底色：即使 backdrop-filter 不被支持也仍有玻璃感 */
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
/* ⚠ 毛玻璃必须挂在伪元素上：backdrop-filter（与 filter/transform 一样）会让元素成为
   绝对定位子元素的 containing block——若直接加在 .nav-center 上，移动端下拉面板就
   只能跟菜单胶囊同宽，无法与整条导航对齐。isolation 把 z-index:-1 的模糊层锁在本元素内。 */
.nav-pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
}

/* 左：LOGO 独立胶囊 */
.nav-brand {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  padding: 11px 20px; position: relative; overflow: hidden;
  transition: transform .5s var(--spring), padding .45s var(--ease),
      box-shadow .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease);
}
/* hover 时一道高光扫过 LOGO 表面 */
.nav-brand::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, var(--hover-strong) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform .75s var(--ease);
}
.nav-brand:hover {
  transform: scale(1.07);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .45);
  border-color: var(--hover-strong);
}
.nav-brand:hover::after { transform: translateX(130%); }
.nav-brand:active { transform: scale(.95); transition-duration: .18s; }
.brand-img { height: 28px; width: auto; transition: height .45s var(--spring); }

/* 中：导航链接胶囊（三段式的中间段）
   ⚠ 用绝对定位而不是 flex 均分：只有脱离流才能做到「链接组中心 == 页面中心」。
      用 flex 三段等宽的话，中间段中心会随左右两段宽度差而偏移，且 flex:1 会把
      左右胶囊本身拉长成大方块。定位基准是 .nav-shell（左右各留 1rem，对称居中）。 */
.nav-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; justify-content: center;
  padding: 7px 10px;
  transition: padding .45s var(--ease), background-color .45s var(--ease),
      box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.nav-links { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; }
.nav-link {
  position: relative; z-index: 1;
  display: block; padding: 7px 13px; border-radius: 9999px;
  font-size: 13px; font-weight: 500; color: var(--muted-fg); white-space: nowrap;
  /* 底色统一交给 .nav-indicator 承载，这里只管文字与弹性缩放，避免两层背景打架 */
  transition: color .28s var(--ease), transform .45s var(--spring);
}
.nav-link:hover { color: var(--fg); transform: scale(1.07); }
.nav-link:active { transform: scale(.93); transition-duration: .16s; }
.nav-link.active { color: var(--orange); }

/* 弹性滑动指示条：hover / 键盘聚焦时跟随，离开回到当前页。
   JS 只写 --ix / --iw / --io / --sx 四个变量，位移、宽度与缩放全交给 spring 曲线。
   ⚠ --sx 是为对齐 .nav-link 的 hover/focus 放大：JS 取的 offsetWidth 是布局尺寸，
     不含 scale(1.07)；指示条若只按布局宽度画，链接放大后会左右各溢出约 2px。
     两者都以自身中心为原点缩放，按同样比例放大即可严丝合缝。 */
.nav-indicator {
  position: absolute; top: 50%; left: 0; z-index: 0;
  height: 32px; width: var(--iw, 0px);
  border-radius: 9999px; pointer-events: none;
  background: var(--hover-strong);
  opacity: var(--io, 0);
  transform: translate(var(--ix, 0px), -50%) scaleX(var(--sx, 1));
  transition: transform .52s var(--spring), width .52s var(--spring),
      opacity .22s var(--ease), background-color .3s var(--ease);
}
/* 停在「当前页」时换成橙色底，与 .nav-link.active 的橙色文字呼应 */
.nav-indicator.on-active {
  background: rgba(249, 115, 22, .14);
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, .22);
}

/* 分隔线（v1 双胶囊时代用于切开链接与按钮；三段式后胶囊间隙本身就是分隔，已不在模板里） */

/* 右：操作按钮胶囊（三段式第三段） */
.nav-actions {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  padding: 7px 8px;
  transition: padding .45s var(--ease), background-color .45s var(--ease),
      box-shadow .45s var(--ease), border-color .45s var(--ease);
}
.round-btn {
  width: 38px; height: 38px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--hover); border: 1px solid var(--hover-strong);
  color: var(--fg);
  transition: transform .45s var(--spring), background-color .3s var(--ease),
      border-color .3s var(--ease);
}
.round-btn:hover { background: var(--hover-strong); transform: scale(1.09) translateY(-1px); }
.round-btn:active { transform: scale(.9); transition-duration: .16s; }
.round-btn svg { width: 17px; height: 17px; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 9999px;
  font-size: 12px; font-weight: 500; color: var(--muted-fg);
  background: var(--wash-3); border: 1px solid var(--line-2);
  transition: transform .45s var(--spring), color .3s var(--ease),
      background-color .3s var(--ease), border-color .3s var(--ease);
}
.lang-btn:hover { color: var(--fg); background: var(--hover); transform: scale(1.06); }
.lang-btn:active { transform: scale(.94); transition-duration: .16s; }
.lang-btn svg { width: 13px; height: 13px; }
.menu-btn { display: none; }

/* 键盘可见焦点：指针用户不显示，Tab 用户有清晰焦点环 */
.nav-link:focus-visible, .round-btn:focus-visible, .lang-btn:focus-visible,
.nav-brand:focus-visible {
  outline: 2px solid var(--orange); outline-offset: 2px;
}
/* 键盘聚焦与 hover 一样放大，滑动指示条才会同步放大盖住它（见 .nav-indicator 的 --sx） */
.nav-link:focus-visible { transform: scale(1.07); }

/* ---------- Hero ---------- */
/* 让 hero 特效层（含粒子画布）可以溢出到最顶部留白区：
   clip-path 顶部外扩 64px（放行顶部），左右与底部仍裁切（等价于原 overflow:hidden），
   避免光晕漏到下方内容；对所有含 hero 的页面通用 */
.main > section[class*="hero"] { overflow: visible; clip-path: inset(-64px 0 0 0); }
/* 主光晕层上探 64px：mesh-bg 原为 inset:0，在 hero 上边界被切断形成顶部硬边；
   延伸进 .main 的顶部留白区后光晕无缝续接（clip-path 已放行顶部 64px） */
.main > section[class*="hero"] .mesh-bg { top: -64px; }
.main { padding-top: 64px; position: relative; }
/* 各页面「原有光晕」延伸到顶部留白区：
   用 hero 自身的 ::before 承载（因此能继承该页的光晕配色，含成员页 staff-preset 主色变量），
   顶部 -64px 起、向下 220px 渐隐入 hero，与 hero 内原有 glow/mesh 自然融合；
   浓度与该页原有光晕一致（首页 .10/.08/.07，亮色 .06/.05/.04） */
.main > section[class*="hero"]::before {
  content: ""; position: absolute; top: -64px; left: 0; right: 0; height: 220px;
  pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(ellipse 70% 160px at 25% 0%, rgba(249, 115, 22, .10), transparent 70%),
    radial-gradient(ellipse 60% 140px at 62% 0%, rgba(251, 191, 36, .08), transparent 70%),
    radial-gradient(ellipse 52% 130px at 92% 0%, rgba(220, 38, 38, .07), transparent 70%);
}
.theme-light .main > section[class*="hero"]::before {
  background-image:
    radial-gradient(ellipse 70% 160px at 25% 0%, rgba(249, 115, 22, .06), transparent 70%),
    radial-gradient(ellipse 60% 140px at 62% 0%, rgba(251, 191, 36, .05), transparent 70%),
    radial-gradient(ellipse 52% 130px at 92% 0%, rgba(220, 38, 38, .04), transparent 70%);
}
/* 成员页：延伸该成员自己的 preset 主色光晕（与 .staff-preset .mesh-bg 同源变量） */
.main > section.staff-preset::before {
  background-image:
    radial-gradient(ellipse 70% 160px at 22% 0%, rgb(var(--sp-1) / var(--sp-glow-1)), transparent 70%),
    radial-gradient(ellipse 60% 140px at 62% 0%, rgb(var(--sp-2) / var(--sp-glow-2)), transparent 70%),
    radial-gradient(ellipse 52% 130px at 92% 0%, rgb(var(--sp-3) / var(--sp-glow-3)), transparent 70%);
}
/* hero 底部渐隐层：光晕（含 blur 溢出部分）在抵达裁切线前融入背景，
   消除 clip-path 底边硬切产生的水平硬边；锚定 section 本身，不受 glow 漂移动画影响；
   z-index 1 位于光晕(0/auto)之上、内容(10)之下 */
.main > section[class*="hero"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  pointer-events: none; z-index: 1;
  background: linear-gradient(to bottom, transparent, var(--bg) 92%);
}
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg);
}
/* 粒子画布向上扩 64px，覆盖 .main 顶部留白区（视口最顶部），让粒子飘到最上面；
   高度 = hero 高 + 64（canvas 为替换元素，须显式给高度，否则回落固有 150px） */
.hero-canvas { position: absolute; top: -64px; left: 0; width: 100%; height: calc(100% + 64px); pointer-events: none; }
.glow { position: absolute; border-radius: 9999px; pointer-events: none; }
.glow-1 { top: 25%; left: 25%; width: 384px; height: 384px; background: rgba(249, 115, 22, .1); filter: blur(120px); }
.glow-2 { bottom: 25%; right: 25%; width: 320px; height: 320px; background: rgba(251, 191, 36, .08); filter: blur(100px); }
.glow-3 { top: 38%; left: 42%; width: 544px; height: 544px; background: rgba(220, 38, 38, .07); filter: blur(140px); }

.hero-inner { position: relative; z-index: 10; text-align: center; }
.hero-logo { height: 96px; width: auto; margin: 0 auto 20px; }

.eyebrow-tag {
  display: inline-flex; align-items: center;
  padding: 4px 12px; border-radius: 9999px;
  font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase;
  background: rgba(249, 115, 22, .08); color: var(--orange);
  border: 1px solid rgba(249, 115, 22, .15);
  margin: 0 auto 20px;
}
.eyebrow-tag.center { display: inline-flex; width: fit-content; }
.tag-icon { width: 12px; height: 12px; margin-right: 6px; }

.hero-title {
  font-size: 36px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1; margin-bottom: 16px;
}
.gradient-text {
  background: linear-gradient(135deg, #fbbf24, #f97316, #dc2626);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: 16px; color: var(--muted-fg); max-width: 672px;
  margin: 0 auto 32px; line-height: 1.4;
}
.hero-btns { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; }
.gradient-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 9999px;
  color: #fff; font-size: 16px; font-weight: 500;
  background: linear-gradient(135deg, #f97316, #dc2626);
  transition: all .5s var(--ease); position: relative; overflow: hidden;
}
.gradient-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(249, 115, 22, .35); }
.btn-arrow {
  width: 28px; height: 28px; border-radius: 9999px;
  background: rgba(255, 255, 255, .15);
  display: flex; align-items: center; justify-content: center;
}
.btn-arrow svg { width: 13px; height: 13px; }
.ghost-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 9999px;
  font-size: 16px; font-weight: 500; color: var(--fg);
  border: 1px solid var(--line-3);
  transition: all .4s var(--ease);
}
.ghost-btn:hover { border-color: rgba(249, 115, 22, .4); background: rgba(249, 115, 22, .05); }

/* ---------- 区块标题 ---------- */
.section-head { text-align: center; margin-bottom: 64px; }
.section-title { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 36px; }
.section-title-lg { /* text-3xl sm:text-4xl（首页） */ }
.sec-sub { font-size: 16px; color: var(--muted-fg); max-width: 576px; margin: 0 auto; }

/* ---------- 卡片 ---------- */
.card-bezel {
  background: var(--wash);
  border: 1px solid var(--line-2);
  padding: 6px; border-radius: 28px;
  display: block; transition: all .5s var(--ease);
}
.card-bezel:hover { border-color: rgba(249, 115, 22, .25); }
.card-bezel-inner {
  background: var(--panel); border-radius: 22px;
  box-shadow: inset 0 1px 1px var(--line);
  position: relative; overflow: hidden;
}
.p-8 { padding: 32px; }
.p-0 { padding: 0; }
.h-full { height: 100%; }
.flex-col-between { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.hover-glow {
  position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease);
  background: linear-gradient(135deg, rgba(249, 115, 22, .03), transparent);
}
.card-logo { height: 56px; width: auto; margin-bottom: 20px; }
.card-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; line-height: 1.3; }
.card-desc { font-size: 14px; color: var(--muted-fg); line-height: 1.625; }
.clamp-3 {
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3;
}
.more-link {
  margin-top: 24px; display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--orange);
  opacity: 0; transition: opacity .5s var(--ease);
}
.group:hover .more-link { opacity: 1; }
.arrow-xs { width: 12px; height: 12px; }
.icon-3xl { width: 30px; height: 30px; }
.text-red { color: var(--red); }
.mb-5 { margin-bottom: 20px; }

/* ---------- 核心项目网格 ---------- */
.grid-projects {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px; grid-auto-rows: minmax(180px, auto);
}
.span-7 { grid-column: span 7; grid-row: span 2; }
.span-5 { grid-column: span 5; }

/* ---------- 已入驻平台 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.mb-12 { margin-bottom: 48px; }
.mb-6 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; }
.gap-3 { gap: 12px; }
.icon-round { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; }
.bg-orange { background: rgba(249, 115, 22, .1); }
.bg-amber { background: rgba(251, 191, 36, .1); }
.icon-lg { width: 18px; height: 18px; }
.text-orange { color: var(--orange); }
.text-amber { color: var(--amber); }
.sub-title { font-size: 18px; font-weight: 700; line-height: 1.5; }

.stack-3 { display: flex; flex-direction: column; gap: 12px; }
.plat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  background: var(--wash); border: 1px solid var(--line);
  min-width: 0;   /* 长名称不撑破两列布局 */
  transition: border-color .3s ease;
}
.plat-item:hover { border-color: rgba(249, 115, 22, .3); }
.plat-logo { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.plat-name { font-size: 14px; font-weight: 500; color: var(--fg); }
.ext-icon { width: 16px; height: 16px; margin-left: auto; color: rgba(140, 135, 128, .5); flex-shrink: 0; }

.tag-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; font-size: 12px; border-radius: 9999px;
  color: var(--muted-fg);
  background: var(--wash); border: 1px solid var(--line);
  transition: color .3s ease;
}
.game-tag:hover { color: var(--fg); }
/* 手机游戏标签内的小 logo（接口下发时） */
.tag-logo { width: 16px; height: 16px; border-radius: 4px; object-fit: cover; flex: none; }

/* ---------- 运营数据 ---------- */
.grid-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-glass {
  background: var(--panel-6);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 1px var(--inset-hi), var(--shadow-lg);
  border-radius: 24px;
}
.stat-card { padding: 24px; text-align: center; }
.stat-num { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 8px; }
.stat-label { font-size: 12px; color: var(--muted-fg); }

/* ---------- 近期动态 ---------- */
.news-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.view-all {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--orange);
  transition: gap .4s var(--ease);
}
.view-all:hover { gap: 12px; }
.grid-news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.news-img-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.news-img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.group:hover .news-img { transform: scale(1.05); }
.news-img-fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--scrim), transparent); }
.news-body { position: relative; z-index: 10; padding: 24px; }
.news-pill {
  display: inline-block; padding: 4px 10px; margin-bottom: 16px;
  font-size: 10px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--orange); background: rgba(249, 115, 22, .1); border-radius: 9999px;
}
.news-title {
  font-size: 16px; font-weight: 600; margin-bottom: 12px; line-height: 1.5;
  transition: color .4s var(--ease);
  overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.group:hover .news-title { color: var(--orange); }
.news-date { font-size: 12px; color: var(--muted-fg); }
.mobile-only { display: block; }
.view-all-wrap { text-align: center; margin-top: 32px; }

/* ---------- 页脚 ---------- */
.footer { position: relative; background: var(--bg); border-top: 1px solid var(--line); }
.footer-top-fade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(249, 115, 22, .02), transparent);
}
.footer-inner { position: relative; z-index: 10; }
.footer .footer-inner { padding-top: 64px; padding-bottom: 64px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.footer-logo { height: 32px; width: auto; }
.footer-desc { font-size: 14px; color: var(--muted-fg); line-height: 1.625; max-width: 384px; margin-bottom: 24px; }
.socials { display: flex; align-items: center; gap: 12px; }
.icon-pill {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9999px;
  background: var(--hover); transition: all .4s var(--ease);
}
.icon-pill:hover { background: rgba(249, 115, 22, .15); color: var(--orange); }
.icon-pill svg { width: 16px; height: 16px; }

.footer-h4 {
  font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: .15em; color: var(--muted-fg); margin-bottom: 20px;
}
.footer-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-list a { font-size: 14px; line-height: 20px; color: var(--muted-fg); transition: color .4s var(--ease); }
.footer-list a:hover { color: var(--orange); }
.entry-item {
  display: block; padding: 12px 16px; font-size: 14px; line-height: 20px; border-radius: 12px;
  color: var(--muted-fg);
  background: var(--wash); border: 1px solid var(--line);
  transition: all .4s var(--ease);
}
.entry-item:hover { border-color: rgba(249, 115, 22, .3); color: var(--orange); }
.entry-hot {
  color: var(--orange); font-weight: 500;
  background: rgba(249, 115, 22, .05); border-color: rgba(249, 115, 22, .2);
}

.footer-bottom {
  margin-top: 64px; padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 16px;
}
.fb-left, .fb-right { display: flex; flex-direction: column; align-items: center; gap: 8px; }
  .fb-text { font-size: 12px; line-height: 16px; color: var(--muted-fg); transition: color .4s var(--ease); }
  .fb-text:hover { color: var(--orange); }
  .visit-stats { font-size: 12px; line-height: 16px; color: var(--muted-fg); opacity: .75; transition: color .4s var(--ease); white-space: nowrap; }
.fb-build { font-size: 10px; color: rgba(140, 135, 128, .6); font-family: ui-monospace, Menlo, monospace; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================
   响应式（原站断点：sm 640px / md 768px / lg 1024px）
   ========================================================== */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .hero-logo { height: 128px; }
  .hero-title { font-size: 60px; }
  .hero-sub { font-size: 20px; }
  .hero-btns { flex-direction: row; }
  .stat-num { font-size: 30px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }
  .fb-left, .fb-right { flex-direction: row; align-items: center; gap: 8px; }
  .fb-right { gap: 16px; }
  /* 桌面端：交换「备案+条款」与「访问统计」位置——统计居中、备案条款靠右（移动端不设 order，维持原 DOM 顺序） */
  .footer-bottom .visit-stats { order: 1; }
  .footer-bottom .fb-right { order: 2; }
  .view-all-wrap { display: none; }
}

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-news { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px; }
  .col-brand { grid-column: span 5; }
  .col-links { grid-column: span 3; }
  .col-entry { grid-column: span 4; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .hero-title { font-size: 72px; }
  .menu-btn { display: none !important; }
}

/* 移动端：导航折叠 */
@media (max-width: 1023px) {
  .menu-btn { display: flex; }
  .menu-btn svg { transition: transform .35s var(--ease); }
  .menu-btn.active svg { transform: rotate(90deg); }
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;   /* 相对 .nav-shell，与整条导航同宽 */
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px; border-radius: 24px;
    background: var(--scrim-strong);
    backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xl);
    /* 开/关动画：默认收起态（visibility 不占布局、不吃事件；transition 保证淡入淡出）
       展开用弱过冲曲线——面板比小控件大，强过冲会晃得过头 */
    visibility: hidden; opacity: 0;
    transform: translateY(-12px) scale(.94);
    transform-origin: top center;
    transition: opacity .26s var(--ease), transform .4s var(--spring-soft), visibility .28s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; }
  /* 菜单项：展开时自上而下依次淡入，关闭时整体随面板收起 */
  .nav-links .nav-link { opacity: 0; transform: translateX(-10px); transition: opacity .22s var(--ease), transform .22s var(--ease); }
  .nav-links.open .nav-link { opacity: 1; transform: none; }
  .nav-links.open .nav-link:nth-child(1) { transition-delay: .04s; }
  .nav-links.open .nav-link:nth-child(2) { transition-delay: .08s; }
  .nav-links.open .nav-link:nth-child(3) { transition-delay: .12s; }
  .nav-links.open .nav-link:nth-child(4) { transition-delay: .16s; }
  .nav-links.open .nav-link:nth-child(5) { transition-delay: .20s; }
  .nav-links.open .nav-link:nth-child(6) { transition-delay: .24s; }
  .nav-links.open .nav-link:nth-child(7) { transition-delay: .28s; }
  @media (prefers-reduced-motion: reduce) {
    .nav-links, .nav-links .nav-link, .menu-btn svg { transition-duration: .01ms !important; }
    .nav-links.open .nav-link { transition-delay: 0s !important; }
  }
  .nav-link { padding: 10px 14px; font-size: 14px; }
  /* 移动端下拉面板里没有 hover 跟随场景：关掉滑动条，改回背景色标识当前页 */
  .nav-indicator { display: none; }
  /* 移动端不做胶囊毛玻璃：一是省掉模糊开销（移动端最贵的效果之一），二是
     backdrop-filter 会让元素成为绝对定位子元素的 containing block，下拉面板就只能跟
     中间胶囊同宽、无法与整条导航对齐。取消后 .nav-links 改由 .nav-shell 定位，整宽展开。
     底色仍是半透明 --glass，观感不变。 */
  .nav-pill::before { display: none; }
  /* 三段式的中间段在移动端收起为纯定位层：链接已折叠进汉堡菜单，
     所以它只负责给 .nav-links 提供挂载点，自身不该再显示成一个空胶囊。
     ⚠ transform 必须与 position 一起重置：translate(-50%,-50%) 只要还在，就仍是
       非 none 的 transform，照样会创建 containing block（和 backdrop-filter 同坑），
       下拉面板会被锁进这个宽度已塌成 0 的中间段里。
     ⚠ 可见样式必须 !important 压死：滚动态 .site-header.scrolled .nav-pill（特异性
       0,3,0 且源顺序更靠后）会把胶囊底色/阴影/边框还给中间段，塌缩后的空胶囊
       就会显示成一粒黑块贴在 LOGO 右侧（真机复现过）。 */
  .site-header .nav-center {
    position: static; transform: none; padding: 0;
    background: none !important; border: 0 !important; box-shadow: none !important;
  }
  /* 右侧操作区紧贴导航条右端（中间段 flex:1 已经把它顶到最右，这里再加一道保险） */
  .nav-actions { margin-left: auto; }
  .nav-link.active { background: rgba(249, 115, 22, .1); }
  .nav-link:hover { background: var(--line-2); transform: none; }

  .grid-projects { grid-template-columns: minmax(0, 1fr); }
  .span-7, .span-5 { grid-column: span 1; grid-row: auto; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  /* 移动端无 hover：了解更多常显 */
  .more-link { opacity: 1; }
}

/* ==========================================================
   二级 / 三级页面组件
   ========================================================== */

/* 页头 Hero（二级页统一：pt-32 pb-16） */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.page-hero { padding: 128px 0 64px; position: relative; overflow: hidden; background: var(--bg); }
.page-hero .glow-hero { position: absolute; width: 288px; height: 288px; border-radius: 9999px; filter: blur(100px); }
.page-hero-logo { height: 112px; width: auto; margin: 0 auto 24px; }
@media (min-width: 640px) { .page-hero-logo { height: 144px; } }
.page-hero-title { font-size: 36px; font-weight: 700; letter-spacing: -.02em; line-height: 40px; margin-bottom: 16px; }
.page-hero-sub { font-size: 18px; line-height: 28px; color: var(--muted-fg); }
.page-hero .eyebrow-tag { margin-bottom: 24px; }
.eyebrow-tag.left { margin-left: 0; }

/* 内容区宽度容器 */
.narrow { max-width: 896px; margin: 0 auto; padding: 0 16px; }
.narrow-outer { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.wide { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

/* 渐变竖条卡片（简介/成果） */
.intro-card .card-bezel-inner { padding: 40px; }
.intro-card h2, .plain-title { font-size: 24px; font-weight: 700; line-height: 32px; margin-bottom: 16px; }
.intro-card p { line-height: 1.625; color: var(--fg); }
.edge-bar { position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.gradient-bg { background: linear-gradient(135deg, #f97316, #dc2626); }
.gradient-bg-warm { background: linear-gradient(135deg, #fbbf24, #f97316); }
.edge-bar { background: linear-gradient(180deg, #f97316, #dc2626); }
.edge-bar-warm { background: linear-gradient(180deg, #fbbf24, #f97316); }

/* 板块底色渐变叠加层（原站 absolute inset-0 渐变） */
.sec-tint-r { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(249,115,22,.02) 0%, rgba(220,38,38,.02) 50%, rgba(251,191,36,.02) 100%); }
.sec-tint-b { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(249,115,22,.02) 0%, transparent 100%); }

/* 标题带图标 */
/* 原站标题字号工具类：text-2xl / text-3xl（font-display bold） */
.h2-24 { font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -.02em; color: var(--fg); }
.h2-30 { font-size: 30px; font-weight: 700; line-height: 36px; letter-spacing: -.02em; color: var(--fg); }
.mb-4 { margin-bottom: 16px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }

.head-with-icon { font-size: 30px; font-weight: 700; line-height: 36px; margin-bottom: 48px; display: flex; align-items: center; gap: 12px; }
.head-with-icon svg { width: 30px; height: 30px; flex-shrink: 0; }

/* ---------- 益游房 ---------- */
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.room-card .card-bezel-inner { padding: 32px; }
.room-card .room-icon { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; margin-bottom: 16px; }
.room-card h3 { font-size: 18px; font-weight: 700; line-height: 28px; margin-bottom: 8px; }
.room-card p { font-size: 14px; line-height: 20px; color: var(--muted-fg); }

.stat-big { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.stat-big .card-glass { padding: 32px; text-align: center; }
.stat-big svg { display: block; width: 24px; height: 24px; margin: 0 auto 16px; color: var(--amber); }
.stat-big .num { display: block; font-size: 26px; font-weight: 700; line-height: 36px; white-space: nowrap; }
@media (min-width: 640px) { .stat-big .num { font-size: 48px; line-height: 48px; } }
/* 数字自适应卡片宽度：4 位数字（如 2,050+）在窄卡中不溢出加号 */
@supports (container-type: inline-size) {
  .stat-big .card-glass { container-type: inline-size; }
  .stat-big .num { font-size: min(48px, 25cqi); line-height: 1.15; }
}
.stat-big .cap { display: block; font-size: 12px; line-height: 16px; color: var(--muted-fg); margin-top: 12px; }

/* ---------- 焰火杯 ---------- */
.rule-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.rule-card .card-bezel-inner { padding: 32px; }
.rule-card .rule-icon { display: block; font-size: 36px; line-height: 40px; width: 36px; height: 36px; margin-bottom: 20px; }
.rule-card h3 { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 12px; }
.rule-card p { color: var(--muted-fg); line-height: 1.625; }

/* ---------- 招募 ---------- */
.recruit-banner { position: relative; overflow: hidden; padding: 64px 0; }
.recruit-banner .banner-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,.08) 0%, transparent 50%),
              linear-gradient(135deg, #f97316, #dc2626);
}
.recruit-banner .narrow, .recruit-banner .wide { position: relative; z-index: 10; text-align: center; }
.recruit-banner svg { display: block; width: 60px; height: 60px; margin: 0 auto 24px; color: rgba(255,255,255,.7); }
.recruit-banner h2 { font-size: 24px; line-height: 32px; font-weight: 700; color: #fff; margin-bottom: 12px; }
@media (min-width: 640px) { .recruit-banner h2 { font-size: 30px; line-height: 36px; } }

/* 当前团队规模 */
.team-size { text-align: center; }
.team-size .card-bezel { display: inline-block; }
.team-size .card-bezel-inner { padding: 48px; text-align: center; }
.team-size svg { display: block; width: 48px; height: 48px; margin: 0 auto 16px; color: var(--amber); }
.team-size .num { display: block; font-size: 60px; line-height: 1; font-weight: 700; margin-bottom: 8px; }
.team-size .cap { display: block; font-size: 18px; line-height: 28px; color: var(--muted-fg); }

/* 招募要求 */
.req-list { display: flex; flex-direction: column; gap: 16px; }
.req-item .card-bezel-inner { display: flex; align-items: flex-start; gap: 16px; padding: 24px; }
.req-item .card-bezel-inner > svg { display: block; width: 20px; height: 20px; flex-shrink: 0; margin-top: 4px; color: var(--amber); }
.req-item p { font-size: 18px; line-height: 28px; color: var(--fg); }

/* 申请加入 */
.apply-cta { text-align: center; }
.apply-cta h2 { font-size: 24px; line-height: 32px; font-weight: 700; margin-bottom: 16px; }
.apply-cta > p { font-size: 18px; line-height: 28px; color: var(--muted-fg); margin-bottom: 40px; }
.apply-cta .gradient-btn { padding: 16px 40px; font-size: 18px; font-weight: 600; }
.apply-cta .btn-arrow { width: 32px; height: 32px; }
.apply-cta .btn-arrow svg { width: 18px; height: 18px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  padding: 16px 24px; text-align: left; font-size: 12px; line-height: 16px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg);
  background: var(--wash);
}
.data-table td { padding: 16px 24px; font-size: 14px; line-height: 20px; border-top: 1px solid var(--line); }
/* 原站第三列 td 无 text-sm，随父级 16px/1.5 */
.data-table td:last-child { font-size: 16px; line-height: 24px; }
.data-table tr:hover td { background: rgba(249, 115, 22, .03); }
.data-table .t-name { font-weight: 500; color: var(--fg); display: inline-flex; align-items: center; gap: 8px; transition: color .3s; }
.data-table tr:hover .t-name { color: var(--orange); }
.data-table .t-name .arrow-xs { width: 16px; height: 16px; flex-shrink: 0; opacity: 0; transform: translateX(-4px); transition: all .3s; }
.data-table tr:hover .t-name .arrow-xs { opacity: 1; transform: none; }
.data-table .t-muted { color: var(--muted-fg); }
.type-pill { display: inline; white-space: nowrap; font-size: 12px; line-height: 16px; padding: 4px 12px; border-radius: 9999px; background: rgba(249, 115, 22, .1); color: var(--orange); font-weight: 500; }

/* 成绩榜单：前三名金/银/铜高亮 + 名次列样式 + 空状态 */
.data-table tr.rank-1 td { background: linear-gradient(90deg, rgba(245, 197, 66, .20), rgba(245, 197, 66, .05)); }
.data-table tr.rank-2 td { background: linear-gradient(90deg, rgba(203, 213, 225, .22), rgba(203, 213, 225, .05)); }
.data-table tr.rank-3 td { background: linear-gradient(90deg, rgba(205, 127, 50, .22), rgba(205, 127, 50, .05)); }
.data-table tr.rank-1:hover td { background: linear-gradient(90deg, rgba(245, 197, 66, .30), rgba(245, 197, 66, .10)); }
.data-table tr.rank-2:hover td { background: linear-gradient(90deg, rgba(203, 213, 225, .32), rgba(203, 213, 225, .10)); }
.data-table tr.rank-3:hover td { background: linear-gradient(90deg, rgba(205, 127, 50, .32), rgba(205, 127, 50, .10)); }
.data-table tr.rank-1 td:first-child { box-shadow: inset 4px 0 0 #f5c542; }
.data-table tr.rank-2 td:first-child { box-shadow: inset 4px 0 0 #cbd5e1; }
.data-table tr.rank-3 td:first-child { box-shadow: inset 4px 0 0 #cd7f32; }
.data-table .t-rank { font-weight: 700; white-space: nowrap; }
/* 金/银/铜名次徽章（纯 CSS，无 emoji 字体依赖） */
.data-table .rank-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 28px; padding: 0 4px; border-radius: 9999px;
  font-size: 14px; font-weight: 700; line-height: 1;
}
.data-table .rank-badge.b1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; box-shadow: 0 2px 8px rgba(245, 158, 11, .35); }
.data-table .rank-badge.b2 { background: linear-gradient(135deg, #e2e8f0, #94a3b8); color: #334155; box-shadow: 0 2px 8px rgba(148, 163, 184, .35); }
.data-table .rank-badge.b3 { background: linear-gradient(135deg, #e8a866, #b45309); color: #fff; box-shadow: 0 2px 8px rgba(180, 83, 9, .35); }
.results-empty { padding: 48px 0; text-align: center; }
.results-empty p { color: var(--muted-fg); font-size: 15px; }

/* ---------- 动态列表 ---------- */
.news-toolbar { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }
.news-toolbar .title-row { display: flex; align-items: center; gap: 12px; }
.news-toolbar .accent { width: 4px; height: 32px; border-radius: 9999px; background: linear-gradient(180deg, #f97316, #dc2626); }
.news-toolbar h2 { font-size: 24px; font-weight: 700; }
.search-box { position: relative; width: 100%; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-fg); }
.search-box input {
  width: 100%; padding: 10px 16px 10px 44px; border-radius: 9999px; font-size: 14px;
  color: var(--fg); background: var(--panel-4);
  border: 1px solid var(--border); outline: none; transition: all .4s var(--ease);
}
.search-box input::placeholder { color: rgba(140, 135, 128, .7); }
.search-box input:focus { border-color: rgba(249, 115, 22, .5); box-shadow: 0 0 0 3px rgba(249, 115, 22, .12); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 9999px;
  font-size: 14px; font-weight: 500; color: var(--muted-fg);
  background: var(--panel-4); border: 1px solid var(--border); transition: all .4s var(--ease);
}
.chip:hover { border-color: rgba(249, 115, 22, .4); color: var(--orange); }
.chip.active { color: #fff; background: linear-gradient(135deg, #f97316, #dc2626); border-color: transparent; }
.chip .cnt { font-size: 12px; opacity: .7; }

.news-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.news-list .card-bezel-inner { height: 100%; display: flex; flex-direction: column; }
.news-list .aspect-video { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.news-list .aspect-video img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.news-list .group:hover .aspect-video img { transform: scale(1.05); }
.news-list .body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.news-list .tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 4px 12px; border-radius: 9999px; background: rgba(249, 115, 22, .1); color: var(--orange); font-weight: 500; margin-bottom: 12px; }
.news-list .tag svg { width: 12px; height: 12px; }
.news-list h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; transition: color .4s; }
.news-list .group:hover h3 { color: var(--orange); }
.news-list .excerpt { font-size: 14px; color: var(--muted-fg); line-height: 1.6; margin-bottom: 16px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.news-list .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.news-list .date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-fg); }
.news-list .date svg { width: 12px; height: 12px; }
.news-list .read { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--orange); }
.news-list .read svg { width: 12px; height: 12px; transition: transform .4s; }
.news-list .group:hover .read svg { transform: translateX(3px); }
.empty-state { text-align: center; padding: 64px 0; }
.empty-state svg { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--muted-fg); }
.empty-state p { color: var(--muted-fg); }

/* ---------- 成员页主题预设（对应原站 staff-preset 体系） ---------- */
.staff-preset {
  --sp-1: 249 115 22; --sp-2: 251 191 36; --sp-3: 220 38 38;
  --sp-card: 18 18 18;
  --sp-glow-1: .08; --sp-glow-2: .06; --sp-glow-3: .05;
  --sp-radius: 1.75rem;
  --sp-bezel-width: 1px; --sp-bezel-style: solid;
  --sp-bezel-bg: rgb(255 255 255 / .02);
  --sp-bezel-border: rgb(255 255 255 / .06);
}
.staff-preset-anime {
  --sp-1: 236 72 153; --sp-2: 196 181 253; --sp-3: 129 140 248;
  --sp-glow-1: .11; --sp-glow-2: .09; --sp-glow-3: .07;
  --sp-radius: 2rem;
  --sp-bezel-bg: rgb(var(--sp-1) / .035);
  --sp-bezel-border: rgb(var(--sp-1) / .2);
}
.staff-preset-youth {
  --sp-1: 16 185 129; --sp-2: 163 230 53; --sp-3: 45 212 191;
  --sp-glow-1: .1; --sp-glow-2: .08; --sp-glow-3: .06;
  --sp-radius: 1.25rem;
  --sp-bezel-bg: rgb(var(--sp-1) / .035);
  --sp-bezel-border: rgb(var(--sp-1) / .2);
}
.staff-preset .mesh-bg {
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgb(var(--sp-1) / var(--sp-glow-1)), transparent),
    radial-gradient(ellipse 60% 40% at 80% 20%, rgb(var(--sp-2) / var(--sp-glow-2)), transparent),
    radial-gradient(ellipse 50% 60% at 60% 80%, rgb(var(--sp-3) / var(--sp-glow-3)), transparent);
}
.staff-preset .card-bezel {
  background: var(--sp-bezel-bg);
  border: var(--sp-bezel-width) var(--sp-bezel-style) var(--sp-bezel-border);
  border-radius: var(--sp-radius);
}
.staff-preset .card-bezel-inner {
  background: rgb(var(--sp-card) / .8);
  border-radius: calc(var(--sp-radius) - var(--sp-bezel-width) - 2px);
  box-shadow: inset 0 1px 1px var(--inset-hi), 0 10px 36px rgb(var(--sp-1) / .07);
}
.sp-gradient-text {
  background: linear-gradient(135deg, rgb(var(--sp-2)), rgb(var(--sp-1)), rgb(var(--sp-3)));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- 文章 / 成员详情 ---------- */
.article-hero { padding: 128px 0 40px; position: relative; overflow: hidden; background: var(--bg); }
.article-body-sec { background: var(--bg); padding: 0 0 64px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-fg); margin-bottom: 32px; transition: color .4s; }
.back-link:hover { color: var(--orange); }
.back-link svg { width: 14px; height: 14px; }
/* 原站为 block 级 flex 按钮（w=120 h=24），故独占一行并按 16/24 排版 */
.article-hero .back-link { display: flex; width: fit-content; font-size: 16px; line-height: 24px; }
.article-hero .back-link svg { width: 16px; height: 16px; }
.article-cover { margin-bottom: 24px; }
.article-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; text-transform: uppercase; letter-spacing: .05em; padding: 6px 12px; border-radius: 9999px; background: rgba(249, 115, 22, .1); color: var(--orange); font-weight: 500; margin-bottom: 16px; }
.article-tag svg { width: 12px; height: 12px; }
.article-title { font-size: 30px; font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: 16px; color: var(--fg); text-wrap: balance; }
.article-date { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.article-date svg { width: 14px; height: 14px; color: var(--amber); }
.prose { font-size: 16px; line-height: 1.75; color: #d1d5db; }
.prose p { color: var(--muted-fg); }
.prose h4 { font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: -0.02em; color: var(--fg); margin: 24px 0 8px; }
.prose p { margin: 20px 0; line-height: 1.625; }
.prose hr { border: none; border-top: 1px solid #374151; margin: 48px 0; }
/* 原站 typography：标题/分隔线之后的第一个元素取消上边距 */
.prose h4 + *, .prose hr + * { margin-top: 0; }
.prose strong { color: var(--fg); }
.prose img { max-width: 100%; height: auto; margin: 32px 0; vertical-align: middle; }
.cover-wrap { margin-bottom: 0; }
.cover-wrap img { width: 100%; height: auto; object-fit: cover; }
.article-prose-inner { padding: 32px; }
.article-back-btn { margin-top: 48px; text-align: center; }
.article-back-btn .gradient-btn { padding: 14px 32px; gap: 8px; }
.article-back-btn .gradient-btn svg { width: 16px; height: 16px; }

/* 成员详情 */
.member-hero { padding: 216px 0 64px; position: relative; overflow: hidden; background: var(--bg); }
.member-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
.member-side, .member-main { grid-column: span 1; }
.member-sticky { position: sticky; top: 96px; }
.member-side .card-bezel-inner { padding: 24px; text-align: center; }
.member-avatar { width: 128px; height: 128px; border-radius: 9999px; object-fit: cover; margin: 0 auto 16px; border: 2px solid rgb(var(--sp-1) / .35); }
.member-name { font-size: 24px; font-weight: 700; line-height: 32px; letter-spacing: -0.02em; margin-bottom: 8px; }
.member-roles { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.member-roles span { font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 12px; border-radius: 9999px; background: rgb(var(--sp-1) / .1); color: rgb(var(--sp-1)); }
.member-days-box { padding-top: 16px; border-top: 1px solid var(--line-2); }
.member-days-row { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 16px; line-height: 24px; color: var(--muted-fg); }
.member-days-row > span { font-size: 14px; line-height: 20px; }
.member-days-row svg { width: 16px; height: 16px; color: rgb(var(--sp-2)); }
.member-days-row .days-num { color: rgb(var(--sp-1)); font-weight: 700; line-height: 20px; }
.member-join-date { font-size: 12px; line-height: 16px; color: rgba(140, 135, 128, .6); margin-top: 4px; }
.member-main .card-bezel-inner { padding: 32px; }
.member-main .card-bezel + .card-bezel { margin-top: 24px; }
.member-sec-title { font-size: 20px; font-weight: 700; line-height: 28px; letter-spacing: -0.02em; color: var(--fg); margin-bottom: 16px; }
.member-bio { color: var(--fg); line-height: 1.625; white-space: pre-line; }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.info-cell { padding: 16px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); }
.info-cell-wide { grid-column: span 2; }
.info-label { font-size: 12px; line-height: 16px; color: var(--muted-fg); margin-bottom: 4px; }
.info-cell-wide .info-label { margin-bottom: 8px; }
.info-value { font-size: 14px; font-weight: 500; color: var(--fg); }
.info-mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.info-days { color: rgb(var(--sp-1)); font-weight: 700; }
.dept-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.dept-tags > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 10px; border-radius: 9999px; background: rgb(var(--sp-2) / .12); color: rgb(var(--sp-2)); }
.dept-tags .dot { color: rgb(var(--sp-2) / .6); }

/* 成员页浮动装饰图（接口 floating_images 下发）：宽屏两侧交错，窄屏隐藏避免压住正文 */
.member-floats { position: absolute; inset: 0; pointer-events: none; z-index: 1; display: none; }
.member-float { position: absolute; width: 190px; height: auto; max-height: 62vh; object-fit: contain;
  opacity: .9; filter: drop-shadow(0 18px 32px rgba(0, 0, 0, .18)); will-change: transform; }
.member-float-1 { left: 1.5%; top: 22%; }
.member-float-2 { right: 1.5%; top: 30%; }
.member-float-3 { right: 6%; top: 6%; width: 140px; }
@media (min-width: 1280px) { .member-floats { display: block; } }
@media (prefers-reduced-motion: reduce) { .member-float { will-change: auto; } }

/* 赛事详情 */
.event-hero { padding: 128px 0 64px; position: relative; overflow: hidden; background: var(--bg); }
.event-head-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.event-status { display: inline-block; font-size: 12px; line-height: 16px; font-weight: 500; padding: 4px 12px; border-radius: 9999px; background: rgba(220, 38, 38, .1); color: var(--red); }
.event-head-row .chip { padding: 4px 12px; font-size: 12px; line-height: 16px; background: var(--wash-3); color: var(--muted-fg); border-color: transparent; }
.event-title { margin-bottom: 12px; line-height: 36px; }
.event-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.event-meta .card-glass { padding: 16px; }
.event-meta svg { width: 16px; height: 16px; margin-bottom: 8px; }
.event-meta .card-glass:nth-child(1) svg { color: var(--orange); }
.event-meta .card-glass:nth-child(2) svg, .event-meta .card-glass:nth-child(3) svg { color: var(--amber); }
.event-meta .k { font-size: 12px; line-height: 16px; color: var(--muted-fg); margin-bottom: 4px; }
.event-meta .v { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--fg); }
.event-intro-card { margin-bottom: 32px; }
.event-intro-card .card-bezel-inner { padding: 32px; }
.event-intro-text { color: var(--fg); line-height: 1.625; white-space: pre-line; }
.event-notice { text-align: center; padding: 64px 0; color: var(--muted-fg); }

/* ---------- 成绩榜单卡（活动详情 resultsTable / 赛事详情 loadCompetitionResults 共用） ---------- */
.results-card .card-bezel-inner { padding: 32px; }
#activityView .results-card { margin-top: 24px; }
.table-wrap { overflow-x: auto; }

/* ---------- 关于我们：团队 / 平台 / 时间线 ---------- */
/* 管理团队分组标题（原站：核心 amber / 管理员 orange / 玩家 amber） */
.team-group-title { font-size: 14px; font-weight: 500; line-height: 20px; margin-bottom: 24px; }
.team-group-title.core, .team-group-title.player { color: var(--amber); }
.team-group-title.admin { color: var(--orange); }

/* 成员网格：原站 grid-cols-2 sm:grid-cols-3 md:grid-cols-5 gap-4 */
.team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.team-grid.core { margin-bottom: 32px; }
.team-grid.admin { margin-bottom: 48px; }
.team-grid.player { margin-bottom: 24px; }

.team-card .card-glass { padding: 20px; text-align: center; cursor: pointer; }
.team-card.core .card-glass { border-color: rgba(251, 191, 36, .2); }
.team-card .avatar {
  display: block; width: 48px; height: 48px; margin: 0 auto 12px;
  border-radius: 9999px; object-fit: cover;
}
.team-card.core .avatar { border: 1px solid rgba(251, 191, 36, .3); }
.team-card.admin .avatar { border: 1px solid rgba(249, 115, 22, .2); }
.team-card.player .avatar { border: 1px solid rgba(251, 191, 36, .2); }
.team-card .n {
  font-size: 14px; font-weight: 500; line-height: 20px; color: var(--fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-card .r {
  font-size: 12px; line-height: 16px; margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.team-card.core .r { color: var(--amber); }
.team-card.admin .r { color: var(--muted-fg); }

/* 入驻平台小标题（原站 text-sm font-medium uppercase tracking-wider） */
.mini-head {
  font-size: 14px; font-weight: 500; line-height: 20px; margin-bottom: 24px;
  text-transform: uppercase; letter-spacing: .05em; color: var(--orange);
}
.mini-head.amber { color: var(--amber); }
/* 原站 grid-cols-1 sm:grid-cols-3 gap-4 mb-12 */
.plat-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 48px; }
.plat-grid-3 .card-bezel-inner { padding: 32px; text-align: center; }
.plat-grid-3 img {
  display: block; width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 12px; object-fit: cover;
}
.plat-grid-3 .n {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700; line-height: 28px; color: var(--fg);
}
.plat-grid-3 .n svg { width: 14px; height: 14px; color: var(--muted-fg-50); flex-shrink: 0; }
/* 原站手机游戏标签：flex flex-wrap gap-3 mb-6，标签 h38（py-2 + text-sm + 1px 边框） */
.tag-wrap-lg { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.tag-wrap-lg .game-tag { padding: 8px 12px; font-size: 14px; line-height: 20px; }

/* 发展历程时间线 */
.timeline { position: relative; }
.timeline::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(249, 115, 22, .4) 15%, rgba(220, 38, 38, .4) 85%, transparent);
}
.tl-item { position: relative; }
.tl-item + .tl-item { margin-top: 32px; }
/* 原站 absolute left-5 md:left-1/2 w-3 h-3 bg-fire-orange border-4 border-background mt-2 */
.tl-item .dot {
  position: absolute; left: 20px; top: 8px; z-index: 10;
  width: 12px; height: 12px; border-radius: 9999px;
  background: var(--orange); border: 4px solid var(--bg);
  transform: translateX(-50%);
}
/* 移动端：卡片避开竖线（原站 ml-12） */
.tl-card {
  margin-left: 48px; padding: 20px; border-radius: 24px;
  background: var(--panel-6); border: 1px solid var(--line);
}
/* 日期为 inline，行盒由父级 line-height(24px) 撑起，与原站一致 */
.tl-card .date { font-size: 12px; font-weight: 700; line-height: 16px; color: var(--amber); text-transform: uppercase; letter-spacing: .05em; }
.tl-card p { font-size: 14px; line-height: 22.75px; color: var(--fg); margin-top: 8px; }

/* ---------- 联系我们 ---------- */
.qq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-bottom: 64px; }
.qq-card .card-bezel-inner { padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.qq-card .q-name { font-size: 14px; font-weight: 500; line-height: 20px; color: var(--fg); }
.qq-card .q-num { font-size: 12px; line-height: 16px; color: var(--muted-fg); font-family: ui-monospace, Menlo, Consolas, monospace; margin-top: 4px; }
.copy-btn { padding: 6px; border-radius: 8px; background: var(--wash-3); border: 1px solid var(--line-2); color: var(--muted-fg); display: inline-flex; font-size: 16px; line-height: 24px; transition: all .3s; }
.copy-btn:hover { border-color: rgba(249, 115, 22, .3); }
.copy-btn svg { width: 14px; height: 14px; display: block; }
.copy-btn.copied { color: var(--amber); }

.social-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-bottom: 64px; }
.social-card .card-bezel-inner { padding: 24px; display: flex; flex-direction: column; }
.sc-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sc-avatar { width: 40px; height: 40px; border-radius: 9999px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.sc-avatar span { font-size: 14px; font-weight: 700; line-height: 20px; color: var(--fg); }
.sc-avatar svg { width: 24px; height: 24px; color: var(--fg); }
.sc-name { font-size: 16px; font-weight: 700; line-height: 24px; color: var(--fg); }
.sc-id { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.sc-qr { flex: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.sc-qr img { width: 160px; height: 160px; object-fit: contain; border-radius: 12px; }
.sc-link { display: block; text-align: center; font-size: 12px; line-height: 16px; color: var(--orange); margin-top: auto; transition: color .3s; }
.sc-link:hover { color: var(--amber); }

.form-wrap { max-width: 672px; margin: 0 auto; }
.contact-form .card-bezel-inner { padding: 32px; position: relative; overflow: hidden; }
.form-fields { padding-left: 16px; }
.form-field + .form-field { margin-top: 24px; }
.form-field label { display: block; font-size: 12px; font-weight: 500; line-height: 16px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); margin-bottom: 8px; }
.form-field input, .form-field textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; line-height: 24px;
  background: var(--wash); border: 1px solid var(--line-2);
  color: var(--fg); font-size: 16px; font-family: inherit; transition: all .4s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: rgba(140, 135, 128, .5); }
.form-field input:focus, .form-field textarea:focus { border-color: rgba(249, 115, 22, .5); outline: none; box-shadow: 0 0 0 2px rgba(249, 115, 22, .1); }
.form-field textarea { resize: none; }
.form-submit { margin-top: 24px; width: 100%; padding: 14px 0; font-size: 16px; font-weight: 600; line-height: 24px; border-radius: 12px; justify-content: center; gap: normal; }

.form-success { text-align: center; padding: 64px 0; }
.form-success .ok-icon { display: block; width: 72px; height: 72px; color: var(--amber); margin: 0 auto 24px; }
.form-success h2 { font-size: 24px; font-weight: 700; line-height: 32px; color: var(--fg); margin-bottom: 12px; }
.form-success .reset-btn { margin-top: 24px; font-size: 16px; font-weight: 500; color: var(--orange); background: none; border: none; cursor: pointer; }
.form-success .reset-btn:hover { text-decoration: underline; }

.mail-card { margin-top: 64px; text-align: center; }
.mail-card .mail-icon { display: block; width: 36px; height: 36px; font-size: 36px; line-height: 40px; color: var(--amber); margin: 0 auto 16px; }
.mail-card h3 { font-size: 18px; font-weight: 600; line-height: 28px; color: var(--fg); margin-bottom: 8px; }
.mail-card p { font-size: 14px; line-height: 20px; color: var(--muted-fg); }
.mail-card p a { color: inherit; }

/* ---------- 响应式 ---------- */
@media (min-width: 640px) {
  .page-hero-title { font-size: 60px; line-height: 60px; }
  .section-title-lg { font-size: 36px; line-height: 40px; }
  .article-title { font-size: 36px; line-height: 40px; }
  .event-title { font-size: 48px; line-height: 48px; }
  .article-prose-inner { padding: 40px; }
  .results-card .card-bezel-inner { padding: 40px; }
  .contact-form .card-bezel-inner { padding: 40px; }
  .container { padding: 0 24px; }
  .wide { padding: 0 24px; }
  .narrow { padding: 0 24px; }
  .narrow-outer { padding: 0 24px; }
  /* .stat-big .num 字号由容器查询 min(48px,25cqi) 统一自适应，此处不再固定 48px，
     避免 768-1055px 四列窄卡中 4 位数字溢出卡片 */
  .news-toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
  .search-box { max-width: 320px; }
  .news-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-meta { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* 原站玩家管理员组 sm:grid-cols-4，md 及以上仍为 4 列 */
  .team-grid.player { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .plat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}@media (min-width: 768px) {
  /* 原站 grid-cols-2 md:grid-cols-4 */
  .stat-big { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .room-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rule-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-layout { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-main { grid-column: span 2; }
  .plat-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  /* 时间线桌面：竖线居中、卡片 5/12 左右交替（原站 md:left-1/2 / md:w-5/12） */
  .timeline::before { left: 50%; }
  .tl-item .dot { left: 50%; }
  .tl-item .tl-card { margin-left: 0; width: 41.6667%; }
  .tl-item .tl-card.right { margin-left: auto; }
}
@media (min-width: 1024px) {
  .qq-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .social-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .container { padding: 0 32px; }
  .wide { padding: 0 32px; }
  .narrow { padding: 0 32px; }
  .narrow-outer { padding: 0 32px; }
}

/* ---------- 条款与隐私（英文版：Tab + 正文） ---------- */
.legal-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.legal-tab { padding: 12px 24px; line-height: 20px; border-radius: 9999px; font-size: 14px; font-weight: 500;
  color: var(--muted-fg); background: var(--wash); border: 1px solid var(--line);
  cursor: pointer; transition: all .3s var(--ease); }
.legal-tab:hover { color: var(--fg); border-color: rgba(249, 115, 22, .3); }
.legal-tab.active { color: #fff; background: linear-gradient(135deg, #f97316, #dc2626); border-color: transparent; }
.legal-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 22.75px;
  color: var(--muted-fg); max-height: 70vh; overflow-y: auto; padding-right: 16px; }
.legal-card .card-bezel-inner { padding: 40px; }
/* ---------- 更新日志（英文版） ---------- */
.cl-sec { padding-top: 0; }
.cl-item { padding: 32px; position: relative; overflow: hidden; }
.cl-item::before { content: ''; position: absolute; top: 0; left: 0; width: 4px; height: 100%;
  background: linear-gradient(180deg, #f97316, #dc2626); }
.cl-body { padding-left: 16px; }
.cl-sec .reveal + .reveal { margin-top: 32px; }
.cl-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.cl-ver { padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 700; border-radius: 9999px;
  background: rgba(249, 115, 22, .1); color: var(--orange); }
.cl-date { font-size: 12px; line-height: 16px; color: var(--muted-fg); }
.cl-title { font-size: 20px; line-height: 28px; font-weight: 700; margin-bottom: 12px; }
.cl-group { font-size: 18px; line-height: 29.25px; font-weight: 600; color: var(--fg); margin: 0 0 12px; }
.cl-list { margin: 0 0 12px; padding-left: 20px; }
.cl-list li { font-size: 14px; line-height: 22.75px; color: var(--muted-fg); list-style: disc; margin-bottom: 4px; }
.cl-para { font-size: 14px; line-height: 22.75px; color: var(--muted-fg); margin-bottom: 12px; }

/* ---------- API 对接：Loading / 空状态 / Toast ---------- */
.api-state { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 48px 16px; color: var(--muted-fg); font-size: 14px; line-height: 1.6; text-align: center;
  grid-column: 1 / -1; justify-self: stretch; width: 100%; }   /* 放在 grid 容器里也占满整行并居中 */
.api-loading { min-height: 160px; }
.api-spinner { width: 26px; height: 26px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); border-top-color: var(--orange); animation: api-spin .8s linear infinite; }
@keyframes api-spin { to { transform: rotate(360deg); } }
.api-empty-ico { width: 34px; height: 34px; opacity: .35; }
.api-empty p { margin: 0; }
.api-skeleton { display: flex; flex-direction: column; gap: 10px; padding: 8px 0; }
.sk-line { height: 14px; border-radius: 6px; background: linear-gradient(90deg, var(--line) 25%, var(--hover) 37%, var(--line) 63%);
  background-size: 400% 100%; animation: api-shimmer 1.4s ease-in-out infinite; }
.sk-line.short { width: 55%; }
@keyframes api-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@media (prefers-reduced-motion: reduce) {
  .api-spinner { animation-duration: 2s; }
  .sk-line { animation: none; }
}

.api-toast { position: fixed; left: 50%; bottom: 32px; z-index: 2147483600; max-width: min(90vw, 460px);
  padding: 12px 20px; border-radius: 9999px; font-size: 14px; line-height: 1.4; color: #fff;
  background: rgba(24, 24, 24, .94); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35); backdrop-filter: blur(12px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  transition: opacity .24s var(--ease), transform .24s var(--ease); }
.api-toast.show { opacity: 1; transform: translate(-50%, 0); }
.api-toast.ok { border-color: rgba(34, 197, 94, .5); }
.api-toast.err { border-color: rgba(220, 38, 38, .55); }

/* 首页团队卡片（精简版）与平台项的空状态容器 */
.home-team-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (min-width: 640px) { .home-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.home-team-grid .team-card .avatar { width: 64px; height: 64px; }

/* 接口数据占位（无封面图 / 无头像 / 无 logo 时不塌陷） */
.news-img-empty { width: 100%; height: 100%; min-height: 160px;
  background: linear-gradient(135deg, var(--hover), var(--line)); }
.plat-logo-empty { display: inline-block; width: 36px; height: 36px; border-radius: 8px;
  background: var(--hover); flex: none; }
.avatar-empty { display: inline-block; background: var(--hover); }

/* ==========================================================
   动效增强层（2026-10）
   原则：全部可由 prefers-reduced-motion 一键关闭；
        位移/透明度之外尽量用 CSS 变量驱动，避免 JS 高频写样式触发重排
   ========================================================== */

/* ---------- 1. 顶部滚动进度条 ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; z-index: 60;
  width: 100%; height: 3px; pointer-events: none;
  background: transparent;
}
.scroll-progress::before {
  content: ""; display: block; height: 100%; width: var(--sp, 0%);
  background: linear-gradient(90deg, var(--orange), #fbbf24);
  box-shadow: 0 0 12px rgba(249, 115, 22, .55);
}

/* ---------- 2. 导航栏滚动态变：收缩 + 更实的背景 ---------- */
.nav-pill { transition: padding .45s var(--ease), max-width .45s var(--ease),
    background-color .45s var(--ease), box-shadow .45s var(--ease),
    border-color .45s var(--ease), transform .45s var(--ease); }
.site-header.scrolled .nav-pill {
  box-shadow: 0 8px 26px rgba(0, 0, 0, .16);
  border-color: var(--hover-strong);
  background: var(--scrim);          /* 滚动后背景更实，正文从下方穿过时仍清晰可读 */
}
/* 两块胶囊的静态 padding 不同，收缩值分开给，避免互相覆盖 */
.site-header.scrolled .nav-brand { padding: 8px 16px; }
.site-header.scrolled .nav-center { padding: 5px 8px; }
.site-header.scrolled .nav-actions { padding: 5px 6px; }
.site-header.scrolled .brand-img { height: 24px; }
.brand-img { transition: height .45s var(--spring); }

/* ---------- 3. 卡片 3D 倾斜 + 鼠标光晕 ----------
   JS 只写两个 CSS 变量（--tx/--ty/--mx/--my），变换全交给 transform；
   避免逐帧写 transform 字符串造成样式重算 */
.tilt { transform-style: preserve-3d; will-change: transform; }
.tilt-inner { transform: translateZ(0); }
.tilt .hover-glow {
  position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%),
    rgba(249, 115, 22, .16), transparent 65%);
}
.tilt:hover .hover-glow { opacity: 1; }

/* ---------- 4. 列表错落入场：同容器内的 .reveal 依次延迟 ---------- */
[data-stagger] > .reveal:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 55ms; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 110ms; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 165ms; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 220ms; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 275ms; }
[data-stagger] > .reveal:nth-child(n+7) { transition-delay: 330ms; }

/* ---------- 5. 图片淡入（懒加载/封面图就位时） ---------- */
.img-fade { opacity: 0.001; transform: scale(1.015);
  transition: opacity .6s var(--ease), transform .6s var(--ease); }
.img-fade.loaded { opacity: 1; transform: none; }

/* ---------- 6. 按钮 / 可点区域的涟漪 ---------- */
.ripple-host { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .28;
  transform: scale(0); animation: ripple-out .62s var(--ease) forwards;
}
@keyframes ripple-out { to { transform: scale(2.6); opacity: 0; } }

/* ---------- 7. 站内锚点平滑滚动 ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ---------- 8. 卡片 hover 微抬升（统一在 CSS 层，无 JS 参与） ---------- */
.card-bezel, .plat-item, .card-glass { transition: transform .4s var(--ease),
    border-color .4s var(--ease), box-shadow .4s var(--ease); }
.card-bezel:hover, .plat-item:hover, .card-glass:hover { transform: translateY(-3px); }
/* 倾斜中的卡片交给 JS 接管 transform，避免与抬升互相覆盖 */
.tilt:hover { transform: none; }
/* ⚠ 倾斜卡片的 transform 完全由 JS 每帧（rAF）驱动，绝不能保留 .4s 缓动：
   否则鼠标快速移动时，0.4s 缓动会持续去追一个每帧都在变的目标，
   在方向突变 / 离开重入的瞬间产生抖动（抽搐）。边框与阴影过渡保留。 */
.tilt { transition: border-color .4s var(--ease), box-shadow .4s var(--ease); }

/* ---------- 9. 骨架屏 shimmer 增强（沿用 api-shimmer，补齐图片占位） ---------- */
.sk-img { position: relative; overflow: hidden; background: var(--wash); }
.sk-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
  background-size: 400% 100%; animation: api-shimmer 1.4s ease-in-out infinite;
}

/* ---------- 关闭开关：用户要求减少动画时全部停用 ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-progress { display: none; }
  .tilt, .tilt .hover-glow, .card-bezel, .plat-item, .card-glass { transition: none !important; }
  .card-bezel:hover, .plat-item:hover, .card-glass:hover { transform: none; }
  [data-stagger] > .reveal { transition-delay: 0ms !important; }
  .img-fade { opacity: 1; transform: none; transition: none; }
  .ripple { display: none; }
  /* 顶部导航：关掉入场动画与弹性位移，底色改回 .nav-link 自身背景（滑动条不启用） */
  .site-header { animation: none; }
  .nav-indicator { display: none; }
  .nav-link.active { background: rgba(249, 115, 22, .1); }
  .nav-link:hover { background: var(--line-2); }
  .nav-link:hover, .nav-link:active, .nav-brand:hover, .nav-brand:active,
  .round-btn:hover, .round-btn:active, .lang-btn:hover, .lang-btn:active,
  .nav-links.open { transform: none; }
  /* 不收缩（两块各自还原静态 padding，避免被统一值覆盖成一块） */
  .site-header.scrolled .nav-brand { padding: 11px 20px; }
  .site-header.scrolled .nav-center { padding: 7px 10px; }
  .site-header.scrolled .nav-actions { padding: 7px 8px; }
  .site-header.scrolled .brand-img { height: 28px; }
}

/* ---------- 10. 锚点目标避开固定导航栏 ---------- */
[id] { scroll-margin-top: 96px; }

/* ---------- 竞速赛事结果组件：看板 + 末轮总榜 + 折叠分轮 + Tabs ---------- */
.race-section { margin-top: 24px; }
.race-section .title-row h2 { font-size: 24px; line-height: 32px; font-weight: 700; }

/* 顶部看板：三卡片网格（字段为 null 时整卡隐藏，由 JS 控制） */
.race-dash-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.race-card {
  padding: 24px; border-radius: 16px;
  background: var(--wash); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.race-card:hover { border-color: rgba(249, 115, 22, .35); transform: translateY(-2px); }
.race-card-label { font-size: 13px; line-height: 18px; color: var(--muted-fg); letter-spacing: .02em; }
.race-card-val {
  font-size: 28px; line-height: 34px; font-weight: 800; color: var(--fg);
  font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}

/* 比赛总排名徽标 */
.race-final .title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.race-badge {
  padding: 4px 14px; border-radius: 9999px; font-size: 12px; font-weight: 600;
  background: rgba(249, 115, 22, .12); color: var(--orange); border: 1px solid rgba(249, 115, 22, .25);
}

/* 折叠面板（Accordion）：默认收起，点击展开 */
.accordion { display: flex; flex-direction: column; gap: 14px; }
.acc-item {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  background: var(--wash);
}
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: transparent; border: 0; cursor: pointer;
  font-size: 17px; font-weight: 600; color: var(--fg); text-align: left;
  transition: background .25s var(--ease);
}
.acc-head:hover { background: rgba(249, 115, 22, .04); }
.acc-toggle {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 9999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; color: var(--orange);
  background: rgba(249, 115, 22, .1); border: 1px solid rgba(249, 115, 22, .25);
}
.acc-body { padding: 0 24px 24px; border-top: 1px solid var(--line); }
.acc-body[hidden] { display: none; }

/* Tabs：首 Tab「本轮总成绩」+ 各关卡 Tab */
.tabs { margin-top: 20px; }
.tab-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.tab {
  padding: 10px 18px; line-height: 18px; border-radius: 9999px; font-size: 13px; font-weight: 500;
  color: var(--muted-fg); background: transparent; border: 1px solid var(--line);
  cursor: pointer; transition: all .25s var(--ease);
}
.tab:hover { color: var(--fg); border-color: rgba(249, 115, 22, .3); }
.tab.active { color: #fff; background: linear-gradient(135deg, #f97316, #dc2626); border-color: transparent; }
.tab-panels { position: relative; }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: raceFade .25s var(--ease); }
@keyframes raceFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 竞速表：复用 .data-table，补充平台ID/挑战成绩列与暗色适配 */
.race-table td.t-pid, .race-table th:nth-child(3) { font-variant-numeric: tabular-nums; color: var(--muted-fg); white-space: nowrap; }
.race-table td.t-att { color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.race-table td.t-att:empty::before { content: '-'; }

@media (max-width: 720px) {
  .race-dash-grid { grid-template-columns: 1fr; }
  .race-card-val { font-size: 24px; line-height: 30px; }
  .acc-head { padding: 16px 18px; font-size: 15px; }
  .acc-body { padding: 0 18px 18px; }
}
