/* ═══════════════════════════════════════════════════════════
   北暖 Norva · 个人主页  |  style.css
   深夜樱色主题 · 玻璃拟态 · 纯手写无依赖
   ═══════════════════════════════════════════════════════════ */

/* ───────── 1. 设计令牌 ───────── */
:root {
  --bg:        #0a0611;
  --bg-2:      #150b24;
  --bg-3:      #1d1030;
  --panel:     rgba(255, 255, 255, .045);
  --panel-2:   rgba(255, 255, 255, .07);
  --line:      rgba(255, 255, 255, .10);
  --line-2:    rgba(255, 255, 255, .18);
  --txt:       #f5effd;
  --dim:       #b3a2d0;
  --dim-2:     #7d6b9c;

  --pink:      #ff6fb0;
  --pink-2:    #ffa8d2;
  --purple:    #a06bff;
  --cyan:      #5fe6ff;
  --gold:      #ffd97a;

  --grad-main: linear-gradient(120deg, #ff6fb0 0%, #c46bff 45%, #5fe6ff 100%);
  --grad-soft: linear-gradient(120deg, #ffb3d9 0%, #d3a4ff 60%, #a8f0ff 100%);
  --shadow:    0 24px 60px -24px rgba(0, 0, 0, .85);
  --glow-p:    0 0 42px rgba(255, 111, 176, .38);
  --glow-c:    0 0 42px rgba(95, 230, 255, .30);

  --r:  20px;
  --r-s: 12px;
  --nav-h: 74px;
  --maxw: 1180px;

  /* 移动端关掉 backdrop-filter 后用的实心面板底色（保证观感一致） */
  --panel-flat: rgba(21, 11, 36, .90);

  --font: "Zen Maru Gothic", "Yu Gothic UI", "Microsoft YaHei UI", "Microsoft YaHei",
          system-ui, -apple-system, "Segoe UI", "PingFang SC", sans-serif;
  --mono: "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-2: cubic-bezier(.65, 0, .35, 1);
}

/* 白天模式 · 朝 */
[data-theme="day"] {
  --bg:      #fff6fa;
  --bg-2:    #ffe9f3;
  --bg-3:    #f6e6ff;
  --panel:   rgba(255, 255, 255, .62);
  --panel-2: rgba(255, 255, 255, .85);
  --line:    rgba(126, 78, 160, .16);
  --line-2:  rgba(126, 78, 160, .28);
  --txt:     #2c1a3d;
  --dim:     #6e5b8a;
  --dim-2:   #9c8cb5;
  --pink:    #e94f96;
  --pink-2:  #ff9ecb;
  --purple:  #8b4dfa;
  --cyan:    #12b6d8;
  --gold:    #d99a1f;
  --shadow:  0 24px 60px -30px rgba(120, 60, 140, .45);
  --glow-p:  0 0 36px rgba(233, 79, 150, .22);
  --glow-c:  0 0 36px rgba(18, 182, 216, .18);
  --panel-flat: rgba(255, 255, 255, .90);
}

/* ───────── 2. 基础 ───────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* 用 clip 而不是 hidden：clip 不创建滚动容器，position:sticky 才不会失效 */
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--txt);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: clip;
  transition: background .6s var(--ease), color .6s var(--ease);
  /* 触屏点按不要那层灰色高亮 */
  -webkit-tap-highlight-color: transparent;
}

body.is-locked { overflow: hidden; }

/* 全局背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 44% at 78% 6%,  rgba(160, 107, 255, .22), transparent 62%),
    radial-gradient(48% 40% at 12% 22%, rgba(255, 111, 176, .20), transparent 60%),
    radial-gradient(52% 46% at 50% 108%, rgba(95, 230, 255, .14), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 52%, var(--bg) 100%);
  transition: opacity .6s var(--ease);
}

/* 细颗粒噪点，避免大面积渐变出现色带 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/></filter><rect width='140' height='140' filter='url(%23n)'/></svg>");
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* 注意：这里不写 cursor: pointer —— 全站光标形状统一由第 4 节接管 */
button { font: inherit; color: inherit; border: 0; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

::selection { background: var(--pink); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  border-radius: 99px;
  border: 3px solid var(--bg);
  background: linear-gradient(var(--pink), var(--purple));
}

.grad {
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h1, h2, h3 { line-height: 1.3; text-wrap: balance; }
code {
  font-family: var(--mono);
  font-size: .88em;
  padding: .1em .42em;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--pink-2);
}

/* ───────── 3. 开场加载 ───────── */
.boot {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: radial-gradient(60% 60% at 50% 40%, #1a0f2c, #07040d 70%);
  transition: opacity .7s var(--ease), visibility .7s;
}
.boot.is-off { opacity: 0; visibility: hidden; }

.boot__in { width: min(340px, 78vw); text-align: center; }

.boot__sakura {
  font-size: 62px;
  font-weight: 700;
  line-height: 1;
  background: var(--grad-main);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: petal-spin 2.6s var(--ease) infinite;
}

.boot__title {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: .42em;
  color: #cdbce6;
  text-indent: .42em;
}

.boot__bar {
  margin: 26px 0 10px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.boot__bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-main);
  box-shadow: 0 0 16px var(--pink);
  transition: width .22s linear;
}

.boot__meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: #8d7cae;
}

