/* ============================================================
   凝聚 · liquid glass (light / pearl)
   玻璃 = 折射 + 散射 + 高光 + 色散的边 + 颗粒
   亮场里没有暗色可借，于是厚度改由「光」和「影」两层夹出来。
   ============================================================ */

@property --rim-a  { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --prism-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #edf0f7;
  --ink: #10141c;
  --ink-2: #333c4a;
  --muted: #454d5b;
  --hair: rgba(16, 20, 28, .10);
  --hair-soft: rgba(16, 20, 28, .06);

  --iris: #3b4fe3;
  --cyan: #0f9bb0;
  --magenta: #c64c9b;
  --amber: #d9862c;

  --font-display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --w: min(1180px, 90vw);
  --radius: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  /* 装饰光场故意伸出视口，横向裁掉：否则手机上会出现横向滚动条 */
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(59, 79, 227, .16); color: #0b0f16; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
ul, ol, dl, dd, dt { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }

.mono { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .16em; }
.svgdefs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid rgba(59, 79, 227, .6); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 10px 16px; border-radius: 10px;
  background: var(--ink); color: #fff;
  font-family: var(--font-mono); font-size: 12px;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus-visible { transform: none; }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 70; pointer-events: none; }
.progress i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--iris), var(--cyan) 60%, var(--magenta));
  opacity: .8;
}

/* ---------- 背景：珍珠纸 + 棱彩色场 ---------- */
.fluid { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

.blob {
  position: absolute; border-radius: 50%;
  filter: blur(92px);
  /* 不用 multiply：会把底色压到 0.5 亮度，正文灰就废了 */
  will-change: transform;
}
.b1 { width: 64vw; height: 64vw; left: -16vw; top: -20vw; background: radial-gradient(circle, rgba(126,186,255,.24), rgba(126,186,255,0) 64%); animation: drift1 38s var(--ease) infinite alternate; }
.b2 { width: 54vw; height: 54vw; right: -14vw; top: 4vh; background: radial-gradient(circle, rgba(178,150,255,.22), rgba(178,150,255,0) 64%); animation: drift2 46s var(--ease) infinite alternate; }
.b3 { width: 48vw; height: 48vw; left: 14vw; bottom: -20vw; background: radial-gradient(circle, rgba(255,166,198,.24), rgba(255,166,198,0) 62%); animation: drift3 34s var(--ease) infinite alternate; }
.b4 { width: 40vw; height: 40vw; right: 8vw; bottom: 0; background: radial-gradient(circle, rgba(255,206,140,.24), rgba(255,206,140,0) 60%); animation: drift1 42s var(--ease) infinite alternate-reverse; }

@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 9vh, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(5vw, -7vh, 0) scale(1.16); } }

.bloom {
  position: absolute; left: 6%; top: -14%;
  width: 54vw; height: 54vw;
  background: radial-gradient(circle, rgba(255,255,255,.60), rgba(255,255,255,0) 64%);
  mix-blend-mode: screen;
  animation: bloom 26s var(--ease) infinite alternate;
}
@keyframes bloom { to { transform: translate3d(10vw, 8vh, 0) scale(1.1); } }

.grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,20,28,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,20,28,.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(120% 90% at 50% 30%, #000 30%, transparent 85%);
}

.vignette {
  position: absolute; inset: 0;
  background: radial-gradient(130% 90% at 50% 20%, rgba(255,255,255,.45), transparent 60%);
}

.grain {
  position: fixed; inset: 0; z-index: 6; pointer-events: none;
  opacity: .05; mix-blend-mode: multiply;
  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='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.aura {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(420px circle at var(--ax, 50%) var(--ay, 50%), rgba(90,120,255,.55), transparent 65%);
}
body.pointer-fine .aura { opacity: .9; }

/* ---------- 玻璃（亮场配方 v4：真折射） ---------- */
/* 四层结构：
   1 元素自身 —— 模糊 + 一点点厚度 + 冷色描边（亮场里白描边等于隐形）
   2 ::before 折射层 —— backdrop-filter 里挂 SVG 位移滤镜：
     Chrome 会把面板背后的内容真的掰弯并放大（像一块有厚度的镜片）；
     Safari 不支持 backdrop-filter: url()，这层只剩色场，自动退回普通玻璃
   3 ::before 背景 —— 中间透、边缘密的厚度梯度 + 只用亮色的棱彩色场
   4 ::after —— 1px 色散边 */
