/* ═══════════════════════════════════════════════════════════
   九霜迟的个人主页 —— 毛玻璃 · 渐变壁纸 · 深色模式
   零依赖：手写 HTML + CSS + JS
   ═══════════════════════════════════════════════════════════ */

/* ── 主题变量 ───────────────────────────────────────────── */
:root {
  --max: 1400px;

  --glass:      rgba(255, 255, 255, .60);
  --glass-2:    rgba(255, 255, 255, .78);
  --glass-3:    rgba(255, 255, 255, .40);
  --glass-hi:   rgba(255, 255, 255, .92);
  --glass-stuck: rgba(255, 255, 255, .88);
  --stroke:     rgba(255, 255, 255, .62);
  --stroke-2:   rgba(15, 23, 42, .07);

  --text:   #161d2b;
  --text-2: #59637a;
  --text-3: #8b95a8;

  --blue:   #2f6bff;
  --violet: #7c5cff;
  --pink:   #e8479a;
  --amber:  #d98b28;

  --shadow:    0 8px 28px rgba(26, 38, 68, .08);
  --shadow-lg: 0 20px 52px rgba(26, 38, 68, .16);
  --shadow-sm: 0 3px 12px rgba(26, 38, 68, .07);

  --r-xl: 26px;
  --r-lg: 20px;
  --r-md: 15px;
  --r-sm: 10px;

  --blur: blur(26px) saturate(180%);
  --blur-sm: blur(14px) saturate(160%);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html.dark {
  --glass:    rgba(23, 27, 41, .60);
  --glass-2:  rgba(31, 36, 53, .80);
  --glass-3:  rgba(18, 22, 34, .42);
  --glass-hi: rgba(40, 46, 66, .90);
  --glass-stuck: rgba(16, 20, 32, .88);
  --stroke:   rgba(255, 255, 255, .10);
  --stroke-2: rgba(255, 255, 255, .07);

  --text:   #e9edf8;
  --text-2: #a4aec4;
  --text-3: #7b869e;

  --shadow:    0 8px 28px rgba(0, 0, 0, .34);
  --shadow-lg: 0 20px 52px rgba(0, 0, 0, .50);
  --shadow-sm: 0 3px 12px rgba(0, 0, 0, .30);
}

/* ── 基础 ───────────────────────────────────────────────── */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--sans);
  color: var(--text);
  background: #eef3f7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .5s var(--ease), color .4s var(--ease);
}

html.dark body { background: #0d1018; }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: rgba(47, 107, 255, .25); }

.glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}

