/* =========================================================
   歌词解读库 · Lyric Study  ·  样式表
   主题：温暖怀旧 · 时间 · 羁绊（支持多歌曲与每曲主题配色）
   ========================================================= */

:root {
  --paper: #faf4ea;
  --paper-2: #f3ead9;
  --surface: #fffdf8;
  --surface-2: #fbf4e9;
  --ink: #3c332b;
  --ink-soft: #6b5f52;
  --ink-faint: #9b8c7b;
  --line: #e7dac6;
  --rose: #c2685a;
  --rose-soft: #e6b3a8;
  --sage: #6f927c;
  --gold: #c39a4e;
  --gold-soft: #e8d3a0;
  --shadow: 0 10px 30px -18px rgba(90, 60, 40, 0.35);
  --shadow-sm: 0 4px 14px -10px rgba(90, 60, 40, 0.4);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1080px;
  --font-jp: "Hiragino Mincho ProN", "Yu Mincho", "Noto Serif JP", "Songti SC", "SimSun", serif;
  --font-sans: "PingFang SC", "Microsoft YaHei", "Hiragino Sans", "Noto Sans CJK SC", system-ui, sans-serif;
  --font-serif: "Noto Serif SC", "Songti SC", "Georgia", "Times New Roman", serif;
  --topbar-h: 58px;
  --secnav-h: 46px;
}

[data-theme="dark"] {
  --paper: #171310;
  --paper-2: #1f1a15;
  --surface: #241e18;
  --surface-2: #2b241d;
  --ink: #ede3d4;
  --ink-soft: #c3b5a2;
  --ink-faint: #8d7f6e;
  --line: #3a3027;
  --rose: #e09384;
  --rose-soft: #8a4f45;
  --sage: #9cc0a8;
  --gold: #d8b56b;
  --gold-soft: #6a562f;
  --shadow: 0 14px 36px -20px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 6px 18px -12px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + var(--secnav-h) + 14px); }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(194, 104, 90, 0.10), transparent 60%),
    radial-gradient(1000px 500px at -10% 10%, rgba(111, 146, 124, 0.10), transparent 55%),
    var(--paper);
  line-height: 1.85;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- 阅读进度条 ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: linear-gradient(90deg, var(--rose), var(--gold));
  z-index: 100; transition: width .12s ease-out;
}

