:root {
  --paper: #f6f2e8;
  --paper-shadow: #e8e1d4;
  --ink: #2b3138;
  --ink-soft: #4b545e;
  --mist: #7fa2a8;
  --mist-strong: #5f95a2;
  --brass: #a9804f;
  --deep-anchor: #233942;
  --signal: #7bc6ba;
  --line: rgba(43, 49, 56, 0.34);
  --line-soft: rgba(43, 49, 56, 0.2);
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.6rem;
  --space-xl: 2.4rem;
  --space-2xl: 3.6rem;
  --space-3xl: 5.6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Aptos", "Segoe UI Variable", "Trebuchet MS", sans-serif;
  line-height: 1.64;
  background:
    radial-gradient(86% 68% at 90% 0%, rgba(79, 205, 255, 0.2), transparent 58%),
    radial-gradient(50% 52% at 6% 22%, rgba(255, 164, 72, 0.2), transparent 66%),
    radial-gradient(36% 42% at 72% 72%, rgba(0, 198, 165, 0.13), transparent 70%),
    linear-gradient(164deg, #fcfaf4 0%, #f5f0e4 46%, #faf7ef 100%);
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(35, 57, 66, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 57, 66, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 52% 46%, #000 40%, transparent 95%);
}

a,
button,
input {
  cursor: none;
}

a {
  color: inherit;
}

.cursor-orb,
.cursor-tail {
  position: fixed;
  pointer-events: none;
  z-index: 5000;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.cursor-orb {
  width: 10px;
  aspect-ratio: 1;
  background: rgba(123, 198, 186, 0.95);
  box-shadow: 0 0 0 8px rgba(123, 198, 186, 0.16), 0 0 22px rgba(123, 198, 186, 0.66);
}

.cursor-tail {
  width: 32px;
  aspect-ratio: 1;
  border: 1px solid rgba(123, 198, 186, 0.5);
  opacity: 0.62;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep-anchor);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  z-index: 2000;
}

.skip-link:focus {
  left: var(--space-md);
  top: var(--space-md);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(35, 57, 66, 0.24);
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(250, 246, 238, 0.9), rgba(250, 246, 238, 0.74));
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  text-decoration: none;
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--deep-anchor);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(35, 57, 66, 0.44);
  border-radius: 999px;
  background: rgba(250, 247, 240, 0.8);
  padding: 0.34rem 0.8rem;
  font: inherit;
}

.site-nav {
  display: flex;
  gap: var(--space-sm);
}

.site-nav a {
  text-decoration: none;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  color: #2d3e4a;
  border: 1px solid transparent;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  border-color: rgba(127, 162, 168, 0.56);
  color: #1f5665;
  transform: translateY(-1px);
  outline: none;
}

main {
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  position: relative;
}


.section {
  margin-bottom: var(--space-2xl);
  padding: var(--space-xl) 0;
  position: relative;
}

.section + .section {
  border-top: 1px solid var(--line-soft);
}

.section-index {
  position: absolute;
  left: -0.1rem;
  top: 1.2rem;
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  color: rgba(35, 57, 66, 0.55);
}

.eyebrow {
  margin: 0;
  color: #53616f;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.76rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0 0 var(--space-sm);
  line-height: 1.15;
  color: var(--deep-anchor);
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.35rem, 4vw, 4rem);
}

h2 {
  font-size: clamp(1.74rem, 3vw, 2.4rem);
}

.section-heading {
  margin-bottom: var(--space-lg);
  max-width: 66ch;
}

.section-heading p {
  margin: 0.25rem 0 0;
  color: var(--ink-soft);
}

.hero {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--space-xl);
  border-top: none;
}


.hero-copy,
.hero-art {
  position: relative;
  z-index: 2;
}

.intro {
  max-width: 60ch;
  color: #34404b;
  font-size: 1.08rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.58rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
}