.glass {
  position: relative;
  isolation: isolate;
  /* 裁掉折射层放大后溢出面板的部分 */
  overflow: hidden;
  background: linear-gradient(158deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 46%, rgba(255,255,255,.05));
  /* 折射挂在元素自己身上: 只有元素自己的 backdrop-filter 才会采样到锐利的页面背景,
     挂在 ::before 上的话, 父元素的 backdrop-filter 会把子层变成 backdrop root,
     位移作用在"已经被裁剪+模糊过的图"上, 等于没折(实测每像素 0.33 vs 5.01) */
  -webkit-backdrop-filter: blur(6px) saturate(155%);
  backdrop-filter: blur(6px) saturate(155%);
  border: 1px solid rgba(255,255,255,.5);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 0 0 1px rgba(46,64,118,.14),
    inset 0 -34px 56px -38px rgba(42,66,140,.26),
    inset -20px -24px 44px -40px rgba(42,66,140,.15),
    0 1px 2px rgba(18,26,48,.05),
    0 12px 26px -14px rgba(18,26,48,.20),
    0 30px 60px -24px rgba(18,26,48,.26);
}
.glass > * { position: relative; z-index: 1; }

/* 真折射: 只有 Chromium 系加 (JS 在 head 里用 navigator.userAgentData 判定)。
   Safari 认 url() 却把整条声明渲染成空, 不隔离的话面板连模糊都会丢。 */
.can-warp .glass {
  -webkit-backdrop-filter: blur(6px) saturate(155%) url(#liqBig);
  backdrop-filter: blur(6px) saturate(155%) url(#liqBig);
}

/* 折射层：背后的东西掰弯 + 放大一点点 */
.glass::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  overflow: hidden;
  background:
    /* 厚度梯度：中间薄看得清，边缘厚发亮 */
    radial-gradient(124% 124% at 50% 34%, rgba(255,255,255,.02) 22%, rgba(255,255,255,.09) 56%, rgba(255,255,255,.26) 100%),
    /* 棱彩色场：只用亮色，soft-light 的活交给 soft-light 之外的低透明度 */
    radial-gradient(58% 52% at 20% 16%, rgba(142,182,255,.26), transparent 66%),
    radial-gradient(52% 48% at 84% 80%, rgba(255,190,216,.22), transparent 68%),
    radial-gradient(46% 42% at 80% 18%, rgba(198,180,255,.20), transparent 64%),
    conic-gradient(from var(--prism-a) at 42% 38%,
      rgba(255,255,255,.07), rgba(150,205,255,.15), rgba(150,170,255,.16),
      rgba(255,180,215,.15), rgba(255,255,255,.07));
  opacity: .95;
  pointer-events: none;
  animation: prismspin 40s linear infinite;
}

/* 1px 色散边：白光为主，只在个别角度透一点彩 */
.glass::after {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--rim-a),
    rgba(255,255,255,.96) 0deg, rgba(15,155,176,.34) 42deg, rgba(255,255,255,.92) 78deg,
    rgba(59,79,227,.26) 140deg, rgba(255,255,255,.98) 196deg, rgba(198,76,155,.30) 248deg,
    rgba(255,255,255,.94) 300deg, rgba(255,255,255,.96) 360deg);
  -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;
  filter: url(#liq);
  pointer-events: none;
  animation: rimspin 24s linear infinite;
}
@keyframes rimspin { to { --rim-a: 360deg; } }
@keyframes prismspin { to { --prism-a: 360deg; } }

.sheen:hover::after, .sheen:focus-within::after { filter: saturate(1.25) brightness(1.03); }

.pulse {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(15,155,176,.45), 0 0 8px rgba(15,155,176,.55);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(15,155,176,.45), 0 0 8px rgba(15,155,176,.55); }
  70%  { box-shadow: 0 0 0 7px rgba(15,155,176,0), 0 0 4px rgba(15,155,176,.25); }
  100% { box-shadow: 0 0 0 0 rgba(15,155,176,0), 0 0 8px rgba(15,155,176,.55); }
}

