/* =========================================================
   Personal Homepage — shared stylesheet (skeleton)
   配色/字体都集中在 :root 里，等你发素材后改这里即可换肤
   ========================================================= */

:root {
  /* ---- 颜色 (D 抹茶奶绿) ---- */
  --c-bg-1: #e9f2d8;
  --c-bg-2: #f8fcef;
  --c-bg-3: #f3f8e6;
  --c-grid: rgba(138, 168, 81, 0.15);

  --c-ink: #3a4a24;
  --c-ink-soft: #74855a;
  --c-link: #b0763f;

  --c-panel: rgba(255, 255, 255, 0.88);
  --c-panel-solid: #ffffff;
  --c-border: #cddd9e;
  --c-border-dark: #8aa851;

  --c-accent: #d98c5f;
  --c-accent-2: #e8c15a;
  --c-bar: linear-gradient(180deg, #c3d98c, #8aa851);
  --c-bar-text: #ffffff;

  /* ---- 字体 ---- */
  --font-ui: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --font-display: "Comic Sans MS", "Segoe UI", "Microsoft YaHei", cursive;
  --font-pixel: "Courier New", ui-monospace, monospace;

  /* ---- 尺寸 ---- */
  --layout-max: 1180px;
  --radius: 14px;
  --gap: 16px;

  /* ---- 自定义光标 (替换成你的像素图即可) ---- */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M1 1 L1 19 L6 14 L9 21 L12 20 L9 13 L15 13 Z' fill='%238aa851' stroke='%23ffffff' stroke-width='1.6'/%3E%3C/svg%3E") 1 1, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M8 1 C5 1 5 4 5 4 L5 12 L4 11 C3 10 1 11 2 13 L5 19 C6 21 8 22 11 22 L14 22 C17 22 19 20 19 17 L19 9 C19 7 17 7 16 8 L16 7 C16 5 14 5 14 6 L14 5 C14 3 12 3 12 4 L12 6 L12 1 C12 0 8 0 8 1 Z' fill='%23d98c5f' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E") 3 1, pointer;
}

/* ----------------------------- reset ----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { color: var(--c-link); }

/* ----------------------------- body / background ----------------------------- */
body {
  font-family: var(--font-ui);
  color: var(--c-ink);
  line-height: 1.7;
  min-height: 100vh;
  padding-top: 36px; /* 给顶部音乐条留位 */
  background-color: var(--c-bg-2);
  background-image:
    linear-gradient(0deg, var(--c-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-grid) 1px, transparent 1px),
    linear-gradient(160deg, var(--c-bg-1), var(--c-bg-2) 45%, var(--c-bg-3));
  background-size: 32px 32px, 32px 32px, 100% 100%;
  background-attachment: fixed;
  cursor: var(--cursor-default);
  overflow-x: hidden;
}
a, button, .clickable { cursor: var(--cursor-pointer); }

/* ----------------------------- top music bar ----------------------------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: 36px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  color: #fff;
  background: var(--c-bar);
  border-bottom: 2px solid #fff;
  box-shadow: 0 3px 12px rgba(0, 90, 160, 0.35);
}
.topbar__ctrl { display: flex; gap: 6px; }
.topbar__ctrl button {
  font: inherit;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  padding: 1px 8px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  transition: background 0.2s, transform 0.15s;
}
.topbar__ctrl button:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.06); }
.topbar__title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.topbar__progress {
  flex: 1;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  cursor: pointer;
}
.topbar__fill { height: 100%; width: 0%; background: #fff; opacity: 0.85; }
.topbar__time { font-size: 11px; font-variant-numeric: tabular-nums; }
.topbar__vol {
  width: 90px;
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.7);
  position: relative;
  overflow: hidden;
}
.topbar__volfill { height: 100%; width: 50%; background: #fff; opacity: 0.85; }

.lang-toggle {
  font: inherit;
  font-size: 13px;
  color: #12415e;
  background: #fff;
  border: 2px solid var(--c-border-dark);
  border-radius: 999px;
  padding: 2px 10px;
  font-weight: 700;
  transition: transform 0.15s, box-shadow 0.2s;
}
.lang-toggle:hover { transform: scale(1.05); box-shadow: 0 0 10px #fff; }

/* ----------------------------- layout ----------------------------- */
.layout {
  max-width: 1320px;
  margin: 18px auto 40px;
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: 190px 200px minmax(0, 1fr) 250px;
  gap: var(--gap);
  align-items: start;
}
/* 子页只有三列（没有最左边的播放卡列） */
.layout--nomusic { grid-template-columns: 200px minmax(0, 1fr) 250px; }
/* 画廊：左导航 / 中分类卡 / 右多图展示（较宽） */
.layout--gallery { grid-template-columns: 190px 300px minmax(0, 1fr); }
.layout--gallery .cat-cards { grid-template-columns: 1fr; }
.col { display: flex; flex-direction: column; gap: var(--gap); }

/* ----------------------------- window chrome ----------------------------- */
.window {
  background: var(--c-panel);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(30, 90, 140, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  background: var(--c-bar);
  color: var(--c-bar-text);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.window__dots { display: flex; gap: 6px; }
.window__dots i {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.7);
}
.window__dots .d-close { background: #ff6b8a; }
.window__dots .d-min   { background: #ffd36e; }
.window__dots .d-max   { background: #7be495; }
.window__body { padding: 12px 14px; }
.window__body > :first-child { margin-top: 0; }
.window__body > :last-child { margin-bottom: 0; }

.title-strip {
  font-family: var(--font-display);
  font-size: 18px;
  text-align: center;
  margin: 0 0 8px;
  color: var(--c-border-dark);
}

/* ----------------------------- header ----------------------------- */
.hero { grid-column: 1 / -1; text-align: center; }
.hero__banner {
  width: 100%;
  border: 2px solid var(--c-border-dark);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(30, 90, 140, 0.25);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(26px, 5vw, 46px);
  margin: 12px 0 4px;
  color: var(--c-accent);
  text-shadow: 2px 2px 0 #ffffff, -1px -1px 0 #ffffff, 0 0 18px rgba(138, 168, 81, 0.5);
}
.hero__sub { margin: 0; color: var(--c-ink-soft); font-size: 14px; }

/* ----------------------------- nav ----------------------------- */
.nav { display: flex; flex-direction: column; gap: 8px; }
.nav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  color: var(--c-ink);
  background: linear-gradient(180deg, #ffffff, #eaf6ff);
  border: 2px solid var(--c-border);
  border-radius: 10px;
  padding: 8px 10px;
  box-shadow: 0 3px 0 var(--c-border-dark);
  transition: transform 0.12s, box-shadow 0.12s, background 0.2s;
}
.nav__link:hover {
  background: linear-gradient(180deg, #ffffff, #d9efff);
  transform: translateY(-1px);
  box-shadow: 0 4px 0 var(--c-border-dark);
}
/* 悬停时中文换成英文 */
.nav-swap::after { content: attr(data-en); display: none; }
.nav-swap:hover > span { display: none; }
.nav-swap:hover::after { display: inline; }
.nav__link:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-border-dark); }
.nav__link.is-active { background: var(--c-bar); color: #fff; border-color: #fff; }
.nav__emoji { font-size: 16px; }

/* ----------------------------- widgets ----------------------------- */
.widget__label { font-size: 12px; font-weight: 700; color: var(--c-ink-soft); text-transform: uppercase; letter-spacing: 0.06em; }
.todo { list-style: none; margin: 6px 0 0; padding: 0; }
.todo li { padding: 3px 0; }
.todo li::before { content: "➤ "; color: var(--c-accent); }
.todo-link { color: var(--c-link); text-decoration: none; font-weight: 700; transition: color 0.2s; }
.todo-link:hover { color: var(--c-accent); text-decoration: underline; }
.todo-hint { margin-left: 18px; color: var(--c-ink-soft); font-size: 13px; position: relative; top: -3px; }
.link-list { list-style: none; margin: 4px 0 0; padding: 0; }
.link-list li { padding: 3px 0; }
.link-list a { color: var(--c-link); text-decoration: none; transition: color 0.2s; }
.link-list a:hover { color: var(--c-accent); text-decoration: underline; }

.mood {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #eef4dd);
  border: 2px solid var(--c-accent);
  font-weight: 700;
}

/* avatar */
.avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--c-border), 0 0 12px rgba(138, 168, 81, 0.55);
  margin: 0 auto 8px;
  object-fit: cover;
  background: #d9efff;
}
.status-gif { display: block; margin: 0 auto 8px; max-width: 100%; height: auto; border-radius: 10px; }
.status-face { position: relative; display: inline-block; margin-bottom: 8px; }
.status-face .status-gif { margin: 0; }
.status-head {
  position: absolute;
  top: -16%;
  left: 42%;
  width: 65%;
  transform: translateX(-50%) scaleY(1.4);
  transform-origin: 50% 95%;
  cursor: var(--cursor-pointer);
  z-index: 5;
  -webkit-user-select: none;
  user-select: none;
}
.status-body .widget__label { letter-spacing: 0.01em; }
.status-body p { margin-top: 3px; margin-bottom: 3px; }

/* ----------------------------- buttons / stamps ----------------------------- */
.btn88 { image-rendering: pixelated; height: 31px; width: 88px; border: 0; }
.stamp-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.stamp-row img { image-rendering: pixelated; }

.blinkie-strip {
  display: flex;
  gap: 6px;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px;
  border: 2px solid var(--c-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.6);
}
.blinkie-strip img { height: 20px; image-rendering: pixelated; }

/* ----------------------------- marquee ----------------------------- */
.marquee {
  overflow: hidden;
  border-top: 2px solid var(--c-border);
  border-bottom: 2px solid var(--c-border);
  background: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  margin: 10px 0;
  display: flex;
}
.marquee__track {
  display: inline-flex;
  gap: 40px;
  white-space: nowrap;
  padding-left: 40px;
  animation: slide 22s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ----------------------------- placeholders ----------------------------- */
.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #74855a;
  font-style: italic;
  border: 2px dashed var(--c-border);
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.6) 0 10px, rgba(222, 235, 188, 0.6) 10px 20px);
  min-height: 120px;
  padding: 12px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.gallery-grid .placeholder { aspect-ratio: 1 / 1; }
.gallery-grid .thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 2px solid var(--c-border);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.18s, box-shadow 0.18s;
}
.gallery-grid .thumb:hover { transform: scale(1.04); box-shadow: 0 8px 18px rgba(0, 60, 110, 0.3); }

/* ---------- 图片放大预览窗口 (lightbox) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 40, 70, 0.65);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.lightbox.is-open { display: flex; animation: lb-in 0.18s ease-out; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox__box {
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--c-panel-solid);
  border: 2px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 8px 6px 12px;
  background: var(--c-bar);
  color: var(--c-bar-text);
  font-family: var(--font-display);
  font-weight: 700;
}
.lightbox__close {
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.15s, color 0.2s;
}
.lightbox__close:hover { background: #fff; color: var(--c-border-dark); transform: scale(1.08); }
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(90vh - 50px);
  object-fit: contain;
  background: #121212;
}

/* ---------- 画廊：分类卡片 + 分类列表 + 3 列展示 ---------- */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.cat-card {
  position: relative;
  font: inherit;
  padding: 0;
  border: 2px solid var(--c-border);
  border-radius: 12px;
  background: var(--c-panel-solid);
  overflow: hidden;
  cursor: var(--cursor-pointer);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 60, 40, 0.22); }
