/* RLM · 现代乐谱设计系统 */
:root {
  --paper: #f2f0e9;
  --paper-raised: #faf8f2;
  --paper-deep: #e8e5dc;
  --ink: #191a17;
  --ink-soft: #505148;
  --muted: #77766d;
  --faint: #a3a094;
  --line: #cbc7bb;
  --line-soft: #dfdcd2;
  --accent: #df5435;
  --accent-dark: #bb3f25;
  --accent-soft: #f5d8cc;
  --serif: Georgia, "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  --mono: Consolas, "SFMono-Regular", "Courier New", monospace;
  --maxw: 1360px;
  --prose: 760px;
  --shadow: 0 24px 60px rgba(39, 35, 25, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .022;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
::selection { background: var(--accent-soft); color: var(--ink); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: fixed; left: -9999px; top: 12px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 18px; }
.skip:focus { left: 12px; }

.reading-progress { position: fixed; z-index: 120; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; }
.reading-progress span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .1s linear; }

/* 页眉 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 240, 233, .88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header .inner { max-width: var(--maxw); height: 90px; margin: auto; padding: 0 44px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; margin-right: auto; }
.brand-mark { font-size: 28px; font-weight: 900; letter-spacing: -.075em; line-height: 1; }
.brand-mark > span { color: var(--accent); }
.brand-text { border-left: 1px solid var(--line); padding-left: 18px; font-family: var(--serif); font-size: 12px; letter-spacing: .13em; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a { position: relative; padding: 33px 0 29px; color: var(--muted); text-decoration: none; font-size: 12px; letter-spacing: .06em; }
.site-nav a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: 22px; height: 2px; background: var(--accent); transition: left .25s, right .25s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { left: 0; right: 0; }
.header-search { display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: transparent; border-radius: 30px; padding: 7px 10px 7px 13px; cursor: pointer; transition: border-color .2s, background .2s; }
.header-search > span { font-size: 21px; line-height: 1; }
.header-search kbd { border: 0; border-left: 1px solid var(--line); padding-left: 8px; font: 10px var(--mono); color: var(--muted); }
.header-search:hover { border-color: var(--ink); background: var(--paper-raised); }

.page { max-width: var(--maxw); min-height: 70vh; margin: auto; padding: 0 44px 110px; outline: none; }
.page > * { animation: page-in .55s cubic-bezier(.2,.75,.25,1) both; }

/* 通用 */
.eyebrow { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--accent); font: 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 25px; height: 1px; background: currentColor; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.section-head h2 { margin: 0; font-family: var(--serif); font-size: clamp(27px, 3vw, 36px); font-weight: 400; letter-spacing: -.025em; line-height: 1.3; }
.section-head h2 span { color: var(--accent); }
.section-head p { max-width: 340px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.section-link { flex: none; color: var(--muted); font-size: 11px; text-decoration: none; border-bottom: 1px solid var(--line); transition: color .2s, border-color .2s; }
.section-link:hover { color: var(--accent); border-color: var(--accent); }
.link-btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-bottom: 1px solid var(--line); padding: 3px 0; background: none; color: var(--muted); font-size: 12px; text-decoration: none; cursor: pointer; transition: color .2s, border-color .2s; }
.link-btn:hover { color: var(--accent); border-color: var(--accent); }
.primary-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--accent); background: var(--accent); color: #fff; padding: 13px 21px; text-decoration: none; font-size: 12px; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.primary-btn:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(223,84,53,.2); }
.text-btn { border: 0; background: none; padding: 4px 0; color: var(--muted); font-size: 12px; cursor: pointer; }
.text-btn:hover { color: var(--accent); }
.crumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 34px; color: var(--muted); font: 10px var(--mono); letter-spacing: .08em; }
.crumb a { text-decoration: none; border-bottom: 1px solid var(--line); }
.crumb a:hover { color: var(--accent); border-color: var(--accent); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 55ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* 首页主视觉 */
.home-hero { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 565px; border-bottom: 1px solid var(--line); }
.hero-copy { position: relative; padding: 72px 0 58px; }
.hero-copy > * { animation: rise-in .8s cubic-bezier(.2,.75,.25,1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .08s; }
.hero-copy > *:nth-child(3) { animation-delay: .16s; }
.hero-copy > *:nth-child(4) { animation-delay: .24s; }
.hero-copy h1 { margin: 30px 0 28px; font-family: var(--serif); font-size: clamp(54px, 6.2vw, 88px); font-weight: 400; line-height: 1.1; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--accent); font-weight: 400; }
.hero-lede { max-width: 475px; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 2.05; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 30px; }
.hero-scroll { position: absolute; left: 0; bottom: 24px; color: var(--muted); font: 9px var(--mono); letter-spacing: .14em; }
.hero-art { position: relative; display: flex; align-items: center; justify-content: center; border-left: 1px solid var(--line); overflow: hidden; }
.staff { position: absolute; inset: -20%; background: repeating-linear-gradient(to bottom, transparent 0 29px, rgba(160,156,144,.5) 30px 31px); transform: rotate(-10deg) translateY(var(--staff-y, 0px)); transition: transform .1s linear; }
.record-wrap { position: relative; width: min(31vw, 390px); aspect-ratio: 1; animation: record-float 6s ease-in-out infinite; }
.record { position: absolute; inset: 0; border-radius: 50%; background: repeating-radial-gradient(circle at center, #2d2e29 0 2px, #20211d 3px 5px, #35362f 6px 7px); box-shadow: 20px 28px 50px rgba(30,29,23,.24); animation: record-spin 24s linear infinite; }
.record::before { content: ""; position: absolute; inset: 30.5%; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.record::after { content: ""; position: absolute; width: 5px; height: 5px; left: 49%; top: 5%; border-radius: 50%; background: rgba(255,255,255,.4); box-shadow: 0 340px 0 rgba(255,255,255,.16); }
.record-hole { position: absolute; z-index: 2; left: 49.2%; top: 49.2%; width: 1.6%; height: 1.6%; border-radius: 50%; background: var(--paper); }
.record-label { position: absolute; z-index: 2; inset: 35%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; font: 9px var(--mono); letter-spacing: .08em; transform: rotate(-10deg); pointer-events: none; }
.record-label b { margin: 5px 0; font-family: var(--serif); font-size: 20px; font-weight: 400; }
.record-link { position: absolute; inset: 0; z-index: 3; border-radius: 50%; }
.record-link:hover { outline: none; }
.record-link:focus-visible { outline-offset: 8px; }
.floating-note { position: absolute; z-index: 2; color: var(--accent); font-family: var(--serif); opacity: .65; animation: note-drift 5s ease-in-out infinite; pointer-events: none; }
.floating-note.n1 { left: 12%; top: 17%; font-size: 26px; }
.floating-note.n2 { right: 10%; top: 24%; font-size: 18px; animation-delay: -2s; }
.floating-note.n3 { left: 15%; bottom: 20%; font-size: 19px; animation-delay: -3.5s; }
.art-caption { position: absolute; right: 10px; bottom: 27px; text-align: right; }
.art-caption small { display: block; margin-bottom: 6px; color: var(--muted); font: 8px var(--mono); letter-spacing: .14em; }
.art-caption strong { font-family: var(--serif); font-size: 13px; font-weight: 400; }

/* 搜索 */
.home-search { position: relative; padding: 36px 0 42px; }
.search-row { display: grid; grid-template-columns: 175px 1fr; gap: 30px; align-items: center; }
.search-label { font-family: var(--serif); font-size: 16px; }
.search-label small { display: block; margin-top: 7px; color: var(--muted); font: 8px var(--mono); letter-spacing: .13em; }
.searchbar { display: flex; align-items: stretch; border-bottom: 2px solid var(--ink); transition: border-color .25s; }
.searchbar:focus-within { border-color: var(--accent); }
.searchbar .search-symbol { display: grid; place-items: center; width: 34px; color: var(--accent); font-size: 23px; }
.searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 14px 5px; color: var(--ink); font-family: var(--serif); font-size: 19px; }
.searchbar input::placeholder { color: var(--faint); }
.searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.searchbar button { border: 0; background: var(--accent); color: #fff; padding: 0 25px; font-size: 12px; cursor: pointer; transition: background .2s, padding .2s; }
.searchbar button:hover { background: var(--accent-dark); padding-left: 29px; padding-right: 29px; }
.quick-search { grid-column: 2; display: flex; flex-wrap: wrap; gap: 17px; align-items: center; margin-top: 13px; color: var(--muted); font-size: 10px; }
.quick-search a, .quick-search button { border: 0; border-bottom: 1px solid transparent; padding: 0; background: none; color: var(--muted); text-decoration: none; cursor: pointer; }
.quick-search a:hover, .quick-search button:hover { color: var(--accent); border-color: var(--accent); }

/* 数字与时期 */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 26px 25px; border-right: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--serif); font-size: 32px; font-weight: 400; line-height: 1.2; }
.stat span { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.home-section { padding-top: 82px; }
.era-grid { display: grid; grid-template-columns: repeat(9,1fr); border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.era-card { position: relative; min-height: 132px; padding: 20px 12px; border-right: 1px solid var(--line); text-decoration: none; overflow: hidden; transition: color .25s; }
.era-card:last-child { border-right: 0; }
.era-card::before { content: ""; position: absolute; inset: 100% 0 0; background: var(--accent); transition: inset .35s cubic-bezier(.2,.75,.25,1); }
.era-card:hover { color: #fff; }
.era-card:hover::before { inset: 0; }
.era-card > * { position: relative; z-index: 1; }
.era-card small { display: block; margin-bottom: 24px; color: var(--muted); font: 8px var(--mono); transition: color .25s; }
.era-card:hover small { color: #ffdcd3; }
.era-card strong { display: block; font-family: var(--serif); font-size: 14px; font-weight: 400; }
.era-card .n { display: block; margin-top: 5px; color: var(--muted); font: 9px var(--mono); transition: color .25s; }
.era-card:hover .n { color: #ffdcd3; }
.era-card .era-arrow { position: absolute; right: 10px; bottom: 15px; opacity: 0; transform: translate(-5px,5px); transition: .25s; }
.era-card:hover .era-arrow { opacity: 1; transform: none; }

/* 精选卡片 */
.feature-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 18px; }
.feature-card { position: relative; min-height: 290px; padding: 27px; border: 1px solid var(--line); overflow: hidden; text-decoration: none; transition: transform .3s, box-shadow .3s, border-color .3s; }
.feature-card:hover { transform: translateY(-6px); border-color: #aaa598; box-shadow: var(--shadow); }
.feature-card.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.feature-tag { position: relative; z-index: 2; color: var(--accent); font: 9px var(--mono); letter-spacing: .13em; }
.feature-card h3 { position: relative; z-index: 2; margin: 95px 0 12px; font-family: var(--serif); font-size: 27px; font-weight: 400; line-height: 1.35; }
.feature-card p { position: relative; z-index: 2; max-width: 340px; margin: 0; color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.85; }
.feature-card.primary p { color: #b9baaf; }
.feature-arrow { position: absolute; right: 25px; bottom: 23px; color: var(--accent); transition: transform .25s; }
.feature-card:hover .feature-arrow { transform: translate(4px,-4px); }
.mini-record { position: absolute; width: 190px; height: 190px; right: -45px; top: -45px; border-radius: 50%; background: repeating-radial-gradient(circle,#2b2c27 0 3px,#42433b 4px 5px); opacity: .45; transition: transform .7s; }
.feature-card:hover .mini-record { transform: rotate(70deg) scale(1.08); }
.mini-record::after { content: ""; position: absolute; inset: 38%; border-radius: 50%; background: var(--accent); }
.feature-card:not(.primary) .mini-record { background: repeating-radial-gradient(circle,#d5d1c5 0 3px,#bcb7aa 4px 5px); opacity: .5; }
.genre-cloud { display: flex; flex-wrap: wrap; gap: 9px; }
.genre-chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 30px; color: var(--ink-soft); text-decoration: none; font-size: 11px; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.genre-chip span { color: var(--faint); font: 9px var(--mono); }
.genre-chip:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.genre-chip:hover span { color: #aaa99f; }

/* 作品列表 */
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; align-items: baseline; gap: 12px; padding: 16px 3px; text-decoration: none; transition: padding .2s, color .2s; }
.toc a:hover { padding-left: 9px; color: var(--accent); }
.toc .i { flex: 0 0 27px; color: var(--faint); font: 10px var(--mono); }
.toc .t { font-family: var(--serif); font-size: 17px; line-height: 1.55; }
.toc .d { flex: 1; min-width: 20px; border-bottom: 1px dotted var(--line); transform: translateY(-4px); }
.toc .a { color: var(--muted); font-size: 11px; white-space: nowrap; }
.random-note { margin: 18px 0 0; color: var(--muted); font-family: var(--serif); font-size: 12px; }
.random-list.is-changing { animation: list-refresh .45s; }

/* 列表页头与工具 */
.page-head { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; padding: 65px 0 42px; }
.page-head h1 { margin: 17px 0 0; font-family: var(--serif); font-size: clamp(43px,5vw,66px); font-weight: 400; line-height: 1.15; letter-spacing: -.05em; }
.page-head h1 em { color: var(--accent); font-weight: 400; }
.page-head .sub { max-width: 450px; margin: 0 0 5px; color: var(--muted); font-family: var(--serif); font-size: 13px; line-height: 2; }
.page-search { margin-bottom: 32px; }
.page-search .searchbar { max-width: none; }
.page-search .searchbar input { font-size: 18px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 28px; padding: 17px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toolbar label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.toolbar select { min-width: 155px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 4px 22px 5px 0; outline: none; font-family: var(--serif); font-size: 13px; cursor: pointer; }
.toolbar select:focus { border-color: var(--accent); }
.toolbar .count { margin-left: auto; padding-bottom: 5px; color: var(--muted); font: 10px var(--mono); }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 15px 0 5px; }
.active-filters > span { margin-right: 5px; color: var(--muted); font-size: 10px; }
.filter-pill { display: inline-flex; gap: 10px; padding: 5px 10px; border-radius: 20px; background: var(--accent-soft); color: var(--accent-dark); text-decoration: none; font-size: 10px; }
.filter-pill:hover { background: var(--accent); color: #fff; }
.clear-filters { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 10px; text-decoration: underline; cursor: pointer; }
.results { border-top: 1px solid var(--ink); margin-top: 23px; }
.hit { display: grid; grid-template-columns: 48px minmax(0,1.5fr) minmax(120px,.7fr) 100px 130px 24px; gap: 16px; align-items: center; min-height: 98px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .25s, padding .25s; animation: result-in .45s both; animation-delay: calc(var(--i, 0) * 35ms); }
.hit:hover { background: var(--paper-raised); padding-left: 10px; }
.hit-index { color: var(--faint); font: 10px var(--mono); }
.hit-main { min-width: 0; }
.hit h3 { margin: 0; font-family: var(--serif); font-size: 18px; font-weight: 400; line-height: 1.5; transition: color .2s; }
.hit:hover h3 { color: var(--accent); }
.hit .nick { margin-left: 7px; color: var(--accent); font-size: 12px; }
.hit .meta { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.hit-composer { font-family: var(--serif); font-size: 13px; }
.hit-year, .hit-genre { color: var(--muted); font: 10px var(--mono); }
.hit-arrow { color: var(--accent); opacity: 0; transform: translate(-6px,6px); transition: .25s; }
.hit:hover .hit-arrow { opacity: 1; transform: none; }
.more { padding: 27px 0 0; text-align: center; }
.ghost-btn { border: 1px solid var(--line); background: transparent; padding: 10px 22px; color: var(--ink-soft); font-size: 11px; cursor: pointer; transition: border-color .2s, background .2s; }
.ghost-btn:hover { border-color: var(--ink); background: var(--paper-raised); }
.empty { padding: 60px 25px; border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
.empty .empty-note { display: block; margin: 0 auto 17px; color: var(--accent); font-family: var(--serif); font-size: 38px; animation: note-drift 4s infinite; }
.empty strong { display: block; margin-bottom: 8px; color: var(--ink); font-family: var(--serif); font-size: 20px; font-weight: 400; }
.empty p { margin: 0; font-size: 12px; }

/* 作品详情 */
.work { padding-top: 45px; }
.work-hero { position: relative; padding: 0 0 45px; border-bottom: 1px solid var(--line); }
.work-hero .eyebrow { margin-bottom: 23px; }
.work-title { max-width: 1000px; margin: 0 0 13px; font-family: var(--serif); font-size: clamp(43px,5.4vw,72px); font-weight: 400; line-height: 1.25; letter-spacing: -.045em; }
.work-nick { margin: 0 0 18px; color: var(--accent); font-family: var(--serif); font-size: 18px; }
.work-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; color: var(--muted); font-size: 12px; }
.work-by a { color: var(--ink); font-family: var(--serif); font-size: 17px; text-decoration: none; border-bottom: 1px solid var(--line); }
.work-by a:hover { color: var(--accent); border-color: var(--accent); }
.work-by .en { font-family: var(--serif); font-style: italic; }
.work-actions { position: absolute; right: 0; bottom: 48px; display: flex; gap: 10px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: transparent; padding: 8px 13px; color: var(--muted); font-size: 10px; cursor: pointer; transition: .2s; }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--paper-raised); }
.facts { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); margin: 0; border-bottom: 1px solid var(--line); }
.facts > div { min-width: 0; padding: 22px 18px; border-right: 1px solid var(--line); }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { border-right: 0; }
.facts dt { color: var(--muted); font: 9px var(--mono); letter-spacing: .08em; }
.facts dd { margin: 7px 0 0; font-family: var(--serif); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.work-layout { display: grid; grid-template-columns: 185px minmax(0,var(--prose)); gap: 75px; justify-content: center; padding-top: 48px; }
.work-aside { align-self: start; position: sticky; top: 120px; }
.work-aside-title { margin: 0 0 15px; color: var(--muted); font: 9px var(--mono); letter-spacing: .12em; }
.work-toc { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.work-toc a { display: grid; grid-template-columns: 25px 1fr; gap: 5px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; text-decoration: none; transition: color .2s, padding .2s; }
.work-toc a span { font: 9px var(--mono); color: var(--faint); }
.work-toc a:hover, .work-toc a.is-active { color: var(--accent); padding-left: 5px; }
.work-toc a.is-active span { color: var(--accent); }
.aside-record { position: relative; width: 74px; height: 74px; margin-top: 30px; border-radius: 50%; background: repeating-radial-gradient(circle,#292a25 0 2px,#44453d 3px 4px); animation: record-spin 18s linear infinite; }
.aside-record::after { content: ""; position: absolute; inset: 35%; border-radius: 50%; background: var(--accent); }
.work-content { min-width: 0; }
.lead-text { position: relative; margin: 0 0 50px; padding: 0 0 0 30px; color: var(--ink); font-family: var(--serif); font-size: 21px; line-height: 1.95; }
.lead-text::before { content: ""; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; background: var(--accent); }
.work-section { margin-top: 52px; scroll-margin-top: 115px; }
.work-section > h2 { display: flex; align-items: baseline; gap: 14px; margin: 0 0 21px; padding-bottom: 13px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 400; }
.work-section > h2 .num { color: var(--accent); font: 10px var(--mono); }
.work-section p { margin: 0 0 17px; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 2.15; text-align: justify; }
.work-section p:last-child { margin-bottom: 0; }
.steps, .perf, .plain-list { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 17px; padding: 14px 0; border-bottom: 1px dotted var(--line); color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 1.95; }
.steps li:last-child, .perf li:last-child { border-bottom: 0; }
.steps .n { flex: 0 0 25px; padding-top: 4px; color: var(--accent); font: 10px var(--mono); }
.perf li { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px dotted var(--line); }
.perf .when { color: var(--muted); font: 11px var(--mono); }
.perf .who { margin: 0 0 3px; color: var(--ink); font-size: 14px; }
.perf .what { margin: 0; font-size: 14px; }
.plain-list { padding-left: 18px; list-style: disc; }
.plain-list li { padding-left: 5px; margin-bottom: 8px; color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 2; }
.plain-list li::marker { color: var(--accent); }
.recordings { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rec { position: relative; min-height: 160px; padding: 20px; border: 1px solid var(--line); background: var(--paper-raised); transition: transform .25s, box-shadow .25s; }
.rec:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: 0 12px 30px rgba(39,35,25,.08); }
.rec .by { margin: 0 0 4px !important; color: var(--ink) !important; font-size: 15px !important; text-align: left !important; }
.rec .label { margin: 0 0 12px !important; color: var(--accent) !important; font: 9px var(--mono) !important; text-align: left !important; }
.rec .why { margin: 0 !important; font-size: 13px !important; line-height: 1.85 !important; }
.work-section .source-note { font-size: 14px; }
.source-list { list-style: none; margin: 0; padding: 0; counter-reset: sources; }
.source-list li { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-bottom: 1px dotted var(--line); counter-increment: sources; }
.source-list li::before { content: counter(sources, decimal-leading-zero); flex: 0 0 24px; color: var(--accent); font: 10px var(--mono); }
.source-list li > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.source-list a { color: var(--ink-soft); font-family: var(--serif); font-size: 14px; text-decoration-color: var(--line); }
.source-list a:hover { color: var(--accent); }
.source-date { flex: 0 0 auto; color: var(--muted); font: 10px var(--mono); }
.work-foot { margin-top: 75px; padding-top: 28px; border-top: 1px solid var(--ink); }
.work-foot h2 { margin: 0 0 20px; font-family: var(--serif); font-size: 25px; font-weight: 400; }
.work-foot .more { text-align: left; }

/* 作曲家 */
.composer-tools { display: grid; grid-template-columns: 1fr 210px; gap: 25px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.composer-search { display: flex; align-items: center; gap: 12px; }
.composer-search span { color: var(--accent); font-size: 22px; }
.composer-search input { width: 100%; border: 0; background: none; outline: none; padding: 8px 0; color: var(--ink); font-family: var(--serif); font-size: 16px; }
.composer-tools select { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 8px 0 8px 20px; color: var(--ink); font-family: var(--serif); outline: none; }
.composer-count { margin: 18px 0; color: var(--muted); font: 10px var(--mono); }
.composer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 26px; border-top: 1px solid var(--ink); }
.composer-card { position: relative; display: grid; grid-template-columns: 44px 1fr 18px; gap: 14px; align-items: center; min-height: 102px; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .25s, background .25s; animation: result-in .4s both; animation-delay: calc(var(--i, 0) * 18ms); }
.composer-card:hover { padding-left: 8px; background: var(--paper-raised); }
.composer-monogram { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 18px; transition: background .25s, color .25s, transform .25s; }
.composer-card:hover .composer-monogram { background: var(--accent); color: #fff; transform: rotate(-10deg); }
.composer-card .name { margin: 0; font-family: var(--serif); font-size: 17px; }
.composer-card .meta { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.composer-card .meta .n { font-family: var(--mono); color: var(--accent); }
.composer-card .go { color: var(--faint); transition: color .2s, transform .2s; }
.composer-card:hover .go { color: var(--accent); transform: translate(3px,-3px); }
.composer { padding-top: 45px; }
.composer-hero { display: grid; grid-template-columns: 1fr 180px; gap: 50px; align-items: center; padding-bottom: 42px; border-bottom: 1px solid var(--line); }
.composer h1 { margin: 15px 0 7px; font-family: var(--serif); font-size: clamp(48px,6vw,76px); font-weight: 400; letter-spacing: -.05em; line-height: 1.2; }
.composer .en { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 16px; font-style: italic; }
.composer-portrait { position: relative; display: grid; place-items: center; width: 170px; height: 170px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-family: var(--serif); font-size: 64px; }
.composer-portrait::before, .composer-portrait::after { content: ""; position: absolute; border: 1px solid var(--line); border-radius: 50%; animation: orbit-pulse 5s ease-in-out infinite; }
.composer-portrait::before { inset: -10px; }
.composer-portrait::after { inset: 12px; animation-delay: -2s; }
.composer-facts { grid-template-columns: repeat(4,1fr); }
.composer-body { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 70px; padding-top: 45px; }
.bio { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 18px; line-height: 2.15; text-align: justify; }
.composer-work-tools { padding: 0 0 20px; }
.composer-work-tools input { width: 100%; border: 0; border-bottom: 1px solid var(--ink); background: none; outline: none; padding: 12px 3px; font-family: var(--serif); font-size: 16px; }
.composer-works-title { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 20px; }
.composer-works-title h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.composer-works-title span { color: var(--muted); font: 10px var(--mono); }

/* 关于 */
.about { padding-top: 60px; }
.about-hero { display: grid; grid-template-columns: 1.25fr .75fr; gap: 70px; padding-bottom: 65px; border-bottom: 1px solid var(--line); }
.about h1 { margin: 22px 0 0; font-family: var(--serif); font-size: clamp(44px,5.5vw,72px); font-weight: 400; line-height: 1.2; letter-spacing: -.05em; }
.about h1 em { color: var(--accent); font-weight: 400; }
.about-intro { align-self: end; margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: 16px; line-height: 2.1; }
.about-stats { grid-template-columns: repeat(4,1fr); margin-bottom: 75px; border-top: 0; }
.about-grid { display: grid; grid-template-columns: 250px minmax(0,760px); gap: 65px; justify-content: center; }
.about-nav { position: sticky; top: 120px; align-self: start; }
.about-nav p { margin: 0 0 12px; color: var(--muted); font: 9px var(--mono); }
.about-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; text-decoration: none; }
.about-nav a:hover { color: var(--accent); }
.about-section { margin-bottom: 55px; scroll-margin-top: 120px; }
.about-section h2 { margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink); font-family: var(--serif); font-size: 26px; font-weight: 400; }
.about-section p, .about-section li { color: var(--ink-soft); font-family: var(--serif); font-size: 15px; line-height: 2.05; }
.about-section ul { padding-left: 20px; }
.about-section li::marker { color: var(--accent); }
.about-section dl { margin: 0; border-top: 1px solid var(--line); }
.about-section dl > div { display: grid; grid-template-columns: 145px 1fr; border-bottom: 1px solid var(--line); }
.about-section dt { padding: 15px 10px 15px 0; color: var(--accent); font-size: 12px; }
.about-section dd { margin: 0; padding: 15px 0; color: var(--ink-soft); font-family: var(--serif); font-size: 14px; }
.about code { padding: 1px 5px; background: var(--paper-deep); font: .9em var(--mono); overflow-wrap: anywhere; }
.note-box { margin-top: 28px; padding: 22px 24px; border-left: 3px solid var(--accent); background: var(--paper-raised); color: var(--ink-soft); font-family: var(--serif); font-size: 13px; line-height: 2; }

/* 状态、提示与页脚 */
.loading, .error { padding: 110px 0; text-align: center; color: var(--muted); font-size: 13px; }
.loading-note { display: block; width: 55px; height: 55px; margin: 0 auto 25px; border-radius: 50%; background: repeating-radial-gradient(circle,#292a25 0 3px,#55564d 4px 5px); animation: record-spin 2s linear infinite; }
.loading-note::after { content: ""; display: block; width: 18px; height: 18px; margin: 18px; border-radius: 50%; background: var(--accent); }
.error .title { margin-bottom: 10px; color: var(--ink); font-family: var(--serif); font-size: 28px; }
.error .detail { max-width: 600px; margin: 15px auto; color: var(--muted); font: 11px var(--mono); word-break: break-word; }
.error a { color: var(--accent); }
.toast { position: fixed; z-index: 150; left: 50%; bottom: 30px; transform: translate(-50%,20px); padding: 11px 20px; background: var(--ink); color: var(--paper); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%,0); }
.site-footer { border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer-grid { max-width: var(--maxw); margin: auto; padding: 48px 44px 42px; display: grid; grid-template-columns: 1.5fr .6fr 1fr; gap: 50px; }
.footer-brand > a { font-size: 28px; font-weight: 900; letter-spacing: -.07em; text-decoration: none; }
.footer-brand > a span { color: var(--accent); }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-family: var(--serif); font-size: 12px; line-height: 1.9; }
.footer-links, .footer-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; font-size: 11px; }
.footer-links > span, .footer-meta > span { margin-bottom: 6px; color: var(--faint); font: 8px var(--mono); letter-spacing: .12em; }
.footer-links a, .footer-meta a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-meta a:hover { color: var(--accent); }
.footer-meta { align-items: flex-end; text-align: right; }
.footer-meta p { margin: 0; color: var(--muted); font: 10px var(--mono); }
.footer-bottom { max-width: var(--maxw); margin: auto; padding: 15px 44px 22px; display: flex; justify-content: space-between; border-top: 1px solid var(--line); color: var(--faint); font: 8px var(--mono); letter-spacing: .13em; }

/* 动效 */
@keyframes page-in { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes record-spin { to { transform: rotate(360deg); } }
@keyframes record-float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-12px) rotate(1deg); } }
@keyframes note-drift { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-14px) rotate(7deg); } }
@keyframes orbit-pulse { 0%,100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes result-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes list-refresh { 0% { opacity: .2; transform: translateY(8px); } 100% { opacity: 1; transform: none; } }

/* 响应式 */
@media (max-width: 1100px) {
  .hero-copy h1 { font-size: 62px; }
  .hit { grid-template-columns: 38px minmax(0,1.5fr) minmax(100px,.7fr) 75px 24px; }
  .hit-genre { display: none; }
  .work-layout { grid-template-columns: 150px minmax(0,var(--prose)); gap: 40px; }
  .facts { grid-template-columns: repeat(4,1fr); }
  .facts > div:nth-child(4) { border-right: 0; }
  .facts > div:nth-child(-n+4) { border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(5) { padding-left: 0; }
  .composer-body { grid-template-columns: 1fr; gap: 45px; }
}
@media (max-width: 860px) {
  .site-header .inner, .page, .footer-grid, .footer-bottom { padding-left: 25px; padding-right: 25px; }
  .brand-text { display: none; }
  .site-nav { gap: 20px; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px 0 65px; }
  .hero-copy h1 { font-size: clamp(52px,10vw,75px); }
  .hero-art { min-height: 450px; border-left: 0; border-top: 1px solid var(--line); }
  .record-wrap { width: 350px; }
  .search-row { grid-template-columns: 1fr; }
  .search-label { display: none; }
  .quick-search { grid-column: 1; }
  .era-grid { grid-template-columns: repeat(3,1fr); }
  .era-card { border-bottom: 1px solid var(--line); }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 235px; }
  .feature-card h3 { margin-top: 65px; }
  .page-head { grid-template-columns: 1fr; gap: 22px; padding-top: 48px; }
  .page-head .sub { max-width: 550px; }
  .work-layout { grid-template-columns: 1fr; padding-top: 35px; }
  .work-aside { display: none; }
  .work-content { max-width: var(--prose); margin: auto; }
  .work-actions { position: static; margin-top: 25px; }
  .composer-grid { grid-template-columns: repeat(2,1fr); }
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .about-intro { max-width: 650px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; align-items: flex-start; text-align: left; }
}
@media (max-width: 600px) {
  .site-header .inner { height: 72px; gap: 12px; }
  .brand-mark { font-size: 24px; }
  .site-nav { gap: 15px; }
  .site-nav a { padding: 25px 0 22px; font-size: 10px; }
  .site-nav a::after { bottom: 16px; }
  .site-nav a[data-nav="home"] { display: none; }
  .header-search { padding: 6px 9px; }
  .header-search kbd { display: none; }
  .page { padding-bottom: 75px; }
  .hero-copy h1 { font-size: 49px; }
  .hero-lede { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-scroll { display: none; }
  .hero-art { min-height: 360px; }
  .record-wrap { width: 280px; }
  .record::after { box-shadow: 0 245px 0 rgba(255,255,255,.16); }
  .art-caption { right: 0; bottom: 18px; }
  .searchbar input { font-size: 15px; }
  .searchbar button { padding: 0 16px; }
  .searchbar .search-symbol { width: 27px; }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .stat { padding: 22px 16px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat:nth-child(3) { padding-left: 0; }
  .stat strong { font-size: 28px; }
  .home-section { padding-top: 60px; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .section-head h2 { font-size: 28px; }
  .era-card { min-height: 115px; }
  .era-card small { margin-bottom: 17px; }
  .toc a { display: grid; grid-template-columns: 26px 1fr; gap: 2px 8px; }
  .toc .d { display: none; }
  .toc .i { grid-row: 1 / span 2; }
  .toc .t, .toc .a { grid-column: 2; }
  .toc .a { white-space: normal; }
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
  .toolbar select { min-width: 0; width: 100%; }
  .toolbar .count { grid-column: 1 / -1; margin-left: 0; }
  .hit { grid-template-columns: 30px 1fr 18px; gap: 10px; min-height: 100px; }
  .hit-composer, .hit-year, .hit-genre { display: none; }
  .hit h3 { font-size: 17px; }
  .hit-arrow { opacity: 1; transform: none; }
  .work { padding-top: 32px; }
  .work-title { font-size: 39px; }
  .facts { grid-template-columns: repeat(2,1fr); }
  .facts > div, .facts > div:nth-child(4) { padding: 17px 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .facts > div:nth-child(even) { border-right: 0; }
  .facts > div:nth-child(odd) { padding-left: 0; }
  .facts > div:last-child { border-bottom: 0; }
  .lead-text { padding-left: 20px; font-size: 18px; }
  .work-section { margin-top: 43px; }
  .work-section p { font-size: 15.5px; }
  .perf li { grid-template-columns: 1fr; gap: 4px; }
  .recordings { grid-template-columns: 1fr; }
  .composer-tools { grid-template-columns: 1fr; gap: 10px; }
  .composer-tools select { border-left: 0; border-top: 1px solid var(--line); padding: 12px 0 4px; }
  .composer-grid { grid-template-columns: 1fr; }
  .composer-hero { grid-template-columns: 1fr; gap: 30px; }
  .composer-portrait { width: 105px; height: 105px; font-size: 42px; }
  .composer-facts { grid-template-columns: repeat(2,1fr); }
  .bio { font-size: 16px; }
  .about { padding-top: 42px; }
  .about-stats { margin-bottom: 55px; }
  .about-section dl > div { grid-template-columns: 1fr; }
  .about-section dt { padding-bottom: 0; }
  .about-section dd { padding-top: 5px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-meta { grid-column: auto; }
  .footer-bottom { gap: 15px; }
  .footer-bottom span:last-child { display: none; }
  .toast { width: max-content; max-width: calc(100% - 30px); text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .staff { transform: rotate(-10deg); }
}
