/* =========================================================
   鹿鸣的个人网站 — "一张可以滚动的专辑"
   设计契约见 DESIGN.md：明亮柔和的绿色系、暖白背景、深绿文字
   唱片是核心导航与转场元素，滚动即播放（GSAP ScrollTrigger 驱动）
   ========================================================= */

/* ---------- 字体（自托管；中文回落系统字体） ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/inter-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/inter-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/inter-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/playfair-display-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f6f4ec;          /* 主背景 · 暖米白 */
  --bg-alt: #eff2e6;      /* 浅灰绿背景 */
  --bg-soft: #f3f5ea;
  --ink: #1f3529;         /* 深绿 · 标题与正文重点 */
  --ink-2: #3f5747;
  --muted: #6f7f6d;       /* 次级文字 */
  --faint: #9aa894;       /* 弱化文字 */
  --accent: #57835c;      /* 主绿 · 按钮/链接 */
  --accent-deep: #2f5138; /* 深绿 · hover 与强调 */
  --accent-soft: #a9c6a4; /* 浅绿点缀 */
  --tint: #dce8d2;        /* 半透明绿 · 底纹 */
  --disc: #0f1f16;        /* 黑胶盘 */
  --label: #f5f0dd;       /* 唱片中心 Label · 米黄 */
  --line: #dfe3d3;        /* 发丝分隔线 */
  --card: #fbfaf4;

  --font-sans: "Inter", -apple-system, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Songti SC", "STSong", "SimSun",
    serif;
  --font-script: "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --nav-h: 72px;
  --container: 1240px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  /* 不要用 CSS smooth：会干扰 ScrollTrigger 的测量与恢复，平滑滚动由 JS 实现 */
  scroll-behavior: auto;
  color-scheme: light;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