/* ---------- 顶栏 ---------- */
.dock-head {
  position: fixed; top: clamp(10px, 1.6vw, 20px); left: 0; right: 0;
  z-index: 60; display: flex; justify-content: center;
  pointer-events: none; padding-inline: 12px;
}
.dock {
  pointer-events: auto;
  display: flex; align-items: center; gap: clamp(8px, 1.6vw, 20px);
  padding: 7px 9px 7px 15px;
  border-radius: 999px;
  transition: padding .5s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease);
}
.dock.compact { padding: 5px 7px 5px 12px; transform: scale(.97); }

.brand { font-family: var(--font-display); font-size: 1.45rem; line-height: 1; padding-right: 4px; }
.brand i { font-style: normal; color: var(--iris); }

.dock-nav { position: relative; display: flex; align-items: center; gap: 2px; }
.dock-nav a {
  position: relative; z-index: 1;
  padding: 7px 11px; border-radius: 999px;
  font-size: .82rem; letter-spacing: .08em;
  color: var(--muted);
  transition: color .35s var(--ease);
}
.dock-nav a:hover, .dock-nav a.active { color: var(--ink); }
.dock-ind {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.14), 0 2px 6px rgba(18,26,48,.10);
  opacity: 0;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .4s var(--ease);
}
.dock-meta {
  display: flex; align-items: center; gap: 8px;
  padding: 4px 12px 4px 10px;
  border-left: 1px solid var(--hair);
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* ---------- 版心与章节 ---------- */
main { position: relative; z-index: 2; }
.sec { position: relative; width: var(--w); margin-inline: auto; padding-block: clamp(60px, 8vh, 104px); }

/* 背后的巨字：玻璃得有东西可折，否则再透也只是块空板 */
.sec::before {
  content: attr(data-ghost);
  position: absolute;
  z-index: -1;
  font-size: clamp(6rem, 17vw, 15rem);
  font-weight: 800;
  line-height: .8;
  letter-spacing: .04em;
  color: rgba(20,28,54,.055);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
#material::before { left: 3%; top: 1%; }
#work::before { right: 1%; top: 5%; }
#path::before { left: -3%; top: 7%; }
#notes::before { right: 4%; top: -1%; }
#contact::before { left: 5%; bottom: 3%; }

.sec-head {
  display: grid; grid-template-columns: 64px 1fr auto;
  align-items: baseline; gap: 16px;
  padding-bottom: 14px; margin-bottom: clamp(30px, 5vh, 56px);
  border-bottom: 1px solid var(--hair);
}
.sec-no { color: var(--iris); font-size: .68rem; letter-spacing: .2em; }
.sec-title { font-size: clamp(1.35rem, 2.3vw, 1.9rem); font-weight: 600; letter-spacing: .04em; }
.sec-title em {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 1.1em; letter-spacing: 0; color: var(--muted); margin-left: .5em;
}
.sec-hint { color: var(--muted); font-size: .64rem; text-align: right; }

/* ---------- Hero ---------- */
.hero {
  width: var(--w); margin-inline: auto;
  min-height: 100svh;
  padding-top: clamp(104px, 16vh, 168px);
  padding-bottom: clamp(36px, 6vh, 64px);
  display: flex; flex-direction: column; justify-content: center;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, .82fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: end;
}
.eyebrow { color: var(--muted); font-size: .66rem; }
.eyebrow .mark { color: var(--iris); margin-right: .6em; letter-spacing: 0; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7.2vw, 6.5rem);
  line-height: .95;
  letter-spacing: -.018em;
  margin: clamp(18px, 3vh, 34px) 0 0;
  color: var(--ink);
}
.hero-title em {
  font-style: italic;
  position: relative;
  background-image: linear-gradient(90deg, rgba(59,79,227,.55), rgba(15,155,176,.35));
  background-size: 100% 3px;
  background-position: 0 calc(100% - .06em);
  background-repeat: no-repeat;
  padding-right: .06em;
}
.hero-cn {
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--ink-2);
}
.lede {
  margin-top: clamp(14px, 2.4vh, 24px);
  max-width: 46ch;
  font-size: clamp(.95rem, 1.15vw, 1.05rem);
  line-height: 1.95;
  color: var(--muted);
  text-wrap: pretty;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: clamp(20px, 3vh, 32px); }
.hero-tags li {
  padding: 5px 11px; border-radius: 999px;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em;
  color: var(--ink-2);
  background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.16);
}

