/* ============================================================
 * AI-Design — 主页样式（和纸刊物 / Washi Editorial）
 * ============================================================ */

:root {
  /* 深色主题：墨黑 + 米白字 */
  --bg: #161513;
  --bg-rgb: 22, 21, 19;
  --bg-soft: #1f1d1a;
  --ink: #f0ebe0;
  --ink-soft: #c5bcab;
  --ink-muted: #837a6a;
  --line: rgba(240, 235, 224, 0.14);
  --line-strong: rgba(240, 235, 224, 0.32);

  /* 点缀色：朱砂、鸽藏青、金箔 */
  --teal: #d4574e; /* 朱砂（沿用 var 名，保持兼容） */
  --teal-dim: #a83a32;
  --violet: #2b4c7e; /* 鸽藏青 */
  --blue: #5a7ca8; /* 深青 */
  --amber: #c9a55a; /* 金箔 */
  --ink-stamp: #c9302a; /* 印章朱红 */

  --grad-brand: linear-gradient(135deg, #d4574e 0%, #c9a55a 55%, #2b4c7e 100%);
  --grad-ink: linear-gradient(135deg, #f0ebe0 0%, #d4574e 80%);

  --font-display: "Fraunces", "Noto Serif SC", "宋体", serif;
  --font-body: "Inter", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  --radius: 6px;
  --radius-lg: 12px;
  --pad-x: clamp(20px, 5vw, 80px);

  /* 极轻和纸纹（暗色下白色微噪点）*/
  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.008 0.45' numOctaves='2' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23f)'/%3E%3C/svg%3E");
}

/* 亮色主题：米白和纸 + 墨黑字 */
:root[data-theme="light"] {
  --bg: #f5f1e8;
  --bg-rgb: 245, 241, 232;
  --bg-soft: #fbf8f1;
  --ink: #1a1916;
  --ink-soft: #4a4640;
  --ink-muted: #7a7468;
  --line: rgba(26, 25, 22, 0.14);
  --line-strong: rgba(26, 25, 22, 0.32);

  --teal: #c9302a;
  --teal-dim: #a82822;
  --violet: #2b4c7e;
  --blue: #3a5f8f;
  --amber: #a8842a;
  --ink-stamp: #c9302a;

  --grad-brand: linear-gradient(135deg, #c9302a 0%, #a8842a 55%, #2b4c7e 100%);
  --grad-ink: linear-gradient(135deg, #1a1916 0%, #c9302a 80%);

  --paper-noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  --paper-fiber: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.008 0.45' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='600' height='600' filter='url(%23f)'/%3E%3C/svg%3E");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper-fiber), var(--paper-noise), var(--bg);
  background-attachment: fixed, fixed, fixed;
  background-size:
    600px 600px,
    240px 240px,
    auto;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  list-style: none;
}
em {
  font-style: italic;
  font-family: var(--font-display);
  font-weight: 500;
}
u {
  text-decoration: none;
  border-bottom: 1px dashed var(--teal);
  padding-bottom: 1px;
  color: var(--ink);
}

/* ============================================================
 * 背景层
 * ============================================================ */
.bg-stage {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  width: 70vw;
  height: 70vw;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.22;
  mix-blend-mode: screen;
  animation: drift 28s ease-in-out infinite alternate;
}
.aurora-1 {
  background: radial-gradient(circle, var(--teal) 0%, transparent 60%);
  top: -20vw;
  left: -15vw;
}
.aurora-2 {
  background: radial-gradient(circle, var(--violet) 0%, transparent 60%);
  bottom: -20vw;
  right: -15vw;
  animation-delay: -8s;
}
.aurora-3 {
  background: radial-gradient(circle, var(--amber) 0%, transparent 60%);
  top: 30vh;
  left: 35vw;
  opacity: 0.14;
  animation-delay: -16s;
}
[data-theme="light"] .aurora {
  mix-blend-mode: multiply;
  opacity: 0.12;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8vw, -4vw) scale(1.08);
  }
  100% {
    transform: translate(-6vw, 5vw) scale(0.96);
  }
}

.grid-floor {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    transparent 75%
  );
  opacity: 0.5;
}

.bg-neural {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.85;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: var(--paper-noise);
  background-size: 240px 240px;
  pointer-events: none;
}

/* ============================================================
 * 顶部导航
 * ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px var(--pad-x);
  backdrop-filter: blur(14px) saturate(160%);
  background: linear-gradient(
    180deg,
    rgba(var(--bg-rgb), 0.7) 0%,
    rgba(var(--bg-rgb), 0.3) 100%
  );
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.05em;
}
.brand-text {
  font-size: 13px;
}
.brand-text em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--teal);
  margin-left: 2px;
}
.brand-mark {
  display: inline-flex;
}
.brand-mark .mark-poly {
  transform-origin: 16px 16px;
  animation: spin 24s linear infinite;
}
.brand-mark .mark-core {
  transform-origin: 16px 16px;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.6;
  }
}

.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
.nav-links a {
  position: relative;
  color: var(--ink-soft);
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.3s ease;
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
}
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px var(--teal);
  animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-meta {
    display: none;
  }
}

/* ============================================================
 * HERO
 * ============================================================ */
.hero {
  position: relative;
  padding: clamp(60px, 12vh, 140px) var(--pad-x) clamp(80px, 14vh, 160px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  min-height: 92vh;
}

.hero-tag {
  grid-column: 1 / -1;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  margin-bottom: 12px;
}
.ticker {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.16em;
  animation: ticker 28s linear infinite;
  padding-left: 100%;
}
@keyframes ticker {
  to {
    transform: translateX(-100%);
  }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
}
.hero-title em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-ink);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-title .grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 500;
}

