/* ============ Fonts (Poppins — 全站唯一字体，中文回退系统字体) ============ */
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

/* ============ Tokens ============ */
:root {
  --ink: #1F1233;
  --ink-2: #4E4462;
  --muted: #9A92A8;
  --faint: #B9B0C9;
  --pink: #F5308C;
  --pink-deep: #E02579;
  --purple: #8A3FFC;
  --base: #FBF8FE;
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.75);
  --hairline: rgba(31, 18, 51, 0.08);
  /* 深色文字/线条的统一白色发光边缘：1.5px 全亮 + 0.5px 中亮 + 0.5px 淡光 */
  --white-glow: drop-shadow(0 0 1.5px rgba(255, 255, 255, 1)) drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.95)) drop-shadow(0 0 0.5px rgba(255, 255, 255, 0.3));
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  background: var(--base);
  color: var(--ink);
  overflow: hidden;
  height: 100dvh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(245, 48, 140, 0.2); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

/* ============ Layers ============ */
/* top 向上扩 60px：cover 取景中心上移 30px（视频整体位置），底部无空隙 */
#stage { position: fixed; inset: 0; top: -60px; z-index: 0; background: var(--base); }
#stage video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.12s linear;
}
#stage video.visible { opacity: 1; }

/* 全页蒙版层：用户提供的 背景蒙版2.png，叠在视频上一层 */
#ambient {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: url('../assets/img/mask.webp') center / cover no-repeat;
  opacity: 1;
}
#ribbon-trail { position: fixed; inset: 0; z-index: 85; pointer-events: none; width: 100%; height: 100%; }

/* 静态页（无视频）背景 */
.static-bg {
  position: fixed; inset: 0; z-index: 0;
  background: url('../assets/img/poster.jpg') center / cover no-repeat;
}

/* ============ Nav ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 40px; gap: 24px;
}
.nav .logo img { height: 34px; width: auto; }
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 38px;
  filter: var(--white-glow);
}
.nav-links a {
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--pink); font-weight: 500; }
.nav-actions { display: flex; align-items: center; gap: 18px; filter: var(--white-glow); }
.icon-btn {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; transition: background 0.2s, transform 0.2s;
}
.icon-btn img { width: 22px; height: 22px; }
.icon-btn svg { width: 21px; height: 21px; stroke: #55506B; }
.icon-btn:hover { background: rgba(31, 18, 51, 0.06); transform: translateY(-1px); }
/* 音乐按钮：关闭状态显示斜杠 */
#music-btn .mslash { display: none; }
#music-btn.off .mslash { display: block; }
#music-btn.off svg { opacity: 0.75; }

