/* ═══════════════════════════════════════════════════════════
   Animal Island 主题个人网站 · 全局样式
   主色: #19c8b9 (动森青绿) | 文字: #827157 (温暖棕褐)
   圆角: 18px | 字体: M PLUS Rounded 1c + Sora
   ═══════════════════════════════════════════════════════════ */

/* ──── CSS 设计令牌 ──── */
:root {
  /* 色彩系统 */
  --teal-50:  #f0fdfc;
  --teal-100: #ccfbf1;
  --teal-200: #99f6e4;
  --teal-400: #2dd4bf;
  --teal:     #19c8b9;      /* Animal Crossing 主色 */
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-dark: #0a6560;

  --brown:    #827157;      /* Animal Crossing 文字棕 */
  --brown-light: #a89278;
  --brown-dark: #5c4f3a;

  --sand-50:  #fdfaf4;
  --sand-100: #f5edd8;
  --sand-200: #ecdfc4;

  --yellow:   #f5c842;
  --yellow-light: #fde68a;

  --green:    #4ade80;
  --green-light: #bbf7d0;

  --text-primary: #3d2b1f;
  --text-secondary: #827157;
  --text-muted: #a89278;

  /* 圆角 */
  --radius-sm:  10px;
  --radius:     18px;
  --radius-lg:  24px;
  --radius-xl:  32px;
  --radius-full: 9999px;

  /* 阴影 */
  --shadow-sm:  0 2px 8px rgba(25, 200, 185, 0.08), 0 1px 3px rgba(0,0,0,0.06);
  --shadow:     0 8px 28px rgba(25, 200, 185, 0.12), 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg:  0 16px 48px rgba(25, 200, 185, 0.16), 0 8px 24px rgba(0,0,0,0.10);

  /* 按钮 3D 阴影 (Animal Crossing 风格) */
  --btn-shadow: 0 4px 0 var(--teal-600);
  --btn-shadow-hover: 0 6px 0 var(--teal-700);

  /* 边框 */
  --border: 2px solid rgba(25, 200, 185, 0.2);
  --border-brown: 2px solid rgba(130, 113, 87, 0.18);

  /* 字体 */
  --font-rounded: "M PLUS Rounded 1c", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-body:    "Sora", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 文档阅读器正文衬线（与小岛圆体标题对比） */
  --font-doc-prose: "Source Serif 4", "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;

  /* 动画 */
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ──── 重置 & 基础 ──── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--sand-50);
  min-height: 100vh;
  overflow-x: hidden;
}

ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
time { font-style: normal; }

/* ══════════════════════════════════════
   主站区块（现有内容与装饰）
   ══════════════════════════════════════ */
.site-stage {
  position: relative;
}

/* ══════════════════════════════════════
   右上角按钮触发的沉浸式 3D 展示层
   ══════════════════════════════════════ */
body.is-3d-overlay-open,
body.is-game-overlay-open {
  overflow: hidden;
}

.immersive-overlay {
  --overlay-progress: 0;
  --overlay-radius: 0vmax;
  --overlay-origin-x: max(3rem, calc(env(safe-area-inset-right, 0px) + 3rem));
  --overlay-origin-y: max(2.075rem, calc(env(safe-area-inset-top, 0px) + 2.075rem));
  position: fixed;
  inset: 0;
  z-index: 88;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(100% - var(--overlay-origin-x)) var(--overlay-origin-y), rgba(25, 200, 185, 0.34) 0%, rgba(25, 200, 185, 0.16) 16%, transparent 34%),
    #fdfaf4;
  opacity: calc(var(--overlay-progress) * 0.82 + 0.18);
  clip-path: circle(var(--overlay-radius) at calc(100% - var(--overlay-origin-x)) var(--overlay-origin-y));
  transition: opacity 0.08s linear;
}

.immersive-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(circle at calc(100% - var(--overlay-origin-x)) var(--overlay-origin-y), transparent 0 18%, rgba(25, 200, 185, 0.24) 28%, transparent 44%),
    radial-gradient(circle at 50% 50%, transparent 56%, rgba(92, 79, 58, 0.14) 100%);
  opacity: calc((1 - var(--overlay-progress)) * 0.9 + 0.12);
}

.immersive-overlay.is-active {
  pointer-events: auto;
}

.immersive-overlay__shade,
.immersive-overlay__stage {
  position: absolute;
  inset: 0;
}

.immersive-overlay__shade {
  z-index: 0;
  background:
    radial-gradient(circle at 86% 10%, rgba(25, 200, 185, 0.34), transparent 30%),
    radial-gradient(circle at 18% 78%, rgba(245, 200, 66, 0.2), transparent 36%),
    linear-gradient(135deg, rgba(10, 101, 96, 0.1), transparent 42%, rgba(92, 79, 58, 0.1)),
    #fdfaf4;
}

.immersive-overlay__stage {
  z-index: 1;
  background: rgba(253, 250, 244, 0.86);
}

.immersive-hint {
  position: absolute;
  top: calc(5.25rem + env(safe-area-inset-top, 0px));
  right: calc(1.2rem + env(safe-area-inset-right, 0px));
  z-index: 4;
  width: min(82vw, 20rem);
  text-align: center;
  padding: 0.7rem 1.1rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--brown-light);
  background: rgba(253, 250, 244, 0.76);
  border: 1px solid rgba(130, 113, 87, 0.12);
  border-radius: var(--radius-full);
  box-shadow: 0 10px 32px rgba(130, 113, 87, 0.08);
  opacity: calc(var(--overlay-progress) * 0.9);
  transform: translate3d(0, calc(-10px * (1 - var(--overlay-progress))), 0);
  transition: opacity 0.12s linear;
  pointer-events: none;
}

.susurrus-root {
  position: absolute;
  inset: 0;
  z-index: 1;
  height: 100%;
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  background-color: transparent;
  opacity: calc(0.001 + var(--overlay-progress) * 0.999);
  transition: opacity 0.12s linear;
}

.immersive-overlay.is-interactive .susurrus-root {
  pointer-events: auto;
}

.susurrus-root canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  /* 强制 Canvas 背景与页面一致，避免初始化前闪灰 */
  background-color: #fdfaf4 !important;
}

.susurrus-loading {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  padding: 2rem;
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.34s var(--ease-smooth),
    transform 0.42s var(--ease-bounce);
  pointer-events: none;
}

.susurrus-loading.is-visible {
  opacity: 1;
  transform: scale(1);
}

.susurrus-loading__card {
  position: relative;
  width: min(86vw, 22rem);
  padding: 2.1rem 1.6rem 1.55rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.64);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 18% 12%, rgba(25, 200, 185, 0.18), transparent 42%),
    radial-gradient(circle at 88% 18%, rgba(245, 200, 66, 0.2), transparent 44%),
    rgba(253, 250, 244, 0.78);
  box-shadow:
    0 22px 70px rgba(92, 79, 58, 0.14),
    0 0 0 8px rgba(255, 255, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.susurrus-loading__card::before {
  content: "";
  position: absolute;
  inset: -40% -18%;
  background:
    linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.46) 46%, transparent 72%);
  animation: susurrus-card-sheen 2.6s ease-in-out infinite;
  pointer-events: none;
}

.susurrus-loading__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.1rem;
  height: 6.1rem;
  margin: 0 auto 1.1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 24%, rgba(25, 200, 185, 0.18) 25% 48%, transparent 49%),
    radial-gradient(circle at 42% 35%, rgba(245, 200, 66, 0.36), transparent 58%);
  filter: drop-shadow(0 14px 24px rgba(25, 200, 185, 0.18));
  animation: susurrus-orb-float 2.4s ease-in-out infinite;
}

.susurrus-loading__ring {
  position: absolute;
  inset: 0.25rem;
  border-radius: 50%;
  border: 3px solid rgba(25, 200, 185, 0.18);
  border-top-color: var(--teal);
  border-right-color: rgba(245, 200, 66, 0.82);
  animation: susurrus-ring-spin 1.15s linear infinite;
}

.susurrus-loading__dot {
  position: absolute;
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 18px rgba(25, 200, 185, 0.42);
  animation: susurrus-dot-pulse 1.28s ease-in-out infinite;
}

.susurrus-loading__dot--one {
  top: 0.45rem;
  left: 50%;
  transform: translateX(-50%);
}

.susurrus-loading__dot--two {
  right: 0.75rem;
  bottom: 1.1rem;
  background: #f5c842;
  animation-delay: 0.18s;
}

.susurrus-loading__dot--three {
  left: 0.75rem;
  bottom: 1.1rem;
  background: var(--brown-light);
  animation-delay: 0.36s;
}

.susurrus-loading__title,
.susurrus-loading__text {
  position: relative;
  z-index: 1;
}

.susurrus-loading__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-rounded);
  font-size: clamp(1.05rem, 3.5vw, 1.35rem);
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: 0.04em;
}

.susurrus-loading__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@keyframes susurrus-card-sheen {
  0% {
    transform: translateX(-42%) rotate(0deg);
    opacity: 0;
  }
  42%,
  62% {
    opacity: 1;
  }
  100% {
    transform: translateX(42%) rotate(0deg);
    opacity: 0;
  }
}

@keyframes susurrus-orb-float {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-0.38rem) scale(1.03);
  }
}

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

@keyframes susurrus-dot-pulse {
  0%,
  100% {
    opacity: 0.56;
    scale: 0.78;
  }
  50% {
    opacity: 1;
    scale: 1.15;
  }
}

