﻿/* =====================================================
   Whisper · 个人主页
   双主题：night（蓝调夜） / morning（晨光林）
   ===================================================== */

:root {
  --font-serif: 'Cormorant Garamond', 'Noto Serif SC', 'Source Han Serif SC', serif;
  --font-sans:  'Inter', 'Noto Sans SC', 'PingFang SC', system-ui, -apple-system, sans-serif;
  --font-mono:  ui-monospace, 'SF Mono', Menlo, monospace;
  --font-num:   'Inter', system-ui, -apple-system, sans-serif;

  --r-sm:   10px;
  --r-md:   18px;
  --r-lg:   28px;
  --r-pill: 999px;

  --ease-out:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  --theme-dur: 900ms;

  --float-y:    6px;
  --float-x:    8px;
  --float-rot:  0.4deg;
}

/* ---------- 主题：深色（默认）---------- */
:root, [data-theme="night"] {
  --bg-img: url('./assets/night.jpg');
  --bg-tint:     rgba(11, 26, 46, 0.35);
  --bg-vignette: rgba(5, 10, 20, 0.45);

  --text:        #E8EDF5;
  --text-soft:   #B6C2D6;
  --text-mute:   #7A8AA3;
  --accent:      #7BC4E8;
  --accent-2:    #E8B380;
  --accent-glow: rgba(123, 196, 232, 0.35);

  --glass-bg:        rgba(15, 24, 40, 0.50);
  --glass-bg-strong: rgba(20, 32, 52, 0.50);
  --glass-border:    rgba(180, 210, 240, 0.14);
  --glass-shadow:    0 20px 60px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --nav-active-bg:     rgba(123, 196, 232, 0.12);
  --nav-active-border: rgba(123, 196, 232, 0.35);

  --ray-opacity:  0;
  --mist-opacity: 0;
  --glass-blur: 28px;

  --wood-1:    rgba(40, 26, 18, 0.94);
  --wood-2:    rgba(28, 18, 12, 0.95);
  --wood-3:    rgba(20, 13, 9, 0.96);
  --wood-line: rgba(255, 220, 170, 0.06);
}

/* ---------- 主题：浅色（晨光）---------- */
[data-theme="morning"] {
  --bg-img: url('./assets/morning.jpg');
  --bg-tint:     rgba(255, 240, 220, 0.05);
  --bg-vignette: rgba(255, 220, 180, 0.08);
  --text:      #1F2837;
  --text-soft: #3D4A5E;
  --text-mute: #6B7891;
  --accent:      #3D6E8F;
  --accent-2:    #B89160;
  --accent-glow: rgba(61, 110, 143, 0.32);
  --glass-bg:        rgba(255, 245, 235, 0.42);
  --glass-bg-strong: rgba(255, 245, 235, 0.48);
  --glass-border:    rgba(61, 110, 143, 0.16);
  --glass-shadow:    0 20px 50px rgba(60, 40, 20, 0.14), 0 2px 8px rgba(60, 40, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.6);

  --nav-active-bg:     rgba(61, 110, 143, 0.16);
  --nav-active-border: rgba(61, 110, 143, 0.5);

  --ray-opacity:  1;
  --mist-opacity: 1;
  --glass-blur: 12px;

  --wood-1:    rgba(120, 80, 50, 0.88);
  --wood-2:    rgba(95, 65, 40, 0.92);
  --wood-3:    rgba(75, 50, 30, 0.94);
  --wood-line: rgba(255, 230, 180, 0.12);
}

/* ---------- 基础重置 ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100vh; overflow-x: hidden; }

/* 进站占位：未就绪时全部隐藏，避免一个字体重排可见闪烁 */
html.is-loading body { visibility: hidden; }
html.is-loading *::before,
html.is-loading *::after { content: none !important; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: #0a0f18;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  transition: color var(--theme-dur) var(--ease-in-out);
  position: relative;
}

/* ========== 背景层 ========== */
.bg-layer {
  position: fixed; inset: 0; z-index: -10; overflow: hidden;
  pointer-events: none;
}
.bg-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity var(--theme-dur) var(--ease-in-out),
              filter var(--theme-dur) var(--ease-in-out);
  will-change: opacity, filter;
}
.bg-night    { background-image: var(--bg-img); opacity: 1; }
.bg-morning  { opacity: 0; }
[data-theme="morning"] .bg-night   { opacity: 0; }
[data-theme="morning"] .bg-morning { opacity: 1; background-image: var(--bg-img); }

.bg-vignette {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, var(--bg-vignette) 100%);
  transition: background var(--theme-dur) var(--ease-in-out);
}