/* ---------- 顶部工具条 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: saturate(140%) blur(10px);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); gap: 10px; }
.brand { font-family: var(--font-serif); font-weight: 700; letter-spacing: .04em; color: var(--ink); display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.brand small { color: var(--ink-faint); font-weight: 400; font-size: .72em; letter-spacing: 0; }
.brand:hover { text-decoration: none; }
.tools { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn {
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); padding: 7px 13px; border-radius: 999px;
  font-size: .82rem; cursor: pointer; transition: .2s; font-family: var(--font-sans); white-space: nowrap;
}
.btn:hover { border-color: var(--rose); color: var(--rose); }

/* ---------- 吸顶章节导航 ---------- */
.secnav {
  position: sticky; top: var(--topbar-h); z-index: 85;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.secnav-inner {
  display: flex; gap: 8px; padding: 8px 20px; overflow-x: auto; scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.secnav-inner::-webkit-scrollbar { height: 0; }
.secnav .pill {
  white-space: nowrap; text-decoration: none; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-soft); padding: 6px 14px;
  border-radius: 999px; font-size: .85rem; transition: .18s; flex-shrink: 0;
}
.secnav .pill:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }
.secnav .pill.active { background: var(--rose); color: #fff; border-color: var(--rose); }

/* ---------- 每首歌主题配色 ---------- */
[data-song-theme="sage"]   { --rose:#5f8a6e; --rose-soft:#bcd3c2; --gold:#c9a14a; --gold-soft:#e7d3a0; --sage:#4f7d63; }
[data-song-theme="amber"]  { --rose:#c97b3e; --rose-soft:#e9c39c; --gold:#b8862f; --gold-soft:#e8cf9c; --sage:#7a8a4f; }
[data-song-theme="indigo"] { --rose:#5b6fb0; --rose-soft:#b9c2e6; --gold:#7c7fc0; --gold-soft:#c9c4e8; --sage:#5f7fb0; }
[data-song-theme="plum"]   { --rose:#a8557f; --rose-soft:#e3b9cf; --gold:#b07bb0; --gold-soft:#e2c4e6; --sage:#9a5f8a; }

/* ---------- Hero（通用） ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 76px 0 60px;
  background:
    linear-gradient(180deg, rgba(194,104,90,.10), transparent 70%),
    linear-gradient(120deg, var(--paper-2), var(--paper));
  border-bottom: 1px solid var(--line);
}
.petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.petal {
  position: absolute; top: -24px; width: 13px; height: 13px;
  background: radial-gradient(circle at 30% 30%, #f7c9c0, var(--rose-soft));
  border-radius: 12px 1px 12px 1px; opacity: .8;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-10vh) translateX(0) rotate(0deg); }
  100% { transform: translateY(112vh) translateX(40px) rotate(360deg); }
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.kicker {
  display: inline-block; font-size: .76rem; letter-spacing: .28em;
  color: var(--rose); border: 1px solid var(--rose-soft);
  padding: 5px 15px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 6vw, 3.8rem);
  margin: 0 0 6px; line-height: 1.12; letter-spacing: .04em;
}
.hero h1 .jp { font-family: var(--font-jp); display: block; color: var(--rose); font-size: .56em; letter-spacing: .1em; margin-top: 10px; }
.hero .artist { color: var(--ink-soft); margin: 14px 0 0; font-size: 1rem; }
.meta-chips { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin-top: 22px; }
.chip {
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft);
  padding: 6px 13px; border-radius: 999px; font-size: .8rem; box-shadow: var(--shadow-sm);
}
.chip b { color: var(--ink); font-weight: 600; }

/* 歌曲视图内的返回面包屑 */
.crumb {
  display: inline-block; font-size: .85rem; color: var(--ink-soft);
  border: 1px solid var(--line); background: var(--surface);
  padding: 5px 13px; border-radius: 999px; margin-bottom: 18px;
}
.crumb:hover { border-color: var(--rose); color: var(--rose); text-decoration: none; }
.song-badge {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center;
  font-size: 2rem; margin: 0 auto 14px;
  background: color-mix(in srgb, var(--rose) 16%, var(--surface));
  box-shadow: var(--shadow-sm);
}

/* ---------- 通用 section ---------- */
section { padding: 58px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
.sec-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 8px; }
.sec-no {
  font-family: var(--font-serif); font-size: .85rem; color: var(--gold);
  border: 1px solid var(--gold-soft); border-radius: 8px; padding: 2px 9px; white-space: nowrap;
}
.sec-head h2 { font-family: var(--font-serif); font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0; letter-spacing: .04em; }
.sec-sub { color: var(--ink-soft); margin: 4px 0 28px; max-width: 760px; }

/* ---------- 歌曲信息卡 ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.info-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.info-card .k { color: var(--ink-faint); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; }
.info-card .v { font-size: 1.02rem; margin-top: 6px; font-weight: 600; word-break: break-word; }
.info-card .v.jp { font-family: var(--font-jp); }
.listen-note {
  margin-top: 20px; padding: 15px 17px; border-left: 3px solid var(--rose);
  background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--ink-soft);
}
.listen-note b { color: var(--rose); }

/* ---------- 概念地图 ---------- */
.map-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.map-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow-sm);
  transition: transform .25s, border-color .25s; overflow: hidden;
}
.map-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--rose), var(--gold));
}
.map-card:hover { transform: translateY(-4px); border-color: var(--rose-soft); }
.map-card .ic { font-size: 1.5rem; }
.map-card h3 { margin: 8px 0 6px; font-size: 1.05rem; font-family: var(--font-serif); }
.map-card p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* ---------- 情绪推进时间轴 ---------- */
.arc { position: relative; margin-top: 10px; }
.arc-track { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; }
.arc-line { position: absolute; top: 26px; left: 5%; right: 5%; height: 3px;
  background: linear-gradient(90deg, var(--rose-soft), var(--gold-soft)); border-radius: 3px; }