.btn-primary {
  color: #fbfffd;
  background: linear-gradient(120deg, #2f5f70, #245067);
  box-shadow: 0 10px 22px rgba(35, 57, 66, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(35, 57, 66, 0.3);
}

.btn-secondary {
  color: #2f434f;
  border-color: rgba(35, 57, 66, 0.42);
  background: transparent;
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(95, 149, 162, 0.75);
  box-shadow: 0 0 0 2px rgba(95, 149, 162, 0.12);
  transform: translateY(-2px);
}

.highlights {
  width: 80%;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.75rem;
}

.highlights li {
  font-size: 0.82rem;
  color: #3c4b57;
  border-bottom: 1px solid rgba(35, 57, 66, 0.32);
  padding-bottom: 0.18rem;
}

.command-console {
  margin-top: var(--space-lg);
  max-width: 480px;
  border-top: 1px dashed rgba(35, 57, 66, 0.36);
  padding-top: var(--space-sm);
}

.console-title {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #4b6170;
}

.console-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid rgba(35, 57, 66, 0.38);
  padding-bottom: 0.4rem;
}

.console-prompt {
  color: var(--mist-strong);
  font-family: "Consolas", "Courier New", monospace;
  font-weight: 700;
}

.console-row input {
  flex: 1;
  border: none;
  background: transparent;
  color: #2a3f4e;
  font: 500 0.9rem/1.2 "Consolas", "Courier New", monospace;
  outline: none;
}

.command-stream {
  margin: 0.45rem 0 0;
  min-height: 1.4rem;
  color: #526877;
  font: 500 0.8rem/1.4 "Consolas", "Courier New", monospace;
}

.command-shortcuts {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.command-shortcuts button {
  border: 1px solid rgba(35, 57, 66, 0.32);
  border-radius: 999px;
  background: transparent;
  color: #345364;
  font: 600 0.72rem/1 "Consolas", "Courier New", monospace;
  padding: 0.3rem 0.62rem;
  transition: border-color 220ms ease, color 220ms ease, transform 220ms ease;
}

.command-shortcuts button:hover,
.command-shortcuts button:focus-visible {
  border-color: rgba(95, 149, 162, 0.8);
  color: #1d596d;
  transform: translateY(-1px);
}

/* ─── Hero Art: Pixel Sprite Animation ─── */
.hero-art {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: transform 260ms ease;
  will-change: transform;
  position: relative;
}

/* 舞台容器：裁剪显示单帧 */
.pixel-stage {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 938.67 / 768;
  border-radius: 12px;
  overflow: hidden;
  image-rendering: pixelated;
  box-shadow:
    0 4px 24px rgba(35, 57, 66, 0.18),
    0 0 0 1px rgba(35, 57, 66, 0.08);
}

/* 雪碧图主体 */
.pixel-sprite {
  width: 100%;
  height: 100%;
  background-image: url('./data/pixel-life-sprite.png');
  background-repeat: no-repeat;
  /* 整张图 = 3列×2行，background-size 宽=300% 高=200% 让每帧刚好填满容器 */
  background-size: 300% 200%;
  animation: pixelLifeLoop 17s steps(1) infinite;
}

/*
  6帧布局 (3×2 网格)：
  ┌──────────┬──────────┬──────────┐
  │ 1 编程①  │ 2 唱歌   │ 3 金融①  │  row 0 (top=0%)
  ├──────────┼──────────┼──────────┤
  │ 4 金融②  │ 5 旅行   │ 6 编程②  │  row 1 (top=100%)
  └──────────┴──────────┴──────────┘
   col0=0%   col1=50%  col2=100%

  时间分配 (总17s):
  帧1: 0%     → 17.6%  = 0s  - 3s   编程①
  帧2: 17.6%  → 29.4%  = 3s  - 5s   唱歌
  帧3: 29.4%  → 47.1%  = 5s  - 8s   金融① (看书)
  帧4: 47.1%  → 64.7%  = 8s  - 11s  金融② (K线)
  帧5: 64.7%  → 82.4%  = 11s - 14s  旅行幻想
  帧6: 82.4%  → 100%   = 14s - 17s  编程②
*/
@keyframes pixelLifeLoop {
  /* 帧1: 编程① (row0, col0) → 3s */
  0%, 17.6% {
    background-position: 0% 0%;
  }
  /* 帧2: 唱歌 (row0, col1) → 2s */
  17.65%, 29.4% {
    background-position: 50% 0%;
  }
  /* 帧3: 金融①-看书 (row0, col2) → 3s */
  29.45%, 47.05% {
    background-position: 100% 0%;
  }
  /* 帧4: 金融②-K线 (row1, col0) → 3s */
  47.1%, 64.7% {
    background-position: 0% 100%;
  }
  /* 帧5: 旅行幻想 (row1, col1) → 3s */
  64.75%, 82.35% {
    background-position: 50% 100%;
  }
  /* 帧6: 编程② (row1, col2) → 3s */
  82.4%, 100% {
    background-position: 100% 100%;
  }
}

.flow-copy {
  max-width: 70ch;
  display: grid;
  gap: 0.36rem;
}

/* ─── Interests Grid ─── */
.interests-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
}

.interest-node {
  border: 1px solid rgba(35, 57, 66, 0.28);
  border-radius: 10px;
  padding: 0.72rem;
  background: rgba(250, 247, 240, 0.85);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transition: border-color 300ms ease, transform 300ms ease, box-shadow 300ms ease, background 300ms ease;
}

.interest-node h3 {
  margin-bottom: 0.3rem;
  font-size: 1.08rem;
}

.interest-node p {
  margin: 0;
  font-size: 0.86rem;
  color: #435867;
}

.interest-node:hover,
.interest-node.active {
  border-color: rgba(95, 149, 162, 0.82);
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(35, 57, 66, 0.12);
}

/* ─── Interest Overlay (全屏毛玻璃浮层) ─── */
.interest-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 用高透明度 background 替代 backdrop-filter 避免延迟 */
  background: rgba(240, 236, 228, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 280ms ease;
  will-change: opacity;
}

.interest-overlay.open {
  opacity: 1;
  pointer-events: auto;
}


.interest-panel {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68vw;
  height: 68vh;
  max-width: 1000px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.interest-panel.active {
  opacity: 1;
  pointer-events: auto;
}

/* ─── Travel: 3D Globe ─── */
#panel-travel {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
}

.travel-globe {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.interest-panel.active .travel-globe {
  opacity: 1;
}

#panel-photography {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: rgba(75, 75, 75, 0.45); /* 大幅提升透明度 */
  overflow-y: auto;
  align-items: flex-start;
  padding: 0;
}

#panel-photography::-webkit-scrollbar {
  width: 8px;
}
#panel-photography::-webkit-scrollbar-track {
  background: transparent;
}
#panel-photography::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