.boot__hint {
  margin-top: 8px;
  font-size: 11.5px;
  color: #6f5f92;
  min-height: 1.4em;
}

@keyframes petal-spin {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%      { transform: rotate(8deg) scale(1.08); }
}

/* ───────── 4. 光标 ───────── */

/* 关掉所有「特殊鼠标」形状：
   文本上的工字形（I 形）光标、链接与按钮上的小手、输入框里的 I 形……一律不出现，
   系统指针始终是普通箭头。
   （作者样式天然优先于浏览器默认样式，所以这里不需要 !important 就能压住
     UA 样式表给 input/textarea 的 cursor: auto 和给链接的 cursor: pointer） */
body, body * { cursor: default; }

.cursor, .cursor-dot { display: none; }

@media (hover: hover) and (pointer: fine) {
  /* 自定义光圈启用时：原生指针在整站（含输入框）全部隐藏，只留光圈 */
  body.is-cursorless,
  body.is-cursorless * { cursor: none; }

  .cursor {
    display: block;
    position: fixed;
    z-index: 900;
    top: 0; left: 0;
    width: 34px; height: 34px;
    margin: -17px 0 0 -17px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 22px rgba(255, 111, 176, .5), inset 0 0 12px rgba(255, 111, 176, .18);
    transition: width .3s var(--ease), height .3s var(--ease),
                margin .3s var(--ease), background .3s var(--ease),
                border-color .3s var(--ease);
  }
  .cursor.is-hot {
    width: 58px; height: 58px; margin: -29px 0 0 -29px;
    background: rgba(255, 111, 176, .12);
    border-color: var(--cyan);
    box-shadow: 0 0 30px rgba(95, 230, 255, .55);
  }
  .cursor-dot {
    display: block;
    position: fixed;
    z-index: 901;
    top: 0; left: 0;
    width: 5px; height: 5px;
    margin: -2.5px 0 0 -2.5px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
    pointer-events: none;
  }
}

/* ───────── 4b. 昼夜切换：从按钮扩散的圆形揭示 ───────── */

/* 关掉 View Transition 默认的整页淡入淡出，改由 js 用 clip-path 做圆形铺开。
   旧页面留在下层，新页面盖在上面，圆心从主题按钮的位置开始放大。 */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* 快照期间临时冻结全站过渡：
   body / .card / .work 这些都有 .45~.6s 的颜色过渡，不冻的话新快照抓到的是
   过渡的「起始状态」——也就是旧配色，圆铺开时看到的还是旧主题。
   这个类只在切换的一瞬间存在，切换结束立刻移除。 */
html.is-vt *,
html.is-vt *::before,
html.is-vt *::after {
  transition: none !important;
}

/* ───────── 5. 顶部滚动进度 ───────── */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 300;
  background: transparent;
}
.progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad-main);
  box-shadow: 0 0 12px var(--pink);
}

/* ───────── 6. 导航 ───────── */
.nav {
  position: fixed;
  inset: 2px 0 auto 0;
  /* 刘海屏：顶栏整体下移一个安全区高度 */
  top: calc(2px + env(safe-area-inset-top, 0px));
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(16px, 4vw, 44px);
  transition: border-color .45s var(--ease), height .45s var(--ease);
  border-bottom: 1px solid transparent;
}

/* 毛玻璃必须放在伪元素上：
   .nav 自身若带 backdrop-filter，会成为 fixed 子元素（移动端全屏菜单）的包含块，
   导致菜单的 inset:0 相对 62px 高的顶栏计算，整块被压扁成一条。 */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  transition: opacity .45s var(--ease);
}

.nav.is-stuck { height: 62px; border-bottom-color: var(--line); }
.nav.is-stuck::before { opacity: 1; }

/* 品牌与工具按钮要浮在移动端菜单之上 */
.brand, .nav__tools { position: relative; z-index: 2; }

.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand__mark {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-main);
  box-shadow: var(--glow-p);
  transition: transform .5s var(--ease);
}
.brand__mark svg { width: 22px; height: 22px; fill: #fff; }
.brand:hover .brand__mark { transform: rotate(-12deg) scale(1.08); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b { font-size: 15px; letter-spacing: .06em; }
.brand__txt em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  letter-spacing: .28em;
  color: var(--dim-2);
}

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative;
  padding: 9px 14px;
  border-radius: 99px;
  font-size: 13.5px;
  color: var(--dim);
  transition: color .3s, background .3s;
}
.nav__links a i {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  margin-right: 5px;
  opacity: .55;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 3px;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--grad-main);
  transform: translateX(-50%);
  transition: width .4s var(--ease);
}
.nav__links a:hover { color: var(--txt); background: var(--panel); }
.nav__links a:hover::after,
.nav__links a.is-on::after { width: 22px; }
.nav__links a.is-on { color: var(--txt); }

