/* ================================================================
   点心音乐坊 · 主题样式
   --------------------------------------------------------------- */

:root {
  --bg: #fbf3e1;
  --bg-paper: #fff8e7;
  --ink: #3a2a1a;
  --ink-soft: #6b4f3a;
  --muted: #a18a72;
  --line: #e7d6b8;
  --red: #c8412c;
  --red-deep: #9c2a1a;
  --red-soft: #f5d9d3;
  --gold: #d2a24c;
  --green: #6a8a3e;
  --bamboo: #8a9a5b;
  --bamboo-dark: #5d6a3b;
  --bamboo-light: #b4c187;
  --shadow: 0 6px 18px rgba(120, 80, 30, 0.10);
  --shadow-strong: 0 10px 30px rgba(120, 80, 30, 0.18);
  --radius: 18px;
  --radius-sm: 10px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 80% -10%, #f3e2bf 0%, transparent 60%),
    radial-gradient(900px 500px at -10% 30%, #f7e6c4 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-deep); text-decoration: underline; }

.muted { color: var(--muted); }
.required { color: var(--red); }

/* ----- 顶部栏 ----- */
.topbar {
  background: linear-gradient(180deg, #f6e1b6, #f0d49a);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(150, 100, 40, 0.06);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-emoji { font-size: 28px; }

/* 顶部品牌名跳动音符（音乐主题） */
@keyframes note-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
.brand-name {
  position: relative;       /* 给 ::before/::after 提供定位锚点 */
  display: inline-block;
}
.brand-name::before,
.brand-name::after {
  content: "♪";
  position: absolute;
  top: -2px;
  font-size: 0.85em;
  color: var(--red);
  animation: note-bounce 0.8s ease-in-out infinite;
  pointer-events: none;
}
.brand-name::before { left: -1.1em;  animation-delay: 0s; }
.brand-name::after  { right: -1.1em; content: "♫"; color: var(--red-deep); animation-delay: 0.4s; }
.brand:hover .brand-name::before,
.brand:hover .brand-name::after {
  animation-duration: 0.4s;   /* hover 时音符跳得更快 */
}
.topbar-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
}
.topbar-nav a:hover {
  background: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}
.topbar-nav .muted { color: var(--muted); }

/* ----- 主体容器 ----- */
.main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ----- 提示框 ----- */
.flash-container { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 14px;
}
.flash-success { background: #e8f0d8; border-color: #c4d29c; }
.flash-danger  { background: #f8dcd7; border-color: #e3a99e; }
.flash-warning { background: #fbe9c2; border-color: #e8c87a; }
.flash-info    { background: #d8e6f0; border-color: #a9c1d3; }

/* ----- Hero ----- */
.hero {
  background:
    radial-gradient(400px 200px at 90% 10%, rgba(255, 255, 255, 0.5), transparent 60%),
    var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--bamboo) 0 20px, var(--bamboo-dark) 20px 22px, var(--bamboo) 22px 42px, var(--bamboo-dark) 42px 44px);
}
.hero-stamp {
  display: inline-block;
  background: var(--red);
  color: #fff;
  padding: 4px 14px;
  font-size: 13px;
  letter-spacing: 2px;
  border-radius: 4px;
  transform: rotate(-3deg);
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(200, 65, 44, 0.4);
}
/* ----- 主标题：音乐主题艺术字 ----- */
.hero-title {
  font-family: var(--serif);
  /* 流式字号：手机 26px ~ 桌面 52px */
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 900;
  letter-spacing: 2px;
  line-height: 1.25;
  margin: 6px 0 14px;
  /* 兜底色：老浏览器不支持渐变裁切时显示朱红 */
  color: var(--red);
  /* 墨褐 → 朱红 → 暖金 三段渐变，呈烫金漆书质感 */
  background: linear-gradient(100deg,
      var(--ink) 0%,
      var(--red-deep) 32%,
      var(--red) 56%,
      var(--gold) 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* 暖色微投影，增加立体感 */
  filter: drop-shadow(0 2px 3px rgba(120, 80, 30, 0.22));
  display: inline-block;
  position: relative;
  padding: 0 6px;
}

/* 标题两侧彩色音符装饰 */
.hero-title::before,
.hero-title::after {
  /* 装饰符不参与渐变裁切，保留 emoji 原本彩色 */
  -webkit-text-fill-color: initial;
  color: initial;
  font-size: 0.52em;
  font-weight: 400;
  vertical-align: 0.35em;
  filter: none;
}
.hero-title::before {
  content: "🎶 ";
  margin-right: 2px;
}
.hero-title::after {
  content: " 🎵";
  margin-left: 2px;
}

/* 标题下方五线谱装饰线 */
.hero-title-stave {
  height: 11px;
  max-width: 260px;
  margin: 0 0 14px;
  border-radius: 2px;
  background: repeating-linear-gradient(
      to bottom,
      var(--gold) 0 1px,
      transparent 1px 4px);
  opacity: 0.55;
  /* 右侧渐隐，避免线条过硬 */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 62%, transparent 100%);
}
.hero-desc {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 16px;
  max-width: 720px;
}
.hero-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  background: #fff;
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-soft);
}

/* ----- 票王条 ----- */
.ranking-bar {
  background: linear-gradient(90deg, #fff3d4, #f7e6c4);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 15px;
  box-shadow: var(--shadow);
}
.ranking-label { color: var(--ink-soft); }
.ranking-name { font-weight: 700; color: var(--ink); }
.ranking-count { margin-left: auto; background: var(--red); color: #fff; padding: 4px 12px; border-radius: 999px; font-size: 13px; }

/* 排序提示 */
.sort-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  margin-bottom: 16px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-soft);
  width: fit-content;
}
.sort-hint .sort-icon { font-size: 14px; }
.sort-hint strong { color: var(--red); font-weight: 600; }

/* ----- 点心卡片网格 ----- */
.dimsum-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 22px;
}

.dimsum-card {
  position: relative;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  overflow: hidden;
}
.dimsum-card::before {
  /* 蒸笼竹条纹 */
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, var(--bamboo) 0 18px, var(--bamboo-dark) 18px 20px);
  opacity: 0.85;
}
.dimsum-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

/* 排名高亮 */
.dimsum-card.rank-1 {
  background: linear-gradient(180deg, #fff7d6 0%, #fbecc1 100%);
  border-color: #e6c97a;
}
.dimsum-card.rank-1::after {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle at center, rgba(255, 215, 0, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.dimsum-card.rank-2 { background: linear-gradient(180deg, #f3f0ea, #ebe5d6); }
.dimsum-card.rank-3 { background: linear-gradient(180deg, #f3e1c8, #ead0a8); }

.rank-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  box-shadow: 0 3px 8px rgba(200, 65, 44, 0.35);
  z-index: 1;
}
.rank-1 .rank-badge { background: #d49a17; }
.rank-2 .rank-badge { background: #8a8a8a; }
.rank-3 .rank-badge { background: #b87333; }
.dimsum-card.rank-other .rank-badge { background: var(--ink-soft); }

.dimsum-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 12px;
}
.dimsum-icon {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(120, 80, 30, 0.2));
  /* 蒸汽效果 */
  position: relative;
}
.dimsum-titles { flex: 1; min-width: 0; }
.dimsum-title {
  font-family: var(--serif);
  font-size: 20px;
  margin: 0;
  color: var(--ink);
  line-height: 1.3;
}
.dimsum-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.dimsum-desc {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.6);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
}

/* 视频 */
.video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.video-wrap video {
  width: 100%;
  display: block;
  background: #000;
  aspect-ratio: 16/9;
  object-fit: contain;
}

/* 吉他谱 */
.tab-wrap {
  margin-bottom: 14px;
}
/* 打开曲谱按钮的持续脉冲动画（吸引点击） */
@keyframes tab-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 1px 2px rgba(200, 65, 44, 0.10); }
  50%      { transform: scale(1.035); box-shadow: 0 4px 10px rgba(200, 65, 44, 0.28); }
}
@keyframes tab-press {
  0%   { transform: scale(0.97) translateY(2px); }
  50%  { transform: scale(0.95) translateY(3px); }
  100% { transform: scale(0.97) translateY(2px); }
}
.tab-wrap summary {
  cursor: pointer;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 14px;
  color: var(--ink-soft);
  list-style: none;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease;
  transform-origin: center;
}
/* 未展开时持续脉冲；展开后停止，回归静态（避免视觉干扰阅读） */
.tab-wrap:not([open]) summary {
  animation: tab-pulse 1.6s ease-in-out infinite;
}
.tab-wrap summary:hover {
  background: rgba(255, 255, 255, 0.9);
  animation-duration: 1s;  /* hover 时脉冲加快，更诱人 */
}
.tab-wrap summary:active {
  animation: tab-press 0.18s ease-out;   /* 按下瞬间的回弹 */
  background: #fff;
}
.tab-wrap summary::-webkit-details-marker { display: none; }
.tab-wrap summary:hover { background: rgba(255, 255, 255, 0.9); }
.tab-wrap[open] summary { background: #fff; color: var(--ink); margin-bottom: 8px; }
.tab-image {
  background: #fff;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.tab-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.no-tab {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  padding: 10px;
  margin: 0 0 12px;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  border: 1px dashed var(--line);
}

/* 投票 */
.vote-section { margin-top: auto; }
.vote-meter {
  position: relative;
  height: 24px;
  background: #f1e3c5;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.vote-meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.vote-meter-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}
.vote-form { display: flex; }
.stamp-btn {
  flex: 1;
  background: var(--red);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 12px;
  cursor: pointer;
  font-family: var(--serif);
  letter-spacing: 2px;
  position: relative;
  transition: all 0.15s ease;
  box-shadow: 0 4px 0 var(--red-deep), 0 6px 12px rgba(200, 65, 44, 0.3);
  overflow: hidden;
}
.stamp-btn::before {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  pointer-events: none;
}
.stamp-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--red-deep), 0 8px 14px rgba(200, 65, 44, 0.4); }
.stamp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--red-deep); }
.stamp-btn-secondary {
  background: var(--gold);
  box-shadow: 0 4px 0 #a87a30, 0 6px 12px rgba(210, 162, 76, 0.3);
}
.stamp-btn-secondary:hover { box-shadow: 0 5px 0 #a87a30, 0 8px 14px rgba(210, 162, 76, 0.4); }
.stamp-btn-secondary:active { box-shadow: 0 1px 0 #a87a30; }
.stamp-btn-done {
  background: var(--green);
  cursor: default;
  opacity: 0.9;
  box-shadow: 0 4px 0 #4a6028, 0 6px 12px rgba(106, 138, 62, 0.3);
}

/* ----- 空状态 ----- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}
.empty-state.small { padding: 30px 20px; }
.empty-emoji { font-size: 64px; margin-bottom: 12px; }
.empty-state h2 { font-family: var(--serif); margin: 0 0 8px; color: var(--ink); }
.empty-state p { color: var(--muted); margin: 0 0 18px; }

/* ----- 后台通用 ----- */
.page-admin .main { max-width: 1000px; }
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.page-head h1 { font-family: var(--serif); margin: 0; font-size: 26px; }
.page-actions { display: flex; gap: 8px; }

.section-title {
  font-family: var(--serif);
  font-size: 18px;
  margin: 28px 0 12px;
  color: var(--ink);
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

/* 统计卡片 */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--bamboo);
}
.stat-emoji { font-size: 30px; margin-bottom: 4px; }
.stat-value { font-family: var(--serif); font-size: 32px; font-weight: 700; color: var(--red); }
.stat-label { color: var(--muted); font-size: 13px; }

/* 数据表 */
.data-table {
  width: 100%;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
.data-table th {
  background: #f1e0bc;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255, 255, 255, 0.5); }
.big-emoji { font-size: 28px; }
.cell-title { font-weight: 600; color: var(--ink); }
.cell-sub { color: var(--muted); font-size: 12px; }
.cell-desc { color: var(--ink-soft); font-size: 12px; margin-top: 4px; max-width: 360px; }
.row-actions { white-space: nowrap; display: flex; gap: 10px; align-items: center; }
.row-actions form { display: inline; }
.row-actions .link-danger {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: 14px;
  padding: 0;
}
.row-actions .link-danger:hover { color: var(--red-deep); text-decoration: underline; }
.inline-form { display: inline; }

/* 按钮 */
.btn {
  display: inline-block;
  padding: 9px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s ease;
  text-decoration: none;
}
.btn:hover { background: #fff8e7; text-decoration: none; }
.btn-primary {
  background: var(--red);
  color: #fff;
  border-color: var(--red-deep);
  box-shadow: 0 2px 0 var(--red-deep);
}
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red-deep);
  font-weight: 700;
  box-shadow: 0 2px 0 var(--red-deep);
}
.btn-danger:hover:not(:disabled) {
  background: var(--red-deep);
  color: #fff;
  box-shadow: 0 3px 0 #6b1809;
  transform: translateY(-1px);
}
.btn-danger:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 1px 0 var(--red-deep);
}
.btn-danger:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: #f5d9d3;
  color: var(--muted);
  border-color: var(--line);
  box-shadow: none;
}

/* 危险操作区 */
.danger-zone {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: #fdf0ec;
  border: 1px solid #e8b3a4;
  border-radius: 14px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}
.danger-icon { font-size: 32px; line-height: 1; }
.danger-body { flex: 1; min-width: 220px; }
.danger-body h3 {
  margin: 0 0 4px;
  font-family: var(--serif);
  color: var(--red-deep);
  font-size: 16px;
}
.danger-body p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.danger-form { flex-shrink: 0; }

/* 想学清单 */
.wishlist-section {
  margin-top: 40px;
  padding: 24px 26px 22px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.wishlist-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  border-radius: var(--radius) var(--radius) 0 0;
}
.wishlist-head h2 {
  font-family: var(--serif);
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--ink);
}
.wishlist-head p { margin: 0 0 16px; font-size: 13px; }
.wishlist-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.wishlist-form input[type="text"] {
  flex: 1;
  min-width: 160px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.wishlist-form input[type="text"]:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 65, 44, 0.15);
}
.wishlist-form input[name="song_name"] { flex: 2 1 220px; }
.wishlist-form input[name="submitter"] { flex: 1 1 140px; }
.wishlist-form button { flex-shrink: 0; }
.wishlist-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 16px 0;
  margin: 0;
}
.wishlist-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wishlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}
.wishlist-item:nth-child(1) { background: #fff7d6; border-color: #e6c97a; }
.wishlist-item:nth-child(2) { background: #f3f0ea; }
.wishlist-item:nth-child(3) { background: #f3e1c8; }
.wishlist-rank {
  font-family: var(--serif);
  color: var(--ink-soft);
  font-size: 13px;
  min-width: 28px;
}
.wishlist-name {
  flex: 1;
  color: var(--ink);
  font-weight: 500;
  word-break: break-all;
}
.wishlist-count {
  background: var(--red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.my-wishes {
  margin-top: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.my-wishes summary {
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-soft);
  list-style: none;
  user-select: none;
}
.my-wishes summary::-webkit-details-marker { display: none; }
.my-wishes summary::before { content: "▸ "; color: var(--muted); }
.my-wishes[open] summary::before { content: "▾ "; }
.my-wishes ul {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.my-wishes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.my-wish-name { flex: 1; }
.my-wishes .link-danger { background: none; border: none; color: var(--red); font-size: 13px; cursor: pointer; padding: 0; }
.my-wishes .link-danger:hover { color: var(--red-deep); text-decoration: underline; }

/* 表单 */
.form { background: var(--bg-paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.form-wide { max-width: 720px; box-shadow: var(--shadow); }
.form fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px 18px; margin: 0 0 18px; }
.form legend { padding: 0 8px; color: var(--red); font-weight: 600; font-family: var(--serif); }
.form label {
  display: block;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.form label > span { display: block; margin-bottom: 6px; font-weight: 500; color: var(--ink); }
.form input[type="text"],
.form input[type="number"],
.form input[type="password"],
.form textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(200, 65, 44, 0.15);
}
.form input[type="file"] { font-size: 13px; }
.form .checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--red);
}
.form .hint { color: var(--muted); font-size: 12px; margin-top: 4px; }
.form .hint code { background: #fff; padding: 1px 6px; border-radius: 4px; border: 1px solid var(--line); }
.form-actions { display: flex; gap: 10px; }

.preview-video {
  width: 100%;
  max-width: 480px;
  border-radius: 8px;
  background: #000;
  margin: 8px 0 12px;
  display: block;
}
.preview-tab {
  max-width: 320px;
  max-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 6px 0 10px;
}

/* 登录页 */
.page-admin-login .main {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-strong);
  position: relative;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: var(--red);
  border-radius: var(--radius) var(--radius) 0 0;
}
.auth-emoji { font-size: 44px; }
.auth-card h1 { font-family: var(--serif); margin: 8px 0 4px; }
.auth-card .form { background: transparent; border: none; padding: 18px 0 0; box-shadow: none; text-align: left; }
.auth-card .hint { text-align: center; margin-top: 16px; }

/* 页脚 */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  background: var(--bg-paper);
  margin-top: 40px;
}
.site-footer-copy {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  letter-spacing: 0.5px;
  opacity: 0.85;
}

/* 底部后台入口按钮（投票页专用） */
.admin-entry-bottom {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 16px;
  padding: 0 16px;
}
.admin-entry-link {
  display: inline-block;
  padding: 10px 28px;
  background: var(--bg-paper);
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}
.admin-entry-link:hover {
  color: var(--ink);
  background: #fff;
  border-color: var(--ink-soft);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

/* ----- 响应式（手机优先） ----- */

/* 平板及以下 */
@media (max-width: 768px) {
  /* 顶部栏：竖向堆叠 */
  .topbar-inner {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 12px;
    gap: 8px;
  }
  .brand { justify-content: center; font-size: 20px; }
  .brand-emoji { font-size: 26px; }
  .topbar-nav {
    justify-content: center;
    gap: 4px;
    flex-wrap: wrap;
  }
  .topbar-nav a {
    font-size: 13px;
    padding: 6px 10px;
  }

  /* 主页内容 */
  .main { padding: 16px 14px 50px; }
  .hero { padding: 22px 18px; border-radius: 14px; }
  .hero-stamp { font-size: 12px; padding: 3px 12px; }
  .hero-title { line-height: 1.3; letter-spacing: 1px; }
  .hero-title-stave { max-width: 190px; height: 9px; }
  .hero-desc { font-size: 14px; }
  .hero-meta { gap: 6px; }
  .chip { font-size: 12px; padding: 5px 10px; }

  /* 票王条 */
  .ranking-bar { padding: 10px 14px; font-size: 14px; gap: 8px; }
  .ranking-count { font-size: 12px; padding: 3px 10px; }

  /* 点心卡片：单列 */
  .dimsum-grid { grid-template-columns: 1fr; gap: 18px; }
  .dimsum-card { padding: 18px 16px 14px; border-radius: 14px; }
  .rank-badge { font-size: 12px; padding: 3px 10px; top: 14px; right: 14px; }
  .dimsum-head { gap: 10px; margin: 4px 0 10px; }
  .dimsum-icon { font-size: 38px; }
  .dimsum-title { font-size: 18px; }
  .dimsum-subtitle { font-size: 12px; }
  .dimsum-desc { font-size: 13px; padding: 8px 10px; }
  .stamp-btn { font-size: 15px; padding: 12px 18px; letter-spacing: 2px; }
  .vote-meter { height: 22px; }
  .vote-meter-text { font-size: 11px; }

  /* 统计卡：手机上 1 列或 2 列 */
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-card { padding: 16px 12px; }
  .stat-emoji { font-size: 26px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }

  /* 后台页头 */
  .page-head { margin-bottom: 16px; gap: 10px; }
  .page-head h1 { font-size: 20px; }
  .page-actions { gap: 6px; }
  .page-actions .btn,
  .page-head .btn { padding: 8px 14px; font-size: 13px; }

  /* 表单：输入 16px 防止 iOS 自动缩放 */
  .form { padding: 18px 16px; border-radius: 12px; }
  .form fieldset { padding: 14px 14px 16px; }
  .form input[type="text"],
  .form input[type="number"],
  .form input[type="password"],
  .form textarea,
  .wishlist-form input[type="text"] {
    font-size: 16px;  /* 关键：iOS 不会自动放大 */
    padding: 11px 12px;
  }
  .form-actions { flex-wrap: wrap; }
  .form-actions .btn { flex: 1; min-width: 0; }
  .preview-tab { max-width: 100%; }

  /* 表格：横向滚动，避免内容溢出 */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; }
  .data-table { min-width: 100%; }
  .data-table th, .data-table td { padding: 10px 12px; font-size: 13px; }
  .big-emoji { font-size: 24px; }
  .cell-desc { max-width: 200px; white-space: normal; }
  .row-actions { gap: 8px; }

  /* 危险区：堆叠 */
  .danger-zone {
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px;
    gap: 12px;
  }
  .danger-icon { align-self: flex-start; font-size: 28px; }
  .danger-form { width: 100%; }
  .danger-form .btn { width: 100%; }

  /* 想学清单：表单堆叠 */
  .wishlist-section { padding: 20px 18px 16px; }
  .wishlist-head h2 { font-size: 19px; }
  .wishlist-form { flex-direction: column; gap: 10px; }
  .wishlist-form input[type="text"] { width: 100%; flex: 1 1 auto !important; }
  .wishlist-form button { width: 100%; padding: 12px; }
  .wishlist-item { padding: 9px 12px; font-size: 13px; gap: 8px; flex-wrap: wrap; }
  .wishlist-name { font-size: 14px; min-width: 0; }

  /* 登录卡 */
  .auth-card { padding: 26px 22px; max-width: 100%; }
  .auth-emoji { font-size: 38px; }
  .auth-card h1 { font-size: 22px; }

  /* 页脚 */
  .site-footer { padding: 18px 14px; font-size: 12px; }
}

/* 小屏手机（iPhone SE 等 ≤ 480px）*/
@media (max-width: 480px) {
  .hero-title { font-size: clamp(22px, 6.6vw, 30px); letter-spacing: 0.5px; padding: 0 2px; }
  .hero-title-stave { max-width: 150px; height: 8px; }
  .hero-meta { flex-direction: column; align-items: flex-start; }
  .chip { width: fit-content; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card { display: flex; align-items: center; gap: 14px; text-align: left; }
  .stat-emoji { font-size: 28px; margin: 0; }
  .stat-value { font-size: 24px; }
  .dimsum-icon { font-size: 32px; }
  .dimsum-title { font-size: 17px; }
  .ranking-bar { font-size: 13px; }
  .ranking-bar .ranking-count { width: 100%; text-align: center; }
  .danger-form .btn,
  .form-actions .btn,
  .wishlist-form button { font-size: 15px; padding: 12px 16px; }
}

/* 触摸优化：所有可点击元素最小 44px 高度 */
@media (hover: none) and (pointer: coarse) {
  .stamp-btn { min-height: 48px; }
  .btn { min-height: 44px; }
  .form input[type="text"],
  .form input[type="number"],
  .form input[type="password"],
  .form textarea,
  .wishlist-form input[type="text"] {
    min-height: 44px;
  }
}

/* ----- 声波律动动画（音乐元素） ----- */
@keyframes wave-bar {
  0%, 100% { transform: scaleY(0.35); }
  50%      { transform: scaleY(1); }
}
.dimsum-icon {
  position: relative;
}
/* 4 条律动彩条：通过 box-shadow 在同一个 ::after 上堆叠出 4 根条 */
.dimsum-icon::after {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 4px;
  height: 22px;
  margin-top: -11px;
  border-radius: 2px;
  background: var(--red);
  box-shadow:
    6px  -2px 0 -1px #d49a17,
    12px  1px 0 -1px #8a8a8a,
    18px -1px 0 -1px #b87333;
  transform-origin: center;
  transform: scaleY(0.35);
  animation: wave-bar 0.9s ease-in-out infinite;
  opacity: 0.85;
  pointer-events: none;
}
.dimsum-icon::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 50%;
  width: 4px;
  height: 22px;
  margin-top: -11px;
  border-radius: 2px;
  background: var(--red);
  transform-origin: center;
  transform: scaleY(0.35);
  animation: wave-bar 0.9s ease-in-out infinite;
  animation-delay: 0.45s;
  opacity: 0.85;
  pointer-events: none;
}

/* ----- 常用和弦速查（Hero 卡片底部） ----- */
.chord-hint {
  margin-top: 22px;
  padding: 16px 18px 14px;
  background: var(--bg-paper);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: left;
}
.chord-hint-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}
.chord-hint-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: 0.5px;
}
.chord-hint-sub {
  font-size: 13px;
  color: var(--ink-soft);
}
.chord-hint-image {
  display: flex;
  justify-content: center;
  align-items: center;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 6px,
      rgba(210, 162, 76, 0.06) 6px 12px
    ),
    #fffdf3;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px;
  overflow-x: auto;
}
.chord-hint-image img {
  display: block;
  max-width: 100%;
  height: auto;
  /* 原图是横向长条（387x87），在小屏上保持比例且不模糊 */
  image-rendering: -webkit-optimize-contrast;
}
.chord-hint-tip {
  margin: 10px 2px 0;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
@media (max-width: 480px) {
  .chord-hint {
    padding: 12px 12px 10px;
  }
  .chord-hint-title { font-size: 15px; }
  .chord-hint-sub   { font-size: 12px; }
  .chord-hint-tip   { font-size: 12px; }
}

/* ----- 视频首帧占位（JS 截帧方案） ----- */
.video-wrap {
  position: relative;
  /* 默认主题色 fallback，符合整体米色调 */
  background: linear-gradient(180deg, #2b211a 0%, #1a1410 100%);
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16 / 9; /* 占一个 16:9 的格子，避免布局抖动 */
}
.video-wrap video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}
.video-poster {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1a1410;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: filter 0.2s ease, transform 0.2s ease;
  z-index: 1;
  /* 修复：明确 background-image 默认值，让 inline style 设置的封面永远生效
     避免被 .is-fallback 的 background 简写意外清空 */
  background-image: none;
}
.video-poster::after {
  /* 中心三角播放图标（不依赖字体/图片） */
  content: "";
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  transition: transform 0.2s ease, background 0.2s ease;
}
.video-poster::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  margin-left: -7px;
  margin-top: -10px;
  border-left: 16px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  z-index: 2;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.video-poster:hover {
  filter: brightness(1.08);
}
.video-poster:hover::after {
  background: rgba(200, 65, 44, 0.85);
  transform: scale(1.06);
}
.video-poster.is-loaded {
  /* 加载完首帧后，hover 时变暗一些，提示点击播放 */
  filter: brightness(0.95);
}
.video-poster.is-loaded:hover {
  filter: brightness(1.0);
}
.video-poster-loading {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  pointer-events: none;
  z-index: 3;
}
.video-poster.is-loaded .video-poster-loading,
.video-poster.is-fallback .video-poster-loading {
  display: none;
}
.video-poster.is-fallback {
  /* 修复：只用 background-color（不要再用 background 简写！）
     之前 background: linear-gradient(...) 会清空 inline 的 background-image
     导致首帧被 🎸 兜底覆盖。改用 background-color 就不会影响封面图。
     如果有首帧，inline 的 background-image 仍然会盖在这个深色背景上。 */
  background-color: #1a1410;
  background-image: linear-gradient(180deg, rgba(58, 42, 26, 0.0), rgba(26, 20, 16, 0.0)) !important;
  /* ↑ 用透明渐变占位（不覆盖任何 inline image），并 !important 锁住不让简写清空 */
}
.video-poster-fallback {
  font-size: 64px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

/* ============ 歌曲目录（标签云） ============ */
.song-toc {
  margin: 16px 0 18px;
  padding: 14px 16px 16px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(200, 65, 44, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.song-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(200, 65, 44, 0.22);
}

.song-toc-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.5px;
}

.song-toc-count {
  font-size: 12px;
  color: #8a7f6d;
  background: rgba(200, 65, 44, 0.07);
  padding: 2px 9px;
  border-radius: 10px;
}

.song-toc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.song-toc-tip {
  margin: 0 0 11px;
  font-size: 12.5px;
  color: #8a7f6d;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 5px;
}

.song-toc-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 11px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, background 0.18s ease;
}

.song-toc-item:hover {
  transform: translateY(-2px);
  border-color: rgba(200, 65, 44, 0.45);
  background: #fffaf2;
  box-shadow: 0 4px 12px rgba(200, 65, 44, 0.16);
}

.song-toc-item:active {
  transform: translateY(0);
}

.song-toc-item .toc-rank {
  font-size: 12px;
  font-weight: 700;
  color: #a89b86;
  min-width: 15px;
  text-align: center;
}

.song-toc-item.rank-1 .toc-rank,
.song-toc-item.rank-2 .toc-rank,
.song-toc-item.rank-3 .toc-rank {
  font-size: 14px;
}

.song-toc-item.rank-1 {
  border-color: rgba(212, 160, 23, 0.5);
  background: linear-gradient(180deg, #fffdf3, #fff8e2);
}

.song-toc-item.rank-2 {
  border-color: rgba(160, 160, 170, 0.5);
  background: linear-gradient(180deg, #fdfdfd, #f4f4f6);
}

.song-toc-item.rank-3 {
  border-color: rgba(190, 130, 90, 0.45);
  background: linear-gradient(180deg, #fffcf8, #fbf1e7);
}

.song-toc-item .toc-name {
  font-weight: 600;
  white-space: nowrap;
}

.song-toc-item .toc-votes {
  margin-left: auto;
  font-size: 11px;
  color: #fff;
  background: var(--red);
  opacity: 0.82;
  padding: 1px 7px;
  border-radius: 8px;
  font-weight: 600;
}

/* 目录跳转后的目标卡片高亮提示 */
.dimsum-card.is-toc-target {
  animation: tocTargetPulse 2s ease-out;
}

@keyframes tocTargetPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 65, 44, 0.55);
    transform: scale(1);
  }
  12% {
    box-shadow: 0 0 0 8px rgba(200, 65, 44, 0.22);
    transform: scale(1.012);
  }
  30% {
    box-shadow: 0 0 0 14px rgba(200, 65, 44, 0);
    transform: scale(1);
  }
  45% {
    box-shadow: 0 0 0 0 rgba(200, 65, 44, 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(200, 65, 44, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(200, 65, 44, 0);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dimsum-card.is-toc-target { animation: none; outline: 2px solid var(--red); }
  .song-toc-item { transition: none; }
}

@media (max-width: 720px) {
  .song-toc { padding: 12px 12px 13px; margin: 14px 0 16px; }
  .song-toc-list { gap: 7px; }
  .song-toc-item { padding: 5px 9px; font-size: 12.5px; }
  .song-toc-tip { font-size: 12px; margin-bottom: 10px; }
  .song-toc-title { font-size: 14px; }
}

/* ============ 一键直达底部「想学其他歌曲？」 ============ */
.wish-jump {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 13px 18px;
  border-radius: var(--radius);
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #d9573f 0%, #c8412c 55%, #b8351f 100%);
  box-shadow: 0 4px 14px rgba(200, 65, 44, 0.28);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: wishJumpGlow 2.4s ease-in-out infinite;
}
.wish-jump:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(200, 65, 44, 0.5);
}
.wish-jump:active { transform: translateY(0); }

/* 待机动效①：柔和呼吸光晕 */
@keyframes wishJumpGlow {
  0%, 100% { box-shadow: 0 4px 14px rgba(200, 65, 44, 0.28); }
  50%      { box-shadow: 0 4px 22px rgba(217, 87, 63, 0.62); }
}

/* 待机动效②：周期高光扫过（引导点击） */
.wish-jump::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.35) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-18deg);
  animation: wishJumpShine 3.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes wishJumpShine {
  0%   { transform: translateX(-160%) skewX(-18deg); }
  55%  { transform: translateX(360%) skewX(-18deg); }
  100% { transform: translateX(360%) skewX(-18deg); }
}
/* 内容置于扫光层之上，保证文字清晰、点击区域正常 */
.wish-jump > span { position: relative; z-index: 2; }

/* 锁定所有链接状态下的文字颜色，避免点击后变紫；同时去掉下划线 */
.wish-jump:link,
.wish-jump:visited,
.wish-jump:hover,
.wish-jump:active,
.wish-jump:focus {
  color: #fff;
  text-decoration: none;
}
.wish-jump .wish-jump-title,
.wish-jump .wish-jump-sub {
  color: #fff;
  text-decoration: none;
}

.wish-jump-icon { font-size: 24px; line-height: 1; }

.wish-jump-text { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.wish-jump-title { font-size: 15px; font-weight: 700; letter-spacing: 0.5px; }
.wish-jump-sub { font-size: 12.5px; opacity: 0.88; }

.wish-jump-arrow {
  font-size: 22px;
  line-height: 1;
  animation: wishJumpBounce 1.6s ease-in-out infinite;
}
@keyframes wishJumpBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(4px); }
}

/* 许愿区被目录/按钮定位后的高亮提示（与歌曲卡片同款脉冲） */
.wishlist-section.is-toc-target { animation: tocTargetPulse 2s ease-out; }

@media (prefers-reduced-motion: reduce) {
  .wish-jump { transition: none; animation: none; }
  .wish-jump::before { animation: none; }
  .wish-jump-arrow { animation: none; }
  .wishlist-section.is-toc-target { animation: none; outline: 2px solid var(--red); outline-offset: 2px; }
}

@media (max-width: 720px) {
  .wish-jump { padding: 11px 14px; gap: 10px; margin-bottom: 16px; }
  .wish-jump-icon { font-size: 21px; }
  .wish-jump-title { font-size: 14px; }
  .wish-jump-sub { font-size: 12px; }
  .wish-jump-arrow { font-size: 19px; }
}

/* ============ 谱子点击放大（灯箱 Lightbox） ============ */
/* 缩略图：可点击放大的角标提示 */
.tab-image.js-zoomable { position: relative; cursor: zoom-in; }
.tab-image.js-zoomable::after {
  content: "🔍 点击放大";
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.tab-image.js-zoomable:hover::after { opacity: 1; }
/* 触屏设备没有 hover，常驻一个半透明角标，保证可发现性 */
@media (hover: none) {
  .tab-image.js-zoomable::after { opacity: 0.85; }
}

/* 全屏遮罩 */
.tab-lightbox {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-overflow-scrolling: touch;
}
.tab-lightbox.is-open { opacity: 1; }
.tab-lightbox[hidden] { display: none; }

/* 滚动区：长谱子可上下滚动查看；手机端可在此区域双指缩放后拖动 */
.tab-lightbox-inner {
  width: 100%;
  height: 100%;
  overflow: auto;
  /* grid 居中：放大后内容溢出时四边都能滚动（flex 居中会导致左侧滚不到） */
  display: grid;
  place-items: start center;
  padding: 54px 14px 86px;
  box-sizing: border-box;
  cursor: zoom-out;
}
.tab-lightbox-img {
  max-width: 100%;
  max-height: none;
  width: auto;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.5);
  cursor: default;
  -webkit-user-drag: none;
  user-select: none;
}
.tab-lightbox-img.is-zoomed {
  cursor: grab;
  /* 放大时解除适配状态的宽高上限，否则高度被钉死会导致横向拉伸、比例失调 */
  max-width: none;
  max-height: none;
}
/* 电脑端：默认整屏适配高度，一屏看全 */
@media (min-width: 721px) {
  .tab-lightbox-inner { place-items: center; padding: 60px 24px 100px; }
  .tab-lightbox-img {
    max-height: calc(100vh - 160px);
    max-width: calc(100vw - 48px);
    width: auto;
  }
}

/* 关闭按钮 */
.tab-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.18s ease;
  z-index: 2;
}
.tab-lightbox-close:hover { background: rgba(255, 255, 255, 0.32); transform: scale(1.08); }
.tab-lightbox-close:active { transform: scale(0.94); }