::selection { background: rgba(169, 198, 164, 0.55); color: var(--accent-deep); }

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

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--accent-deep);
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 500 14px/1.2 var(--font-sans);
  padding: 10px 18px;
  min-height: 40px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f5ec;
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.btn-primary:active { background: var(--accent-deep); }
.btn-secondary {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--accent-soft);
  color: var(--accent-deep);
}
.btn-inverse { background: #fff; border-color: #fff; color: #000; }
.btn-inverse:hover { background: #f5f6f6; border-color: #f5f6f6; }

/* ---------- 顶部导航 ---------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 80;
  background: rgba(246, 244, 236, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(223, 227, 211, 0.7);
}

.nav-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--accent-deep);
}

.brand-eq { width: 30px; height: 14px; fill: var(--accent); }

.nav-links { display: flex; gap: 8px; margin-left: auto; }

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-links a:hover {
  color: var(--accent-deep);
  background: rgba(220, 232, 210, 0.7);
}

.menu-btn {
  width: 42px;
  height: 42px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  position: relative;
  transition: background-color 0.25s ease, transform 0.25s var(--ease-out);
}
.menu-btn:hover { background: var(--accent-deep); transform: scale(1.05); }
.menu-btn span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.8px;
  border-radius: 2px;
  background: #f7f5ec;
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.menu-btn span:nth-child(1) { top: 17px; }
.menu-btn span:nth-child(2) { top: 23px; }
.menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

/* ---------- 全屏菜单 ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.menu-open .menu-overlay { visibility: visible; opacity: 1; }

.menu-links { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.menu-links a {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 5.4vh, 52px);
  color: var(--ink);
  line-height: 1.3;
  transition: color 0.2s ease, letter-spacing 0.3s var(--ease-out);
}
.menu-links a i {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--faint);
  vertical-align: super;
  margin-right: 12px;
}
.menu-links a:hover { color: var(--accent); letter-spacing: 0.02em; }

.menu-foot {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-script);
  font-size: 26px;
  color: var(--accent-soft);
}

/* ---------- 左侧曲目进度（桌面） ---------- */
.rail {
  position: fixed;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  padding: 12px 7px;
  background: rgba(246, 244, 236, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(223, 227, 211, 0.7);
  border-radius: 999px;
  transition: opacity 0.45s ease;
}
/* Hero 区间内唱片占据左侧，暂时收起轨道 */
.rail.is-veiled {
  opacity: 0;
  pointer-events: none;
}

.rail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--faint);
  transition: color 0.25s ease;
}
.rail-no {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  min-width: 20px;
  text-align: right;
}
.rail-bar {
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  transition: width 0.35s var(--ease-out), background-color 0.25s ease;
}
.rail-item:hover { color: var(--accent); }
.rail-item.is-active { color: var(--accent-deep); }
.rail-item.is-active .rail-bar { width: 34px; background: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: clip;
}

.hero-vinyl {
  position: absolute;
  left: 0;
  top: 46%;
  transform: translateY(-50%);
  width: min(54vw, 700px);
  margin-left: -19vw;
  z-index: 1;
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-top: var(--nav-h);
}

.hero-copy { width: min(560px, 46%); }

.hero-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(38px, 4.4vw, 60px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-intro {
  margin-top: 26px;
  max-width: 430px;
  font-size: 17px;
  color: var(--muted);
}

.btn-play {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 9px 10px 9px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: #f7f5ec;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px -14px rgba(47, 81, 56, 0.55);
  transition: background-color 0.25s ease, transform 0.3s var(--ease-out),
    box-shadow 0.3s ease;
}
.btn-play:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -14px rgba(47, 81, 56, 0.6);
}
.btn-disc {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f7f5ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s var(--ease-out);
}
.btn-disc svg { width: 16px; height: 16px; fill: var(--accent-deep); }
.btn-play:hover .btn-disc { transform: rotate(90deg); }
.btn-disc-lg { width: 52px; height: 52px; }
.btn-disc-lg svg { width: 22px; height: 22px; }

.now-playing {
  position: absolute;
  left: 34px;
  bottom: 30px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.np-note { width: 15px; height: 15px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; }
.np-label { color: var(--faint); }
.np-track { font-weight: 500; color: var(--accent-deep); }
.np-eq { display: inline-flex; align-items: flex-end; gap: 2.5px; height: 14px; }
.np-eq i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
  height: 30%;
  animation: eq-bounce 1.1s ease-in-out infinite alternate;
}
.np-eq i:nth-child(1) { animation-delay: 0s; }
.np-eq i:nth-child(2) { animation-delay: 0.18s; height: 80%; }
.np-eq i:nth-child(3) { animation-delay: 0.32s; height: 55%; }
.np-eq i:nth-child(4) { animation-delay: 0.1s; height: 95%; }
@keyframes eq-bounce {
  from { transform: scaleY(0.45); }
  to { transform: scaleY(1); }
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--accent);
  opacity: 0.85;
  animation: hint-float 2.4s ease-in-out infinite;
}
.scroll-hint svg { width: 18px; height: 26px; }
@keyframes hint-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 7px); }
}

/* ---------- 唱片（核心组件） ---------- */
.vinyl {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
}

