/* =========================================================
   陈墨 · Portfolio — 单页 · 深色玻璃拟态
   纯 CSS，无构建工具。所有路径相对。
   ========================================================= */

/* ---------- 1. 变量 ---------- */
:root {
  --bg: #07070b;
  --bg-soft: #0b0b12;
  --ink: #f4f4f7;
  --muted: rgba(244, 244, 247, 0.62);
  --muted-2: rgba(244, 244, 247, 0.42);
  --line: rgba(255, 255, 255, 0.10);
  --line-strong: rgba(255, 255, 255, 0.22);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.07);

  --accent: #8b5cf6;
  --accent-2: #22d3ee;
  --accent-3: #f472b6;
  --lime: #b8ff5c;

  --pad: clamp(20px, 5vw, 56px);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1180px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "HarmonyOS Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", sans-serif;
  --font-cn-display: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
}

/* ---------- 2. Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv01";
}

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

::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

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

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-size: 14px;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- 3. 布局工具 ---------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  position: relative;
  padding-block: clamp(80px, 12vh, 150px);
}

.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }

.section__title {
  font-family: var(--font-cn-display);
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.section__title .muted {
  display: block;
  margin-top: 10px;
  font-size: 0.44em;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--muted-2);
  text-transform: uppercase;
}

.section__desc {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  max-width: 54ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(184, 255, 92, 0.6);
  animation: pulse 2.6s var(--ease) infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(184, 255, 92, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(184, 255, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(184, 255, 92, 0); }
}

.grad {
  background: linear-gradient(100deg, #c4b5fd 0%, #8b5cf6 32%, #22d3ee 68%, #b8ff5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 200% 100%;
  animation: shift 9s ease-in-out infinite;
}

@keyframes shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- 4. 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.3s, border-color 0.3s, box-shadow 0.4s;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn--primary {
  background: linear-gradient(180deg, #fff, #e6e6ea);
  color: #08080c;
  box-shadow: 0 8px 24px -8px rgba(255, 255, 255, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(255, 255, 255, 0.45);
}

.btn--ghost {
  background: var(--glass);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover {
  background: var(--glass-2);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.btn--sm { padding: 9px 18px; font-size: 0.84rem; }

/* ---------- 5. 装饰层 ---------- */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-2%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-3%, -3%); }
  80% { transform: translate(2%, 2%); }
}

.spotlight {
  position: fixed;
  top: 0;
  left: 0;
  width: 620px;
  height: 620px;
  margin: -310px 0 0 -310px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14), transparent 62%);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
body.has-pointer .spotlight { opacity: 1; }