.nav__tools { display: flex; align-items: center; gap: 8px; }

.tool {
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s, background .35s;
}
.tool:hover {
  transform: translateY(-2px);
  border-color: var(--pink);
  box-shadow: var(--glow-p);
  background: var(--panel-2);
}
.tool svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.tool__ico { font-size: 16px; line-height: 1; }

.tool__waves { display: none; gap: 2.5px; align-items: flex-end; height: 16px; }
.tool__waves i {
  width: 3px; height: 100%;
  border-radius: 2px;
  background: var(--grad-main);
  transform-origin: bottom;
  transform: scaleY(.3);
}
#bgmBtn.is-on {
  border-color: var(--pink);
  box-shadow: var(--glow-p);
  background: var(--panel-2);
}
#bgmBtn.is-on .tool__note { display: none; }
#bgmBtn.is-on .tool__waves { display: flex; }
#bgmBtn.is-on .tool__waves i { animation: eq .9s ease-in-out infinite; }
#bgmBtn.is-on .tool__waves i:nth-child(2) { animation-delay: .18s; }
#bgmBtn.is-on .tool__waves i:nth-child(3) { animation-delay: .36s; }

@keyframes eq {
  0%, 100% { transform: scaleY(.25); }
  50%      { transform: scaleY(1); }
}

.burger { display: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); }
.burger i {
  display: block;
  width: 17px; height: 1.8px;
  margin: 4px auto;
  border-radius: 2px;
  background: var(--txt);
  transition: transform .35s var(--ease), opacity .3s;
}
.burger.is-on i:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger.is-on i:nth-child(2) { opacity: 0; }
.burger.is-on i:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ───────── 7. 首屏 ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 56px) clamp(20px, 6vw, 72px) 100px;
  padding-top: calc(var(--nav-h) + 56px + env(safe-area-inset-top, 0px));
  overflow: hidden;
  isolation: isolate;
}

/* 全屏背景图：做得比容器略大，方便做视差位移 */
.hero__bg {
  position: absolute;
  inset: -9% 0;
  z-index: 0;
  background: url("../img/hero-night.jpg") center 42% / cover no-repeat;
  will-change: transform;
}

/* 压暗 + 左侧加重的遮罩，保证任何图上的文字都可读 */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(7, 4, 14, .95) 0%, rgba(7, 4, 14, .85) 30%,
                    rgba(7, 4, 14, .44) 58%, rgba(7, 4, 14, .70) 100%),
    linear-gradient(180deg, rgba(7, 4, 14, .92) 0%, rgba(7, 4, 14, 0) 28%,
                    rgba(7, 4, 14, 0) 56%, var(--bg) 99%);
}
[data-theme="day"] .hero__bg { background-image: url("../img/hero-day.jpg"); }
[data-theme="day"] .hero__scrim {
  background:
    linear-gradient(100deg, rgba(255, 250, 253, .96) 0%, rgba(255, 250, 253, .87) 32%,
                    rgba(255, 250, 253, .40) 60%, rgba(255, 250, 253, .68) 100%),
    linear-gradient(180deg, rgba(255, 250, 253, .92) 0%, rgba(255, 250, 253, 0) 30%,
                    rgba(255, 250, 253, 0) 58%, var(--bg) 99%);
}

.hero__fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }

.hero__wrap {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.hero__text { max-width: 640px; }

/* 竖排日文，纯装饰 */
.hero__vertical {
  writing-mode: vertical-rl;
  justify-self: end;
  margin: 0;
  padding-right: 15px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  font-size: clamp(12px, 1.4vw, 16px);
  letter-spacing: .36em;
  color: rgba(255, 255, 255, .45);
  text-shadow: 0 2px 16px rgba(0, 0, 0, .85);
  user-select: none;
}
[data-theme="day"] .hero__vertical {
  color: rgba(58, 30, 74, .5);
  text-shadow: 0 2px 12px rgba(255, 255, 255, .95);
  border-right-color: rgba(120, 80, 150, .28);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel);
  backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--dim);
}
.kicker__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 0 rgba(255, 111, 176, .7);
  animation: ping 2.2s infinite;
}
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(255, 111, 176, .7); }
  70%  { box-shadow: 0 0 0 11px rgba(255, 111, 176, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 111, 176, 0); }
}