.vinyl-rotor {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.vinyl-disc {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  /* 沟槽 + 两圈曲目分隔缝 */
  background:
    radial-gradient(
      circle,
      transparent 0 47%,
      rgba(0, 0, 0, 0.5) 47% 47.6%,
      transparent 47.6% 63%,
      rgba(0, 0, 0, 0.42) 63% 63.6%,
      transparent 63.6%
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      #101f17 0px,
      #17291f 1.6px,
      #0d1b13 3.2px,
      #132418 4.8px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.09),
    inset 0 0 0 7px rgba(0, 0, 0, 0.38),
    inset 0 24px 60px rgba(0, 0, 0, 0.3),
    0 40px 90px -30px rgba(31, 53, 41, 0.55);
}

.vinyl-label {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  background: var(--label);
  box-shadow:
    0 0 0 1px rgba(31, 53, 41, 0.35),
    0 0 0 6px rgba(245, 240, 221, 0.12),
    0 10px 30px -8px rgba(0, 0, 0, 0.45);
}
.vinyl-label img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.vinyl-label img.is-on { opacity: 1; }
.vinyl-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7.5%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #0c1710;
  box-shadow: 0 0 0 2.5px var(--label), 0 0 0 3.5px rgba(31, 53, 41, 0.4);
}

/* 光泽：不随唱片旋转，模拟固定光源 */
.vinyl-sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background: conic-gradient(
    from 215deg at 50% 50%,
    transparent 0deg,
    rgba(255, 255, 255, 0.11) 13deg,
    transparent 32deg,
    transparent 148deg,
    rgba(220, 232, 210, 0.08) 168deg,
    transparent 188deg,
    transparent 328deg,
    rgba(255, 255, 255, 0.06) 346deg,
    transparent 360deg
  );
  mix-blend-mode: screen;
}

/* 浅绿大唱片（Works 区） */
.vinyl--pale .vinyl-disc {
  background:
    radial-gradient(
      circle,
      transparent 0 47%,
      rgba(47, 81, 56, 0.28) 47% 47.6%,
      transparent 47.6% 63%,
      rgba(47, 81, 56, 0.24) 63% 63.6%,
      transparent 63.6%
    ),
    repeating-radial-gradient(
      circle at 50% 50%,
      #b3cbaa 0px,
      #c4dabc 1.6px,
      #a9c4a1 3.2px,
      #bfd6b7 4.8px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    inset 0 0 0 7px rgba(87, 131, 92, 0.14),
    0 40px 90px -30px rgba(87, 131, 92, 0.45);
}
.vinyl--pale .vinyl-label {
  background: #f2edda;
  box-shadow: 0 0 0 1px rgba(87, 131, 92, 0.3), 0 10px 30px -10px rgba(47, 81, 56, 0.35);
}
.vinyl--pale .vinyl-sheen {
  background: conic-gradient(
    from 215deg at 50% 50%,
    transparent 0deg,
    rgba(255, 255, 255, 0.35) 13deg,
    transparent 32deg,
    transparent 328deg,
    rgba(255, 255, 255, 0.22) 346deg,
    transparent 360deg
  );
  mix-blend-mode: soft-light;
}
.vinyl--pale .vinyl-hole {
  background: #47634c;
  box-shadow: 0 0 0 2.5px #f2edda;
}

/* 环绕歌词（跟随唱片旋转） */
.lyrics-ring {
  position: absolute;
  inset: -13%;
  width: 126%;
  height: 126%;
  color: #33503c;
  pointer-events: none;
}
.lyrics-text {
  font-family: var(--font-sans);
  font-size: 20.5px;
  font-weight: 500;
  letter-spacing: 5.5px;
  fill: currentColor;
  opacity: 0.52;
}

/* 唱臂 */
.vinyl-arm {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 10px 18px rgba(31, 53, 41, 0.28));
}
.vinyl-arm-swing { transform: rotate(-16deg); transform-origin: 118px 205px; }

/* ---------- 通用 Section ---------- */
.section { position: relative; padding: 150px 0; }

.track-no {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}

.track-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(42px, 4.6vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.track-title em { font-style: normal; color: var(--accent); }

.track-sub {
  margin-top: 12px;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--accent-deep);
  transition: color 0.2s ease, gap 0.3s var(--ease-out);
}
.text-link:hover { color: var(--accent); gap: 12px; }
.text-link .icon { width: 17px; height: 17px; }

/* ---------- Track 02 · About ---------- */
.about {
  background: var(--bg-alt);
  overflow: clip;
}