/* 语言选择下拉菜单 */
.lang-menu {
  position: fixed; z-index: 90; min-width: 132px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px; padding: 6px;
  box-shadow: 0 16px 40px rgba(60, 30, 120, 0.16), 0 3px 10px rgba(31, 18, 51, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu button {
  display: block; width: 100%; text-align: left; white-space: nowrap;
  padding: 9px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
  transition: background 0.15s, color 0.15s;
}
.lang-menu button:hover { background: rgba(245, 48, 140, 0.07); color: var(--ink); }
.lang-menu button.cur { color: var(--pink); }
.lang-menu button.cur::after { content: '✓'; float: right; margin-left: 10px; }

/* ============ 左侧章节菜单 ============ */
.side-menu {
  position: fixed; left: 48px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: flex; flex-direction: column; gap: 20px;
  border-left: 1px solid rgba(31, 18, 51, 0.12); padding: 6px 0 6px 22px;
  filter: var(--white-glow); /* 文字、左侧线、圆点统一白色发光边 */
}
.side-menu button {
  pointer-events: none; cursor: default; /* 仅指示当前章节，不可点击 */
  position: relative; text-align: left;
  font-size: 13px; font-weight: 400; letter-spacing: 0.06em;
  color: #8F86A3; transition: color 0.3s; white-space: nowrap;
}
.side-menu button:hover { color: var(--ink-2); }
.side-menu button::before {
  content: ''; position: absolute; left: -27px; top: 50%;
  width: 9px; height: 9px; transform: translate(-0%, -50%) scale(0.4);
  background: url('../assets/img/icon-titleD.png') center / contain no-repeat;
  opacity: 0; transition: opacity 0.3s, transform 0.3s;
}
.side-menu button.active { color: var(--ink); font-weight: 500; }
.side-menu button.active::before { opacity: 1; transform: translate(-0%, -50%) scale(1); }

/* ============ 首页启动加载指示（视频就绪前；就绪标记由 chapter-engine 打上） ============ */
/* 白色毛玻璃蒙层：盖住背景与（尚未入场的）hero 区，导航保持清晰可用；
   就绪揭幕时与 hero 入场动画一起淡出 */
.boot-veil {
  position: fixed; inset: 0; z-index: 24; /* 背景(0/1)与 hero(20) 之上，spinner(30)/nav(50) 之下 */
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  pointer-events: none;
}
.boot-veil.out { animation: blOut 0.6s ease forwards; }
.boot-loader {
  position: fixed; left: 50%; top: 50%; z-index: 30;
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  animation: blIn 0.4s ease 0.25s forwards; /* 延迟出现：缓存秒开时不闪一下 */
  transition: top 0.6s ease, transform 0.6s ease; /* mini 停靠的位移动画 */
}
/* 12s 兜底揭幕后、视频仍未就绪：spinner 缩小停靠到 CTA 下方空隙的正中
   继续转，真就绪才淡出、scroll-hint 登场。
   停靠点与 CTA 共用同一套锚定公式：CTA 底边距视口底 = hero 的
   bottom(9vh，≤960px 为 7vh) + .cta 的 10px 上提，空隙即 0 到这条线，
   取其中点 → 结构上不可能与按钮相撞（等价于
   bottom:calc((9vh+10px)/2)+translateY(50%)，写成 top 轴是为保住 0.6s
   停靠补间——top→auto 不可动画）。
   ⚠️ 常量镜像自 #hero-overlay 的 bottom 与 .cta 的 top:-10px，改那边要同步。
   spinner 在场 ⇔ 章节暂不可滚 */
.boot-loader.mini {
  top: calc(100% - (9vh + 10px) / 2);
  transform: translate(-50%, -50%) scale(0.4);
}
@media (max-width: 960px) {
  .boot-loader.mini { top: calc(100% - (7vh + 10px) / 2); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .boot-loader.mini { display: none; } /* 同 scroll-hint：矮横屏没有这个槽位 */
}
.boot-loader.out { animation: blOut 0.45s ease forwards; }
@keyframes blIn { to { opacity: 1; } }
@keyframes blOut { from { opacity: 1; } to { opacity: 0; } }
.bl-box { position: relative; width: 120px; height: 120px; }
.bl-rotor { position: absolute; inset: 0; animation: blSpin 1.2s linear infinite; }
@keyframes blSpin { to { transform: rotate(360deg); } }
/* 几何与 app 的 LoadingSpinner 一致（120px 基准） */
.bl-ring {
  position: absolute; left: 32.21px; top: 0.72px;
  width: 87.07px; height: 90.77px;
  display: flex; align-items: center; justify-content: center;
}
.bl-ring svg { flex-shrink: 0; transform: rotate(48.57deg); }
.bl-spark {
  position: absolute; left: 72px; top: 87px;
  width: 18.64px; height: 18.64px;
  display: flex; align-items: center; justify-content: center;
}
.bl-spark svg { flex-shrink: 0; transform: rotate(2.08deg); }
.bl-star {
  position: absolute; left: 50%; top: 50%;
  width: 54px; height: 54px;
  transform: translate(-50%, -50%);
}
/* 就绪前藏起下滑提示：滚动还不可用，别引导用户去滚 */
html:not(.ipvise-videos-ready) .scroll-hint { visibility: hidden; }
@media (prefers-reduced-motion: reduce) {
  .bl-rotor { animation: none; }
}

/* ============ Hero 覆盖层 ============ */
.overlay-piece {
  opacity: 0; transform: translateY(28px); filter: blur(10px);
  transition: opacity 0.65s ease-out, transform 0.65s ease-out, filter 0.65s ease-out;
  pointer-events: none;
}
.overlay-piece.on { opacity: 1; transform: translateY(0); filter: blur(0); pointer-events: auto; }
.overlay-piece.off-fast { transition-duration: 0.25s; }

#hero-overlay {
  position: fixed; left: 0; right: 0; bottom: 9vh; z-index: 20;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 0 24px;
}
#hero-overlay h1 {
  font-size: clamp(20px, 2.6vw, 36px); font-weight: 700;
  line-height: 1.22; color: var(--ink); letter-spacing: 0.01em;
  filter: var(--white-glow);
}
/* SplitText 逐字入场（加载后播放一次）：power3.out 等效缓动 */
#hero-overlay h1 .split-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}
#hero-overlay h1 .split-char.in { opacity: 1; transform: translateY(0); }
/* CTA：StarBorder 星光描边（React Bits 移植）——两道品牌粉光点沿边框相向流动 */
#hero-overlay .cta {
  /* 不自带 pointer-events:auto——那会打穿父层隐藏态的 none，让淡出后的
     按钮"不可见但可点"。跟随继承：overlay .on 时可点，隐藏时随父失效 */
  margin-top: 30px; display: inline-block;
  position: relative; top: -10px; /* 按钮整体上移 10px，标题位置不变 */
  padding: 2px; border-radius: 999px;
  overflow: hidden;
  background: rgba(245, 48, 140, 0.18); /* 原描边色作为光带轨道底色 */
  box-shadow: 0 12px 34px rgba(245, 48, 140, 0.22), 0 2px 8px rgba(31, 18, 51, 0.05);
  transition: transform 0.25s, box-shadow 0.25s;
}
#hero-overlay .cta .sb-top,
#hero-overlay .cta .sb-bottom {
  position: absolute; width: 200%; height: 50%; left: -50%;
  opacity: 0.85; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse, var(--pink), transparent 30%); /* 拉长的光线（logo 粉） */
  animation: star-sweep 2.2s linear infinite alternate; /* 常驻循环，与悬停无关（再提速 1.5×） */
}
#hero-overlay .cta .sb-bottom { bottom: -12px; }
#hero-overlay .cta .sb-top { top: -12px; animation-direction: alternate-reverse; } /* 反相：上下两根同时在不同区域 */
@keyframes star-sweep { /* 光线中心在按钮左右边缘之间往返，全程可见 */
  0%   { transform: translateX(-25%); }
  100% { transform: translateX(25%); }
}
#hero-overlay .cta .sb-inner {
  position: relative; z-index: 1; display: block;
  background: #fff; color: var(--pink);
  font-size: 14px; font-weight: 500;
  padding: 13px 35px; border-radius: 999px;
  transition: color 0.25s;
}
#hero-overlay .cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(245, 48, 140, 0.3), 0 3px 10px rgba(31, 18, 51, 0.06);
}
#hero-overlay .cta:hover .sb-inner { color: var(--pink-deep); }

/* 首屏→About 滚动叙事文字：大关键词先出场 → 全句逐词点亮（进度驱动，JS 控制透明度/位移） */
.scrub-caption {
  position: fixed; left: 50%; top: 50%; z-index: 22;
  transform: translate(-50%, -50%);
  width: min(880px, calc(100vw - 96px));
  text-align: center; pointer-events: none;
  opacity: 0;
  /* 黑色柔影：贴身微影 + 大半径淡影，克制不突兀 */
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 6px 20px rgba(0, 0, 0, 0.18);
  will-change: opacity, transform;
}
/* 段一锁定式两行：上行淡灰、下行白色大字（JS 按进度驱动位移/透明度） */
.scrub-caption .cap-top {
  font-size: clamp(20px, 2.2vw, 32px);
  font-weight: 600; line-height: 1.4;
  color: #fff; /* 纯白，无透明度 */
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  opacity: 0; will-change: opacity, transform;
}
.scrub-caption .cap-main {
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 700; line-height: 1.25;
  color: #fff; letter-spacing: 0.01em;
  opacity: 0; will-change: opacity, transform;
}

/* 关键词层：居中覆盖，大字号 + 品牌粉 */
.scrub-caption .cap-key {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: clamp(34px, 4.4vw, 62px);
  font-weight: 700; line-height: 1.28;
  color: var(--pink); letter-spacing: 0.01em;
  opacity: 0; will-change: opacity, transform;
}
/* 段二：两个关键词分行居中（白色，行距 45px），各自平移入场并 FLIP 变形飞入句中 */
.scrub-caption .cap-key .kw {
  display: block;
  color: #fff;
  opacity: 0;
  will-change: opacity, transform;
}
.scrub-caption .cap-key .kw-r { margin-top: 45px; }
/* 全文层：逐词点亮，白色、两端对齐；Empower/Evolution 为其他文字的 2 倍 */
.scrub-caption .cap-full {
  position: relative;
  font-size: clamp(17px, 2vw, 29px);
  font-weight: 600; line-height: 1.65;
  color: #fff; letter-spacing: 0.01em;
  text-align: justify;
  text-align-last: justify;
  opacity: 0; will-change: opacity;
}
.scrub-caption .cap-full em {
  font-style: normal; font-weight: 700;
  font-size: 2em; color: #fff;
}
.scrub-caption .cap-full .hl {
  font-weight: 700; color: #fff;
}
.scrub-caption .cap-full .w { opacity: 0.12; }