.hero__h1 {
  margin: 22px 0 0;
  font-size: clamp(2.3rem, 6.4vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.16;
}
.hero__h1 .grad {
  position: relative;
  filter: drop-shadow(0 0 26px rgba(255, 111, 176, .42));
}
.hero__wave {
  display: inline-block;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: bounce-w 1.9s var(--ease) infinite;
}
@keyframes bounce-w {
  0%, 100% { transform: translateY(0) rotate(0); }
  40%      { transform: translateY(-9px) rotate(6deg); }
  60%      { transform: translateY(-4px) rotate(-3deg); }
}

.hero__type {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(13px, 2.5vw, 16.5px);
  color: var(--cyan);
  letter-spacing: .04em;
  min-height: 1.8em;
}
.hero__typePre { color: var(--pink); opacity: .8; }
.caret {
  display: inline-block;
  width: 9px; height: 1.05em;
  margin-left: 3px;
  vertical-align: -.16em;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero__desc {
  margin-top: 18px;
  max-width: 46ch;
  font-size: clamp(13.5px, 2.1vw, 15.5px);
  color: var(--dim);
}
.hero__desc b { color: var(--txt); font-weight: 700; }

.hero__cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 99px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: .03em;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--main {
  color: #fff;
  background: var(--grad-main);
  background-size: 200% 100%;
  box-shadow: 0 14px 34px -14px rgba(255, 111, 176, .8);
}
.btn--main::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-22deg);
  transition: left .7s var(--ease);
}
.btn--main:hover::after { left: 130%; }
.btn--ghost {
  color: var(--txt);
  border: 1px solid var(--line-2);
  background: var(--panel);
  backdrop-filter: blur(12px);
}
.btn:hover { transform: translateY(-3px); }
.btn--ghost:hover { border-color: var(--cyan); box-shadow: var(--glow-c); }
.btn--block { width: 100%; justify-content: center; }

.hero__tags { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 9px; }
.hero__tags li {
  padding: 5px 13px;
  border-radius: 99px;
  border: 1px dashed var(--line-2);
  font-size: 11.5px;
  color: var(--dim);
  transition: color .3s, border-color .3s, transform .3s var(--ease);
}
.hero__tags li:hover { color: var(--pink-2); border-color: var(--pink); transform: translateY(-2px); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  z-index: 3;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .34em;
  color: var(--dim-2);
  text-indent: .34em;
}
.hero__scroll i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(var(--pink), transparent);
  animation: scroll-line 2.1s ease-in-out infinite;
}
@keyframes scroll-line {
  0%   { transform: scaleY(.2); transform-origin: top; opacity: .3; }
  50%  { transform: scaleY(1);  transform-origin: top; opacity: 1; }
  100% { transform: scaleY(.2); transform-origin: bottom; opacity: .3; }
}

/* ───────── 8. 区块通用 ───────── */
.sec {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(74px, 11vw, 132px) clamp(18px, 5vw, 44px);
  scroll-margin-top: 70px;
}

.sec__head { margin-bottom: clamp(34px, 5vw, 56px); }
.sec__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .32em;
  color: var(--pink);
  margin-bottom: 10px;
}
.sec__title {
  font-size: clamp(1.9rem, 5vw, 3.1rem);
  font-weight: 800;
  letter-spacing: -.01em;
}
.sec__sub { margin-top: 10px; color: var(--dim); font-size: 14px; }

.sec__head::after {
  content: "";
  display: block;
  width: 74px; height: 3px;
  margin-top: 20px;
  border-radius: 3px;
  background: var(--grad-main);
  box-shadow: 0 0 16px rgba(255, 111, 176, .5);
}

.card {
  position: relative;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--shadow);
  transition: border-color .45s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card:hover { border-color: var(--line-2); }
.card__t {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 16px;
  padding-left: 13px;
  position: relative;
}
.card__t::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 4px; height: 1.05em;
  border-radius: 3px;
  background: var(--grad-main);
}

