/* =========================================================
   NOVA · 苏晚的个人博客
   纯静态 / 无外部依赖
   ========================================================= */

/* ------------------ 设计令牌 ------------------ */
:root {
  color-scheme: dark;

  --bg: #05060f;
  --bg-2: #0a0b18;

  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef0ff;
  --muted: #9aa3c0;
  --faint: #6b7391;

  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;

  --grad: linear-gradient(115deg, #a78bfa 0%, #22d3ee 48%, #f472b6 100%);
  --grad-btn: linear-gradient(120deg, #7c3aed 0%, #2563eb 52%, #db2777 100%);
  --grad-soft: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(34, 211, 238, 0.14));

  --shadow: 0 30px 80px -24px rgba(0, 0, 0, 0.75);
  --radius: 24px;

  --nav-h: 72px;
  --container: 1180px;

  --aurora-a: radial-gradient(circle, rgba(109, 40, 217, 0.9), transparent 66%);
  --aurora-b: radial-gradient(circle, rgba(8, 145, 178, 0.72), transparent 66%);
  --aurora-c: radial-gradient(circle, rgba(219, 39, 119, 0.55), transparent 66%);
  --aurora-blend: screen;

  --grid-line: rgba(139, 92, 246, 0.1);
  --star-rgb: 255, 255, 255;
  --cursor-color: rgba(139, 92, 246, 0.16);
}

html[data-theme="light"] {
  color-scheme: light;

  --bg: #f5f5fb;
  --bg-2: #ffffff;

  --surface: rgba(255, 255, 255, 0.6);
  --surface-2: rgba(255, 255, 255, 0.9);
  --border: rgba(23, 24, 48, 0.08);
  --border-strong: rgba(23, 24, 48, 0.16);

  --text: #14162b;
  --muted: #5c6280;
  --faint: #858ba5;

  --violet: #7c3aed;
  --cyan: #0891b2;
  --pink: #db2777;

  --grad: linear-gradient(115deg, #7c3aed, #0891b2 50%, #db2777);
  --grad-btn: linear-gradient(120deg, #6d28d9, #1d4ed8 52%, #be185d);
  --grad-soft: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(8, 145, 178, 0.08));

  --shadow: 0 30px 70px -32px rgba(76, 29, 149, 0.35);

  --aurora-a: radial-gradient(circle, rgba(196, 181, 253, 0.9), transparent 66%);
  --aurora-b: radial-gradient(circle, rgba(165, 243, 252, 0.9), transparent 66%);
  --aurora-c: radial-gradient(circle, rgba(251, 207, 232, 0.85), transparent 66%);
  --aurora-blend: normal;

  --grid-line: rgba(124, 58, 237, 0.09);
  --star-rgb: 109, 40, 217;
  --cursor-color: rgba(124, 58, 237, 0.1);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* 全局细噪点，增加质感 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

html[data-theme="light"] body::after {
  opacity: 0.05;
  mix-blend-mode: multiply;
}

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: var(--text);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button {
  font: inherit;
  color: inherit;
}

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

section[id] {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--violet), var(--cyan));
  border: 3px solid var(--bg);
  border-radius: 999px;
}

/* ------------------ 容器与通用 ------------------ */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: clamp(84px, 9vw, 136px) 0;
}

.skip {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 18px;
  border-radius: 10px;
  background: var(--grad-btn);
  color: #fff;
  font-size: 0.9rem;
  transform: translateY(-160%);
  transition: transform 0.25s ease;
}
.skip:focus {
  transform: translateY(0);
}

.gradient-text {
  background: var(--grad);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 9s ease infinite;
}

/* ------------------ 背景装饰 ------------------ */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background: var(--bg);
  pointer-events: none;
  transition: background-color 0.4s ease;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.6;
  mix-blend-mode: var(--aurora-blend);
  will-change: transform;
}

