/* ==========================================================================
   TEAM JBYangC — 全站样式表 / Global stylesheet
   --------------------------------------------------------------------------
   设计原则 / Design principles
     1. 简约：大量留白、克制的描边、只用一条强调色渐变贯穿全站
     2. 平滑渐变：所有过渡统一使用长缓动曲线，动效不抢内容
     3. 专业正式：排版以信息层级为先，装饰元素一律降饱和度
     4. 保留娱乐内核：文案区留出呼吸感，卡片交互带一点轻快的上浮
   ========================================================================== */

/* ==========================================================================
   1. 设计变量 / Design tokens
   --------------------------------------------------------------------------
   默认深色。浅色在同文件下半部分的 [data-theme="light"] 里覆盖同一组变量，
   其余规则一律通过变量取值，所以切换主题不需要重写任何组件样式。
   ========================================================================== */
:root {
  color-scheme: dark;

  /* 底色 —— 极深的蓝黑，避免纯黑的廉价感 */
  --bg:            #05070d;
  --bg-soft:       #080b14;
  --surface:       #0c1120;
  --surface-2:     #111830;
  --elevated:      #141c34;

  /* 描边 —— 用带蓝的冷白，透明度分层 */
  --line:          rgba(148, 180, 235, 0.10);
  --line-strong:   rgba(148, 180, 235, 0.20);

  /* 文字 —— 三级层次，正文不刺眼 */
  --text:          #e9eefb;
  --text-soft:     #a8b6d4;
  --text-mute:     #6b7a9c;

  /* 强调色 —— 青 → 蓝 → 靛，全站唯一渐变 */
  --cyan:          #22d3ee;
  --sky:           #38bdf8;
  --blue:          #3b82f6;
  --indigo:        #6366f1;
  --violet:        #8b5cf6;

  --grad:          linear-gradient(115deg, var(--cyan) 0%, var(--sky) 28%, var(--blue) 58%, var(--indigo) 100%);
  --grad-soft:     linear-gradient(115deg, rgba(34,211,238,.16), rgba(99,102,241,.16));
  --grad-line:     linear-gradient(90deg, transparent, rgba(34,211,238,.55), rgba(99,102,241,.55), transparent);

  /* 结果色 / Result accents */
  --win:           #34d399;
  --loss:          #fb7185;
  --friendly:      #fbbf24;

  /* 组件级颜色 —— 由主题覆盖，组件规则只引用变量 */
  --media-bg:      #04060c;                       /* 视频框底色 */
  --btn-on-accent: #04121a;                       /* 渐变底上的文字 */
  --card-top:      rgba(17, 24, 48, .72);         /* 卡片渐变起点 */
  --card-bottom:   rgba(10, 14, 28, .62);         /* 卡片渐变终点 */
  --card-top-2:    rgba(17, 24, 48, .55);
  --card-bottom-2: rgba(9, 12, 24, .5);
  --tile-top:      rgba(17, 24, 48, .8);
  --tile-bottom:   rgba(9, 12, 24, .7);
  --glass:         rgba(6, 9, 17, .78);           /* 导航毛玻璃 */
  --glass-strong:  rgba(6, 9, 17, .96);           /* 抽屉 */
  --chip-bg:       rgba(148, 180, 235, .05);
  --chip-bg-hover: rgba(148, 180, 235, .07);
  --hover-wash:    rgba(148, 180, 235, .045);
  --badge-bg:      rgba(6, 9, 17, .72);
  --glow-a:        rgba(34, 211, 238, .5);
  --glow-b:        rgba(99, 102, 241, .5);
  --glow-c:        rgba(56, 189, 248, .28);
  --vignette-top:  rgba(5, 7, 13, .86);
  --vignette-bot:  rgba(5, 7, 13, .92);
  --shadow-color:  rgba(0, 0, 0, .9);
  --photo-fade:    rgba(9, 12, 24, .96);          /* 照片下缘渐隐 */
  --shot-cap-bg:   rgba(6, 9, 17, .5);
  --lightbox-bg:   rgba(3, 5, 10, .9);

  /* 缓动 —— 统一曲线，是"平滑"的来源 */
  --ease:          cubic-bezier(.22, .61, .36, 1);
  --ease-out:      cubic-bezier(.16, 1, .3, 1);
  --ease-soft:     cubic-bezier(.4, 0, .2, 1);

  /* 时长 */
  --t-fast:        .22s;
  --t-base:        .42s;
  --t-slow:        .78s;
  --t-ambient:     18s;

  /* 尺寸 */
  --shell:         1200px;
  --radius:        16px;
  --radius-sm:     10px;
  --radius-lg:     24px;
  --nav-h:         72px;

  /* 字体 —— 中文回退到系统黑体，英文用几何无衬线 */
  --font:          'Inter', 'HarmonyOS Sans SC', 'PingFang SC', 'Microsoft YaHei',
                   'Hiragino Sans GB', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'SFMono-Regular', 'Cascadia Mono', Consolas, monospace;

  /* 光晕 */
  --glow-cyan:     0 0 40px rgba(34, 211, 238, .28);
  --glow-indigo:   0 0 46px rgba(99, 102, 241, .26);
  --shadow:        0 24px 60px -28px var(--shadow-color);
  --shadow-soft:   0 12px 30px -18px var(--shadow-color);
}

/* ==========================================================================
   1b. 浅色主题 / Light theme
   --------------------------------------------------------------------------
   同一套变量名换成浅色取值。强调色整体压深一档，
   保证在白底上仍有足够对比度（青 → 深青，靛 → 深靛）。
   ========================================================================== */
