@property --accent {
  syntax: '<color>';
  inherits: true;
  initial-value: #d7ff3a;
}

:root {
  --accent: #d7ff3a;
  --bg: #0b0b0c;
  --bg-2: #111113;
  --fg: #f1efe9;
  --fg-2: rgba(241, 239, 233, .62);
  --fg-3: rgba(241, 239, 233, .38);
  --line: rgba(241, 239, 233, .12);
  --ink: #0b0b0c;
  --gutter: clamp(20px, 3.4vw, 56px);
  --nav-h: 76px;
  --cols: 27.5% 23.5% 23.5% 1fr 24px;
  --c2: calc(var(--gutter) + (100vw - 2 * var(--gutter)) * .275);
  --c3: calc(var(--gutter) + (100vw - 2 * var(--gutter)) * .51);
  --c4: calc(var(--gutter) + (100vw - 2 * var(--gutter)) * .745);
  --ease: cubic-bezier(.76, 0, .24, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --font: "Manrope", "PingFang SC", "HarmonyOS Sans SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --num: "Manrope", "Helvetica Neue", Arial, var(--font);
  /* 展示字：西文和数字用几何无衬线 Manrope，中文落到苹方中粗体 */
  --serif: "Manrope", "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  --italic: "Manrope", "Helvetica Neue", Arial, sans-serif;
  transition: --accent .9s var(--ease);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--fg); }
body {
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--ink); }

@media (hover: hover) and (pointer: fine) {
  body, a, button { cursor: none; }
}

/* 流体背景画布，固定在所有内容后面 */
.fluid { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.fluid.on-top { z-index: 95; }
/* 光团自带颗粒，不再叠第二层 */
html:not(.no-fluid) .grain { display: none; }

/* 胶片颗粒，压住纯色的塑料感 */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* 导航 */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--nav-h);
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  color: #fff;
}
/* 详情页往下读时，导航下面垫一层玻璃模糊，盖住滚上来的图片和文字 */
.nav { transition: color .4s; }
.nav::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(11, 11, 12, .42);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  opacity: 0; transition: opacity .5s, background .4s;
}
.nav.glass::before { opacity: 1; }
.nav.on-light::before { background: rgba(245, 247, 247, .55); border-bottom-color: rgba(0, 0, 0, .06); }
.nav.on-light { color: #111; }
.nav.on-light .brand-dot, .nav.on-light .nav-links a::after { background: #111; }
.brand {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--num); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.brand-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #fff;
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse { 50% { transform: scale(.45); } }
.nav-links { justify-self: center; display: flex; gap: clamp(18px, 2.6vw, 44px); font-size: 14px; letter-spacing: .04em; }
.nav-links a {
  position: relative; padding: 6px 0; opacity: .72;
  transition: opacity .4s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 50%; bottom: -4px;
  width: 4px; height: 4px; border-radius: 50%; background: #fff;
  transform: translateX(-50%) scale(0); transition: transform .5s var(--ease-out);
}
.nav-links a:hover, .nav-links a.on { opacity: 1; }
.nav-links a.on::after { transform: translateX(-50%) scale(1); }
.nav-count, .nav-right {
  justify-self: end;
  font-family: var(--num); font-size: 13px; letter-spacing: .04em;
  display: flex; gap: 8px; align-items: baseline;
}
.nav-count b { font-weight: 500; display: inline-block; min-width: 2ch; }
.nav-count span { opacity: .45; }

/* 光标：一颗跟随的玻璃透镜，背景在里面折射（折射在 fluid.js 里画） */
.cursor { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.c-dot, .c-ring { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.c-dot {
  width: 4px; height: 4px; margin: -2px 0 0 -2px;
  background: #fff; mix-blend-mode: difference;
  transition: opacity .3s;
}
.c-ring {
  width: 240px; height: 240px; margin: -120px 0 0 -120px;
  display: grid; place-items: center;
}
.c-ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  border: 7px solid rgba(241, 239, 233, .6);
  transition: background .4s, border-color .4s, border-width .4s, box-shadow .4s;
}
/* 首页的大透镜：玻璃边缘带一点色散 */
.cursor.is-lens .c-ring::before {
  border: 0;
  /* 玻璃边缘：左下受光一道亮边，右上一道暗边 */
  box-shadow:
    inset 3px -3px 2px -1px rgba(255, 255, 255, .55),
    inset 8px -8px 14px -8px rgba(255, 255, 255, .28),
    inset -2px 2px 2px -1px rgba(0, 0, 0, .28),
    inset -6px 6px 12px -8px rgba(0, 0, 0, .18),
    0 0 0 1px rgba(255, 255, 255, .1),
    0 14px 40px -10px rgba(0, 0, 0, .25);
}
.cursor.is-lens .c-ring::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 34% 72%, rgba(255, 255, 255, .14), transparent 42%);
}
.c-label {
  position: relative; z-index: 1;
  font-size: 34px; font-weight: 500; letter-spacing: .04em; color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  opacity: 0; transition: opacity .3s;
  white-space: nowrap;
}
.cursor.is-link .c-ring::before { border-color: var(--fg); }
/* 停在封面、联系方式上：细圈放大，中间写白字，不再铺白色实心 */
.cursor.is-label .c-ring::before { border-width: 3px; border-color: rgba(241, 239, 233, .9); background: rgba(12, 12, 14, .32); }
.cursor.is-label .c-label { opacity: 1; }
.cursor.is-label .c-dot, .cursor.is-lens .c-dot { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* 页面切换的色块 */
.wipe {
  position: fixed; inset: 0; z-index: 95; pointer-events: none;
  background: var(--accent);
  transform: translateY(100%);
}
html.wiping .wipe { transform: none; background: var(--bg); }

/* 通用小元素 */
.wrap { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; letter-spacing: .1em; color: var(--fg-2);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--accent); }
.mini { font-size: 12px; letter-spacing: .06em; color: var(--fg-3); margin-bottom: 14px; }

.btn {
  position: relative; display: inline-flex; align-items: center; gap: 14px;
  height: 56px; padding: 0 12px 0 28px; border-radius: 56px;
  background: var(--accent); color: var(--ink);
  font-size: 15px; font-weight: 500; letter-spacing: .04em;
  overflow: hidden; isolation: isolate;
}
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn-arrow {
  position: relative; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); overflow: hidden;
}
.btn-arrow::before, .btn-arrow::after {
  content: '→'; position: absolute; inset: 0; display: grid; place-items: center;
  color: var(--accent); font-style: normal; font-size: 15px; font-weight: 400;
  transition: transform .6s var(--ease-out);
}
.btn-arrow::after { transform: translateX(-120%); }
.btn:hover .btn-arrow::before { transform: translateX(120%); }
.btn:hover .btn-arrow::after { transform: translateX(0); }