/* ───────── 9. 关于 ───────── */
.about {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

.about__card { text-align: center; position: sticky; top: 92px; }
.about__ava {
  width: 116px; height: 116px;
  margin: 0 auto 16px;
  border-radius: 50%;
  padding: 4px;
  background: var(--grad-main);
  box-shadow: var(--glow-p);
}
.about__ava img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 52% 16%;
  background: #1a0f2c;
}
.about__name { font-size: 22px; font-weight: 800; letter-spacing: .04em; }
.about__en {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .34em;
  color: var(--dim-2);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.about__info { text-align: left; border-top: 1px solid var(--line); padding-top: 16px; }
.about__info li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.about__info li:last-child { border-bottom: 0; }
.about__info span { color: var(--dim-2); flex: none; }
.about__info b { font-weight: 600; text-align: right; }

.about__status {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 99px;
  border: 1px solid rgba(120, 255, 190, .3);
  background: rgba(120, 255, 190, .08);
  font-size: 11.5px;
  color: var(--txt);
}
.about__status b { color: #7dffc0; }
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #7dffc0;
  box-shadow: 0 0 10px #7dffc0;
  animation: blink-dot 1.6s ease-in-out infinite;
}
@keyframes blink-dot { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.about__body { display: grid; gap: clamp(16px, 2.2vw, 24px); }
.prose p { color: var(--dim); font-size: 14.5px; margin-bottom: 14px; }
.prose p:last-of-type { margin-bottom: 0; }
.prose b { color: var(--txt); }
.hl {
  color: var(--gold);
  border-bottom: 1px dashed var(--gold);
  padding-bottom: 1px;
}

.about__stats {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-size: clamp(20px, 3.4vw, 29px);
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.stat span { font-size: 11.5px; color: var(--dim-2); }

.now { display: grid; gap: 4px; }
.now li {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 11px;
  border-radius: var(--r-s);
  transition: background .35s;
}
.now li:hover { background: var(--panel-2); }
.now__ico {
  width: 36px; height: 36px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 16px;
}
.now b { display: block; font-size: 11.5px; color: var(--pink-2); letter-spacing: .06em; }
.now i { font-style: normal; font-size: 13.5px; color: var(--dim); }

/* ───────── 10. 技能面板 ───────── */
.stats-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}
.stats-side { display: grid; gap: clamp(16px, 2.2vw, 24px); }

.panel { overflow: hidden; }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 111, 176, .10), transparent 42%, rgba(95, 230, 255, .08));
}
.panel__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.panel__lv {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--dim-2);
}
.panel__lv b {
  font-size: 22px;
  background: var(--grad-main);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.panel__name { font-size: 17px; font-weight: 700; letter-spacing: .05em; }
.panel__cls { margin-left: auto; font-size: 11.5px; color: var(--dim-2); }

.panel__exp {
  position: relative;
  margin: 16px 0 22px;
  height: 22px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  overflow: hidden;
}
.panel__exp i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, rgba(255, 111, 176, .55), rgba(160, 107, 255, .55));
  transition: width 1.6s var(--ease);
}
.panel__exp.is-on i { width: 82%; }
.panel__exp span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--txt);
  text-shadow: 0 1px 6px rgba(0, 0, 0, .8);
}

.bars { display: grid; gap: 13px; }
.bar {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.bar__n { color: var(--dim); }
.bar__track {
  position: relative;
  height: 9px;
  border-radius: 99px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar__track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: 99px;
  background: var(--grad-main);
  box-shadow: 0 0 14px rgba(255, 111, 176, .6);
  transition: width 1.3s var(--ease);
}
.bar.is-on .bar__track i { width: calc(var(--lv) * 1%); }
.bar__v {
  font-family: var(--mono);
  font-size: 12.5px;
  text-align: right;
  color: var(--pink-2);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 6px 13px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dim);
  transition: transform .3s var(--ease), color .3s, border-color .3s, box-shadow .3s;
}
.chips span:hover {
  transform: translateY(-3px);
  color: var(--txt);
  border-color: var(--pink);
  box-shadow: var(--glow-p);
}

.passive { display: grid; gap: 10px; }
.passive li {
  padding: 11px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-left: 3px solid var(--purple);
  transition: transform .35s var(--ease), border-left-color .35s;
}
.passive li:hover { transform: translateX(5px); border-left-color: var(--cyan); }
.passive b { display: block; font-size: 13.5px; }
.passive span { font-size: 12px; color: var(--dim-2); }

/* ───────── 11. 作品 ───────── */
.works {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(16px, 2.4vw, 26px);
}

.work {
  position: relative;
  display: block;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(14px);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .55s var(--ease), border-color .45s, box-shadow .55s var(--ease);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(140deg, rgba(255, 111, 176, .18), transparent 46%, rgba(95, 230, 255, .14));
  transition: opacity .5s var(--ease);
}
.work:hover { transform: translateY(-9px); border-color: var(--pink); box-shadow: 0 30px 60px -26px rgba(255, 111, 176, .6); }
.work:hover::after { opacity: 1; }

.work__cover {
  position: relative;
  height: 190px;
  overflow: hidden;
  background: #0d0718;
}
.work__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.9) saturate(1);
  transition: transform .85s var(--ease), filter .6s var(--ease);
}
.work:hover .work__cover img { transform: scale(1.07); filter: brightness(1.02) saturate(1.12); }
/* 上下压暗，让图片与卡片文字自然衔接 */
.work__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 17, .46) 0%, transparent 32%, rgba(10, 6, 17, .9) 100%);
}