[data-theme="light"] {
  color-scheme: light;

  --bg:            #f7f9fd;
  --bg-soft:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef2fa;
  --elevated:      #ffffff;

  --line:          rgba(15, 40, 90, 0.10);
  --line-strong:   rgba(15, 40, 90, 0.20);

  --text:          #0b1526;
  --text-soft:     #45536e;
  --text-mute:     #77839c;

  --cyan:          #0e9bb8;
  --sky:           #0d86c9;
  --blue:          #2158d8;
  --indigo:        #4c4ee0;
  --violet:        #7038d4;

  --grad-soft:     linear-gradient(115deg, rgba(14,155,184,.14), rgba(76,78,224,.12));
  --grad-line:     linear-gradient(90deg, transparent, rgba(14,155,184,.45), rgba(76,78,224,.45), transparent);

  --win:           #0d9b6c;
  --loss:          #d63d5b;
  --friendly:      #b4780a;

  --media-bg:      #e9eef8;
  --btn-on-accent: #ffffff;
  --card-top:      rgba(255, 255, 255, .96);
  --card-bottom:   rgba(240, 244, 252, .9);
  --card-top-2:    rgba(255, 255, 255, .92);
  --card-bottom-2: rgba(242, 246, 253, .86);
  --tile-top:      rgba(255, 255, 255, .97);
  --tile-bottom:   rgba(242, 246, 253, .92);
  --glass:         rgba(255, 255, 255, .82);
  --glass-strong:  rgba(255, 255, 255, .97);
  --chip-bg:       rgba(15, 40, 90, .05);
  --chip-bg-hover: rgba(15, 40, 90, .08);
  --hover-wash:    rgba(15, 40, 90, .04);
  --badge-bg:      rgba(255, 255, 255, .78);
  --glow-a:        rgba(14, 155, 184, .30);
  --glow-b:        rgba(76, 78, 224, .26);
  --glow-c:        rgba(13, 134, 201, .20);
  --vignette-top:  rgba(247, 249, 253, .9);
  --vignette-bot:  rgba(247, 249, 253, .95);
  --shadow-color:  rgba(21, 46, 92, .17);
  --photo-fade:    rgba(255, 255, 255, .97);
  --shot-cap-bg:   rgba(255, 255, 255, .7);
  --lightbox-bg:   rgba(248, 250, 253, .93);
}

/* 浅色下环境光晕要弱一些，否则会糊成一片彩色 */
[data-theme="light"] .ambient__glow { opacity: .3; filter: blur(110px); }
[data-theme="light"] .ambient__grid {
  background-image:
    linear-gradient(rgba(15, 40, 90, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 40, 90, .05) 1px, transparent 1px);
}

/* ==========================================================================
   2. 基础重置 / Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.24;
  letter-spacing: -.015em;
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: rgba(34, 211, 238, .3); color: #fff; }

/* 滚动条 —— 与主题同色系 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(34,211,238,.4), rgba(99,102,241,.4));
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(34,211,238,.65), rgba(99,102,241,.65));
}

/* 键盘可达性 —— 焦点环统一 */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 跳过导航 / Skip link */
.skip-link {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 999;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  border: 1px solid var(--line-strong);
  transform: translateY(-160%);
  transition: transform var(--t-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   3. 环境背景 / Ambient background
   --------------------------------------------------------------------------
   两层柔和光晕缓慢漂移 + 一层细网格。
   全部用 transform 动画（合成层），不触发重排。
   ========================================================================== */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}
.ambient__glow--a {
  top: -22vh; left: -12vw;
  width: 62vw; height: 62vw;
  background: radial-gradient(circle, var(--glow-a), transparent 68%);
  animation: drift-a var(--t-ambient) var(--ease-soft) infinite alternate;
}
.ambient__glow--b {
  bottom: -28vh; right: -16vw;
  width: 68vw; height: 68vw;
  background: radial-gradient(circle, var(--glow-b), transparent 68%);
  animation: drift-b calc(var(--t-ambient) * 1.3) var(--ease-soft) infinite alternate;
}
.ambient__glow--c {
  top: 34%; left: 42%;
  width: 40vw; height: 40vw;
  background: radial-gradient(circle, var(--glow-c), transparent 70%);
  animation: drift-c calc(var(--t-ambient) * 1.6) var(--ease-soft) infinite alternate;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(9vw, 7vh, 0) scale(1.16); }
}
@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.08); }
  to   { transform: translate3d(-11vw, -8vh, 0) scale(1); }
}
@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) scale(.9); opacity: .22; }
  to   { transform: translate3d(-6vw, 9vh, 0) scale(1.2); opacity: .42; }
}

/* 细网格 —— 极低对比，提供"技术感"而不喧哗 */
.ambient__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(148, 180, 235, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 180, 235, .045) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 80% 62% at 50% 42%, #000 12%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 62% at 50% 42%, #000 12%, transparent 78%);
}

/* 顶部/底部渐隐，让内容自然嵌入背景 */
.ambient__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--vignette-top) 0%, transparent 26%, transparent 74%, var(--vignette-bot) 100%);
}

/* 内容层必须高于背景 */
.page { position: relative; z-index: 1; }

/* 首帧淡入 —— 由 main.js 在初始化完成后加上，避免样式未就绪时的闪动。
   没有 JS 时不会添加该类，内容保持完全可见。 */
body.is-ready { animation: page-in .6s var(--ease-out) both; }
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ==========================================================================
   4. 布局 / Layout
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
}

.section { padding: 104px 0; position: relative; }
.section--tight { padding: 68px 0; }

/* 分区之间的分隔光带 */
.section--divide::before {
  content: '';
  display: block;
  height: 1px;
  width: min(100% - 56px, var(--shell));
  margin: 0 auto 104px;
  background: var(--grad-line);
  opacity: .5;
}

.section__head { margin-bottom: 52px; max-width: 780px; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: var(--grad);
  flex: none;
}
.section__head--center .eyebrow::after {
  content: '';
  width: 26px; height: 1px;
  background: var(--grad);
  flex: none;
}

.section__title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 18px;
}

.section__lede {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.85;
  margin: 0;
}

/* 渐变文字 —— 全站视觉主线。
   背景比文字宽一点，避免末字被渐变边缘切掉。 */
.grad-text {
  background: var(--grad);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-pan 9s var(--ease-soft) infinite alternate;
  /* 兜底：万一浏览器不支持 background-clip: text，
     透明字会完全看不见，所以用 supports 查询把它还原成纯色。 */
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text { color: var(--cyan); background: none; }
}
@keyframes grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