.hero-card {
  padding: 22px 22px 20px; border-radius: 24px;
}
.card-k { color: var(--muted); font-size: .6rem; }
.now-clock {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: .5em;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: .04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.now-clock span { font-size: .58rem; letter-spacing: .18em; color: var(--muted); }
.now-rows { margin-top: 16px; }
.now-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 8px 0; border-bottom: 1px dotted rgba(16,20,28,.14);
  font-size: .78rem;
}
.now-row span { color: var(--muted); font-size: .58rem; }
.now-row b { font-weight: 500; display: flex; align-items: center; gap: 6px; }
.now-row .pulse { width: 5px; height: 5px; }
.now-rule { height: 1px; margin: 14px 0 10px; background: linear-gradient(90deg, rgba(59,79,227,.35), transparent); }
.now-note { font-size: .7rem; line-height: 1.7; color: var(--muted); }
.now-note span { color: var(--ink); font-family: var(--font-mono); }

.hero-foot {
  margin-top: auto; padding-top: clamp(34px, 7vh, 72px);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.cue { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .6rem; }
.cue-line { display: block; width: 42px; height: 1px; background: linear-gradient(90deg, var(--iris), transparent); animation: cue 2.8s var(--ease) infinite; }
@keyframes cue { 0%,100% { transform: scaleX(.4); transform-origin: left; opacity: .5; } 50% { transform: scaleX(1); opacity: 1; } }
.hero-stats { display: flex; gap: clamp(18px, 3vw, 42px); color: var(--muted); font-size: .6rem; }
.hero-stats dd { color: var(--ink); font-size: .84rem; letter-spacing: .06em; margin-top: 2px; font-family: var(--font-mono); }

/* ---------- 材质 ---------- */
.mat-grid {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 68px); align-items: center;
}
.big-serif {
  font-size: clamp(1.6rem, 2.9vw, 2.35rem);
  font-weight: 600; line-height: 1.45; letter-spacing: .02em;
  margin-bottom: .9em;
}
.big-serif .hl {
  background-image: linear-gradient(90deg, rgba(59,79,227,.20), rgba(15,155,176,.12));
  background-size: 100% .3em; background-position: 0 92%; background-repeat: no-repeat;
  white-space: nowrap;
}
.mat-copy p {
  max-width: 44ch; color: var(--muted);
  font-size: .95rem; line-height: 2; margin-bottom: 1em;
  text-wrap: pretty;
}
.mat-copy p em { font-style: normal; color: var(--ink); }

.specs { margin-top: 26px; border-top: 1px solid var(--hair); max-width: 420px; }
.specs li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 2px; border-bottom: 1px solid var(--hair-soft);
  font-size: .66rem; color: var(--muted);
  transition: color .35s var(--ease), padding-left .35s var(--ease);
}
.specs li:hover { color: var(--ink); padding-left: 8px; }
.specs b { color: var(--ink); font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.specs li:hover b { color: var(--iris); }

.lab {
  position: relative; aspect-ratio: 1 / 1.02;
  border-radius: 30px; overflow: hidden;
  touch-action: none; cursor: grab;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(96,116,178,.12),
    0 26px 60px -26px rgba(18,26,48,.34);
}
.lab.dragging { cursor: grabbing; }
.lab-art {
  position: absolute; inset: 0;
  background:
    radial-gradient(58% 58% at 22% 14%, rgba(255,255,255,.9), rgba(255,255,255,0) 60%),
    repeating-linear-gradient(118deg,
      rgba(59,79,227,.80) 0 13px, rgba(15,155,176,.72) 13px 26px,
      rgba(198,76,155,.72) 26px 39px, rgba(217,134,44,.66) 39px 52px);
}
.la-word {
  position: absolute; left: 6%; bottom: 7%;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem); font-weight: 600; letter-spacing: .12em;
  color: rgba(255,255,255,.34); line-height: 1;
}
.la-ring { position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); }
.r1 { width: 62%; aspect-ratio: 1; right: -12%; top: -8%; }
.r2 { width: 44%; aspect-ratio: 1; left: 8%; top: 30%; border-style: dashed; border-color: rgba(255,255,255,.55); }
.la-band {
  position: absolute; left: -20%; top: 34%; width: 140%; height: 26%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  filter: blur(8px); transform: rotate(-8deg); mix-blend-mode: overlay;
}