/* 鼠标下滑动态提示：页面中间底部，整体 80% 透明度，风格与导航图标一致 */
.scroll-hint {
  position: fixed; bottom: 16px; left: 50%; z-index: 20;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  pointer-events: none;
  filter: var(--white-glow);
  opacity: 0;
}
#hero-overlay.on ~ .scroll-hint { animation: hintIn 0.8s ease 1.2s forwards; }
@keyframes hintIn { to { opacity: 0.8; } }
.scroll-hint .mouse { width: 21px; height: 32px; }
.scroll-hint .mouse rect { stroke: #55506B; }
.scroll-hint .wheel {
  fill: #55506B;
  animation: wheelDrop 1.7s ease-in-out infinite;
}
@keyframes wheelDrop {
  0%   { transform: translateY(0);   opacity: 1; }
  55%  { transform: translateY(9px); opacity: 0; }
  56%  { transform: translateY(0);   opacity: 0; }
  100% { transform: translateY(0);   opacity: 1; }
}
.scroll-hint .chev {
  width: 13px; height: 7px; stroke: #55506B;
  animation: chevBob 1.7s ease-in-out infinite;
}
@keyframes chevBob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}
.scroll-hint .chev-up { display: none; animation-name: chevBobUp; }
@keyframes chevBobUp {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
/* 中间章节（已下滑、未到最后一章）：提示常显，且上下双箭头 */
.scroll-hint { transition: opacity 0.35s ease; }
.scroll-hint.mid { opacity: 0.8; }
.scroll-hint.mid .chev-up { display: block; }
@media (prefers-reduced-motion: reduce) {
  .scroll-hint .wheel, .scroll-hint .chev { animation: none; }
  #hero-overlay .cta .sb-top, #hero-overlay .cta .sb-bottom { animation: none; opacity: 0; }
  #hero-overlay.on ~ .scroll-hint { animation: none; opacity: 0.8; }
}

/* ============ 章节卡片 ============ */
.chapter-card {
  position: fixed; left: 50%; top: 50%; z-index: 45; /* 高于左侧菜单(40)，卡片压住文字层 */
  width: min(1020px, calc(100vw - 220px));
  transform: translate(-50%, calc(-50% + 28px));
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 38px 46px 42px;
  box-shadow: 0 30px 80px rgba(80, 50, 140, 0.14), 0 4px 18px rgba(31, 18, 51, 0.05);
  opacity: 0; filter: blur(10px); pointer-events: none;
  transition: opacity 0.65s ease-out, transform 0.65s ease-out, filter 0.65s ease-out;
}
.chapter-card.on {
  opacity: 1; transform: translate(-50%, -50%); filter: blur(0); pointer-events: auto;
}
.chapter-card.off-fast { transition-duration: 0.25s; }

.card-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--pink); letter-spacing: 0.02em;
}
.card-label svg { width: 12px; height: 12px; stroke: var(--pink); }
.chapter-card h2 {
  margin-top: 12px; font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 700; line-height: 1.3; color: var(--ink); max-width: 20em;
}
.chapter-card h2 .hl { color: var(--pink); }
.card-date { margin-top: 10px; font-size: 12px; color: var(--muted); }

.card-body { display: grid; grid-template-columns: 300px 1fr; gap: 42px; margin-top: 26px; }
.card-body .thumb {
  border-radius: 14px; overflow: hidden; min-height: 300px;
  box-shadow: 0 10px 30px rgba(31, 18, 51, 0.12);
}
.card-body .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-list { display: flex; flex-direction: column; }
.card-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 26px;
  padding: 20px 4px; border-top: 1px solid var(--hairline); cursor: pointer;
}
.card-item:first-child { border-top: none; padding-top: 6px; }
.card-item .t { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.45; transition: color 0.25s; }
.card-item .d { margin-top: 8px; font-size: 12px; font-weight: 400; color: var(--muted); }
.card-item .go { width: 24px; height: 24px; transition: transform 0.25s; }
.card-item .go svg { width: 100%; height: 100%; stroke: var(--ink); transition: stroke 0.25s; }
.card-item:hover .t { color: var(--pink); }
.card-item:hover .go { transform: rotate(45deg); }
.card-item:hover .go svg { stroke: var(--pink); }

/* ============ Global Landscape（程序绘制点阵世界地图，无外框） ============ */
.chapter-card.map-card,
.chapter-card.map-card.on {
  background: none; border: none; box-shadow: none; padding: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  overflow: visible; /* 点阵阴影不裁切 */
  filter: none; /* 入场不做模糊：白点在 blur(10px) 下是一团亮斑，会闪一下 */
}
.map-card canvas { display: block; width: 100%; } /* 高度由 js/map.js 按 2040:848 视框比例设置 */
/* 地图下方数据条：图标 + 大数字 + 小标签；文字品牌粉、图标白色，阴影与 Empower（scrub 文字）一致 */
.map-stats {
  display: flex; justify-content: center; gap: clamp(56px, 9vw, 150px);
  margin-top: 10px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.28), 0 6px 20px rgba(0, 0, 0, 0.18);
}
.ms-item { text-align: center; }
.ms-item svg {
  display: block; width: 34px; height: 34px; margin: 0 auto 12px; stroke: #fff;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28)) drop-shadow(0 6px 20px rgba(0, 0, 0, 0.18));
}
.ms-num { font-size: 46px; font-weight: 700; line-height: 1.1; color: var(--pink); }
.ms-label {
  margin-top: 6px; font-size: 15px; font-weight: 600;
  letter-spacing: 0.08em; color: #fff; /* 白色 + 继承 .map-stats 的 Empower 阴影 */
}

/* ============ News 卡片（四联：插图 + 标题 + 箭头 + 描述） ============ */
/* 外层容器不能带 filter/opacity 动画（会成为 backdrop root，
   使子卡的毛玻璃取样不到底层视频），入场动画改由子卡各自完成；
   宽度不覆盖，与其他章节卡片（About Us 等）一致 */