.about-visual {
  position: absolute;
  left: 0;
  top: 90px;
  bottom: 90px;
  width: 34vw;
  max-width: 520px;
  border-radius: 0 36px 36px 0;
  overflow: hidden;
  box-shadow: 0 30px 70px -35px rgba(31, 53, 41, 0.5);
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-inner {
  display: flex;
  justify-content: flex-end;
}
.about-copy { width: min(560px, 50%); }

.about-text { margin-top: 30px; display: grid; gap: 16px; }
.about-text p { color: var(--muted); font-size: 16.5px; }

.about-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.signature {
  font-family: var(--font-script);
  font-size: 42px;
  line-height: 1;
  color: var(--accent-deep);
  transform: rotate(-3deg);
}

/* ---------- Track 03 · Works ---------- */
.works {
  background: var(--bg);
  overflow: clip;
}

.works-vinyl {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(50vw, 660px);
  margin-left: -21vw;
  z-index: 1;
}

.works-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  padding-top: calc(var(--nav-h) + 40px);
}
.works-panel { width: min(880px, 74%); }

.works-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.works-head-center { text-align: center; flex: 1; }
.works-head-center .track-title {
  font-size: clamp(30px, 2.6vw, 40px);
  white-space: nowrap;
}
.works-head-center .track-sub { margin-top: 8px; }
.works-arrow {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.works-arrow:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  transform: translateY(-2px);
}
.works-arrow .icon { width: 18px; height: 18px; }

.works-cards {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 10px;
  scrollbar-width: none;
}
.works-cards::-webkit-scrollbar { display: none; }
.work-card {
  flex: 0 0 calc((100% - 72px) / 4);
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease,
    border-color 0.2s ease;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: var(--hairline-strong);
  box-shadow: 0 26px 54px -30px rgba(31, 53, 41, 0.45);
}
.work-card-media { aspect-ratio: 1 / 0.86; overflow: hidden; background: var(--bg-alt); }
.work-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.work-card:hover .work-card-media img { transform: scale(1.05); }
.work-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.work-card-title { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 0; }
.work-card-sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: none;
  margin: 0;
}
.work-card-sub .icon { width: 14px; height: 14px; transition: transform 0.25s var(--ease-out); }
.work-card:hover .work-card-sub { color: var(--accent-deep); }
.work-card:hover .work-card-sub .icon { transform: translateX(3px); }
.work-card-desc {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-line;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.works-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.works-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  transition: background-color 0.25s ease, width 0.3s var(--ease-out);
}
.works-dot.is-active { background: var(--accent); width: 22px; }

/* 唱片中心 Label 的文字形态（Side B · 精选作品） */
.vinyl-label-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transform: rotate(-14deg);
  text-align: center;
}
.vlt-script {
  font-family: var(--font-script);
  font-size: clamp(18px, 1.8vw, 24px);
  color: var(--accent-deep);
  line-height: 1.1;
}
.vlt-sub {
  font-size: clamp(10px, 1vw, 12.5px);
  letter-spacing: 0.3em;
  color: var(--ink-2);
}

/* ---------- Track 04 · Notes ---------- */
.notes { background: var(--bg-alt); }

.notes-deco {
  position: absolute;
  right: 5vw;
  top: 44%;
  width: 190px;
  height: 190px;
  color: var(--accent-soft);
  opacity: 0.6;
}
.notes-note { font-size: 30px; fill: currentColor; stroke: none; }
.notes-note--sm { font-size: 22px; }

.notes-head { max-width: 720px; }

.notes-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.notes-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.notes-tab {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 18px;
  font-size: 13.5px;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}
.notes-tab:hover { color: var(--accent-deep); border-color: var(--accent-soft); }
.notes-tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f5ec;
}
.notes-viewall { background: none; border: none; cursor: pointer; }

.notes-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 30px;
}
.note-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}
.note-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -30px rgba(31, 53, 41, 0.4);
}
.note-card-date { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.note-card-title { font-size: 17px; font-weight: 600; color: var(--ink); margin: 0; }
.note-card-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}
.note-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.note-card-tag {
  color: var(--accent-deep);
  background: rgba(220, 232, 210, 0.7);
  border-radius: 999px;
  padding: 2px 11px;
}
.note-card-empty { grid-column: 1 / -1; color: var(--faint); font-size: 14px; margin: 0; }