.cat-card.is-active { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(217, 140, 95, 0.35); }
.cat-card__imgwrap { display: block; }
.cat-card__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.cat-card__name { display: block; padding: 8px 10px; font-weight: 700; font-size: 13px; color: var(--c-ink); }
.cat-card__count {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--c-bar);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}
.gallery-grid--3 { grid-template-columns: repeat(3, 1fr); }
/* 每列独立堆叠，列与列之间不对齐 */
.gallery-col { display: flex; flex-direction: column; gap: 10px; align-content: start; }
/* 展示框里不做方形裁切，按原图比例等宽缩放显示 */
.gallery-grid--3 .thumb {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.cat-list { list-style: none; margin: 6px 0 0; padding: 0; }
.cat-list li { padding: 2px 0; }
.cat-list-item {
  font: inherit;
  background: none;
  border: 0;
  padding: 3px 0;
  width: 100%;
  text-align: left;
  color: var(--c-link);
  transition: color 0.15s, transform 0.15s;
}
.cat-list-item:hover { transform: translateX(2px); }
.cat-list-item.is-active { color: var(--c-accent); font-weight: 700; }
.cat-list-count { color: var(--c-ink-soft); font-size: 12px; }

@media (max-width: 520px) {
  .cat-cards { grid-template-columns: 1fr; }
  .gallery-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- 首页“现在播放”：大封面 + 小封面切换（网易云外链播放器） ---------- */
.np-cover {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid var(--c-border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: block;
}
.np-title { font-family: var(--font-display); font-size: 14px; margin: 8px 0 0; text-align: center; }
.np-artist { margin: 0 0 8px; font-size: 12px; color: var(--c-ink-soft); text-align: center; }
.np-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 8px;
  margin-bottom: 8px;
}
.np-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font: inherit;
  padding: 0;
  border: 0;
  background: none;
  cursor: var(--cursor-pointer);
  color: var(--c-ink);
}
.np-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  transition: transform 0.12s;
}
.np-thumb:hover img { transform: scale(1.05); }
.np-thumb.is-active img { outline: 2px solid var(--c-accent); }
.np-thumb__name {
  font-size: 11px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
/* 播放器隐藏到屏幕外，但仍在后台播放 */
.now-embed {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 400px;
  height: 66px;
  pointer-events: none;
}
.now-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ----------------------------- footer ----------------------------- */
.footer {
  grid-column: 1 / -1;
  text-align: center;
  padding: 14px;
  color: var(--c-ink-soft);
  font-size: 13px;
}

/* ----------------------------- responsive ----------------------------- */
@media (max-width: 1080px) {
  .layout { grid-template-columns: 1fr; }
  .col--music { order: 1; }
  .col--nav { order: 2; }
  .col--main { order: 3; }
  .col--right { order: 4; }
}
@media (max-width: 860px) {
  body { padding-top: 40px; }
  .col--right { order: 4; }
  .topbar__vol { display: none; }
  .topbar__title { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 520px) {
  .topbar__time { display: none; }
  .window__body { padding: 10px; }
}

/* ----------------------------- a11y ----------------------------- */
:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .vinyl, .notes span, .eq i { animation: none !important; }
  * { scroll-behavior: auto !important; }
}

/* =========================================================
   音乐相关：顶部音符入口 / 主页推荐卡 / 音乐簿书本页
   ========================================================= */
.topbar__note {
  text-decoration: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background 0.2s, transform 0.15s;
}
.topbar__note:hover { background: rgba(255, 255, 255, 0.4); transform: scale(1.1); }

/* ---------- 黑胶唱片（主页卡片 & 音乐簿共用） ---------- */
.vinyl {
  --size: 170px;
  width: var(--size);
  height: var(--size);
  border-radius: 14px;
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #101010;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--c-border);
  box-shadow: 0 6px 16px rgba(20, 60, 90, 0.3);
}
.vinyl::after {
  content: none;
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(125deg, rgba(255,255,255,0.35), transparent 40%);
  pointer-events: none;
}
.vinyl__label {
  display: none;
  width: 64px; height: 64px;
  border-radius: 50%;
  align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  background: radial-gradient(circle at 35% 30%, var(--c-accent-2), var(--c-accent));
  box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
  z-index: 2;
}
.vinyl__hole { display: none; position: absolute; width: 10px; height: 10px; border-radius: 50%; background: #fff; z-index: 3; }
.vinyl.is-playing { box-shadow: 0 6px 16px rgba(20, 60, 90, 0.3), 0 0 16px rgba(217, 140, 95, 0.55); }
@keyframes vinyl-spin { to { transform: rotate(360deg); } }

/* ---------- 漂浮音符 ---------- */
.notes { position: absolute; inset: 0; pointer-events: none; overflow: visible; }
.notes span {
  position: absolute;
  bottom: 20%;
  font-size: 22px;
  color: var(--c-accent);
  opacity: 0;
  text-shadow: 0 0 6px rgba(255,255,255,0.8);
}
.notes span:nth-child(1) { left: 6%; }
.notes span:nth-child(2) { left: 30%; }
.notes span:nth-child(3) { left: 62%; }
.notes span:nth-child(4) { left: 84%; }
.is-playing .notes span { animation: float-note 2.8s ease-in-out infinite; }
.notes span:nth-child(2) { animation-delay: 0.5s; }
.notes span:nth-child(3) { animation-delay: 1.1s; }
.notes span:nth-child(4) { animation-delay: 1.7s; }
@keyframes float-note {
  0% { opacity: 0; transform: translateY(8px) scale(0.8); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-56px) scale(1.15); }
}

/* ---------- 均衡器 ---------- */
.eq { display: flex; gap: 4px; justify-content: center; align-items: flex-end; height: 22px; margin: 6px 0; }
.eq i { width: 5px; height: 6px; border-radius: 2px; background: var(--c-bar); transition: height 0.2s; }
.is-playing .eq i { animation: eq-bounce 0.9s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: 0.15s; }
.eq i:nth-child(3) { animation-delay: 0.3s; }
.eq i:nth-child(4) { animation-delay: 0.1s; }
.eq i:nth-child(5) { animation-delay: 0.45s; }
.eq i:nth-child(6) { animation-delay: 0.25s; }
.eq i:nth-child(7) { animation-delay: 0.6s; }
@keyframes eq-bounce { 0%, 100% { height: 6px; } 50% { height: 20px; } }

/* ---------- 主页“现在播放”卡片 ---------- */
.now-card__body { display: flex; gap: 18px; align-items: center; }
.now-card__info { flex: 1; min-width: 0; text-align: center; }
.now-card__title { font-family: var(--font-display); font-size: 20px; margin: 0 0 2px; }
.now-card__artist { margin: 0 0 6px; color: var(--c-ink-soft); font-size: 13px; }
.now-card__ctrl { display: flex; justify-content: center; gap: 10px; align-items: center; margin: 4px 0; }
.now-card__ctrl button,
.book__ctrl button {
  font: inherit;
  color: var(--c-ink);
  background: linear-gradient(180deg, #fff, #e6f4ff);
  border: 2px solid var(--c-border);
  border-radius: 999px;
  padding: 6px 16px;
  box-shadow: 0 3px 0 var(--c-border-dark);
  transition: transform 0.12s, box-shadow 0.12s;
}
.now-card__ctrl button:hover,
.book__ctrl button:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--c-border-dark); }
.now-card__ctrl button:active,
.book__ctrl button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-border-dark); }
.now-card__ctrl .big,
.book__ctrl .big {
  background: var(--c-bar);
  color: #fff;
  border-color: #fff;
  font-size: 18px;
  padding: 8px 20px;
}
.now-card__hint { margin: 6px 0 0; font-size: 12px; color: var(--c-ink-soft); }

