/* ============================================================
   个人网站 · 样式表
   风格：墨色底 + 暖金点缀 + 文人衬线，融入 AI 影像的科技感
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg:        #0a0c10;
  --bg-alt:    #0d1015;
  --surface:   #12161d;
  --surface-2: #171c25;
  --line:      rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);

  --ink:       #ece9e3;
  --ink-soft:  #c3bfb7;
  --muted:     #8b93a0;
  --muted-dim: #6b7280;

  --gold:      #d9a45b;
  --gold-soft: #e8c48f;
  --cyan:      #5fd0c8;
  --violet:    #8b7bd8;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans:  "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --radius: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 基础重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0.01em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, dl, dd, dt, ol, ul, li, blockquote, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

::selection { background: rgba(217, 164, 91, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 全局纹理与滚动条 ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.032;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #07090c; }
::-webkit-scrollbar-thumb {
  background: #232832;
  border-radius: 10px;
  border: 2px solid #07090c;
}
::-webkit-scrollbar-thumb:hover { background: #333a46; }

/* ---------- 通用布局 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  position: relative;
  padding: clamp(88px, 11vw, 152px) 0;
}
.section--alt {
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(217, 164, 91, 0.045), transparent 60%),
    linear-gradient(180deg, #0b0e13 0%, #090b0f 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section__head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section__desc {
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  max-width: 58ch;
  text-wrap: pretty;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

.link {
  color: var(--gold);
  border-bottom: 1px solid rgba(217, 164, 91, 0.4);
  padding-bottom: 2px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.link:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease),
              border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), color 0.35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #17130c;
  box-shadow: 0 12px 34px -14px rgba(217, 164, 91, 0.75);
}
.btn--primary:hover { box-shadow: 0 20px 46px -16px rgba(217, 164, 91, 0.9); }

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  border-color: rgba(217, 164, 91, 0.5);
  color: var(--gold-soft);
  background: rgba(217, 164, 91, 0.06);
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.45s var(--ease), border-color 0.45s var(--ease),
              backdrop-filter 0.45s var(--ease), padding 0.45s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 6px 0;
}
.nav.is-scrolled {
  background: rgba(10, 12, 16, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line-soft);
}

.nav__inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav__brand { display: inline-flex; align-items: center; gap: 12px; }
.nav__mark {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold);
  background: linear-gradient(150deg, rgba(217, 164, 91, 0.18), rgba(217, 164, 91, 0.04));
  border: 1px solid rgba(217, 164, 91, 0.28);
  flex: none;
}
.nav__name {
  font-family: var(--serif);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.nav__links { display: flex; align-items: center; gap: 6px; }
.nav__links a {
  position: relative;
  padding: 8px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.nav__links a.is-active {
  color: var(--gold-soft);
  background: rgba(217, 164, 91, 0.09);
  box-shadow: inset 0 0 0 1px rgba(217, 164, 91, 0.18);
}

.nav__toggle {
  position: relative;
  display: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
}
.nav__toggle span {
  position: absolute;
  left: 50%; top: 50%;
  width: 17px; height: 1.5px;
  margin: -0.75px 0 0 -8.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span:first-child { transform: translateY(-3.5px); }
.nav__toggle span:last-child  { transform: translateY(3.5px); }
.nav__toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child  { transform: rotate(-45deg); }

/* ---------- 首屏 ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 底部多留一些空间，给「向下」提示让位，避免和统计栏挤在一起 */
  padding: 118px 0 118px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.hero__glow {
  position: absolute;
  inset: -20%;
  z-index: 0;
  background:
    radial-gradient(38% 42% at 22% 28%, rgba(217, 164, 91, 0.16), transparent 70%),
    radial-gradient(34% 40% at 78% 62%, rgba(95, 208, 200, 0.10), transparent 72%),
    radial-gradient(46% 50% at 55% 105%, rgba(139, 123, 216, 0.12), transparent 70%);
  filter: blur(20px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(115% 85% at 50% 45%, transparent 30%, rgba(10, 12, 16, 0.55) 78%, var(--bg) 100%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: var(--ink-soft);
}
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(217, 164, 91, 0.6);
  animation: pulse 2.4s infinite;
  flex: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(217, 164, 91, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(217, 164, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 164, 91, 0); }
}

.hero__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.15rem, 5.2vw, 4rem);
  line-height: 1.36;
  letter-spacing: 0.03em;
  margin: 28px 0 0;
  max-width: 20em;
  background: linear-gradient(170deg, #ffffff 8%, #ded8cd 45%, #a99b86 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}

.hero__rotator {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  letter-spacing: 0.1em;
  color: var(--muted);
}
.rotator {
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  min-width: 5em;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), filter 0.4s var(--ease);
}
.rotator.is-out { opacity: 0; transform: translateY(-8px); filter: blur(4px); }