/* ---- 浅色：丁达尔光束 ---- */
.god-rays {
  position: absolute; inset: -10%;
  opacity: var(--ray-opacity);
  pointer-events: none;
  transform: translate(var(--mx, 0), var(--my, 0));
  transition: opacity var(--theme-dur) var(--ease-in-out),
              transform 0.6s ease-out;
  will-change: opacity, transform;
}
.ray {
  position: absolute;
  top: -20%; left: -20%;
  width: 140%; height: 140%;
  background: linear-gradient(115deg,
    transparent 42%,
    rgba(255, 248, 230, 0.12) 45%,
    rgba(255, 240, 200, 0.22) 48%,
    rgba(255, 248, 230, 0.12) 51%,
    transparent 54%);
  mix-blend-mode: screen;
  filter: blur(28px);
  animation: rayDrift 14s ease-in-out infinite;
}
.ray-1 { transform: rotate(18deg); animation-delay: -2s;  opacity: 0.7; }
.ray-2 { transform: rotate(28deg); animation-delay: -6s;  opacity: 0.5; }
.ray-3 { transform: rotate(22deg); animation-delay: -10s; opacity: 0.65; }
.ray-4 { transform: rotate(34deg); animation-delay: -4s;  opacity: 0.4; }
.ray-5 { transform: rotate(15deg); animation-delay: -8s;  opacity: 0.55; }
@keyframes rayDrift {
  0%, 100% { transform: rotate(var(--rot, 22deg)) translateX(0) translateY(0); }
  50%      { transform: rotate(calc(var(--rot, 22deg) + 2deg)) translateX(8px) translateY(-6px); }
}

/* ---- 浅色：地面光斑 ---- */
.light-spots {
  position: absolute; inset: 0;
  opacity: var(--ray-opacity);
  pointer-events: none;
  transition: opacity var(--theme-dur) var(--ease-in-out);
  mix-blend-mode: screen;
}
.spot {
  position: absolute;
  width: 220px; height: 110px;
  background: radial-gradient(ellipse at center,
    rgba(255, 245, 215, 0.55) 0%,
    rgba(255, 230, 180, 0.32) 30%,
    rgba(255, 220, 160, 0.1) 60%,
    transparent 80%);
  filter: blur(40px);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: spotBreathe 8s ease-in-out infinite;
}
.spot-1 { top: 72%; left: 28%; animation-delay: -1s; width: 280px; height: 140px; opacity: 0.85; }
.spot-2 { top: 78%; left: 58%; animation-delay: -3s; width: 240px; height: 120px; opacity: 0.75; }
.spot-3 { top: 68%; left: 82%; animation-delay: -5s; width: 200px; height: 100px; opacity: 0.65; }
.spot-4 { top: 85%; left: 42%; animation-delay: -7s; width: 320px; height: 160px; opacity: 0.55; }
.spot-5 { top: 88%; left: 70%; animation-delay: -2s; width: 260px; height: 130px; opacity: 0.7; }
@keyframes spotBreathe {
  0%, 100% { opacity: var(--o, 0.7); transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: calc(var(--o, 0.7) * 0.7); transform: translate(-50%, -50%) scale(1.08); }
}

/* ---- 浅色：晨雾 ---- */
.mist-overlay {
  position: absolute; inset: 0;
  opacity: var(--mist-opacity);
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.18), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 240, 220, 0.14), transparent 50%);
  mix-blend-mode: soft-light;
  transition: opacity var(--theme-dur) var(--ease-in-out);
}

/* ---- 粒子 Canvas ---- */
#particleCanvas {
  position: fixed; inset: 0;
  z-index: -1;
  width: 100%; height: 100%;
  pointer-events: none;
  display: block;
}

/* 日夜交替蒙层 */
.transition-curtain {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(11, 26, 46, 0.35) 0%,
    rgba(255, 240, 220, 0.3) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--theme-dur) var(--ease-in-out);
}
.transition-curtain.is-flashing { opacity: 1; }

/* ========== 顶部导航 ========== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 36px;
  z-index: 100;
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
}
.brand:hover { transform: scale(1.02); }
.brand.is-avatar .brand-mark {
  font-size: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.brand.is-avatar .brand-mark img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.brand.is-avatar .brand-mark::before {
  content: attr(data-emoji);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
}
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--accent);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}

.nav {
  display: flex; gap: 6px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 6px;
  box-shadow: var(--glass-shadow);
}
.nav-item {
  padding: 8px 20px;
  font-size: 14px;
  letter-spacing: 0.18em;
  color: var(--text-soft);
  text-decoration: none;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: all 0.35s var(--ease-out);
}
.nav-item:hover { color: var(--text); }
.nav-item.active {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--text);
}

.icon-btn {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--glass-shadow);
  transition: all 0.35s var(--ease-out);
}
.icon-btn:hover { transform: rotate(15deg); border-color: var(--accent); }

.theme-icon-morning { display: none; }
.theme-icon-night   { display: inline; }
[data-theme="morning"] .theme-icon-night   { display: none; }
[data-theme="morning"] .theme-icon-morning { display: inline; }

/* ========== 视图舞台 ========== */
.stage {
  position: relative;
  min-height: 100vh;
  padding: 110px 36px 140px;
}
.view {
  display: none;
}
/* 准备阶段不跑 viewIn 动画，避免进站重访重画。
   JS 加 html.is-ready 后才启用。 */
