/* =========================================================
   Nebula · 星云 —— 深空黑紫主题样式
   ========================================================= */
:root {
  --bg: #04020a;
  --ink: #eeeaff;
  --muted: rgba(226, 220, 255, 0.52);
  --line: rgba(190, 170, 255, 0.16);
  --accent: #a68bff;
  --pink: #ff6fd8;
  --cyan: #7fe6ff;
  --f-sans: "Inter Tight", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Noto Serif SC", "Songti SC", serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --pad: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--f-sans);
  font-weight: 300;
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
body.is-loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #0a0614; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 300; }
.muted { color: var(--muted); }
.center { text-align: center; justify-content: center; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: #d9ccff; }

@media (hover: hover) and (pointer: fine) {
  /* 已经有自绘光标了：照片、星星、按钮等写了 cursor:pointer 的地方也不再叠一个系统箭头 */
  html, body, *, *::before, *::after { cursor: none !important; }
  input:not([type]), input[type="text"], textarea { cursor: text !important; } /* 文本框保留 I 形光标，方便点准输入位置 */
}

/* ---------- 画布与氛围层 ---------- */
#gl { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; display: block; }
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(4, 2, 10, 0.85) 100%);
}
.grain {
  position: fixed; inset: -50%; z-index: 2; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(4) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-1%, 3%); } 100% { transform: translate(0, 0); } }

main { position: relative; z-index: 3; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100; background: var(--bg);
  display: grid; place-items: center;
  clip-path: inset(0 0 0 0);
}
.loader__ring {
  position: absolute; width: min(60vmin, 520px); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: 0 0 120px rgba(124, 92, 255, 0.18) inset;
  animation: spin 8s linear infinite;
}
.loader__ring::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 18px var(--pink);
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader__inner { position: relative; width: min(320px, 70vw); text-align: center; }
.loader__label { color: var(--muted); }
.loader__count { font-size: clamp(64px, 12vw, 120px); font-weight: 200; letter-spacing: -0.04em; line-height: 1.1; margin: 10px 0 18px; font-variant-numeric: tabular-nums; }
.loader__count sup { font-size: 0.25em; color: var(--accent); margin-left: 4px; vertical-align: top; position: relative; top: 0.6em; }
.loader__bar { height: 1px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--accent), var(--pink)); transform: scaleX(0); transform-origin: left; }
.loader__meta { display: flex; justify-content: space-between; margin-top: 12px; color: var(--muted); font-size: 10px; }

/* ---------- 光标 ---------- */
#trail { position: fixed; inset: 0; z-index: 200; pointer-events: none; width: 100vw; height: 100vh; }
.cursor { position: fixed; inset: 0; z-index: 201; pointer-events: none; }
.cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; box-shadow: 0 0 12px var(--pink); }
.cursor__ring {
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border: 1px solid rgba(220, 205, 255, 0.45);
  display: grid; place-items: center;
  transition: width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background 0.45s, border-color 0.45s;
}
.cursor__label { font-size: 10px; letter-spacing: 0.1em; color: #0b0716; opacity: 0; transition: opacity 0.3s; white-space: nowrap; }
.cursor.is-hover .cursor__ring { width: 70px; height: 70px; margin: -35px 0 0 -35px; border-color: var(--accent); background: rgba(166, 139, 255, 0.08); }
.cursor.is-label .cursor__ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: rgba(238, 234, 255, 0.92); border-color: transparent; }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
/* 首页模式下取消大光圈光标，完全交由尾随流星画布 #trail 呈现 */
.cursor.is-hero-meteor .cursor__ring {
  opacity: 0 !important;
  width: 8px !important; height: 8px !important; margin: -4px 0 0 -4px !important;
  border-color: transparent !important; background: transparent !important;
}
.cursor.is-hero-meteor .cursor__dot { opacity: 0 !important; }
@media (any-hover: none) { .cursor, #trail { display: none; } }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 22px var(--pad);
}
/* 导航底衬：离开首屏后淡入一层深色模糊底，导航文字不再和照片、正文叠在一起看不清。
   高度只到 68px（相册分类栏吸顶的位置），免得把分类按钮也糊掉 */