/* ---------- Track 05 · Outro / Contact ---------- */
.contact {
  background: linear-gradient(180deg, var(--bg-alt) 0%, #e9efdd 100%);
  overflow: clip;
  /* 页脚是整页最后一条：去掉区块底部留白，让绿色条带贴到页面最底 */
  padding-bottom: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}

.contact-line {
  margin-top: 30px;
  font-size: 17px;
  color: var(--muted);
}
.contact-line em {
  font-style: normal;
  color: var(--accent);
  font-weight: 500;
}

.contact-list { margin-top: 34px; display: grid; gap: 6px; }
.contact-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  transition: background-color 0.25s ease, transform 0.3s var(--ease-out);
}
.contact-list a:hover {
  background: rgba(251, 250, 244, 0.9);
  transform: translateX(4px);
}
.c-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 50%;
  background: rgba(220, 232, 210, 0.85);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.c-icon .icon { width: 19px; height: 19px; }
.c-meta { display: flex; flex-direction: column; }
.c-label { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.c-text { font-size: 15.5px; font-weight: 500; color: var(--ink-2); }
.c-arrow { margin-left: auto; color: var(--faint); transition: color 0.2s ease, transform 0.3s var(--ease-out); }
.contact-list a:hover .c-arrow { color: var(--accent); transform: translateX(4px); }

.contact-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 34px 80px -40px rgba(31, 53, 41, 0.55);
}
.contact-visual img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 9 / 7; }
.thanks {
  position: absolute;
  right: 26px;
  bottom: 22px;
  font-family: var(--font-script);
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
  color: #f7f5ec;
  text-shadow: 0 2px 18px rgba(31, 53, 41, 0.45);
  transform: rotate(-4deg);
}
.contact-visual .btn-disc-lg {
  position: absolute;
  right: 26px;
  bottom: 96px;
  box-shadow: 0 14px 30px -12px rgba(31, 53, 41, 0.5);
}
.contact-visual .btn-disc-lg:hover svg { transform: scale(1.15); }

.site-footer {
  margin-top: 40px;
  position: relative;
  overflow: hidden;
  padding: 96px 0 36px;
  background: linear-gradient(180deg, rgba(233, 239, 221, 0) 0%, rgba(208, 224, 193, 0.5) 100%);
}
.footer-hills {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -30px;
  height: 190px;
  background: url("../img/outro-hills.svg") center bottom / cover no-repeat;
  opacity: 0.35;
  pointer-events: none;
}
.footer-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-thanks { display: flex; align-items: center; gap: 16px; }
.footer-vinyl {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  position: relative;
  flex: none;
  background: repeating-radial-gradient(
    circle at 50% 50%,
    #101f17 0 1.6px,
    #17291f 1.6px 3.2px
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    0 12px 26px -12px rgba(31, 53, 41, 0.55);
  animation: mp-spin 9s linear infinite;
}
.footer-vinyl-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32%;
  height: 32%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--label);
  box-shadow: 0 0 0 2px rgba(31, 53, 41, 0.35);
}
.footer-thanks-en {
  font-family: var(--font-script);
  font-size: 27px;
  color: var(--accent-deep);
  margin: 0;
  line-height: 1.05;
}
.footer-thanks-zh { margin: 3px 0 0; font-size: 12.5px; color: var(--muted); }
.footer-right { display: flex; align-items: center; gap: 16px; font-size: 12.5px; color: var(--faint); }
.footer-copy { font-variant-numeric: tabular-nums; }
.footer-top {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.25s var(--ease-out);
}
.footer-top:hover { border-color: var(--accent); color: var(--accent-deep); transform: translateY(-2px); }
.footer-top .icon { width: 16px; height: 16px; }