.hero-lead {
  margin-top: 28px;
  max-width: 480px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.hero-actions {
  margin-top: 36px;
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.3s ease,
    background 0.3s ease;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-brand);
  color: #06121a;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(94, 234, 212, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(94, 234, 212, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  background: rgba(94, 234, 212, 0.05);
  border-color: var(--teal);
}

/* HERO 中央图 */
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 8 / 5;
}
.hero-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* SVG 内部动画 */
.ring {
  transform-box: fill-box;
  transform-origin: 0 0;
}
.ring-1 {
  animation: spin 28s linear infinite;
}
.ring-2 {
  animation: spin 36s linear infinite reverse;
}
.ring-3 {
  animation: spin 22s linear infinite;
}
.ring-node {
  filter: drop-shadow(0 0 6px currentColor);
}

.core-glow {
  transform-origin: center;
  animation: corePulse 4s ease-in-out infinite;
}
.core-dot {
  animation: corePulse 2s ease-in-out infinite;
}
@keyframes corePulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.7;
  }
}

.morph-shape polygon {
  transform-origin: center;
  animation:
    morphRot 16s linear infinite,
    morphScale 6s ease-in-out infinite;
}
@keyframes morphRot {
  to {
    transform: rotate(360deg);
  }
}
@keyframes morphScale {
  0%,
  100% {
    stroke-width: 1.2;
  }
  50% {
    stroke-width: 2.6;
  }
}

.stream {
  stroke-dasharray: 6 10;
  animation: streamFlow 3s linear infinite;
}
.stream-d2 {
  animation-delay: -0.6s;
}
.stream-d3 {
  animation-delay: -1.2s;
}
.stream-d4 {
  animation-delay: -1.8s;
}
@keyframes streamFlow {
  to {
    stroke-dashoffset: -64;
  }
}

.scroll-hint {
  position: absolute;
  left: var(--pad-x);
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 0.18em;
}
.scroll-line {
  display: inline-block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 200% 100%;
  animation: scrollSlide 2.4s linear infinite;
}
@keyframes scrollSlide {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 60px;
  }
  .hero-art {
    order: -1;
    aspect-ratio: 1.4 / 1;
  }
}

/* ============================================================
 * 通用区块
 * ============================================================ */