.aurora.a {
  width: 56vw;
  height: 56vw;
  top: -22%;
  left: -12%;
  background: var(--aurora-a);
  animation: drift-a 24s ease-in-out infinite alternate;
}
.aurora.b {
  width: 48vw;
  height: 48vw;
  top: 8%;
  right: -18%;
  background: var(--aurora-b);
  animation: drift-b 30s ease-in-out infinite alternate;
}
.aurora.c {
  width: 42vw;
  height: 42vw;
  bottom: -20%;
  left: 24%;
  background: var(--aurora-c);
  animation: drift-c 27s ease-in-out infinite alternate;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 8%, transparent 78%);
  mask-image: radial-gradient(ellipse 100% 62% at 50% 0%, #000 8%, transparent 78%);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, var(--cursor-color) 0%, transparent 62%);
  mix-blend-mode: screen;
  transition: opacity 0.4s ease;
  will-change: transform;
}
html[data-theme="light"] .cursor-glow {
  mix-blend-mode: multiply;
}
body.has-cursor .cursor-glow {
  opacity: 0.85;
}

/* ------------------ 顶部进度条 ------------------ */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  height: 2px;
  width: 0;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.85);
  transition: width 0.12s linear;
}

/* ------------------ 导航 ------------------ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--border);
}

.nav-inner {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14), 0 0 18px rgba(139, 92, 246, 0.9);
  animation: pulse-soft 3.2s ease-in-out infinite;
}

.brand-dot {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--muted);
  transition: color 0.25s ease, background-color 0.25s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
  background: var(--surface);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
  transform: translateX(-50%);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: border-color 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
}

.icon-btn:hover {
  border-color: var(--border-strong);
  transform: rotate(-12deg) scale(1.05);
}

.icon-btn .icon {
  width: 19px;
  height: 19px;
}

.icon-sun {
  display: none;
}
html[data-theme="light"] .icon-sun {
  display: block;
}
html[data-theme="light"] .icon-moon {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0 11px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ------------------ 按钮 ------------------ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 27px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s ease,
    border-color 0.3s ease, background-color 0.3s ease;
}

.btn-primary {
  color: #fff;
  background: var(--grad-btn);
  background-size: 180% 180%;
  box-shadow: 0 14px 34px -12px rgba(124, 58, 237, 0.9);
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.65s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(124, 58, 237, 0.95);
  background-position: 100% 0;
}
.btn-primary:hover::after {
  left: 140%;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 16px 40px -20px rgba(139, 92, 246, 0.8);
}

/* ------------------ Hero ------------------ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 44px) 0 96px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 76px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.eyebrow-dot,
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  animation: ping 2.4s ease-out infinite;
}

.hero-title {
  font-size: clamp(2.55rem, 5.5vw, 4.55rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-type {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.12em;
  margin-top: 0.1em;
  font-size: 0.9em;
  color: var(--muted);
}

.typed {
  color: var(--text);
  background: var(--grad);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-flow 8s ease infinite;
}

.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: blink 1.05s step-end infinite;
}

.lead {
  max-width: 34rem;
  margin-top: 26px;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--muted);
}

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

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(26px, 4vw, 48px);
  margin-top: 52px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat strong {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.stat span {
  font-size: 0.78rem;
  color: var(--faint);
  letter-spacing: 0.08em;
}

/* --- Hero 轨道球体 --- */
.hero-visual {
  display: grid;
  place-items: center;
}

.orb-stage {
  position: relative;
  width: min(470px, 38vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.orb-glow {
  position: absolute;
  inset: 4%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.35), transparent 62%);
  filter: blur(24px);
  animation: breathe 6s ease-in-out infinite;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--border);
  pointer-events: none;
}

.ring.r1 {
  inset: 0;
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.14);
  animation: spin 46s linear infinite;
}
.ring.r2 {
  inset: 10%;
  border-color: rgba(34, 211, 238, 0.22);
  animation: spin 32s linear infinite reverse;
}
.ring.r3 {
  inset: 21%;
  border-color: rgba(244, 114, 182, 0.22);
  animation: spin 24s linear infinite;
}

html[data-theme="light"] .ring.r1 {
  border-color: rgba(23, 24, 48, 0.14);
}
html[data-theme="light"] .ring.r2 {
  border-color: rgba(8, 145, 178, 0.28);
}
html[data-theme="light"] .ring.r3 {
  border-color: rgba(219, 39, 119, 0.26);
}