/* ─── Photography: Scroll Gallery ─── */
.gallery-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8vh 4vw;
  box-sizing: border-box;
}

.scroll-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  width: 100%;
  align-items: center;
}

@media (max-width: 768px) {
  .scroll-gallery {
    grid-template-columns: 1fr;
    gap: 6vw;
  }
}

.gallery-item-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #111;
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Staggered load animation */
.interest-panel.active .gallery-item {
  opacity: 1;
  transform: translateY(0);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  filter: grayscale(18%);
  transition: all 0.6s ease;
}

.gallery-item:hover {
  transform: translateY(-4px) scale(1.02);
  z-index: 10;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover img {
  filter: grayscale(0%);
  transform: scale(1.06);
}

/* EXIF Info */
.exif-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #fff;
  pointer-events: none;
}

.gallery-item:hover .exif-info {
  opacity: 1;
}

.exif-info .location {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.exif-info .specs {
  font-size: 0.65rem;
  color: #00ffcc;
  margin-top: 5px;
  font-family: 'Consolas', 'Courier New', monospace;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* ─── Music: Lyrics Convergence ─── */
.lyrics-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.song-title {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  font-family: "Consolas", "Courier New", monospace;
  color: rgba(223, 122, 255, 0.9);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
  white-space: nowrap;
  z-index: 100;
  pointer-events: none;
}

.lyrics-stage .song-title.show {
  opacity: 1;
}

.lyric-line {
  position: absolute;
  white-space: nowrap;
  font-family: "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(0.92rem, 1.5vw, 1.2rem);
  font-weight: 600;
  color: var(--deep-anchor);
  opacity: 0;
  transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
  text-shadow: 0 0 16px rgba(223, 122, 255, 0.12);
}

.lyric-line.converge {
  opacity: 1;
}

/* ─── Finance: K-Line Chart ─── */
.kline-canvas {
  width: 100%;
  height: 100%;
  display: block;
  margin: auto;
}

.project-axis {
  height: 1px;
  width: 100%;
  margin-bottom: var(--space-lg);
  border-top: 1px dashed rgba(35, 57, 66, 0.44);
}

.project-stream {
  display: grid;
  gap: var(--space-lg);
}

.project-entry {
  padding: 0 0 var(--space-md);
  border-bottom: 1px solid rgba(35, 57, 66, 0.32);
  position: relative;
}

.project-entry:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.entry-tag {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #365565;
}

.project-entry a {
  color: #1f596e;
  font-weight: 600;
}

.project-entry::before,
.project-entry::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 18px;
  border: 1px solid rgba(123, 198, 186, 0.7);
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.project-entry::before {
  right: 12px;
  top: 10px;
  border-right: none;
  border-bottom: none;
  transform: translate(-5px, 4px);
}

.project-entry::after {
  right: 12px;
  top: 10px;
  border-left: none;
  border-top: none;
  transform: translate(5px, -4px);
}

.project-entry:hover::before,
.project-entry:hover::after,
.project-entry.focused::before,
.project-entry.focused::after {
  opacity: 0.9;
  transform: translate(0, 0);
}

.timeline {
  margin: 0;
  padding-left: 1rem;
}

.timeline li {
  margin-bottom: var(--space-xl);
}

.exp-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.25rem 0;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.exp-header h3.exp-role {
  margin: 0;
}

.exp-company {
  text-align: right;
  font-weight: 600;
  color: #1f596e;
  font-size: 0.96rem;
}

.exp-details {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.exp-period {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.85rem;
  color: #526877;
  white-space: nowrap;
}

.exp-desc {
  margin: 0 !important;
  line-height: 1.6;
}

.site-footer {
  border-top: 1px solid rgba(35, 57, 66, 0.28);
  text-align: center;
  padding: var(--space-lg);
  color: #4d5d68;
  background: rgba(245, 241, 234, 0.62);
}

.scan-active {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.scan-active::after {
  content: "";
  position: absolute;
  top: -8%;
  bottom: -8%;
  width: 28%;
  left: -32%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.9),
    rgba(255, 255, 255, 0)
  );
  mix-blend-mode: screen;
  filter: blur(0.5px);
  animation: laserSweep 640ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes laserSweep {
  from {
    left: -32%;
  }
  to {
    left: 106%;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 640ms ease, transform 640ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

body.shutter-flash::after {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(245, 255, 251, 0.24);
  pointer-events: none;
  animation: shutterFlash 260ms ease-out;
}

@keyframes shutterFlash {
  from {
    opacity: 0.85;
  }
  to {
    opacity: 0;
  }
}

/* ─── Friends Grid ─── */
.friends-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-md);
}

.friend-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: rgba(250, 247, 240, 0.4);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.friend-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(123, 198, 186, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.friend-card:hover {
  transform: translateY(-5px);
  border-color: var(--mist-strong);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 30px rgba(35, 57, 66, 0.08);
}

.friend-card:hover::before {
  opacity: 1;
}

.friend-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%; /* 圆形 */
  background: var(--deep-anchor);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: "Consolas", monospace;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(35, 57, 66, 0.12);
  overflow: hidden; /* 防止图片溢出 */
}

.friend-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* 截取原图顶部区域 */
  display: block;
}

.friend-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xs);
}