.arc-node { position: relative; text-align: center; padding: 0 6px; }
.arc-dot {
  width: 18px; height: 18px; border-radius: 50%; margin: 18px auto 14px;
  background: var(--surface); border: 3px solid var(--rose); box-shadow: var(--shadow-sm);
}
.arc-node .ph { font-family: var(--font-serif); font-weight: 700; color: var(--rose); }
.arc-node h4 { margin: 6px 0 4px; font-size: .95rem; }
.arc-node .mood { font-size: .76rem; color: var(--gold); letter-spacing: .08em; }
.arc-node p { font-size: .82rem; color: var(--ink-soft); margin: 6px 0 0; }

/* ---------- 歌词精读 ---------- */
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; align-items: center; }
.line-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; margin-bottom: 28px; }
.line-list button {
  font-family: var(--font-serif); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-soft); border-radius: var(--radius-sm); padding: 8px 0; cursor: pointer;
  transition: .18s; font-size: .9rem;
}
.line-list button:hover { border-color: var(--rose); color: var(--rose); }
.line-list button.active { background: var(--rose); color: #fff; border-color: var(--rose); }

.lyric {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 14px; box-shadow: var(--shadow-sm); overflow: hidden;
  scroll-margin-top: calc(var(--topbar-h) + var(--secnav-h) + 18px);
}
.lyric .head {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center;
  padding: 15px 17px; cursor: pointer; transition: background .2s;
}
.lyric .head:hover { background: var(--surface-2); }
.lyric .no {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-serif); font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--rose), var(--gold)); font-size: 1rem; flex-shrink: 0;
}
.lyric .jp { font-family: var(--font-jp); font-size: 1.12rem; line-height: 1.55; overflow-wrap: anywhere; }
.lyric .zh { color: var(--ink-soft); font-size: .92rem; margin-top: 3px; overflow-wrap: anywhere; }
.lyric .sec-tag {
  font-size: .72rem; color: var(--sage); border: 1px solid var(--sage); border-radius: 999px;
  padding: 3px 10px; white-space: nowrap; align-self: start; flex-shrink: 0;
}
.lyric .toggle { font-size: 1.2rem; color: var(--ink-faint); transition: transform .25s; }
.lyric.open .toggle { transform: rotate(45deg); color: var(--rose); }

.lyric .body {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
  border-top: 1px solid transparent;
}
.lyric.open .body { border-top-color: var(--line); }
.lyric .body-inner { padding: 16px 18px 20px; }
.romaji { font-style: italic; color: var(--ink-faint); font-size: .9rem; margin-bottom: 16px;
  border-left: 2px solid var(--gold-soft); padding-left: 12px; overflow-wrap: anywhere; }

.block-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 18px; }
.block {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 12px; font-size: .84rem;
}
.block b { color: var(--rose); font-family: var(--font-jp); }

.sub { font-family: var(--font-serif); font-weight: 700; color: var(--ink); margin: 18px 0 8px;
  display: flex; align-items: center; gap: 8px; font-size: 1rem; }
.sub::before { content: "❖"; color: var(--gold); }

.grammar-item, .vocab-item {
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; margin-bottom: 10px;
}
.grammar-item .pat { font-weight: 700; color: var(--rose); font-family: var(--font-jp); }
.grammar-item .lv { font-size: .72rem; color: var(--gold); border: 1px solid var(--gold-soft);
  border-radius: 6px; padding: 1px 7px; margin-left: 8px; }
.grammar-item p { margin: 6px 0 0; color: var(--ink-soft); font-size: .9rem; }
.note {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line); border-left: 4px solid var(--rose);
  border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 8px; color: var(--ink);
}
.note .label { font-family: var(--font-serif); color: var(--rose); font-weight: 700; font-size: .85rem; }

/* ---------- 语法考点 ---------- */
.grammar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.grammar-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.grammar-card .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grammar-card .pat { font-family: var(--font-jp); font-weight: 700; color: var(--rose); font-size: 1.1rem; }
.grammar-card .lv { font-size: .72rem; color: var(--gold); border: 1px solid var(--gold-soft);
  border-radius: 6px; padding: 1px 8px; }