.lens {
  position: absolute; left: 0; top: 0;
  width: clamp(100px, 15vw, 156px); aspect-ratio: 1;
  border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%;
  -webkit-backdrop-filter: blur(3px) saturate(240%) contrast(1.16) brightness(1.06);
  backdrop-filter: blur(3px) saturate(240%) contrast(1.16) brightness(1.06);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.95),
    inset 0 12px 26px rgba(255,255,255,.45),
    inset 0 -14px 26px rgba(30,50,110,.30),
    0 20px 38px -14px rgba(18,26,48,.5);
  animation: blob 11s ease-in-out infinite;
  will-change: transform; pointer-events: none;
}
@keyframes blob {
  0%, 100% { border-radius: 46% 54% 52% 48% / 50% 46% 54% 50%; }
  33%      { border-radius: 56% 44% 42% 58% / 44% 56% 48% 52%; }
  66%      { border-radius: 42% 58% 56% 44% / 56% 44% 52% 48%; }
}
.lens-rim {
  position: absolute; inset: 4%; border-radius: inherit;
  background:
    radial-gradient(circle at 30% 22%, rgba(255,255,255,.75), transparent 46%),
    radial-gradient(circle at 74% 80%, rgba(15,155,176,.22), transparent 58%);
  mix-blend-mode: screen; pointer-events: none;
}
.lab-note { position: absolute; right: 16px; bottom: 12px; color: rgba(255,255,255,.85); font-size: .56rem; pointer-events: none; text-shadow: 0 1px 6px rgba(0,0,0,.35); }

/* 三态对比 */
.demo-row {
  position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 24px);
  margin-top: clamp(26px, 4vh, 46px);
}
.demo-row::before {
  content: ""; position: absolute; inset: -12px -12px 44px; z-index: 0;
  border-radius: 24px;
  /* 彩纹要够宽：太细会被面板的模糊洗掉，折射就没东西可折 */
  background: repeating-linear-gradient(115deg,
    rgba(59,79,227,.55) 0 44px, rgba(15,155,176,.50) 44px 88px,
    rgba(198,76,155,.50) 88px 132px, rgba(217,134,44,.45) 132px 176px);
  opacity: .8;
}
.demo { position: relative; z-index: 1; margin: 0; }
.demo-tile { display: block; height: clamp(92px, 9.5vw, 124px); border-radius: 16px; }
.t-raw { box-shadow: inset 0 0 0 1px rgba(16,20,28,.14); }
.t-blur {
  background: rgba(255,255,255,.58);
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.7);
}
.t-glass {
  position: relative;
  overflow: hidden;
  background: linear-gradient(158deg, rgba(255,255,255,.24), rgba(255,255,255,.05));
  -webkit-backdrop-filter: blur(3px) saturate(172%);
  backdrop-filter: blur(3px) saturate(172%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(46,64,118,.16),
    0 16px 34px -16px rgba(18,26,48,.5);
}
/* 折射样张：同样挂真折射，底下那圈彩纹会被真的掰弯 */
.can-warp .t-glass {
  -webkit-backdrop-filter: blur(3px) saturate(172%) url(#liqTile);
  backdrop-filter: blur(3px) saturate(172%) url(#liqTile);
}
.t-glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  overflow: hidden;
  background: radial-gradient(124% 124% at 50% 34%, rgba(255,255,255,.02) 22%, rgba(255,255,255,.10) 56%, rgba(255,255,255,.28) 100%);
  opacity: .95;
  pointer-events: none;
}
.t-glass::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: conic-gradient(from var(--rim-a),
    rgba(15,155,176,.75), rgba(59,79,227,.6), rgba(198,76,155,.6), rgba(217,134,44,.6), rgba(15,155,176,.75));
  -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;
  filter: url(#liq);
}
.demo figcaption { margin-top: 12px; font-size: .56rem; color: var(--muted); letter-spacing: .12em; }

/* ---------- 作品 ---------- */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2.2vw, 28px);
  align-items: start;
}
.card {
  padding: 16px 18px 22px; border-radius: var(--radius);
  transform: translate3d(0,0,0) rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)) translateY(var(--ty,0px));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease);
  margin-top: var(--off, 0px);
  will-change: transform;
}
.card:hover {
  --ty: -6px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(96,116,178,.12),
    inset 0 -28px 48px -32px rgba(72,104,190,.34),
    0 30px 60px -24px rgba(18,26,48,.30);
}
.card-art {
  position: relative;
  height: clamp(112px, 12vw, 148px);
  border-radius: 16px; overflow: hidden; margin-bottom: 18px;
  background: linear-gradient(165deg, rgba(255,255,255,.72), rgba(16,20,28,.035));
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.14);
}
.card-no { color: var(--muted); font-size: .56rem; margin-bottom: .7em; }
.card-title { font-family: var(--font-display); font-size: clamp(1.45rem, 2.1vw, 1.9rem); line-height: 1.12; }
.card-desc { margin-top: .55em; font-size: .84rem; line-height: 1.8; color: var(--muted); text-wrap: pretty; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  padding: 3px 9px; border-radius: 999px; font-size: .54rem;
  color: var(--ink-2); background: rgba(255,255,255,.66);
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.16);
}