.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.aurora__blob--1 {
  width: 46vw; height: 46vw;
  top: -14vw; left: -8vw;
  background: radial-gradient(circle, #6d3ff0, transparent 62%);
  animation: drift1 22s ease-in-out infinite;
}
.aurora__blob--2 {
  width: 40vw; height: 40vw;
  top: 18vh; right: -12vw;
  background: radial-gradient(circle, #0f7d94, transparent 64%);
  animation: drift2 26s ease-in-out infinite;
  opacity: 0.42;
}
.aurora__blob--3 {
  width: 34vw; height: 34vw;
  bottom: -10vw; left: 26vw;
  background: radial-gradient(circle, #b93f8d, transparent 66%);
  opacity: 0.22;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(6vw, 7vh) scale(1.12); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-7vw, 9vh) scale(1.08); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(9vw, -6vh) scale(1.15); }
}

main, .nav, .footer { position: relative; z-index: 3; }

/* ---------- 6. 导航 ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 14px var(--pad);
  transition: padding 0.4s var(--ease);
  pointer-events: none;
}

.nav__inner {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background 0.45s var(--ease), border-color 0.45s, box-shadow 0.45s, backdrop-filter 0.4s;
  pointer-events: auto;
}

.nav.is-scrolled .nav__inner {
  background: rgba(10, 10, 16, 0.55);
  border-color: var(--line);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}
.brand__mark {
  width: 30px; height: 30px;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, rgba(139, 92, 246, 0.9), rgba(34, 211, 238, 0.6));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 6px 18px -8px rgba(139, 92, 246, 0.9);
}
.brand__mark svg { width: 19px; height: 19px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; }
.brand__text em {
  font-style: normal;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--muted-2);
  font-weight: 500;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav__links a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.3s, background 0.3s;
}
.nav__links a span {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  transition: color 0.3s;
}
.nav__links a:hover,
.nav__links a.is-active { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav__links a:hover span,
.nav__links a.is-active span { color: var(--accent-2); }

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

.nav__burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--glass);
  cursor: pointer;
  position: relative;
}
.nav__burger span {
  position: absolute;
  left: 12px;
  width: 16px; height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.nav__burger span:nth-child(1) { top: 16px; }
.nav__burger span:nth-child(2) { top: 22px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(3px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3px) rotate(-45deg); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: clamp(110px, 15vh, 160px);
  padding-bottom: clamp(70px, 10vh, 110px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hero__copy { min-width: 0; }
.about__copy { min-width: 0; }

.hero__title {
  font-family: var(--font-cn-display);
  font-size: clamp(2.5rem, 5.6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin-bottom: 26px;
}

.hero__lede {
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(0.96rem, 1.35vw, 1.08rem);
  line-height: 1.8;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero__stats {
  display: flex;
  gap: clamp(20px, 3.4vw, 44px);
  margin-top: clamp(38px, 6vh, 58px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero__stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero__stats dt { font-size: 0.72rem; color: var(--muted-2); letter-spacing: 0.1em; }
.hero__stats dd {
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero__stats dd span { font-size: 0.5em; margin-left: 3px; color: var(--muted-2); font-weight: 400; }

/* 右侧舞台 */
.hero__stage {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.stage__glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.30), rgba(34, 211, 238, 0.10) 45%, transparent 68%);
  filter: blur(28px);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.panel {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  box-shadow: 0 30px 70px -34px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 22px;
  transform-style: preserve-3d;
}

.panel--main { width: 100%; max-width: 380px; padding: 26px; }

.panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel__label {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.panel__signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--lime);
}
.panel__signal i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 8px var(--lime);
  animation: blink 1.8s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

.panel__title {
  font-size: 1.32rem;
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.panel__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.panel__meta span {
  font-size: 0.68rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.panel__viz {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 96px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.viz__bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, rgba(196, 181, 253, 0.95), rgba(34, 211, 238, 0.35));
  transform-origin: bottom;
  animation: bar 3.4s var(--ease) infinite alternate;
  animation-delay: calc(var(--h) * -0.02s);
}
@keyframes bar {
  from { transform: scaleY(0.55); opacity: 0.55; }
  to { transform: scaleY(1); opacity: 1; }
}

.panel--float {
  position: absolute;
  padding: 18px 20px;
  border-radius: 18px;
  min-width: 150px;
}
.panel--a {
  top: 4%;
  right: -14%;
  animation: floaty 7s ease-in-out infinite;
}
.panel--b {
  bottom: 4%;
  left: -14%;
  animation: floaty 8.5s ease-in-out infinite reverse;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-13px); }
}

.panel__big {
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-top: 6px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.panel__big em {
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.swatches { display: flex; gap: 6px; margin-top: 14px; }
.swatches i {
  width: 20px; height: 20px;
  border-radius: 7px;
  background: var(--s);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.meter {
  margin-top: 14px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}
.meter span {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: fill 2.6s var(--ease) both;
}
@keyframes fill { from { width: 0; } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.scroll-cue__line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue__line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent, #fff);
  animation: drop 2.4s ease-in-out infinite;
}
@keyframes drop {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}

/* ---------- 8. 作品 ---------- */
.works {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.work {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.55s var(--ease), border-color 0.45s, box-shadow 0.5s;
}
.work:hover {
  --lift: -6px;
  border-color: var(--line-strong);
  box-shadow: 0 34px 66px -34px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.03);
}
.work::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.45s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.08), transparent 60%);
}
.work:hover::after { opacity: 1; }

.work--wide { grid-column: 1 / -1; }

