/* 2026-10-26 修复：筛选 hidden 属性被 display:flex 类覆盖 */
[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   Aqua Glass · 深海玻璃
   自主设计的二次元液态玻璃主题（蓝色系 / 全玻璃边框 / 丝滑动效）
   零外部素材、零 AI 生成图像，装饰全部由 CSS 与内联 SVG 绘制
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* 墨色 */
  --ink: #0d1f3c;
  --ink-soft: #3d587d;
  --ink-faint: #7f97b8;

  /* 蓝色主色阶 */
  --azure: #2f6cf6;
  --azure-deep: #1a49c4;
  --sky: #4fb2f0;
  --ice: #8fd0ff;
  --peri: #7c9cff;
  --abyss: #0a2a63;

  /* 底色 */
  --tint: #e6f0ff;
  --cream: #f4f8ff;

  /* 玻璃 */
  --glass-a: rgba(255, 255, 255, .60);
  --glass-b: rgba(255, 255, 255, .30);
  --hair: rgba(255, 255, 255, .92);
  --shadow: 0 16px 44px rgba(26, 73, 196, .14), 0 2px 8px rgba(13, 31, 60, .06);
  --shadow-lift: 0 30px 70px rgba(26, 73, 196, .24), 0 6px 16px rgba(13, 31, 60, .10);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(140, 180, 240, .22);

  /* 圆角 */
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 38px;
  --r-pill: 999px;

  /* 缓动：全部走 transform / opacity，保证 60fps */
  --e-expo: cubic-bezier(.16, 1, .3, 1);
  --e-quint: cubic-bezier(.83, 0, .17, 1);
  --e-spring: cubic-bezier(.34, 1.42, .64, 1);
  --e-soft: cubic-bezier(.4, .1, .2, 1);

  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei",
          -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 760px at 12% -8%, #ffffff 0%, rgba(255,255,255,0) 62%),
    radial-gradient(1000px 700px at 92% 4%, rgba(143, 208, 255, .58) 0%, rgba(143, 208, 255, 0) 60%),
    radial-gradient(1100px 820px at 78% 108%, rgba(124, 156, 255, .46) 0%, rgba(124, 156, 255, 0) 62%),
    linear-gradient(178deg, #eef5ff 0%, #dfeaff 46%, #cfe1ff 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(47, 108, 246, .18); color: var(--abyss); }

/* ─────────────── 氛围背景：极光 / 光柱 / 浮尘 / 花瓣 ─────────────── */

.bg-scene { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-aurora, .bg-shaft { position: absolute; inset: 0; will-change: transform; }

.bg-aurora span {
  position: absolute; display: block; border-radius: 50%;
  /* 不许加 filter: blur()：动画里有 scale，会逼浏览器每帧重光栅化整块模糊 */
  opacity: .52;
  will-change: transform;
  animation: auroraDrift 26s var(--e-soft) infinite alternate;
}
.bg-aurora span:nth-child(1) { width: 46vw; height: 46vw; left: -8vw; top: -6vw;
  background: radial-gradient(circle, rgba(79,178,240,.85), rgba(79,178,240,0) 68%); }
.bg-aurora span:nth-child(2) { width: 40vw; height: 40vw; right: -6vw; top: 18vh;
  background: radial-gradient(circle, rgba(124,156,255,.85), rgba(124,156,255,0) 68%);
  animation-duration: 32s; animation-delay: -6s; }
.bg-aurora span:nth-child(3) { width: 52vw; height: 52vw; left: 22vw; bottom: -22vw;
  background: radial-gradient(circle, rgba(143,208,255,.8), rgba(143,208,255,0) 68%);
  animation-duration: 38s; animation-delay: -14s; }

@keyframes auroraDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(4vw, -3vh, 0) scale(1.14); }
}

/* 斜向光柱，像动画里的丁达尔光 */
.bg-shaft span {
  position: absolute; top: -30%; height: 170%; width: 16vw;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0) 72%);
  /* 光束本体宽 16vw（≈408px），模糊半径只占宽度 1.5%，10px→6px 肉眼无差别；
     半径越小，每帧滤镜光栅化的代价越低 */
  filter: blur(6px);
  transform: rotate(14deg); opacity: .5;
  animation: shaftSway 18s var(--e-soft) infinite alternate;
}
.bg-shaft span:nth-child(1) { left: 8%; }
.bg-shaft span:nth-child(2) { left: 44%; animation-delay: -7s; opacity: .34; }
.bg-shaft span:nth-child(3) { left: 76%; animation-delay: -12s; opacity: .4; }

/* 旋转角固定：变角度会逼浏览器每帧重画整块模糊，而看得见的摆动本来就来自
   ±3vw 平移与明暗呼吸，这两样全部保留 */
@keyframes shaftSway {
  from { transform: rotate(14deg) translateX(-3vw); opacity: .22; }
  to   { transform: rotate(14deg) translateX(3vw);  opacity: .55; }
}

/* 细网点纹理，给玻璃一点附着物 */
.bg-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(26,73,196,.14) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(1000px 700px at 50% 0%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(1000px 700px at 50% 0%, #000 0%, transparent 78%);
  opacity: .5;
}

/* 浮尘光点 */
.bg-motes i {
  position: absolute; bottom: -8vh; display: block;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, rgba(255,255,255,.5) 30%, rgba(143,208,255,.34) 56%, rgba(143,208,255,0) 76%);
  animation: moteRise linear infinite;
  will-change: transform, opacity;
}
@keyframes moteRise {
  0%   { transform: translate3d(0, 0, 0) scale(.6); opacity: 0; }
  12%  { opacity: .9; }
  88%  { opacity: .7; }
  100% { transform: translate3d(var(--dx, 4vw), -116vh, 0) scale(1.1); opacity: 0; }
}

/* 飘落的花瓣（冰蓝＋白，不用粉） */
.bg-petals i {
  position: absolute; top: -6vh; display: block;
  background: linear-gradient(150deg, rgba(255,255,255,.96), rgba(160,205,255,.72));
  border-radius: 62% 38% 60% 40% / 46% 58% 42% 54%;
  box-shadow: 0 2px 8px rgba(26,73,196,.16);
  animation: petalFall linear infinite;
  will-change: transform;
}
@keyframes petalFall {
  0%   { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
  10%  { opacity: .95; }
  100% { transform: translate3d(var(--dx, 8vw), 112vh, 0) rotate(540deg); opacity: .15; }
}

/* ─────────────── 玻璃基元：面板与玻璃边框 ─────────────── */

.glass {
  position: relative;
  background: linear-gradient(158deg, var(--glass-a) 0%, var(--glass-b) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  backdrop-filter: blur(26px) saturate(185%);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow), var(--shadow-inset);
}
/* 顶部高光弧 */
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.7) 0%, rgba(255,255,255,0) 34%);
  opacity: .8;
}
/* 切割玻璃描边：渐变 + 遮罩挖空，只留 1px 边 */
.glass::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(148deg,
    rgba(255,255,255,.98) 0%,
    rgba(160,205,255,.55) 26%,
    rgba(255,255,255,.10) 52%,
    rgba(124,156,255,.62) 78%,
    rgba(255,255,255,.90) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}

/* 扫光：只在悬停或指定元素上跑 */
.sheen { overflow: hidden; }
.sheen::after { z-index: 3; }
.sheen > .sheen-run {
  position: absolute; top: -60%; left: -70%; width: 42%; height: 220%;
  background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.72), rgba(255,255,255,0));
  transform: rotate(8deg) translateX(0);
  opacity: 0; pointer-events: none;
}
/* 2026-10-23 站长要求：移除悬停扫光，sheen-run 保持 opacity:0 永不播放 */
.sheen:hover > .sheen-run { animation: none; }
@keyframes sheenRun {
  0%   { opacity: 0; transform: rotate(8deg) translateX(0); }
  18%  { opacity: 1; }
  100% { opacity: 0; transform: rotate(8deg) translateX(420%); }
}

.glass-text {
  font-weight: 700; letter-spacing: .14em; font-size: 12px;
  color: var(--ink-soft); text-transform: uppercase;
}

/* ─────────────── 导航 ─────────────── */