.chapter-card.news-card,
.chapter-card.news-card.on {
  background: none; border: none; box-shadow: none; padding: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  opacity: 1; filter: none; transform: translate(-50%, -50%);
  transition: none; pointer-events: none;
}
.news-card .nc-card {
  opacity: 0;
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  pointer-events: none;
}
/* 入场：1、3 从页面上方滑入，2、4 从页面下方滑入，落位后并排
   （50vh + 自身高度，保证起点完全在视口外） */
.news-card .nc-card:nth-child(odd)  { transform: translateY(calc(-50vh - 100%)); }
.news-card .nc-card:nth-child(even) { transform: translateY(calc(50vh + 100%)); }
.news-card.on .nc-card { opacity: 1; transform: translateY(0); pointer-events: auto; }
/* 壳的 pointer-events:none 会被继承——轨道/卡间 gap/两侧 padding/圆点全成
   穿透区，手势起点不落在卡上就命中背后的视频层，被章节引擎 preventDefault
   杀掉原生横滚（圆点也点不到）。.on 时把轨道与圆点整体恢复可命中；非 .on
   保持穿透，不挡其他章节的手势 */
.news-card.on .nc-grid,
.news-card.on .hc-dots { pointer-events: auto; }
/* 退场：只快速淡出，淡出完成后 transform 再瞬间归位，避免卡片飞出画面 */
.news-card:not(.on) .nc-card { transition: opacity 0.25s ease-out, transform 0s linear 0.25s; }
.nc-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  perspective: 900px; /* 子卡 3D 倾斜的透视基准 */
}
/* 外层 .nc-card 承担入场动画，内层 .nc-tilt 承担玻璃卡视觉与悬停倾斜，
   两层 transform 分离，互不打架 */