.friend-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--deep-anchor);
  transition: color 0.3s ease;
}

.friend-card:hover h3 {
  color: var(--mist-strong);
}

.friend-info p {
  margin: 0.3rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  line-height: 1.5;
}

.friend-link-icon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 14px;
  height: 14px;
  opacity: 0.2;
  transition: all 0.3s ease;
}

.friend-card:hover .friend-link-icon {
  opacity: 0.7;
  transform: translate(2px, -2px);
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-art {
    min-height: 360px;
  }

  .interests-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  body {
    cursor: auto;
  }

  a,
  button,
  input {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-tail {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    right: var(--space-lg);
    top: 100%;
    min-width: 180px;
    border: 1px solid rgba(35, 57, 66, 0.38);
    background: rgba(248, 244, 236, 0.96);
    padding: var(--space-sm);
    display: none;
    flex-direction: column;
  }

  .site-nav.open {
    display: flex;
  }

  main {
    padding-top: 4.4rem;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .section-index {
    position: static;
    margin-bottom: 0.55rem;
    display: inline-block;
  }
}

/* 联系方式段落支持 JSON 换行符渲染 */
#contact-desc {
  white-space: pre-line;
  margin-bottom: 2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body {
    cursor: auto;
  }

  a,
  button,
  input {
    cursor: auto;
  }

  .cursor-orb,
  .cursor-tail {
    display: none;
  }

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

  .btn,
  .project-entry::before,
  .project-entry::after,
  .hero-art,
  .scan-beam {
    transition: none;
    animation: none;
  }
}