.navbar {
  position: fixed; top: 22px; right: 26px; z-index: 60;
  display: flex; gap: 4px; padding: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, rgba(255,255,255,.72), rgba(255,255,255,.42));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 12px 34px rgba(26,73,196,.16), var(--shadow-inset);
  animation: navIn 1s var(--e-expo) both;
}
.navbar::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(148deg, rgba(255,255,255,.98), rgba(160,205,255,.5) 40%, rgba(124,156,255,.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@keyframes navIn {
  from { opacity: 0; transform: translate3d(0, -22px, 0) scale(.94); }
  to   { opacity: 1; transform: none; }
}
.navbar a {
  position: relative; z-index: 1;
  padding: 11px 22px; border-radius: var(--r-pill);
  white-space: nowrap;
  font-size: 14px; font-weight: 700; letter-spacing: .04em;
  color: var(--ink-soft); text-decoration: none;
  transition: color .45s var(--e-expo), transform .45s var(--e-spring);
}
.navbar a::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(140deg, var(--azure) 0%, var(--peri) 100%);
  opacity: 0; transform: scale(.82);
  transition: opacity .45s var(--e-expo), transform .55s var(--e-spring);
  z-index: -1;
}
.navbar a:hover {
  color: var(--azure-deep);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .62);
  box-shadow: 0 4px 14px rgba(26, 73, 196, .14), 0 1px 3px rgba(13, 31, 60, .06), inset 0 0 0 1px rgba(47, 108, 246, .14);
  transition: transform .28s cubic-bezier(.22,.68,.31,.99),
              color .25s ease,
              background .25s ease,
              box-shadow .28s cubic-bezier(.22,.68,.31,.99);
}驱动 */
.navbar a:hover::before { opacity: .14; transform: scale(1); }
.navbar a.active { color: #fff; }
.navbar a.active::before { opacity: 1; transform: scale(1); }

/* ─────────────── 胶囊按钮 / 标签 ─────────────── */

.pill {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 32px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 700; letter-spacing: .05em;
  color: #fff; text-decoration: none; cursor: pointer; border: 0;
  background: linear-gradient(140deg, var(--azure) 0%, var(--peri) 100%);
  box-shadow: 0 14px 30px rgba(47,108,246,.32), inset 0 1px 0 rgba(255,255,255,.5);
  overflow: hidden; isolation: isolate;
  translate: var(--mx, 0px) var(--my, 0px);
  transition: transform .55s var(--e-spring), box-shadow .55s var(--e-expo);
  will-change: transform;
}
.pill::after {
  content: ''; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.62), transparent);
  transform: skewX(-18deg);
  transition: left .85s var(--e-expo);
  z-index: -1;
}
.pill:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 24px 48px rgba(47,108,246,.42), inset 0 1px 0 rgba(255,255,255,.6); }
/* 2026-10-23 站长要求：移除按钮悬停扫光带，白带停在场外 */
.pill:hover::after { left: -80%; }
.pill:active { transform: translateY(-1px) scale(.99); }

.pill.ghost {
  color: var(--azure-deep);
  background: linear-gradient(150deg, rgba(255,255,255,.72), rgba(255,255,255,.4));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 28px rgba(26,73,196,.14), var(--shadow-inset);
}
.pill.ghost:hover { box-shadow: 0 20px 40px rgba(26,73,196,.22), var(--shadow-inset); }

.tag-chip {
  display: inline-flex; align-items: center; padding: 8px 16px;
  border-radius: var(--r-pill); font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--azure-deep);
  background: linear-gradient(150deg, rgba(255,255,255,.8), rgba(255,255,255,.44));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 18px rgba(26,73,196,.10), inset 0 1px 0 rgba(255,255,255,.95);
}
.tag-chip::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(148deg, rgba(255,255,255,.95), rgba(160,205,255,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.tag-chip { position: relative; }

/* ─────────────── 入场动画（滚动触发） ─────────────── */

.reveal, .reveal-left, .reveal-scale { opacity: 1; transform: none; transition: none; }
.reveal { transform: translate3d(0, 34px, 0); }
.reveal-left { transform: translate3d(-40px, 0, 0); }
.reveal-scale { transform: scale(.9) translate3d(0, 20px, 0); }
.reveal.in, .reveal-left.in, .reveal-scale.in { opacity: 1; transform: none; }

/* ─────────────── 整页翻页（首页） ─────────────── */

html.home-lock, html.home-lock body { height: 100%; overflow: hidden; }
.pages-wrap {
  position: relative; z-index: 1;
  transition: transform 1.05s var(--e-quint);
  will-change: transform;
}
.page {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 96px 20px 72px; position: relative;
}

/* ─────────────── 第一屏：非对称编辑式 hero ─────────────── */

.hero {
  width: min(1280px, 100%);
  display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }

.wordmark-row { display: flex; align-items: center; gap: 20px; }

.logo-wrap {
  width: 96px; height: 96px; flex: none;
  display: grid; place-items: center;
  border-radius: 26px; padding: 0; overflow: hidden;
  background: linear-gradient(150deg, #dce9ff, #bcd6ff);
  box-shadow: 0 22px 46px rgba(16,44,110,.30), 0 6px 16px rgba(16,44,110,.18), var(--shadow-inset);
  opacity: 0; transform: scale(.6) rotate(-14deg);
  transition: opacity .9s var(--e-expo), transform 1.1s var(--e-spring);
}
.logo-wrap::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(148deg, rgba(255,255,255,.98), rgba(160,205,255,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.logo-wrap { position: relative; }
.logo-wrap svg, .logo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-wrap.animate { opacity: 1; transform: none; }
.logo-wrap.animate:hover { transform: translateY(-4px) rotate(-4deg); }

.letter-row { display: flex; gap: 2px; }
.letter-row .l {
  font-size: clamp(58px, 8.4vw, 118px);
  font-weight: 900; line-height: 1.06; letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--azure-deep) 0%, var(--azure) 34%, var(--sky) 62%, var(--peri) 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  opacity: 0; transform: translate3d(0, 46px, 0) rotate(6deg);
  transition: opacity .8s var(--e-expo), transform .95s var(--e-spring), background-position 6s linear;
  will-change: transform, opacity;
}
.letter-row .l.show { opacity: 1; transform: none; animation: hueSlide 7s linear infinite; }
@keyframes hueSlide {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subtitle {
  margin: 0; font-size: clamp(15px, 1.7vw, 20px);
  letter-spacing: .34em; color: var(--ink-soft); font-weight: 600;
  min-height: 1.6em;
}
.caret {
  display: inline-block; width: 2px; height: 1.05em; margin-left: 4px;
  vertical-align: -.14em; background: var(--azure);
  animation: caretBlink 1.15s steps(2, start) infinite;
}
@keyframes caretBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; }

/* hero 右侧视觉台 */
.hero-visual { position: relative; display: grid; place-items: center; }
.stage {
  position: relative; width: min(520px, 100%); aspect-ratio: 4 / 5;
  max-width: calc(70vh * .8);
  border-radius: var(--r-xl);
  background: linear-gradient(158deg, rgba(255,255,255,.66), rgba(255,255,255,.26));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: var(--shadow-lift), var(--shadow-inset);
  overflow: hidden;
  transition: transform 1s var(--e-expo), box-shadow 1s var(--e-expo);
  will-change: transform;
}
.stage::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1.5px;
  background: linear-gradient(148deg,
    rgba(255,255,255,.98), rgba(160,205,255,.5) 30%,
    rgba(255,255,255,.12) 55%, rgba(124,156,255,.7) 82%, rgba(255,255,255,.95));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  z-index: 4;
}
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* 舞台里的分层视差（transform 由 JS 每帧插值驱动，不可加 transition） */
.layer { position: absolute; inset: 0; will-change: transform; }

/* 舞台角标 */
.stage-badge {
  position: absolute; right: 16px; top: 16px; z-index: 5;
  padding: 9px 16px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .1em;
  color: var(--azure-deep);
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 10px 24px rgba(26,73,196,.18), inset 0 1px 0 #fff;
  animation: floatY 6s var(--e-soft) infinite;
}

/* 舞台下方说明 */
.stage-note {
  margin: 18px 0 0; max-width: 460px; text-align: center;
  font-size: 11.5px; line-height: 1.8; color: var(--ink-soft);
}

@keyframes floatY {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -12px, 0); }
}
.stage-badge { animation-name: floatY; }

/* SVG 内部动画 */
.sun-pulse { transform-origin: center; animation: sunPulse 7s var(--e-soft) infinite; }
@keyframes sunPulse { 0%,100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.07); } }
.cloud-a { animation: cloudDrift 26s linear infinite; }
.cloud-b { animation: cloudDrift 38s linear infinite reverse; }
@keyframes cloudDrift { 0% { transform: translateX(-14%); } 50% { transform: translateX(14%); } 100% { transform: translateX(-14%); } }
.orb-bob { animation: orbBob 5.4s var(--e-soft) infinite; transform-origin: center; }
@keyframes orbBob { 0%,100% { transform: translate3d(0,0,0) rotate(0deg); } 50% { transform: translate3d(0,-16px,0) rotate(8deg); } }
.ray-flick { animation: rayFlick 9s var(--e-soft) infinite; }
@keyframes rayFlick { 0%,100% { opacity: .28; } 50% { opacity: .68; } }
.ripple { animation: rippleGo 6s var(--e-soft) infinite; transform-origin: center; }
@keyframes rippleGo { 0%,100% { transform: scaleX(1); opacity: .5; } 50% { transform: scaleX(1.12); opacity: .85; } }