/* 底部操作提示 */
.tab-lightbox-hint {
  position: absolute;
  left: 0; right: 0; bottom: 52px;
  margin: 0;
  text-align: center;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  pointer-events: none;
  z-index: 2;
}

/* 缩放工具栏 */
.tab-lightbox-toolbar {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  background: rgba(30, 30, 30, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  z-index: 2;
}
.lb-zoom-btn,
.lb-zoom-reset {
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-size: 19px;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.12s ease;
}
.lb-zoom-reset { font-size: 13px; padding: 0 14px; color: rgba(255, 255, 255, 0.9); }
.lb-zoom-btn:hover,
.lb-zoom-reset:hover { background: rgba(255, 255, 255, 0.2); }
.lb-zoom-btn:active,
.lb-zoom-reset:active { transform: scale(0.92); }

/* 打开灯箱时锁定背景滚动 */
body.lightbox-open { overflow: hidden; }

@media (max-width: 720px) {
  .tab-lightbox-inner { padding: 50px 8px 82px; }
  .tab-lightbox-close { top: 10px; right: 10px; width: 38px; height: 38px; font-size: 18px; }
  .tab-lightbox-hint { font-size: 11px; bottom: 58px; padding: 0 12px; }
  .tab-lightbox-toolbar { bottom: 10px; }
  .lb-zoom-btn, .lb-zoom-reset { min-width: 34px; height: 34px; }
  .lb-zoom-btn { font-size: 17px; }
  .lb-zoom-reset { font-size: 12px; padding: 0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-lightbox { transition: none; }
  .tab-lightbox-close { transition: none; }
  .tab-image.js-zoomable::after { transition: none; }
}

/* ============ 使用说明按钮 & 弹窗 ============ */
.hero-actions {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}
.guide-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--red);
  background: #fff;
  border: 1.5px solid rgba(200, 65, 44, 0.45);
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(200, 65, 44, 0.12);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.guide-btn:hover {
  transform: translateY(-2px);
  background: #fff7f2;
  box-shadow: 0 6px 16px rgba(200, 65, 44, 0.22);
}
.guide-btn:active { transform: translateY(0); }

/* 遮罩 */
.guide-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.guide-modal.is-open { opacity: 1; }
.guide-modal[hidden] { display: none; }

/* 说明卡片 */
.guide-modal-card {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 26px 26px 22px;
  box-sizing: border-box;
  background: var(--bg-paper, #fffaf3);
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.22s ease;
}
.guide-modal.is-open .guide-modal-card { transform: translateY(0) scale(1); }

.guide-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: var(--ink-soft, #555);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.16s ease, transform 0.16s ease;
}
.guide-modal-close:hover { background: rgba(200, 65, 44, 0.15); color: var(--red); transform: scale(1.08); }
.guide-modal-close:active { transform: scale(0.92); }

.guide-modal-title {
  margin: 0 40px 8px 0;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.guide-modal-lead {
  margin: 0 0 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft, #555);
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  counter-reset: guide;
}
.guide-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(200, 65, 44, 0.12);
  border-radius: 12px;
}
.guide-step-emoji {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: rgba(200, 65, 44, 0.09);
  border-radius: 50%;
}
.guide-step-body h3 {
  margin: 2px 0 4px;
  font-size: 15px;
  color: var(--red);
}
.guide-step-body p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-soft, #555);
}
.guide-step-body strong { color: var(--ink); }

.guide-modal-foot {
  margin: 20px 0 0;
  padding: 12px 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  background: rgba(200, 65, 44, 0.08);
  border-radius: 10px;
}

@media (max-width: 720px) {
  .guide-btn { padding: 9px 18px; font-size: 14px; }
  .guide-modal { padding: 12px; }
  .guide-modal-card { padding: 22px 16px 18px; max-height: 90vh; border-radius: 14px; }
  .guide-modal-title { font-size: 19px; }
  .guide-steps li { padding: 10px 11px; gap: 10px; }
  .guide-step-emoji { width: 34px; height: 34px; font-size: 18px; }
  .guide-step-body h3 { font-size: 14.5px; }
  .guide-step-body p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-modal, .guide-modal-card, .guide-btn, .guide-modal-close { transition: none; }
}

/* ================================================================
   首页 Hero 动态 Banner（暖纸音乐现场）
   纯 CSS 动画 · 装饰层 aria-hidden · 不影响内容与交互
   ---------------------------------------------------------------- */

/* 装饰层：位于 hero 背景之上、内容之下，不拦截点击 */
.hero-banner {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: inherit;
}
.hero-banner ~ * { position: relative; z-index: 1; }
/* 顶部竹条保持在装饰光晕之上；五线谱为扫光伪元素提供定位锚点 */
.hero::before { z-index: 2; }
.hero-title-stave { position: relative; }

/* ---- 流动光晕 ---- */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.55;
  will-change: transform, opacity;
}
.hero-glow-a {
  width: 46%;
  min-width: 240px;
  aspect-ratio: 1 / 1;
  top: -18%;
  right: -6%;
  background: radial-gradient(circle, rgba(210, 162, 76, 0.55), rgba(210, 162, 76, 0) 70%);
  animation: glow-drift-a 14s ease-in-out infinite;
}
.hero-glow-b {
  width: 42%;
  min-width: 220px;
  aspect-ratio: 1 / 1;
  bottom: -26%;
  left: -8%;
  background: radial-gradient(circle, rgba(138, 154, 91, 0.42), rgba(138, 154, 91, 0) 70%);
  animation: glow-drift-b 18s ease-in-out infinite;
}
@keyframes glow-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.55; }
  50%      { transform: translate(-9%, 16%) scale(1.12); opacity: 0.75; }
}
@keyframes glow-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.42; }
  50%      { transform: translate(12%, -12%) scale(1.15); opacity: 0.62; }
}