/* 作品里的小标本 */
.art-term { display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 22%; }
.tb { height: 6px; width: var(--w); border-radius: 3px; background: rgba(16,20,28,.22); }
.tb.accent { background: linear-gradient(90deg, var(--iris), rgba(59,79,227,.25)); }
.caret { position: absolute; left: 22%; bottom: 22%; width: 2px; height: 12px; background: var(--iris); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.art-globe { display: grid; place-items: center; }
.g-ring { position: absolute; width: 76px; height: 76px; border-radius: 50%; border: 1px solid rgba(59,79,227,.4); box-shadow: inset 0 0 22px rgba(15,155,176,.2); }
.g-ring.mid { width: 46px; height: 46px; border-color: rgba(15,155,176,.55); }
.g-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); transform: translate(6px, -28px); box-shadow: 0 0 10px rgba(198,76,155,.5); }
.g-arc { position: absolute; width: 118px; height: 42px; border-radius: 50%; border: 1px dashed rgba(16,20,28,.22); transform: rotate(-18deg); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(342deg); } }

.art-sim { display: flex; align-items: flex-end; justify-content: center; gap: 8px; padding: 20px; }
.sb { width: 9%; height: var(--h); border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, rgba(59,79,227,.72), rgba(59,79,227,.16)); }
.sb.hot { background: linear-gradient(180deg, var(--magenta), rgba(198,76,155,.18)); }

.art-site { display: grid; place-items: center; }
.s-pane { position: absolute; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 8px 18px -10px rgba(18,26,48,.45); }
.s-pane.p1 { width: 120px; height: 54px; background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,255,255,.4)); transform: translate(-34px, 8px) rotate(-7deg); }
.s-pane.p2 { width: 104px; height: 64px; background: linear-gradient(150deg, rgba(255,255,255,.94), rgba(210,225,255,.5)); transform: translate(6px, -8px) rotate(3deg); }
.s-pane.p3 { width: 86px; height: 44px; background: linear-gradient(150deg, rgba(255,255,255,.9), rgba(255,214,236,.55)); transform: translate(40px, 14px) rotate(9deg); }

/* ---------- 路径 ---------- */
.path { border-top: 1px solid var(--hair); }
.path-item {
  position: relative;
  display: grid; grid-template-columns: 64px minmax(0,1fr) auto;
  align-items: baseline; gap: clamp(12px, 2.4vw, 32px);
  padding: 24px 4px;
  border-bottom: 1px solid var(--hair-soft);
  transition: padding-left .5s var(--ease-out), background .45s var(--ease);
}
.path-item::before {
  content: ""; position: absolute; inset: 4px -8px; border-radius: 14px; z-index: -1;
  background: rgba(255,255,255,.62);
  box-shadow: 0 8px 24px -16px rgba(18,26,48,.4);
  opacity: 0; transition: opacity .45s var(--ease);
}
.path-item:hover { padding-left: 12px; }
.path-item:hover::before { opacity: 1; }
.path-no { color: var(--iris); font-size: .62rem; }
.path-title { font-size: clamp(1rem, 1.5vw, 1.2rem); font-weight: 600; letter-spacing: .02em; }
.path-body p { margin-top: .45em; font-size: .84rem; line-height: 1.85; color: var(--muted); max-width: 56ch; }
.path-mark {
  justify-self: end; font-size: .58rem; color: var(--muted);
  padding: 4px 11px; border-radius: 999px;
  background: rgba(255,255,255,.6); box-shadow: inset 0 0 0 1px rgba(96,116,178,.16);
}