.work__body { padding: 18px 20px 20px; }
.work__top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.work__top h3 { font-size: 16px; font-weight: 700; }
.work__yr {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim-2);
  flex: none;
}
.work__body p { font-size: 13px; color: var(--dim); line-height: 1.7; }
.work__tags { margin-top: 13px; display: flex; flex-wrap: wrap; gap: 7px; }
.work__tags li {
  padding: 3.5px 10px;
  border-radius: 99px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--dim);
}
.work__go {
  position: absolute;
  right: 18px; bottom: 16px;
  font-size: 11.5px;
  color: var(--pink-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.work:hover .work__go { opacity: 1; transform: translateX(0); }

.works__note {
  margin-top: 24px;
  font-size: 12.5px;
  color: var(--dim-2);
  text-align: center;
}

/* ───────── 12. 轨迹 ───────── */
.tl { position: relative; padding-left: 30px; }
.tl::before {
  content: "";
  position: absolute;
  left: 6px; top: 8px; bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--pink), var(--purple) 52%, transparent);
  opacity: .55;
}

.tl__i { position: relative; padding-bottom: 26px; }
.tl__i:last-child { padding-bottom: 0; }
.tl__i::before {
  content: "";
  position: absolute;
  left: -30px; top: 10px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--pink);
  box-shadow: 0 0 0 4px rgba(255, 111, 176, .12), 0 0 16px var(--pink);
  transition: transform .5s var(--ease), background .5s;
}
.tl__i:hover::before { transform: scale(1.3); background: var(--pink); }

.tl__yr {
  display: inline-block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  color: var(--cyan);
}
.tl__card {
  padding: 18px 22px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .5s;
}
.tl__card:hover { transform: translateX(8px); border-color: var(--line-2); box-shadow: var(--shadow); }
.tl__card h3 { font-size: 15.5px; margin-bottom: 6px; }
.tl__card p { font-size: 13.5px; color: var(--dim); }

/* ───────── 13. 联系 ───────── */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 30px);
  align-items: start;
}

.contact__p { font-size: 13.5px; color: var(--dim); margin-bottom: 18px; }

.mailto {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 13px 22px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  font-family: var(--mono);
  font-size: 13.5px;
  transition: transform .4s var(--ease), border-color .35s, box-shadow .4s;
}
.mailto svg { width: 18px; height: 18px; fill: none; stroke: var(--pink); stroke-width: 1.7; stroke-linecap: round; }
.mailto:hover { transform: translateY(-3px); border-color: var(--pink); box-shadow: var(--glow-p); }

.socials { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.socials a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 15px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform .4s var(--ease), border-color .35s, background .35s;
}
.socials a:hover { transform: translateY(-3px); border-color: var(--cyan); }
.socials b { font-size: 13px; }
.socials i { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--dim-2); }

.guest__form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; color: var(--dim-2); letter-spacing: .06em; }
.field input, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--txt);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--dim-2); }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 111, 176, .16);
}
.guest__tip { font-size: 11.5px; color: var(--dim-2); text-align: center; }

.guest__list { margin-top: 20px; display: grid; gap: 10px; max-height: 268px; overflow-y: auto; padding-right: 4px; }
.guest__list:empty::after {
  content: "还没有人留言，来当第一个吧 ✦";
  display: block;
  padding: 22px 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--dim-2);
}
.gm {
  padding: 11px 14px;
  border-radius: var(--r-s);
  border: 1px solid var(--line);
  background: var(--panel-2);
  border-left: 3px solid var(--pink);
  animation: gm-in .55s var(--ease) both;
}
@keyframes gm-in {
  from { opacity: 0; transform: translateY(-9px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.gm__h { display: flex; align-items: baseline; gap: 9px; margin-bottom: 4px; }
.gm__h b { font-size: 13px; }
.gm__h time { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--dim-2); }
.gm p { font-size: 13px; color: var(--dim); white-space: pre-wrap; word-break: break-word; }

/* ───────── 14. 页脚 / 回顶 / 提示 ───────── */
.foot {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 60px clamp(18px, 5vw, 44px) 54px;
  text-align: center;
  border-top: 1px solid var(--line);
}
.foot__mascot { width: 76px; margin: 0 auto 14px; color: var(--pink); opacity: .8; }
.foot__l { font-size: 13.5px; color: var(--dim); }
.foot__l span { color: var(--txt); }
.foot__s { margin-top: 7px; font-size: 11.5px; color: var(--dim-2); font-family: var(--mono); letter-spacing: .04em; }
.foot__s--dim { opacity: .7; margin-top: 10px; }

.totop {
  position: fixed;
  right: 22px; bottom: 22px;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  z-index: 150;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(18px) scale(.8);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease), border-color .35s, box-shadow .4s;
}
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--pink); box-shadow: var(--glow-p); }
.totop svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.toast {
  position: fixed;
  left: 50%; bottom: 34px;
  /* 带 env() 的那条放在后面：不认识 env() 的老浏览器会忽略它，沿用上面的兜底值 */
  bottom: calc(34px + env(safe-area-inset-bottom, 0px));
  z-index: 800;
  padding: 12px 24px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  font-size: 13px;
  white-space: nowrap;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, 22px) scale(.94);
  pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* 顶部居中提示条：从屏幕正上方滑下来（禁用右键等） */