@media (max-width: 760px) {
  .immersive-hint {
    top: calc(4.8rem + env(safe-area-inset-top, 0px));
    right: calc(0.9rem + env(safe-area-inset-right, 0px));
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════
   环境光背景
   ══════════════════════════════════════ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
  animation: orbFloat 16s ease-in-out infinite;
}

.orb-teal {
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, #19c8b9 0%, transparent 70%);
  left: -8rem; top: -6rem;
}

.orb-yellow {
  width: 20rem; height: 20rem;
  background: radial-gradient(circle, #f5c842 0%, transparent 70%);
  right: 5%; top: 20%;
  animation-delay: 3s;
}

.orb-green {
  width: 22rem; height: 22rem;
  background: radial-gradient(circle, #4ade80 0%, transparent 70%);
  right: -5rem; bottom: 10%;
  animation-delay: 6s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%  { transform: translate(12px, -20px) scale(1.04); }
  66%  { transform: translate(-8px, 14px) scale(0.97); }
}

/* ══════════════════════════════════════
   浮动装饰叶片 · 背景音乐悬浮控制（右下）
   ══════════════════════════════════════ */
.site-bg-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

/* ── 悬浮按钮组容器 ── */
.float-btn-group {
  position: fixed;
  z-index: 95;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: calc(1.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
}

.music-float-control {
  --music-size: 3.25rem;
  /* 位置由父容器 float-btn-group 决定 */
  position: relative;
  right: auto;
  bottom: auto;
  z-index: auto;
  width: var(--music-size);
  height: var(--music-size);
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  background: linear-gradient(145deg, rgba(255, 252, 248, 0.96), rgba(240, 253, 250, 0.88));
  box-shadow:
    0 4px 0 var(--teal-600),
    0 10px 28px rgba(25, 200, 185, 0.22),
    0 0 0 2px rgba(25, 200, 185, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition:
    transform 0.35s var(--ease-bounce),
    box-shadow 0.25s var(--ease-smooth);
  animation: floatControlIn 0.72s var(--ease-bounce) 0.62s backwards;
}

.music-float-control:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 5px 0 var(--teal-700),
    0 14px 36px rgba(25, 200, 185, 0.28),
    0 0 0 2px rgba(25, 200, 185, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.music-float-control:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 2px 0 var(--teal-700),
    0 6px 16px rgba(25, 200, 185, 0.18),
    0 0 0 2px rgba(25, 200, 185, 0.3),
    inset 0 2px 6px rgba(0, 0, 0, 0.06);
}

.music-float-control__glow {
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(25, 200, 185, 0.35) 0%, transparent 68%);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.45s var(--ease-smooth),
    transform 0.45s var(--ease-smooth);
  pointer-events: none;
}

.music-float-control.is-playing .music-float-control__glow {
  opacity: 1;
  transform: scale(1);
  animation: music-glow-breathe 2.4s ease-in-out infinite;
}

@keyframes music-glow-breathe {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.08);
  }
}

.music-float-control__disk {
  position: absolute;
  inset: 6px;
  border-radius: inherit;
  background: conic-gradient(
    from 120deg,
    rgba(25, 200, 185, 0.12),
    rgba(255, 255, 255, 0.5),
    rgba(25, 200, 185, 0.18),
    rgba(130, 113, 87, 0.08),
    rgba(25, 200, 185, 0.12)
  );
  opacity: 0.35;
  pointer-events: none;
  transition: opacity 0.3s;
}

.music-float-control.is-playing .music-float-control__disk {
  opacity: 0.75;
  animation: music-disk-spin 10s linear infinite;
}

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

.music-float-control__face {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--teal-700);
}

.music-float-control__note {
  position: absolute;
  transition:
    opacity 0.25s var(--ease-smooth),
    transform 0.35s var(--ease-bounce);
}

.music-float-control.is-playing .music-float-control__note {
  opacity: 0;
  transform: scale(0.5) rotate(-12deg);
}

.music-float-control__bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 1.1rem;
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.25s var(--ease-smooth),
    transform 0.35s var(--ease-bounce);
}

.music-float-control.is-playing .music-float-control__bars {
  opacity: 1;
  transform: translateY(0);
}

.music-bar {
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--teal-400), var(--teal-700));
  transform-origin: center bottom;
}

.music-float-control.is-playing .music-bar {
  animation: music-bar-dance 0.55s ease-in-out infinite alternate;
}

.music-float-control.is-playing .music-bar:nth-child(1) {
  animation-delay: 0s;
}
.music-float-control.is-playing .music-bar:nth-child(2) {
  animation-delay: 0.12s;
}
.music-float-control.is-playing .music-bar:nth-child(3) {
  animation-delay: 0.24s;
}

@keyframes music-bar-dance {
  0% {
    transform: scaleY(0.35);
  }
  100% {
    transform: scaleY(1.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .music-float-control,
  .music-float-control:hover,
  .music-float-control:active {
    transition-duration: 0.01ms;
  }
  .music-float-control.is-playing .music-float-control__glow,
  .music-float-control.is-playing .music-float-control__disk,
  .music-float-control.is-playing .music-bar {
    animation: none !important;
  }
  .music-float-control.is-playing .music-float-control__disk {
    opacity: 0.6;
  }
}

.floating-leaves {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.leaf {
  position: absolute;
  font-size: 1.4rem;
  opacity: 0;
  animation: leafDrift 20s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.12));
}

.leaf-1 { left: 8%; animation-delay: 0s;   animation-duration: 22s; font-size: 1.6rem; }
.leaf-2 { left: 22%; animation-delay: 4s;  animation-duration: 18s; }
.leaf-3 { left: 55%; animation-delay: 8s;  animation-duration: 24s; font-size: 1.2rem; }
.leaf-4 { left: 72%; animation-delay: 2s;  animation-duration: 20s; }
.leaf-5 { left: 88%; animation-delay: 12s; animation-duration: 16s; font-size: 1.1rem; }

@keyframes leafDrift {
  0%   { transform: translateY(100vh) rotate(0deg);   opacity: 0; }
  5%   { opacity: 0.6; }
  90%  { opacity: 0.4; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ══════════════════════════════════════
   导航
   ══════════════════════════════════════ */
.site-header {
  position: fixed;
  inset-x: 0;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  opacity: 1;
  transform: translateY(0);
  transition:
    transform 0.48s var(--ease-smooth),
    opacity 0.32s var(--ease-smooth);
  will-change: transform, opacity;
  animation: islandHeaderDrop 0.72s var(--ease-bounce) 0.08s backwards;
}

body.is-3d-header-hidden .site-header {
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(-100% - 1.25rem));
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(25, 200, 185, 0.22);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.header-inner::before {
  content: "";
  position: absolute;
  inset: 0.15rem;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 18%, rgba(255, 255, 255, 0.38) 46%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  animation: headerSoftSheen 5.8s ease-in-out 1.2s infinite;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  color: var(--teal-700);
  transition: transform 0.2s var(--ease-bounce);
}

.site-logo:hover { transform: scale(1.05); }

.logo-icon { font-size: 1.3rem; }

.site-logo .logo-icon {
  display: inline-block;
  transform-origin: 50% 70%;
  animation: tinyIslandWave 4.4s ease-in-out 1.4s infinite;
}

/* 桌面导航 */
.desktop-nav { display: none; }

@media (min-width: 768px) {
  .desktop-nav { display: block; }
  .desktop-nav ul {
    display: flex;
    gap: 0.3rem;
  }
}

/* 导航 Tab 按钮 */
.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-family: var(--font-rounded);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.24s var(--ease-smooth);
}

.nav-tab .tab-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}
.nav-tab .tab-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.nav-tab:hover {
  background: rgba(25, 200, 185, 0.1);
  color: var(--teal-700);
  transform: translateY(-1px);
}

.nav-tab.is-active {
  background: var(--teal);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 3px 0 var(--teal-700), var(--shadow-sm);
  transform: translateY(-1px);
  animation: activeTabGlow 3.4s ease-in-out infinite;
}

.three-d-toggle {
  position: fixed;
  top: calc(0.75rem + env(safe-area-inset-top, 0px));
  right: calc(1rem + env(safe-area-inset-right, 0px));
  z-index: 140;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 2.65rem;
  margin-left: 0;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: var(--radius-full);
  font-family: var(--font-rounded);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--teal-400), var(--teal), var(--teal-700));
  box-shadow:
    0 4px 0 var(--teal-700),
    0 14px 34px rgba(25, 200, 185, 0.35),
    0 0 0 4px rgba(25, 200, 185, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 0.28s var(--ease-bounce),
    box-shadow 0.24s var(--ease-smooth),
    background 0.24s var(--ease-smooth);
  animation: floatControlIn 0.68s var(--ease-bounce) 0.45s backwards;
}

.game-toggle {
  right: calc(5.65rem + env(safe-area-inset-right, 0px));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(135deg, var(--green), var(--teal), var(--teal-700));
  animation-delay: 0.34s;
}

body.is-game-overlay-open #threeDToggle {
  opacity: 0.38;
  pointer-events: none;
}