/* 向下滚动提示 */
.scroll-hint {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 11px; letter-spacing: .28em; color: var(--ink-faint); font-weight: 700;
  animation: hintFade 3.4s var(--e-soft) infinite;
}
.scroll-hint .arrow {
  width: 13px; height: 13px; border-right: 2px solid var(--azure); border-bottom: 2px solid var(--azure);
  transform: rotate(45deg); animation: bounceArrow 2s var(--e-soft) infinite;
}
@keyframes bounceArrow { 0%,100% { transform: rotate(45deg) translate3d(0,0,0); } 50% { transform: rotate(45deg) translate3d(5px,5px,0); } }
@keyframes hintFade { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ─────────────── 第二屏：bento 功能格 ─────────────── */

.section-title {
  margin: 0 0 10px; text-align: center;
  font-size: clamp(30px, 4.4vw, 54px); font-weight: 900; letter-spacing: -.02em;
  color: var(--ink);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--azure) 0%, var(--sky) 50%, var(--peri) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.section-sub {
  margin: 0 0 34px; text-align: center;
  font-size: 13px; letter-spacing: .3em; color: var(--ink-faint); font-weight: 700;
}

.bento {
  width: min(1180px, 100%);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.glass-card {
  position: relative; grid-column: span 1;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 218px; padding: 26px;
  border-radius: var(--r-lg); overflow: hidden;
  opacity: 0; transform: translate3d(0, 40px, 0) scale(.96);
  transition: opacity .95s var(--e-expo), transform 1.05s var(--e-expo), box-shadow .7s var(--e-expo);
  will-change: transform, opacity;
}
.glass-card.visible { opacity: 1; transform: none; }
.glass-card.wide { grid-column: span 2; }

.glass-card .fn-text { display: flex; flex-direction: column; gap: 9px; min-width: 0; }

/* 宽卡改成横排：左图标 + 右文字，避免右侧大片留白 */
.glass-card.wide {
  flex-direction: row; align-items: center; gap: 30px;
}
.glass-card.wide .icon-wrap { position: static; flex: none; width: 66px; height: 66px; }
/* 宽卡的底板更大，图形也要跟着放大，否则小卡反而比大卡饱满 */
.glass-card.wide .icon-wrap svg { width: 40px; height: 40px; }
.glass-card.wide .fn-text { flex: 1; }
.glass-card.wide .fn-name { font-size: 22px; }
.glass-card.wide .fn-desc { max-width: 640px; }

.glass-card .icon-wrap {
  position: absolute; left: 26px; top: 26px;
  width: 58px; height: 58px; display: grid; place-items: center;
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(255,255,255,.92), rgba(200,225,255,.6));
  box-shadow: 0 10px 24px rgba(26,73,196,.16), inset 0 1px 0 #fff;
  transition: transform .8s var(--e-spring);
}
.glass-card .icon-wrap svg { width: 30px; height: 30px; color: var(--azure-deep); }

.glass-card .fn-name {
  font-size: 19px; font-weight: 900; letter-spacing: .01em; color: var(--ink);
}
.glass-card .fn-desc {
  font-size: 13px; line-height: 1.85; color: var(--ink-soft);
}
/* 卡片右上角的水印序号，填补大卡留白 */
.glass-card .fn-idx {
  position: absolute; right: 18px; top: 8px;
  font-size: 74px; font-weight: 900; line-height: 1; letter-spacing: -.05em;
  color: rgba(47,108,246,.09);
  transition: color .7s var(--e-expo), transform .9s var(--e-expo);
}
/* 卡片底部渐变条 */
.glass-card .fn-bar {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
  background: linear-gradient(90deg, var(--azure), var(--sky), var(--peri));
  transform: scaleX(0); transform-origin: left;
  transition: transform .9s var(--e-expo);
}

/* ─────────────── 第三屏：横向时间轴轨道 ─────────────── */

.tl-wrap { width: min(1180px, 100%); position: relative; }
.tl-rail {
  position: relative; overflow-x: auto; overflow-y: hidden;
  padding: 46px 4px 30px; margin: 0;
  scroll-snap-type: x proximity;
  scrollbar-width: thin; scrollbar-color: rgba(47,108,246,.4) transparent;
  -webkit-overflow-scrolling: touch;
}
.tl-rail::-webkit-scrollbar { height: 6px; }
.tl-rail::-webkit-scrollbar-thumb { background: rgba(47,108,246,.35); border-radius: 99px; }
.tl-rail::-webkit-scrollbar-track { background: rgba(255,255,255,.4); border-radius: 99px; }

.tl-track { display: flex; gap: 16px; position: relative; padding: 0 4px; }
/* 贯穿横线 */
.tl-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 8px; height: 2px;
  background: linear-gradient(90deg, rgba(47,108,246,.1), rgba(47,108,246,.55), rgba(124,156,255,.15));
  border-radius: 99px;
}

.tl-item {
  position: relative; flex: 0 0 250px; scroll-snap-align: start;
  padding: 34px 20px 20px;
  border-radius: var(--r-md);
  opacity: 0; transform: translate3d(0, 26px, 0);
  transition: opacity .9s var(--e-expo), transform 1s var(--e-expo), box-shadow .6s var(--e-expo);
  will-change: transform, opacity;
}
.tl-item.visible { opacity: 1; transform: none; }
.tl-dot {
  position: absolute; left: 20px; top: 2px; width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(140deg, var(--azure), var(--sky));
  box-shadow: 0 0 0 4px rgba(255,255,255,.85), 0 6px 16px rgba(47,108,246,.4);
  transition: transform .7s var(--e-spring);
}
.tl-year {
  font-size: 26px; font-weight: 900; letter-spacing: -.01em;
  background: linear-gradient(120deg, var(--azure-deep), var(--sky));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  margin-bottom: 8px;
}
.tl-text { font-size: 12.5px; line-height: 1.9; color: var(--ink-soft); }

.tl-hint {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin-top: 6px; font-size: 11px; letter-spacing: .22em; color: var(--ink-faint); font-weight: 700;
}
.tl-hint .swipe {
  width: 30px; height: 16px; border-radius: 99px;
  border: 1.5px solid rgba(47,108,246,.45); position: relative;
}
.tl-hint .swipe::after {
  content: ''; position: absolute; top: 3px; left: 4px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--azure); animation: swipeGo 2.4s var(--e-soft) infinite;
}
@keyframes swipeGo { 0%,100% { transform: translateX(0); } 50% { transform: translateX(13px); } }

/* ─────────────── 子页外壳 ─────────────── */

.shell {
  position: relative; z-index: 1;
  /* 子页内容区要跟着视口长大，否则宽屏上两侧全是空白 */
  width: min(1900px, 94%); margin: 0 auto; padding: 118px 20px 90px;
}
.shell-head { margin-bottom: 26px; }
.shell-head h1 {
  margin: 0 0 8px; font-size: clamp(34px, 5vw, 58px); font-weight: 900; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--ink) 0%, var(--azure-deep) 55%, var(--sky) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.shell-head .sub { margin: 0; font-size: 13px; letter-spacing: .26em; color: var(--ink-faint); font-weight: 700; }

.filter-bar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: 26px;
  border-radius: var(--r-pill);
}
.glass-btn {
  position: relative; padding: 10px 22px; border: 0; cursor: pointer;
  border-radius: var(--r-pill); font-family: inherit;
  font-size: 13px; font-weight: 800; letter-spacing: .06em;
  color: var(--azure-deep);
  background: linear-gradient(150deg, rgba(255,255,255,.86), rgba(210,232,255,.5));
  box-shadow: 0 8px 20px rgba(26,73,196,.12), inset 0 1px 0 #fff;
  transition: transform .35s ease, box-shadow .35s ease, color .25s ease;
}
.glass-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(26,73,196,.2), inset 0 1px 0 #fff; }
.glass-btn:active { transform: translateY(-1px) scale(.98); }