/* SVG 图标尺寸统一 */
svg.lucide { width: 1em; height: 1em; stroke-width: 1.9; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ── 背景壁纸 ───────────────────────────────────────────── */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  background:
    linear-gradient(160deg, #eaf3f6 0%, #f6eef3 45%, #eef6ee 100%);
  transition: filter .5s var(--ease);
}
html.dark .backdrop {
  background: linear-gradient(160deg, #12161f 0%, #1a1620 45%, #101a17 100%);
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .85;
  will-change: transform;
}
.blob-1 { width: 46vw; height: 46vw; left: -8vw;  top: -10vw; background: radial-gradient(circle at 40% 40%, #cfe9c4, transparent 70%); animation: drift1 26s ease-in-out infinite; }
.blob-2 { width: 40vw; height: 40vw; right: -6vw; top: -6vw;  background: radial-gradient(circle at 60% 40%, #f6c9d8, transparent 70%); animation: drift2 32s ease-in-out infinite; }
.blob-3 { width: 52vw; height: 52vw; left: 22vw;  top: 18vh;  background: radial-gradient(circle at 50% 50%, #c6dbf3, transparent 70%); animation: drift3 38s ease-in-out infinite; }
.blob-4 { width: 34vw; height: 34vw; left: 4vw;   bottom: -12vw; background: radial-gradient(circle at 50% 50%, #fbe3c2, transparent 70%); animation: drift1 30s ease-in-out infinite reverse; }
.blob-5 { width: 30vw; height: 30vw; right: 8vw;  bottom: -8vw; background: radial-gradient(circle at 50% 50%, #cde9e4, transparent 70%); animation: drift2 28s ease-in-out infinite reverse; }

html.dark .blob { opacity: .35; filter: blur(100px) saturate(140%); }

.grain {
  position: absolute;
  inset: -50%;
  opacity: .30;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6vw, 5vh) scale(1.14); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-7vw, 6vh) scale(1.1); } }
@keyframes drift3 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4vw, -6vh) scale(1.16); } }

/* 鼠标轨迹 */
.trail {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

/* ── 顶部导航 ───────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 14px;
  z-index: 60;
  padding: 0 20px;
  margin-top: 14px;
}
.topbar-inner {
  max-width: var(--max);
  margin: 0 auto;
  border-radius: var(--r-xl);
  padding: 10px 20px 10px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .3s var(--ease);
}
.topbar.is-stuck .topbar-inner {
  background: var(--glass-stuck);
  box-shadow: var(--shadow-lg);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 3px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .02em;
}
.brand-suffix {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: .06em;
  margin-left: 3px;
  padding-bottom: 1px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.nav-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 12px;
  font-size: 14.5px;
  color: var(--text-2);
  transition: color .25s var(--ease), background .25s var(--ease);
  white-space: nowrap;
}
.nav-item svg.lucide { width: 16px; height: 16px; }
.nav-item:hover { color: var(--text); background: var(--glass-3); }
.nav-item.is-active { color: var(--blue); font-weight: 600; }
.nav-item.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 1px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .16);
}

.topbar-tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--text-2);
  font-size: 17px;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--spring);
}
.icon-btn:hover { background: var(--glass-3); color: var(--text); transform: translateY(-1px); }
.icon-btn svg.lucide { width: 18px; height: 18px; }

html:not(.dark) .ico-sun { display: none; }
html.dark .ico-moon { display: none; }

#menuBtn { display: none; }

/* ── 布局 ───────────────────────────────────────────────── */
main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }

.search-wrap { padding: 34px 0 26px; text-align: center; }
.search-box {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  color: var(--text-3);
  font-size: 16px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.search-box:focus-within { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.search-box svg.lucide { width: 19px; height: 19px; flex: none; }
.search-box input {
  flex: 1;
  border: 0;
  background: none;
  outline: none;
  font-size: 16px;
  color: var(--text);
  font-family: inherit;
}
.search-box input::placeholder { color: var(--text-3); }
.search-box kbd {
  font-family: var(--sans);
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 7px;
  color: var(--text-3);
  background: var(--glass-3);
  border: 1px solid var(--stroke-2);
}
.search-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-3);
}
.search-hint b { color: var(--text-2); font-weight: 600; }

/* ── Hero ───────────────────────────────────────────────── */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 22px;
  align-items: stretch;
}

.card {
  border-radius: var(--r-xl);
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), background .4s var(--ease);
}

/* 个人资料卡 */
.profile {
  padding: 30px 34px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 26px;
}
.profile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.profile-top { display: flex; gap: 26px; align-items: flex-start; }

.avatar-ring {
  flex: none;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--violet), var(--blue), var(--pink), var(--violet));
  box-shadow: 0 6px 22px rgba(124, 92, 255, .28);
  position: relative;
}
.avatar-ring::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--glass-hi);
  backdrop-filter: none;
}
.avatar-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 42%;
  background: #f7f9ff;
}

.profile-meta { padding-top: 4px; }
.profile-name { font-size: 38px; line-height: 1.1; letter-spacing: .02em; }
.profile-bio {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.85;
  color: var(--text-2);
  max-width: 620px;
}
.inline-link { color: var(--blue); font-weight: 600; white-space: nowrap; }
.inline-link:hover { text-decoration: underline; }

.profile-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.stats { display: flex; align-items: center; gap: 20px; }
.stat { display: flex; flex-direction: column; gap: 3px; }
.stat b {
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  background: linear-gradient(120deg, var(--blue), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 12.5px; color: var(--text-3); }
.stat-div { width: 1px; height: 30px; background: var(--stroke-2); }

.socials { display: flex; gap: 9px; }
.soc {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-md);
  background: var(--glass-hi);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  color: var(--text-2);
  font-size: 18px;
  transition: transform .35s var(--spring), color .25s var(--ease), box-shadow .3s var(--ease);
}
.soc svg.lucide { width: 19px; height: 19px; }
.soc:hover {
  transform: translateY(-4px);
  color: var(--blue);
  box-shadow: var(--shadow);
}