.three-d-toggle:hover {
  transform: translateY(-3px) scale(1.06) rotate(-1deg);
  box-shadow:
    0 5px 0 var(--teal-700),
    0 18px 44px rgba(25, 200, 185, 0.42),
    0 0 0 5px rgba(25, 200, 185, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.three-d-toggle:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 1px 0 var(--teal-700),
    0 6px 16px rgba(25, 200, 185, 0.18);
}

.three-d-toggle.is-open {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(135deg, #f5c842, var(--brown-light), var(--brown));
  box-shadow:
    0 4px 0 var(--brown-dark),
    0 16px 42px rgba(92, 79, 58, 0.34),
    0 0 0 5px rgba(245, 200, 66, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.three-d-toggle__glow {
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle, rgba(25, 200, 185, 0.64) 0%, rgba(25, 200, 185, 0.22) 38%, transparent 70%),
    radial-gradient(circle at 76% 18%, rgba(245, 200, 66, 0.45), transparent 46%);
  opacity: 0.52;
  transform: scale(0.88);
  transition:
    opacity 0.28s var(--ease-smooth),
    transform 0.28s var(--ease-smooth);
  pointer-events: none;
}

.three-d-toggle:hover .three-d-toggle__glow,
.three-d-toggle.is-open .three-d-toggle__glow {
  opacity: 1;
  transform: scale(1.08);
}

.three-d-toggle__text {
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 8px rgba(10, 101, 96, 0.45);
}

.game-overlay {
  position: fixed;
  inset: 0;
  z-index: 132;
  display: grid;
  grid-template-rows: 1fr;
  padding: calc(4.25rem + env(safe-area-inset-top, 0px)) max(1rem, env(safe-area-inset-right, 0px)) max(1rem, env(safe-area-inset-bottom, 0px)) max(1rem, env(safe-area-inset-left, 0px));
  background:
    radial-gradient(circle at 15% 18%, rgba(45, 212, 191, 0.24), transparent 32%),
    radial-gradient(circle at 88% 16%, rgba(245, 200, 66, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(253, 250, 244, 0.96), rgba(240, 253, 252, 0.96));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: scale(0.985);
  transition:
    opacity 0.24s var(--ease-smooth),
    visibility 0.24s var(--ease-smooth),
    transform 0.28s var(--ease-bounce);
}

.game-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: scale(1);
}

.game-overlay__frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 1.6rem;
  background: #0a0a0a;
  box-shadow:
    0 28px 80px rgba(92, 79, 58, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 0 0 8px rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .game-toggle {
    right: calc(5.25rem + env(safe-area-inset-right, 0px));
  }

  .game-overlay {
    padding-inline: max(0.7rem, env(safe-area-inset-left, 0px)) max(0.7rem, env(safe-area-inset-right, 0px));
    padding-top: calc(4rem + env(safe-area-inset-top, 0px));
  }

  .game-overlay__frame {
    border-radius: 1rem;
  }
}

/* 汉堡按钮 */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.hamburger-btn:hover { background: rgba(25, 200, 185, 0.12); }

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2.5px;
  background: var(--brown);
  border-radius: 999px;
  transition: all 0.3s;
}

@media (min-width: 768px) {
  .hamburger-btn { display: none; }
}

/* 移动端菜单 */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.36s var(--ease-smooth), opacity 0.24s;
  margin: 0.6rem auto 0;
  max-width: 1200px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  border: 2px solid rgba(25, 200, 185, 0.18);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  max-height: 320px;
  opacity: 1;
}

.mobile-menu ul { padding: 0.5rem; }

.mobile-tab {
  width: 100%;
  justify-content: flex-start;
  border-radius: var(--radius);
  /* 确保移动端触控目标面积 ≥ 44px（WCAG 2.5.5） */
  min-height: 44px;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

/* ══════════════════════════════════════
   主内容
   ══════════════════════════════════════ */
.site-main {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 6.5rem 1.25rem 4rem;
}

@media (min-width: 768px) {
  .site-main { padding: 7rem 2rem 5rem; }
}

/* ── Tab 面板过渡 ── */
.tab-panel {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.36s var(--ease-smooth), transform 0.36s var(--ease-smooth);
}
/* 面板变为可见时恢复正常状态 */
.tab-panel.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.tab-panel.is-visible > * {
  animation: panelChildRise 0.64s var(--ease-smooth) backwards;
}

.tab-panel.is-visible > *:nth-child(2) { animation-delay: 0.08s; }
.tab-panel.is-visible > *:nth-child(3) { animation-delay: 0.16s; }
.tab-panel.is-visible > *:nth-child(4) { animation-delay: 0.24s; }

/* 首页面板初始就应可见（无需等 JS） */
#home {
  opacity: 1;
  transform: translateY(0);
}

/* !! 关键：没有 Tailwind CDN，必须自定义 hidden */
.hidden { display: none !important; }

/* ──── 通用区块标题 ──── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  animation: softSectionReveal 0.62s var(--ease-smooth) backwards;
}

.section-title {
  font-family: var(--font-rounded);
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 800;
  color: var(--brown-dark);
  letter-spacing: -0.01em;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  left: 0.08em;
  right: 18%;
  bottom: -0.28rem;
  height: 0.38rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(25, 200, 185, 0.24), rgba(245, 200, 66, 0.2), transparent);
  transform-origin: left center;
  animation: titleBrushStroke 0.9s var(--ease-smooth) 0.18s backwards;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.section-desc {
  width: 100%;
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════
   按钮系统 (Animal Crossing 3D 风格)
   ══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-full);
  font-family: var(--font-rounded);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s var(--ease-bounce);
  border: none;
  position: relative;
  top: 0;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--btn-shadow);
}

.btn-primary:hover {
  background: var(--teal-600);
  box-shadow: var(--btn-shadow-hover);
  transform: translateY(-2px);
}

.btn-primary:active {
  box-shadow: 0 1px 0 var(--teal-700);
  transform: translateY(3px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--brown);
  border: 2px solid var(--sand-200);
  box-shadow: 0 3px 0 var(--sand-200);
}

.btn-ghost:hover {
  background: #fff;
  box-shadow: 0 5px 0 var(--sand-200);
  transform: translateY(-2px);
}

.btn-ghost:active {
  box-shadow: 0 1px 0 var(--sand-200);
  transform: translateY(2px);
}

/* ══════════════════════════════════════
   主页 · Hero 卡片
   ══════════════════════════════════════ */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, #e8fdf9 0%, #fffdf0 60%, #f0fbf5 100%);
  border: 2px solid rgba(25, 200, 185, 0.25);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  animation: heroIslandRise 0.9s var(--ease-bounce) 0.1s backwards;
  /** 传给 glass-ball：#00000000 = 清屏全透明（只留球，背后透卡片渐变）；#RRGGBB 或 #RRGGBBAA 其它值 = 画布铺底 */
  --hero-glass-clear: #00000000;
}

/* 上区：左文案 + 右 3D（与 main.js .hero-top 结构对应） */
.hero-top {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  z-index: 1;
  align-items: stretch;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  min-height: 220px;
  flex: 1 1 auto;
  overflow: hidden;
  border: none;
  background: transparent;
}

/* 装饰圆点（仅右侧 3D 槽内） */
.hero-visual .hero-deco-dots {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(25, 200, 185, 0.18) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 42%, black 0%, transparent 78%);
  animation: dottedMistDrift 16s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.hero-glass-root {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.hero-glass-root canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  touch-action: none;
}

@media (min-width: 900px) {
  /* 与参考红框相当：桌面端左右约为 1:1，右侧整块为 3D 可视区域（不再 max-width 限死） */
  .hero-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: clamp(1.25rem, 3vw, 2rem);
  }

  .hero-content {
    min-width: 0;
  }

  .hero-visual {
    min-width: 0;
    width: 100%;
    max-width: none;
    min-height: min(360px, 52vh);
    align-self: stretch;
    border-radius: var(--radius-lg);
  }

  .hero-glass-root {
    min-height: min(360px, 52vh);
    height: 100%;
    position: absolute;
    inset: 0;
  }

  .hero-visual .hero-deco-dots {
    border-radius: inherit;
  }
}

@media (max-width: 899px) {
  .hero-visual {
    width: 100%;
    min-height: 260px;
    max-height: 420px;
  }
}

/* 底部波浪装饰 */
.hero-deco-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60'%3E%3Cpath d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 L1200,60 L0,60 Z' fill='rgba(25,200,185,0.06)'/%3E%3C/svg%3E") no-repeat bottom center / cover;
  pointer-events: none;
  animation: heroWaveBreathe 5.6s ease-in-out infinite;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 640px) {
  .hero-content { flex-direction: row; align-items: center; }
}

/* 头像 */
.hero-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  animation: avatarSoftFloat 4.8s ease-in-out 1s infinite;
}

.hero-avatar {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-400) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  box-shadow: 0 6px 0 var(--teal-dark), var(--shadow);
  transition: transform 0.3s var(--ease-bounce), box-shadow 0.3s;
}

.hero-avatar:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 0 var(--teal-dark), var(--shadow-lg);
}

.hero-avatar-ring {
  position: absolute;
  inset: -6px;
  border-radius: 30px;
  border: 2.5px dashed rgba(25, 200, 185, 0.4);
  animation: ringRotate 10s linear infinite;
}

@keyframes ringRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 文本区 */
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.hero-title {
  font-family: var(--font-rounded);
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--brown-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--teal) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 180% 180%;
  animation: titleGradientFlow 5.5s ease-in-out infinite;
}

.hero-subtitle {
  font-size: 0.97rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-top: 0.5rem;
  max-width: 480px;
}

.hero-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* 数据统计栏 */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1;
  animation: statsCardFloat 5.2s ease-in-out 1.2s infinite;
}

.stat-item {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 0.25rem 0.5rem;
}

.stat-num {
  display: block;
  font-family: var(--font-rounded);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--teal);
  animation: statNumberPop 0.78s var(--ease-bounce) backwards;
}

.stat-item:nth-child(1) .stat-num { animation-delay: 0.24s; }
.stat-item:nth-child(3) .stat-num { animation-delay: 0.36s; }
.stat-item:nth-child(5) .stat-num { animation-delay: 0.48s; }

.stat-label {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 2.5rem;
  background: rgba(25, 200, 185, 0.2);
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   主页 · 近期动态
   ══════════════════════════════════════ */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  animation: softCardReveal 0.7s var(--ease-smooth) 0.16s backwards;
}

.activity-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(25, 200, 185, 0.12);
  transition: background 0.2s, transform 0.22s var(--ease-smooth);
  animation: listItemSlide 0.56s var(--ease-smooth) backwards;
}

.activity-item:last-child { border-bottom: none; }
.activity-item:hover {
  background: var(--teal-50);
  transform: translateX(0.35rem);
}

.activity-item:nth-child(1) { animation-delay: 0.12s; }
.activity-item:nth-child(2) { animation-delay: 0.2s; }
.activity-item:nth-child(3) { animation-delay: 0.28s; }
.activity-item:nth-child(4) { animation-delay: 0.36s; }

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  margin-top: 0.55rem;
  box-shadow: 0 0 0 3px rgba(25, 200, 185, 0.2);
  animation: activityDotPulse 2.8s ease-in-out infinite;
}