.orbit {
  position: absolute;
  border-radius: 50%;
  animation: spin 18s linear infinite;
}
.orbit.o1 {
  inset: 0;
}
.orbit.o2 {
  inset: 10%;
  animation-duration: 24s;
  animation-direction: reverse;
}
.orbit.o3 {
  inset: 21%;
  animation-duration: 14s;
}

.orbit::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan), 0 0 26px rgba(34, 211, 238, 0.7);
}
.orbit.o2::before {
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink), 0 0 26px rgba(244, 114, 182, 0.65);
}
.orbit.o3::before {
  background: var(--violet);
  box-shadow: 0 0 12px var(--violet), 0 0 26px rgba(139, 92, 246, 0.7);
}

.orb {
  position: relative;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 46%, #6d28d9 0%, #31126b 44%, #0a0714 100%);
  box-shadow: inset -18px -26px 55px rgba(0, 0, 0, 0.72),
    inset 14px 14px 40px rgba(255, 255, 255, 0.15),
    0 0 80px rgba(124, 58, 237, 0.5), 0 0 160px rgba(34, 211, 238, 0.16);
  animation: float-slow 7s ease-in-out infinite;
}

.orb::before {
  content: "";
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.orb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 200deg,
    transparent 0deg,
    rgba(34, 211, 238, 0.22) 60deg,
    transparent 130deg,
    rgba(244, 114, 182, 0.18) 220deg,
    transparent 300deg
  );
  animation: spin 14s linear infinite;
}

.orb-mono {
  position: relative;
  z-index: 1;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.35), 0 8px 40px rgba(34, 211, 238, 0.5);
}

.orb-shine {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 26%;
  height: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.65), transparent 70%);
  filter: blur(4px);
  transform: rotate(-24deg);
  z-index: 1;
}

.float-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px -16px rgba(0, 0, 0, 0.7);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
  white-space: nowrap;
  animation: float-slow 6s ease-in-out infinite;
}

.chip-ico {
  color: var(--cyan);
  font-size: 0.7rem;
}

.float-chip.c1 {
  top: 7%;
  right: -3%;
  animation-delay: -2s;
}
.float-chip.c2 {
  bottom: 19%;
  left: -8%;
  animation-delay: -4s;
}
.float-chip.c3 {
  bottom: 3%;
  right: 6%;
  animation-delay: -1s;
}
.float-chip.c2 .chip-ico {
  color: var(--pink);
}
.float-chip.c3 .chip-ico {
  color: var(--violet);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  font-size: 0.62rem;
  letter-spacing: 0.34em;
  color: var(--faint);
  transition: color 0.25s ease;
}
.scroll-hint:hover {
  color: var(--muted);
}

.mouse {
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.wheel {
  width: 2px;
  height: 6px;
  border-radius: 2px;
  background: var(--muted);
  animation: wheel 1.8s ease-in-out infinite;
}

/* ------------------ 区块标题 ------------------ */
.section-head {
  max-width: 660px;
  margin: 0 auto clamp(40px, 5vw, 64px);
  text-align: center;
}

.section-head.left {
  margin-inline: 0;
  margin-bottom: 32px;
  text-align: left;
  max-width: none;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--cyan);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
}

.section-head h2,
.contact-panel h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.section-head > p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.98rem;
  text-wrap: balance;
}