.work__link { display: flex; flex-direction: column; height: 100%; }
.work--wide .work__link { flex-direction: row; align-items: stretch; }
.work--wide .work__art { flex: 1.05; min-height: 300px; }
.work--wide .work__body { flex: 1; justify-content: center; padding: clamp(26px, 3vw, 44px); }

.work__art {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: #0d0d15;
  background-image:
    radial-gradient(120% 130% at 12% 0%, color-mix(in srgb, var(--c1) 66%, transparent), transparent 62%),
    radial-gradient(110% 120% at 92% 100%, color-mix(in srgb, var(--c2) 46%, transparent), transparent 58%);
}
.work__art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(120% 100% at 50% 50%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 100% at 50% 50%, #000 20%, transparent 78%);
}
.work__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 11, 0) 30%, rgba(7, 7, 11, 0.55) 100%);
}

.work__index {
  position: absolute;
  top: 16px;
  left: 18px;
  z-index: 2;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.8);
  font-variant-numeric: tabular-nums;
}

.work__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 26px 28px;
}

.work__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.work__tags span {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.work__title {
  font-size: clamp(1.08rem, 1.7vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
}
.work__text {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.72;
  max-width: 46ch;
}

.work__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted-2);
  transition: color 0.35s, gap 0.35s var(--ease);
}
.work__more svg { width: 16px; height: 16px; }
.work:hover .work__more { color: #fff; gap: 12px; }

/* 补位卡片：更多作品 */
.work--more {
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.018);
}
.work--more .work__link {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 36px 28px;
}
.more__icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  margin-bottom: 8px;
  transition: transform 0.5s var(--ease), background 0.35s, color 0.35s, border-color 0.35s;
}
.more__icon svg { width: 18px; height: 18px; }
.work--more:hover .more__icon {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.more__title {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.more__text {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}
.work--more .work__more { margin-top: 12px; }

/* 卡片内图形 */
.art__rings { position: absolute; inset: 0; display: grid; place-items: center; }
.art__rings i {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.art__rings i:nth-child(1) { width: 150px; height: 150px; }
.art__rings i:nth-child(2) { width: 230px; height: 230px; border-color: rgba(255, 255, 255, 0.16); }
.art__rings i:nth-child(3) {
  width: 320px; height: 320px;
  border-color: rgba(255, 255, 255, 0.08);
  animation: spin 26s linear infinite;
  border-style: dashed;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 主推作品封面里的控制台小样 */
.art__ui {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  max-width: 250px;
  aspect-ratio: 16 / 10;
  transform: translate(-50%, -50%) rotate(-3deg);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 26px 52px -22px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  animation: ui-float 9s ease-in-out infinite;
}
@keyframes ui-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-3deg); }
  50% { transform: translate(-50%, calc(-50% - 10px)) rotate(-3deg); }
}
.ui__bar {
  width: 42%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.6);
}
.ui__row { display: flex; gap: 6px; }
.ui__row i {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
}
.ui__row i:first-child { background: rgba(255, 255, 255, 0.62); }
.ui__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  flex: 1;
}
.ui__grid b {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ui__grid b:nth-child(2) {
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.45), rgba(139, 92, 246, 0.25));
  border-color: rgba(34, 211, 238, 0.35);
}

.art__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-cn-display);
  font-size: 5.6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 12px 46px rgba(0, 0, 0, 0.55);
}

.art__dots { position: absolute; inset: 0; }
.art__dots i {
  position: absolute;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}
.art__dots i:nth-child(1) { top: 24%; left: 22%; }
.art__dots i:nth-child(2) { top: 62%; left: 34%; width: 6px; height: 6px; }
.art__dots i:nth-child(3) { top: 38%; left: 52%; width: 12px; height: 12px; }
.art__dots i:nth-child(4) { top: 72%; left: 64%; width: 7px; height: 7px; }
.art__dots i:nth-child(5) { top: 26%; left: 74%; }
.art__dots i:nth-child(6) { top: 50%; left: 84%; width: 5px; height: 5px; }
.art__dots i:nth-child(7) { top: 80%; left: 88%; width: 8px; height: 8px; }
.art__dots i::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  animation: ping 3s var(--ease) infinite;
}
.art__dots i:nth-child(2n)::after { animation-delay: 1.2s; }
@keyframes ping {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(2.6); opacity: 0; }
}