body.no-anim .view.is-active,
html.is-loading .view.is-active {
  animation: none !important;
}
.view.is-active { display: block; animation: viewIn 0.6s var(--ease-out); }
@keyframes viewIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ========== 通用毛玻璃卡片 ========== */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur, 28px)) saturate(160%);
  -webkit-backdrop-filter: blur(var(--glass-blur, 28px)) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
  padding: 28px 32px;
  color: var(--text);
  transition:
    background var(--theme-dur) var(--ease-in-out),
    border-color var(--theme-dur) var(--ease-in-out),
    color var(--theme-dur) var(--ease-in-out),
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
  will-change: transform;
}
.glass-card:hover {
  transform: translateY(-3px);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.25),
    0 8px 20px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
[data-theme="morning"] .glass-card:hover {
  box-shadow:
    0 32px 80px rgba(120, 90, 50, 0.28),
    0 8px 20px rgba(120, 90, 50, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

/* ========== 通用视图头 ========== */
.view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}
.view-header-text { display: flex; flex-direction: column; gap: 4px; }
.works-title-lg {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.view-sub {
  font-size: 13px;
  color: var(--text-mute);
  letter-spacing: 0.06em;
}
.view-sub span { color: var(--accent); font-weight: 500; }

/* ========== HOME 视图 ========== */
.view-home {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  min-height: calc(100vh - 240px);
  padding: 0 20px;
}
.view-home.is-active {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

.home-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

/* 首页装饰分隔线 */
.home-divider {
  width: 60px; height: 1px;
  margin: 0 auto;
  background: linear-gradient(90deg,
    transparent,
    var(--accent) 20% 80%,
    transparent);
  opacity: 0.35;
}

/* 时间卡片 */
.time-card {
  padding: 40px 48px;
  text-align: center;
  animation: floatY 18s ease-in-out infinite;
}
.time-display {
  display: flex; align-items: baseline; justify-content: center; gap: 6px;
  color: var(--text);
  margin-bottom: 14px;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.time-hm {
  font-family: var(--font-num);
  font-size: 86px; font-weight: 200;
  letter-spacing: -0.025em;
  line-height: 1;
  text-shadow: 0 0 60px var(--accent-glow);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss02" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-synthesis: none;
}
.time-sec {
  font-family: var(--font-num);
  font-size: 28px; font-weight: 300;
  color: var(--text-mute);
  align-self: flex-start;
  margin-top: 12px;
  font-feature-settings: "tnum" 1, "lnum" 1, "ss02" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-synthesis: none;
}
.date-display {
  display: flex; gap: 14px; align-items: baseline; justify-content: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.date-year {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.date-week {
  color: var(--accent); font-weight: 500;
  font-family: var(--font-serif);
  font-size: 18px;
  letter-spacing: 0.08em;
}
.date-md {
  font-family: var(--font-num);
  font-size: 16px;
  color: var(--text-soft);
  font-feature-settings: "tnum" 1, "lnum" 1, "ss02" 1;
  font-variant-numeric: tabular-nums lining-nums;
  font-synthesis: none;
}
.greeting {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 16px;
  color: var(--text-mute);
  letter-spacing: 0.05em;
}

/* 自我介绍卡 */
.bio-card {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  position: relative;
  background: linear-gradient(135deg, var(--glass-bg) 0%, var(--glass-bg-strong) 100%);
}
.bio-avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--glass-bg-strong);
  border: 2px solid var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px;
  flex-shrink: 0;
  overflow: hidden;
}
.bio-avatar img { width: 100%; height: 100%; object-fit: cover; }
.bio-info { flex: 1; min-width: 0; }
.bio-name {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 6px;
  color: var(--text);
}
.bio-tagline {
  font-size: 14px;
  color: var(--text-soft);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 6px;
}
.bio-intro {
  font-size: 13px;
  color: var(--text-mute);
  line-height: 1.65;
  margin-bottom: 10px;
  max-width: 600px;
  white-space: pre-wrap;
}
.bio-links { display: flex; gap: 8px; flex-wrap: wrap; }
.bio-links a {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
  padding: 3px 10px;
  border: 1px solid var(--nav-active-border);
  border-radius: var(--r-pill);
  transition: all 0.2s;
  word-break: break-all;
}
.bio-links a:hover { background: var(--nav-active-bg); }
.bio-edit {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  color: var(--text);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s;
}
.bio-edit:hover { background: var(--accent); color: #0a0f18; border-color: var(--accent); }

/* 引言 + 迷你音乐 */
.quote-card {
  padding: 28px 32px;
  text-align: left;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quote-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  letter-spacing: 0.03em;
  font-style: italic;
}
.quote-author {
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-mute);
  text-align: right;
  padding-right: 4px;
  font-weight: 300;
  text-transform: uppercase;
}
.quote-shuffle {
  position: absolute;
  top: 12px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  color: var(--text-mute);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
  opacity: 0.5;
}
.quote-shuffle:hover {
  opacity: 1;
  color: var(--accent);
  border-color: var(--accent);
  transform: rotate(180deg);
}

.mini-music-card {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 20px;
  animation: floatDiag 25s ease-in-out infinite;
  animation-delay: -12s;
}
.mini-cover {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  background: rgba(180, 190, 205, 0.25);
  border: 1px solid rgba(180, 190, 205, 0.2);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mini-cover::before {
  content: '♫';
  font-size: 20px;
  color: var(--text-mute);
  opacity: 0.6;
}
.mini-info { flex: 1; min-width: 0; }
.mini-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-artist {
  font-size: 12px;
  color: var(--text-mute);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mini-play {
  width: 42px; height: 42px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  border-radius: var(--r-pill);
  color: var(--text);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s var(--ease-out);
}
.mini-play:hover { border-color: var(--accent); transform: scale(1.05); }
.mini-play svg { width: 16px; height: 16px; }

/* 漂浮动画 */
@keyframes floatY {
  0%, 100% { transform: translateY(0)        rotate(0deg); }
  25%      { transform: translateY(calc(-1 * var(--float-y)))     rotate(calc(-1 * var(--float-rot))); }
  50%      { transform: translateY(calc(-1 * var(--float-y) / 3)) rotate(0deg); }
  75%      { transform: translateY(calc(-1 * var(--float-y) * 1.3)) rotate(var(--float-rot)); }
}
@keyframes floatX {
  0%, 100% { transform: translateX(0)        rotate(0deg); }
  33%      { transform: translateX(var(--float-x))       rotate(var(--float-rot)); }
  66%      { transform: translateX(calc(-1 * var(--float-x) * 0.75)) rotate(calc(-1 * var(--float-rot))); }
}
@keyframes floatDiag {
  0%, 100% { transform: translate(0, 0)      rotate(0deg); }
  20%      { transform: translate(calc(-1 * var(--float-y) * 0.6), calc(-1 * var(--float-y) * 0.6)) rotate(calc(var(--float-rot) * 0.5)); }
  40%      { transform: translate(var(--float-x) * 0.75, calc(-1 * var(--float-y) * 0.5)) rotate(calc(-1 * var(--float-rot) * 0.75)); }
  60%      { transform: translate(calc(var(--float-y) * 0.5), calc(-1 * var(--float-y) * 1.1)) rotate(calc(var(--float-rot) * 0.5)); }
  80%      { transform: translate(calc(-1 * var(--float-x) * 0.6), calc(-1 * var(--float-y) * 0.3)) rotate(calc(-1 * var(--float-rot) * 0.5)); }
}
.glass-card.time-card:hover,
.glass-card.quote-card:hover,
.glass-card.mini-music-card:hover {
  animation-play-state: paused;
}

/* ========== WORKS 视图 ========== */
.view-works {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.upload-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  border-radius: var(--r-pill);
  color: #0a0f18;
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-weight: 500;
}
.upload-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
}

/* ============== 音乐上传动作区 ============== */
.music-actions {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.batch-toggle {
  display: inline-flex; align-items: center;
  padding: 11px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  font-weight: 500;
}
.batch-toggle:hover { border-color: var(--accent); transform: translateY(-2px); }
.batch-toggle[aria-pressed="true"] {
  background: var(--nav-active-bg);
  border-color: var(--nav-active-border);
  color: var(--accent);
}

/* ============== 批量工具条 ============== */
.batch-bar {
  max-width: 1100px;
  margin: 0 auto 22px;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--accent);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  animation: batchBarIn 0.3s var(--ease-out);
}
.batch-bar[hidden] { display: none !important; }
@keyframes batchBarIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.batch-info {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}
.batch-info #batchSelectedCount {
  color: var(--accent);
  font-weight: 600;
}
.batch-bar-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.batch-btn {
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}
.batch-btn:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.batch-btn.batch-delete {
  background: rgba(204, 60, 80, 0.15);
  border-color: rgba(204, 60, 80, 0.4);
  color: #d45;
}
.batch-btn.batch-delete:hover { background: rgba(204, 60, 80, 0.3); color: #fff; }
.batch-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  border-color: var(--glass-border);
}

/* ============== 批量选中状 ============== */
/* 选中附在 slot 上 */
.vinyl-slot.batch-mode .vinyl-delete { display: none; }
.vinyl-check {
  position: absolute;
  top: 6px; left: 6px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.5);
  border-radius: var(--r-pill);
  color: transparent;
  z-index: 6;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}
.vinyl-slot.batch-mode .vinyl-check { opacity: 1; }
.vinyl-slot.batch-mode { cursor: pointer; }
.vinyl-check svg { width: 14px; height: 14px; }
.vinyl-slot.is-selected .vinyl-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0f18;
}
.vinyl-slot.is-selected .vinyl-disc {
  filter: drop-shadow(0 0 12px var(--accent-glow));
}
.vinyl-slot.batch-mode:hover {
  transform: translateY(-4px) scale(1.02);
}
/* 批量模式下隐藏旋转浮起等动画 */
.vinyl-slot.batch-mode .vinyl-slot:nth-child(odd),
.vinyl-slot.batch-mode:hover .vinyl-disc {
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 16px;
}
@media (max-width: 1200px) {
  .works-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

.work-card {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  cursor: pointer;
  transition: all 0.4s var(--ease-out);
  aspect-ratio: 4 / 5;
}
.work-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
              0 0 40px var(--accent-glow);
}

/* Bento 尺寸变体 */
.work-card.size-lg   { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; min-height: 416px; }
.work-card.size-md   { grid-column: span 2; aspect-ratio: auto; min-height: 200px; }
.work-card.size-tall { grid-row: span 2; aspect-ratio: auto; min-height: 416px; }

.work-media {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s var(--ease-out);
}
.work-card:hover .work-media { transform: scale(1.06); }
.work-media video { width: 100%; height: 100%; object-fit: cover; }

/* 视频播放指示器 */
.work-play-indicator {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  z-index: 3;
  opacity: 0.85;
  transition: opacity 0.3s;
  pointer-events: none;
}
.work-play-indicator span {
  color: #fff; font-size: 18px; margin-left: 3px;
}
.work-card:hover .work-play-indicator { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }

.work-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.7) 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 18px;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.work-card:hover .work-overlay { opacity: 1; }
.work-title {
  font-size: 14px; color: #fff;
  margin-bottom: 4px;
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.work-caption {
  font-size: 12px; color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.work-date {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.1em;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.work-delete {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: all 0.25s var(--ease-out);
  z-index: 4;
  font-size: 18px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.work-card:hover .work-delete,
.work-card:focus-within .work-delete { opacity: 1; }
.work-delete:hover { background: #d45; transform: scale(1.1); }
.work-delete:active { transform: scale(0.95); }

.works-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--text-mute);
}
.works-empty-icon {
  font-size: 56px;
  font-family: var(--font-serif);
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
}
.works-empty p {
  font-family: var(--font-serif);
  font-size: 22px;
  margin-bottom: 6px;
  color: var(--text-soft);
}
.works-empty small { font-size: 13px; line-height: 1.7; }

/* ========== MUSIC 视图：唱片柜 ========== */
.view-music {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.cabinet-wrapper {
  padding: 8px;
  display: flex;
  justify-content: center;
}
.cabinet-frame {
  width: 100%;
  max-width: 1000px;
  background:
    linear-gradient(180deg,
      var(--wood-1) 0%,
      var(--wood-2) 50%,
      var(--wood-3) 100%),
    repeating-linear-gradient(90deg,
      var(--wood-line) 0px,
      var(--wood-line) 1px,
      transparent 1px,
      transparent 5px);
  border-radius: var(--r-lg);
  padding: 28px 26px;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -30px 60px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}
/* 顶部装饰条 */
.cabinet-top {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: linear-gradient(180deg,
    rgba(255, 220, 170, 0.15),
    rgba(255, 220, 170, 0));
  pointer-events: none;
}
/* 底部装饰条 */
.cabinet-base {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14px;
  background: linear-gradient(0deg,
    rgba(0, 0, 0, 0.35),
    rgba(0, 0, 0, 0));
  pointer-events: none;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
}
.cabinet-body { position: relative; z-index: 1; }

.cabinet-shelf {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px 14px;
  min-height: 200px;
  align-items: end;
  padding: 8px 4px;
}
/* 隔板：两个 shelf 之间的实木板 */
.cabinet-shelf-divider {
  height: 14px;
  margin: 18px 4px;
  border-radius: 2px;
  background:
    linear-gradient(180deg,
      rgba(255, 220, 170, 0.12) 0%,
      rgba(0, 0, 0, 0.25) 50%,
      rgba(0, 0, 0, 0.4) 100%);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 220, 170, 0.1);
  position: relative;
}
.cabinet-shelf-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg,
    transparent 0px,
    transparent 4px,
    rgba(0, 0, 0, 0.15) 4px,
    rgba(0, 0, 0, 0.15) 5px);
  border-radius: 2px;
}

.cabinet-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: rgba(255, 245, 230, 0.6);
  font-family: var(--font-serif);
  font-size: 18px;
  padding: 60px 20px;
}
.cabinet-empty small {
  display: block;
  margin-top: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-style: normal;
  color: rgba(255, 245, 230, 0.4);
}

/* 单个唱片格 */
.vinyl-slot {
  position: relative;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: transform 0.45s var(--ease-out);
  transform-origin: bottom center;
}
.vinyl-slot:hover {
  transform: translateY(-12px) rotate(-2deg);
  z-index: 5;
}
.vinyl-slot:active {
  transform: translateY(-8px) scale(0.98);
}

/* 唱片删除按钮：右上角 ×，平时半藏、hover/focus 浮现 */
.vinyl-delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-pill);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  z-index: 6;
  font-size: 16px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.25s var(--ease-out), transform 0.2s var(--ease-out), background 0.2s;
}
.vinyl-slot:hover .vinyl-delete,
.vinyl-slot:focus-within .vinyl-delete { opacity: 1; }
.vinyl-delete:hover { background: #d45; transform: scale(1.12); }
.vinyl-delete:active { transform: scale(0.94); }
/* 触屏设备没有 hover，常驻可见 */
@media (hover: none) {
  .vinyl-delete { opacity: 0.85; }
}
.vinyl-disc {
  width: 100%; height: 100%;
  position: relative;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6));
  transition: filter 0.3s;
}
.vinyl-slot:hover .vinyl-disc { filter: drop-shadow(0 12px 24px rgba(255, 220, 160, 0.35)); }
.vinyl-slot .vinyl-disc svg {
  width: 100%; height: 100%;
  display: block;
  transition: transform 0.4s;
}
.vinyl-slot.is-playing .vinyl-disc svg {
  animation: spinDisc 6s linear infinite;
}
@keyframes spinDisc { to { transform: rotate(360deg); } }