.section-head {
  padding: clamp(60px, 10vh, 120px) var(--pad-x) 36px;
  display: grid;
  gap: 14px;
  max-width: 980px;
}
.section-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--teal);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: italic;
  font-weight: 500;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-desc {
  max-width: 580px;
  color: var(--ink-soft);
  font-size: 15px;
  margin-top: 4px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* ============================================================
 * INTRO
 * ============================================================ */
.intro {
  padding-bottom: 30px;
}
.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  padding: 0 var(--pad-x);
}
.intro-card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.025) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  overflow: hidden;
  transition:
    border-color 0.35s ease,
    transform 0.4s ease;
}
.intro-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(94, 234, 212, 0.12),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.intro-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-4px);
}
.intro-card:hover::before {
  opacity: 1;
}
.intro-icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(94, 234, 212, 0.06);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
.intro-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.intro-card p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ============================================================
 * WORKS
 * ============================================================ */
.works {
  padding-bottom: 60px;
}
.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  padding: 0 var(--pad-x);
}
.work-card {
  display: block;
  position: relative;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.5s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(94, 234, 212, 0.15);
}
.work-cover {
  position: relative;
  aspect-ratio: 4 / 2.6;
  overflow: hidden;
}
.work-cover svg {
  width: 100%;
  height: 100%;
  display: block;
}
.work-cover-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 50%,
    rgba(var(--bg-rgb), 0.85) 100%
  );
  pointer-events: none;
}
.work-cover-empty {
  display: grid;
  place-items: center;
  background: repeating-linear-gradient(
    45deg,
    rgba(94, 234, 212, 0.04) 0 10px,
    transparent 10px 20px
  );
}

.work-card .warp-card-bubble {
  animation: warpFloat 5s ease-in-out infinite;
}
@keyframes warpFloat {
  0%,
  100% {
    transform: translate(200px, 130px) scaleX(1);
  }
  50% {
    transform: translate(208px, 130px) scaleX(1.05);
  }
}

.svg-card-shapes > * {
  transform-origin: center;
  animation: shapeBob 4s ease-in-out infinite;
}
.svg-card-shapes > *:nth-child(2) {
  animation-delay: -1s;
}
.svg-card-shapes > *:nth-child(3) {
  animation-delay: -2s;
}
.svg-card-shapes > *:nth-child(4) {
  animation-delay: -3s;
}
@keyframes shapeBob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-6px) rotate(2deg);
  }
}
.svg-card-pulse circle {
  animation: pulse 2s ease-in-out infinite;
}
.svg-card-pulse circle:nth-child(2) {
  animation-delay: -0.6s;
}
.svg-card-pulse circle:nth-child(3) {
  animation-delay: -1.2s;
}

.work-meta {
  padding: 22px 24px 26px;
}
.work-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.work-id {
  color: var(--teal);
}
.work-tag {
  padding: 2px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.work-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.work-sub {
  color: var(--ink-soft);
  font-size: 13px;
}
.work-go {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  width: 100%;
  color: var(--teal);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: gap 0.3s ease;
}
.work-card:hover .work-go {
  gap: 14px;
}
.work-card-coming {
  opacity: 0.55;
  pointer-events: none;
}

/* ============================================================
 * PROCESS
 * ============================================================ */
.process {
  padding-bottom: 80px;
}
.process-list {
  padding: 0 var(--pad-x);
  display: grid;
  gap: 0;
  max-width: 1000px;
}
.process-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px dashed var(--line);
  align-items: baseline;
  transition: padding-left 0.35s ease;
  position: relative;
}
.process-list li:hover {
  padding-left: 12px;
}
.process-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--teal);
  transition: width 0.35s ease;
}
.process-list li:hover::before {
  width: 8px;
}
.step-num {
  font-family: var(--font-mono);
  color: var(--teal);
  font-size: 14px;
  letter-spacing: 0.1em;
}
.step-body h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 22px;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.step-body p {
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 640px;
}

/* ============================================================
 * FOOTER
 * ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px var(--pad-x) 30px;
  background: linear-gradient(180deg, transparent, rgba(94, 234, 212, 0.03));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.footer-brand p {
  color: var(--ink-soft);
  margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 14px;
}
.footer-col ul {
  display: grid;
  gap: 8px;
}
.footer-col a {
  color: var(--ink);
  transition: color 0.25s ease;
}
.footer-col a:hover {
  color: var(--teal);
}
.footer-col p {
  color: var(--ink-soft);
  font-size: 13px;
  margin-bottom: 6px;
}
.footer-baseline {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}
@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-baseline {
    flex-direction: column;
    gap: 8px;
  }
}

/* ============================================================
 * 主题按钮 + 亮色专属调整
 * ============================================================ */