.placeholder {
  padding: 46px 26px; text-align: center;
  font-size: 13px; letter-spacing: .24em; color: var(--ink-faint); font-weight: 700;
  border-radius: var(--r-md);
  background: linear-gradient(158deg, rgba(255,255,255,.42), rgba(255,255,255,.16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(140,180,240,.26),
              0 10px 26px rgba(26,73,196,.07);
}

/* 子页内容纵向堆叠 */
.shell-body { display: flex; flex-direction: column; gap: 22px; }

/* 子页左右分栏：左文字面板 + 右自绘玻璃装置 */
.split {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 22px; align-items: stretch;
}
.split > .glass { display: flex; flex-direction: column; justify-content: center; }
.split > .glass > .tag-chip { align-self: flex-start; }
.split > .totem { display: grid; }

/* ─────────────── 插件卡格 ─────────────── */

/* 分类面板：默认收起，点开时丝滑入场 */
.pane { display: none; flex-direction: column; gap: 24px; padding: clamp(22px, 3vw, 38px); }
.pane.show { display: flex; animation: none; }
@keyframes paneIn {
  from { opacity: 0; transform: translate3d(0, 30px, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
.pane-head { display: flex; flex-direction: column; gap: 8px; }
.pane-head .tag-chip { align-self: flex-start; }
.pane-head h2 { margin: 6px 0 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; color: var(--ink); }
.pane-head p { margin: 0; font-size: 13.5px; color: var(--ink-soft); }

/* 内容区加宽后不能再写死列数：列数随可用宽度自动增加，
   最小卡宽跟着视口在 264~300px 之间收放，加宽只多放卡片、不等比放大卡片 */
.plugin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(clamp(264px, 15vw, 300px), 1fr)); gap: 16px; }
.c-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 13px 13px 15px; border-radius: var(--r-md); cursor: pointer; overflow: hidden;
  transition: transform .8s var(--e-expo), box-shadow .8s var(--e-expo);
}
.c-card .z-img {
  position: relative; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 16 / 10;
  background: linear-gradient(150deg, #dce9ff, #c3d9ff);
}
.c-card .z-img img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 1.4s var(--e-expo); }
.c-card h3 { margin: 0; font-size: 14.5px; font-weight: 900; color: var(--ink); }
.c-card .z-desc { margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.c-card .open-hint {
  margin-top: auto; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--azure);
  display: flex; align-items: center; gap: 8px;
}
.c-card .open-hint::after {
  content: ''; width: 22px; height: 1.5px; background: linear-gradient(90deg, var(--azure), transparent);
  transition: width .7s var(--e-expo);
}

/* ─────────────── 详情页 ─────────────── */

.detail-frame { padding: 0; overflow: hidden; margin-bottom: 26px; }
.detail-hero { position: relative; aspect-ratio: 21 / 9; overflow: hidden; background: #cfe0ff; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 只保留底部淡出，让宣传图自然接上页面底色，不再给图蒙蓝色 */
.detail-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(244,248,255,0) 0%, rgba(244,248,255,0) 55%, rgba(244,248,255,.92) 100%);
}
.detail-body { padding: clamp(24px, 3.4vw, 44px); }
.detail-body h1 {
  margin: 0 0 6px; font-size: clamp(26px, 3.6vw, 42px); font-weight: 900; letter-spacing: -.02em; color: var(--ink);
}
.detail-body .ver { font-size: 12px; letter-spacing: .2em; color: var(--azure); font-weight: 800; margin-bottom: 18px; }
.detail-body .body-text { font-size: 14px; line-height: 2; color: var(--ink-soft); margin: 0 0 28px; }

.feat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feat-item {
  padding: 18px 20px; border-radius: var(--r-md);
  background: linear-gradient(150deg, rgba(255,255,255,.66), rgba(255,255,255,.3));
  box-shadow: 0 8px 22px rgba(26,73,196,.08), inset 0 1px 0 rgba(255,255,255,.9);
  transition: transform .7s var(--e-expo), box-shadow .7s var(--e-expo);
}
.feat-item b { display: block; font-size: 14px; font-weight: 900; color: var(--azure-deep); margin-bottom: 6px; }
.feat-item span, .feat-item p { font-size: 12.5px; line-height: 1.85; color: var(--ink-soft); margin: 0; }
.feat-item.full { grid-column: 1 / -1; }

.detail-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detail-foot { padding: 0 clamp(24px, 3.4vw, 44px) clamp(26px, 3.4vw, 44px); }

/* 双栏：左说明右亮点 */
.detail-split {
  display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: 22px; align-items: stretch;
}
.detail-split .panel { padding: clamp(22px, 3vw, 34px); }

/* 装饰性玻璃立柱（替代外借立绘位） */
.totem {
  position: relative; display: grid; place-items: center; padding: 26px;
  border-radius: var(--r-lg); overflow: hidden;
  background: linear-gradient(158deg, rgba(255,255,255,.6), rgba(255,255,255,.24));
  -webkit-backdrop-filter: blur(24px) saturate(185%);
  backdrop-filter: blur(24px) saturate(185%);
  box-shadow: var(--shadow), var(--shadow-inset);
  min-height: 260px;
}
.totem::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(148deg, rgba(255,255,255,.98), rgba(160,205,255,.5) 34%, rgba(124,156,255,.66) 78%, rgba(255,255,255,.94));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.totem svg { width: 100%; height: auto; max-height: 420px; }
.totem > svg { position: relative; z-index: 1; }
.totem .tag-chip { position: absolute; left: 20px; top: 20px; z-index: 2; }
.totem-glow {
  position: absolute; left: 50%; top: 58%; width: 62%; height: 34%;
  transform: translateX(-50%); border-radius: 50%; filter: blur(46px);
  background: radial-gradient(circle, rgba(143,208,255,.92), rgba(124,156,255,0) 70%);
  pointer-events: none;
}
.totem-float {
  position: relative; z-index: 1; width: 100%; display: grid; place-items: center;
  animation: floatY 7.5s var(--e-soft) infinite;
  will-change: transform;
}

.foot-note {
  margin-top: 40px; text-align: center; font-size: 11.5px; line-height: 2;
  letter-spacing: .06em; color: var(--ink-faint);
}

/* ─────────────── 公告弹窗 ─────────────── */

.notice-mask {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 20px;
  background: rgba(13, 31, 60, .28);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  opacity: 0; transition: opacity .6s var(--e-expo);
}
.notice-mask.show { opacity: 1; }
.notice-card {
  position: relative; width: min(440px, 100%); padding: 34px 30px 28px;
  border-radius: var(--r-xl); text-align: center;
  background: linear-gradient(158deg, rgba(255,255,255,.82), rgba(255,255,255,.56));
  -webkit-backdrop-filter: blur(34px) saturate(190%);
  backdrop-filter: blur(34px) saturate(190%);
  box-shadow: 0 40px 90px rgba(13,31,60,.3), var(--shadow-inset);
  opacity: 0; transform: translate3d(0, 26px, 0) scale(.94);
  transition: opacity .7s var(--e-expo), transform .9s var(--e-spring);
}
.notice-mask.show .notice-card { opacity: 1; transform: none; }
.notice-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1.5px;
  background: linear-gradient(148deg, rgba(255,255,255,.98), rgba(160,205,255,.55) 40%, rgba(124,156,255,.7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.notice-card h3 { margin: 0 0 14px; font-size: 20px; font-weight: 900; color: var(--ink); }
.notice-card p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.95; color: var(--ink-soft); }
.notice-card .pill { margin-top: 18px; }

/* ─────────────── 响应式 ─────────────── */

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { order: 2; }
  .stage { width: min(420px, 100%); aspect-ratio: 5 / 5; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .glass-card { grid-column: span 1; }
  .glass-card.wide { grid-column: span 2; }
  .plugin-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-split { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  /* 导航胶囊回到顶部右侧，与左上角的账号入口同一行 */
  .navbar { top: 12px; right: 12px; gap: 1px; padding: 4px; }
  .navbar a { padding: 8px 10px; font-size: 12.5px; }
  .page { padding: 84px 16px 72px; }
  .hero { gap: 20px; }
  .hero-copy { gap: 18px; }
  .stage { width: min(320px, 80vw); }
  .stage-note { margin-top: 12px; font-size: 11px; }
  .bento { grid-template-columns: 1fr; }
  .glass-card, .glass-card.wide { grid-column: span 1; min-height: 190px; }
  .glass-card.wide { flex-direction: column; align-items: flex-start; gap: 12px; }
  .glass-card.wide .icon-wrap { width: 58px; height: 58px; }
  .glass-card.wide .fn-name { font-size: 19px; }
  .feat-grid { grid-template-columns: 1fr; }
  .shell { padding: 92px 16px 90px; }
}

@media (max-width: 480px) {
  .plugin-grid { grid-template-columns: 1fr; }
  .wordmark-row { flex-direction: column; align-items: flex-start; gap: 14px; }
  .logo-wrap { width: 68px; height: 68px; }
  .glass-card .fn-idx { display: none; }
}

/* ─────────────── 无障碍：尊重系统减动效偏好 ─────────────── */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    /* 2026-10-23 调整：0.001ms 会让悬停变化变成瞬间跳变（看起来像故障），
       改为 0.15s 短过渡 —— 尊重减少动态偏好，但不产生瞬间跳变 */
    transition-duration: .15s !important;
    scroll-behavior: auto !important;
  }
  .bg-motes, .bg-petals { display: none; }
  .reveal, .reveal-left, .reveal-scale, .glass-card, .tl-item { opacity: 1 !important; transform: none !important; }
}

/* ═══════════════════════════════════════════════════════════════
   Aqua Account · 左上角账号入口
   触发器与右侧导航同材质同高度；下拉为深色克制面板
   零外部素材，图标全部内联 SVG
   ═══════════════════════════════════════════════════════════════ */

.ac {
  /* 与 .navbar 同一光学行：top/right 对称，z 只比导航高一层 */
  position: fixed; top: 22px; left: 26px; z-index: 61;
  --ac-h: 40px;                 /* 内层高度，脚本按真实导航高度校正 */
  padding: 6px;
  border-radius: var(--r-pill);
  background: linear-gradient(150deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .42));
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  backdrop-filter: blur(28px) saturate(190%);
  box-shadow: 0 12px 34px rgba(26, 73, 196, .16), var(--shadow-inset);
  animation: acIn 1s var(--e-expo) both;
}
.ac::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  padding: 1px;
  background: linear-gradient(148deg, rgba(255, 255, 255, .98), rgba(160, 205, 255, .5) 40%, rgba(124, 156, 255, .6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
@keyframes acIn {
  from { opacity: 0; transform: translate3d(0, -22px, 0) scale(.94); }
  to   { opacity: 1; transform: none; }
}

/* ─────────── 触发器 ─────────── */

.ac-btn {
  display: flex; align-items: center; gap: 9px;
  height: var(--ac-h);
  padding: 0 12px 0 10px;
  border: 0; border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-faint);
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--e-soft), background-color .2s var(--e-soft);
}
.ac-btn:hover { color: var(--azure-deep); background: rgba(255, 255, 255, .5); }
.ac-btn[data-open="1"] { color: var(--azure-deep); background: rgba(255, 255, 255, .66); }
.ac-btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }

.ac-ico { flex: 0 0 auto; width: 18px; height: 18px; transition: transform .22s var(--e-spring); }
.ac-btn:hover .ac-ico { transform: scale(1.07); }

.ac-sep { flex: 0 0 auto; width: 1px; height: 15px; background: rgba(13, 31, 60, .14); }

.ac-label {
  font-size: 12.5px; font-weight: 800; letter-spacing: .18em; line-height: 1;
  white-space: nowrap;
}
.ac-name {
  max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1;
}
.ac-chev { flex: 0 0 auto; width: 9px; height: 9px; opacity: .8; transition: transform .2s var(--e-expo); }
.ac-btn[data-open="1"] .ac-chev { transform: rotate(180deg); }

/* 头像：首字母刻面，不用外部图片 */
.ac-avatar {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  font-size: 11.5px; font-weight: 800; line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, var(--azure) 0%, var(--peri) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 8px rgba(26, 73, 196, .3);
}
.ac-avatar.lg { width: 34px; height: 34px; font-size: 14px; }

/* Loading：圆形骨架 + 一条短骨，不显示任何用户名 */
.ac-skel {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(100deg, rgba(127, 151, 184, .18) 30%, rgba(127, 151, 184, .34) 50%, rgba(127, 151, 184, .18) 70%);
  background-size: 220% 100%;
  animation: acShine 1.25s var(--e-soft) infinite;
}
.ac-skelbar {
  width: 58px; height: 8px; border-radius: 4px;
  background: linear-gradient(100deg, rgba(127, 151, 184, .18) 30%, rgba(127, 151, 184, .34) 50%, rgba(127, 151, 184, .18) 70%);
  background-size: 220% 100%;
  animation: acShine 1.25s var(--e-soft) infinite;
}
@keyframes acShine {
  from { background-position: 160% 0; }
  to   { background-position: -60% 0; }
}

/* ─────────── 下拉面板（深色） ─────────── */

.ac-menu {
  position: absolute; top: calc(100% + 10px); left: 0;
  width: 228px; padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(150, 170, 200, .16);
  background: linear-gradient(160deg, rgba(15, 21, 33, .93), rgba(9, 13, 22, .95));
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 26px 62px rgba(6, 12, 24, .42), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #d7e0ef;
  opacity: 0; visibility: hidden;
  transform: translate3d(0, -6px, 0) scale(.985);
  transition: opacity .17s var(--e-soft), transform .2s var(--e-expo), visibility 0s linear .2s;
}
.ac-menu[data-show="1"] {
  opacity: 1; visibility: visible;
  transform: none;
  transition: opacity .17s var(--e-soft), transform .2s var(--e-expo), visibility 0s;
}