/* ---------- 滚动渐显（JS 一次性入场） ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .np-eq i { animation: none; }
  .scroll-hint { animation: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1100px) {
  /* 手机/平板：左侧被出血唱片占据，引导线整体移到右侧（右侧无遮挡） */
  .rail { left: auto; right: 10px; }
}

@media (max-width: 899px) {
  .section { padding: 96px 0; }
  .contact { padding-bottom: 0; }
  .container { padding-inline: 22px; }
  .nav-links { display: none; }

  /* Hero：唱片在上，文案在下 */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 30px);
  }
  .hero-vinyl {
    position: relative;
    top: auto;
    transform: none;
    width: 96vw;
    margin-left: -26vw;
    margin-top: -8vw;
  }
  .hero-inner { justify-content: center; padding-top: 0; }
  .hero-copy { width: 100%; max-width: 560px; text-align: center; }
  .hero-intro { margin-inline: auto; }
  .now-playing {
    position: static;
    transform: none;
    margin: 30px auto 4px;
    justify-content: center;
  }
  .hero { padding-bottom: 28px; }
  .scroll-hint { display: none; }

  /* 引导线：右侧、紧凑版 */
  .rail {
    right: 8px;
    z-index: 40;
    gap: 13px;
    opacity: 0.95;
  }
  .rail-no { font-size: 10px; min-width: 15px; }
  .rail-bar { width: 12px; }
  .rail-item.is-active .rail-bar { width: 22px; }

  .about-visual {
    position: static;
    width: auto;
    max-width: none;
    height: 300px;
    margin: 0 22px 44px;
    border-radius: 26px;
  }
  .about-inner { justify-content: flex-start; }
  .about-copy { width: 100%; max-width: 620px; }

  .works-vinyl {
    position: relative;
    top: auto;
    transform: none;
    width: 88vw;
    margin-left: -20vw;
    margin-bottom: -14vw;
  }
  .works-header { flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
  .works-arrow { width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 34px; }
  .track-title { font-size: 36px; }
  .works-thumbs { flex-wrap: wrap; }
  .thanks { font-size: 26px; right: 18px; bottom: 16px; }
  .contact-visual .btn-disc-lg { right: 18px; bottom: 78px; }
}

/* =========================================================
   功能模块：♫ 音乐 / ✎ 私人记事本 / Guestbook / Admin
   全部沿用专辑视觉 token，不与 GSAP 滚动动画耦合
   ========================================================= */

/* ---------- 导航功能按钮 ---------- */
.nav-icon-btn {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.nav-icon-btn:hover,
.nav-icon-btn[aria-expanded="true"] {
  border-color: var(--accent);
  color: var(--accent-deep);
  background: rgba(220, 232, 210, 0.6);
}

/* ---------- 音乐播放器面板 ---------- */
.music-panel {
  position: fixed;
  top: calc(var(--nav-h) + 10px);
  right: 24px;
  width: 330px;
  z-index: 75;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 24px 60px -30px rgba(31, 53, 41, 0.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s ease, transform 0.3s var(--ease-out),
    visibility 0.28s ease;
}
.music-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mp-head { display: flex; align-items: center; justify-content: space-between; }
.mp-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--faint);
}
.mp-min {
  border: none;
  background: none;
  color: var(--faint);
  font-size: 14px;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.mp-min:hover { color: var(--ink); }

.mp-main { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.mp-art {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  object-fit: cover;
  flex: none;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}
.mp-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.mp-no { font-size: 11px; color: var(--faint); letter-spacing: 0.12em; }
.mp-title {
  font-weight: 600;
  font-size: 15.5px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mp-artist { font-size: 12.5px; color: var(--muted); }
.mp-eq {
  margin-left: auto;
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 16px;
  align-self: center;
  flex: none;
}
.mp-eq i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--accent);
  animation: mp-eq 1.1s ease-in-out infinite alternate;
}
.mp-eq i:nth-child(1) { animation-delay: 0s; }
.mp-eq i:nth-child(2) { animation-delay: 0.18s; }
.mp-eq i:nth-child(3) { animation-delay: 0.32s; }
.mp-eq i:nth-child(4) { animation-delay: 0.1s; }
@keyframes mp-eq {
  from { transform: scaleY(0.3); }
  to { transform: scaleY(1); }
}
body:not(.music-playing) .mp-eq i { animation: none; transform: scaleY(0.45); }

.mp-seek-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mp-time {
  font-size: 11px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
}
.mp-time.mp-dur { text-align: right; }
.mp-seek, .mp-vol-range {
  appearance: none;
  -webkit-appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  cursor: pointer;
}
.mp-seek { flex: 1; }
.mp-vol-range { width: 70px; }
.mp-seek::-webkit-slider-thumb,
.mp-vol-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(31, 53, 41, 0.35);
}