/* 拆字动画 */
.split { display: inline-block; }
.split .ch { display: inline-block; overflow: hidden; vertical-align: top; line-height: inherit; }
.split .ch > i { display: inline-block; font-style: normal; will-change: transform; }

.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 96;
  padding: 10px 22px; border-radius: 40px;
  background: var(--accent); color: var(--ink); font-size: 14px; font-weight: 500; letter-spacing: .04em;
  transform: translate(-50%, calc(100% + 60px)); transition: transform .6s var(--ease-out);
}
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 820px) {
  :root { --nav-h: 60px; }
  .nav { grid-template-columns: 1fr auto; }
  .nav-count, .nav-right { grid-column: auto; }
  .nav-links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* 按钮：平时是细线框，悬停时白色从鼠标进入的位置丝滑铺满，文字和箭头变成深色 */
.pill {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 28px; border-radius: 52px;
  background: transparent; color: var(--fg); font-size: 15px; font-weight: 500;
  box-shadow: inset 0 0 0 1px rgba(241, 239, 233, .7);
  transition: color .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.pill::before {
  content: ''; position: absolute; z-index: -1;
  left: var(--px, 50%); top: var(--py, 50%); width: 320%; aspect-ratio: 1; border-radius: 50%;
  background: var(--fg); translate: -50% -50%; scale: 0;
  transition: scale .8s cubic-bezier(.22, 1, .36, 1);
}
.pill i {
  position: relative; display: inline-block; overflow: hidden; width: 1.1em; height: 1.3em; line-height: 1.3em;
  font-style: normal; text-align: center; color: transparent;
}
.pill i::before {
  content: '→'; position: absolute; left: 0; top: 0; width: 100%;
  color: var(--pill-fg, var(--fg)); text-shadow: -1.6em 0 currentColor;
  transition: transform .7s var(--ease-out), color .5s var(--ease-out);
}
.pill:hover { color: var(--ink); --pill-fg: var(--ink); box-shadow: inset 0 0 0 1px var(--fg); }
.pill:hover::before { scale: 1; }
.pill:hover i::before { transform: translateX(1.6em); }
.cursor.is-pill .c-ring { opacity: 0; }
.c-ring { transition: opacity .3s; }