/* ------------------ 关于 ------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: clamp(36px, 6vw, 80px);
}

.profile-card {
  position: relative;
  aspect-ratio: 4 / 4.5;
  width: 100%;
  max-width: 420px;
  justify-self: center;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--grad-soft), var(--surface);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 120%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(139, 92, 246, 0.45),
    rgba(34, 211, 238, 0.25),
    rgba(244, 114, 182, 0.35),
    rgba(139, 92, 246, 0.45)
  );
  filter: blur(52px);
  opacity: 0.65;
  animation: spin 22s linear infinite;
}

.profile-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  pointer-events: none;
}

.profile-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.profile-rings span {
  position: absolute;
  border: 1px dashed var(--border-strong);
  border-radius: 50%;
}
.profile-rings span:nth-child(1) {
  width: 78%;
  aspect-ratio: 1;
  animation: spin 40s linear infinite;
}
.profile-rings span:nth-child(2) {
  width: 60%;
  aspect-ratio: 1;
  border-color: rgba(34, 211, 238, 0.25);
  animation: spin 30s linear infinite reverse;
}
.profile-rings span:nth-child(3) {
  width: 42%;
  aspect-ratio: 1;
  border-color: rgba(244, 114, 182, 0.25);
  animation: spin 22s linear infinite;
}

.profile-mono {
  position: relative;
  z-index: 1;
  font-size: clamp(5.5rem, 11vw, 8.5rem);
  font-weight: 800;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 12px 36px rgba(124, 58, 237, 0.45));
  animation: float-slow 8s ease-in-out infinite;
}

.profile-badge {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 55%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  white-space: nowrap;
  color: var(--text);
}

.about-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.9;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.tags span {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tags span:hover {
  color: var(--text);
  border-color: rgba(34, 211, 238, 0.45);
  transform: translateY(-2px);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.fact:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-3px);
}

.fact-ico {
  font-size: 1.05rem;
  line-height: 1.4;
}

.fact strong {
  font-size: 0.94rem;
  font-weight: 700;
}

.fact span:last-child {
  font-size: 0.7rem;
  color: var(--faint);
}

/* ------------------ 文章 ------------------ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-bottom: clamp(30px, 4vw, 44px);
}

.filter {
  padding: 9px 19px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.86rem;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.filter:hover {
  color: var(--text);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.filter.active {
  color: #fff;
  border-color: transparent;
  background: var(--grad-btn);
  box-shadow: 0 10px 26px -10px rgba(124, 58, 237, 0.9);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1), border-color 0.3s ease,
    box-shadow 0.4s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.post-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(139, 92, 246, 0.16),
    transparent 46%
  );
  transition: opacity 0.4s ease;
}

.post-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 34px 64px -34px rgba(124, 58, 237, 0.75);
}

.post-card:hover::after {
  opacity: 1;
}

.post-card.is-hidden {
  display: none;
}

.post-card.pop {
  animation: pop-in 0.55s cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.post-link {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
}

.post-cover {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.post-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.4), transparent 46%),
    repeating-linear-gradient(
      115deg,
      rgba(255, 255, 255, 0.08) 0 2px,
      transparent 2px 24px
    );
  mix-blend-mode: overlay;
}

.post-cover::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  z-index: 1;
  background: linear-gradient(to top, rgba(5, 6, 15, 0.42), transparent);
  pointer-events: none;
}

.cover-violet {
  background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 48%, #0ea5e9 100%);
}
.cover-cyan {
  background: linear-gradient(135deg, #0891b2 0%, #3b82f6 52%, #8b5cf6 100%);
}
.cover-pink {
  background: linear-gradient(135deg, #db2777 0%, #a855f7 55%, #6366f1 100%);
}
.cover-amber {
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 55%, #db2777 100%);
}
.cover-emerald {
  background: linear-gradient(135deg, #059669 0%, #0d9488 48%, #0891b2 100%);
}
.cover-indigo {
  background: linear-gradient(135deg, #312e81 0%, #6d28d9 55%, #22d3ee 100%);
}

.post-glyph {
  position: relative;
  z-index: 2;
  font-size: clamp(3.2rem, 6vw, 4.6rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 0 24px rgba(255, 255, 255, 0.35));
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.post-card:hover .post-glyph {
  transform: scale(1.12) rotate(-6deg);
}

.post-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(7, 6, 18, 0.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 9px;
  padding: 22px 24px 26px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

.post-body h3 {
  font-size: 1.12rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.post-body p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.87rem;
  line-height: 1.75;
  color: var(--muted);
}

.post-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.79rem;
  font-weight: 600;
  color: var(--cyan);
}

.post-more svg {
  transition: transform 0.3s ease;
}

.post-card:hover .post-more svg {
  transform: translateX(5px);
}

/* 首篇大卡片 */
.post-card.is-featured {
  grid-column: span 2;
}

.post-card.is-featured .post-link {
  flex-direction: row;
}

.post-card.is-featured .post-cover {
  flex: 1 1 52%;
  aspect-ratio: auto;
  min-height: 320px;
}