.slot-label {
  position: absolute;
  bottom: -22px; left: 0; right: 0;
  font-size: 11px;
  color: rgba(255, 245, 230, 0.7);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}
/* 唱片底下的"缝隙阴影"——模拟唱片嵌入木槽 */
.vinyl-slot::after {
  content: '';
  position: absolute;
  bottom: -10px; left: 8%; right: 8%;
  height: 3px;
  background: radial-gradient(ellipse at center,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.3) 40%,
    transparent 80%);
  border-radius: 50%;
  filter: blur(1px);
}

/* ========== ABOUT 视图 ========== */
.view-about {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-form { padding: 32px 36px; }
.form-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.form-row > span {
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-row input[type="text"],
.form-row input[type="url"],
.form-row textarea {
  padding: 12px 14px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  resize: vertical;
}
.form-row textarea {
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 90px;
}
.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  background: var(--glass-bg-strong);
}
.avatar-row {
  display: flex;
  gap: 12px;
  align-items: center;
}
.avatar-row input[type="text"] { width: 80px; text-align: center; font-size: 28px; }
.avatar-upload {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--glass-bg-strong);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  color: var(--text-soft);
}
.avatar-upload:hover { background: var(--accent); color: #0a0f18; border-color: var(--accent); }
.form-links { display: flex; flex-direction: column; gap: 8px; }
.form-actions { margin-top: 8px; }
.btn-save {
  width: 100%;
  padding: 14px;
  border-radius: var(--r-pill);
  border: none;
  background: var(--accent);
  color: #0a0f18;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: 0.12em;
  font-weight: 600;
  transition: all 0.25s var(--ease-out);
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 8px 20px var(--accent-glow); }

.form-section-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.form-section-sub {
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 20px;
}
.quote-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.quote-list-empty {
  font-size: 13px;
  color: var(--text-mute);
  text-align: center;
  padding: 12px 0;
}
.quote-list-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--glass-bg);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  font-size: 13px;
}
.quote-list-text {
  flex: 1;
  color: var(--text-soft);
  line-height: 1.4;
}
.quote-list-del {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-mute);
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.quote-list-del:hover {
  background: rgba(255, 80, 80, 0.2);
  color: #ff5050;
}