.ac-group {
  padding: 7px 11px 5px;
  font-size: 10.5px; font-weight: 800; letter-spacing: .2em;
  color: #6f83a0;
}
.ac-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 9px 11px;
  border: 0; border-radius: 10px;
  background: transparent;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: .03em;
  color: #cbd6e8; text-align: left; text-decoration: none;
  cursor: pointer;
  transition: background-color .16s var(--e-soft), color .16s var(--e-soft);
}
.ac-item:hover { background: rgba(124, 156, 255, .13); color: #fff; }
.ac-item:focus-visible { background: rgba(124, 156, 255, .17); color: #fff; outline: 1px solid rgba(143, 208, 255, .55); outline-offset: -1px; }
.ac-item.danger { color: #c9a2a2; }
.ac-item.danger:hover { background: rgba(214, 120, 120, .12); color: #f0cfcf; }

.ac-tag {
  margin-left: auto; flex: 0 0 auto;
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em;
  color: #5f7391;
}

.ac-hr { height: 1px; margin: 6px 8px; background: rgba(150, 170, 200, .14); }

.ac-id { display: flex; align-items: center; gap: 10px; padding: 10px 11px 12px; }
.ac-idtxt { min-width: 0; display: block; }
.ac-nm {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: #f2f6ff;
}
.ac-em {
  display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  margin-top: 3px; font-size: 11px; letter-spacing: .02em; color: #8296b3;
}

.ac-warn {
  padding: 9px 11px; margin-bottom: 4px;
  border-radius: 10px;
  background: rgba(196, 138, 74, .12);
  font-size: 11.5px; line-height: 1.6; color: #d9b78c;
}

.ac-foot {
  margin: 6px 11px 3px; padding-top: 7px;
  border-top: 1px solid rgba(150, 170, 200, .12);
  font-size: 10.5px; line-height: 1.6; color: #6b7f9c;
}

.ac-load { display: flex; gap: 6px; padding: 13px 11px; }
.ac-load i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(143, 208, 255, .5);
  animation: acDot 1s var(--e-soft) infinite;
}
.ac-load i:nth-child(2) { animation-delay: .15s; }
.ac-load i:nth-child(3) { animation-delay: .3s; }
@keyframes acDot {
  0%, 100% { opacity: .28; transform: translateY(0); }
  50%      { opacity: 1;   transform: translateY(-3px); }
}

.ac-toast {
  max-height: 0; overflow: hidden; padding: 0 11px;
  font-size: 11px; line-height: 1.6; color: #9fd0f5;
  transition: max-height .2s var(--e-expo), padding .2s var(--e-expo);
}
.ac-toast[data-show="1"] { max-height: 46px; padding: 7px 11px 3px; }

/* ─────────── 窄屏：只留图标 ─────────── */

@media (max-width: 768px) {
  .ac { top: 16px; left: 16px; }
  .ac-btn { padding: 0; width: var(--ac-h); justify-content: center; }
  .ac-label, .ac-name, .ac-sep, .ac-chev { display: none; }
  .ac-menu { width: min(224px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  .ac { animation: none; }
  .ac-btn, .ac-ico, .ac-chev, .ac-menu, .ac-item, .ac-toast { transition-duration: .01ms; }
  .ac-skel, .ac-skelbar, .ac-load i { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   Aqua Fav v1 · 收藏胶囊 / 个人中心收藏列表 / 轻提示
   造型语言跟着卡片底部现有的动作条走（同宽同圆角同玻璃描边），
   这样「收藏」摆在「在线观看 / 站内直接下载 / 夸克网盘下载」旁边不像外来件。
   已收藏态用本站主蓝实填，未收藏态保持玻璃空心——不靠颜色也能靠文案分辨。
   ═══════════════════════════════════════════════════════════ */

.fav-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .76), rgba(214, 234, 255, .44));
  box-shadow: 0 10px 24px rgba(26, 73, 196, .1), inset 0 1px 0 #fff;
  color: var(--azure-deep, #1a49c4);
  font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .05em;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform .5s var(--e-expo, cubic-bezier(.16, 1, .3, 1)),
    box-shadow .5s var(--e-expo, cubic-bezier(.16, 1, .3, 1)),
    background .45s ease, color .45s ease;
}
.fav-btn:hover {
  transform: translateY(-3px); background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 30px rgba(26, 73, 196, .2), inset 0 1px 0 #fff;
}
.fav-btn:active { transform: translateY(-1px) scale(.985); }
.fav-btn:focus-visible {
  outline: 2px solid var(--azure, #2f6cf6); outline-offset: 3px;
}

.fav-ico { width: 14px; height: 14px; flex: none; display: block; }
.fav-mark {
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linejoin: round; stroke-linecap: round;
  transition: fill .4s ease;
}

/* 已收藏：主蓝实填，书签里的缺口反白成一条光，一眼看出这条已经收了 */
.fav-btn[aria-pressed="true"] {
  color: #fff; border-color: rgba(255, 255, 255, .96);
  background: linear-gradient(140deg, var(--sky, #4fb2f0), var(--azure, #2f6cf6) 58%, var(--azure-deep, #1a49c4));
  box-shadow: 0 14px 30px rgba(26, 73, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.fav-btn[aria-pressed="true"] .fav-mark { fill: currentColor; }

/* 请求在途：文案在换，图标轻轻呼吸；不置灰，避免被读成「这个功能不能点」 */
.fav-btn[data-busy] { pointer-events: none; }
.fav-btn[data-busy] .fav-ico { animation: favPulse 1.05s var(--e-expo, ease) infinite; }
@keyframes favPulse {
  0% { transform: scale(1); opacity: .55; }
  50% { transform: scale(1.16); opacity: 1; }
  100% { transform: scale(1); opacity: .55; }
}

/* ── 个人中心：一行一条收藏 ── */
.fav-list { display: grid; gap: 12px; margin-top: 16px; }
.fav-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(206, 228, 255, .34));
}
.fav-row-main { flex: 1 1 auto; min-width: 0; }
.fav-name { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: .01em; }
.fav-sum {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; opacity: .8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fav-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11.5px; opacity: .72; }
.fav-kind {
  padding: 3px 10px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .5);
  font-weight: 800; letter-spacing: .06em; opacity: 1;
}
.fav-rows { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.fav-link, .fav-note, .fav-off {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .76), rgba(214, 234, 255, .44));
  box-shadow: 0 8px 20px rgba(26, 73, 196, .08), inset 0 1px 0 #fff;
  color: var(--azure-deep, #1a49c4); font: inherit; font-size: 12px; font-weight: 900;
  letter-spacing: .05em; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--e-expo, ease), box-shadow .5s var(--e-expo, ease);
}
.fav-link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(26, 73, 196, .18), inset 0 1px 0 #fff; }
.fav-note, .fav-off { cursor: default; font-weight: 800; opacity: .82; }
.fav-off {
  background: rgba(255, 255, 255, .42); border-style: dashed;
  font-size: 11.5px; letter-spacing: .02em; line-height: 1.7; padding: 8px 13px;
}
.fav-btn--row { flex: none; }

/* 课程页抬头动作条：收藏跟下载链接排同一行，得是行内块才对齐 */
.crs-fav { display: inline-flex; }

.fav-count-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.fav-count {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .92);
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(214, 234, 255, .5));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(26, 73, 196, .08);
  font-size: 12px; font-weight: 900; letter-spacing: .06em;
  color: var(--azure-deep, #1a49c4);
}

.fav-empty {
  padding: 22px 20px; border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .4);
  font-size: 13px; line-height: 2;
}
.fav-skel { opacity: .62; }

/* ── 轻提示 ── */
.fav-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: min(560px, 88vw);
  padding: 12px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(206, 228, 255, .82));
  box-shadow: 0 22px 48px rgba(16, 46, 122, .26), inset 0 1px 0 #fff;
  color: #16307a; font-size: 12.5px; font-weight: 800; line-height: 1.7;
  opacity: 0; transform: translate(-50%, 18px); pointer-events: none;
  transition: opacity .42s var(--e-expo, ease), transform .5s var(--e-spring, cubic-bezier(.16, 1, .3, 1));
}
.fav-toast[data-show] { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fav-toast-act {
  padding: 5px 13px; border-radius: var(--r-pill, 999px);
  background: linear-gradient(140deg, var(--sky, #4fb2f0), var(--azure, #2f6cf6) 58%, var(--azure-deep, #1a49c4));
  color: #fff; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap;
}

@media (max-width: 768px) {
  .fav-btn { padding: 6px 12px; font-size: 11px; }
  .fav-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .fav-btn--row { align-self: flex-start; }
  .fav-toast { left: 6vw; right: 6vw; bottom: 18px; max-width: none; transform: translateY(18px); }
  .fav-toast[data-show] { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .fav-btn, .fav-link, .fav-toast, .fav-mark { transition: none; }
  .fav-btn[data-busy] .fav-ico { animation: none; }
}

/* ═══════════════════════════════════════════════════════════
   Aqua Dl v2 · 个人中心的下载记录（按分类归组 + 分类筛选条）
   造型语言与收藏那一套同族：同一套玻璃描边、同一套主蓝胶囊、同一档圆角与投影，
   两个面板摆在同一页里必须像一次做出来的，只是下载记录多一层「分类」的分组标题。
   分组标题用一条从主蓝淡出的横线收尾，材质/教程各占一段，扫一眼就能分清。
   v2 多一个 .dl-toast 浮层：被管理员停用下载的账号点站内下载时，当场说出原因；
   造型照抄收藏那套轻提示，两处在同一页里不能长得不一样。
   ═══════════════════════════════════════════════════════════ */

.dl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dl-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .7), rgba(214, 234, 255, .4));
  box-shadow: 0 8px 18px rgba(26, 73, 196, .07), inset 0 1px 0 #fff;
  color: var(--azure-deep, #1a49c4);
  font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .05em;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  transition: transform .5s var(--e-expo, cubic-bezier(.16, 1, .3, 1)),
    box-shadow .5s var(--e-expo, cubic-bezier(.16, 1, .3, 1)),
    background .45s ease, color .45s ease;
}
.dl-chip:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(26, 73, 196, .18), inset 0 1px 0 #fff; }
.dl-chip:focus-visible { outline: 2px solid var(--azure, #2f6cf6); outline-offset: 3px; }
.dl-chip.on {
  color: #fff; border-color: rgba(255, 255, 255, .96);
  background: linear-gradient(140deg, var(--sky, #4fb2f0), var(--azure, #2f6cf6) 58%, var(--azure-deep, #1a49c4));
  box-shadow: 0 14px 30px rgba(26, 73, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ── 分类分组：一段一类 ── */
.dl-group { margin-top: 18px; }
.dl-group:first-child { margin-top: 16px; }
.dl-group-h {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 10px; font-size: 13px; font-weight: 900; letter-spacing: .1em;
  color: var(--azure-deep, #1a49c4);
}
.dl-group-h::after {
  content: ""; flex: 1 1 auto; height: 1px;
  background: linear-gradient(90deg, rgba(47, 108, 246, .38), rgba(47, 108, 246, 0));
}
.dl-group-n {
  padding: 2px 9px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .5);
  font-size: 11px; letter-spacing: .04em; opacity: .8;
}

.dl-list { display: grid; gap: 12px; margin-top: 6px; }
.dl-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 18px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .6), rgba(206, 228, 255, .34));
}
.dl-row-main { flex: 1 1 auto; min-width: 0; }
.dl-name { margin: 0; font-size: 16px; font-weight: 900; letter-spacing: .01em; }
.dl-sum {
  margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; opacity: .8;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dl-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 11.5px; opacity: .72; }
.dl-rows { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.dl-link, .dl-note, .dl-off {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 13px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .76), rgba(214, 234, 255, .44));
  box-shadow: 0 8px 20px rgba(26, 73, 196, .08), inset 0 1px 0 #fff;
  color: var(--azure-deep, #1a49c4); font: inherit; font-size: 12px; font-weight: 900;
  letter-spacing: .05em; text-decoration: none; cursor: pointer;
  transition: transform .5s var(--e-expo, ease), box-shadow .5s var(--e-expo, ease);
}
.dl-link:hover { transform: translateY(-2px); box-shadow: 0 14px 26px rgba(26, 73, 196, .18), inset 0 1px 0 #fff; }
.dl-note, .dl-off { cursor: default; font-weight: 800; opacity: .82; }
.dl-off {
  background: rgba(255, 255, 255, .42); border-style: dashed;
  font-size: 11.5px; letter-spacing: .02em; line-height: 1.7; padding: 8px 13px;
}

.dl-count-line { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dl-count {
  display: inline-flex; align-items: center;
  padding: 5px 14px; border-radius: var(--r-pill, 999px);
  border: 1px solid rgba(255, 255, 255, .92);
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(214, 234, 255, .5));
  box-shadow: inset 0 1px 0 #fff, 0 8px 18px rgba(26, 73, 196, .08);
  font-size: 12px; font-weight: 900; letter-spacing: .06em;
  color: var(--azure-deep, #1a49c4);
}

.dl-empty {
  padding: 22px 20px; border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .4);
  font-size: 13px; line-height: 2;
}
.dl-skel { opacity: .62; }

/* ── 轻提示：被停用下载的账号点站内下载时当场摊开原因 ── */
.dl-toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 90;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  max-width: min(560px, 88vw);
  padding: 12px 18px; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .92);
  background: linear-gradient(150deg, rgba(255, 255, 255, .9), rgba(206, 228, 255, .82));
  box-shadow: 0 22px 48px rgba(16, 46, 122, .26), inset 0 1px 0 #fff;
  color: #16307a; font-size: 12.5px; font-weight: 800; line-height: 1.7;
  opacity: 0; transform: translate(-50%, 18px); pointer-events: none;
  transition: opacity .42s var(--e-expo, ease), transform .5s var(--e-spring, cubic-bezier(.16, 1, .3, 1));
}
.dl-toast[data-show] { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dl-toast-act {
  padding: 5px 13px; border-radius: var(--r-pill, 999px);
  background: linear-gradient(140deg, var(--sky, #4fb2f0), var(--azure, #2f6cf6) 58%, var(--azure-deep, #1a49c4));
  color: #fff; font-size: 12px; font-weight: 900; text-decoration: none; white-space: nowrap;
}

@media (max-width: 768px) {
  .dl-chip { padding: 5px 11px; font-size: 11px; }
  .dl-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .dl-toast { left: 6vw; right: 6vw; bottom: 18px; max-width: none; transform: translateY(18px); }
  .dl-toast[data-show] { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .dl-chip, .dl-link, .dl-toast { transition: none; }
}

/* ═══════════════════════════════════════════════════════════════
   Aqua Catalog v2 · 前台条目区（分类筛选 / 自绘缺图 / 管理员「+」）
   v2 新增：置顶角标 .pin-flag，以及卡片底部动作条 .cat-acts ——
   一条资源同时有「站内那份」和「管理员自己传到夸克网盘那份」时，两个入口并列给访客。
   只新增，不覆盖既有规则；必须排在玻璃与首页样式之后加载。
   ═══════════════════════════════════════════════════════════════ */

/* ── 卡片入场：脚本注入的卡片不走全站 .reveal（观察器只认首次 DOM） ── */
@keyframes catIn {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(.985); }
  to { opacity: 1; transform: none; }
}
.cat-in { animation: none !important; }

/* ── 分类筛选条 ── */
.cat-chips {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 18px;
}
.cat-chip {
  appearance: none; cursor: pointer; font: inherit;
  padding: 9px 20px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .74), rgba(214, 234, 255, .42));
  box-shadow: 0 10px 24px rgba(26, 73, 196, .1), inset 0 1px 0 #fff;
  color: var(--ink-soft); font-size: 13px; font-weight: 900; letter-spacing: .06em;
  transition: transform .35s ease, box-shadow .35s ease, color .35s ease, background .35s ease;
}
.cat-chip:hover { transform: translateY(-3px); color: var(--ink); }
.cat-chip:active { transform: translateY(-1px) scale(.985); }
.cat-chip[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(140deg, var(--sky), var(--azure) 58%, var(--azure-deep));
  border-color: rgba(255, 255, 255, .96);
  box-shadow: 0 16px 34px rgba(26, 73, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.cat-add {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--r-pill);
  border: 1.5px dashed rgba(47, 108, 246, .55);
  color: var(--azure); font-size: 13px; font-weight: 900; letter-spacing: .06em;
  text-decoration: none; background: rgba(255, 255, 255, .38);
  transition: transform .35s ease, background .35s ease, border-color .35s ease;
}
.cat-add:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .72); border-color: var(--azure); }

/* ── 教程屏的框内滚动：滚动只能开在网格容器上，且必须限高，
      否则条目一多整屏就顶出视口（首页每屏要完整落在一屏） ── */
.learn-scroll {
  overflow-x: hidden; overflow-y: auto;
  max-height: min(58vh, 560px);
  padding-right: 4px;
  overscroll-behavior: contain;                 /* 滚到框内尽头就收手，不把滚动甩给整屏翻页 */
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 108, 246, .42) transparent;
}
.learn-scroll::-webkit-scrollbar { width: 10px; }
.learn-scroll::-webkit-scrollbar-track { background: transparent; }
.learn-scroll::-webkit-scrollbar-thumb {
  border: 3px solid transparent; border-radius: 99px; background-clip: padding-box;
  background-image: linear-gradient(180deg, rgba(47, 108, 246, .5), rgba(124, 156, 255, .42));
}
.learn-scroll::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, rgba(47, 108, 246, .74), rgba(124, 156, 255, .62));
}

/* ── 管理员「+」块：与卡片同尺寸同圆角，虚线玻璃面 ── */
.add-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 168px; padding: 22px 18px;
  border-radius: var(--r-md);
  border: 1.5px dashed rgba(47, 108, 246, .5);
  background: linear-gradient(150deg, rgba(255, 255, 255, .58), rgba(206, 228, 255, .34));
  box-shadow: var(--shadow-inset);
  color: var(--azure-deep); text-decoration: none; text-align: center;
  transition: transform .8s var(--e-expo), box-shadow .8s var(--e-expo), border-color .6s;
}
.add-tile:hover {
  
  border-color: var(--azure);
  
}
.add-tile .add-plus {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 18px;
  background: linear-gradient(140deg, var(--sky), var(--azure) 60%, var(--azure-deep));
  color: #fff; font-size: 30px; font-weight: 900; line-height: 1;
  box-shadow: 0 14px 30px rgba(26, 73, 196, .3), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.add-tile .add-tx { font-size: 15px; font-weight: 900; letter-spacing: .04em; color: var(--ink); }
.add-tile .add-sub { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--ink-faint); }

/* ── 空状态 ── */
.cat-empty {
  grid-column: 1 / -1;
  padding: clamp(28px, 5vh, 54px) 22px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 255, 255, .8);
  background: linear-gradient(150deg, rgba(255, 255, 255, .5), rgba(214, 234, 255, .3));
  text-align: center; font-size: 14px; font-weight: 800; letter-spacing: .04em; color: var(--ink-faint);
}

/* ── 缺图时自绘的玻璃面片 ── */
.z-shard { width: 100%; height: 100%; display: block; }

/* ── 卡片上的分类小标与教程卡的行动提示 ── */
.cat-flag {
  padding: 3px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .92);
  background: linear-gradient(140deg, rgba(255, 255, 255, .8), rgba(206, 228, 255, .5));
  color: var(--azure-deep); font-size: 11px; font-weight: 900; letter-spacing: .06em;
}
.course .open-hint {
  margin-top: 10px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--azure);
  display: flex; align-items: center; gap: 8px;
}
.course .open-hint::after {
  content: ''; width: 22px; height: 1.5px; background: linear-gradient(90deg, var(--azure), transparent);
  transition: width .7s var(--e-expo);
}