.post-card.is-featured .post-glyph {
  font-size: clamp(4.5rem, 8vw, 6.5rem);
}

.post-card.is-featured .post-body {
  flex: 1 1 48%;
  justify-content: center;
  padding: 34px 32px;
}

.post-card.is-featured .post-body h3 {
  font-size: 1.4rem;
  line-height: 1.4;
}

/* ------------------ 跑马灯 ------------------ */
.marquee {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 34px) 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
  padding-right: clamp(20px, 3vw, 42px);
}

.marquee-group span:not(.sep) {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-strong);
  white-space: nowrap;
  opacity: 0.75;
}

.marquee-group .sep {
  font-size: 1rem;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------ 旅程 ------------------ */
.journey-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
  gap: clamp(36px, 6vw, 80px);
}

.timeline {
  position: relative;
  margin-top: 38px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 14px;
  left: 5px;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), var(--cyan) 55%, transparent);
  opacity: 0.65;
}

.tl-item {
  position: relative;
  padding-bottom: 34px;
}

.tl-item:last-child {
  padding-bottom: 0;
}

.tl-item::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -32px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--grad);
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.16), 0 0 16px rgba(139, 92, 246, 0.75);
}

.tl-year {
  display: inline-block;
  margin-bottom: 7px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl-item h3 {
  font-size: 1.04rem;
  margin-bottom: 5px;
}

.tl-item p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
  max-width: 34rem;
}

.skill-card {
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.skill-title {
  font-size: 1.25rem;
}

.skill-note {
  margin: 7px 0 28px;
  font-size: 0.83rem;
  color: var(--faint);
}

.skill-row + .skill-row {
  margin-top: 20px;
}

.skill-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 9px;
  font-size: 0.83rem;
  color: var(--muted);
}

.skill-top span:last-child {
  font-variant-numeric: tabular-nums;
  color: var(--faint);
}

.skill-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  overflow: hidden;
}

.skill-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.6);
  transition: width 1.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quote {
  margin: 32px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.94rem;
  line-height: 1.85;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------ 联系 ------------------ */
.contact-panel {
  position: relative;
  padding: clamp(42px, 6.5vw, 76px) clamp(24px, 6vw, 76px);
  border: 1px solid var(--border);
  border-radius: 32px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.contact-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    rgba(139, 92, 246, 0.9),
    rgba(34, 211, 238, 0.9),
    rgba(244, 114, 182, 0.9),
    rgba(139, 92, 246, 0.9)
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: border-spin 9s linear infinite;
  pointer-events: none;
}

.contact-panel::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 50%;
  width: 70%;
  height: 120%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 62%);
  filter: blur(50px);
  pointer-events: none;
}

.contact-panel > * {
  position: relative;
  z-index: 1;
}

.contact-panel .kicker {
  justify-content: center;
}

.contact-panel > p {
  max-width: 30rem;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.9;
  text-wrap: balance;
}

.subscribe {
  display: flex;
  gap: 6px;
  max-width: 460px;
  margin: 30px auto 0;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.subscribe input {
  flex: 1;
  min-width: 0;
  padding: 0 20px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
}

.subscribe input::placeholder {
  color: var(--faint);
}

.subscribe .btn {
  height: 46px;
  padding: 0 24px;
  font-size: 0.86rem;
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.socials a {
  padding: 7px 16px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}

.socials a:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

/* ------------------ 页脚 ------------------ */
.footer {
  position: relative;
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--faint);
}

.footer .brand {
  font-size: 0.95rem;
}

.footer-top {
  color: var(--muted);
  transition: color 0.25s ease;
}

.footer-top:hover {
  color: var(--text);
}

/* ------------------ 回到顶部 & Toast ------------------ */
.back-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 65%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-top:hover {
  border-color: rgba(139, 92, 246, 0.6);
  transform: translateY(-3px);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 300;
  max-width: min(90vw, 460px);
  padding: 13px 22px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  color: var(--text);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------ 滚动入场 ------------------ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.85s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.posts-grid .post-card:nth-child(2) {
  transition-delay: 0.07s;
}
.posts-grid .post-card:nth-child(3) {
  transition-delay: 0.14s;
}
.posts-grid .post-card:nth-child(4) {
  transition-delay: 0.05s;
}
.posts-grid .post-card:nth-child(5) {
  transition-delay: 0.12s;
}
.posts-grid .post-card:nth-child(6) {
  transition-delay: 0.19s;
}
.posts-grid .post-card:nth-child(7) {
  transition-delay: 0.1s;
}
.posts-grid .post-card:nth-child(8) {
  transition-delay: 0.17s;
}

/* ------------------ 动画 ------------------ */
@keyframes grad-flow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float-slow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.06);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes pulse-soft {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes wheel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(9px);
  }
}