.hero__lead {
  margin-top: 24px;
  max-width: 46ch;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  line-height: 1.95;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 860px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero__stats dt {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: var(--gold-soft);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.hero__stats dd { font-size: 0.9rem; color: var(--muted); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 34px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  color: var(--muted-dim);
  transition: color 0.3s var(--ease);
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll i {
  width: 1px; height: 46px;
  background: linear-gradient(180deg, var(--muted-dim), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  top: -46px; left: 0;
  width: 1px; height: 46px;
  background: linear-gradient(180deg, transparent, var(--gold));
  animation: scrollLine 2.6s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(0); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: translateY(92px); opacity: 0; }
}

/* ---------- 关于 ---------- */
.about {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.about__card {
  position: sticky;
  top: 110px;
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--surface-2), #0c1015);
  overflow: hidden;
}
.about__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 50% 8%, rgba(217, 164, 91, 0.13), transparent 70%);
  pointer-events: none;
}

.about__portrait {
  position: relative;
  aspect-ratio: 1 / 1.06;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(60% 60% at 50% 40%, rgba(217, 164, 91, 0.16), transparent 72%),
    linear-gradient(150deg, #141a22, #0a0d12);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.about__monogram {
  position: relative;
  z-index: 2;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 5.6rem);
  color: transparent;
  background: linear-gradient(160deg, var(--gold-soft), #8a6a38);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 14px 30px rgba(217, 164, 91, 0.28));
}
.ring {
  position: absolute;
  border: 1px solid rgba(217, 164, 91, 0.16);
  border-radius: 50%;
  left: 50%; top: 50%;
}
.ring--1 { width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); animation: spin 34s linear infinite; border-style: dashed; }
.ring--2 { width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.7; animation: spin 52s linear infinite reverse; }
.ring--3 { width: 108%; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: 0.4; animation: spin 78s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.about__caption {
  margin-top: 20px;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-align: center;
}
.about__traits {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.about__traits li {
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--gold-soft);
  background: rgba(217, 164, 91, 0.08);
  border: 1px solid rgba(217, 164, 91, 0.22);
}

.about__text p {
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 2;
  margin-bottom: 22px;
  max-width: 62ch;
  text-wrap: pretty;
}
.about__text em {
  font-style: normal;
  color: var(--gold-soft);
  border-bottom: 1px dashed rgba(217, 164, 91, 0.45);
}

.pullquote {
  position: relative;
  margin: 34px 0;
  padding: 26px 28px 26px 34px;
  border-left: 2px solid var(--gold);
  border-radius: 0 14px 14px 0;
  background: linear-gradient(90deg, rgba(217, 164, 91, 0.07), transparent 80%);
}
.pullquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.9;
  color: var(--ink);
}

.about__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.about__tags li {
  font-size: 0.84rem;
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease);
}
.about__tags li:hover {
  color: var(--gold-soft);
  border-color: rgba(217, 164, 91, 0.4);
  background: rgba(217, 164, 91, 0.05);
}

/* ---------- 读书笔记 ---------- */
/* 用瀑布流排版：以后增删书目都不会留下尴尬的空位 */
.notes {
  column-count: 3;
  column-gap: 22px;
}