#quoteForm {
  margin-top: 24px;
}

/* ========== 音乐悬浮球 ========== */
.music-fab {
  position: fixed; right: 28px; bottom: 28px;
  width: 64px; height: 64px;
  border-radius: var(--r-pill);
  background: var(--glass-bg-strong);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--glass-shadow);
  cursor: pointer;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s var(--ease-out);
}
.music-fab:hover { transform: scale(1.06); }

.fab-disc {
  position: absolute; inset: 8px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.95;
  transition: transform 0.6s var(--ease-out);
}
.fab-disc svg { width: 100%; height: 100%; display: block; }
.music-fab.is-playing .fab-disc { animation: spinDisc 8s linear infinite; }

.fab-play {
  position: absolute; right: -6px; top: -6px;
  width: 26px; height: 26px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #0a0f18;
  border: 2px solid var(--glass-bg-strong);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 2;
}
.fab-play svg { width: 12px; height: 12px; }
.fab-play .ic-pause { display: none; }
.music-fab.is-playing .fab-play .ic-play  { display: none; }
.music-fab.is-playing .fab-play .ic-pause { display: inline; }

.fab-eq {
  position: absolute; bottom: 10px; left: 12px;
  display: none; gap: 2px;
  align-items: flex-end; height: 10px;
}
.fab-eq span {
  width: 2px; height: 4px;
  background: var(--accent);
  border-radius: 1px;
  animation: eqBounce 0.8s ease-in-out infinite;
}
.fab-eq span:nth-child(2) { animation-delay: 0.15s; }
.fab-eq span:nth-child(3) { animation-delay: 0.3s; }
.fab-eq span:nth-child(4) { animation-delay: 0.45s; }
@keyframes eqBounce {
  0%, 100% { height: 3px; }
  50%      { height: 10px; }
}
.music-fab.is-playing .fab-eq { display: flex; }