@keyframes drift-a {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(12vw, 8vh, 0) scale(1.18);
  }
}

@keyframes drift-b {
  0% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-10vw, 12vh, 0) scale(0.92);
  }
}

@keyframes drift-c {
  0% {
    transform: translate3d(0, 0, 0) scale(0.95);
  }
  100% {
    transform: translate3d(8vw, -10vh, 0) scale(1.15);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes border-spin {
  to {
    --angle: 360deg;
  }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

/* ------------------ 响应式 ------------------ */
@media (max-width: 1080px) {
  .orb-stage {
    width: min(430px, 42vw);
  }
  .float-chip.c2 {
    left: -2%;
  }
  .float-chip.c1 {
    right: -1%;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 72px);
    padding-bottom: 90px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-copy {
    order: 1;
  }
  .hero-visual {
    order: 0;
  }
  .eyebrow {
    margin-bottom: 22px;
  }
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
  }
  .hero-type {
    justify-content: center;
  }
  .lead {
    margin-inline: auto;
  }
  .hero-actions,
  .stats {
    justify-content: center;
  }
  .orb-stage {
    width: min(400px, 76vw);
  }
  .scroll-hint {
    display: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .profile-card {
    max-width: 360px;
  }
  .about-copy .section-head.left {
    text-align: left;
  }
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .post-card.is-featured {
    grid-column: span 2;
  }
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .skill-card {
    max-width: 620px;
  }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: calc(var(--nav-h) + 10px);
    left: 24px;
    right: 24px;
    z-index: 99;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(22px);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-links a {
    padding: 12px 16px;
    font-size: 0.95rem;
  }
  .nav-links a.active {
    background: var(--surface-2);
  }
  .nav-links a.active::after {
    display: none;
  }
  .menu-toggle {
    display: flex;
  }
  .nav-actions {
    margin-left: auto;
  }
  .post-card.is-featured .post-link {
    flex-direction: column;
  }
  .post-card.is-featured .post-cover {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .post-card.is-featured .post-body {
    padding: 22px 24px 26px;
  }
  .post-card.is-featured .post-body h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 640px) {
  .container,
  .nav-inner {
    width: min(100% - 32px, var(--container));
  }
  .section {
    padding: 76px 0;
  }
  .hero {
    padding-top: calc(var(--nav-h) + 54px);
    padding-bottom: 72px;
  }
  .orb-stage {
    width: min(330px, 82vw);
  }
  .float-chip {
    font-size: 0.66rem;
    padding: 7px 12px;
  }
  .float-chip.c2 {
    left: -4%;
    bottom: 16%;
  }
  .float-chip.c1 {
    top: 4%;
  }
  .float-chip.c3 {
    bottom: 0;
    right: 0;
  }
  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }
  .stats {
    gap: 24px;
    justify-content: space-between;
    margin-top: 40px;
  }
  .stat strong {
    font-size: 1.6rem;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .post-card.is-featured {
    grid-column: auto;
  }
  .facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .subscribe {
    flex-direction: column;
    padding: 10px;
    border-radius: 22px;
  }
  .subscribe input {
    height: 44px;
    text-align: center;
  }
  .subscribe .btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .back-top {
    right: 18px;
    bottom: 18px;
  }
  .marquee-group span:not(.sep) {
    font-size: 1.4rem;
  }
}

@media (max-width: 380px) {
  .brand {
    letter-spacing: 0.1em;
    font-size: 1rem;
  }
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ------------------ 降低动效偏好 ------------------ */
@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;
  }
}