/* ---------- 笔记 ---------- */
.note-list { border-top: 1px solid var(--hair); }
.note { position: relative; border-bottom: 1px solid var(--hair-soft); }
.note::before {
  content: ""; position: absolute; inset: 4px -6px; border-radius: 14px;
  background: rgba(255,255,255,.66);
  box-shadow: 0 8px 24px -16px rgba(18,26,48,.4);
  opacity: 0; transition: opacity .45s var(--ease); pointer-events: none;
}
.note:hover::before, .note[open]::before { opacity: 1; }
.note summary {
  display: grid; grid-template-columns: 104px minmax(0,1.15fr) minmax(0,1fr) 62px;
  align-items: baseline; gap: clamp(10px, 2vw, 26px);
  padding: 21px 4px; cursor: pointer; list-style: none;
  transition: padding-left .5s var(--ease-out);
}
.note summary::-webkit-details-marker { display: none; }
.note summary::marker { content: ""; }
.note:hover summary { padding-left: 12px; }
.note-date { color: var(--muted); font-size: .58rem; }
.note-title { font-size: clamp(.98rem, 1.4vw, 1.15rem); font-weight: 600; letter-spacing: .02em; transition: color .4s var(--ease); }
.note:hover .note-title, .note[open] .note-title { color: var(--iris); }
.note-desc { font-size: .8rem; color: var(--muted); }
.note-arrow {
  justify-self: end; color: var(--muted); font-size: .56rem;
  opacity: 0; transform: translateX(-6px);
  transition: opacity .4s var(--ease), transform .4s var(--ease), color .4s var(--ease);
}
.note-arrow::before { content: "展开 ＋"; }
.note[open] .note-arrow::before { content: "收起 －"; }
.note:hover .note-arrow { opacity: 1; transform: none; }
.note[open] .note-arrow { opacity: 1; transform: none; color: var(--iris); }
.note-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease-out); }
.note[open] .note-body { grid-template-rows: 1fr; }
.note-inner { overflow: hidden; }
.note-inner p {
  max-width: 62ch; padding: 2px 0 20px 104px;
  font-size: .85rem; line-height: 2; color: var(--muted); text-wrap: pretty;
}
.note-inner p:last-child { padding-bottom: 26px; }

/* ---------- 联络 ---------- */
.sec-contact { padding-bottom: clamp(52px, 7vh, 84px); }
.contact-slab {
  position: relative; border-radius: 32px;
  padding: clamp(26px, 4.5vw, 58px);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,1),
    inset 0 0 0 1px rgba(96,116,178,.10),
    inset 0 -30px 50px -32px rgba(72,104,190,.28),
    0 30px 70px -30px rgba(18,26,48,.28);
}
.contact-slab > .slab-k, .contact-slab > .slab-title,
.contact-slab > .slab-mailrow, .contact-slab > .slab-topics,
.contact-slab > .slab-foot { position: relative; z-index: 1; }

.orb {
  position: absolute; z-index: 0; pointer-events: none;
  right: clamp(6px, 5vw, 72px); top: 50%; translate: 0 -50%;
  width: min(28vw, 280px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 34% 24%, rgba(255,255,255,.95), rgba(255,255,255,0) 44%),
    conic-gradient(from 200deg at 50% 50%,
      rgba(15,155,176,.34), rgba(59,79,227,.30), rgba(198,76,155,.32),
      rgba(217,134,44,.30), rgba(15,155,176,.34));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.95),
    inset 0 -18px 40px -18px rgba(59,79,227,.40),
    0 28px 54px -28px rgba(18,26,48,.45);
  animation: floaty 13s var(--ease) infinite alternate;
}
.orb-halo { position: absolute; z-index: -1; inset: -24%; border-radius: 50%; background: radial-gradient(circle, rgba(59,79,227,.22), transparent 62%); filter: blur(30px); }
.orb-spec { position: absolute; left: 22%; top: 14%; width: 24%; height: 13%; border-radius: 50%; background: radial-gradient(ellipse, rgba(255,255,255,.9), transparent 72%); transform: rotate(-24deg); }
@keyframes floaty { to { transform: translateY(20px) scale(1.03); } }

