/* ═══════════════════════════════════════════════
   理念首页样式 · 深空粒子 × 歌词剧场
   （higan-hz 主题定制，独立于主题原生样式）
   ═══════════════════════════════════════════════ */
:root {
  --bg-deep: #081020;
  --text-main: #eef2fa;
  --text-dim: rgba(238, 242, 250, 0.66);
  --accent: #9fc4ff;
  --accent-warm: #d9c9a8;
  --line: rgba(159, 196, 255, 0.22);
  --sung: 0.44;
  --unsung: 0.30;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-lyric: 900ms;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg-deep);
  color: var(--text-main);
  font-family: Georgia, "Noto Serif SC", "Songti SC", "SimSun", serif;
  overflow: hidden;
  height: 100vh;
}

/* ═══════════ 星空背景层 ═══════════ */
#starfield {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
}

.nebula {
  position: fixed;
  z-index: 0;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.22;
  pointer-events: none;
  animation: breathe 14s ease-in-out infinite alternate;
}
.nebula-1 {
  width: 55vmax; height: 55vmax;
  background: radial-gradient(circle, #31489a 0%, transparent 65%);
  top: -18vmax; right: -14vmax;
}
.nebula-2 {
  width: 42vmax; height: 42vmax;
  background: radial-gradient(circle, #5a4080 0%, transparent 65%);
  bottom: -14vmax; left: -12vmax;
  animation-delay: -7s;
}
@keyframes breathe {
  from { opacity: 0.16; transform: scale(1); }
  to   { opacity: 0.26; transform: scale(1.06); }
}

/* ═══════════ 固定页头 ═══════════ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 40px;
  background: linear-gradient(to bottom, rgba(5,7,15,0.75), transparent);
}
.site-name {
  font-size: 14px;
  letter-spacing: 0.42em;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.6s;
}
.site-name:hover { color: var(--accent); }
.site-name .dot {
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin: 0 10px 2px 0;
  box-shadow: 0 0 8px var(--accent);
}
.enter-blog {
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 3px;
  transition: color 0.6s, border-color 0.6s;
}
.enter-blog:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ═══════════ 歌词剧场 ═══════════ */
.lyrics-stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  cursor: default;
  -webkit-mask-image: linear-gradient(to bottom,
      transparent 0%, #000 13%, #000 87%, transparent 100%);
  mask-image: linear-gradient(to bottom,
      transparent 0%, #000 13%, #000 87%, transparent 100%);
}

.lyrics-track {
  position: absolute;
  top: 50%; left: 0; right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6.5vh;
  text-align: center;
  padding: 0 6vw;
  transition: transform var(--dur-lyric) var(--ease-out);
  will-change: transform;
}

.lyric {
  flex-shrink: 0;
  transition: opacity 0.7s ease, transform 0.9s var(--ease-out), filter 0.7s ease;
  will-change: opacity, transform, filter;
  cursor: pointer;
  padding: 12px 0;
}

.lyric .mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 26px;
  color: rgba(159, 196, 255, 0.62);
  font-family: "SF Mono", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  transition: color 0.7s ease, letter-spacing 0.9s var(--ease-out);
}
.lyric .mark::before,
.lyric .mark::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--line);
  transition: width 0.9s var(--ease-out);
}
.lyric.active .mark { color: var(--accent); }
.lyric.active .mark::before,
.lyric.active .mark::after { width: 56px; }