@media (max-width: 768px) {
  .cat-add { margin-left: 0; }
  .learn-scroll { max-height: none; overflow: visible; padding-right: 0; }
  .add-tile { min-height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .cat-in { animation: none; }
}

/* ── 置顶角标：只显示服务端给的 pinned，前端不自己判类型 ── */
.pin-flag {
  flex: none;
  padding: 3px 11px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .96);
  background: linear-gradient(140deg, var(--sky), var(--azure) 62%, var(--azure-deep));
  color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .08em;
  box-shadow: 0 10px 22px rgba(26, 73, 196, .26), inset 0 1px 0 rgba(255, 255, 255, .5);
}
/* 普通插件卡没有 meta 行，角标浮在封面右上角 */
.c-card .z-img > .pin-flag { position: absolute; right: 10px; top: 10px; }

/* ── 卡片底部动作条：站内直接下载 / 在线观看 / 去网盘下载 并存 ──
      一条资源往往两个入口都有（网站自己那份 + 管理员自己传到夸克的那份），
      所以这里做成可以并排放的胶囊，而不是原来那一行「只能显示一个」的提示文字。 */
.cat-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.cat-act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(140deg, rgba(255, 255, 255, .76), rgba(214, 234, 255, .44));
  box-shadow: 0 10px 24px rgba(26, 73, 196, .1), inset 0 1px 0 #fff;
  color: var(--azure-deep); font-size: 12px; font-weight: 900; letter-spacing: .05em;
  text-decoration: none;
  transition: transform .35s ease, box-shadow .35s ease, background .35s ease;
}
.cat-act:hover {
  transform: translateY(-3px); background: rgba(255, 255, 255, .86);
  box-shadow: 0 16px 30px rgba(26, 73, 196, .2), inset 0 1px 0 #fff;
}
.cat-act:active { transform: translateY(-1px) scale(.985); }
.cat-act.primary {
  color: #fff; border-color: rgba(255, 255, 255, .96);
  background: linear-gradient(140deg, var(--sky), var(--azure) 58%, var(--azure-deep));
}