.mp-controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 14px; }
.mp-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.mp-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.mp-play {
  width: 54px;
  height: 54px;
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f5ec;
  font-size: 15px;
  box-shadow: 0 14px 28px -12px rgba(47, 81, 56, 0.6);
}
.mp-play:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }

.mp-volrow { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.mp-vol-ico { font-size: 12px; color: var(--muted); }
.mp-volrange-spacer { flex: 1; }
.mp-list-btn {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
}
.mp-list-btn:hover { color: var(--ink); }

.mp-playlist {
  list-style: none;
  margin: 12px 0 0;
  padding: 6px;
  border-top: 1px solid var(--line);
  max-height: 180px;
  overflow: auto;
}
.mp-playlist.hidden { display: none; }
.mp-playlist li {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
}
.mp-playlist li:hover { background: rgba(220, 232, 210, 0.55); }
.mp-playlist li.is-current { color: var(--accent-deep); font-weight: 600; }
.mp-playlist li span:first-child { color: var(--faint); font-size: 11.5px; }
.mpl-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 播放状态与页面的唯一联动：Now Playing 均衡条开始律动（未播放时静止） */
body:not(.music-playing) .np-eq i { animation: none; transform: scaleY(0.55); }

/* ---------- 私人记事本抽屉 ---------- */
.notes-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 53, 41, 0.28);
  z-index: 85;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.notes-backdrop.is-open { opacity: 1; visibility: visible; }

.notes-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  z-index: 90;
  background: var(--bg-soft);
  border-left: 1px solid var(--line);
  transform: translateX(102%);
  transition: transform 0.38s var(--ease-out);
  display: flex;
  flex-direction: column;
}
.notes-drawer.is-open { transform: none; }

.nd-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.nd-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.nd-close { border: none; background: none; font-size: 14px; cursor: pointer; color: var(--ink-2); padding: 4px; }
.nd-close:hover { color: var(--ink); }

.nd-login { padding: 40px 24px; display: flex; flex-direction: column; gap: 12px; }
.nd-login p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.7; }
.nd-err { color: #a04b3a; font-size: 13px; margin: 0; min-height: 1.2em; }

.nd-input {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-2);
  width: 100%;
}
.nd-input:focus { outline: 2px solid rgba(87, 131, 92, 0.5); outline-offset: 1px; border-color: var(--accent); }