.activity-item[data-type="write"] .activity-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(245, 200, 66, 0.2); }
.activity-item[data-type="learn"] .activity-dot { background: #a78bfa; box-shadow: 0 0 0 3px rgba(167, 139, 250, 0.2); }
.activity-item[data-type="deploy"] .activity-dot { background: #60a5fa; box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2); }
.activity-item[data-type="moment"] .activity-dot { background: #f472b6; box-shadow: 0 0 0 3px rgba(244, 114, 182, 0.28); }

.activity-item--interactive {
  cursor: pointer;
}

.activity-item--interactive:focus-visible {
  outline: 2px solid rgba(25, 200, 185, 0.65);
  outline-offset: 2px;
}

.activity-body { flex: 1; }

.activity-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-rounded);
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: rgba(25, 200, 185, 0.12);
  color: var(--teal-600);
  margin-bottom: 0.3rem;
}

.activity-item[data-type="write"] .activity-tag { background: rgba(245, 200, 66, 0.15); color: #a16207; }
.activity-item[data-type="learn"] .activity-tag { background: rgba(167, 139, 250, 0.15); color: #7c3aed; }
.activity-item[data-type="deploy"] .activity-tag { background: rgba(96, 165, 250, 0.15); color: #1d4ed8; }
.activity-item[data-type="moment"] .activity-tag { background: rgba(244, 114, 182, 0.16); color: #be185d; }

.activity-text {
  font-size: 0.93rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.activity-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  display: block;
}

/* 近期动态无文档：点击时粒子火花（main.js playActivitySparkBurst） */
.activity-spark-burst {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

.activity-spark-particle {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 5px);
  height: var(--size, 5px);
  margin: calc(var(--size, 5px) / -2) 0 0 calc(var(--size, 5px) / -2);
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    hsl(var(--hue) 92% 72%) 0%,
    hsl(var(--hue) 84% 54%) 45%,
    transparent 72%
  );
  box-shadow:
    0 0 6px 1px hsl(var(--hue) 90% 60% / 0.55),
    0 0 12px 2px hsl(var(--hue) 82% 52% / 0.28);
  opacity: 0;
  animation: activitySparkFly 0.78s cubic-bezier(0.18, 0.72, 0.22, 1) forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes activitySparkFly {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--sx), var(--sy)) scale(0.12);
    opacity: 0;
  }
}

/* ══════════════════════════════════════
   主页 · 技术栈
   ══════════════════════════════════════ */
.tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.2);
  font-family: var(--font-rounded);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brown);
  box-shadow: 0 2px 0 rgba(25, 200, 185, 0.15);
  transition: all 0.2s var(--ease-bounce);
  cursor: default;
  animation: badgeFloatIn 0.54s var(--ease-bounce) backwards;
}

.tech-badge:nth-child(2n) { animation-delay: 0.08s; }
.tech-badge:nth-child(3n) { animation-delay: 0.16s; }
.tech-badge:nth-child(4n) { animation-delay: 0.24s; }

.tech-badge:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  color: var(--teal-700);
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(25, 200, 185, 0.25);
}

.tech-icon { font-size: 1rem; }

/* ══════════════════════════════════════
   关于我页
   ══════════════════════════════════════ */
.about-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-layout { grid-template-columns: 280px 1fr; }
}

/* 个人卡片 */
.profile-card {
  background: linear-gradient(160deg, #e8fdf9 0%, #fffdf0 100%);
  border: 2px solid rgba(25, 200, 185, 0.25);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: softCardReveal 0.72s var(--ease-bounce) backwards;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--teal) 0%, #4ade80 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1rem;
  box-shadow: 0 5px 0 var(--teal-dark);
  animation: avatarSoftFloat 5.2s ease-in-out 0.8s infinite;
}

.profile-name {
  font-family: var(--font-rounded);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown-dark);
}

.profile-role {
  font-size: 0.85rem;
  color: var(--teal-600);
  font-weight: 600;
  margin-top: 0.25rem;
}

.profile-location {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.profile-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(25, 200, 185, 0.3), transparent);
  margin: 1.1rem 0;
}

.profile-links {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.profile-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(25, 200, 185, 0.25);
  background: rgba(255,255,255,0.8);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--brown);
  transition: all 0.2s var(--ease-bounce);
}

.profile-link-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: translateY(-2px);
}

.profile-badge-title {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-rounded);
  color: var(--brown-light);
  text-align: left;
  margin-bottom: 0.75rem;
}

/* 成就列表 */
.achievement-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.achievement-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  border: 1.5px solid rgba(25, 200, 185, 0.18);
  transition: all 0.2s;
  animation: listItemSlide 0.48s var(--ease-smooth) backwards;
}

.achievement-item:nth-child(2) { animation-delay: 0.07s; }
.achievement-item:nth-child(3) { animation-delay: 0.14s; }
.achievement-item:nth-child(4) { animation-delay: 0.21s; }

.achievement-item:hover {
  background: #fff;
  border-color: var(--teal-400);
  transform: translateX(3px);
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(0.4);
}

.achievement-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.achievement-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--brown-dark);
  font-family: var(--font-rounded);
}

.achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.05rem;
}

/* 右侧详情 */
.about-detail { display: flex; flex-direction: column; gap: 1.25rem; }

.about-bio-card,
.skills-section,
.interest-section {
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.15);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.28s var(--ease-bounce),
    box-shadow 0.28s var(--ease-smooth),
    border-color 0.28s var(--ease-smooth);
  animation: softCardReveal 0.66s var(--ease-smooth) backwards;
}

.about-bio-card:hover,
.skills-section:hover,
.interest-section:hover {
  border-color: rgba(25, 200, 185, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-0.18rem);
}

.skills-section { animation-delay: 0.08s; }
.interest-section { animation-delay: 0.16s; }

.about-section-label {
  font-family: var(--font-rounded);
  font-size: 1rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 0.9rem;
}

.about-bio-text {
  font-size: 0.93rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 技能条 */
.skill-rows { display: flex; flex-direction: column; gap: 0.7rem; }

.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr 3rem;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .skill-row { grid-template-columns: 110px 1fr 3rem; }
}

.skill-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-bar-track {
  height: 10px;
  background: var(--sand-100);
  border-radius: 999px;
  overflow: hidden;
}

.skill-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal) 0%, #4ade80 52%, var(--teal-400) 100%);
  background-size: 180% 100%;
  border-radius: 999px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
  animation: skillShimmer 2.8s ease-in-out infinite;
}

.skill-bar-fill.animated { width: var(--skill-w); }

.skill-pct {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-600);
  text-align: right;
}

/* 兴趣标签 */
.interest-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.interest-tag {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--teal-50);
  border: 2px solid rgba(25, 200, 185, 0.25);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--teal-700);
  font-family: var(--font-rounded);
  transition: all 0.2s var(--ease-bounce);
  cursor: default;
}

.interest-tag:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   项目页
   ══════════════════════════════════════ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(25, 200, 185, 0.22);
  background: #fff;
  font-family: var(--font-rounded);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: background-color 0.2s var(--ease-bounce), border-color 0.2s var(--ease-bounce), color 0.2s var(--ease-bounce), transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease-bounce);
  cursor: pointer;
  animation: badgeFloatIn 0.48s var(--ease-bounce) backwards;
}

.filter-btn:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.3);
  outline-offset: 2px;
}

.filter-btn:nth-child(2) { animation-delay: 0.06s; }
.filter-btn:nth-child(3) { animation-delay: 0.12s; }
.filter-btn:nth-child(4) { animation-delay: 0.18s; }

.filter-btn:hover {
  background: var(--teal-50);
  border-color: var(--teal-400);
  color: var(--teal-700);
}

.filter-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  box-shadow: 0 3px 0 var(--teal-dark);
  transform: translateY(-1px);
}

/* 项目网格 */
.project-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .project-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .project-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 常用网站 · 分组与卡片 */
.bookmark-stack {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

.bookmark-group__title {
  font-family: var(--font-display, "M PLUS Rounded 1c", system-ui, sans-serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brown-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 2px dashed rgba(25, 200, 185, 0.25);
}

.bookmark-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bookmark-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .bookmark-grid { grid-template-columns: repeat(3, 1fr); }
}

.bookmark-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s var(--ease-bounce), box-shadow 0.28s var(--ease-bounce), border-color 0.28s;
}

.bookmark-card:hover {
  border-color: rgba(25, 200, 185, 0.42);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.bookmark-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.bookmark-card__icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  line-height: 1;
  border-radius: var(--radius);
  background: linear-gradient(145deg, #e8fdf9 0%, #fffdf0 100%);
  border: 1px solid rgba(25, 200, 185, 0.2);
}

.bookmark-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bookmark-card__title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--brown-dark);
  line-height: 1.35;
}

.bookmark-card__note {
  margin: 0;
  font-size: 0.88rem;
  color: var(--brown-mid, #8b7355);
  line-height: 1.45;
}

.bookmark-empty {
  margin: 0;
  padding: 2rem;
  text-align: center;
  color: var(--brown-light);
  background: rgba(255, 253, 248, 0.85);
  border: 2px dashed rgba(25, 200, 185, 0.2);
  border-radius: var(--radius-lg);
}

/* 项目卡片 */
.project-card {
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.28s var(--ease-bounce);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  animation: projectCardRise 0.62s var(--ease-bounce) backwards;
}

.project-card:nth-child(2) { animation-delay: 0.07s; }
.project-card:nth-child(3) { animation-delay: 0.14s; }
.project-card:nth-child(4) { animation-delay: 0.21s; }
.project-card:nth-child(5) { animation-delay: 0.28s; }
.project-card:nth-child(6) { animation-delay: 0.35s; }

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, #4ade80 100%);
  opacity: 0;
  transition: opacity 0.28s;
}

.project-card:hover {
  border-color: rgba(25, 200, 185, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-6px) rotate(-0.35deg);
}

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