.notice {
  position: fixed;
  left: 50%;
  top: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 950;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
  padding: 11px 22px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  background: color-mix(in srgb, var(--bg-2) 88%, transparent);
  backdrop-filter: blur(16px) saturate(160%);
  box-shadow: var(--shadow);
  font-size: 13px;
  letter-spacing: .03em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translate(-50%, -22px) scale(.94);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.notice.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.notice::before {
  content: "";
  flex: none;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 10px var(--pink);
}

/* ───────── 14b. 网易云音乐播放器（自绘） ───────── */
.player {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  top: calc(var(--nav-h) + 10px + env(safe-area-inset-top, 0px));
  right: clamp(10px, 4vw, 44px);
  z-index: 260;
  width: 322px;
  max-width: calc(100vw - 20px);
  padding: 12px 14px 11px;
  border-radius: var(--r-s);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  background: color-mix(in srgb, var(--bg-2) 94%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px) scale(.96);
  transform-origin: top right;
  pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
}
.player.is-on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }

.player__head { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; font-size: 12px; }
.player__head b { font-weight: 700; letter-spacing: .05em; }
.player__hint { margin-left: auto; font-size: 11px; color: var(--dim-2); }
.player__dot {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: 0 0 10px var(--pink);
}
/* 只有真的在放的时候才闪 */
.player:not(.is-paused) .player__dot { animation: blink-dot 1.6s ease-in-out infinite; }

.player__row { display: flex; align-items: center; gap: 11px; }

/* 封面沿用「关于」头像那套渐变圆环，方形封面也能圆得很自然 */
.player__cover {
  flex: none;
  width: 52px; height: 52px;
  padding: 2px;
  border-radius: 50%;
  background: var(--grad-main);
  box-shadow: var(--glow-p);
}
.player__cover img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-3);
}
/* 封面加载失败就只留一个渐变圆盘 */
.player__cover.is-empty img { display: none; }

/* min-width:0 是关键：flex 子项默认 min-width:auto，不加这行省略号不会生效 */
.player__meta { min-width: 0; margin-right: auto; display: flex; flex-direction: column; gap: 3px; }
.player__meta b {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player__meta i {
  font-style: normal;
  font-size: 11px;
  color: var(--dim-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player__play {
  flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-main);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(255, 111, 176, .95);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.player__play:hover { transform: scale(1.08); box-shadow: var(--glow-p); }
.player__play svg { width: 17px; height: 17px; fill: currentColor; }
.player__ico--play { display: none; }
.player.is-paused .player__ico--play { display: block; }
.player.is-paused .player__ico--pause { display: none; }

/* 进度条：上下留内边距当点击热区，比 4px 的细条好点得多 */
.player__bar { margin: 11px 0 4px; padding: 7px 0; }
.player__track {
  display: block;
  height: 4px;
  border-radius: 99px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  overflow: hidden;
}
#pFill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 99px;
  background: var(--grad-main);
}
.player__bar:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 1px; border-radius: 8px; }

.player__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim-2);
}
.player__link { transition: color .3s; }
.player__link:hover { color: var(--pink-2); }

/* ───────── 15. 滚动入场 ───────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: calc(var(--d, 0) * 95ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* 错峰延迟：元素上的 data-d 映射到 --d */
.reveal[data-d="1"] { --d: 1; }
.reveal[data-d="2"] { --d: 2; }
.reveal[data-d="3"] { --d: 3; }
.reveal[data-d="4"] { --d: 4; }
.reveal[data-d="5"] { --d: 5; }

/* ───────── 15b. 图片走廊 / 图片横幅 / 区块背景图 ───────── */

/* 自动横向滚动的图片走廊 */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 62s linear infinite;
}
/* 悬停暂停只在真有指针的设备上生效：
   触屏点按后 :hover 会一直「粘」着，走廊就再也不动了。 */
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
/* 滚出视口就暂停，别让这个 62s 的无限动画在屏幕外空转（手机上尤其费电） */
.marquee.is-idle .marquee__track { animation-play-state: paused; }
/* 间距用 margin 而不是 flex gap：这样两半宽度严格相等，位移 -50% 才能无缝衔接 */
.marquee img {
  width: clamp(180px, 23vw, 310px);
  height: clamp(112px, 15vw, 188px);
  margin-right: 10px;
  object-fit: cover;
  border-radius: 10px;
  filter: saturate(.88) brightness(.78);
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.marquee img:hover { filter: saturate(1.1) brightness(1.02); transform: scale(1.03); }

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* 全宽图片横幅 + 台词 */
.band {
  position: relative;
  margin: clamp(28px, 6vw, 68px) 0;
  min-height: clamp(300px, 40vw, 440px);
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.band__img {
  position: absolute;
  inset: -7% 0;
  background-position: center;
  background-size: cover;
  will-change: transform;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(10, 6, 17, .38) 34%,
                    rgba(10, 6, 17, .52) 66%, var(--bg) 100%),
    radial-gradient(70% 92% at 50% 50%, transparent, rgba(8, 4, 16, .5));
}
[data-theme="day"] .band::after {
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(255, 246, 250, .38) 34%,
                    rgba(255, 246, 250, .52) 66%, var(--bg) 100%),
    radial-gradient(70% 92% at 50% 50%, transparent, rgba(255, 238, 247, .55));
}
.band__cap { position: relative; z-index: 2; padding: 0 24px; text-align: center; }
.band__jp {
  font-size: clamp(1.05rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: .06em;
  text-shadow: 0 4px 28px rgba(0, 0, 0, .92);
}
.band__cn {
  margin-top: 12px;
  font-size: clamp(11.5px, 1.5vw, 14px);
  color: rgba(255, 255, 255, .74);
  letter-spacing: .1em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .92);
}
[data-theme="day"] .band__jp { text-shadow: 0 4px 28px rgba(255, 255, 255, .98); }
[data-theme="day"] .band__cn {
  color: rgba(58, 30, 74, .8);
  text-shadow: 0 2px 14px rgba(255, 255, 255, .95);
}