/* 放进左侧栏时的竖排版本 */
.now-card--side .now-card__body { flex-direction: column; gap: 10px; }
.now-card--side .vinyl { --size: 130px; }
.now-card--side .now-card__title { font-size: 16px; }

/* ---------- 音乐簿：一本打开的书 ---------- */
.book {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f2f7e6);
  box-shadow: 0 10px 26px rgba(90, 110, 40, 0.2);
  perspective: 1400px;
}
.book__page {
  flex: 1;
  min-width: 0;
  padding: 16px 18px;
  background:
    repeating-linear-gradient(180deg, rgba(23,185,120,0.05) 0 27px, rgba(23,185,120,0.1) 27px 28px);
  background-blend-mode: multiply;
}
.book__page--left {
  border-radius: 10px 0 0 10px;
  box-shadow: inset -14px 0 22px -14px rgba(90, 110, 40, 0.28);
}
.book__page--right {
  border-radius: 0 10px 10px 0;
  box-shadow: inset 14px 0 22px -14px rgba(90, 110, 40, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.book__heading {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(138, 168, 81, 0.3);
  color: var(--c-border-dark);
}
.toc { list-style: none; margin: 0; padding: 0; }
.toc__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 6px;
  border-bottom: 1px dashed rgba(138, 168, 81, 0.22);
  transition: background 0.15s, transform 0.15s;
}
.toc__item:hover { background: rgba(138, 168, 81, 0.14); transform: translateX(3px); }
.toc__no { font-family: var(--font-pixel); color: #7d9450; font-weight: 700; }
.toc__meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.toc__meta b { font-size: 14px; color: #3a4a24; }
.toc__meta i { font-style: normal; font-size: 12px; color: #74855a; }
.toc__icon { opacity: 0.4; color: var(--c-border-dark); }
.toc__item.is-active { background: linear-gradient(90deg, rgba(138, 168, 81, 0.35), transparent); }
.toc__item.is-active .toc__icon { opacity: 1; color: var(--c-accent); }
.toc__item.is-active .toc__no { color: var(--c-border-dark); }
.book__foot { margin: 10px 0 0; font-size: 12px; color: #74855a; }

.turntable { position: relative; padding: 6px 0 2px; }
.book__title { font-family: var(--font-display); font-size: 20px; margin: 10px 0 1px; color: #3a4a24; }
.book__artist { margin: 0 0 4px; font-size: 13px; color: #74855a; }
.book__ctrl { display: flex; justify-content: center; gap: 10px; margin: 6px 0; }
.book__bar {
  height: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(138, 168, 81, 0.35);
  overflow: hidden;
  margin: 4px 8px 0;
  cursor: pointer;
}
.book__fill { height: 100%; width: 0%; background: var(--c-bar); }
.book__times { font-family: var(--font-pixel); font-size: 12px; color: #7d9450; margin-top: 4px; }
.book__volrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.book__vol {
  width: 120px; height: 10px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(138, 168, 81, 0.35);
  overflow: hidden; cursor: pointer;
}
.book__volfill { height: 100%; width: 50%; background: var(--c-bar); }

/* 移动端：书页上下叠 */
@media (max-width: 860px) {
  .now-card__body { flex-direction: column; }
  .book { flex-direction: column; }
  .book__page--left { border-radius: 10px 10px 0 0; box-shadow: inset 0 -14px 22px -14px rgba(60, 40, 10, 0.35); }
  .book__page--right { border-radius: 0 0 10px 10px; box-shadow: inset 0 14px 22px -14px rgba(60, 40, 10, 0.35); }
  .vinyl { --size: 150px; }
}