.mono { font-family: var(--font-mono); }

/* ==========================================================================
   5. 导航 / Navigation
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background var(--t-base) var(--ease-soft),
    border-color var(--t-base) var(--ease-soft),
    backdrop-filter var(--t-base) var(--ease-soft);
}
/* 滚动后浮出毛玻璃 */
.nav.is-stuck {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}
/* 顶部进度条 —— 渐变流动 */
.nav__progress {
  position: absolute;
  bottom: -1px; left: 0;
  height: 2px; width: 100%;
  transform: scaleX(var(--progress, 0));
  transform-origin: 0 50%;
  background: var(--grad);
  transition: transform .12s linear;
  opacity: 0;
}
.nav.is-stuck .nav__progress { opacity: 1; }

.nav__inner {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
  margin-right: auto;
}
.brand__mark {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 11px;
  background: var(--grad-soft);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease);
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.brand:hover .brand__mark {
  transform: rotate(-4deg) scale(1.06);
  border-color: rgba(34, 211, 238, .5);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand__sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* 菜单 */
.nav__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__link {
  position: relative;
  padding: 9px 14px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--chip-bg-hover); }
/* 下划线渐变展开 */
.nav__link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--t-base) var(--ease-out);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { transform: scaleX(1); }

/* 语言切换 */
.lang {
  display: flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  background: var(--chip-bg-hover);
  border: 1px solid var(--line);
  flex: none;
  position: relative;
}.lang__pill {
  position: absolute;
  top: 3px; left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: 999px;
  background: var(--grad);
  transition: transform var(--t-base) var(--ease-out);
  pointer-events: none;
}
.lang[data-lang="en"] .lang__pill { transform: translateX(100%); }
.lang__btn {
  position: relative;
  z-index: 1;
  min-width: 46px;
  padding: 6px 10px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-mute);
  cursor: pointer;
  transition: color var(--t-base) var(--ease);
}
.lang__btn.is-on { color: var(--btn-on-accent); }

/* 导航右侧控件组 */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

/* 白天 / 黑夜 / 跟随系统 三态切换：
   三个图标叠在同一格，靠 data-mode 决定显示哪一个。 */
.theme-btn {
  position: relative;
  width: 40px; height: 40px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  color: var(--text-soft);
  cursor: pointer;
  overflow: hidden;
  transition:
    border-color var(--t-fast) var(--ease),
    background var(--t-fast) var(--ease),
    color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease-out);
}
.theme-btn:hover {
  border-color: rgba(34, 211, 238, .45);
  background: var(--chip-bg-hover);
  color: var(--cyan);
  transform: translateY(-1px);
}
.theme-btn__glyph {
  position: relative;
  display: block;
  width: 20px; height: 20px;
}
.theme-btn__glyph svg {
  position: absolute;
  inset: 0;
  width: 20px; height: 20px;
  transform: rotate(-55deg) scale(.4);
  opacity: 0;
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-base) var(--ease);
}
/* 按当前模式显示对应图标，切换时图标旋转淡入 */
.theme-btn[data-mode="auto"]  .theme-btn__glyph svg:nth-child(1),
.theme-btn[data-mode="light"] .theme-btn__glyph svg:nth-child(2),
.theme-btn[data-mode="dark"]  .theme-btn__glyph svg:nth-child(3) {
  transform: none;
  opacity: 1;
}

/* 汉堡按钮 */
.burger {
  display: none;
  width: 42px; height: 42px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  cursor: pointer;
  place-items: center;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.burger:hover { border-color: var(--line-strong); }
.burger span {
  display: block;
  width: 17px; height: 1.6px;
  margin: 3.4px auto;
  border-radius: 2px;
  background: var(--text-soft);
  transition: transform var(--t-base) var(--ease-out), opacity var(--t-fast) var(--ease), background var(--t-base) var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); background: var(--cyan); }
.burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
.burger.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); background: var(--cyan); }

/* 移动端抽屉 */
.drawer {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  padding: 18px 28px 30px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 4px;
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    opacity var(--t-base) var(--ease-soft),
    visibility var(--t-base);
}
.drawer.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.drawer__link {
  padding: 14px 4px;
  font-size: 17px;
  font-weight: 600;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color var(--t-fast) var(--ease), padding-left var(--t-base) var(--ease-out);
}
.drawer__link::after {
  content: '→';
  font-size: 15px;
  color: var(--text-mute);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease);
}
.drawer__link:hover,
.drawer__link.is-active { color: var(--text); padding-left: 10px; }
.drawer__link:hover::after { transform: translateX(4px); color: var(--cyan); }

/* 抽屉底部：语言与外观（桌面端这两个控件在顶栏，移动端挪进来） */
.drawer__actions {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}
.theme-row {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  color: var(--text-soft);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.theme-row:hover { border-color: rgba(34, 211, 238, .4); color: var(--text); }

/* ==========================================================================
   6. 按钮 / Buttons
   ========================================================================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease),
    border-color var(--t-base) var(--ease),
    color var(--t-base) var(--ease);
}
.btn:active { transform: translateY(0) scale(.985); }

/* 主按钮：渐变底 + 悬停时渐变推移 */
.btn--primary {
  color: var(--btn-on-accent);
  background: var(--grad);
  background-size: 200% 100%;
  background-position: 0% 50%;
  box-shadow: 0 12px 34px -14px rgba(34, 211, 238, .7);
}
.btn--primary:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -14px rgba(34, 211, 238, .8);
}

/* 次按钮：描边 + 悬停渐变渗入。
   底色与悬停渐变都画在 ::before 上，避免被 .btn 的 isolation 压到背景之后。 */
.btn--ghost {
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--chip-bg);
  opacity: 1;
  transition: opacity var(--t-base) var(--ease);
}
.btn--ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--grad-soft);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(34, 211, 238, .45);
}
.btn--ghost:hover::after { opacity: 1; }