.nav::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 68px; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 3, 15, 0.9), rgba(6, 3, 15, 0.7) 70%, rgba(6, 3, 15, 0));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.nav.is-solid::before { opacity: 1; }
.back { justify-self: start; color: var(--ink); opacity: 0.75; transition: opacity 0.3s; }
.back:hover { opacity: 1; }
.logo { font-size: 18px; font-weight: 400; letter-spacing: 0.08em; display: flex; gap: 6px; align-items: center; }
.logo i { font-style: normal; font-size: 12px; color: var(--accent); display: inline-block; animation: spin 6s linear infinite; }
.nav__links { justify-self: end; display: flex; gap: 28px; align-items: center; }
.nav__links a { position: relative; opacity: 0.8; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__links a { white-space: nowrap; }
/* 中等宽度屏幕：隐藏居中 Logo，给导航链接让出空间，避免文字折行 */
@media (min-width: 901px) and (max-width: 1400px) {
  .nav { grid-template-columns: auto 1fr; gap: 24px; }
  .nav .logo { display: none; }
  .nav__links { gap: clamp(12px, 1.5vw, 24px); }
}
.nav__cta { border: 1px solid rgba(255, 255, 255, 0.4); padding: 9px 16px; border-radius: 99px; opacity: 1 !important; }
.nav__cta::after { display: none; }

/* ---------- HUD ---------- */
.hud { position: fixed; left: var(--pad); bottom: 26px; z-index: 40; color: var(--muted); font-size: 10px; pointer-events: none; }
.hud__form { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.hud__idx { color: var(--ink); }
.hud__bar { width: 140px; height: 1px; background: var(--line); }
.hud__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- 通用 Section ---------- */
.section { position: relative; padding: 18vh var(--pad); }
.section__label { display: flex; gap: 14px; align-items: center; color: var(--muted); margin-bottom: 28px; }
.section__label span { color: var(--accent); }
.section__label::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.section__label.center::after { content: ""; width: 28px; height: 1px; background: var(--accent); }
.display {
  font-size: clamp(40px, 6.4vw, 104px); font-weight: 200; line-height: 1.04; letter-spacing: -0.03em;
}
.display em { letter-spacing: -0.01em; }

/* SplitText 遮罩 */
.split-mask { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }

/* ---------- Hero（照片堆叠星辰旋涡 + 中央黑洞） ---------- */
.hero {
  position: relative; height: 100vh; min-height: 660px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 86px var(--pad) 58px;
  overflow: hidden;
}
.hero-vortex {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
#vortexCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}

/* 中央黑洞奇点交互入口 */
.blackhole {
  position: absolute; left: 50%; top: 48%;
  transform: translate(-50%, -50%);
  width: clamp(144px, 16vmin, 174px);
  height: clamp(144px, 16vmin, 174px);
  border-radius: 50%;
  z-index: 5;
  display: grid; place-items: center;
  transition: transform 0.5s var(--ease), filter 0.5s var(--ease);
  cursor: pointer;
}
.blackhole__lensing {
  position: absolute; inset: -42px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(166, 139, 255, 0.28) 0%, rgba(255, 111, 216, 0.18) 38%, rgba(127, 230, 255, 0.08) 60%, transparent 76%);
  border: 1px dashed rgba(190, 225, 255, 0.22);
  animation: spin 18s linear infinite reverse;
}
.blackhole__accretion {
  position: absolute; inset: -16px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(
    from 0deg,
    rgba(124, 92, 255, 0.15) 0deg,
    rgba(255, 111, 216, 0.92) 65deg,
    rgba(255, 220, 165, 0.95) 115deg,
    rgba(124, 92, 255, 0.2) 175deg,
    rgba(127, 230, 255, 0.95) 245deg,
    rgba(166, 139, 255, 0.9) 310deg,
    rgba(124, 92, 255, 0.15) 360deg
  );
  filter: blur(5px);
  animation: spin 3.6s linear infinite;
  opacity: 0.92;
}
.blackhole__photon {
  position: absolute; inset: -3px; border-radius: 50%; pointer-events: none;
  border: 1.8px solid rgba(225, 245, 255, 0.95);
  box-shadow:
    0 0 18px rgba(127, 230, 255, 0.95),
    0 0 38px rgba(166, 139, 255, 0.85),
    0 0 70px rgba(255, 111, 216, 0.55),
    inset 0 0 22px rgba(127, 230, 255, 0.75);
  transition: box-shadow 0.4s var(--ease), border-color 0.4s;
}
.blackhole__core {
  position: relative; width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #000000 64%, #04010c 82%, #180936 95%, #7fe6ff 100%);
  box-shadow: inset 0 0 38px #000000, 0 0 32px rgba(0, 0, 0, 0.98);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10px 6px; text-align: center; gap: 5px;
}
.blackhole__badge {
  font-size: 9px; letter-spacing: 0.1em; color: var(--cyan); opacity: 0.92;
  white-space: nowrap;
}
.blackhole__cta {
  font-size: clamp(13px, 1.2vw, 15.5px); font-weight: 500; letter-spacing: 0.06em;
  color: #ffffff; white-space: nowrap;
  text-shadow: 0 0 14px rgba(166, 139, 255, 0.95);
  transition: color 0.3s, transform 0.3s;
}
.blackhole__sub {
  font-size: 8.5px; letter-spacing: 0.08em; color: rgba(226, 220, 255, 0.72);
  white-space: nowrap;
}
.blackhole:hover {
  transform: translate(-50%, -50%) scale(1.12);
}
.blackhole:hover .blackhole__accretion {
  animation-duration: 1.6s;
  filter: blur(4px) brightness(1.25);
}
.blackhole:hover .blackhole__photon {
  border-color: #fff;
  box-shadow:
    0 0 26px #7fe6ff,
    0 0 56px #ff6fd8,
    0 0 95px rgba(166, 139, 255, 0.95),
    inset 0 0 28px #7fe6ff;
}
.blackhole:hover .blackhole__cta {
  color: var(--cyan);
  transform: scale(1.05);
}

.hero__top {
  position: relative; z-index: 6; pointer-events: none;
  display: flex; justify-content: space-between; color: var(--muted);
}
.hero__top em { font-family: var(--f-mono); font-style: normal; color: var(--ink); }
.hero__bottom-bar {
  position: relative; z-index: 6; pointer-events: none;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
  margin-top: auto;
}
.hero__main {
  max-width: 540px;
  background: rgba(6, 3, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 170, 255, 0.16);
  padding: 16px 22px;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}
.hero__kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; color: #d9ccff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 14px var(--pink); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.7); } }
.hero__title {
  font-size: clamp(28px, 3.8vw, 56px); font-weight: 200; line-height: 1.02; letter-spacing: -0.035em;
}
.hero__title .ln { display: block; }
.hero__title em { color: var(--accent); padding-right: 0.08em; }
.hero__tagline { margin-top: 10px; max-width: 420px; font-size: 13.5px; color: var(--muted); font-weight: 300; letter-spacing: 0.03em; line-height: 1.55; }
.hero__right-meta {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.hero__bh-tip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(10, 6, 26, 0.72); border: 1px solid rgba(166, 139, 255, 0.28);
  backdrop-filter: blur(8px); color: #e5dcff; font-size: 10.5px; letter-spacing: 0.06em;
}
.hero__bh-tip b { color: var(--cyan); font-weight: 500; }
.hero__bh-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan); animation: pulse 1.6s infinite;
}
.hero__scroll { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.hero__scroll i { width: 60px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: scan 2.2s var(--ease) infinite; }
@keyframes scan { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- 姓名点阵 ---------- */
.namefield { height: 230vh; position: relative; }
.namefield__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 16vh var(--pad) 12vh; text-align: center; }
.namefield__hello { color: var(--muted); }
.namefield__caption p:first-child { color: var(--accent); margin-bottom: 10px; }
.namefield__caption p:last-child { font-size: clamp(16px, 1.6vw, 22px); font-weight: 200; letter-spacing: 0.3em; }

/* ---------- 关于 ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 6vw; }
.about__left { max-width: 720px; }
.about__bio { margin-top: 40px; font-size: clamp(18px, 1.7vw, 25px); line-height: 1.75; font-weight: 300; color: var(--ink); }
.about__me { display: flex; align-items: center; gap: 18px; margin-top: 48px; }
.avatar {
  width: 72px; height: 72px; border-radius: 50%; overflow: hidden; position: relative;
  background: linear-gradient(135deg, #7c5cff, #ff6fd8 70%, #7fe6ff);
  box-shadow: 0 0 0 1px var(--line), 0 0 0 6px rgba(166, 139, 255, 0.08), 0 0 40px rgba(166, 139, 255, 0.35);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.about__name { font-size: 18px; font-weight: 400; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 14vh; border-top: 1px solid var(--line); }
.stat { padding: 34px 0 0; border-right: 1px solid var(--line); padding-left: 24px; }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat__num { font-size: clamp(54px, 6.5vw, 108px); font-weight: 200; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__num sup { font-size: 0.35em; color: var(--pink); vertical-align: top; position: relative; top: 0.25em; margin-left: 4px; }
.stat__label { margin-top: 14px; color: var(--muted); }

/* ---------- 技能 ---------- */
.skills { min-height: 120vh; }
.skills .display { margin-bottom: 9vh; }
.skills__cols { display: flex; justify-content: space-between; gap: 32vw; }
.skills__list { flex: 1; max-width: 420px; }
.skills__list.right { text-align: right; }
.skill {
  position: relative; display: flex; align-items: baseline; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.skills__list.right .skill { flex-direction: row-reverse; }
.skill__idx { color: var(--accent); font-size: 10px; }
.skill__name { font-size: clamp(20px, 2.1vw, 32px); font-weight: 200; letter-spacing: -0.01em; transition: transform 0.6s var(--ease), color 0.4s; }
.skill::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(166, 139, 255, 0.18), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.7s var(--ease);
}
.skills__list.right .skill::before { background: linear-gradient(270deg, rgba(166, 139, 255, 0.18), transparent); transform-origin: right; }
.skill:hover::before { transform: scaleX(1); }
.skill:hover .skill__name { transform: translateX(12px); color: #fff; font-style: italic; }
.skills__list.right .skill:hover .skill__name { transform: translateX(-12px); }
.marquee { margin: 12vh calc(var(--pad) * -1) 0; overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; color: var(--muted); }
.marquee__track { display: flex; gap: 48px; width: max-content; white-space: nowrap; will-change: transform; }
.marquee__track span { display: inline-flex; gap: 48px; align-items: center; }
.marquee__track b { color: var(--pink); font-weight: 300; }

/* ---------- 作品 ---------- */
.works__head { position: relative; margin-bottom: 10vh; }
.works__hint { position: absolute; right: 0; bottom: 14px; }
.works__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9vh 5vw; perspective: 1400px; }
.card { position: relative; transform-style: preserve-3d; will-change: transform; }
.card:nth-child(even) { margin-top: 18vh; }
.card__frame {
  position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden;
  background: rgba(20, 12, 40, 0.6); box-shadow: 0 0 0 1px var(--line), 0 40px 80px -30px rgba(0, 0, 0, 0.9);
  transform: translateZ(0);
}
.card__media {
  position: absolute; inset: 0; border-radius: 14px; overflow: hidden;
  background: var(--grad, linear-gradient(135deg, #2a1a5e, #7c5cff 55%, #ff6fd8));
}
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.card:hover .card__media img { transform: scale(1.02); }
.card__glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.5s; mix-blend-mode: soft-light;
  background: radial-gradient(600px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.75), transparent 45%);
  z-index: 2;
}
.card__shine { position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(190, 160, 255, 0.28), transparent 50%); mix-blend-mode: screen; }
.card:hover .card__glare, .card:hover .card__shine { opacity: 1; }
.card__num { position: absolute; top: 16px; left: 18px; z-index: 3; color: rgba(255, 255, 255, 0.85); transform: translateZ(40px); }
.card__info { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-top: 22px; transform: translateZ(30px); }
.card__title { font-size: clamp(24px, 2.4vw, 38px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.1; }
.card__zh { color: var(--muted); font-size: 14px; margin-top: 6px; letter-spacing: 0.08em; }
.card__meta { text-align: right; color: var(--muted); display: grid; gap: 6px; flex-shrink: 0; }
.card__meta b { color: var(--ink); font-weight: 300; }

/* ---------- 经历 ---------- */
.exp { margin-top: 8vh; }
.exp__row {
  position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) minmax(0, 1fr); gap: 4vw;
  padding: 38px 0; align-items: baseline;
}
.exp__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, var(--accent), var(--line) 40%); transform-origin: left; }
.exp__period { color: var(--accent); }
.exp__role { font-size: clamp(24px, 2.6vw, 40px); font-weight: 200; letter-spacing: -0.02em; line-height: 1.15; }
.exp__role small { display: block; font-size: 14px; color: var(--muted); letter-spacing: 0.12em; margin-top: 8px; font-family: var(--f-mono); text-transform: uppercase; }
.exp__desc { color: var(--muted); font-size: 15px; }
.awards { margin-top: 16vh; }
.awards__list li {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 26px 0; border-bottom: 1px solid var(--line); position: relative; overflow: hidden;
  font-size: clamp(20px, 2.2vw, 34px); font-weight: 200;
}
.awards__list li span { position: relative; z-index: 1; transition: transform 0.6s var(--ease); }
.awards__list li .mono { color: var(--muted); }
.awards__list li::before {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(124, 92, 255, 0.35), rgba(255, 111, 216, 0.2));
  transform: translateY(101%); transition: transform 0.6s var(--ease);
}
.awards__list li:hover::before { transform: translateY(0); }
.awards__list li:hover span:first-child { transform: translateX(16px); }