.note {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
  margin-bottom: 22px;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.note::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(80% 60% at 50% 0%, rgba(217, 164, 91, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}
.note:hover {
  transform: translateY(-6px);
  border-color: rgba(217, 164, 91, 0.3);
  box-shadow: 0 26px 60px -30px rgba(0, 0, 0, 0.9);
}
.note:hover::after { opacity: 1; }

.note__head { display: flex; align-items: stretch; gap: 16px; }
.note__mark {
  width: 2px;
  flex: none;
  margin: 4px 0;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), rgba(217, 164, 91, 0.08));
}
.note__head h3 {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.note__head p { font-size: 0.82rem; color: var(--muted-dim); letter-spacing: 0.08em; }

.note__body {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 2;
  flex: 1;
  text-wrap: pretty;
}

.note__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.note__tags span {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

.notes__foot {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.9rem;
  color: var(--muted-dim);
}

/* ---------- 读书观 ---------- */
.creed {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 0 46px;
  counter-reset: none;
}
.creed__item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
}
.creed__num {
  font-family: var(--serif);
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding-top: 5px;
  flex: none;
}
.creed__body h3 {
  font-family: var(--serif);
  font-size: 1.13rem;
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: 10px;
  transition: color 0.4s var(--ease);
}
.creed__item:hover .creed__body h3 { color: var(--gold-soft); }
.creed__body p {
  font-size: 0.94rem;
  line-height: 1.95;
  color: var(--muted);
  text-wrap: pretty;
}

/* ---------- 作品 ---------- */
.section#works .section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}
.section#works .section__desc { max-width: 46ch; margin-top: 0; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}
.filter {
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
  color: var(--muted);
  border: 1px solid var(--line);
  transition: all 0.35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: rgba(255, 255, 255, 0.2); }
.filter.is-active {
  color: #17130c;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: transparent;
  box-shadow: 0 10px 28px -14px rgba(217, 164, 91, 0.8);
}

.works {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.work {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.55s var(--ease), border-color 0.55s var(--ease), box-shadow 0.55s var(--ease);
}
.work:hover {
  transform: translateY(-8px);
  border-color: rgba(217, 164, 91, 0.35);
  box-shadow: 0 34px 70px -34px rgba(0, 0, 0, 0.95);
}
.work.is-hidden { display: none; }

.work__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  transition: transform 0.7s var(--ease);
}
.work:hover .work__art { transform: scale(1.04); }

/* 统一纹理层：细颗粒 + 顶部微光，让封面更像「影像」而不是纯渐变 */
.work__art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(120% 90% at 50% 0%, rgba(255, 255, 255, 0.10), transparent 58%);
  background-size: 160px 160px, auto;
  opacity: 0.5;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.work__art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, transparent 28%, rgba(6, 8, 11, 0.52) 62%, rgba(6, 8, 11, 0.94) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.work__play {
  position: absolute;
  z-index: 3;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 60px; height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #14100a;
  background: rgba(240, 236, 228, 0.92);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.work__play svg { width: 26px; height: 26px; margin-left: 2px; }
.work:hover .work__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }

.work__meta {
  position: relative;
  z-index: 3;
  margin: -58px 22px 0;
  pointer-events: none;
}
.work__meta h3 {
  font-family: var(--serif);
  font-size: 1.16rem;
  letter-spacing: 0.03em;
}
.work__meta p { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; }

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 22px 20px;
}
.work__tags span {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-soft);
}