.art__wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.art__wave i {
  width: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.85);
  animation: wave 1.8s ease-in-out infinite alternate;
}
.art__wave i:nth-child(1) { height: 22%; animation-delay: 0s; }
.art__wave i:nth-child(2) { height: 46%; animation-delay: 0.1s; }
.art__wave i:nth-child(3) { height: 70%; animation-delay: 0.2s; }
.art__wave i:nth-child(4) { height: 40%; animation-delay: 0.3s; }
.art__wave i:nth-child(5) { height: 88%; animation-delay: 0.4s; }
.art__wave i:nth-child(6) { height: 52%; animation-delay: 0.5s; }
.art__wave i:nth-child(7) { height: 76%; animation-delay: 0.6s; }
.art__wave i:nth-child(8) { height: 34%; animation-delay: 0.7s; }
.art__wave i:nth-child(9) { height: 60%; animation-delay: 0.8s; }
@keyframes wave {
  to { transform: scaleY(0.45); opacity: 0.55; }
}

.art__logo {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.06em;
}
.art__logo::before {
  content: "";
  position: absolute;
  width: 132px; height: 132px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.art__sun {
  position: absolute;
  top: 50%; left: 50%;
  width: 120px; height: 120px;
  margin: -60px 0 0 -60px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff, rgba(255, 255, 255, 0.25) 62%, transparent 72%);
  box-shadow: 0 0 60px rgba(255, 255, 255, 0.35);
}
.art__sun::after {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  animation: ping 4s var(--ease) infinite;
}

/* ---------- 9. 跑马灯 ---------- */
.marquee-section {
  padding-block: clamp(24px, 4vw, 40px);
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden;
}
.marquee {
  display: flex;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  white-space: nowrap;
  animation: scroll-x 38s linear infinite;
  will-change: transform;
}
.marquee-section:hover .marquee__track { animation-play-state: paused; }
.marquee__track span {
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: rgba(244, 244, 247, 0.78);
  letter-spacing: 0.01em;
}
.marquee__track i { color: var(--accent); font-size: 0.55rem; font-style: normal; opacity: 0.8; }
@keyframes scroll-x { to { transform: translateX(-50%); } }

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

.about__visual { position: relative; }

.about__frame {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 1);
}
.about__frame img { width: 100%; height: auto; }
.about__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 60px rgba(139, 92, 246, 0.18);
  pointer-events: none;
}