.grammar-card .mean { color: var(--ink); font-weight: 600; margin: 10px 0 4px; }
.grammar-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: .9rem; }
.grammar-card .ex { margin-top: 10px; font-size: .86rem; background: var(--surface-2);
  border-radius: var(--radius-sm); padding: 8px 12px; }
.grammar-card .ex .jp { font-family: var(--font-jp); color: var(--ink); }
.grammar-card .ex .zh { color: var(--ink-faint); }
.grammar-card .ex + .ex { margin-top: 6px; }
.g-row { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: .86rem; }
.g-label {
  flex: 0 0 auto; font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  border-radius: 6px; padding: 2px 8px; margin-top: 1px;
}
.g-body { color: var(--ink-soft); line-height: 1.7; word-break: break-word; }
.g-connect .g-label { color: var(--gold); border: 1px solid var(--gold-soft); background: transparent; }
.g-connect .g-body { font-family: var(--font-jp); color: var(--ink); }
.g-compare .g-label { color: #4a7fb5; border: 1px solid rgba(74,127,181,.35); }
.g-pitfall .g-label { color: #c25b4e; border: 1px solid rgba(194,91,78,.35); }
[data-theme="dark"] .g-compare .g-label { color: #8ab8e8; border-color: rgba(138,184,232,.35); }
[data-theme="dark"] .g-pitfall .g-label { color: #e8938a; border-color: rgba(232,147,138,.35); }

/* ---------- 词汇表 ---------- */
.vocab-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.vocab { width: 100%; border-collapse: collapse; background: var(--surface);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .92rem; }
table.vocab th, table.vocab td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.vocab th { background: var(--surface-2); font-family: var(--font-serif); color: var(--ink-soft); font-weight: 600; letter-spacing: .05em; white-space: nowrap; }
table.vocab tr:last-child td { border-bottom: none; }
table.vocab .w { font-family: var(--font-jp); font-weight: 700; }
table.vocab .rd { color: var(--rose); font-size: .85rem; white-space: nowrap; }
table.vocab .note { color: var(--ink-soft); }

/* ---------- 测验 ---------- */
.quiz-q { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.quiz-q .qn { font-family: var(--font-serif); color: var(--gold); font-size: .82rem; margin-bottom: 8px; }
.quiz-q .qtype {
  display: inline-block; margin-left: 8px; padding: 1px 10px; border-radius: 999px;
  font-size: .72rem; font-family: var(--font-sans); letter-spacing: .08em;
  color: var(--rose); background: rgba(200, 100, 120, .08);
  border: 1px solid rgba(200, 100, 120, .28); vertical-align: 1px;
}
.quiz-q .qtext { font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; overflow-wrap: anywhere; }
.quiz-opt {
  display: block; width: 100%; text-align: left; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink); border-radius: var(--radius-sm);
  padding: 11px 14px; margin-bottom: 8px; cursor: pointer; transition: .18s; font-family: var(--font-sans); font-size: .95rem; overflow-wrap: anywhere;
}
.quiz-opt:hover { border-color: var(--rose); }
.quiz-opt.sel-right { background: rgba(111,146,124,.22); border-color: var(--sage); color: var(--ink); }
.quiz-opt.sel-wrong { background: rgba(194,104,90,.18); border-color: var(--rose); }
.quiz-opt.correct-hint { border-color: var(--sage); }
.quiz-feedback { margin-top: 12px; font-size: .9rem; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border-left: 3px solid var(--sage); display: none; overflow-wrap: anywhere; }
.quiz-feedback.show { display: block; }
.quiz-progress { color: var(--ink-faint); font-size: .85rem; margin-bottom: 16px; }
.quiz-result { text-align: center; margin-top: 18px; font-family: var(--font-serif); font-size: 1.2rem; color: var(--rose); }

/* ---------- 结语 / 页脚 ---------- */
.closing { text-align: center; }
.closing p { max-width: 680px; margin: 0 auto 14px; color: var(--ink-soft); }
.closing .big { font-family: var(--font-serif); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--ink); }
footer { text-align: center; padding: 38px 20px 56px; color: var(--ink-faint); font-size: .82rem; }
footer a { color: var(--ink-faint); }

/* ---------- 回到顶部 ---------- */
#toTop {
  position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--rose); color: #fff; border: none; cursor: pointer; font-size: 1.2rem;
  box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 80;
}
#toTop.show { opacity: 1; pointer-events: auto; }
#toTop:hover { transform: translateY(-3px); }

/* =========================================================
   首页 · 歌单
   ========================================================= */
.home-hero { padding: 64px 0 52px; }
.home-stats { margin-top: 22px; }
.home-search { margin: 26px auto 0; max-width: 460px; }
.home-search input {
  width: 100%; font-family: var(--font-sans); font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 12px 18px; box-shadow: var(--shadow-sm); outline: none; transition: .2s;
}
.home-search input:focus { border-color: var(--rose); }
.home-search input::placeholder { color: var(--ink-faint); }
.home-head { margin-top: 50px; }
.song-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.song-card {
  --accent: var(--rose);
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px; cursor: pointer;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  overflow: hidden; box-shadow: var(--shadow-sm); text-align: left; width: 100%;
  font-family: inherit; color: inherit;
}
.song-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 55%, #ffffff));
}
.song-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.song-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.song-emoji {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 14px;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
}
.song-card h3 { margin: 0 0 2px; font-family: var(--font-serif); font-size: 1.25rem; line-height: 1.3; }
.song-card .jp { font-family: var(--font-jp); color: var(--accent); font-size: .92rem; }
.song-card .artist { color: var(--ink-soft); font-size: .9rem; margin: 8px 0 0; }
.song-card .desc { color: var(--ink-soft); font-size: .88rem; margin: 10px 0 0; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.song-card .tag { display: inline-block; margin-top: 12px; font-size: .76rem; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); border-radius: 999px; padding: 3px 10px; }
.song-card .meta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; color: var(--ink-faint); font-size: .76rem; }
.song-card .meta-row span b { color: var(--ink-soft); font-weight: 600; }
.empty-hint { text-align: center; color: var(--ink-faint); margin-top: 26px; }