/* 文字按钮 */
.btn--text {
  padding: 8px 2px;
  border-radius: 0;
  color: var(--cyan);
}
.btn--text::after {
  content: '';
  position: absolute;
  left: 2px; right: 2px; bottom: 4px;
  height: 1px;
  background: var(--cyan);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform var(--t-base) var(--ease-out);
}
.btn--text:hover::after { transform: scaleX(1); }
.btn--text:hover { gap: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ==========================================================================
   7. 卡片 / Cards
   ========================================================================== */
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
/* 顶部渐变高光，悬停时显现 */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
/* 悬停时的柔光扩散 */
.card::after {
  content: '';
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 50% 0%, rgba(34, 211, 238, .13), transparent 58%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}
.card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.card:hover::before,
.card:hover::after { opacity: 1; }

.card__icon {
  width: 46px; height: 46px;
  margin-bottom: 20px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--cyan);
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease);
}
.card:hover .card__icon { transform: translateY(-2px) scale(1.05); }
.card__icon svg { width: 22px; height: 22px; }

.card__title { font-size: 19px; margin-bottom: 12px; }
.card__text { color: var(--text-soft); font-size: 15.2px; line-height: 1.8; }

/* 栅格 */
.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ==========================================================================
   8. 滚动揭示动画 / Scroll reveal
   --------------------------------------------------------------------------
   初始状态在 CSS 里，JS 只负责加 .is-in。这样即使 JS 失效，
   no-js 回退规则也能保证内容可见。
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--t-slow) var(--ease-out),
    transform var(--t-slow) var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal--left  { transform: translateX(-30px); }
.reveal--right { transform: translateX(30px); }
.reveal--scale { transform: scale(.96) translateY(18px); }
.reveal--blur  { filter: blur(10px); }
.reveal--blur.is-in { filter: blur(0); }

/* ==========================================================================
   9. 首页 Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 72px) 0 88px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px;
  align-items: center;
  width: 100%;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 8px;
  margin-bottom: 30px;
  border-radius: 999px;
  background: var(--chip-bg);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
}
.hero__badge b {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--grad);
  color: var(--btn-on-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  font-family: var(--font-mono);
}
/* 呼吸小点 */
.hero__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--win);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: pulse 2.6s var(--ease-soft) infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70%  { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

.hero__title {
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.1;
  letter-spacing: -.025em;
  /* 裁切修复：负字距会让最后一个字形紧贴行盒右缘，
     而渐变文字是 background-clip: text，超出区域没有背景就显示为空。
     这里给右侧留出约 0.3em 的余量，末字就不会被切掉。 */
  padding: .04em .30em .06em .02em;
  margin-bottom: 24px;
  overflow: visible;
}
.hero__title span { display: block; }
.hero__title .line-2 {
  font-size: .58em;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .006em;
  margin-top: 12px;
}

.hero__lead {
  max-width: 560px;
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-soft);
  margin-bottom: 38px;
}

/* 关键数据条 */
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-mono);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__label {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-mute);
  letter-spacing: .06em;
}

/* 右侧徽章展示 */
.hero__crest {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
/* 缓慢旋转的渐变光环 */
.hero__ring {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  padding: 1px;
  background: conic-gradient(from 0deg,
    transparent 0%, rgba(34,211,238,.75) 12%, transparent 30%,
    transparent 50%, rgba(99,102,241,.7) 64%, transparent 82%);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  animation: spin 22s linear infinite;
  will-change: transform;
}
.hero__ring--inner { inset: 17%; animation-duration: 34s; animation-direction: reverse; opacity: .55; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero__crest-img {
  position: relative;
  z-index: 2;
  width: 62%;
  filter: drop-shadow(0 26px 60px rgba(34, 211, 238, .34));
  animation: float 7.5s var(--ease-soft) infinite alternate;
  will-change: transform;
}
@keyframes float {
  from { transform: translateY(-9px); }
  to   { transform: translateY(9px); }
}
/* 徽章底部的渐变色斑 */
.hero__crest::after {
  content: '';
  position: absolute;
  bottom: 12%;
  width: 54%;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(34, 211, 238, .34), transparent 70%);
  filter: blur(22px);
  animation: breathe 7.5s var(--ease-soft) infinite alternate;
}
@keyframes breathe {
  from { opacity: .4; transform: scale(.88); }
  to   { opacity: .85; transform: scale(1.08); }
}

/* 向下滚动提示 */
.scroll-hint {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.scroll-hint__line {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--cyan), transparent);
  animation: hint 2.4s var(--ease-soft) infinite;
  transform-origin: 50% 0;
}
@keyframes hint {
  0%   { transform: scaleY(0); opacity: 0; }
  40%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(46px); opacity: 0; }
}

/* 首页横向跑马灯 —— 战队关键词 */
.marquee {
  position: relative;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 56px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-mute);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--grad);
  flex: none;
}

/* ==========================================================================
   9b. 团队合影 / Group photo
   --------------------------------------------------------------------------
   合影是横幅比例，不适合放进正方形图片格，所以单独一套：
   不限高、不裁切，按原始比例铺满内容宽度。
   ========================================================================== */
.group-figure {
  margin: 52px 0 0;
  position: relative;
}
.group-figure__frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--card-top), var(--card-bottom));
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease);
}
.group-figure__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(0, 0, 0, .18));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none;
}
.group-figure:hover .group-figure__frame {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.group-figure:hover .group-figure__frame::after { opacity: 1; }
.group-figure__frame img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--t-slow) var(--ease-out);
}
.group-figure:hover .group-figure__frame img { transform: scale(1.015); }
.group-figure__cap {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--text-mute);
  text-align: center;
}

/* 素材库里的单图展示（合影） */
.photo-frame {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--card-top), var(--card-bottom));
  overflow: hidden;
  line-height: 0;
  cursor: zoom-in;
  transition:
    border-color var(--t-base) var(--ease),
    transform var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease);
}
.photo-frame:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.photo-frame img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   10. 选手卡片 / Player cards
   ========================================================================== */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 24px;
}

