/* === 变量 & 基础重置 === */
:root {
  --bg: #0e0d0b;
  --bg-soft: #161411;
  --ink: #ece5d8;
  --ink-dim: #8a8272;
  --accent: #e8ff47;
  --accent-2: #ff5c38;
  --line: rgba(236, 229, 216, 0.12);
  --serif: "Fraunces", "Noto Serif SC", serif;
  --mono: "IBM Plex Mono", monospace;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--serif);
  overflow-x: hidden;
  cursor: none;
}
::selection { background: var(--accent); color: var(--bg); }

/* ---- 颗粒噪点 ---- */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-2%,3%); }
  50% { transform: translate(3%,-2%); }
  75% { transform: translate(-3%,-3%); }
}

/* ---- 自定义光标 ---- */
.cursor {
  position: fixed; top: 0; left: 0;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 1000;
}
.cursor-ring {
  position: fixed; top: 0; left: 0;
  width: 44px; height: 44px;
  border: 1px solid var(--ink-dim);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1000;
  transition: width .3s, height .3s, border-color .3s;
}
.cursor-ring.hovering { width: 72px; height: 72px; border-color: var(--accent); }

/* ---- 滚动进度条 ---- */
.progress {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
  z-index: 1001;
}

/* ---- 导航 ---- */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.6rem 4vw;
  z-index: 100;
  mix-blend-mode: difference;
}
nav .logo { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.2em; color: var(--ink); text-decoration: none; }
nav ul { display: flex; gap: 2.4rem; list-style: none; }
nav a { color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
nav a:hover { color: var(--accent); }

section { position: relative; }