/* 音乐卡 */
.music { padding: 26px 28px 22px; display: flex; flex-direction: column; gap: 18px; }
.music:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.music-head { display: flex; gap: 16px; align-items: center; }
.cover { position: relative; flex: none; width: 74px; height: 74px; }
.cover img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--stroke);
}
.cover-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px dashed var(--stroke);
  opacity: .7;
  animation: spin 26s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.music-title { min-width: 0; }
.tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--violet);
  padding-bottom: 2px;
  border-bottom: 1.5px solid currentColor;
}
.music-title h2 { font-size: 24px; margin-top: 6px; }
.music-title p { font-size: 13.5px; color: var(--text-2); margin-top: 3px; }
.lyricist { display: inline-block; margin-top: 7px; font-size: 12.5px; color: var(--blue); }
.lyricist:hover { text-decoration: underline; }

.player { display: flex; align-items: center; gap: 11px; }
.player .t { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.track {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: var(--stroke-2);
  cursor: pointer;
  outline: none;
}
.track::before {
  content: "";
  position: absolute;
  inset: -8px 0;
}
.track-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 0%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
}
.track-dot {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 2px 8px rgba(47, 107, 255, .45);
  transition: transform .2s var(--spring);
}
.track:hover .track-dot { transform: scale(1.28); }

.controls { display: flex; align-items: center; justify-content: center; gap: 16px; }
.ctrl {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-2);
  font-size: 17px;
  transition: transform .3s var(--spring), color .25s var(--ease);
}
.ctrl svg.lucide { width: 18px; height: 18px; }
.ctrl:hover { color: var(--text); transform: scale(1.12); }
.ctrl-main {
  width: 54px;
  height: 54px;
  font-size: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--violet), var(--blue));
  box-shadow: 0 8px 22px rgba(47, 107, 255, .38);
}
.ctrl-main svg.lucide { width: 21px; height: 21px; }
.ctrl-main:hover { transform: scale(1.08); }
.audio-note { text-align: center; font-size: 11.5px; color: var(--text-3); margin-top: -6px; }

/* ── 悬浮歌词条 ─────────────────────────────────────────── */
.lyric-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 18px;
  margin: 22px 0;
  align-items: stretch;
}
.lyric-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, #1c2033, #232840);
  box-shadow: 0 14px 36px rgba(20, 24, 44, .32);
  overflow: hidden;
}
html.dark .lyric-bar { background: linear-gradient(100deg, #171b28, #1e2338); }
.lyric-text {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
  color: #f2f5ff;
  letter-spacing: .04em;
  min-height: 24px;
}
.lyric-text .caret {
  display: inline-block;
  width: 2px;
  height: 17px;
  margin-left: 3px;
  background: var(--blue);
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.lyric-note { color: #5f6b96; font-size: 20px; flex: none; }
.wave { display: flex; align-items: flex-end; gap: 3px; height: 16px; flex: none; }
.wave i {
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: #4d5a86;
  animation: wave 1.1s ease-in-out infinite;
}
.wave i:nth-child(2) { animation-delay: .18s; }
.wave i:nth-child(3) { animation-delay: .36s; }
.wave i:nth-child(4) { animation-delay: .54s; }
@keyframes wave { 0%,100% { height: 5px; } 50% { height: 16px; } }

.lyric-side {
  border-radius: var(--r-lg);
  display: grid;
  place-items: center;
  padding: 20px;
  font-size: 14px;
  color: var(--text-2);
}

/* ── 内容区 ─────────────────────────────────────────────── */
.content-grid {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.feature-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5.2;
  padding: 0;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; }
.feature-visual:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-tag {
  position: absolute;
  left: 16px; bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: #fff;
  background: rgba(20, 24, 40, .55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .25);
}

.posts { display: flex; flex-direction: column; gap: 20px; }

/* 文章卡 */
.post {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.post-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .8s var(--ease);
}
.post:hover .post-bg { transform: scale(1.06); }
.post-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 14, 26, .05) 0%, rgba(10, 14, 26, .72) 78%);
}
.post-body { padding: 26px 28px; width: 100%; }
.post-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.post h2 { font-size: 27px; line-height: 1.35; text-shadow: 0 2px 12px rgba(0, 0, 0, .3); }
.post-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
  max-width: 760px;
}
.post-meta {
  margin-top: 14px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .78);
}
.post-meta span { display: inline-flex; align-items: center; gap: 5px; }
.post-meta svg.lucide { width: 14px; height: 14px; }