.theme-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
  flex-shrink: 0;
}
.theme-btn:hover {
  border-color: var(--teal);
  background: rgba(94, 234, 212, 0.06);
  transform: rotate(20deg);
}
.theme-btn:active {
  transform: scale(0.94);
}
.theme-btn svg {
  position: absolute;
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-theme="dark"] .theme-btn .icon-sun {
  opacity: 1;
  transform: rotate(0) scale(1);
}
[data-theme="dark"] .theme-btn .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}
[data-theme="light"] .theme-btn .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}
[data-theme="light"] .theme-btn .icon-moon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

/* —— 亮色：调整背景层视觉强度 —— */
[data-theme="light"] .aurora {
  opacity: 0.22;
  mix-blend-mode: multiply;
  filter: blur(140px);
}
[data-theme="light"] .aurora-1 {
  background: radial-gradient(circle, #0d9488 0%, transparent 60%);
}
[data-theme="light"] .aurora-2 {
  background: radial-gradient(circle, #7c3aed 0%, transparent 60%);
}
[data-theme="light"] .aurora-3 {
  background: radial-gradient(circle, #2563eb 0%, transparent 60%);
  opacity: 0.14;
}

[data-theme="light"] .grid-floor {
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.08) 1px, transparent 1px);
}

[data-theme="light"] .noise {
  opacity: 0.04;
  mix-blend-mode: multiply;
}

[data-theme="light"] .bg-neural {
  opacity: 0.55;
}

[data-theme="light"] .nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.55) 100%
  );
}

[data-theme="light"] u {
  color: var(--ink);
  border-bottom-color: var(--teal);
}

[data-theme="light"] .btn-primary {
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(13, 148, 136, 0.25);
}
[data-theme="light"] .btn-primary:hover {
  box-shadow: 0 14px 40px rgba(13, 148, 136, 0.4);
}
[data-theme="light"] .btn-ghost:hover {
  background: rgba(13, 148, 136, 0.06);
}

[data-theme="light"] .intro-card {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}
[data-theme="light"] .intro-card::before {
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 0%),
    rgba(13, 148, 136, 0.14),
    transparent 60%
  );
}
[data-theme="light"] .intro-icon {
  background: rgba(13, 148, 136, 0.08);
}

[data-theme="light"] .work-card {
  background: var(--bg-soft);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}
[data-theme="light"] .work-card:hover {
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(13, 148, 136, 0.18);
}
[data-theme="light"] .work-cover svg rect[fill="#0a0f14"],
[data-theme="light"] .work-cover svg rect[fill="#0b0a14"] {
  fill: #0e1117;
}

[data-theme="light"] .footer {
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.05));
}

[data-theme="light"] .ticker {
  color: var(--ink-muted);
}
[data-theme="light"] .scroll-line {
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  background-size: 200% 100%;
}

/* ============================================================
   牛皮纸主题：重映射页面中硬编码的原色 SVG 颜色
   原色： #5eead4 青绿 / #a78bfa 紫 / #60a5fa 蓝 / #fef3c7 金
   映射为：金黄印油 / 陶红 / 藏青 / 高光金
   ============================================================ */
svg [stroke="#5eead4"] {
  stroke: var(--teal);
}
svg [fill="#5eead4"] {
  fill: var(--teal);
}
svg [stop-color="#5eead4"] {
  stop-color: var(--teal);
}

svg [stroke="#a78bfa"] {
  stroke: var(--violet);
}
svg [fill="#a78bfa"] {
  fill: var(--violet);
}
svg [stop-color="#a78bfa"] {
  stop-color: var(--violet);
}

svg [stroke="#60a5fa"] {
  stroke: var(--blue);
}
svg [fill="#60a5fa"] {
  fill: var(--blue);
}
svg [stop-color="#60a5fa"] {
  stop-color: var(--blue);
}

svg [fill="#fef3c7"] {
  fill: var(--amber);
}
svg [stop-color="#fef3c7"] {
  stop-color: var(--amber);
}