/* ---- 标题：渐变流光（往返扫动，避免循环跳变）+ 轻微呼吸浮动 ---- */
.hero-title {
  background-size: 200% 100%;
  animation: title-shine 7s ease-in-out infinite alternate,
             title-float 5.5s ease-in-out infinite;
}
@keyframes title-shine {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
@keyframes title-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}

/* ---- 五线谱：暖色光扫过 ---- */
.hero-title-stave::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 247, 220, 0.95) 45%, rgba(210, 162, 76, 0.8) 50%, rgba(255, 247, 220, 0.95) 55%, transparent 100%);
  transform: translateX(-120%);
  animation: stave-sweep 4.5s ease-in-out infinite;
}
@keyframes stave-sweep {
  0%   { transform: translateX(-120%); }
  55%  { transform: translateX(120%); }
  100% { transform: translateX(120%); }
}

/* ---- 响应式：手机端弱化装饰，避免拥挤 ---- */
@media (max-width: 720px) {
  .hero-glow-a { min-width: 170px; }
  .hero-glow-b { min-width: 160px; }
}

/* ---- 无障碍：系统要求减少动效时全部静止 ---- */
@media (prefers-reduced-motion: reduce) {
  .hero-glow-a, .hero-glow-b,
  .hero-title, .hero-title-stave::after {
    animation: none !important;
  }
  .hero-glow-a { opacity: 0.5; }
  .hero-glow-b { opacity: 0.4; }
  .hero-title { background-position: 0% 50%; transform: none; }
  .hero-title-stave::after { display: none; }
}