.player {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, var(--tile-top), var(--tile-bottom));
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--t-base) var(--ease-out),
    border-color var(--t-base) var(--ease),
    box-shadow var(--t-base) var(--ease);
}
.player:hover {
  transform: translateY(-7px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
/* 选手专属渐变，悬停时从底部渗上来 */
.player__wash {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 34%, var(--p-a, #22d3ee) 130%);
  opacity: .1;
  transition: opacity var(--t-slow) var(--ease);
}
.player:hover .player__wash { opacity: .26; }

/* 照片位 —— 固定比例，保证不同素材高度一致 */
.player__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 76% 56% at 50% 104%, rgba(34, 211, 238, .16), transparent 66%),
    linear-gradient(170deg, var(--chip-bg), transparent 60%);
}
.player__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform var(--t-slow) var(--ease-out), filter var(--t-base) var(--ease);
}
.player:hover .player__photo img { transform: scale(1.05); }

/* 印花 / 无照片回退：完整可见，不裁切 */
.player__photo--contain img { object-fit: contain; padding: 16% 12%; }

/* 昵称首字母占位，永不空白 */
.player__initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 74px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .5;
}

/* 照片下缘渐隐，与卡片信息区无缝衔接 */
.player__photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52%;
  background: linear-gradient(180deg, transparent, var(--photo-fade) 84%);
  pointer-events: none;
}

.player__role-tag {
  position: absolute;
  top: 14px; left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line-strong);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-soft);
}
.player__cap {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--grad);
  color: var(--btn-on-accent);
  font-size: 12px;
  font-weight: 800;
  font-family: var(--font-mono);
}

.player__body {
  position: relative;
  z-index: 2;
  padding: 4px 22px 24px;
  margin-top: -22px;
}
.player__id {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.player__alias {
  font-size: 13px;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.player__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  letter-spacing: .05em;
}
.player__arrow {
  transition: transform var(--t-base) var(--ease-out), color var(--t-base) var(--ease);
}
.player:hover .player__arrow { transform: translateX(5px); color: var(--cyan); }

/* ==========================================================================
   11. 选手详情页 / Player detail
   ========================================================================== */
.pd { padding: calc(var(--nav-h) + 54px) 0 100px; }

.pd__top {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 76px;
}

.pd__portrait {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background:
    radial-gradient(ellipse 74% 54% at 50% 100%, rgba(34, 211, 238, .2), transparent 68%),
    linear-gradient(170deg, var(--chip-bg), transparent 58%);
  border: 1px solid var(--line);
  display: grid;
  place-items: end center;
  transition: border-color var(--t-base) var(--ease);
}
.pd__portrait:hover { border-color: var(--line-strong); }
.pd__portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pd__portrait--contain img { object-fit: contain; padding: 12%; }

.pd__name {
  font-size: clamp(38px, 6.2vw, 68px);
  line-height: 1.04;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}
.pd__roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--chip-bg-hover);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-soft);
  transition: border-color var(--t-base) var(--ease), color var(--t-base) var(--ease), background var(--t-base) var(--ease);
}
.chip:hover { border-color: rgba(34, 211, 238, .4); color: var(--text); }
.chip--accent {
  background: var(--grad-soft);
  border-color: rgba(34, 211, 238, .3);
  color: var(--text);
  font-weight: 600;
}
.chip__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--grad); flex: none; }

/* 资料表 */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
}
.facts__cell {
  padding: 18px 20px;
  background: var(--bg-soft);
  transition: background var(--t-base) var(--ease);
}
.facts__cell:hover { background: var(--surface); }
.facts__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 7px;
}
.facts__v { font-size: 15.5px; font-weight: 600; }

/* 素材展示条 */
.asset-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.asset-tile {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-top-2), var(--card-bottom-2));
  border: 1px solid var(--line);
  text-align: center;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease);
}
.asset-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.asset-tile__media {
  height: 160px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}
.asset-tile__media img {
  max-height: 160px;
  width: auto;
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out);
}
.asset-tile:hover .asset-tile__media img { transform: scale(1.06); }
.asset-tile__label { font-size: 13px; color: var(--text-mute); letter-spacing: .04em; }

/* ==========================================================================
   11b. 平台战绩卡片 / Performance stats card
   --------------------------------------------------------------------------
   数据取自参考卡片（完美平台导出的 HTML），视觉全部改用本站设计变量，
   所以白天 / 黑夜两种主题下都成立。
   雷达图不再沿用原卡片的装饰性八边形，而是由能力数据动态生成（见 player.html）。
   ========================================================================== */
.stats-card {
  position: relative;
  padding: 30px 32px 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, var(--tile-top), var(--tile-bottom));
  overflow: hidden;
  isolation: isolate;
}
/* 顶部渐现的光带 + 右上角柔光，与素材库卡片同一套语言 */
.stats-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--grad);
  opacity: .75;
}
.stats-card::after {
  content: '';
  position: absolute;
  top: -32%; right: -12%;
  width: 48%; height: 92%;
  z-index: -1;
  background: radial-gradient(circle, var(--glow-a), transparent 68%);
  opacity: .3;
  filter: blur(52px);
  pointer-events: none;
}

/* 区块小标题：让卡片内部有层次，而不是三块裸内容 */
.block__title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}

/* --- 卡片头部：昵称 / 战力 / 段位 ------------------------------------- */
.stats-card__head {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 32px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.stats-card__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.stats-card__nick {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mute);
  letter-spacing: .02em;
}
.stats-card__power {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 8px;
}
.stats-card__power-k {
  font-size: 13px;
  color: var(--text-mute);
}
.stats-card__power-v {
  font-family: var(--font-mono);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: .12em;
  filter: drop-shadow(0 0 18px rgba(34, 211, 238, .28));
}
.stats-card__power-v--none {
  color: var(--text-mute);
  background: none;
  filter: none;
}