.about__badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(14, 14, 20, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 46px -24px rgba(0, 0, 0, 0.95);
}
.about__badge-num {
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__badge-txt { font-size: 0.7rem; line-height: 1.4; color: var(--muted); }

.about__text {
  color: var(--muted);
  font-size: clamp(0.94rem, 1.25vw, 1.02rem);
  line-height: 1.85;
  max-width: 52ch;
  margin-top: 18px;
}

.timeline {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
}
.timeline li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline__year {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.timeline h4 {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 5px;
}
.timeline p { font-size: 0.86rem; color: var(--muted); line-height: 1.7; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}
.chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.3s, border-color 0.3s, transform 0.35s var(--ease);
}
.chips li:hover {
  color: #fff;
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

/* ---------- 11. 联系 ---------- */
.section--contact { padding-bottom: clamp(90px, 12vh, 140px); }

.contact {
  position: relative;
  padding: clamp(38px, 6vw, 76px) clamp(24px, 5vw, 68px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  overflow: hidden;
  text-align: center;
  box-shadow: 0 50px 100px -60px rgba(0, 0, 0, 1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.contact__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 620px;
  height: 620px;
  margin-left: -310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), rgba(34, 211, 238, 0.1) 42%, transparent 66%);
  filter: blur(40px);
  pointer-events: none;
  animation: breathe 10s ease-in-out infinite;
}

.contact__title {
  position: relative;
  font-family: var(--font-cn-display);
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.contact__title .grad { display: inline-block; }

.contact__text {
  position: relative;
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.mail {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.96rem;
  transition: background 0.35s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.mail:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -20px rgba(139, 92, 246, 0.9);
}
.mail__label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding-right: 14px;
  border-right: 1px solid var(--line);
}
.mail__addr { font-weight: 500; letter-spacing: 0.01em; }
.mail svg { width: 17px; height: 17px; color: var(--muted); }

.socials {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(16px, 3vw, 34px);
  margin-top: 38px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.socials a {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  position: relative;
  transition: color 0.3s;
}
.socials a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.socials a:hover { color: #fff; }
.socials a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- 12. 页脚 ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  font-size: 0.76rem;
  color: var(--muted-2);
  letter-spacing: 0.02em;
}
.footer__hint {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.64rem;
  color: rgba(244, 244, 247, 0.28);
}

/* ---------- 13. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  transform: translate(-50%, 24px);
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  font-size: 0.82rem;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s var(--ease), opacity 0.35s;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 14. 入场动画 ---------- */
/* 用 animation 而不是 transition，把 transform 留给卡片倾斜 */
/* 只在「支持脚本且脚本已执行」时隐藏，避免 JS 失效导致整页空白 */
@media (scripting: enabled) {
  [data-reveal] {
    opacity: 0;
    translate: 0 26px;
    filter: blur(8px);
  }
}
[data-reveal].is-in {
  animation: reveal-in 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes reveal-in {
  from { opacity: 0; translate: 0 26px; filter: blur(8px); }
  to { opacity: 1; translate: 0 0; filter: blur(0); }
}

/* 卡片倾斜 */
[data-tilt] {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
  transition: transform 0.55s var(--ease), border-color 0.45s, box-shadow 0.5s;
  will-change: transform;
}
.panel[data-tilt] { transition: transform 0.5s var(--ease), box-shadow 0.5s; }

/* ---------- 15. 响应式 ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 56px; }
  .hero { min-height: auto; padding-top: 130px; }
  .hero__stage { min-height: 420px; max-width: 460px; width: 100%; margin-inline: auto; }
  .panel--float.panel--a { right: -18%; }
  .panel--float.panel--b { left: -18%; }
  .about { grid-template-columns: 1fr; }
  .about__visual { max-width: 420px; }
  .about__badge { right: 8px; }
}

@media (max-width: 820px) {
  .nav__inner { padding: 8px 10px 8px 14px; }
  .nav__links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px;
    border-radius: 20px;
    border: 1px solid var(--line);
    background: rgba(12, 12, 18, 0.94);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
  }
  .nav__links a { padding: 13px 16px; font-size: 1rem; }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__burger { display: block; }
  .nav__actions .btn { display: none; }
  .nav__inner { position: relative; }

  .works { grid-template-columns: 1fr; }
  .work--wide .work__link { flex-direction: column; }
  .work--wide .work__art { min-height: 230px; }

  .timeline li { grid-template-columns: 1fr; gap: 6px; padding: 16px 0; }
  .timeline__year { padding-top: 0; }

  .footer__inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .hero__stats { gap: 18px; }
  .hero__stats dt { font-size: 0.66rem; }
  .hero__cta .btn { flex: 1; }
  .btn { padding: 13px 20px; }
  .panel--float { display: none; }
  .hero__stage { min-height: 340px; }
  .work__body { padding: 20px 20px 24px; }
  .contact { border-radius: 26px; }
  .mail { width: 100%; justify-content: space-between; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .scroll-cue { display: none; }
  .about__badge { position: static; margin-top: 14px; width: fit-content; }
}

/* ---------- 16. 无障碍 / 减少动效 ---------- */
@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;
  }
  [data-reveal] { opacity: 1; translate: 0 0; filter: none; }
  [data-reveal].is-in { animation-delay: 0ms !important; }
}

/* 不支持 backdrop-filter 的降级 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .panel,
  .work,
  .contact,
  .nav.is-scrolled .nav__inner,
  .about__frame { background-color: rgba(16, 16, 24, 0.92); }
}

/* 打印 */
@media print {
  .nav, .scroll-cue, .aurora, .grain, .spotlight, .toast { display: none !important; }
  body { background: #fff; color: #111; }
  [data-reveal] { opacity: 1 !important; filter: none !important; translate: none !important; }
}