/* ================================================================
   使用说明按钮 · 吉他音孔造型（Soundhole + Rosette）
   ---------------------------------------------------------------- */

/* 覆盖原胶囊按钮外观，按钮本体透明，造型交给内部 .soundhole */
.guide-btn.guide-soundhole {
  padding: 0;
  width: auto;
  height: auto;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
}
.guide-btn.guide-soundhole:hover {
  background: transparent;
  box-shadow: none;
  transform: none;
}
.guide-btn.guide-soundhole:active { transform: none; }
.guide-btn.guide-soundhole:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 50%;
}

/* 音孔整体：圆形舞台，声波允许外溢 */
.soundhole {
  position: relative;
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.guide-soundhole:hover .soundhole {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 18px rgba(120, 80, 30, 0.28));
}
.guide-soundhole:active .soundhole { transform: translateY(0) scale(0.96); }

/* 马赛克镶嵌环 Rosette：金/米白/朱红/竹绿 24 拼块，60° 周期完美对称 */
.soundhole-rosette {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      var(--gold)   0deg 15deg,
      #fff3d4      15deg 30deg,
      var(--red)   30deg 45deg,
      var(--bamboo) 45deg 60deg
    );
  border: 2px solid rgba(120, 80, 30, 0.35);
  box-shadow:
    0 3px 8px rgba(120, 80, 30, 0.25),
    inset 0 0 0 2px rgba(255, 248, 231, 0.6);
  animation: rosette-spin 28s linear infinite;
}
.guide-soundhole:hover .soundhole-rosette { animation-duration: 7s; }
@keyframes rosette-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* 音孔内圈：深色径向渐变 + 内阴影，模拟音孔深处的凹陷感 */
.soundhole-inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  background:
    radial-gradient(circle at 50% 38%,
      rgba(255, 240, 200, 0.14) 0%,
      rgba(255, 240, 200, 0) 42%),
    radial-gradient(circle at 50% 46%,
      #4a3520 0%,
      #2a1d10 55%,
      #120b05 100%);
  border: 1px solid rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 5px 12px rgba(0, 0, 0, 0.65),
    inset 0 -3px 8px rgba(210, 162, 76, 0.28),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

/* 音孔中央音符：金色带柔光，hover 时跳动（复用站点音符节奏） */
.soundhole-note {
  font-size: 30px;
  line-height: 1;
  color: #f0d49a;
  text-shadow: 0 0 12px rgba(210, 162, 76, 0.85), 0 1px 2px rgba(0, 0, 0, 0.5);
}
.guide-soundhole:hover .soundhole-note {
  animation: note-bounce 0.55s ease-in-out infinite;
}

/* 音孔内文字标签：置于琴弦(z-index:3)之上，不被弦遮挡 */
.soundhole-label {
  position: relative;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 2px;
  color: #e8d5b0;
  text-shadow:
    0 0 3px rgba(18, 11, 5, 0.9),
    0 1px 2px rgba(0, 0, 0, 0.7);
}

/* 声波圈：hover 时两圈错峰从音孔荡开 */
.soundhole-wave {
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(210, 162, 76, 0.75);
  opacity: 0;
  pointer-events: none;
}
.guide-soundhole:hover .soundhole-wave-1 { animation: sound-wave 1.7s ease-out infinite; }
.guide-soundhole:hover .soundhole-wave-2 { animation: sound-wave 1.7s ease-out 0.85s infinite; }
@keyframes sound-wave {
  0%   { transform: scale(1);    opacity: 0.8; }
  100% { transform: scale(1.6);  opacity: 0; }
}

/* 手机端缩小音孔 */
@media (max-width: 720px) {
  .soundhole { width: 96px; height: 96px; }
  .soundhole-inner { inset: 10px; }
  .soundhole-note { font-size: 24px; }
  .soundhole-label { font-size: 10px; letter-spacing: 1.5px; }
}

/* 减少动效：镶嵌环不转、声波不扩散、音符不跳 */
@media (prefers-reduced-motion: reduce) {
  .soundhole-rosette { animation: none; }
  .guide-soundhole:hover .soundhole-note { animation: none; }
  .guide-soundhole:hover .soundhole-wave-1,
  .guide-soundhole:hover .soundhole-wave-2 { animation: none; opacity: 0; }
  .guide-soundhole:hover .soundhole { transform: none; filter: none; }
}

/* ================================================================
   吉他音孔 · 六根琴弦（从音孔前方横跨穿过）
   1-3 弦：银钢细弦  4-6 弦：缠绕铜弦（渐粗）
   ---------------------------------------------------------------- */
.soundhole-strings {
  position: absolute;
  inset: 0;
  z-index: 3;                 /* 弦在镶嵌环与音孔内圈的最前方 */
  pointer-events: none;
}
.soundhole-strings i {
  position: absolute;
  left: -8%;                  /* 弦端延伸到镶嵌环上，更真实 */
  right: -8%;
  height: var(--sw, 1px);
  border-radius: 999px;
  opacity: 0.92;
  /* 弦两端淡出，避免硬切 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* 六根弦的垂直位置：均匀横跨音孔中部 */
.soundhole-strings i:nth-child(1) { top: 31.5%; --sw: 1px; }
.soundhole-strings i:nth-child(2) { top: 38.9%; --sw: 1.2px; }
.soundhole-strings i:nth-child(3) { top: 46.3%; --sw: 1.5px; }
.soundhole-strings i:nth-child(4) { top: 53.7%; --sw: 1.9px; }
.soundhole-strings i:nth-child(5) { top: 61.1%; --sw: 2.2px; }
.soundhole-strings i:nth-child(6) { top: 68.5%; --sw: 2.6px; }

/* 1-3 弦：银钢弦（沿弦方向的圆柱高光） */
.soundhole-strings i:nth-child(-n+3) {
  background: linear-gradient(90deg,
    transparent 0%,
    #b9c1cb 8%, #f4f7fa 30%, #8d97a2 52%, #e9edf1 72%, #c0c8d1 92%,
    transparent 100%);
  box-shadow: 0 0 3px rgba(255, 255, 255, 0.25);
}
/* 4-6 弦：磷铜缠绕弦（暖铜金光泽） */
.soundhole-strings i:nth-child(n+4) {
  background: linear-gradient(90deg,
    transparent 0%,
    #a8722f 8%, #f0cd8d 30%, #7c501d 52%, #e3b66c 72%, #9c6a2c 92%,
    transparent 100%);
  box-shadow: 0 0 3px rgba(210, 162, 76, 0.3);
}

/* hover「拨弦」：六根弦以不同频率微微颤动（粗弦频率更低） */
.guide-soundhole:hover .soundhole-strings i:nth-child(1) { animation: string-vibrate 0.13s ease-in-out infinite; }
.guide-soundhole:hover .soundhole-strings i:nth-child(2) { animation: string-vibrate 0.15s ease-in-out infinite; }
.guide-soundhole:hover .soundhole-strings i:nth-child(3) { animation: string-vibrate 0.17s ease-in-out infinite; }
.guide-soundhole:hover .soundhole-strings i:nth-child(4) { animation: string-vibrate 0.19s ease-in-out infinite; }
.guide-soundhole:hover .soundhole-strings i:nth-child(5) { animation: string-vibrate 0.21s ease-in-out infinite; }
.guide-soundhole:hover .soundhole-strings i:nth-child(6) { animation: string-vibrate 0.24s ease-in-out infinite; }
@keyframes string-vibrate {
  0%, 100% { transform: translateY(0); }
  25%      { transform: translateY(calc(var(--sw) * -0.45)); }
  50%      { transform: translateY(calc(var(--sw) * 0.4)); }
  75%      { transform: translateY(calc(var(--sw) * -0.25)); }
}

/* 手机端：弦端收一点，避免溢出过多 */
@media (max-width: 720px) {
  .soundhole-strings i { left: -6%; right: -6%; }
}

/* 减少动效：琴弦不颤动 */
@media (prefers-reduced-motion: reduce) {
  .guide-soundhole:hover .soundhole-strings i { animation: none; }
}

/* ================================================================
   吉他音孔 · 辐射音符（从音孔中心 360° 向外冒出）
   14 个音符沿 --a 角度均匀分布，用「旋转坐标系」沿径向飞出
   ---------------------------------------------------------------- */
.soundhole-notes {
  position: absolute;
  inset: 0;
  z-index: 5;                 /* 在琴弦、文字之上，声波之下 */
  pointer-events: none;
}
.soundhole-notes i {
  position: absolute;
  left: 50%;
  top: 50%;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
  color: var(--red);
  text-shadow: 0 0 6px rgba(210, 162, 76, 0.55);
  opacity: 0;
  will-change: transform, opacity;
  transform: rotate(var(--a)) translateX(8px) rotate(calc(-1 * var(--a)));
  animation: note-burst 3.4s ease-out infinite;
}
/* 三色循环 + 大小错落 */
.soundhole-notes i:nth-child(3n + 2) { color: var(--gold); }
.soundhole-notes i:nth-child(3n + 3) { color: var(--bamboo); }
.soundhole-notes i:nth-child(4n)     { font-size: 19px; }
.soundhole-notes i:nth-child(7n)     { font-size: 12px; }
/* 奇偶两档飞行距离，形成层次感（扩大辐射范围） */
.soundhole-notes i:nth-child(even) { --d: 150px; }
.soundhole-notes i:nth-child(odd)  { --d: 126px; }
/* 14 个音符错峰冒出（每 0.24s 一个，负延迟让首屏即有音符） */
.soundhole-notes i:nth-child(1)  { animation-delay: -0.1s; }
.soundhole-notes i:nth-child(2)  { animation-delay: -0.34s; }
.soundhole-notes i:nth-child(3)  { animation-delay: -0.58s; }
.soundhole-notes i:nth-child(4)  { animation-delay: -0.82s; }
.soundhole-notes i:nth-child(5)  { animation-delay: -1.06s; }
.soundhole-notes i:nth-child(6)  { animation-delay: -1.30s; }
.soundhole-notes i:nth-child(7)  { animation-delay: -1.54s; }
.soundhole-notes i:nth-child(8)  { animation-delay: -1.78s; }
.soundhole-notes i:nth-child(9)  { animation-delay: -2.02s; }
.soundhole-notes i:nth-child(10) { animation-delay: -2.26s; }
.soundhole-notes i:nth-child(11) { animation-delay: -2.50s; }
.soundhole-notes i:nth-child(12) { animation-delay: -2.74s; }
.soundhole-notes i:nth-child(13) { animation-delay: -2.98s; }
.soundhole-notes i:nth-child(14) { animation-delay: -3.22s; }
/* 中心出现 → 沿 --a 方向径向外飞，末尾反向旋转抵消保持音符直立 */
@keyframes note-burst {
  0% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(6px) rotate(calc(-1 * var(--a))) scale(0.4);
  }
  15% { opacity: 0.95; }
  70% { opacity: 0.7; }
  100% {
    opacity: 0;
    transform: rotate(var(--a)) translateX(var(--d)) rotate(calc(-1 * var(--a) + 20deg)) scale(1.05);
  }
}

/* 手机端：音符小一点、飞得近一点，配合 96px 小音孔 */
@media (max-width: 720px) {
  .soundhole-notes i { font-size: 13px; }
  .soundhole-notes i:nth-child(4n) { font-size: 16px; }
  .soundhole-notes i:nth-child(even) { --d: 108px; }
  .soundhole-notes i:nth-child(odd)  { --d: 90px; }
}

/* 减少动效：不冒出音符，避免静态堆积 */
@media (prefers-reduced-motion: reduce) {
  .soundhole-notes i { animation: none; opacity: 0; }
}

/* ================================================================
   顶部站名「醉文的音乐小站」· 逐字像音符一样跳入画面
   错峰 90ms · 奇偶字反向旋转 · 回弹缓动
   ---------------------------------------------------------------- */
.brand-name {
  display: inline-flex;
  align-items: baseline;
}
.brand-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(-0.9em) rotate(-18deg) scale(0.6);
  animation: brand-note-in 0.62s cubic-bezier(0.34, 1.56, 0.64, 1) both;
  animation-delay: calc(0.15s + var(--i) * 0.09s);
  will-change: transform, opacity;
}
/* 偶数字从另一侧弹入，形成左右摇摆的音符感 */
.brand-char:nth-child(even) { animation-name: brand-note-in-alt; }
@keyframes brand-note-in {
  0%   { opacity: 0; transform: translateY(-0.9em) rotate(-18deg) scale(0.6); }
  60%  { opacity: 1; transform: translateY(0.12em) rotate(6deg) scale(1.12); }
  80%  { transform: translateY(-0.05em) rotate(-3deg) scale(0.97); }
  100% { opacity: 1; transform: none; }
}
@keyframes brand-note-in-alt {
  0%   { opacity: 0; transform: translateY(-0.9em) rotate(18deg) scale(0.6); }
  60%  { opacity: 1; transform: translateY(0.12em) rotate(-6deg) scale(1.12); }
  80%  { transform: translateY(-0.05em) rotate(3deg) scale(0.97); }
  100% { opacity: 1; transform: none; }
}

/* 减少动效：文字直接显示，不弹跳（同时兜底防止透明不可见） */
@media (prefers-reduced-motion: reduce) {
  .brand-char {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