.nd-app { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.nd-toolbar { padding: 14px 16px 10px; }
.nd-toolbar .nd-new { width: 100%; }
.nd-searchrow { position: relative; padding: 0 16px 12px; }
.nd-search-ico {
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(calc(-50% - 6px));
  width: 15px;
  height: 15px;
  fill: none;
  stroke: var(--faint);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.nd-searchrow .nd-input { padding-left: 36px; }
.nd-list {
  flex: 1;
  overflow: auto;
  margin: 0;
  padding: 4px 14px 14px;
  list-style: none;
}
.nd-group {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--faint);
  padding: 12px 4px 6px;
}
.nd-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out);
}
.nd-card:hover { border-color: var(--accent-soft); transform: translateY(-1px); }
.nd-card.is-current { border-color: var(--accent); }
.nd-card-date { font-size: 11px; color: var(--faint); }
.nd-card-title { font-size: 14.5px; font-weight: 600; color: var(--ink); }
.nd-card-excerpt {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nd-empty { padding: 14px 8px; font-size: 13px; color: var(--faint); }

.nd-editor { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 14px 16px; gap: 10px; }
.nd-actions { display: flex; align-items: center; gap: 8px; }
.nd-actions .btn { padding: 6px 14px; min-height: 0; font-size: 12.5px; }
.nd-saved { margin-left: auto; font-size: 12px; color: var(--faint); }
.nd-body {
  flex: 1;
  resize: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: 400 14px/1.75 var(--font-sans);
  color: var(--ink-2);
  min-height: 160px;
}
.nd-body:focus, .nd-preview:focus { outline: 2px solid rgba(87, 131, 92, 0.45); outline-offset: 1px; }
.nd-preview {
  flex: 1;
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
}
.md-body h1, .md-body h2, .md-body h3 { color: var(--ink); line-height: 1.3; margin: 0.7em 0 0.35em; }
.md-body h1:first-child, .md-body h2:first-child, .md-body h3:first-child { margin-top: 0; }
.md-body p { margin: 0.5em 0; color: var(--ink-2); }
.md-body code {
  background: rgba(220, 232, 210, 0.7);
  padding: 1px 6px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.9em;
}
.md-body pre { background: #f0f2e4; padding: 12px; border-radius: 10px; overflow: auto; }
.md-body pre code { background: none; padding: 0; }
.md-body a { color: var(--accent-deep); text-decoration: underline; }
.md-body blockquote { margin: 0.6em 0; padding-left: 12px; border-left: 3px solid var(--accent-soft); color: var(--muted); }
.nd-foot {
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--faint);
}
.nd-link { background: none; border: none; cursor: pointer; color: var(--muted); font-size: 12px; padding: 0; }
.nd-link:hover { color: var(--ink); }
.hidden { display: none; }

/* ---------- Outro 三栏（Contact + Guestbook）与页脚 ---------- */
.outro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
}
.gb-heading {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 2px;
}
.gb-hint { margin-top: 4px; color: var(--muted); font-size: 14px; }
.gb-form { margin-top: 18px; display: grid; gap: 12px; }
.gb-input {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-2);
  width: 100%;
}
.gb-input:focus { outline: 2px solid rgba(87, 131, 92, 0.45); outline-offset: 1px; border-color: var(--accent); }
.gb-textarea { resize: vertical; min-height: 104px; line-height: 1.7; }
.hp-field { position: absolute !important; left: -9999px !important; }
.gb-form-foot { display: flex; align-items: center; justify-content: space-between; }
.gb-count { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.gb-form .btn { justify-self: end; }
.gb-msg { min-height: 1.3em; font-size: 13.5px; color: var(--accent-deep); margin: 0; }
.gb-list { margin: 6px 0 0; padding: 0; list-style: none; }
.gb-list li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.gb-item { display: flex; gap: 12px; }
.gb-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: rgba(220, 232, 210, 0.9);
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.gb-item-main { min-width: 0; flex: 1; }
.gb-item-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.gb-item-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.gb-item-date { font-size: 11.5px; color: var(--faint); }
.gb-viewall { margin-top: 16px; background: none; border: none; cursor: pointer; }
.gb-empty { color: var(--faint); font-size: 14px; }
.gb-item-text {
  margin: 0;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.gb-empty { color: var(--faint); font-size: 14px; }

@media (max-width: 899px) {
  .nav-actions { display: none; }
  .music-panel { right: 12px; left: 12px; width: auto; }
  .mp-vol-range { width: auto; flex: 1; }
  .notes-drawer { width: 100%; }
  .outro-grid { grid-template-columns: 1fr; gap: 48px; }
  .notes-cards { grid-template-columns: 1fr; }
  .work-card { flex-basis: min(78%, 300px); }
}