/* ---------- 联系（尾页：黑洞吐出照片星辰旋涡） ---------- */
.contact {
  position: relative;
  height: 100vh; min-height: 680px;
  padding: 72px var(--pad) 64px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  text-align: center; overflow: hidden;
}
.outro-vortex {
  position: absolute; inset: 0; z-index: 1; overflow: hidden;
}
#outroCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.blackhole--outro {
  top: 47%;
}
.blackhole--outro .blackhole__accretion {
  animation-direction: reverse;
}
.contact__top {
  position: relative; z-index: 6; pointer-events: none;
  display: flex; flex-direction: column; align-items: center;
  background: rgba(6, 3, 18, 0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 170, 255, 0.16);
  padding: 12px 32px 16px; border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}
.contact__top .section__label { margin-bottom: 8px; }
.contact__title {
  font-size: clamp(26px, 3.4vw, 48px); font-weight: 200; line-height: 1.08; letter-spacing: -0.03em;
}
.contact__bottom {
  position: relative; z-index: 6; pointer-events: none;
  width: 100%; display: flex; flex-direction: column; align-items: center;
  margin-top: auto;
  background: rgba(6, 3, 18, 0.66);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(190, 170, 255, 0.16);
  border-radius: 22px;
  padding: 16px 26px 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}