/* ========== Toast ========== */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 28px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  color: var(--text);
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  z-index: 10000;
  opacity: 0;
  transition: all 0.35s var(--ease-out);
  pointer-events: none;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast[hidden] { display: none; }

/* ========== Lightbox 弹层 ========== */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(5, 10, 20, 0.94);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 60px;
  animation: lightboxIn 0.3s var(--ease-out);
}
.lightbox[hidden] { display: none; }

@keyframes lightboxIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-stage {
  max-width: 90vw;
  max-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.lightbox-stage img,
.lightbox-stage video {
  display: block;
  max-width: 90vw;
  max-height: calc(100vh - 200px);
  width: auto;
  height: auto;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: #000;
}
/* 视频需要撑满可读尺寸 */
.lightbox-stage video {
  width: auto;
  height: auto;
  max-height: calc(100vh - 200px);
}

.lightbox-fallback {
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
  padding: 60px 40px;
}
.lb-fallback-icon {
  font-size: 56px;
  color: var(--accent);
  margin-bottom: 16px;
  opacity: 0.7;
}
.lb-fallback-msg {
  font-family: var(--font-serif);
  font-size: 24px;
  margin-bottom: 8px;
}
.lb-fallback-hint {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  cursor: pointer;
  border-radius: var(--r-pill);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  z-index: 10;
}
.lightbox-close {
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  font-size: 24px;
}
.lightbox-prev,
.lightbox-next {
  top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 32px;
  font-weight: 300;
}
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: 64px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 60%;
  padding: 10px 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.lightbox-info {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 18px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  border-radius: var(--r-pill);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
  display: none;
}

/* ========== 音乐抽屉 ========== */
.music-drawer {
  position: fixed; right: 28px; bottom: 110px;
  width: 340px;
  background: var(--glass-bg-strong);
  backdrop-filter: blur(30px) saturate(160%);
  -webkit-backdrop-filter: blur(30px) saturate(160%);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--glass-shadow);
  padding: 24px;
  z-index: 199;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.4s var(--ease-out);
}
.music-drawer.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.drawer-close {
  position: absolute; top: 14px; right: 14px;
  width: 28px; height: 28px;
  border: none; background: transparent;
  color: var(--text-soft); cursor: pointer;
  font-size: 20px; border-radius: var(--r-pill);
  transition: all 0.2s;
}
.drawer-close:hover { background: var(--glass-bg); color: var(--text); }