.slab-k { color: var(--muted); font-size: .58rem; }
.slab-title { margin-top: .6em; font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 600; line-height: 1.25; letter-spacing: .02em; }
.slab-title em { font-family: var(--font-display); font-style: italic; font-weight: 400; letter-spacing: 0; color: var(--iris); }
.slab-mailrow { margin-top: clamp(24px, 4vh, 40px); display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.mail {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.2vw, 2.4rem);
  padding-bottom: .1em;
  border-bottom: 1px solid rgba(16,20,28,.2);
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.mail:hover { color: var(--iris); border-color: var(--iris); }
.chip {
  padding: 7px 15px; border-radius: 999px; font-size: .58rem;
  background: rgba(255,255,255,.72);
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.18);
  transition: background .35s var(--ease), transform .35s var(--ease), color .35s var(--ease);
}
.chip:hover { background: var(--iris); color: #fff; transform: translateY(-1px); }
.chip:active { transform: none; }

.slab-topics { margin-top: clamp(22px, 3.5vh, 36px); display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.slab-tlabel { color: var(--muted); font-size: .56rem; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips li {
  padding: 5px 12px; border-radius: 999px; font-size: .74rem;
  color: var(--ink-2); background: rgba(255,255,255,.6);
  box-shadow: inset 0 0 0 1px rgba(96,116,178,.14);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.chips li:hover { background: rgba(59,79,227,.10); color: var(--iris); }

.slab-foot {
  margin-top: clamp(26px, 4vh, 44px); padding-top: 16px;
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; flex-wrap: wrap; gap: clamp(14px, 3vw, 32px);
}
.slab-link { font-size: .6rem; color: var(--muted); transition: color .3s var(--ease); }
.slab-link:hover { color: var(--iris); }
.live { margin-left: auto; color: var(--iris); font-size: .56rem; opacity: 0; transition: opacity .35s var(--ease); }
.live.on { opacity: 1; }

/* ---------- 页脚 ---------- */
.foot {
  position: relative; z-index: 2;
  width: var(--w); margin-inline: auto;
  padding: 24px 0 38px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--hair);
  color: var(--muted); font-size: .56rem;
}

/* ---------- 备案信息 ---------- */
.beian-line {
  flex: 0 0 100%;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: 2px;
  font-size: .75rem; line-height: 1.9; color: var(--muted);
}
.beian-line a { color: var(--muted); text-decoration: none; transition: color .25s var(--ease); }
.beian-line a:hover { color: var(--iris); }
.b-sep { opacity: .45; }
.b-badge { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; opacity: .85; }

/* ---------- 入场 ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); filter: blur(6px); }
.js .reveal.in {
  opacity: 1; transform: none; filter: none;
  transition:
    opacity .9s var(--ease-out) calc(var(--i, 0) * 80ms),
    transform 1.05s var(--ease-out) calc(var(--i, 0) * 80ms),
    filter .9s var(--ease-out) calc(var(--i, 0) * 80ms);
}

/* ---------- 自适应 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .hero-card { max-width: 420px; }
  .mat-grid { grid-template-columns: 1fr; }
  .lab { max-width: 520px; }
  .work-grid { grid-template-columns: 1fr; }
  .card { margin-top: 0; }
  .sec-head { grid-template-columns: 44px 1fr; }
  .sec-hint { display: none; }
  .note summary { grid-template-columns: 82px 1fr 52px; padding: 18px 4px; }
  .note-desc { display: none; }
  .note-inner p { padding-left: 0; }
  .demo-row { grid-template-columns: 1fr; }
  .path-item { grid-template-columns: 44px 1fr; }
  .path-mark { display: none; }
  .orb { width: 54vw; right: -14%; opacity: .85; }
}

@media (max-width: 620px) {
  .dock-meta { display: none; }
  .dock { width: 100%; justify-content: space-between; }
  .dock-nav a { padding: 7px 8px; font-size: .76rem; }
  .hero { padding-top: 100px; }
  .hero-stats { gap: 16px; }
  .cue { display: none; }
  .specs { max-width: none; }
  .contact-slab { border-radius: 24px; }
  .live { margin-left: 0; }
  .hero-title { letter-spacing: -.01em; }
}

@media (hover: none) {
  .lab-note::after { content: " · 触碰"; }
  .note-arrow { opacity: .62; transform: none; }
  .note[open] .note-arrow { opacity: 1; }
}

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