.contact__actions {
  pointer-events: auto;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px;
}
.contact__mail {
  display: inline-flex; align-items: center;
  font-size: clamp(15px, 1.6vw, 22px); font-weight: 300; letter-spacing: -0.01em;
  padding: 12px 28px; border: 1px solid rgba(190, 170, 255, 0.35); border-radius: 999px;
  position: relative; overflow: hidden;
  background: rgba(14, 9, 32, 0.75); backdrop-filter: blur(10px);
}
.contact__mail::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--pink)); transform: scaleY(0); transform-origin: bottom; transition: transform 0.6s var(--ease); z-index: -1; border-radius: inherit; }
.contact__mail:hover { color: #0b0716; }
.contact__mail:hover::before { transform: scaleY(1); }
.contact__qq {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 24px; border-radius: 999px;
  border: 1px solid rgba(166, 139, 255, 0.35);
  background: rgba(18, 11, 38, 0.75); backdrop-filter: blur(10px);
  color: #e8e1ff; font-size: 13px; letter-spacing: 0.08em;
  transition: all 0.35s var(--ease);
}
.contact__qq em {
  font-style: normal; padding: 3px 10px; border-radius: 99px;
  background: rgba(124, 92, 255, 0.28); color: var(--cyan); font-size: 11px;
}
.contact__qq:hover { border-color: var(--cyan); box-shadow: 0 0 28px rgba(127, 230, 255, 0.35); transform: translateY(-2px); }
.contact__erupt-btn {
  border-color: rgba(127, 230, 255, 0.45);
  color: var(--cyan);
}
.contact__erupt-btn:hover {
  background: rgba(127, 230, 255, 0.18);
  color: #fff;
}
.contact__socials {
  pointer-events: auto;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin-top: 16px;
}
.contact__socials a { position: relative; color: var(--muted); transition: color 0.3s; }
.contact__socials a:hover { color: var(--ink); }
.contact__socials a sup { color: var(--accent); margin-left: 3px; }
.footer {
  pointer-events: auto;
  margin-top: 14px; padding-left: 160px; width: 100%; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; gap: 16px;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; gap: 10px; align-items: center; padding: 15px 26px; border-radius: 999px;
  border: 1px solid rgba(220, 205, 255, 0.35); font-size: 14px; letter-spacing: 0.06em; position: relative; overflow: hidden;
  transition: color 0.4s;
}
.btn::before { content: ""; position: absolute; inset: 0; background: var(--ink); border-radius: inherit; transform: scale(0, 1); transform-origin: left; transition: transform 0.55s var(--ease); z-index: -1; }
.btn:hover { color: #0b0716; }
.btn:hover::before { transform: scale(1, 1); }

/* ---------- 弹层 ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: none; }
.modal.is-open { display: block; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(4, 2, 12, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal__panel {
  position: absolute; inset: 7vh var(--pad); display: grid; grid-template-columns: 1.25fr 1fr; gap: 4vw; align-items: center;
  pointer-events: none;
}
.modal__panel > * { pointer-events: auto; }
.modal__media { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; box-shadow: 0 60px 120px -40px rgba(124, 92, 255, 0.45); }
.modal__media .card__media img { transform: scale(1); }
.modal__idx { color: var(--accent); margin-bottom: 18px; }
.modal__title { font-size: clamp(36px, 4.6vw, 76px); font-weight: 200; letter-spacing: -0.035em; line-height: 1; }
.modal__zh { font-size: 18px; color: #d9ccff; margin-top: 12px; letter-spacing: 0.12em; }
.modal__meta { display: flex; gap: 24px; color: var(--muted); margin: 30px 0 22px; padding: 14px 0; border-block: 1px solid var(--line); }
.modal__desc { font-size: 17px; line-height: 1.85; color: var(--ink); margin-bottom: 36px; max-width: 460px; }
.modal__close { position: absolute; top: -4vh; right: 0; padding: 10px 0; color: var(--muted); transition: color 0.3s; }
.modal__close:hover { color: var(--ink); }

.btn--ghost { background: rgba(16, 10, 34, 0.5); border-color: var(--line); color: var(--muted); }
.btn--ghost:hover { color: #0b0716; }

/* =========================================================
   02. 个人性格标签 / MBTI (INFJ 提倡者) / 荣格八维 / 凯尔西气质 / 兴趣六维雷达图 (.persona)
   ========================================================= */
.persona__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 5vh; }
.persona__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 3vw; align-items: stretch; }
.persona__card, .radar-card {
  background: rgba(14, 9, 32, 0.62);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(22px, 2.6vw, 36px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
}
.mbti-box__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.mbti-box__badge { color: var(--accent); display: inline-block; padding: 4px 11px; border-radius: 99px; border: 1px solid rgba(166, 139, 255, 0.35); background: rgba(124, 92, 255, 0.14); }
.mbti-box__rarity { color: var(--cyan); font-size: 10.5px; padding: 4px 10px; border-radius: 99px; background: rgba(127, 230, 255, 0.1); border: 1px solid rgba(127, 230, 255, 0.28); }
.mbti-box__row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.mbti-box__code {
  font-size: clamp(46px, 5vw, 72px); font-weight: 200; letter-spacing: -0.04em; line-height: 1;
  background: linear-gradient(120deg, #fff 15%, var(--cyan) 50%, var(--accent) 78%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mbti-box__titles { display: flex; flex-direction: column; gap: 4px; }
.mbti-box__sub { color: var(--pink); font-size: 11px; letter-spacing: 0.14em; }
.mbti-box__title { font-size: clamp(17px, 1.6vw, 22px); color: #e9e2ff; font-weight: 300; }
.mbti-box__quote { margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.75; border-left: 2px solid var(--accent); padding-left: 14px; }

/* 四维倾向能量条 (I / N / F / J) */
.mbti-dims { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 14px; }
.dim-item {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(210, 195, 255, 0.13);
  border-radius: 12px; padding: 10px 13px;
}
.dim-item__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; margin-bottom: 6px; }
.dim-item__left b { color: var(--cyan); font-family: var(--f-mono); margin-right: 4px; }
.dim-item__pct { font-family: var(--f-mono); font-size: 11px; color: var(--accent); }
.dim-item__bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.dim-item__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--cyan)); }
.dim-item__desc { margin-top: 5px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* INFJ 类型详解互动胶囊矩阵 */
.infj-explorer {
  background: rgba(8, 4, 22, 0.55); border: 1px solid rgba(190, 170, 255, 0.18);
  border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.infj-explorer__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.infj-topics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.infj-topic-btn {
  padding: 8px 10px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(210, 195, 255, 0.16);
  border-left: 3px solid var(--accent);
  color: #e4dcff; font-size: 12.5px; text-align: left;
  display: flex; align-items: center; gap: 6px;
  transition: all 0.28s var(--ease);
}
.infj-topic-btn:nth-child(even) { border-left-color: var(--cyan); }
.infj-topic-btn:hover { background: rgba(166, 139, 255, 0.16); transform: translateY(-2px); }
.infj-topic-btn.is-active {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.38), rgba(255, 111, 216, 0.22));
  border-color: var(--cyan); border-left-width: 3px; color: #fff;
  box-shadow: 0 8px 22px -6px rgba(124, 92, 255, 0.5);
}
.infj-panel {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(210, 195, 255, 0.14);
  border-radius: 12px; padding: 13px 16px;
}
.infj-panel__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.infj-panel__title { font-size: 14.5px; font-weight: 500; color: #fff; }
.infj-panel__tag { color: var(--cyan); font-size: 10.5px; padding: 2px 8px; border-radius: 99px; background: rgba(127, 230, 255, 0.12); }
.infj-panel__body { font-size: 13.5px; color: #ddd6f8; line-height: 1.72; }

/* 凯尔西气质类型卡片 */
.keirsey-box {
  background: linear-gradient(135deg, rgba(26, 15, 56, 0.65), rgba(12, 8, 28, 0.75));
  border: 1px solid rgba(166, 139, 255, 0.24); border-radius: 14px; padding: 14px 16px;
}
.keirsey-box__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.keirsey-box__badge { color: var(--accent); font-size: 10px; }
.keirsey-box__type { font-size: 14px; color: #fff; font-weight: 500; }
.keirsey-box__desc { font-size: 13px; color: var(--muted); line-height: 1.65; }
.keirsey-box__src { margin-top: 6px; font-size: 10.5px; color: rgba(127, 230, 255, 0.78); }

/* 荣格八维认知功能栈 (Ni - Fe - Ti - Se) */
.jung-box__label { color: var(--muted); margin-bottom: 10px; }
.jung-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.jung-card {
  background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(210, 195, 255, 0.14);
  border-radius: 12px; padding: 10px 12px; cursor: pointer; transition: all 0.28s var(--ease);
}
.jung-card:hover { border-color: var(--jc, var(--accent)); background: rgba(124, 92, 255, 0.12); transform: translateY(-2px); }
.jung-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.jung-card__code { font-family: var(--f-mono); font-size: 16px; font-weight: 500; color: var(--jc, var(--accent)); }
.jung-card__slot { font-size: 10px; color: var(--muted); }
.jung-card__name { font-size: 13px; color: #fff; font-weight: 400; margin-bottom: 4px; }
.jung-card__desc { font-size: 11.5px; color: var(--muted); line-height: 1.48; }

.tags-box__label { color: var(--muted); margin-bottom: 12px; }
.tags-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.p-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(220, 205, 255, 0.18);
  font-size: 12.5px; color: var(--ink); letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s, box-shadow 0.35s;
}
.p-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc, var(--accent)); box-shadow: 0 0 10px var(--tc, var(--accent)); }
.p-tag:hover {
  transform: translateY(-3px) scale(1.03);
  border-color: var(--tc, var(--accent));
  background: rgba(124, 92, 255, 0.18);
  box-shadow: 0 10px 28px -8px rgba(124, 92, 255, 0.45);
}

.radar-card__top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); }
.radar-card__live { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); }
.radar-card__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: pulse 1.8s infinite; }
.radar-wrap { width: 100%; max-width: 440px; margin: 0 auto; }
#radarSvg { width: 100%; height: auto; overflow: visible; }
.radar-grid-poly { fill: none; stroke: rgba(210, 195, 255, 0.14); stroke-width: 1; }
.radar-axis-line { stroke: rgba(210, 195, 255, 0.16); stroke-width: 1; stroke-dasharray: 3 3; }
.radar-area {
  fill: rgba(166, 139, 255, 0.24);
  stroke: #c4adff;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 16px rgba(166, 139, 255, 0.55));
  transition: d 0.6s var(--ease);
}
.radar-dot { fill: #fff; stroke: var(--pink); stroke-width: 3; cursor: pointer; transition: r 0.25s, fill 0.25s; }
.radar-dot:hover, .radar-dot.is-active { r: 8; fill: var(--cyan); stroke: #fff; }
.radar-label { fill: #e8e2ff; font-size: 12.5px; font-family: var(--f-sans); cursor: pointer; transition: fill 0.25s; }
.radar-label tspan { fill: var(--pink); font-family: var(--f-mono); font-size: 11px; }
.radar-label:hover { fill: var(--cyan); }
.radar-detail {
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 18px; min-height: 74px;
}
.radar-detail__name { color: var(--accent); display: block; margin-bottom: 6px; }
.radar-detail__desc { font-size: 14px; color: var(--ink); line-height: 1.6; }

/* =========================================================
   03. 3D 悬浮环绕照片星环 (.ring-sec)
   ========================================================= */
.ring-sec { overflow: hidden; padding-bottom: 10vh; }
.ring-sec__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
.ring-controls { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ring-filters, .ring-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ring-btn {
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(14, 9, 32, 0.55); color: var(--muted); font-size: 11px;
  backdrop-filter: blur(8px); transition: all 0.3s var(--ease);
}
.ring-btn:hover { color: var(--ink); border-color: var(--accent); }
.ring-btn.is-active { background: linear-gradient(90deg, rgba(124, 92, 255, 0.45), rgba(255, 111, 216, 0.35)); color: #fff; border-color: var(--accent); box-shadow: 0 0 22px rgba(166, 139, 255, 0.35); }
.ring-hint { color: var(--muted); margin-bottom: 24px; }

.ring-stage {
  position: relative; width: 100%; height: clamp(440px, 58vh, 580px);
  perspective: 1700px; overflow: hidden;
  border-radius: 24px; border: 1px solid rgba(210, 195, 255, 0.14);
  background: radial-gradient(ellipse at 50% 50%, rgba(124, 92, 255, 0.16), rgba(6, 3, 15, 0.45) 70%);
  user-select: none; touch-action: pan-y;
}
.ring-scene {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
}
.ring-core {
  position: absolute; left: 50%; top: 50%;
  width: 170px; height: 170px; margin-left: -85px; margin-top: -85px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle, rgba(255, 215, 250, 0.25), rgba(124, 92, 255, 0.08) 65%, transparent 75%);
  border: 1px solid rgba(210, 195, 255, 0.25);
  box-shadow: 0 0 80px rgba(166, 139, 255, 0.45), inset 0 0 40px rgba(255, 111, 216, 0.25);
  pointer-events: none; transform: translateZ(0);
}
.ring-core span { font-size: 38px; font-weight: 200; color: #fff; letter-spacing: -0.03em; }
.ring-core small { font-size: 9px; color: var(--accent); margin-top: 4px; }
.ring-orbit {
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}
.ring-item {
  position: absolute; left: -78px; top: -54px;
  width: 156px; height: 108px;
  border-radius: 10px; overflow: hidden;
  background: rgba(18, 12, 38, 0.85);
  border: 1px solid rgba(220, 205, 255, 0.32);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75), 0 0 18px rgba(124, 92, 255, 0.2);
  transform-style: preserve-3d;
  transition: border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.ring-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s var(--ease); pointer-events: none; }
.ring-item__tag {
  position: absolute; left: 6px; right: 6px; bottom: 6px;
  padding: 3px 7px; border-radius: 6px;
  background: rgba(6, 3, 16, 0.78); backdrop-filter: blur(4px);
  font-size: 10px; color: #ece6ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  opacity: 0; transform: translateY(4px); transition: opacity 0.25s, transform 0.25s; pointer-events: none;
}
.ring-item:hover {
  border-color: var(--cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 32px rgba(127, 230, 255, 0.65);
}
.ring-item:hover img { transform: scale(1.12); }
.ring-item:hover .ring-item__tag { opacity: 1; transform: translateY(0); }

/* =========================================================
   04. 海量光影相册 · 视觉长卷与 509 张智能档案馆 (.archive)
   ========================================================= */
.archive__head { margin-bottom: 6vh; }
.archive__sub { margin-top: 18px; max-width: 680px; color: var(--muted); font-size: 16px; line-height: 1.8; }

/* 双向视差胶片长卷 */
.filmstrip-wrap { margin: 0 calc(var(--pad) * -1) 8vh; padding: 28px 0; border-block: 1px solid var(--line); background: rgba(8, 4, 20, 0.45); overflow: hidden; }
.filmstrip-label { padding: 0 var(--pad) 16px; display: flex; justify-content: space-between; color: var(--muted); }
.filmstrip { overflow: hidden; padding: 8px 0; }
.filmstrip__track { display: flex; gap: 16px; width: max-content; will-change: transform; }
.film-card {
  position: relative; width: 250px; height: 158px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  border: 1px solid rgba(220, 205, 255, 0.2); background: #120b28; cursor: pointer;
}
.film-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.film-card:hover img { transform: scale(1.08); }
.film-card__meta {
  position: absolute; inset: auto 0 0 0; padding: 8px 10px;
  background: linear-gradient(transparent, rgba(4, 2, 12, 0.88));
  display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #e8e2ff;
}
.film-card__meta span:last-child { color: var(--accent); font-family: var(--f-mono); font-size: 10px; }

/* 智能双层分类栏：桌面端固定两行（上排大分类，下排子主题 + 视图工具），
   一行放不下就横向滑动，不再叠成三五行、吸顶时挡住半屏照片 */
.archive-bar {
  position: sticky; top: 68px; z-index: 35;
  background: rgba(9, 5, 22, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 16px; margin-bottom: 28px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.85);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; row-gap: 10px;
  grid-template-areas: "cats cats" "subs tools";
}
.archive-bar::after { /* 两行之间的分隔线（单独画，不受下面横向渐隐的影响） */
  content: ""; grid-row: 2; grid-column: 1 / -1; align-self: start;
  border-top: 1px solid rgba(210, 195, 255, 0.1); pointer-events: none;
}
.archive-bar__top { display: contents; }
.cat-tabs { grid-area: cats; display: flex; gap: 5px; }
.cat-tab {
  flex: none; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--ink); font-size: 13px;
  display: inline-flex; align-items: center; gap: 6px; transition: all 0.3s var(--ease);
}
.cat-tab small { font-family: var(--f-mono); font-size: 11px; color: var(--muted); padding: 1px 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); }
.cat-tab:hover { border-color: var(--accent); }
.cat-tab.is-active { background: var(--ink); color: #090516; border-color: var(--ink); font-weight: 500; }
.cat-tab.is-active small { background: rgba(9, 5, 22, 0.15); color: #090516; }

.view-tools { grid-area: tools; display: flex; align-items: center; gap: 6px; padding: 10px 0 0 14px; white-space: nowrap; }
.archive-stat { color: var(--accent); margin-right: 4px; }
.tool-btn {
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: var(--muted); font-size: 11px; transition: all 0.25s;
}
.tool-btn:hover, .tool-btn.is-active { color: #fff; border-color: var(--accent); background: rgba(124, 92, 255, 0.25); }

.sub-tabs { grid-area: subs; display: flex; align-items: center; gap: 7px; padding-top: 10px; }
/* 放不下时横向滑动：隐藏滚动条，哪一侧还有内容就在哪一侧渐隐（is-more-left / is-more-right 由 main.js 切换） */
.cat-tabs, .sub-tabs {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
  --fade-l: 0px; --fade-r: 0px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--fade-l), #000 calc(100% - var(--fade-r)), transparent);
}
.cat-tabs::-webkit-scrollbar, .sub-tabs::-webkit-scrollbar { display: none; }
.cat-tabs.is-more-left, .sub-tabs.is-more-left { --fade-l: 40px; }
.cat-tabs.is-more-right, .sub-tabs.is-more-right { --fade-r: 40px; }
/* 宽屏一排放得下：大分类和视图工具并排，子主题独占第二行 */
@media (min-width: 1520px) {
  .archive-bar { grid-template-areas: "cats tools" "subs subs"; }
  .view-tools { padding: 0 0 0 16px; }
}
.sub-tab {
  flex: none; white-space: nowrap;
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(210, 195, 255, 0.14);
  background: rgba(255, 255, 255, 0.02); color: var(--muted); font-size: 12px;
  transition: all 0.25s;
}
.sub-tab b { font-weight: 400; color: var(--accent); margin-left: 4px; font-family: var(--f-mono); font-size: 10.5px; }
.sub-tab:hover { color: var(--ink); border-color: rgba(210, 195, 255, 0.4); }
.sub-tab.is-active { background: rgba(166, 139, 255, 0.24); color: #fff; border-color: var(--accent); }

/* 瀑布流照片网格 */
.photo-masonry { column-gap: 18px; }
.photo-masonry.cols-4 { column-count: 4; }
.photo-masonry.cols-6 { column-count: 6; column-gap: 12px; }
.p-item {
  break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 12px; overflow: hidden;
  background: rgba(20, 12, 42, 0.65); border: 1px solid rgba(210, 195, 255, 0.14);
  cursor: pointer; transform: translateZ(0); transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.photo-masonry.cols-6 .p-item { margin-bottom: 12px; border-radius: 8px; }
.p-item:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 20px 44px -15px rgba(0, 0, 0, 0.85), 0 0 24px rgba(124, 92, 255, 0.3);
}
.p-item img { width: 100%; height: auto; display: block; transition: transform 0.7s var(--ease); }
.p-item:hover img { transform: scale(1.05); }
.p-item__ov {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 14px; background: linear-gradient(180deg, transparent 45%, rgba(5, 2, 14, 0.88) 100%);
  opacity: 0; transition: opacity 0.3s;
}
.p-item:hover .p-item__ov { opacity: 1; }
.p-item__sub { font-size: 13px; color: #fff; font-weight: 400; }
.p-item__cat { font-size: 10.5px; color: var(--accent); font-family: var(--f-mono); margin-top: 3px; }
.archive-more { display: flex; justify-content: center; gap: 16px; margin-top: 42px; flex-wrap: wrap; }

/* =========================================================
   全屏高清相册灯箱 (.lightbox)
   ========================================================= */
.lightbox {
  position: fixed; inset: 0; z-index: 120; display: none;
  flex-direction: column; justify-content: space-between;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(4, 2, 12, 0.92); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.lightbox__top {
  position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: 20px var(--pad); border-bottom: 1px solid var(--line);
}
.lightbox__meta { display: flex; align-items: center; gap: 12px; }
.lightbox__badge { padding: 4px 10px; border-radius: 99px; background: rgba(124, 92, 255, 0.28); border: 1px solid var(--accent); color: #fff; }
.lightbox__sub { color: #d9ccff; font-size: 13px; }
.lightbox__counter { color: var(--muted); }
.lightbox__close { padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); color: var(--ink); }
.lightbox__close:hover { border-color: var(--pink); color: var(--pink); }
.lightbox__stage {
  position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 16px 72px; min-height: 0;
}
.lightbox__img-wrap { max-width: 100%; max-height: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox__img {
  max-width: 86vw; max-height: 72vh; width: auto; height: auto; object-fit: contain;
  border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--line);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(16, 10, 34, 0.75); color: #fff; font-size: 18px;
  display: grid; place-items: center; transition: all 0.25s;
}
.lightbox__nav:hover { background: var(--accent); color: #090516; border-color: var(--accent); }
.lightbox__nav--prev { left: var(--pad); }
.lightbox__nav--next { right: var(--pad); }
.lightbox__strip {
  position: relative; z-index: 2; display: flex; gap: 8px; overflow-x: auto;
  padding: 12px var(--pad); border-top: 1px solid var(--line); background: rgba(6, 3, 15, 0.7);
}
.lb-thumb {
  width: 64px; height: 46px; border-radius: 6px; overflow: hidden; flex-shrink: 0;
  opacity: 0.45; border: 1px solid transparent; cursor: pointer; transition: all 0.25s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb.is-active, .lb-thumb:hover { opacity: 1; border-color: var(--cyan); transform: scale(1.06); }

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  .persona__grid { grid-template-columns: 1fr; }
  .photo-masonry.cols-4 { column-count: 3; }
  .photo-masonry.cols-6 { column-count: 4; }
}
@media (max-width: 900px) {
  .nav { grid-template-columns: 1fr auto; }
  .logo { display: none; }
  .nav__links a:not(.nav__cta) { display: none; }
  .hud { display: none; }
  .hero__bottom-bar { flex-direction: column; align-items: flex-start; }
  .hero__right-meta { align-items: flex-start; }
  .hero__bh-tip { display: none; }
  .about__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 0 26px 18px; border-bottom: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat:nth-child(2) { border-right: 0; }
  .skills__cols { flex-direction: column; gap: 0; }
  .skills__list { max-width: none; }
  .skills__list.right { text-align: left; }
  .skills__list.right .skill { flex-direction: row; }
  .works__grid { grid-template-columns: 1fr; }
  .card:nth-child(even) { margin-top: 0; }
  .works__hint { position: static; margin-top: 14px; }
  .exp__row { grid-template-columns: 1fr; gap: 10px; }
  .modal__panel { inset: 64px 18px 24px; grid-template-columns: 1fr; align-content: start; overflow-y: auto; gap: 26px; }
  .modal__close { position: fixed; top: 22px; right: 18px; }
  .contact__mail { padding: 18px 26px; font-size: 18px; }
  .footer { flex-direction: column; align-items: center; padding-left: 0; }
  .photo-masonry.cols-4, .photo-masonry.cols-6 { column-count: 2; }
  .ring-controls { align-items: flex-start; }
  .lightbox__stage { padding: 12px 16px; }
  .infj-topics { grid-template-columns: repeat(2, 1fr); }
  .mbti-dims, .jung-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: never-match) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}