.drawer-art {
  display: flex; justify-content: center;
  margin-bottom: 18px;
}
.drawer-disc {
  width: 160px; height: 160px;
  border-radius: 50%;
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
  display: flex; align-items: center; justify-content: center;
}
.drawer-disc svg { width: 100%; height: 100%; display: block; }
.music-drawer.is-playing .drawer-disc { animation: spinDisc 6s linear infinite; }

.drawer-info { text-align: center; }
.drawer-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.drawer-artist { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }

.drawer-progress {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--text-mute);
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 14px;
}
.progress-bar {
  flex: 1; height: 4px;
  background: var(--glass-bg);
  border-radius: var(--r-pill);
  cursor: pointer;
  overflow: hidden;
}
.progress-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: var(--r-pill);
  transition: width 0.1s linear;
}

.drawer-controls {
  display: flex; justify-content: center; align-items: center; gap: 16px;
}
.ctrl-btn {
  width: 42px; height: 42px;
  border: none; background: transparent;
  color: var(--text-soft); cursor: pointer;
  font-size: 18px; border-radius: var(--r-pill);
  transition: all 0.25s var(--ease-out);
  display: inline-flex; align-items: center; justify-content: center;
}
.ctrl-btn:hover { color: var(--text); background: var(--glass-bg); }
.ctrl-main {
  width: 52px; height: 52px;
  background: var(--accent);
  color: #0a0f18;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.ctrl-main:hover { transform: scale(1.08); background: var(--accent); }
.ctrl-main svg { width: 18px; height: 18px; }
.ctrl-main .ic-pause { display: none; }
.music-drawer.is-playing .ctrl-main .ic-play  { display: none; }
.music-drawer.is-playing .ctrl-main .ic-pause { display: inline; }

/* ========== 响应式 ========== */
@media (max-width: 900px) {
  .topbar { padding: 14px 16px; }
  .nav { padding: 4px; gap: 2px; }
  .nav-item { padding: 7px 14px; font-size: 13px; letter-spacing: 0.12em; }
  .brand-name { font-size: 18px; }
  .stage { padding: 88px 16px 110px; }

  .view-home {
    max-width: 480px;
    gap: 18px;
    padding: 0 4px;
  }
  .time-card { padding: 32px 36px; }
  .time-hm { font-size: 64px; }
  .time-sec { font-size: 22px; }
  .quote-text { font-size: 19px; }

  :root { --float-y: 3px; --float-x: 4px; --float-rot: 0.2deg; }

  .music-drawer {
    right: 12px; left: 12px;
    bottom: 96px;
    width: auto;
    padding: 20px;
  }
  .music-fab { right: 14px; bottom: 14px; width: 56px; height: 56px; }

  .works-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 180px;
    gap: 12px;
  }
  .work-card.size-lg   { grid-column: span 2; grid-row: span 2; }
  .work-card.size-md   { grid-column: span 2; grid-row: span 1; }
  .work-card.size-tall { grid-column: span 1; grid-row: span 2; }

  .cabinet-shelf { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

@media (max-width: 600px) {
  .topbar { padding: 10px 12px; gap: 8px; flex-wrap: wrap; }
  .brand { gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 16px; }
  .brand-name { display: none; }
  .icon-btn { width: 36px; height: 36px; font-size: 15px; }
  .nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding: 3px;
  }
  .nav-item {
    padding: 5px 6px;
    font-size: 11px;
    letter-spacing: 0.06em;
    flex: 1;
    text-align: center;
  }
  .stage { padding: 80px 12px 100px; }

  .time-card { padding: 20px 24px; }
  .time-hm { font-size: 56px; }
  .time-sec { font-size: 20px; margin-top: 4px; }
  .date-week { font-size: 16px; }
  .date-md { font-size: 14px; }
  .greeting { font-size: 14px; }

  .bio-card { flex-direction: column; text-align: center; gap: 14px; padding: 24px; }
  .bio-avatar { width: 64px; height: 64px; font-size: 32px; }
  .bio-name { font-size: 22px; }
  .bio-edit { top: 12px; right: 12px; width: 32px; height: 32px; font-size: 14px; }
  .bio-links { justify-content: center; }

  .quote-card { padding: 16px 20px; }
  .quote-text { font-size: 17px; }
  .quote-mark { font-size: 38px; }

  .home-bottom { grid-template-columns: 1fr; }

  .music-drawer {
    right: 8px; left: 8px;
    bottom: 88px;
    border-radius: 16px;
    padding: 16px;
  }
  .drawer-disc { width: 120px; height: 120px; }
  .music-fab { right: 10px; bottom: 10px; width: 50px; height: 50px; }
  .fab-play { width: 22px; height: 22px; right: -5px; top: -5px; }

  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 150px;
    gap: 10px;
  }
  .work-card.size-lg   { grid-column: span 2; grid-row: span 2; }
  .work-card.size-md   { grid-column: span 2; grid-row: span 1; }
  .work-card.size-tall { grid-column: span 1; grid-row: span 2; }
  .upload-btn { width: 100%; justify-content: center; }

  .cabinet-shelf { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 14px 10px; }

  .about-form { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .time-hm { font-size: 48px; }
  .nav-item { font-size: 11px; padding: 5px 8px; }
  :root { --float-y: 2px; --float-x: 3px; }
  .works-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .work-card.size-lg,
  .work-card.size-md,
  .work-card.size-tall { grid-column: span 1; grid-row: span 1; }
  .lightbox { padding: 60px 20px; }
  .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 24px; }
  .lightbox-close { top: 12px; right: 12px; }
}

/* 无障碍：减少动效 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