.lyric h2 {
  font-size: clamp(28px, 4.4vw, 60px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.7;
  color: var(--text-main);
  transition: text-shadow 0.7s ease, letter-spacing 0.9s var(--ease-out);
}
.lyric h2 em { font-style: normal; transition: color 0.7s ease, text-shadow 0.7s ease; }
.lyric.active h2 {
  letter-spacing: 0.08em;
  text-shadow: 0 0 46px rgba(159, 196, 255, 0.42), 0 0 90px rgba(159, 196, 255, 0.18);
}
.lyric.active h2 em {
  color: var(--accent);
  text-shadow: 0 0 30px rgba(159, 196, 255, 0.65);
}

.lyric .zh {
  margin-top: 24px;
  font-size: clamp(17px, 1.8vw, 26px);
  letter-spacing: 0.42em;
  text-indent: 0.42em;
  color: var(--text-dim);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease 0.25s, transform 0.7s var(--ease-out) 0.25s;
}
.lyric.active .zh { opacity: 0.95; transform: translateY(0); }

.lyric-hero h2 {
  font-size: clamp(40px, 6vw, 86px) !important;
  letter-spacing: 0.2em !important;
  line-height: 1.5 !important;
}
.lyric-hero .en-echo {
  display: block;
  margin-top: 18px;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.55em;
  color: var(--text-dim);
}

.cta-link {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 15px 42px;
  border: 1px solid var(--line);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-indent: 0.4em;
  transition: border-color 0.7s, color 0.7s, box-shadow 0.7s;
}
.lyric.active .cta-link { border-color: rgba(159, 196, 255, 0.5); }
.cta-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 32px rgba(159, 196, 255, 0.15), inset 0 0 24px rgba(159, 196, 255, 0.05);
}
.cta-link .arrow {
  font-family: "SF Mono", Consolas, monospace;
  transition: transform 0.5s;
}
.cta-link:hover .arrow { transform: translateX(6px); }

.footer-line {
  margin-top: 30px;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(238, 242, 250, 0.28);
}

/* ═══════════ 固定信息层 ═══════════ */
.now-playing {
  position: fixed;
  bottom: 30px;
  left: 40px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: rgba(238, 242, 250, 0.35);
}
.now-playing .bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}
.now-playing .bars i {
  width: 2px;
  background: var(--accent);
  opacity: 0.7;
  animation: bar 1.2s ease-in-out infinite;
}
.now-playing .bars i:nth-child(1) { height: 5px;  animation-delay: 0s;   }
.now-playing .bars i:nth-child(2) { height: 11px; animation-delay: 0.25s; }
.now-playing .bars i:nth-child(3) { height: 7px;  animation-delay: 0.5s;  }
.now-playing .bars i:nth-child(4) { height: 9px;  animation-delay: 0.12s; }
@keyframes bar {
  0%, 100% { transform: scaleY(0.4); }
  50%      { transform: scaleY(1); }
}

.progress-nav {
  position: fixed;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.progress-nav a {
  width: 16px; height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-nav a::after {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(238, 242, 250, 0.22);
  transition: background 0.6s, box-shadow 0.6s, transform 0.6s;
}
.progress-nav a.active::after {
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  transform: scale(1.4);
}
.progress-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 50%;
}

.lyric:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* 备案号（固定底部居中，低调不抢戏） */
.beian-bar {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.02em;
  opacity: 0.55;
}
.beian-bar a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.5s;
}
.beian-bar a:hover { color: var(--accent); opacity: 1; }
.beian-sep { margin: 0 0.6em; opacity: 0.5; }
.beian-bar .beian-police { display: inline-flex; align-items: center; gap: 3px; }
.beian-bar .beian-police img { height: 11px; width: auto; opacity: 0.9; }
@media (max-width: 640px) {
  .beian-bar { bottom: 6px; }
}

/* 降级：偏好减少动效 */
@media (prefers-reduced-motion: reduce) {
  .lyrics-track, .lyric, .lyric .zh, .lyric h2, .lyric .mark { transition: none !important; }
  .nebula, .now-playing .bars i { animation: none !important; }
}

/* 移动端 */
@media (max-width: 640px) {
  .site-header { padding: 20px 22px; }
  .site-name { letter-spacing: 0.3em; }
  .progress-nav { right: 14px; }
  .now-playing { left: 22px; bottom: 22px; }
  .lyrics-track { gap: 5.5vh; }
  .lyric h2 { letter-spacing: 0.04em; }
}