/* 区块背景图：全宽出血 + 边缘淡出 */
.sec--img::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0; bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: .16;
  mask-image: radial-gradient(88% 78% at 50% 50%, #000 6%, transparent 84%);
  -webkit-mask-image: radial-gradient(88% 78% at 50% 50%, #000 6%, transparent 84%);
}
.sec--img-1::before { background-image: url("../img/bg-clouds.jpg"); }
.sec--img-2::before { background-image: url("../img/bg-valley.jpg"); }
[data-theme="day"] .sec--img::before { opacity: .2; }

/* ───────── 16. 响应式 ───────── */
@media (max-width: 980px) {
  .hero__wrap { grid-template-columns: 1fr; }
  .hero__text { max-width: none; }
  .hero__vertical { display: none; }
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; }
  .stats-panel, .contact { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav__links {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: calc(env(safe-area-inset-top, 0px)) 0 calc(env(safe-area-inset-bottom, 0px));
    background: var(--bg);
    /* 全屏菜单不再用 backdrop-filter（整屏实时模糊最费 GPU） */
    background: color-mix(in srgb, var(--bg) 97%, transparent);
    opacity: 0;
    /* visibility 一起切：光靠 pointer-events 的话，键盘 Tab 还能聚焦到隐藏的链接 */
    visibility: hidden;
    pointer-events: none;
    transition: opacity .45s var(--ease), visibility .45s;
  }
  .nav__links.is-on { opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { font-size: 19px; padding: 12px 26px; }
  .nav__links a i { font-size: 11px; }
  .burger { display: block; }
  .about__stats { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .socials { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 92px minmax(0, 1fr) 26px; gap: 9px; font-size: 12.5px; }
  .tl { padding-left: 26px; }
  .tl__i::before { left: -26px; }
  .work__cover { height: 142px; }
}

/* 移动端性能降级：手机 GPU 顶不住「大面积实时模糊 + 全屏噪点」，
   换成同色系的实心面板，观感几乎不变但滚动明显更顺。 */
@media (max-width: 760px) {
  body::after { display: none; }             /* 全屏噪点层 */
  .nav::before {
    backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
  }
  .card, .work, .tl__card { backdrop-filter: none; background: var(--panel-flat); }
  .work__cover { background: var(--bg-2); }
  .totop { backdrop-filter: none; background: var(--panel-flat); }
  .player { backdrop-filter: none; background: var(--panel-flat); }
}

@media (max-width: 560px) {
  .hero { padding: calc(var(--nav-h) + 28px) 20px 86px; }
  .hero__type { font-size: 12.5px; }
  /* 窄屏文字占满宽度，遮罩改成整体压暗 */
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(7, 4, 14, .90) 0%, rgba(7, 4, 14, .72) 42%,
                      rgba(7, 4, 14, .82) 72%, var(--bg) 99%);
  }
  [data-theme="day"] .hero__scrim {
    background:
      linear-gradient(180deg, rgba(255, 250, 253, .92) 0%, rgba(255, 250, 253, .74) 42%,
                      rgba(255, 250, 253, .84) 72%, var(--bg) 99%);
  }
  .band { min-height: 260px; }
}

@media (max-width: 420px) {
  .brand__txt em { display: none; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .kicker { font-size: 9.5px; letter-spacing: .12em; }
}

/* ───────── 17. 无障碍 / 减弱动效 ───────── */
:focus-visible { outline: 2px dashed var(--cyan); outline-offset: 3px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .nav, .totop, .notice, .player, .cursor, .cursor-dot, .progress, .hero__fx, .marquee { display: none !important; }
  body::before, body::after { display: none; }
  body { background: #fff; color: #000; }
}