.project-card.featured {
  background: linear-gradient(160deg, #e8fdf9 0%, #fffdf0 100%);
  border-color: rgba(25, 200, 185, 0.35);
}

/* 卡片顶部 */
.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--icon-bg);
  color: var(--icon-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08);
  transition: transform 0.3s var(--ease-bounce);
}

.project-card:hover .project-icon-wrap {
  transform: translateY(-0.18rem) rotate(-3deg) scale(1.04);
}

/* 有项目图时：emoji/🖼️ 作底层占位，成功加载的 img 铺满盖住；onerror 删图后只显示占位 */
.project-icon-wrap--img {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.project-icon-wrap--img .project-icon-emoji {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.project-icon-wrap--img .project-icon-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.project-status {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-rounded);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.status-done {
  background: rgba(25, 200, 185, 0.12);
  color: var(--teal-600);
}

.status-active {
  background: rgba(245, 200, 66, 0.2);
  color: #a16207;
  animation: pulseBadge 2s ease-in-out infinite;
}

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

.project-featured-badge {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-rounded);
  color: var(--teal-600);
  margin-bottom: 0.4rem;
}

.project-title {
  font-family: var(--font-rounded);
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 0.5rem;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 0.9rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.project-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(25, 200, 185, 0.1);
  color: var(--teal-700);
  border: 1.5px solid rgba(25, 200, 185, 0.22);
  font-family: var(--font-rounded);
}

.project-feats {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.feat-item {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.project-footer { margin-top: auto; }

.project-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-600);
  font-family: var(--font-rounded);
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.project-link:hover {
  color: var(--teal);
  gap: 0.45rem;
}

/* 占位卡片 */
.project-coming {
  border-style: dashed;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  cursor: default;
}

.project-coming:hover { transform: none; box-shadow: none; }

.coming-content { text-align: center; }

.coming-icon {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 0.5rem;
  animation: growShrink 3s ease-in-out infinite;
}

@keyframes growShrink {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.15); }
}

.coming-title {
  font-family: var(--font-rounded);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-muted);
}

.coming-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* ══════════════════════════════════════
   文档页 · 技术博客布局（blog-panel）
   ══════════════════════════════════════ */
.blog-panel {
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
}

.blog-masthead {
  position: relative;
  padding-bottom: 1.35rem;
  margin-bottom: 1.25rem;
}

.blog-masthead::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 1rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--teal), rgba(245, 200, 66, 0.85), rgba(167, 139, 250, 0.65));
  opacity: 0.85;
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
}

.blog-panel .blog-filter-bar {
  margin-bottom: 0;
  flex: 1;
  min-width: min(100%, 280px);
}

#documents .blog-toolbar .filter-btn {
  padding: 0.42rem 1.05rem;
  border-width: 2px;
  box-shadow: 0 2px 0 rgba(25, 200, 185, 0.08);
}

#documents .blog-toolbar .filter-btn.is-active {
  box-shadow: 0 4px 0 var(--teal-dark);
}

.blog-section {
  margin-bottom: 2rem;
}

.blog-section__heading {
  font-family: var(--font-rounded);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-700);
  margin: 0 0 0.75rem;
  padding-left: 0.15rem;
}

.blog-section--archive .blog-section__heading {
  margin-bottom: 0.65rem;
}

.doc-filter-summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: rgba(25, 200, 185, 0.1);
  border: 1px solid rgba(25, 200, 185, 0.18);
  color: var(--teal-700);
  font-family: var(--font-rounded);
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  margin: 0;
}

/* 精选文章双列 */
.doc-featured-row {
  display: grid;
  gap: 1.1rem;
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .doc-featured-row { grid-template-columns: repeat(2, 1fr); }
}

.doc-featured-card {
  position: relative;
  background: linear-gradient(165deg, #e8fdf9 0%, #fffdf0 48%, #fff 100%);
  border: 2px solid rgba(25, 200, 185, 0.24);
  border-radius: var(--radius-lg);
  padding: 1.65rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s var(--ease-bounce), box-shadow 0.28s var(--ease-bounce), border-color 0.28s var(--ease-bounce);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  animation: softCardReveal 0.62s var(--ease-bounce) backwards;
  cursor: pointer;
}

.doc-featured-card:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.45);
  outline-offset: 3px;
}

.doc-featured-card:nth-child(2) { animation-delay: 0.1s; }

.doc-featured-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: rgba(25, 200, 185, 0.42);
}

.doc-featured-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.doc-featured-meta time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.doc-featured-title {
  font-family: var(--font-rounded);
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--brown-dark);
  line-height: 1.38;
}

.doc-featured-excerpt {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.72;
  flex: 1;
}

.doc-featured-submeta {
  margin: 0;
  font-size: 0.77rem;
  color: var(--text-muted);
}

.doc-featured-cta {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.52rem 1.15rem;
  border-radius: var(--radius-full);
  border: 2px solid rgba(25, 200, 185, 0.35);
  background: linear-gradient(180deg, #fff 0%, var(--teal-50) 100%);
  color: var(--teal-700);
  font-family: var(--font-rounded);
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease-bounce), box-shadow 0.2s;
  box-shadow: 0 3px 0 rgba(15, 118, 110, 0.12);
}

.doc-featured-cta:hover {
  border-color: var(--teal);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(15, 118, 110, 0.14);
}

.doc-featured-cta:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.35);
  outline-offset: 2px;
}

/* 分类标签 */
.doc-tag {
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-rounded);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.doc-tag.tech   { background: rgba(25,200,185,0.12); color: var(--teal-600); }
.doc-tag.design { background: rgba(167,139,250,0.15); color: #7c3aed; }
.doc-tag.essay  { background: rgba(245,200,66,0.18); color: #a16207; }
.doc-tag.moment { background: rgba(244,114,182,0.14); color: #be185d; }

/* 文档列表 */
.doc-list {
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: softCardReveal 0.64s var(--ease-smooth) 0.16s backwards;
}

.doc-empty {
  margin-top: 1.2rem;
  background: linear-gradient(160deg, #e8fdf9 0%, #fffdf0 100%);
  border: 2px dashed rgba(25, 200, 185, 0.28);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.doc-empty-icon {
  font-size: 2.1rem;
  margin-bottom: 0.45rem;
}

.doc-empty-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-rounded);
  font-weight: 900;
  color: var(--brown-dark);
}

.doc-empty-desc {
  margin: 0 0 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.doc-empty-reset {
  border: 2px solid rgba(25, 200, 185, 0.22);
  background: #fff;
  color: var(--teal-700);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  cursor: pointer;
  font-family: var(--font-rounded);
  font-weight: 800;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s;
}

.doc-empty-reset:hover {
  background: rgba(25, 200, 185, 0.1);
  border-color: var(--teal);
  transform: translateY(-1px);
}

.doc-empty-reset:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.3);
  outline-offset: 2px;
}

.doc-row {
  display: grid;
  grid-template-columns: minmax(8.5rem, 9.25rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem 0.9rem;
  padding: 1.05rem 1.2rem;
  border-bottom: 1px solid rgba(25, 200, 185, 0.1);
  transition: background 0.2s, transform 0.22s var(--ease-smooth);
  animation: listItemSlide 0.5s var(--ease-smooth) backwards;
  text-decoration: none;
  color: inherit;
}

.doc-row:last-child { border-bottom: none; }
.doc-row:hover {
  background: var(--teal-50);
  transform: translateX(0.22rem);
}

.doc-row:nth-child(1) { animation-delay: 0.08s; }
.doc-row:nth-child(2) { animation-delay: 0.14s; }
.doc-row:nth-child(3) { animation-delay: 0.2s; }
.doc-row:nth-child(4) { animation-delay: 0.26s; }
.doc-row:nth-child(5) { animation-delay: 0.32s; }

.doc-row-date {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 253, 252, 0.92) 100%);
  border: 2px solid rgba(25, 200, 185, 0.2);
  box-shadow: 0 2px 0 rgba(25, 200, 185, 0.06);
}

.doc-row-date__time {
  display: block;
  font-family: var(--font-rounded);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--teal-700);
  letter-spacing: 0.06em;
  white-space: nowrap;
  line-height: 1.2;
}

.doc-row-date__sep {
  margin: 0 0.12em;
  opacity: 0.45;
  font-weight: 700;
}

.doc-row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
  align-self: start;
  padding-top: 0.12rem;
}

.doc-row-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 0.55rem;
}

.doc-row-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.38;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
  min-width: 8rem;
}

.doc-row-excerpt {
  margin: 0;
  font-size: 0.81rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-row-submeta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.doc-row-aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.2rem;
}

.doc-row-icon { font-size: 1.05rem; line-height: 1; }

.doc-arrow {
  display: inline-block;
  color: var(--teal);
  transition: transform 0.22s;
  font-size: 1.1rem;
  font-weight: 700;
}

.doc-row:hover .doc-arrow { transform: translateX(5px); }

.doc-row:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.28);
  outline-offset: -3px;
  background: var(--teal-50);
}

@media (max-width: 560px) {
  .doc-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 0.55rem 0.45rem;
    align-items: start;
  }

  .doc-row-date {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding: 0.42rem 0.55rem;
  }

  .doc-row-date__time {
    font-size: 0.8rem;
  }

  .doc-row-main {
    grid-column: 1;
    grid-row: 2;
    padding-top: 0;
  }

  .doc-row-aside {
    grid-column: 2;
    grid-row: 2;
    align-self: center;
  }

  .doc-row-aside .doc-row-icon {
    display: none;
  }

  .doc-row-title {
    min-width: 0;
    font-size: 0.9rem;
  }
}

/* ══════════════════════════════════════
   分享文档 · 增强头部
   ══════════════════════════════════════ */