.nc-tilt {
  height: 100%; display: flex; flex-direction: column;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 0 0 22px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(80, 50, 140, 0.14), 0 4px 18px rgba(31, 18, 51, 0.05);
  will-change: transform;
}
.nc-art { aspect-ratio: 656 / 548; }
.nc-art img {
  width: 100%; height: 100%; object-fit: cover;
  mix-blend-mode: multiply; /* 白色区域透出玻璃底，保持毛玻璃质感 */
}
.nc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 2px 20px 0; margin-bottom: 10px;
}
.nc-card h3 { font-size: clamp(17px, 1.35vw, 22px); font-weight: 700; color: var(--ink); white-space: nowrap; }
.nc-arrow { flex: 0 1 44px; min-width: 30px; height: 14px; color: var(--ink); }
.nc-card p { font-size: clamp(12.5px, 0.95vw, 14.5px); line-height: 1.6; color: #6E6486; padding: 0 20px; }

/* ============ College 卡片（Global Workshop 瓦片网格 + 合作伙伴 Logo 滚动栏） ============ */
/* 外层是透明壳，白色面板与入场动画在 .cp-panel / .cp-logos 两块子面板上（不透明白，无毛玻璃） */
.chapter-card.college-card,
.chapter-card.college-card.on {
  background: none; border: none; box-shadow: none; padding: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  opacity: 1; filter: none; transform: translate(-50%, -50%);
  transition: none; pointer-events: none;
}
.cp-panel, .cp-logos {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  pointer-events: none;
}
.college-card.on .cp-panel, .college-card.on .cp-logos { opacity: 1; transform: translateY(0); pointer-events: auto; }
.college-card.on .cp-logos { transition-delay: 0.08s; }
.college-card:not(.on) .cp-panel, .college-card:not(.on) .cp-logos { transition-duration: 0.25s; transition-delay: 0s; }
.cp-panel { /* 与其他章节卡片统一的毛玻璃 */
  padding: 20px 20px 20px;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(80, 50, 140, 0.14), 0 4px 18px rgba(31, 18, 51, 0.05);
}
.cp-logos { /* 无外框：透明容器，直接展示 Logo */
  margin-top: 14px; padding: 0; overflow: hidden;
}

/* 瓦片网格：4 列 3 行；Community 与 Branding 跨上两行，右列上下两块小卡，底部四块 */
.gw-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 126px 126px 188px;
}
.gw-tile { position: relative; border-radius: 14px; overflow: hidden; display: block; cursor: pointer; }
.gw-join { grid-column: 1; grid-row: 1 / 3; }
.gw-branding { grid-column: 2 / 4; grid-row: 1 / 3; }
.gw-ecom { grid-column: 4; grid-row: 1; }
.gw-anim { grid-column: 4; grid-row: 2; }
.gw-tile > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease-out;
}
.gw-tile:hover > img { transform: scale(1.06); }
.gw-tile::after { /* 底部压暗渐变，保证白字可读 */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 24, 0) 40%, rgba(12, 8, 24, 0.74));
}
.gw-video::after { content: none; }
.gw-chip {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(20, 14, 36, 0.42);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 11.5px; font-weight: 500; letter-spacing: 0.02em;
}
.gw-video .gw-chip { background: rgba(255, 255, 255, 0.24); }
.gw-txt { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px; }
.gw-txt h3 { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; }
.gw-txt p { margin-top: 5px; color: rgba(255, 255, 255, 0.82); font-size: 12px; line-height: 1.45; }
.gw-video { background: linear-gradient(135deg, #FF3D8E, var(--pink-deep)); }
.gw-video .gw-txt { top: 0; display: flex; flex-direction: column; padding-top: 46px; }
.gw-video .gw-txt h3 { margin-top: auto; } /* 与底部播放键的 margin-top:auto 对分剩余空间：标题+副标题落在卡片中部 */
.gw-video .gw-play {
  margin-top: auto; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.26); display: grid; place-items: center;
}
.gw-video .gw-play svg { width: 16px; height: 16px; fill: #fff; }

/* Logo 滚动栏：单行匀速循环；track = 两份完全相同的序列，位移 -50% 实现无缝 */
.lg-row {
  overflow: hidden;
  padding: 10px 0; /* 给悬停放大留出上下空间，不被 overflow 裁切 */
  /* 两侧淡入淡出 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
}
.lg-track { display: flex; width: max-content; animation: lg-marquee 56s linear infinite; }
.lg-row:hover .lg-track { animation-play-state: paused; }
.lg-seq { display: flex; gap: 12px; padding-right: 12px; }
.lg-pill {
  /* 直接展示原图（600×200 自带白色胶囊底与圆角）。
     注意：单份序列总宽必须 ≥ 容器宽（1020px 卡片），否则 -50% 回绕瞬间会露缝 */
  flex: none; display: flex; align-items: center;
}
.lg-pill img {
  height: 48px; width: auto; display: block;
  transition: transform 0.25s ease-out;
}
.lg-pill:hover img { transform: scale(1.3); } /* 悬停放大 30% */
@keyframes lg-marquee { to { transform: translateX(-50%); } }

/* ============ IP Incubation 卡片（CardSwap 卡叠轮换，见 js/cardswap.js） ============ */
.chapter-card.ip-card { min-height: 470px; overflow: visible; }
.ip-card h2 { max-width: 14em; } /* 给右侧卡叠让位；容下 nowrap 首段 */
.ip-card h2 .nw { white-space: nowrap; } /* “Self-owned IP incubation,” 保持一行 */
.ip-desc {
  margin-top: 14px; max-width: 26em;
  font-size: 14px; line-height: 1.85; color: var(--ink-2);
  text-align: justify; /* 两端对齐，行宽左右整齐 */
}
.cs-container { /* 参考 CardSwap：锚定卡片右下角、向外探出，透视 900px */
  position: absolute; bottom: 0; right: 0;
  width: 544px; height: 306px; /* 16:9 */
  transform: translate(-5%, -6%);
  transform-origin: bottom right;
  perspective: 900px;
  overflow: visible;
}
.cs-card {
  position: absolute; top: 50%; left: 50%;
  cursor: pointer;
  width: 544px; height: 306px; /* 16:9 */
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  background: #171225;
  box-shadow: 0 24px 60px rgba(31, 18, 51, 0.30);
  transform-style: preserve-3d;
  will-change: transform;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.cs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cs-card::after { /* 顶部压暗渐变，保证左上角片名可读 */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(12, 8, 24, 0.62), rgba(12, 8, 24, 0) 40%);
}
.cs-title { /* 片名：左上角 */
  position: absolute; left: 0; top: 0; right: 0; z-index: 2;
  padding: 16px 22px; color: #fff;
  font-size: 18px; font-weight: 600; line-height: 1.4;
}

/* ============ Contact Us 卡片（联系方式 + 社交媒体） ============ */
.contact-card .card-label { color: var(--ink-2); }
.contact-card .card-label svg { stroke: var(--ink-2); }
.contact-card .cc-grid {
  display: grid; grid-template-columns: 1.9fr 1px 1fr;
  gap: 0 40px; margin-top: 34px; align-items: start;
}
.cc-left { display: flex; flex-direction: column; gap: 28px; padding-bottom: 10px; }
.cc-region h3 { font-size: 24px; font-weight: 600; color: var(--pink); margin-bottom: 10px; }
.cc-cols { display: flex; gap: 36px; flex-wrap: wrap; }
.cc-entry p { font-size: 14px; color: var(--ink-2); line-height: 1.85; white-space: nowrap; }
.cc-divider { background: var(--hairline); align-self: stretch; }
.cc-right { padding-top: 4px; }
.cc-social-title { font-size: 22px; font-weight: 700; color: var(--ink); margin-bottom: 20px; }
.cc-icons { display: flex; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.cc-ic {
  width: 44px; height: 44px; border-radius: 50%;
  background: #ECE9F1; color: #221338;
  display: grid; place-items: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.cc-ic svg { width: 20px; height: 20px; }
.cc-ic:hover { background: var(--pink); color: #fff; transform: translateY(-2px); }
.cc-icp { font-size: 13px; color: var(--muted); }

/* ============ 登录弹窗 ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(250, 247, 253, 0.45);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.login-card {
  width: min(370px, calc(100vw - 40px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px; padding: 34px 30px 28px;
  box-shadow: 0 30px 90px rgba(60, 30, 120, 0.2), 0 6px 20px rgba(31, 18, 51, 0.06);
  text-align: center;
  transform: translateY(14px) scale(0.98); transition: transform 0.3s;
}
.modal-overlay.open .login-card { transform: translateY(0) scale(1); }
.login-card .m-logo { height: 26px; margin: 0 auto 20px; width: auto; }
.login-card h2 { font-size: 22px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink); }
.login-card .welcome { margin-top: 8px; font-size: 11px; letter-spacing: 0.22em; color: var(--muted); text-transform: uppercase; }
.login-card .field { position: relative; margin-top: 14px; }
.login-card .field:first-of-type { margin-top: 26px; }
.login-card input {
  width: 100%; height: 46px; border-radius: 999px;
  border: 1px solid #E9E2F2; background: #fff;
  padding: 0 44px 0 20px; font-size: 13px; font-family: inherit; color: var(--ink);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.login-card input::placeholder { color: #B7AEC6; }
.login-card input:focus { border-color: rgba(245, 48, 140, 0.55); box-shadow: 0 0 0 3px rgba(245, 48, 140, 0.08); }
.eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
}
.eye svg { width: 18px; height: 18px; stroke: #B7AEC6; }
.eye:hover svg { stroke: var(--muted); }
.login-btn {
  width: 100%; height: 46px; margin-top: 18px;
  border-radius: 999px; background: var(--pink); color: #fff;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  box-shadow: 0 10px 26px rgba(245, 48, 140, 0.35);
  transition: background 0.2s, transform 0.2s;
}
.login-btn:hover { background: var(--pink-deep); transform: translateY(-1px); }
.agree {
  margin-top: 16px; display: flex; gap: 7px; align-items: flex-start; text-align: left;
  font-size: 11px; line-height: 1.5; color: #A79FB5;
}
.agree input { width: 12px; height: 12px; margin-top: 2px; accent-color: var(--pink); }
.agree b { color: var(--ink-2); font-weight: 600; cursor: pointer; }

/* ============ 静态占位页卡片 ============ */
.static-wrap {
  position: relative; z-index: 10; min-height: 100dvh;
  display: grid; place-items: center; padding: 110px 24px 60px;
}

/* ============ Community 视频社区页 ============ */
.cm-wrap { place-items: start center; }
/* 字体与 Home 全站统一：Poppins（中文回退苹方等系统字体） */
.cm-page { width: min(1240px, calc(100vw - 48px)); font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; }

.cm-tabs { display: flex; align-items: center; gap: 26px; margin-bottom: 16px; }
/* 选项卡流式字号：随窗口缩放，窗口 ≥1630px 时封顶 23px（23/16.3 = 1.41vw） */
.cm-tab {
  background: none; border: 0; padding: 4px 2px; font: inherit;
  font-size: clamp(14px, 1.41vw, 23px); font-weight: 600; letter-spacing: 0.01em; color: var(--ink);
  cursor: pointer; position: relative; filter: var(--white-glow);
}
.cm-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -5px; height: 2.5px;
  border-radius: 2px; background: linear-gradient(90deg, var(--pink), var(--purple));
}

.cm-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-bottom: 24px; }
.cm-card {
  position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  cursor: pointer; background: #180F2E;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(80, 50, 140, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.cm-card:hover, .cm-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(80, 50, 140, 0.22); }
.cm-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-card-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 6, 24, 0) 52%, rgba(10, 6, 24, 0.78)); }
.cm-card-meta {
  position: absolute; left: 12px; right: 10px; bottom: 9px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; color: #fff;
}
/* 作者行 / 标题 = Home 列表条目规格（12px 辅助行 + 16px/600 标题） */
.cm-card-author { display: flex; align-items: center; gap: 6px; font-size: 12px; opacity: 0.85; margin-bottom: 3px; }
.cm-ava {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--pink), var(--purple));
  display: grid; place-items: center; font-size: 9px; font-weight: 700; color: #fff;
}
.cm-card-title { font-size: 16px; font-weight: 600; line-height: 1.45; }