/* =========================================================
   响应式
   ========================================================= */
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .brand small { display: none; }
  .hero { padding: 56px 0 44px; }
  .home-hero { padding: 48px 0 40px; }
  section { padding: 42px 0; }
  .sec-sub { margin-bottom: 22px; }

  .lyric .head { grid-template-columns: 42px 1fr; gap: 12px; padding: 13px 14px; }
  .lyric .no { width: 38px; height: 38px; font-size: .95rem; }
  .lyric .jp { font-size: 1.02rem; }
  .lyric .sec-tag { grid-column: 2; justify-self: start; margin-top: 2px; }
  .lyric .toggle { display: none; }

  .arc-track { grid-auto-flow: row; }
  .arc-line { display: none; }
  .arc-node { display: grid; grid-template-columns: 36px 1fr; gap: 8px 14px; text-align: left; align-items: start; padding: 14px 0; border-bottom: 1px dashed var(--line); }
  .arc-dot { margin: 0; grid-row: 1 / span 4; align-self: center; }
  .arc-node .ph { font-size: .85rem; color: var(--ink-faint); white-space: nowrap; }
  .arc-node h4 { margin: 2px 0; font-size: .95rem; line-height: 1.45; word-break: break-word; }
  .arc-node .mood { font-size: .78rem; margin-top: 2px; }
  .arc-node p { font-size: .84rem; line-height: 1.7; margin-top: 6px; word-break: break-word; }

  /* 词汇表：窄屏转为堆叠卡片 */
  .vocab-wrap { overflow: visible; }
  table.vocab, table.vocab tbody, table.vocab tr, table.vocab td { display: block; width: 100%; }
  table.vocab thead { display: none; }
  table.vocab tr { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
  table.vocab td { border: none; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: baseline; }
  table.vocab tr td:last-child { border-bottom: none; }
  table.vocab td::before { content: attr(data-label); font-family: var(--font-serif); color: var(--ink-faint); font-size: .76rem; min-width: 56px; flex-shrink: 0; }
  table.vocab .rd { white-space: normal; }

  .quiz-q { padding: 16px 16px; }
  .grammar-card { padding: 14px 15px; }
}

@media (max-width: 380px) {
  .wrap { padding: 0 14px; }
  .lyric .head { grid-template-columns: 38px 1fr; }
}