/* ============================================================
   和纸主题：导航、按钮、卡片的细节重调
   ============================================================ */
.nav {
  border-bottom: 1px solid var(--line) !important;
}
[data-theme="dark"] .nav {
  background: linear-gradient(
    180deg,
    rgba(22, 21, 19, 0.92),
    rgba(22, 21, 19, 0.7)
  ) !important;
  backdrop-filter: blur(8px);
}
[data-theme="light"] .nav {
  background: linear-gradient(
    180deg,
    rgba(245, 241, 232, 0.92),
    rgba(245, 241, 232, 0.7)
  ) !important;
  backdrop-filter: blur(8px);
}

/* 头部 logo：轻微旋转 */
.brand .brand-mark {
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.brand:hover .brand-mark {
  transform: rotate(-6deg);
}

/* 主 CTA 按钮：墨色实心 + 朱砂落影 */
.btn-primary {
  background: var(--ink) !important;
  color: var(--bg) !important;
  border-radius: var(--radius) !important;
  border: 1px solid var(--ink) !important;
  box-shadow: 3px 3px 0 0 var(--ink-stamp) !important;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease !important;
}
.btn-primary:hover {
  transform: translate(-1px, -1px) !important;
  box-shadow: 4px 4px 0 0 var(--ink-stamp) !important;
}
.btn-primary:active {
  transform: translate(2px, 2px) !important;
  box-shadow: 0 0 0 0 var(--ink-stamp) !important;
}

/* 次要按钮 */
.btn-ghost {
  border-color: var(--line-strong) !important;
}
.btn-ghost:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
}

/* 作品卡 / 介绍卡：纸张感更薄、阴影更柔 */
.work-card,
.intro-card,
.stat-card {
  position: relative;
  border-radius: var(--radius-lg) !important;
  border: 1px solid var(--line) !important;
  background: var(--bg-soft) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 12px 32px -22px rgba(0, 0, 0, 0.55) !important;
  transition:
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease !important;
}
.work-card:hover,
.intro-card:hover {
  border-color: var(--line-strong) !important;
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 22px 44px -22px rgba(0, 0, 0, 0.65) !important;
}
[data-theme="light"] .work-card,
[data-theme="light"] .intro-card,
[data-theme="light"] .stat-card {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px -18px rgba(26, 25, 22, 0.18) !important;
}
[data-theme="light"] .work-card:hover,
[data-theme="light"] .intro-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 36px -18px rgba(201, 48, 42, 0.22) !important;
}

/* 不再画虚线内嵌边框（油腻感来源之一）*/
.work-card::after {
  content: none !important;
}

/* 章节斜体加朱砂高亮 */
h2 em,
.hero-title em {
  background-image: linear-gradient(
    transparent 68%,
    rgba(201, 48, 42, 0.22) 68%,
    rgba(201, 48, 42, 0.22) 92%,
    transparent 92%
  );
  background-repeat: no-repeat;
  background-size: 100% 100%;
  padding: 0 0.08em;
  color: var(--ink);
}
[data-theme="light"] h2 em,
[data-theme="light"] .hero-title em {
  background-image: linear-gradient(
    transparent 68%,
    rgba(201, 48, 42, 0.18) 68%,
    rgba(201, 48, 42, 0.18) 92%,
    transparent 92%
  );
}

/* footer 顶线改实线 */
.footer {
  border-top: 1px solid var(--line) !important;
}

/* 朱砂落款印章（左上角装饰） */
.hero::before {
  content: "印";
  position: absolute;
  top: 32px;
  right: clamp(20px, 5vw, 80px);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: var(--ink-stamp);
  border-radius: 4px;
  transform: rotate(8deg);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08) inset;
  opacity: 0.92;
  letter-spacing: 0;
  z-index: 2;
  pointer-events: none;
  animation: stamp-in 0.9s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.4s both;
}
@keyframes stamp-in {
  0% { transform: rotate(8deg) scale(2); opacity: 0; }
  60% { transform: rotate(8deg) scale(0.94); opacity: 1; }
  100% { transform: rotate(8deg) scale(1); opacity: 0.92; }
}
.hero {
  position: relative;
}