.post-featured { min-height: 300px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.post-sm { min-height: 168px; }
.post-sm .post-body { padding: 18px 20px; }
.post-sm h3 {
  font-size: 16.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-sm .post-meta { margin-top: 10px; font-size: 11.5px; gap: 12px; }

/* ── 面板（说说 / 照片墙 / 归档 / 关于）────────────────── */
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}
.panel { padding: 26px 28px 28px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.panel-head h2 { font-size: 22px; display: inline-flex; align-items: center; gap: 10px; }
.panel-head h2 svg.lucide { width: 20px; height: 20px; color: var(--blue); }
.panel-more { font-size: 13px; color: var(--text-3); transition: color .25s var(--ease); }
.panel-more:hover { color: var(--blue); }
.panel-sub { margin-top: 7px; font-size: 13px; color: var(--text-3); }

/* 说说便签 */
.whispers { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.note {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--glass-hi);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-sm);
  transition: transform .45s var(--spring), box-shadow .4s var(--ease);
  transform-origin: center;
}
.note:hover { transform: rotate(0deg) scale(1.015) translateY(-3px); box-shadow: var(--shadow); }
.note-1 { transform: rotate(-1.1deg); }
.note-2 { transform: rotate(.8deg); }
.note-3 { transform: rotate(-.5deg); }
.note-time { font-size: 11.5px; color: var(--text-3); }
.note p { margin-top: 7px; font-size: 14px; line-height: 1.8; color: var(--text); }

/* 照片墙 */
.album-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ph {
  margin: 0;
  aspect-ratio: 1;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--spring), box-shadow .4s var(--ease);
}
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ph:hover { transform: translateY(-6px) rotate(-2deg) scale(1.03); box-shadow: var(--shadow-lg); }
.ph:hover img { transform: scale(1.1); }

/* 时光河流 */
.river {
  margin-top: 18px;
  position: relative;
  height: 168px;
  overflow-x: auto;
  overflow-y: hidden;
  color: var(--violet);
  scrollbar-width: thin;
}
.river-path { position: absolute; top: 0; left: 38px; width: calc(100% - 76px); height: 100%; }
#riverLine { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.river.is-drawn #riverLine { animation: draw 2.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.river-dots { position: relative; width: calc(100% - 76px); height: 100%; margin-left: 38px; }
.rdot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.rdot::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--glass-hi);
  border: 2.5px solid var(--violet);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, .14);
  margin-bottom: 4px;
}
.rdot b { font-size: 13px; color: var(--text); font-family: var(--serif); }
.rdot em { font-style: normal; font-size: 11.5px; color: var(--text-3); }

/* 关于 */
.about-panel { margin-top: 20px; }
.about-grid { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; padding-right: 58px; }
.about-text p { font-size: 14.5px; line-height: 2; color: var(--text-2); margin-bottom: 12px; }
.about-text p:last-child { margin-bottom: 0; }
.about-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.about-facts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--glass-3);
  border: 1px solid var(--stroke-2);
  font-size: 13.5px;
}
.about-facts span { color: var(--text-3); }
.about-facts b { font-weight: 600; color: var(--text); text-align: right; }

/* ── 页脚 ───────────────────────────────────────────────── */
.footer { text-align: center; padding: 40px 0 10px; color: var(--text-2); font-size: 14px; }
.foot-sep { margin: 0 6px; color: var(--text-3); }
.footer-sub { margin-top: 8px; font-size: 12.5px; color: var(--text-3); }