.stats-card__ranks { display: flex; gap: 14px; flex-wrap: wrap; }
.rank-chip {
  min-width: 112px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  text-align: center;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.rank-chip:hover { border-color: rgba(34, 211, 238, .4); transform: translateY(-2px); }
.rank-chip__k {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 4px;
  letter-spacing: .06em;
}
.rank-chip__v {
  font-family: var(--font-mono);
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
}
.rank-chip__v i { font-style: normal; font-size: 14px; color: var(--text-soft); }

/* --- 中部：环形评分 + 关键数据 ---------------------------------------- */
.stats-card__main {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 28px 44px;
  align-items: start;
  padding: 26px 0;
}
.rings { display: flex; gap: 30px; flex-wrap: wrap; }
.ring { text-align: center; }
.ring__label {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-bottom: 4px;
  letter-spacing: .04em;
}
.ring__svg { width: 124px; height: 124px; display: block; }
.ring__track {
  fill: none;
  stroke: var(--chip-bg-hover);
  stroke-width: 8;
}
/* 用 --off 承载 dashoffset：基础值保证静态正确，动画负责入场增长 */
.ring__arc {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dashoffset: var(--off);
  filter: drop-shadow(0 0 6px rgba(34, 211, 238, .32));
  animation: ring-grow 1.2s var(--ease-out) both;
}
@keyframes ring-grow {
  from { stroke-dashoffset: 339.292; }
  to   { stroke-dashoffset: var(--off); }
}
.ring__num {
  fill: var(--text);
  font-family: var(--font-mono);
  font-size: 27px;
  font-weight: 700;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}
.metric {
  padding: 12px 4px;
  border-radius: var(--radius-sm);
  text-align: center;
  border: 1px solid transparent;
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
}
.metric:hover { background: var(--hover-wash); border-color: var(--line); }
.metric__k {
  font-size: 12.5px;
  color: var(--text-mute);
  margin-bottom: 6px;
  white-space: nowrap;
}
.metric__v {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1;
}
.metric__v--low { color: var(--loss); }
/* 百分比类指标额外给一条细进度条，让数值有视觉参照 */
.metric__bar {
  width: 74%;
  height: 3px;
  margin: 9px auto 0;
  border-radius: 999px;
  background: var(--chip-bg-hover);
  overflow: hidden;
}
.metric__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  width: var(--w);
  animation: bar-grow 1.1s var(--ease-out) both;
}

/* --- 底部：雷达图 + 能力评级 ------------------------------------------ */
.stats-card__bottom {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 24px 44px;
  align-items: start;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.radar__svg { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; }
.radar__grid { fill: none; stroke: var(--line); stroke-width: 1; }
.radar__spoke { stroke: var(--line); stroke-width: 1; }
.radar__data {
  fill: url(#radarFill);
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linejoin: round;
  animation: radar-in .85s var(--ease-out) both;
}
@keyframes radar-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.radar__dot {
  stroke: var(--bg-soft);
  stroke-width: 1.6;
}
.radar__stop-a { stop-color: var(--cyan);   stop-opacity: .44; }
.radar__stop-b { stop-color: var(--indigo); stop-opacity: .10; }
.radar__axis {
  font-family: var(--font);
  font-size: 14px;
  fill: var(--text-soft);
}
.radar__axis-val {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
}
.radar__axis-unit { font-size: 9px; opacity: .65; }

.abilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 30px;
}
.ability { min-width: 0; }
.ability__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}
.ability__name { font-size: 14px; color: var(--text-soft); }
.ability__right { display: flex; align-items: baseline; gap: 9px; }
.ability__grade {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}
.ability__pct {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-mute);
  min-width: 22px;
  text-align: right;
}
.ability__bar {
  height: 8px;
  border-radius: 999px;
  background: var(--chip-bg-hover);
  overflow: hidden;
}
.ability__bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
  width: var(--w);
  animation: bar-grow 1.1s var(--ease-out) both;
}
@keyframes bar-grow {
  from { width: 0; }
  to   { width: var(--w); }
}