.cm-like {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  background: none; border: 0; padding: 4px 2px;
  font: inherit; font-size: 12px; font-weight: 600; color: #fff; cursor: pointer;
}
.cm-like svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.2s; }
.cm-like.on svg { fill: #FF3B5C; stroke: #FF3B5C; }
.cm-like:active svg { transform: scale(1.3); }

/* 播放弹层 */
.cm-player {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(12, 7, 26, 0.72);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  display: grid; place-items: center;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.cm-player.open { opacity: 1; visibility: visible; }
.cm-player-box {
  position: relative; width: min(980px, calc(100vw - 40px));
  transform: translateY(14px) scale(0.98); transition: transform 0.3s;
}
.cm-player.open .cm-player-box { transform: none; }
.cm-player video {
  display: block; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 16px; background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
}
.cm-player-close {
  position: absolute; top: -46px; right: -4px; width: 36px; height: 36px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14);
  color: #fff; cursor: pointer; display: grid; place-items: center;
}
.cm-player-close svg { width: 18px; height: 18px; }
.cm-player-close:hover { background: rgba(255, 255, 255, 0.26); }
.cm-player-meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; color: #fff; }
/* 弹层标题 = 卡片区块 h3 规格（24px/700，移动端降 19px 见响应式段） */
.cm-player-title { font-size: 24px; font-weight: 700; }
.cm-player-author { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.cm-like-lg { font-size: 15px; }
.cm-like-lg svg { width: 20px; height: 20px; }

@media (max-width: 1100px) { .cm-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 800px) { .cm-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============ Challenge 竞技场页 ============ */
/* 标题随窗口缩放，≥1630px 视口封顶 23px（23 ÷ 16.3 ≈ 1.41vw） */
.ar-heading {
  font-family: 'Poppins', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-size: clamp(17px, 1.41vw, 23px);
  font-weight: 700; color: var(--ink); margin: 2px 0 18px; filter: var(--white-glow);
}

/* 列表：三列大卡（封面 16:9 + 状态徽章 + 标题/地点/奖励胶囊） */
.ar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-bottom: 24px; }
.ar-card {
  position: relative; border-radius: 18px; overflow: hidden; cursor: pointer;
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 30px rgba(80, 50, 140, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.ar-card:hover, .ar-card:focus-visible { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(80, 50, 140, 0.22); }
.ar-cover { position: relative; aspect-ratio: 16 / 9; background: #180F2E; }
.ar-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-cover .ar-badge { position: absolute; top: 12px; left: 12px; }
.ar-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(20, 14, 36, 0.5);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #8CF5BE; font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
}
.ar-badge svg { width: 13px; height: 13px; flex: none; }
.ar-badge b { font-weight: 700; }
.ar-body { padding: 15px 18px 18px; }
.ar-body h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ar-sub { margin-top: 5px; font-size: 13px; color: var(--ink-2); }
.ar-prize {
  margin-top: 12px; display: inline-flex; align-items: center; gap: 7px; max-width: 100%;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66); border: 1px solid rgba(255, 255, 255, 0.85);
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.ar-prize svg { width: 14px; height: 14px; flex: none; color: var(--pink); }
.ar-coming {
  display: grid; place-items: center; align-content: center; gap: 10px;
  min-height: 260px; cursor: default; background: rgba(255, 255, 255, 0.34);
}
.ar-coming svg { width: 28px; height: 28px; color: var(--faint); }
.ar-coming p { font-size: 13px; color: var(--muted); }
.ar-coming:hover { transform: none; box-shadow: 0 10px 30px rgba(80, 50, 140, 0.12); }

/* 详情：返回 + 标题/按钮行 + 状态行 + 可展开内容面板 */
.ar-detail { padding-bottom: 40px; }
.ar-back {
  display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px;
  background: none; border: 0; padding: 4px 2px; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-2);
  filter: var(--white-glow); transition: color 0.2s;
}
.ar-back:hover { color: var(--ink); }
.ar-back svg { width: 15px; height: 15px; }
.ar-dhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ar-dhead h1 { font-size: clamp(24px, 2.4vw, 32px); font-weight: 700; color: var(--ink); line-height: 1.25; filter: var(--white-glow); }
.ar-actions { display: flex; gap: 12px; flex: none; }
.ar-btn {
  padding: 11px 26px; border-radius: 999px; font-size: 14px; font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ar-btn.ghost {
  background: rgba(255, 255, 255, 0.8); color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 14px rgba(80, 50, 140, 0.12);
}
.ar-btn.solid {
  background: linear-gradient(90deg, var(--pink), var(--purple)); color: #fff;
  box-shadow: 0 10px 26px rgba(245, 48, 140, 0.3);
}
.ar-btn:hover { transform: translateY(-2px); }
.ar-status { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 18px; }
.ar-time { font-size: 14px; color: var(--ink-2); filter: var(--white-glow); }
.ar-panel {
  background: var(--card-bg);
  -webkit-backdrop-filter: blur(15px) saturate(150%);
  backdrop-filter: blur(15px) saturate(150%);
  border: 1px solid var(--card-border);
  border-radius: 24px; padding: 26px 30px 22px;
  box-shadow: 0 30px 80px rgba(80, 50, 140, 0.14), 0 4px 18px rgba(31, 18, 51, 0.05);
}
.ar-tag { font-size: 15px; font-weight: 600; color: var(--pink); margin-bottom: 10px; }
.ar-panel > p { font-size: 14.5px; line-height: 1.8; color: var(--ink-2); }
.ar-panel > p + p { margin-top: 4px; }
/* 素材全篇默认展开 */
.ar-slides { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.ar-slides img { width: 100%; border-radius: 14px; display: block; box-shadow: 0 10px 30px rgba(31, 18, 51, 0.1); }

@media (max-width: 1160px) { .ar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) {
  .ar-grid { grid-template-columns: 1fr; }
  .ar-coming { min-height: 140px; }
  .ar-panel { padding: 20px 18px 18px; }
  .ar-actions { width: 100%; }
  .ar-btn { flex: 1; text-align: center; }
}

/* ============ 章节标题统一字号：随视口缩放，≥1630px 封顶 23px ============ */
.ms-label,
.nc-card h3,
.ip-card h2,
.cc-region h3,
.cc-social-title {
  font-size: clamp(16px, 1.41vw, 23px);
}
/* Education 分类胶囊标题：在统一尺寸基础上缩小 40%（≥1630px 封顶 13.8px） */
.gw-chip { font-size: clamp(10px, 0.85vw, 13.8px); }

/* ============ 辅助说明文字统一：Poppins（继承 body）+ 14px，与 IP 简介小字一致 ============ */
.nc-card p,
.gw-txt h3,
.gw-txt p,
.ip-desc,
.cc-entry p,
.cc-icp {
  font-size: 14px;
}

/* News 四联卡片：中等宽度降为 2×2 */
@media (max-width: 1160px) {
  .nc-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .side-menu { display: none; } /* 移动端隐藏章节菜单，靠上下滑动导航 */
  /* 章节卡与 PC 一致垂直居中（原底部锚定视觉偏下）；定位/入场 transform 直接继承 PC 基态，
     这里只保留移动端的宽度/内边距/卡内滚动设定。min() 兜底保证卡片上沿不顶到导航栏 */
  .chapter-card { width: calc(100vw - 32px); padding: 24px 22px 26px; max-height: min(72dvh, calc(100dvh - 132px)); overflow-y: auto; }
  /* News / College 的透明壳只做定位（恒 opacity:1，玻璃与显隐编排都在子块上），
     绝不能成为滚动容器——壳上的滚动条会永远挂在屏幕上。卡内滚动兜底只保留
     给会随章节隐藏的实体卡（about / ip / contact） */
  .chapter-card.news-card,
  .chapter-card.college-card { max-height: none; overflow: visible; }
  .card-body { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .card-body .thumb { min-height: 0; max-height: 180px; }
  .card-item .t { font-size: 14px; }
  /* Contact 高度放开：72dvh 的通用上限对这张内容最高的卡太抠。卡片垂直
     居中，上限 = 视口 - 2×(导航 ~66px + 16px 呼吸)，让内容自适应铺开，
     仅在装不下的小屏上才回落到卡内滚动兜底 */
  .contact-card { max-height: calc(100dvh - 164px); }
  /* Contact 压缩排版：单列后总高必须收进卡内，避免触发卡内滚动兜底 */
  .contact-card .cc-grid { grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
  .cc-divider { display: none; }
  .cc-left { gap: 16px; }
  .cc-cols { gap: 10px 24px; }
  .cc-entry p { line-height: 1.6; }
  .cc-social-title { margin-bottom: 10px; }
  .cc-icons { margin-bottom: 12px; }
  .map-stats { gap: 26px; margin-top: 14px; }
  .ms-item svg { width: 28px; height: 28px; }
  .ms-num { font-size: 30px; }
  .ms-label { font-size: 12px; }
  /* IP Incubation 卡叠：改为文档流内居中缩放 */
  .chapter-card.ip-card { min-height: 0; }
  .cs-container {
    position: relative; right: auto; bottom: auto;
    width: 304px; height: 171px; /* 16:9 */
    /* 整栈占位 424×311（底卡 304×171 + 每层 +60/−70 扩散）：375 屏上右溢
       ～50px 且上方压住简介文案。容器级缩放收进屏内（cardswap.js 只写
       .cs-card 自身 transform，容器 scale 安全——961–1259 已有同款先例）；
       origin 取左下让扩散朝右上收拢，加大 margin-top 给上方扩散留位 */
    margin: 102px auto 24px; /* 实测栈顶超出容器顶 83px（absolute 中心锚 + 缩放），留 ~16px 呼吸位 */
    transform: scale(0.75); transform-origin: bottom left;
  }
  .cs-card { width: 304px; height: 171px; }
  .cs-title { font-size: 13px; padding: 10px 14px; }
  /* 瓦片改横向 snap 轮播：一次一卡（snap-stop）、两侧露出邻卡、隐藏滚动条、下方圆点 */
  .gw-grid {
    display: flex; gap: 10px;
    margin: 0 -20px; /* 贴平 cp-panel 内边距：容器无左右留白 */
    padding: 0 20px; /* 用 padding 把首尾卡压进来 */
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
    grid-template-rows: none;
  }
  .gw-grid::-webkit-scrollbar { display: none; }
  .gw-grid .gw-tile {
    flex: 0 0 78%; height: 190px;
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  .gw-join, .gw-branding, .gw-ecom, .gw-anim { grid-column: auto; grid-row: auto; }
  .lg-seq { gap: 10px; padding-right: 10px; }
  .lg-pill img { height: 40px; }
  /* News 同款横向 snap 轮播——裸卡直接滚，轨道必须贴满视口（壳宽
     100vw-32px、两侧各留 16px 缝，负 margin 补齐），卡片滚到屏边才裁切；
     首尾初始位置靠 padding 内压。壳已豁免为 overflow:visible（953 行注释
     的旧滚动条问题不再存在），超壳不会长滚动条 */
  .nc-grid {
    display: flex; gap: 12px;
    margin: 0 -16px;
    padding: 4px 16px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory;
    touch-action: pan-x;
    scrollbar-width: none;
    perspective: none; /* 移动端无 hover 倾斜，去掉 3D 上下文 */
  }
  .nc-grid::-webkit-scrollbar { display: none; }
  .nc-grid .nc-card {
    flex: 0 0 84%;
    scroll-snap-align: center; scroll-snap-stop: always;
  }
  /* 移动端 News 入场：统一自下 24px 淡入 + 逐卡级联
     （PC 的上下对冲滑入在单列布局下显乱；位移小也避免撑出卡内滚动区） */
  .news-card .nc-card:nth-child(odd),
  .news-card .nc-card:nth-child(even) { transform: translateY(24px); }
  .news-card.on .nc-card { transform: translateY(0); }
  .news-card.on .nc-card:nth-child(1) { transition-delay: 0.05s; }
  .news-card.on .nc-card:nth-child(2) { transition-delay: 0.16s; }
  .news-card.on .nc-card:nth-child(3) { transition-delay: 0.27s; }
  .news-card.on .nc-card:nth-child(4) { transition-delay: 0.38s; }
  .cm-player-title { font-size: 19px; }
  #hero-overlay { bottom: 7vh; }
  #hero-overlay h1 { font-size: 20px; }
  .cc-entry p { white-space: normal; overflow-wrap: anywhere; } /* 邮箱/电话在窄卡内允许换行 */
  .cm-player-close { top: 8px; right: 8px; background: rgba(20, 14, 36, 0.55); } /* 关闭钮收进视频框内，避免出视口 */
}

/* ============ 移动端轮播圆点（按钮由 lib/home/carousel.ts 注入） ============ */
.hc-dots { display: none; } /* 桌面网格布局无轮播，圆点隐藏 */
/* News 的圆点挂在恒可见的透明壳里（壳 opacity:1，子卡承担显隐编排），
   所以显隐要自己跟 .on 走；College 的圆点在 .cp-panel 内，随面板显隐，无需处理 */
.news-card .hc-dots { opacity: 0; transition: opacity 0.7s ease-out; }
.news-card.on .hc-dots { opacity: 1; }
.news-card:not(.on) .hc-dots { transition-duration: 0.25s; }
@media (max-width: 960px) {
  .hc-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
  .hc-dots button {
    width: 6px; height: 6px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(31, 18, 51, 0.18);
    transition: width 0.25s ease-out, background 0.25s ease-out;
  }
  .hc-dots button.on { width: 18px; background: var(--pink); }
}

/* ============ 矮视口竖屏（小手机）：About/IP 内容压缩，避免触发卡内滚动兜底 ============ */
@media (max-width: 960px) and (max-height: 700px) {
  .card-body .thumb { max-height: 132px; }
  .map-stats { gap: 18px; margin-top: 10px; }
  .ms-num { font-size: 24px; }
  /* .cs-container 不在此压缩：卡叠向上扩散 ~83px（absolute 中心锚 + 缩放），
     margin-top 必须容住它，矮屏也一样——否则栈压住简介文案 */
}

/* ============ 移动端导航（汉堡按钮 + 抽屉菜单，js/ui.js 注入，4 页共享） ============ */
.nav-burger { display: none; } /* 基态隐藏：PC 布局零影响，下方 960 查询内开启 */
@media (max-width: 960px) {
  .nav-burger { display: grid; } /* 必须写在基态规则之后（媒体查询不增加优先级，同权重后写者赢） */
}
.nav-drawer {
  position: fixed; top: 64px; right: 16px; z-index: 95; /* 导航(50)与登录弹窗(100)之间 */
  min-width: 172px;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px; padding: 8px;
  box-shadow: 0 16px 40px rgba(60, 30, 120, 0.16), 0 3px 10px rgba(31, 18, 51, 0.06);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.nav-drawer.open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drawer a {
  display: block; padding: 12px 18px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--ink-2);
}
.nav-drawer a.active { color: var(--pink); font-weight: 600; }

/* ============ 触屏设备：hover 效果复位（防 sticky-hover：点击后样式粘住不消） ============ */
@media (hover: none) {
  .nav-links a:hover:not(.active) { color: var(--ink-2); }
  .icon-btn:hover { background: none; transform: none; }
  .lang-menu button:hover:not(.cur) { background: none; color: var(--ink-2); }
  #hero-overlay .cta:hover {
    transform: none;
    box-shadow: 0 12px 34px rgba(245, 48, 140, 0.22), 0 2px 8px rgba(31, 18, 51, 0.05);
  }
  #hero-overlay .cta:hover .sb-inner { color: var(--pink); }
  .card-item:hover .t { color: var(--ink); }
  .card-item:hover .go { transform: none; }
  .card-item:hover .go svg { stroke: var(--ink); }
  .gw-tile:hover > img { transform: none; }
  .lg-row:hover .lg-track { animation-play-state: running; }
  .lg-pill:hover img { transform: none; }
  .cc-ic:hover { background: #ECE9F1; color: #221338; transform: none; }
  .eye:hover svg { stroke: #B7AEC6; }
  .login-btn:hover { background: var(--pink); transform: none; }
  .cm-card:hover { transform: none; box-shadow: 0 10px 30px rgba(80, 50, 140, 0.12); }
  .ar-card:hover { transform: none; box-shadow: 0 10px 30px rgba(80, 50, 140, 0.12); }
  .ar-btn:hover { transform: none; }
  .ar-back:hover { color: var(--ink-2); }
}

/* 961–1260px：ip-desc(26em) + 卡叠(544px) 超出卡片内容宽导致重叠（现存 bug），
   容器整体缩放避让；cardswap.js 只写 .cs-card 自身 transform，容器级 scale 安全 */
@media (min-width: 961px) and (max-width: 1259px) {
  .cs-container { transform: translate(-3%, -4%) scale(0.72); transform-origin: bottom right; }
}

/* ============ 横屏矮视口（手机横屏）：压缩纵向占位 ============ */
@media (max-height: 500px) and (orientation: landscape) {
  #hero-overlay { bottom: 4vh; }
  #hero-overlay h1 { font-size: 18px; }
  .scroll-hint { display: none; }
  .chapter-card { max-height: min(84dvh, calc(100dvh - 132px)); overflow-y: auto; }
  .scrub-caption .cap-main, .scrub-caption .cap-key { font-size: clamp(22px, 6vh, 40px); }
}

/* ============ 窄屏精修（≤430px 主流手机竖屏） ============ */
@media (max-width: 430px) {
  .scrub-caption { width: calc(100vw - 40px); }
  .scrub-caption .cap-main, .scrub-caption .cap-key { font-size: clamp(26px, 8vw, 34px); }
  .scrub-caption .cap-full { font-size: 15px; }
}
@media (max-width: 380px) {
  .nav { gap: 12px; }
  .nav-actions { gap: 10px; }
}

/* ============ 动效偏好 ============ */
@media (prefers-reduced-motion: reduce) {
  .overlay-piece, .chapter-card, .news-card .nc-card, .cp-panel, .cp-logos { transition-duration: 0.01s; }
  .lg-track { animation: none; }
}