/* ── 侧边浮层 ───────────────────────────────────────────── */
.dock {
  position: fixed;
  left: 18px;
  bottom: 22px;
  z-index: 55;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dock-btn {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 19px;
  color: var(--text-2);
  background: var(--glass-hi);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: var(--blur-sm);
  backdrop-filter: var(--blur-sm);
  transition: transform .4s var(--spring), color .25s var(--ease);
}
.dock-btn:hover { transform: translateY(-4px) scale(1.04); color: var(--blue); }
.dock-btn svg.lucide { width: 19px; height: 19px; }
.dock-avatar { border-radius: 50%; padding: 5px; overflow: hidden; }
.dock-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 40%; background: #f7f9ff; }

.mascot {
  position: fixed;
  right: 8px;
  bottom: 0;
  z-index: 40;
  width: 190px;
  pointer-events: auto;
  cursor: pointer;
  opacity: .92;
  filter: drop-shadow(0 12px 26px rgba(30, 40, 70, .18));
  transition: transform .6s var(--ease), opacity .4s var(--ease);
}
.mascot:hover { opacity: 1; transform: translateY(-6px); }
.mascot img { width: 100%; }
.mascot.is-hidden { transform: translateY(102%); opacity: 0; }

/* 工具箱抽屉 */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  background: rgba(12, 16, 28, .38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer-inner {
  width: min(620px, calc(100% - 40px));
  border-radius: var(--r-xl);
  padding: 26px 28px 30px;
  transform: translateY(18px) scale(.97);
  transition: transform .45s var(--spring);
}
.drawer.is-open .drawer-inner { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head h3 { font-size: 20px; }
.tool-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 11px; }
.tool {
  padding: 13px 10px;
  border-radius: var(--r-md);
  background: var(--glass-3);
  border: 1px solid var(--stroke-2);
  font-size: 13.5px;
  color: var(--text-2);
  transition: transform .3s var(--spring), color .25s var(--ease), background .25s var(--ease);
}
.tool:hover { transform: translateY(-3px); color: var(--blue); background: var(--glass-hi); }

/* ── 提示条 ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 90;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  color: var(--text);
  background: var(--glass-hi);
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), transform .4s var(--spring), visibility .3s;
}
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* ── 入场动画 ───────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .75s var(--ease), transform .85s var(--ease); }

/* ── 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .feature-visual { aspect-ratio: 16 / 9; max-height: 320px; }
  .mascot { width: 165px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    left: 12px; right: 12px; top: 76px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--r-lg);
    background: var(--glass-2);
    -webkit-backdrop-filter: var(--blur);
    backdrop-filter: var(--blur);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .28s var(--ease), transform .35s var(--ease), visibility .28s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-item { padding: 12px 14px; font-size: 15px; }
  .nav-item.is-active::after { left: auto; right: 14px; bottom: auto; top: 50%; margin-top: -2.5px; }
  #menuBtn { display: grid; }
  .topbar-inner { padding: 8px 12px 8px 16px; }
  .brand { font-size: 18px; }
  .brand-suffix { font-size: 12px; }

  .lyric-row { grid-template-columns: 1fr; }
  .lyric-side { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .lower-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; padding-right: 0; }
  .profile { padding: 24px 20px 22px; }
  .profile-top { flex-direction: column; gap: 16px; }
  .profile-name { font-size: 30px; }
  .avatar-ring { width: 88px; height: 88px; }
  .post h2 { font-size: 21px; }
  .post-featured { min-height: 240px; }
  .mascot { width: 140px; opacity: .75; }
  /* 移动端：dock 挪到右下角，避免压住播放器进度条 */
  .dock {
    left: auto;
    right: 10px;
    bottom: 10px;
    flex-direction: row;
    gap: 8px;
    opacity: .78;
  }
  .dock-btn { width: 38px; height: 38px; border-radius: 12px; font-size: 17px; }
  .dock-btn:hover { opacity: 1; }
}

@media (max-width: 560px) {
  main { padding: 0 14px 40px; }
  .topbar { padding: 0 12px; }
  .search-wrap { padding: 24px 0 18px; }
  .search-box { padding: 13px 16px; font-size: 14px; }
  .search-box kbd { display: none; }
  .profile-foot { gap: 16px; }
  .stats { gap: 14px; }
  .stat b { font-size: 23px; }
  .soc { width: 38px; height: 38px; }
  .panel { padding: 20px 18px 22px; }
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .dock { left: 10px; bottom: 14px; }
  .mascot { display: none; }
  .footer { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