/* 等级配色：琥珀 → 绿 → 浅绿 → 黄 → 灰（沿用素材里已出现的颜色） */
.grade--S { color: #ffd166; }
.grade--A { color: #72e672; }
.grade--B { color: #8ed849; }
.grade--C { color: #d4b836; }
.grade--D { color: var(--text-mute); }
.grade-bg--S { background: linear-gradient(90deg, #ffb347, #ffd166); }
.grade-bg--A { background: linear-gradient(90deg, #30d8c7, #72e672); }
.grade-bg--B { background: linear-gradient(90deg, #43aaff, #8ed849); }
.grade-bg--C { background: linear-gradient(90deg, #c9a227, #d4b836); }
.grade-bg--D { background: var(--text-mute); }
.grade-fill--S { fill: #ffd166; }
.grade-fill--A { fill: #72e672; }
.grade-fill--B { fill: #8ed849; }
.grade-fill--C { fill: #d4b836; }
.grade-fill--D { fill: #8a93a3; }

@media (max-width: 1040px) {
  .stats-card__main { grid-template-columns: 1fr; }
  .stats-card__bottom { grid-template-columns: 1fr; }
  .radar__svg { max-width: 300px; }
}
@media (max-width: 720px) {
  .stats-card { padding: 22px 20px 26px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .abilities { grid-template-columns: 1fr; }
  .stats-card__head { flex-direction: column; align-items: flex-start; }
  .rings { gap: 18px; }
  .ring__svg { width: 104px; height: 104px; }
  .radar__svg { max-width: 280px; }
  .stats-card__power-v { font-size: 26px; }
}

/* ==========================================================================
   12. 表格 / Tables（赛事记录）
   ========================================================================== */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(160deg, var(--card-top-2), var(--card-bottom-2));
}
.table-scroll { overflow-x: auto; }

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
}
table.data thead th {
  padding: 16px 22px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-mute);
  background: var(--chip-bg);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.data tbody td {
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--text-soft);
  vertical-align: middle;
}
table.data tbody tr { transition: background var(--t-fast) var(--ease); }
table.data tbody tr:hover { background: var(--hover-wash); }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .cell-strong { color: var(--text); font-weight: 600; }
table.data .cell-mono { font-family: var(--font-mono); font-size: 13.5px; letter-spacing: .02em; }

/* 结果标签 */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  border: 1px solid transparent;
}
.tag::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex: none; }
.tag--win      { color: var(--win);      background: rgba(52, 211, 153, .1);  border-color: rgba(52, 211, 153, .28); }
.tag--loss     { color: var(--loss);     background: rgba(251, 113, 133, .1); border-color: rgba(251, 113, 133, .28); }
.tag--friendly { color: var(--friendly); background: rgba(251, 191, 36, .1);  border-color: rgba(251, 191, 36, .28); }

/* 空状态 */
.empty {
  padding: 68px 30px;
  text-align: center;
}
.empty__icon {
  width: 62px; height: 62px;
  margin: 0 auto 22px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--cyan);
  animation: float 6s var(--ease-soft) infinite alternate;
}
.empty__title { font-size: 19px; margin-bottom: 12px; }
.empty__text { color: var(--text-mute); font-size: 15px; max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* 站长提示条 —— 只在需要用户补内容时出现 */
.hint-bar {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  margin-bottom: 26px;
  border-radius: var(--radius-sm);
  background: rgba(251, 191, 36, .06);
  border: 1px solid rgba(251, 191, 36, .22);
  font-size: 14.2px;
  color: #f3d68a;
  line-height: 1.7;
}
.hint-bar svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--friendly); }
.hint-bar code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(251, 191, 36, .14);
  color: #fde9b3;
}

/* ==========================================================================
   13. 素材库 / Media gallery
   ========================================================================== */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.video-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.video-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}
.video-card__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--media-bg);
  overflow: hidden;
}
.video-card__frame video {
  width: 100%; height: 100%;
  object-fit: contain;
}
.video-card--crest .video-card__frame video { object-fit: contain; }
.video-card__info {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
}
.video-card__title { font-size: 16px; font-weight: 600; margin-bottom: 5px; }
.video-card__note { font-size: 13px; color: var(--text-mute); }

/* 图片瀑布 / 网格 */
.shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
}
.shot {
  position: relative;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--card-top-2), var(--card-bottom-2));
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.shot:hover { transform: translateY(-5px); border-color: rgba(34, 211, 238, .38); box-shadow: var(--shadow); }
.shot__frame {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 18px;
}
.shot__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  transition: transform var(--t-slow) var(--ease-out);
}
.shot:hover .shot__frame img { transform: scale(1.07); }
.shot__cap {
  padding: 12px 16px;
  font-size: 12.5px;
  color: var(--text-mute);
  border-top: 1px solid var(--line);
  background: var(--shot-cap-bg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 悬停时浮出的缩放提示 */
.shot__zoom {
  position: absolute;
  top: 12px; right: 12px;
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--badge-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  opacity: 0;
  transform: scale(.8);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.shot:hover .shot__zoom { opacity: 1; transform: scale(1); }
.shot__zoom svg { width: 15px; height: 15px; }

/* 灯箱 */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 34px;
  background: var(--lightbox-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease-soft), visibility var(--t-base);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(94vw, 1100px);
  max-height: 82vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  transform: scale(.94);
  opacity: 0;
  transition: transform var(--t-slow) var(--ease-out), opacity var(--t-base) var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); opacity: 1; }
.lightbox__cap {
  position: absolute;
  bottom: 34px; left: 0; right: 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-soft);
}
.lightbox__close {
  position: absolute;
  top: 22px; right: 22px;
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip-bg-hover);
  border: 1px solid var(--line-strong);
  color: var(--text);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-base) var(--ease-out);
}
.lightbox__close:hover { background: var(--chip-bg-hover); filter: brightness(1.25); transform: rotate(90deg); }
.lightbox__close svg { width: 18px; height: 18px; }

/* ==========================================================================
   14. 加入我们 / Join
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--card-top), var(--card-bottom));
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), border-color var(--t-base) var(--ease);
}
.contact::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--grad);
  transform: scaleY(0);
  transform-origin: 50% 0;
  transition: transform var(--t-base) var(--ease-out);
}
.contact:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.contact:hover::before { transform: scaleY(1); }
.contact__icon {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--cyan);
  transition: transform var(--t-base) var(--ease-out);
}
.contact:hover .contact__icon { transform: scale(1.07) rotate(-4deg); }
.contact__icon svg { width: 20px; height: 20px; }
.contact__k { font-size: 13px; color: var(--text-mute); margin-bottom: 4px; }
.contact__v { font-size: 15.5px; font-weight: 600; word-break: break-all; }
.contact__v--pending { color: var(--text-mute); font-weight: 500; font-style: italic; }

/* 加入流程步骤 */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 22px;
  padding: 26px 28px;
  background: var(--bg-soft);
  align-items: start;
  transition: background var(--t-base) var(--ease);
}
.step:hover { background: var(--surface); }
.step__n {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step__t { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step__d { color: var(--text-soft); font-size: 15px; line-height: 1.8; margin: 0; }

/* ==========================================================================
   15. 正文排版 / Prose（战队介绍页）
   ========================================================================== */
.prose { max-width: 760px; }
.prose p {
  font-size: 17.2px;
  line-height: 2;
  color: var(--text-soft);
  margin-bottom: 1.5em;
}
.prose p:first-of-type::first-letter {
  float: left;
  font-size: 3.4em;
  line-height: .84;
  padding: 6px 14px 0 0;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.prose strong { color: var(--text); font-weight: 600; }

/* 引用块 */
.quote {
  position: relative;
  margin: 40px 0;
  padding: 28px 32px 28px 36px;
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(34, 211, 238, .07), rgba(99, 102, 241, .05));
  border: 1px solid var(--line);
  overflow: hidden;
}
.quote::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
}
.quote p { font-size: 17px; color: var(--text); font-style: italic; margin: 0; line-height: 1.9; }
.quote cite { display: block; margin-top: 14px; font-size: 13px; color: var(--text-mute); font-style: normal; }

/* 时间线 */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 5px; top: 8px; bottom: 8px;
  width: 1px;
  background: linear-gradient(180deg, var(--cyan), rgba(99, 102, 241, .5), transparent);
}
.tl-item { position: relative; padding-bottom: 38px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -30px; top: 8px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--cyan);
  transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease-out);
}
.tl-item:hover::before { box-shadow: 0 0 0 5px rgba(34, 211, 238, .14); transform: scale(1.15); }
.tl-item__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  color: var(--cyan);
  margin-bottom: 8px;
}
.tl-item__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.tl-item__d { color: var(--text-soft); font-size: 15px; line-height: 1.8; margin: 0; }