.blog-masthead {
  position: relative;
  padding: 2.2rem 1.8rem 1.8rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(165deg, rgba(25,200,185,0.08) 0%, rgba(245,200,66,0.06) 50%, rgba(255,255,255,0.0) 100%);
  border: 2px solid rgba(25,200,185,0.18);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.blog-masthead::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25,200,185,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.blog-masthead::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 1.2rem;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--teal), rgba(245,200,66,0.85), rgba(167,139,250,0.65));
  opacity: 0.85;
}

.blog-masthead__deco {
  position: absolute;
  top: 1.2rem;
  right: 1.8rem;
  color: var(--teal);
  pointer-events: none;
  animation: featherFloat 6s ease-in-out infinite;
}

.blog-masthead__feather {
  width: 52px;
  height: 68px;
}

.blog-masthead__content {
  position: relative;
  z-index: 1;
}

.blog-masthead__title {
  font-family: var(--font-rounded);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}

.blog-masthead__title-icon {
  font-size: 1.5rem;
  animation: bounceIn 0.6s var(--ease-bounce) backwards;
}

.blog-masthead__desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin: 0 0 1.1rem;
}

/* 统计数据 */
.blog-masthead__stats {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.blog-stat {
  display: flex;
  align-items: baseline;
  gap: 0.18rem;
}

.blog-stat__num {
  font-family: var(--font-rounded);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}

.blog-stat__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.blog-stat__sep {
  color: var(--teal-200);
  font-size: 1rem;
  font-weight: 700;
}

/* 分类颜色条（顶部） */
.cat-bar-tech   { background: linear-gradient(135deg, #19c8b9 0%, #2dd4bf 100%); }
.cat-bar-design { background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%); }
.cat-bar-essay  { background: linear-gradient(135deg, #f59e0b 0%, #fcd34d 100%); }
.cat-bar-moment { background: linear-gradient(135deg, #f472b6 0%, #fb7185 100%); }

/* ══════════════════════════════════════
   分享文档 · 工具栏增强
   ══════════════════════════════════════ */
.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1.75rem;
}

.blog-toolbar__left {
  flex: 1;
  min-width: 0;
}

.blog-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* 搜索框 */
.doc-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.doc-search-icon {
  position: absolute;
  left: 0.7rem;
  width: 15px;
  height: 15px;
  color: var(--text-muted);
  pointer-events: none;
  flex-shrink: 0;
}

.doc-search-input {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--text-primary);
  background: rgba(255,255,255,0.92);
  border: 2px solid rgba(25,200,185,0.2);
  border-radius: var(--radius-full);
  padding: 0.42rem 0.9rem 0.42rem 2.1rem;
  width: 160px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, width 0.25s var(--ease-bounce);
  box-shadow: 0 2px 8px rgba(25,200,185,0.06);
}

.doc-search-input::placeholder {
  color: var(--text-muted);
}

.doc-search-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(25,200,185,0.15);
  width: 200px;
}

/* 隐藏浏览器默认的 search 清除按钮 */
.doc-search-input::-webkit-search-cancel-button { display: none; }

/* 视图切换 */
.view-toggle {
  display: flex;
  background: rgba(255,255,255,0.85);
  border: 2px solid rgba(25,200,185,0.2);
  border-radius: var(--radius-full);
  padding: 0.18rem;
  gap: 0.12rem;
  box-shadow: 0 2px 8px rgba(25,200,185,0.06);
}

.view-toggle__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, transform 0.18s var(--ease-bounce);
  cursor: pointer;
}

.view-toggle__btn:hover {
  color: var(--teal);
  background: rgba(25,200,185,0.1);
}

.view-toggle__btn.is-active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 2px 0 var(--teal-dark);
  transform: translateY(-1px);
}

.view-toggle__btn:focus-visible {
  outline: 3px solid rgba(25,200,185,0.35);
  outline-offset: 2px;
}

/* 筛选摘要 */
.doc-filter-summary {
  font-family: var(--font-rounded);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 0.3rem 0.6rem;
  background: rgba(25,200,185,0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(25,200,185,0.12);
}

/* ══════════════════════════════════════
   分享文档 · 区块标题
   ══════════════════════════════════════ */
.blog-section__heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-rounded);
  font-size: 1rem;
  font-weight: 800;
  color: var(--teal-dark);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.blog-section__heading-icon {
  font-size: 1.1rem;
  animation: bounceIn 0.5s var(--ease-bounce) backwards;
}

/* ══════════════════════════════════════
   分享文档 · 精选卡片（升级版）
   ══════════════════════════════════════ */
.doc-featured-card {
  position: relative;
  background: linear-gradient(165deg, #e8fdf9 0%, #fffdf0 48%, #fff 100%);
  border: 2px solid rgba(25,200,185,0.24);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.32s var(--ease-bounce), box-shadow 0.32s var(--ease-bounce), border-color 0.28s;
  display: flex;
  flex-direction: column;
  animation: cardReveal 0.62s var(--ease-bounce) backwards;
  cursor: pointer;
}

.doc-featured-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(25,200,185,0.45);
}

.doc-featured-card:focus-visible {
  outline: 3px solid rgba(25,200,185,0.45);
  outline-offset: 3px;
}

.doc-featured-card:nth-child(2) { animation-delay: 0.1s; }

/* 精选封面图 */
.doc-featured-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: linear-gradient(135deg, var(--teal-100), var(--teal-50));
  transition: transform 0.4s var(--ease-smooth);
}

.doc-featured-card:hover .doc-featured-cover {
  transform: scale(1.04);
}

.doc-featured-cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -2px -2px 0;
}

.doc-featured-cover-wrap::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(255,255,255,0.8), transparent);
  pointer-events: none;
}

.doc-featured-cat-bar {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  height: 4px;
  width: 48px;
  border-radius: var(--radius-full);
  z-index: 1;
}

.doc-featured-body {
  padding: 1.1rem 1.25rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.doc-featured-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.doc-featured-meta time {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.doc-featured-title {
  font-family: var(--font-rounded);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.doc-featured-submeta {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.doc-featured-excerpt {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.doc-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-rounded);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--teal-600);
  margin-top: 0.2rem;
  transition: gap 0.2s var(--ease-bounce);
}

.doc-featured-card:hover .doc-featured-cta {
  gap: 0.55rem;
}

/* 精选空状态 */
.doc-featured-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ══════════════════════════════════════
   分享文档 · 卡片网格（新布局）
   ══════════════════════════════════════ */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  margin-bottom: 0;
}

/* 列表视图隐藏网格 */
body.doc-view-list .doc-grid { display: none; }
body.doc-view-list .doc-list { display: block; }
/* 网格视图隐藏列表 */
body.doc-view-grid .doc-list { display: none; }
body.doc-view-grid .doc-grid { display: grid; }

/* 卡片基础 */
.doc-card {
  position: relative;
  background: #fff;
  border: 2px solid rgba(25,200,185,0.14);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s var(--ease-bounce), box-shadow 0.28s var(--ease-bounce), border-color 0.22s;
  transform-style: preserve-3d;
  perspective: 600px;
}

.doc-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(25,200,185,0.35);
}

.doc-card:focus-visible {
  outline: 3px solid rgba(25,200,185,0.35);
  outline-offset: 2px;
}

/* 封面图区域 */
.doc-card-cover-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: -2px -2px 0;
  height: 130px;
  background: linear-gradient(135deg, var(--teal-100), var(--sand-100));
}

.doc-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-smooth), filter 0.3s;
  filter: saturate(0.85);
}

.doc-card:hover .doc-card-cover {
  transform: scale(1.06);
  filter: saturate(1.1);
}

/* 分类色条 */
.doc-card-cat-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

/* 分类渐变叠加 */
.doc-card-cat-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to top, rgba(255,255,255,0.9), transparent);
  pointer-events: none;
}

/* 7天内新文章标记 */
.doc-card-new-badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  background: #ef4444;
  color: #fff;
  font-family: var(--font-rounded);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  animation: pulseNewBadge 2s ease-in-out infinite;
  z-index: 2;
}

/* 卡片主体 */
.doc-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.doc-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.doc-card-title {
  font-family: var(--font-rounded);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s;
}

.doc-card:hover .doc-card-title { color: var(--teal-dark); }

.doc-card-excerpt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.doc-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.25rem;
}

.doc-card-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* 阅读时长环形进度条 */
.doc-card-read-ring {
  position: relative;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.doc-card-read-ring svg {
  width: 28px;
  height: 28px;
  transform: rotate(-90deg);
}

.doc-card-read-ring .ring-bg {
  fill: none;
  stroke: rgba(25,200,185,0.12);
  stroke-width: 3;
}

.doc-card-read-ring .ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s var(--ease-bounce);
}

.doc-card-read-ring .ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-rounded);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--teal-600);
  line-height: 1;
}