/* ---------- 作品封面：抽象画面 ---------- */
.art-1, .art-2, .art-3, .art-4, .art-5,
.art-6, .art-7, .art-8, .art-9 { background-color: #0c1015; }

.art-1 {
  background-image:
    radial-gradient(18% 21% at 36% 40%, rgba(240, 255, 252, 0.78), transparent 64%),
    radial-gradient(44% 50% at 34% 38%, rgba(95, 208, 200, 0.82), transparent 70%),
    radial-gradient(50% 56% at 68% 62%, rgba(139, 123, 216, 0.72), transparent 72%),
    radial-gradient(64% 70% at 52% 52%, rgba(217, 164, 91, 0.26), transparent 78%),
    linear-gradient(160deg, #0a1016, #05070a);
}
.art-2 {
  background-image:
    repeating-linear-gradient(90deg, rgba(217, 164, 91, 0.5) 0 2px, transparent 2px 26px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 13px),
    linear-gradient(180deg, #1a2540 0%, #2c2138 45%, #4a2f30 78%, #0b0d12 100%);
  background-size: auto 62%, auto 48%, 100% 100%;
  background-position: bottom, bottom, center;
  background-repeat: no-repeat;
}
.art-3 {
  background-image:
    repeating-conic-gradient(from 200deg at 50% 92%, rgba(255, 205, 140, 0.11) 0 1.6deg, transparent 1.6deg 7deg),
    radial-gradient(30% 26% at 50% 84%, rgba(255, 226, 170, 0.95), transparent 66%),
    radial-gradient(62% 44% at 20% 88%, rgba(146, 42, 38, 0.62), transparent 74%),
    radial-gradient(58% 42% at 82% 86%, rgba(34, 62, 98, 0.78), transparent 74%),
    linear-gradient(180deg, #0a1420 0%, #1a1116 62%, #0a0b0f 100%);
}
.art-4 {
  background-image:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px 22px),
    radial-gradient(30% 30% at 50% 50%, rgba(255, 246, 228, 0.95), transparent 62%),
    radial-gradient(70% 70% at 50% 50%, rgba(217, 164, 91, 0.35), transparent 72%),
    linear-gradient(180deg, #10131b, #06080c);
}
.art-5 {
  background-image:
    repeating-radial-gradient(circle at 50% 108%, rgba(95, 208, 200, 0.3) 0 1px, transparent 1px 30px),
    radial-gradient(52% 48% at 50% 96%, rgba(95, 208, 200, 0.6), transparent 72%),
    linear-gradient(180deg, #0d1a17 0%, #12241e 55%, #08100e 100%);
}
.art-6 {
  background-image:
    repeating-linear-gradient(90deg, rgba(217, 164, 91, 0.42) 0 3px, transparent 3px 30px),
    repeating-linear-gradient(0deg, rgba(217, 164, 91, 0.18) 0 2px, transparent 2px 44px),
    radial-gradient(45% 55% at 50% 44%, rgba(255, 214, 150, 0.55), transparent 70%),
    linear-gradient(170deg, #20170e, #0a0a0d);
}
.art-7 {
  background-image:
    repeating-linear-gradient(120deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 18px),
    radial-gradient(55% 60% at 70% 30%, rgba(139, 123, 216, 0.7), transparent 70%),
    radial-gradient(60% 60% at 25% 75%, rgba(60, 130, 190, 0.6), transparent 72%),
    linear-gradient(180deg, #0a1420, #0a0a14);
}
.art-8 {
  background-image:
    repeating-linear-gradient(0deg, rgba(95, 208, 200, 0.16) 0 1px, transparent 1px 16px),
    repeating-linear-gradient(90deg, rgba(95, 208, 200, 0.1) 0 1px, transparent 1px 16px),
    radial-gradient(40% 50% at 30% 60%, rgba(95, 208, 200, 0.55), transparent 70%),
    radial-gradient(36% 44% at 76% 34%, rgba(217, 164, 91, 0.5), transparent 70%),
    linear-gradient(180deg, #081114, #0a0c10);
}
.art-9 {
  background-image:
    repeating-linear-gradient(96deg, rgba(255, 236, 205, 0.15) 0 1px, transparent 1px 13px),
    radial-gradient(38% 44% at 30% 34%, rgba(255, 216, 156, 0.78), transparent 70%),
    radial-gradient(46% 52% at 74% 70%, rgba(217, 164, 91, 0.6), transparent 74%),
    radial-gradient(60% 66% at 50% 50%, rgba(146, 108, 200, 0.22), transparent 78%),
    linear-gradient(170deg, #1a1207, #0a0906);
}

/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line-soft);
  padding: 40px 0;
  background: #08090c;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer__brand { display: flex; align-items: center; gap: 14px; }
.footer__brand p {
  font-family: var(--serif);
  letter-spacing: 0.14em;
  font-size: 0.98rem;
}
.footer__copy { font-size: 0.8rem; color: var(--muted-dim); }

/* 备案信息 */
.footer__beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 26px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.beian__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.3s var(--ease);
}
.beian__item:hover { color: var(--gold-soft); }
.beian__badge {
  width: 18px;
  height: 20px;
  object-fit: contain;
  flex: none;
  opacity: 0.95;
}

/* ---------- 弹窗 ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}
.modal[hidden] { display: none; }
.modal.is-open { opacity: 1; }

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 5, 8, 0.86);
  backdrop-filter: blur(10px);
}
.modal__panel {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(170deg, #12161d, #0a0d12);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.95);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.modal__close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 4;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  color: var(--ink);
  background: rgba(10, 12, 16, 0.7);
  border: 1px solid var(--line);
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.modal__close:hover { background: rgba(217, 164, 91, 0.16); color: var(--gold-soft); }

.modal__stage {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #0c1015;
}
.modal__stage video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.modal__stage.art-1 { background-image: radial-gradient(42% 52% at 32% 38%, rgba(95,208,200,.85), transparent 68%), radial-gradient(38% 46% at 68% 62%, rgba(139,123,216,.75), transparent 70%); }
.modal__stage.art-2 { background-image: linear-gradient(180deg, #1a2540, #4a2f30 75%, #0b0d12); }
.modal__stage.art-3 { background-image: radial-gradient(60% 45% at 50% 88%, rgba(217,164,91,.9), transparent 70%), linear-gradient(180deg, #0e1a24, #241512); }
.modal__stage.art-4 { background-image: repeating-radial-gradient(circle at 50% 50%, rgba(255,255,255,.14) 0 1px, transparent 1px 22px), radial-gradient(30% 30% at 50% 50%, rgba(255,246,228,.95), transparent 62%), linear-gradient(180deg, #10131b, #06080c); }
.modal__stage.art-5 { background-image: radial-gradient(52% 48% at 50% 96%, rgba(95,208,200,.6), transparent 72%), linear-gradient(180deg, #0d1a17, #08100e); }
.modal__stage.art-6 { background-image: repeating-linear-gradient(90deg, rgba(217,164,91,.42) 0 3px, transparent 3px 30px), radial-gradient(45% 55% at 50% 44%, rgba(255,214,150,.55), transparent 70%), linear-gradient(170deg, #20170e, #0a0a0d); }
.modal__stage.art-7 { background-image: radial-gradient(55% 60% at 70% 30%, rgba(139,123,216,.7), transparent 70%), linear-gradient(180deg, #0a1420, #0a0a14); }
.modal__stage.art-8 { background-image: repeating-linear-gradient(0deg, rgba(95,208,200,.16) 0 1px, transparent 1px 16px), radial-gradient(40% 50% at 30% 60%, rgba(95,208,200,.55), transparent 70%), linear-gradient(180deg, #081114, #0a0c10); }
.modal__stage.art-9 { background-image: radial-gradient(38% 44% at 30% 34%, rgba(255,216,156,.78), transparent 70%), radial-gradient(46% 52% at 74% 70%, rgba(217,164,91,.6), transparent 74%), linear-gradient(170deg, #1a1207, #0a0906); }

.modal__placeholder {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 30px;
}
.modal__play {
  width: 76px; height: 76px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(4px);
}
.modal__play svg { width: 30px; height: 30px; margin-left: 3px; }
.modal__placeholder p {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.88);
}
.modal__placeholder small {
  display: block;
  max-width: 32ch;
  margin: 10px auto 0;
  font-size: 0.78rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.44);
}

.modal__info { padding: 26px 30px 32px; }
.modal__info h3 {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.modal__meta { font-size: 0.82rem; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 14px; }
.modal__desc { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.95; }

/* ---------- 入场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.4s; }
[data-delay="6"] { transition-delay: 0.48s; }
[data-delay="7"] { transition-delay: 0.56s; }
[data-delay="8"] { transition-delay: 0.64s; }
[data-delay="9"] { transition-delay: 0.72s; }
[data-delay="10"] { transition-delay: 0.8s; }
[data-delay="11"] { transition-delay: 0.88s; }

/* ---------- 跳转链接 ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 300;
  padding: 12px 20px;
  background: var(--gold);
  color: #14100a;
  border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ---------- 响应式 ---------- */
/* 矮屏笔记本：压缩首屏纵向节奏，并让出「向下」提示的位置 */
@media (min-width: 769px) and (max-height: 800px) {
  .hero { padding: 104px 0 52px; }
  .hero__title { font-size: clamp(1.9rem, 4.4vw, 3.2rem); }
  .hero__lead { margin-top: 18px; }
  .hero__actions { margin-top: 26px; }
  .hero__stats { margin-top: 30px; padding-top: 20px; }
  .hero__scroll { display: none; }
}

@media (max-width: 1024px) {
  .about { grid-template-columns: 1fr; }
  .about__card { position: static; max-width: 420px; }
  .creed { gap: 0 32px; }
  .notes { column-count: 2; }
}

@media (max-width: 768px) {
  .wrap, .hero__inner { padding: 0 20px; }
  .nav__inner { padding: 10px 20px; }

  .nav__toggle { display: grid; }
  .nav__links {
    position: fixed;
    top: 64px;
    left: 16px; right: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: rgba(13, 16, 21, 0.96);
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a { padding: 12px 16px; border-radius: 12px; font-size: 0.98rem; }
  .nav__links a.is-active { background: rgba(217, 164, 91, 0.1); }

  .hero { padding: 116px 0 84px; }
  .hero__title { letter-spacing: 0.04em; }
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 48px;
  }
  .hero__stats > div { display: flex; align-items: baseline; gap: 12px; }
  .hero__stats dt { margin-bottom: 0; min-width: 68px; }
  .hero__scroll { display: none; }

  .btn { padding: 13px 22px; font-size: 0.9rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .section { padding: 76px 0; }
  .notes { column-count: 1; }
  .works { grid-template-columns: 1fr; }
  .about__portrait { aspect-ratio: 1 / 0.86; }
  .modal__info { padding: 22px 22px 26px; }
}

@media (max-width: 420px) {
  .hero__title { font-size: 1.95rem; }
  .hero__eyebrow { font-size: 0.74rem; letter-spacing: 0.1em; }
}

/* ---------- 无障碍：减弱动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero__canvas { display: none; }
}