/* ==========================================================================
   16. 页脚 / Footer
   ========================================================================== */
.footer {
  position: relative;
  padding: 68px 0 34px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(8, 11, 20, .8));
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  gap: 44px;
  margin-bottom: 52px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.footer__brand img { width: 44px; height: 44px; object-fit: contain; }
.footer__brand-name { font-size: 18px; font-weight: 700; }
.footer__brand-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer__desc { color: var(--text-mute); font-size: 14.5px; line-height: 1.85; max-width: 340px; }
.footer__h {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 18px;
}
.footer__links { display: grid; gap: 11px; }
.footer__link {
  font-size: 14.5px;
  color: var(--text-soft);
  width: fit-content;
  transition: color var(--t-fast) var(--ease), transform var(--t-base) var(--ease-out);
}
.footer__link:hover { color: var(--cyan); transform: translateX(4px); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-mute);
}

/* ==========================================================================
   17. 响应式 / Responsive
   ========================================================================== */

/* 素材全部加载失败时的提示：明确告诉用户是加载问题，而不是留白。
   放在响应式之前，因为它与断点无关。 */
[data-fallback-holder].show-fallback::after,
.shot__frame.is-broken::after {
  content: '素材未加载';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--text-mute);
  background: var(--grad-soft);
  pointer-events: none;
}

@media (max-width: 1040px) {
  .hero__inner { grid-template-columns: 1fr; gap: 52px; }
  .hero__crest { max-width: 400px; margin: 0 auto; width: 100%; }
  .pd__top { grid-template-columns: 1fr; gap: 40px; }
  .pd__portrait { max-width: 400px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  /* 这一档顶栏控件最多，压一压菜单的横向占用，避免英文菜单挤出边界 */
  .nav__inner { gap: 12px; }
  .nav__link { padding: 9px 10px; font-size: 14px; }
  .nav__link::after { left: 10px; right: 10px; }
}

@media (max-width: 880px) {
  .nav__menu { display: none; }
  /* 顶栏只留品牌、外观与汉堡；语言切换挪进抽屉 */
  .nav__actions .lang { display: none; }
  .drawer__actions { display: flex; }
  .burger { display: grid; }
  .section { padding: 78px 0; }
  .section--divide::before { margin-bottom: 78px; }
}

@media (max-width: 640px) {
  .shell { padding: 0 18px; }
  .nav__inner { padding: 0 18px; }
  .drawer { padding: 14px 18px 24px; }
  .hero { min-height: auto; padding: calc(var(--nav-h) + 46px) 0 64px; }
  .hero__stats { gap: 26px 34px; margin-top: 38px; }
  .stat__num { font-size: 25px; }
  .section { padding: 62px 0; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .roster-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
  .card { padding: 22px; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .prose p { font-size: 16.2px; }
  .prose p:first-of-type::first-letter { font-size: 2.8em; padding-right: 10px; }
  .step { grid-template-columns: 44px 1fr; gap: 16px; padding: 20px; }
  .step__n { font-size: 21px; }
  .scroll-hint { display: none; }
  .shots { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .lightbox { padding: 16px; }
  .lightbox__cap { bottom: 18px; font-size: 13px; }
}

/* ==========================================================================
   18. 动效偏好 / Reduced motion
   --------------------------------------------------------------------------
   尊重系统设置：关闭所有位移动画与无限循环，只保留即时可读性。
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .hero__crest-img, .empty__icon { animation: none; }
}

/* ==========================================================================
   19. 无脚本回退 / No-JS fallback
   ========================================================================== */
.no-js .reveal { opacity: 1; transform: none; filter: none; }
.no-js .drawer, .no-js .burger { display: none; }

/* ==========================================================================
   20. 素材缺失提示 / Missing-asset notice
   --------------------------------------------------------------------------
   只在真的读不到素材时才由 JS 创建并浮现，全部正常时页面上不存在这个元素。
   ========================================================================== */
.asset-notice {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 180;
  width: min(360px, calc(100vw - 36px));
  padding: 20px 22px 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, .3);
  background: var(--glass-strong);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
  transition:
    transform var(--t-slow) var(--ease-out),
    opacity var(--t-slow) var(--ease-out);
}
.asset-notice.is-in { transform: none; opacity: 1; }

.asset-notice__close {
  position: absolute;
  top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--chip-bg);
  color: var(--text-mute);
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.asset-notice__close:hover { color: var(--text); background: var(--chip-bg-hover); }
.asset-notice__close svg { width: 14px; height: 14px; }

.asset-notice__title {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--friendly);
  margin-bottom: 10px;
  padding-right: 30px;
}
.asset-notice__text {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-soft);
  margin: 0 0 14px;
}
.asset-notice__tree {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--text-mute);
  background: var(--chip-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 14px;
  overflow-x: auto;
  white-space: nowrap;
}
.asset-notice__btn {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--cyan);
  transition: transform var(--t-base) var(--ease-out);
}
.asset-notice__btn:hover { transform: translateX(3px); }

@media (max-width: 640px) {
  .asset-notice { right: 12px; left: 12px; bottom: 12px; width: auto; }
}

/* ==========================================================================
   21. 打印 / Print
   ========================================================================== */
@media print {
  .ambient, .nav, .footer, .scroll-hint, .marquee, .burger { display: none !important; }
  body { background: #fff; color: #111; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