/* 卡片箭头 */
.doc-card-arrow {
  position: absolute;
  bottom: 0.85rem;
  right: 0.85rem;
  width: 28px;
  height: 28px;
  background: rgba(25,200,185,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 700;
  transition: background 0.2s, transform 0.22s var(--ease-bounce);
}

.doc-card:hover .doc-card-arrow {
  background: var(--teal);
  color: #fff;
  transform: translate(2px, -2px);
}

/* ══════════════════════════════════════
   分享文档 · 经典列表（升级后）
   ══════════════════════════════════════ */
.doc-list {
  background: #fff;
  border: 2px solid rgba(25,200,185,0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

/* ══════════════════════════════════════
   分享文档 · 空状态（升级）
   ══════════════════════════════════════ */
.doc-empty {
  text-align: center;
  padding: 3rem 1.5rem;
}

.doc-empty-icon {
  margin: 0 auto 1rem;
  display: block;
}

.doc-empty-title {
  font-family: var(--font-rounded);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.doc-empty-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.doc-empty-reset {
  font-family: var(--font-rounded);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--teal-600);
  background: rgba(25,200,185,0.1);
  border: 2px solid rgba(25,200,185,0.3);
  border-radius: var(--radius-full);
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.18s var(--ease-bounce);
}

.doc-empty-reset:hover {
  background: rgba(25,200,185,0.18);
  border-color: var(--teal);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   分享文档 · 筛选后列表重新入场
   ══════════════════════════════════════ */
.doc-card.is-filtered-out,
.doc-row.is-filtered-out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.doc-card:not(.is-filtered-out),
.doc-row:not(.is-filtered-out) {
  opacity: 1;
}

/* ══════════════════════════════════════
   响应式
   ══════════════════════════════════════ */
@media (max-width: 640px) {
  .blog-masthead {
    padding: 1.5rem 1.2rem 1.4rem;
  }
  .blog-masthead__deco { display: none; }
  .blog-masthead__title { font-size: 1.35rem; }
  .blog-masthead__stats { gap: 0.6rem; }
  .blog-stat__num { font-size: 1.05rem; }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .doc-search-input { width: 130px; }
  .doc-search-input:focus { width: 155px; }

  .doc-featured-cover { height: 130px; }

  .blog-toolbar__right { gap: 0.45rem; }
  .doc-filter-summary { display: none; }
}

@media (max-width: 560px) {
  .doc-featured-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .blog-masthead__feather { animation: none; }
  .doc-card, .doc-featured-card, .doc-list { animation: none !important; }
  .doc-card-cover { transition: none; }
  .doc-featured-cover { transition: none; }
  .doc-card-new-badge { animation: none; }
}

/* ══════════════════════════════════════
   分享文档 · GSAP 动画关键帧
   ══════════════════════════════════════ */
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(28px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardStaggerIn {
  from { opacity: 0; transform: translateY(22px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes featherFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50%       { transform: translateY(-8px) rotate(2deg); }
}

@keyframes pulseNewBadge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(239,68,68,0); }
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}

/* doc-row nth-child 延迟（经典列表保留） */
.doc-row:nth-child(1)  { animation: listItemSlide 0.45s var(--ease-smooth) 0.05s backwards; }
.doc-row:nth-child(2)  { animation: listItemSlide 0.45s var(--ease-smooth) 0.1s backwards; }
.doc-row:nth-child(3)  { animation: listItemSlide 0.45s var(--ease-smooth) 0.15s backwards; }
.doc-row:nth-child(4)  { animation: listItemSlide 0.45s var(--ease-smooth) 0.2s backwards; }
.doc-row:nth-child(5)  { animation: listItemSlide 0.45s var(--ease-smooth) 0.25s backwards; }
.doc-row:nth-child(n+6){ animation: listItemSlide 0.45s var(--ease-smooth) 0.3s backwards; }

/* 留言板页
   ══════════════════════════════════════ */
.guestbook-form-card {
  background: linear-gradient(160deg, #e8fdf9 0%, #fffdf0 100%);
  border: 2px solid rgba(25, 200, 185, 0.25);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.75rem;
  animation: heroIslandRise 0.72s var(--ease-bounce) backwards;
}

.guestbook-form-title {
  font-family: var(--font-rounded);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brown-dark);
  margin-bottom: 1.1rem;
}

.guestbook-input-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

@media (max-width: 480px) {
  .guestbook-input-group { grid-template-columns: 1fr; }
}

/* Animal Crossing 风格输入框 */
.animal-input,
.animal-textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 2px solid rgba(25, 200, 185, 0.25);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.85);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-primary);
  outline: none;
  transition: all 0.22s;
  resize: none;
}

.animal-input::placeholder,
.animal-textarea::placeholder {
  color: var(--text-muted);
}

.animal-input:focus,
.animal-textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(25, 200, 185, 0.15), 0 3px 0 var(--teal-600);
}

.animal-textarea {
  display: block;
  margin-bottom: 0.65rem;
  line-height: 1.6;
}

.guestbook-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.char-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-rounded);
}

/* 留言墙 */
.message-wall {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .message-wall { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .message-wall { grid-template-columns: repeat(3, 1fr); }
}

.message-bubble {
  background: #fff;
  border: 2px solid rgba(25, 200, 185, 0.18);
  border-radius: var(--radius-lg);
  animation: messageBubblePop 0.58s var(--ease-bounce) backwards;
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.24s var(--ease-bounce);
  position: relative;
}

.message-bubble:hover {
  border-color: rgba(25, 200, 185, 0.38);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.bubble-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.bubble-emoji { font-size: 1.4rem; }

.bubble-name {
  font-family: var(--font-rounded);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brown-dark);
  flex: 1;
}

.bubble-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.bubble-content {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* 新增留言动画 */
.message-bubble.is-new {
  animation: bubblePop 0.5s var(--ease-bounce);
}

@keyframes bubblePop {
  0%   { transform: scale(0.8); opacity: 0; }
  70%  { transform: scale(1.04); }
  100% { transform: scale(1); opacity: 1; }
}

/* ══════════════════════════════════════
   页脚
   ══════════════════════════════════════ */
.site-footer {
  position: relative;
  z-index: 10;
  margin-top: 2rem;
  padding: 2rem 1.25rem;
  border-top: 1.5px solid rgba(25, 200, 185, 0.15);
  text-align: center;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.footer-logo {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--teal-600);
}

.footer-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
}

.footer-beian a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}

.footer-beian-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.footer-beian-sep {
  opacity: 0.75;
  user-select: none;
}

.footer-beian a:hover {
  color: var(--teal-600);
}

/* ══════════════════════════════════════
   主界面动效：水彩岛屿主题
   ══════════════════════════════════════ */