@media (max-width: 768px) {
  .cat-acts { gap: 6px; }
  .cat-act { padding: 6px 12px; font-size: 11px; }
}

/* ═══════════════════════════════════════════════════════════════
   Aqua Sort v2 · 前台资源栏的「排序」下拉按钮
   只服务 window.YRSort（v2）写出来的那一颗按钮＋五档菜单。
   v1 是整条五颗胶囊的横栏，右边一大片空、还跟分类条叠成两层；v2 收成
   分类条右端的一颗玻璃按钮：按钮上写当前档，点开展五档菜单，选中那档带勾。
   按钮与菜单跟分类胶囊同一套玻璃语言（浅玻璃＋选中渐变蓝），四个资源页共用。
   ═══════════════════════════════════════════════════════════════ */

/* 分类条与排序按钮同一行：分类占满剩下的宽度，排序钉在右端 */
.yr-bar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin: 0 0 26px;
}
.yr-bar > .filter-bar { flex: 1 1 auto; min-width: 0; margin-bottom: 0; }

.yr-sort { position: relative; margin-left: auto; flex: 0 0 auto; }
.yr-sort[hidden] { display: none; }

.yr-sort-btn {
  appearance: none; cursor: pointer; font: inherit;
  display: flex; align-items: center; gap: 9px;
  padding: 12px 19px; border-radius: var(--r-pill);
  border: 1px solid rgba(255, 255, 255, .9);
  background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(210, 232, 255, .5));
  box-shadow: 0 8px 20px rgba(26, 73, 196, .12), inset 0 1px 0 #fff;
  color: var(--azure-deep); font-size: 13px; font-weight: 800; letter-spacing: .06em;
  transition: transform .55s var(--e-spring), box-shadow .55s var(--e-expo), color .4s, background .5s var(--e-expo);
}
.yr-sort-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(26, 73, 196, .2), inset 0 1px 0 #fff; }
.yr-sort-btn:active { transform: translateY(-1px) scale(.98); }
.yr-sort-btn:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; }

.yr-sort-word { font-size: 11px; font-weight: 800; letter-spacing: .22em; color: var(--ink-faint); }
.yr-sort-cur { font-weight: 900; color: var(--azure-deep); }
.yr-sort-caret {
  width: 11px; height: 8px; color: var(--azure); flex: 0 0 auto;
  transition: transform .4s var(--e-expo), color .4s;
}
/* 菜单开着：按钮换成选中态的渐变蓝，箭头翻上去 */
.yr-sort[data-open="1"] .yr-sort-btn {
  color: #fff;
  background: linear-gradient(140deg, var(--sky), var(--azure) 58%, var(--azure-deep));
  border-color: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 30px rgba(26, 73, 196, .28), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.yr-sort[data-open="1"] .yr-sort-word { color: rgba(255, 255, 255, .78); }
.yr-sort[data-open="1"] .yr-sort-cur { color: #fff; }
.yr-sort[data-open="1"] .yr-sort-caret { transform: rotate(180deg); color: #fff; }

.yr-sort-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 70;
  min-width: 202px; display: flex; flex-direction: column; gap: 4px; padding: 8px;
  border-radius: 18px; border: 1px solid rgba(255, 255, 255, .88);
  background: linear-gradient(160deg, rgba(255, 255, 255, .93), rgba(226, 240, 255, .84));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 48px rgba(26, 73, 196, .22), inset 0 1px 0 #fff;
  animation: yr-sort-in .3s var(--e-expo);
}
.yr-sort-menu[hidden] { display: none; }
@keyframes yr-sort-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.yr-sort-opt {
  appearance: none; cursor: pointer; font: inherit;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 9px 13px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink-soft);
  font-size: 13px; font-weight: 800; letter-spacing: .04em; text-align: left;
  transition: background .3s, color .3s, transform .35s var(--e-expo);
}
.yr-sort-opt:hover { background: rgba(255, 255, 255, .78); color: var(--ink); transform: translateX(2px); }
.yr-sort-opt:focus-visible { outline: 2px solid var(--azure); outline-offset: 2px; }
.yr-sort-opt[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(140deg, var(--sky), var(--azure) 58%, var(--azure-deep));
  box-shadow: 0 10px 22px rgba(26, 73, 196, .28), inset 0 1px 0 rgba(255, 255, 255, .5);
}

.yr-sort-tick {
  width: 13px; height: 11px; flex: 0 0 auto; color: var(--azure);
  opacity: 0; transform: scale(.6);
  transition: opacity .3s, transform .4s var(--e-spring), color .3s;
}
.yr-sort-opt[aria-selected="true"] .yr-sort-tick { opacity: 1; transform: none; color: #fff; }

@media (max-width: 768px) {
  .yr-bar { gap: 10px; margin-bottom: 18px; }
  .yr-sort-btn { padding: 10px 15px; font-size: 12.5px; }
  .yr-sort-menu { min-width: 178px; }
}

@media (prefers-reduced-motion: reduce) {
  .yr-sort-btn, .yr-sort-caret, .yr-sort-opt, .yr-sort-tick { transition: none; }
  .yr-sort-btn:hover, .yr-sort-btn:active, .yr-sort-opt:hover { transform: none; }
  .yr-sort-menu { animation: none; }
}

/* JS 驱动时禁用 CSS transform 过渡，避免双重动画 */
/* 2026-10-24 removed: blocked hover transition */

.pill {
  transition: transform .35s ease, box-shadow .35s ease;
  will-change: transform;
}
.pill:hover {
  box-shadow: 0 16px 34px rgba(47, 108, 246, .32), inset 0 1px 0 rgba(255, 255, 255, .5);
}

/* ═══════════════════════════════════════════════════════════
   Aqua Hover v3（2026-10-24 全新重做）
   悬停：柔和上浮 8px + 阴影微增。0.4s easeOutQuad，双向一致。
   移入移出同一条 transition 定义，CSS transition 原生支持中断续接。
   不使用 will-change / JS / backdrop-filter 操作。
   ═══════════════════════════════════════════════════════════ */

.glass-card, .c-card, .course, .band, .mat-cell, .tl-item, .feat-item, .stage {
  transition: transform 0.5s cubic-bezier(.25, .8, .4, 1), box-shadow 0.5s ease;
}

.pill, .glass-btn {
  transition: transform .35s cubic-bezier(.25, .46, .45, .94),
              box-shadow .35s cubic-bezier(.25, .46, .45, .94);
}
.pill:hover { transform: translateY(-3px); }
.glass-btn:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
  .glass-card, .c-card, .course, .band, .mat-cell, .tl-item, .feat-item,
  .stage, .pill, .glass-btn {
    transition: none;
  }
}


/* ═══ NO-ENTRANCE-ANIM-v1（2026-10-25 站长要求）═══
   内容页卡片不要任何入场浮现动画：滚动到哪就静止显示在哪。
   cat-in / reveal / reveal-left / reveal-scale 一律取消位移与淡入。 */
.cat-in,
.reveal,
.reveal-left,
.reveal-scale,
.reveal.in,
.reveal-left.in,
.reveal-scale.in {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}