@keyframes islandHeaderDrop {
  from {
    opacity: 0;
    transform: translateY(-1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headerSoftSheen {
  0%,
  64%,
  100% {
    opacity: 0;
    transform: translateX(-36%);
  }
  74% {
    opacity: 0.75;
  }
  88% {
    opacity: 0;
    transform: translateX(36%);
  }
}

@keyframes tinyIslandWave {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }
  12% {
    transform: rotate(-8deg) translateY(-1px);
  }
  24% {
    transform: rotate(7deg) translateY(0);
  }
  36% {
    transform: rotate(-4deg) translateY(-1px);
  }
  48% {
    transform: rotate(0deg) translateY(0);
  }
}

@keyframes activeTabGlow {
  0%,
  100% {
    box-shadow: 0 3px 0 var(--teal-700), var(--shadow-sm), 0 0 0 rgba(25, 200, 185, 0);
  }
  50% {
    box-shadow: 0 3px 0 var(--teal-700), var(--shadow-sm), 0 0 0 6px rgba(25, 200, 185, 0.14);
  }
}

@keyframes floatControlIn {
  from {
    opacity: 0;
    transform: translateY(1.2rem) scale(0.86);
  }
  70% {
    opacity: 1;
    transform: translateY(-0.18rem) scale(1.04);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes panelChildRise {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softSectionReveal {
  from {
    opacity: 0;
    transform: translateY(0.8rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes titleBrushStroke {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes heroIslandRise {
  from {
    opacity: 0;
    transform: translateY(1.4rem) scale(0.96);
  }
  72% {
    opacity: 1;
    transform: translateY(-0.18rem) scale(1.01);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes dottedMistDrift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 44px 22px;
  }
}

@keyframes heroWaveBreathe {
  0%,
  100% {
    opacity: 0.9;
    transform: translateY(0) scaleX(1);
  }
  50% {
    opacity: 1;
    transform: translateY(-0.25rem) scaleX(1.025);
  }
}

@keyframes avatarSoftFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-0.22rem) rotate(-1deg);
  }
}

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

@keyframes statsCardFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.18rem);
  }
}

@keyframes statNumberPop {
  from {
    opacity: 0;
    transform: translateY(0.35rem) scale(0.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes softCardReveal {
  from {
    opacity: 0;
    transform: translateY(1rem) scale(0.975);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes listItemSlide {
  from {
    opacity: 0;
    transform: translateX(-0.8rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes activityDotPulse {
  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(25, 200, 185, 0.18), 0 0 0 0 rgba(25, 200, 185, 0.18);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(25, 200, 185, 0.16), 0 0 0 8px rgba(25, 200, 185, 0);
  }
}

@keyframes badgeFloatIn {
  from {
    opacity: 0;
    transform: translateY(0.45rem) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes projectCardRise {
  from {
    opacity: 0;
    transform: translateY(1.1rem) rotate(0.7deg) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

@keyframes messageBubblePop {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.92);
  }
  70% {
    opacity: 1;
    transform: translateY(-0.12rem) scale(1.025);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ══════════════════════════════════════
   响应式微调
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-stats {
    gap: 0;
    padding: 0.75rem;
  }
  .stat-num { font-size: 1.2rem; }
  .stat-label { font-size: 0.68rem; }
  .stat-divider { height: 2rem; }
}

/* ══════════════════════════════════════
   减少动画偏好
   ══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .floating-leaves { display: none; }
  .immersive-hint {
    transform: none;
  }
  .susurrus-loading,
  .susurrus-loading__card,
  .susurrus-loading__card::before,
  .susurrus-loading__orb,
  .susurrus-loading__ring,
  .susurrus-loading__dot {
    animation: none !important;
  }
}

/* ══════════════════════════════════════
   文档阅读弹窗
   ══════════════════════════════════════ */
.doc-reader-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(84, 73, 56, 0.52);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}

.doc-reader-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.doc-reader-modal {
  position: fixed;
  top: clamp(16px, 5vh, 44px);
  left: 50%;
  transform: translate(-50%, 12px) scale(0.985);
  width: min(94vw, 1080px);
  height: min(88vh, 860px);
  max-height: 88vh;
  background: #fffdf8;
  border: 2.5px solid rgba(25, 200, 185, 0.3);
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  z-index: 901;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.doc-reader-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.doc-reader-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(25, 200, 185, 0.15);
  background: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.doc-reader-header__title-wrap {
  flex: 1;
  min-width: 0;
}

.doc-reader-actions {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
  max-width: min(100%, 26rem);
}

.doc-reader-font-btn,
.doc-reader-toc-toggle,
.doc-reader-top-btn {
  border: 1px solid rgba(25, 200, 185, 0.32);
  background: #fff;
  color: var(--teal-700);
  border-radius: 999px;
  min-width: 34px;
  height: 30px;
  font-size: 0.78rem;
  font-family: var(--font-rounded);
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.doc-reader-font-btn:hover,
.doc-reader-toc-toggle:hover,
.doc-reader-top-btn:hover {
  border-color: var(--teal);
  background: rgba(25, 200, 185, 0.1);
}

.doc-reader-font-btn:focus-visible,
.doc-reader-toc-toggle:focus-visible,
.doc-reader-top-btn:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.3);
  outline-offset: 2px;
}

.doc-reader-progress-text {
  min-width: 2.6rem;
  text-align: right;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-family: var(--font-rounded);
  font-weight: 700;
}

.doc-reader-progress-track {
  width: 100%;
  height: 3px;
  background: rgba(25, 200, 185, 0.12);
  overflow: hidden;
  flex-shrink: 0;
}

.doc-reader-progress-track--edge {
  border-bottom: 1px solid rgba(25, 200, 185, 0.08);
}

.doc-reader-progress-bar {
  display: block;
  width: 100%;
  height: 100%;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--teal), #43d3c7);
  transition: transform 0.12s linear;
}

.doc-reader-title {
  min-width: 0;
  font-family: var(--font-rounded);
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1rem;
  margin: 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-reader-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(25, 200, 185, 0.25);
  background: #fff;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.doc-reader-close:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
  transform: rotate(90deg);
}

.doc-reader-close:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.35);
  outline-offset: 2px;
}

.doc-reader-content {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2rem 2rem;
  overscroll-behavior: contain;
}

.doc-reader-main {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 0;
  min-height: 0;
  flex: 1;
}

.doc-reader-toc-pane {
  border-right: 1px solid rgba(25, 200, 185, 0.14);
  background: rgba(252, 251, 248, 0.9);
  padding: 0.9rem 0.65rem 1rem 0.75rem;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
  transition: width 0.24s ease, padding 0.24s ease, opacity 0.2s ease;
}

.doc-reader-modal.is-toc-collapsed .doc-reader-main {
  grid-template-columns: 0 minmax(0, 1fr);
}

.doc-reader-modal.is-toc-collapsed .doc-reader-toc-pane {
  width: 0;
  padding-left: 0;
  padding-right: 0;
  border-right: none;
  opacity: 0;
  overflow: hidden;
}

.doc-reader-toc {
  margin: 0;
  width: 100%;
}

.doc-reader-toc__title {
  margin: 0 0 0.55rem;
  font-family: var(--font-rounded);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--teal-700);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.doc-reader-toc__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.doc-reader-toc__item {
  margin-bottom: 0.35rem;
}

.doc-reader-toc__item.level-h2 {
  margin-left: 0;
  padding-left: 0.15rem;
}

.doc-reader-toc__item.level-h3 {
  margin-left: 0;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(25, 200, 185, 0.22);
}

.doc-reader-toc__link {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  width: 100%;
  padding: 0.38rem 0.48rem;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font-body);
  line-height: 1.45;
  border-radius: 8px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: auto;
}

.doc-reader-toc__link:hover {
  background: rgba(25, 200, 185, 0.1);
  border-color: rgba(25, 200, 185, 0.18);
  color: var(--teal-700);
}

.doc-reader-toc__link.is-active {
  background: rgba(25, 200, 185, 0.16);
  border-color: rgba(25, 200, 185, 0.28);
  color: var(--teal-700);
}

.doc-reader-toc__empty {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.doc-reader-error {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
  padding: 2.5rem 1rem;
}

.doc-reader-error__text {
  margin: 0;
  color: #b45309;
}

.doc-reader-retry {
  border: 1px solid rgba(25, 200, 185, 0.35);
  background: #fff;
  color: var(--teal-600);
  border-radius: 999px;
  font-family: var(--font-rounded);
  font-weight: 700;
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.doc-reader-retry:hover {
  background: rgba(25, 200, 185, 0.1);
  border-color: var(--teal);
}

.doc-reader-retry:focus-visible {
  outline: 3px solid rgba(25, 200, 185, 0.3);
  outline-offset: 2px;
}

.doc-reader-loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
  font-family: var(--font-rounded);
  font-size: 1rem;
}

/* 阅读器内文章壳层与元信息 */
.doc-reader-body {
  width: 100%;
}

.doc-reader-article-head {
  max-width: 46rem;
  margin: 0 auto 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(25, 200, 185, 0.16);
}

.doc-reader-article-head .doc-reader-article-head__tag,
.doc-reader-article-head .doc-tag {
  vertical-align: middle;
}

.doc-reader-article-head__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.55rem;
  font-family: var(--font-rounded);
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
}

.doc-reader-article-head__meta time {
  color: var(--text-secondary);
}

.doc-reader-article-head__sep {
  opacity: 0.55;
}

/* ══════════════════════════════════════
   Markdown 正文渲染样式
   ══════════════════════════════════════ */
.markdown-body {
  font-family: var(--font-body);
  color: var(--text-primary);
  line-height: 1.85;
  font-size: calc(0.97rem * var(--doc-font-scale, 1));
  max-width: 72ch;
  margin: 0 auto;
}

.doc-reader-modal .doc-reader-body .markdown-body {
  font-family: var(--font-doc-prose);
  line-height: 1.78;
  max-width: 46rem;
  overflow-x: auto;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4 {
  font-family: var(--font-rounded);
  font-weight: 800;
  color: var(--brown-dark);
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.markdown-body h1 { font-size: 1.5rem; }
.markdown-body h2 { font-size: 1.2rem; border-bottom: 2px solid rgba(25, 200, 185, 0.18); padding-bottom: 0.3em; }
.markdown-body h3 { font-size: 1.05rem; }

.doc-reader-modal .doc-reader-body .markdown-body h2 {
  border-bottom: none;
  background: linear-gradient(90deg, rgba(25, 200, 185, 0.42), rgba(25, 200, 185, 0)) 0 100% / 100% 2px no-repeat;
  padding-bottom: 0.38em;
}

.markdown-body p { margin: 0 0 1em; }

.markdown-body a {
  color: var(--teal-600);
  text-decoration: underline;
  text-decoration-color: rgba(25, 200, 185, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

.markdown-body a:hover { color: var(--teal); }

.markdown-body strong { font-weight: 700; color: var(--brown-dark); }

.markdown-body em { color: var(--teal-600); }

.markdown-body ul,
.markdown-body ol {
  padding-left: 1.5em;
  margin: 0.5em 0 1em;
}

.markdown-body li { margin-bottom: 0.35em; }

.markdown-body li::marker { color: var(--teal); }

.markdown-body blockquote {
  border-left: 4px solid var(--teal);
  background: rgba(25, 200, 185, 0.06);
  margin: 1.2em 0;
  padding: 0.75em 1em;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.markdown-body code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: rgba(25, 200, 185, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: var(--teal-700);
}

.markdown-body pre {
  background: #1e293b;
  border-radius: var(--radius);
  padding: 1.2em;
  overflow-x: auto;
  margin: 1em 0;
  position: relative;
}

.doc-code-copy {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.75);
  color: #cbd5e1;
  border-radius: 8px;
  font-size: 0.72rem;
  font-family: var(--font-rounded);
  font-weight: 700;
  padding: 0.24rem 0.58rem;
  cursor: pointer;
}

.doc-code-copy:hover {
  color: #fff;
  border-color: rgba(203, 213, 225, 0.85);
}

.doc-code-copy:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.75);
  outline-offset: 1px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
  color: #e2e8f0;
  font-size: 0.88em;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}

.markdown-body th {
  background: rgba(25, 200, 185, 0.12);
  font-family: var(--font-rounded);
  font-weight: 700;
  color: var(--teal-700);
  padding: 0.6em 0.8em;
  border: 1.5px solid rgba(25, 200, 185, 0.2);
  text-align: left;
}

.markdown-body td {
  padding: 0.55em 0.8em;
  border: 1.5px solid rgba(25, 200, 185, 0.12);
  color: var(--text-secondary);
}

.markdown-body tr:nth-child(even) td { background: rgba(25, 200, 185, 0.04); }

.markdown-body hr {
  border: none;
  border-top: 2px solid rgba(25, 200, 185, 0.18);
  margin: 2em 0;
}

.markdown-body img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 0.5em 0;
}

@media (max-width: 520px) {
  .doc-reader-modal {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: none;
    max-height: 96vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(24px) scale(1);
  }

  .doc-reader-modal.is-visible {
    transform: translateY(0) scale(1);
  }

  .doc-reader-main {
    display: flex;
    flex-direction: column;
  }
  .doc-reader-toc-pane {
    border-right: none;
    border-bottom: 1px solid rgba(25, 200, 185, 0.14);
    max-height: 28vh;
    padding: 0.7rem 0.85rem;
  }
  .doc-reader-content { padding: 0.95rem 1rem 1.25rem; }
  .doc-reader-header { padding: 0.7rem 0.85rem; }
  .doc-reader-title { font-size: 0.96rem; }
  .doc-reader-progress-text { min-width: 2.3rem; font-size: 0.76rem; }
  .doc-reader-font-btn,
  .doc-reader-toc-toggle,
  .doc-reader-top-btn { min-width: 30px; height: 28px; }
  .markdown-body { max-width: 100%; }
  .doc-reader-toc { width: 100%; }
  .markdown-body h1 { font-size: 1.25rem; }
  .markdown-body h2 { font-size: 1.05rem; }
  .markdown-body h1,
  .markdown-body h2,
  .markdown-body h3,
  .markdown-body h4 { margin-top: 1.35em; }
}

@media (prefers-reduced-motion: reduce) {
  .filter-btn,
  .doc-featured-card,
  .doc-row,
  .doc-list {
    animation: none !important;
  }
}

body.is-doc-reader-open {
  overflow: hidden;
}
