:root {
  color-scheme: light;
  --ink: #111827;
  --text: #374151;
  --muted: #64748b;
  --accent: #2563eb;
  --edge: #e5e8ee;
  --paper: #f6f8fc;
  --bar: 68px;
  --rail: clamp(218px,17.5vw,260px);
  --sans: Inter, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--bar) + 18px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: 1rem/1.6 var(--sans); }
body:has(dialog[open]), body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
::selection { background: #bfdbfe; color: #111827; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 10; top: 8px; left: 12px; background: white; padding: 8px 14px; }
.icon { width: 19px; height: 19px; flex: 0 0 auto; display: block; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.topbar { position: sticky; top: 0; z-index: 5; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 2.1vw; background: #fff; border-bottom: 1px solid var(--edge); }
.brand { display: inline-flex; align-items: center; gap: 6px; color: #111827; }
.brand img { width: 29px; height: 35px; object-fit: contain; }
.brand strong { font-family: Inter, "Segoe UI", sans-serif; font-size: 1.55rem; line-height: 1; letter-spacing: -.06em; font-weight: 720; }
.brand-divider { height: 18px; border-left: 1px solid #e5e8ee; }
.brand-section { font-size: .94rem; font-weight: 600; color: #4b5563; }
.header-actions { margin-left: auto; display: flex; gap: 25px; align-items: center; }
.search-trigger { background: #f9fafb; color: #4b5563; border: 1px solid #e5e8ee; border-radius: 7px; width: 242px; height: 36px; display: flex; align-items: center; padding: 0 9px 0 12px; gap: 9px; font-size: .875rem; }
.search-trigger:hover { border-color: #bfdbfe; }
.search-trigger .icon { width: 16px; height: 16px; }
kbd { margin-left: auto; font: .75rem/1.5 var(--mono); border: 1px solid #e5e8ee; background: #fff; color: #64748b; border-radius: 4px; padding: 0 5px; }
.header-help { display: flex; gap: 7px; align-items: center; font-size: .875rem; color: #374151; font-weight: 550; }
.header-help .icon { width: 17px; height: 17px; }
.header-help:hover, .breadcrumb a:hover { color: var(--accent); text-decoration: underline; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; background: transparent; border: 0; border-radius: 6px; }
.icon-button:hover { background: #eef4ff; }
.menu-button, .scrim { display: none; }
.sidebar { width: var(--rail); position: fixed; z-index: 4; top: var(--bar); left: 0; bottom: 0; background: #fff; border-right: 1px solid var(--edge); display: flex; flex-direction: column; }
.nav-scroll { flex: 1 1 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; padding: 25px 15px 20px; }
.nav-caption { font-size: .78rem; color: #64748b; font-weight: 650; letter-spacing: .1em; margin: 0 11px 13px; }
.nav-link { display: flex; gap: 12px; align-items: center; min-height: 33px; padding: 5px 11px; border-radius: 5px; color: #374151; font-size: .91rem; }
.nav-link .icon { width: 16px; height: 16px; color: #64748b; }
.nav-link:hover { background: #f1f5f9; }
.nav-link[aria-current] { background: #eef4ff; color: #1d4ed8; font-weight: 680; }
.nav-link[aria-current] .icon { color: #2563eb; }
.nav-home { min-height: 39px; }
.nav-group { margin-top: 21px; }
.nav-group p { font-size: .77rem; color: #64748b; font-weight: 620; letter-spacing: .06em; margin: 0 11px 5px; }
.side-edition { min-height: 70px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--edge); padding: 10px 17px; }
.side-edition:hover { background: #f9fafb; }
.edition-symbol, .catalog-symbol { width: 33px; height: 33px; border-radius: 7px; background: #eef4ff; color: #1d4ed8; }
.side-edition b, .side-edition small { display: block; }
.side-edition b { font-size: .78rem; color: #4b5563; }
.side-edition small { font: .72rem/1.7 var(--mono); color: #64748b; }
.edition-info { margin-left: auto; color: #94a3b8; }
.edition-info .icon { width: 15px; height: 15px; }
main { margin-left: var(--rail); min-height: calc(100vh - var(--bar)); }
main:focus { outline: none; }
.container { max-width: 1430px; margin: 0 auto; padding: 24px clamp(24px,3.1vw,56px) 0; }
.breadcrumb { display: flex; gap: 11px; align-items: center; min-height: 19px; margin-bottom: 19px; color: #64748b; font-size: .815rem; }
.breadcrumb a { display: flex; align-items: center; gap: 7px; }
.breadcrumb .icon { width: 14px; height: 14px; }
.breadcrumb span { color: #94a3b8; }
.breadcrumb b { font-weight: 500; color: #374151; }
.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 13px; color: white; background: #0b1e45; min-height: 255px; }
.cover-photo { position: absolute; z-index: -3; top: 0; bottom: 0; right: 0; width: 52%; background: url("./instrument-cover.webp") center 48%/cover; filter: saturate(.91) brightness(1.24); }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: linear-gradient(90deg,#0b1e45 0%,#1e3a8a 42%,rgba(30,58,138,.95) 51%,rgba(25,55,124,.24) 74%,rgba(17,39,83,.23)),linear-gradient(0deg,rgba(11,30,69,.65),transparent 49%); }
.cover-grid { position:absolute; z-index:-1; inset:0 0 0 53%; opacity:.3; background-image:linear-gradient(90deg,rgba(191,219,254,.32) 1px,transparent 1px),linear-gradient(0deg,rgba(191,219,254,.25) 1px,transparent 1px); background-size:36px 36px; mask-image:linear-gradient(90deg,transparent,#000 42%); }
.hero-copy { padding: 31px clamp(25px,3vw,52px) 33px; position:relative; z-index:1; }
.hero-editions { display:flex; align-items:center; gap:9px; color:#bfdbfe; font:600 .72rem/1.4 var(--mono); letter-spacing:.145em; }
.hero-editions i { display:inline-block; width:24px; height:2px; background:#7dabff; margin-right:2px; }
.hero-editions span { color:#93b4e8; }
.hero h1 { font-size:clamp(2.15rem,3.25vw,3.75rem); line-height:1.2; margin:14px 0 11px; letter-spacing:-.045em; font-weight:710; }
.hero p { color:#eef4ff; font-size: .995rem; line-height:1.72; margin:0; max-width:55%; }
.hero-actions { display:flex; align-items:center; gap:22px; margin-top:22px; }
.hero-start { display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:8px 15px; background:#2563eb; color:#ffffff; font-size:.9rem; font-weight:680; border-radius:6px; }
.hero-start .icon { width:17px; height:17px; }
.hero-start:hover { background:#1d4ed8; }
.hero-directory { color:#eef4ff; font-size:.89rem; border-bottom:1px solid #bfdbfe; }
.cover-trace { position:absolute; width:31%; right:3%; bottom:13px; height:46px; opacity:.83; color:#7dabff; }
.cover-trace svg { width:100%; height:100%; }
.home-section { margin-top:30px; }
.section-title { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; }
.section-title h2 { margin:0; font-size:1.32rem; font-weight:700; line-height:1.5; letter-spacing:-.025em; }
.section-title > span { color:var(--muted); font-size:.8rem; }
.quick-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.quick-card { position:relative; display:block; border:1px solid var(--edge); background:white; border-radius:10px; padding:19px 20px 18px; transition:border-color .15s,box-shadow .15s, transform .15s; }
.quick-card:hover, .quick-card:focus-visible { border-color:#bfdbfe; box-shadow:0 4px 14px #17336814; transform:translateY(-2px); }
.quick-preview { display:block; width:100%; height:clamp(82px,8vw,145px); object-fit:cover; object-position:50% 25%; border:1px solid #dbe4f1; border-radius:5px; background:#eef4ff; }
.section-link, .gallery-caption span { display:inline-flex; align-items:center; gap:4px; color:var(--accent); font-size:.85rem; font-weight:600; }
.section-link .icon, .gallery-caption span .icon { width:14px; height:14px; }
.section-link:hover, .gallery-caption:hover strong { text-decoration:underline; }
.gallery-head h1 { margin:12px 0 5px; font-size:clamp(2rem,3vw,3rem); line-height:1.25; }
.gallery-head p { color:var(--text); margin:8px 0 18px; }
.gallery-filters { display:flex; flex-wrap:wrap; gap:7px; }
.gallery-filters a { padding:5px 12px; border:1px solid var(--edge); background:white; border-radius:6px; font-size:.88rem; }
.gallery-filters a[aria-current] { background:var(--accent); color:white; border-color:var(--accent); }
.gallery-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(225px,100%),1fr)); gap:15px; }
.gallery-card { overflow:hidden; border:1px solid var(--edge); border-radius:9px; background:white; display:flex; flex-direction:column; }
.gallery-image { width:100%; display:block; position:relative; padding:7px; border:0; border-bottom:1px solid var(--edge); background:#edf2fa; cursor:zoom-in; }
.gallery-image img { display:block; width:100%; height:auto; aspect-ratio:16 / 9; object-fit:contain; }
.gallery-caption { padding:13px 15px; flex:1; display:flex; flex-direction:column; align-items:flex-start; }
.gallery-caption small { color:var(--muted); }
.gallery-caption strong { margin:2px 0 8px; }
.gallery-caption span { margin-top:auto; }
.quick-card h3 { margin:10px 0 4px; font-size:1.1rem; letter-spacing:-.02em; }
.quick-card p { margin:0; font-size:.895rem; color:#4b5563; }
.catalog-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.catalog-group { min-width:0; background:white; border:1px solid var(--edge); border-radius:10px; overflow:hidden; }
.catalog-heading { display:flex; align-items:center; gap:10px; background:#f1f5f9; border-bottom:1px solid #e5e8ee; padding:11px 17px; }
.catalog-heading h3 { font-size:.97rem; margin:0; }
.catalog-symbol { display:grid; place-items:center; height:25px; width:25px; background:transparent; }
.catalog-symbol .icon { height:18px; width:18px; }
.catalog-links { padding:2px 18px; }
.catalog-links a { display:flex; align-items:center; justify-content:space-between; padding:9px 2px; font-size:.91rem; color:#374151; }
.catalog-links a+a { border-top:1px solid #eff1f5; }
.catalog-links .icon { color:#94a3b8; width:14px; height:14px; }
.catalog-links a:hover { color:var(--accent); text-decoration:underline; }
.foot { margin-top:34px; padding:20px 0; border-top:1px solid var(--edge); display:flex; justify-content:space-between; gap:10px; color:#64748b; font-size:.78rem; }
.foot time { font-family:var(--mono); }
.reader-layout { display:grid; grid-template-columns:minmax(0,1fr) 175px; gap:clamp(20px,2.8vw,52px); }
.reader-main { min-width:0; }
.article-head { border-bottom:1px solid var(--edge); padding:7px 0 17px; }
.mobile-toc { display:none; }
.article-head h1 { margin:9px 0 16px; color:#111827; font-size:clamp(2rem,3vw,3rem); letter-spacing:-.05em; line-height:1.23; }
.article-tools { display:flex; flex-wrap:wrap; gap:18px; }
.article-tools button, .article-tools a { background:transparent; padding:0; border:0; display:inline-flex; align-items:center; gap:6px; color:#64748b; font-size:.84rem; }
.article-tools .icon { width:15px; height:15px; }
.article-tools > :hover { color:var(--accent); text-decoration:underline; }
.local-toc { align-self:stretch; font-size:.84rem; }
.toc-stick { position:sticky; top:calc(var(--bar) + 26px); border-left:1px solid var(--edge); padding-left:15px; margin-top:10px; max-height:calc(100vh - var(--bar) - 54px); overflow:auto; }
.toc-stick b { display:flex; align-items:center; gap:6px; margin-bottom:8px; font-size:.85rem; }
.toc-stick b .icon { width:15px; height:15px; }
.toc-stick nav { display:grid; }
.toc-stick a { padding:5px 1px; color:#64748b; line-height:1.6; }
.toc-stick a:hover, .toc-stick a.current { color:var(--accent); }
.toc-stick a.current { font-weight:680; }
.toc-stick a.subsection, .mobile-toc nav a.subsection { padding-left:13px; font-size:.93em; }
.prose { font-size:1rem; line-height:1.9; color:var(--text); overflow-wrap:anywhere; }
.prose > p:first-child { font-size:1.075rem; margin:20px 0 26px; color:#4b5563; }
.prose h2, .prose h3 { color:var(--ink); line-height:1.5; letter-spacing:-.02em; }
.prose h2 { margin:32px 0 11px; font-size:1.4rem; }
.prose h3 { margin:22px 0 9px; font-size:1.12rem; }
.prose p, .prose ul, .prose ol { margin:10px 0 14px; }
.prose ol, .prose ul { padding-left:1.8em; }
.prose li { padding-left:.28em; margin:6px 0; }
.prose li::marker { color:#1d4ed8; font-weight:650; }
.prose strong { color:#374151; }
.prose a, .missing a { color:#1d4ed8; text-decoration:underline; text-underline-offset:3px; }
.prose code { font-family:var(--mono); font-size:.9em; background:#f1f5f9; padding:2px 5px; border-radius:4px; }
.prose blockquote { margin:19px 0; border-left:3px solid #2563eb; background:#eef4ff; border-radius:0 6px 6px 0; padding:10px 17px; }
.prose blockquote p { margin:4px 0; }
.table-scroll { overflow:auto; margin:16px 0 22px; border:1px solid var(--edge); border-radius:7px; background:white; }
.prose table { border-collapse:collapse; width:100%; min-width:410px; font-size:.92rem; line-height:1.65; }
.prose :is(td,th) { padding:10px 13px; text-align:left; vertical-align:top; border-bottom:1px solid #e5e8ee; }
.prose thead { background:#f1f5f9; color:#4b5563; }
.prose tr:last-child td { border-bottom:none; }
.prose figure { margin:20px 0; }
.figure-button { display:block; border:1px solid #e5e8ee; border-radius:8px; overflow:hidden; padding:0; background:white; position:relative; width:100%; cursor:zoom-in; }
.figure-button img { width:100%; height:auto; max-height:78vh; object-fit:contain; display:block; }
.zoom-badge { background:#fff; color:var(--ink); position:absolute; bottom:8px; right:8px; display:grid; place-items:center; border:1px solid var(--edge); border-radius:5px; width:29px; height:29px; }
.zoom-badge .icon { width:17px; height:17px; }
.prose figcaption { font-size:.82rem; margin-top:6px; color:var(--muted); }
.prevnext { display:flex; gap:12px; margin-top:32px; }
.prevnext a { flex:1; border:1px solid var(--edge); padding:12px 16px; border-radius:7px; background:#fff; }
.prevnext a:hover { border-color:#bfdbfe; }
.prevnext small, .prevnext b { display:block; }
.prevnext small { color:var(--muted); font-size:.77rem; }
.prevnext b { margin-top:3px; font-size:.96rem; }
.missing { padding:30px 0 90px; }
dialog { padding:0; background:#fff; color:var(--ink); border:1px solid var(--edge); border-radius:12px; box-shadow:0 20px 85px #0b1e453d; }
dialog::backdrop { background:#0b1e459c; }
.search-dialog { width:min(660px,calc(100% - 26px)); max-height:70dvh; margin:clamp(45px,13vh,140px) auto auto; }
.search-dialog[open], .image-dialog[open] { display:flex; flex-direction:column; }
.search-entry { display:flex; flex-shrink:0; align-items:center; gap:12px; padding:12px 15px; border-bottom:1px solid var(--edge); }
.search-entry > span { color:var(--accent); }
.search-entry input { width:100%; min-width:0; border:0; outline:0; font-size:1rem; background:transparent; }
.search-status { margin:12px 18px 5px; color:var(--muted); font-size:.84rem; }
.search-results { overflow:auto; padding:0 8px 10px; }
.search-hit { display:flex; align-items:flex-start; gap:11px; padding:12px 10px; border-radius:6px; }
.search-hit:hover, .search-hit:focus { background:#eef4ff; }
.result-icon { flex-shrink:0; background:#eef4ff; color:#1d4ed8; padding:7px; border-radius:7px; }
.search-hit b, .search-hit small { display:block; }
.search-hit b { font-size:.97rem; }
.search-hit small { margin-top:2px; color:var(--muted); font-size:.85rem; }
.image-dialog { width:min(1400px,96vw); max-width:96vw; max-height:94dvh; }
.image-tools { display:flex; justify-content:space-between; align-items:center; padding:5px 12px; border-bottom:1px solid var(--edge); }
.image-frame { min-height:0; overflow:auto; cursor:zoom-in; background:#f1f5f9; }
.image-frame:has(.actual-size) { cursor:zoom-out; }
.image-frame img { width:auto; max-width:100%; max-height:calc(94dvh - 105px); display:block; margin:0 auto; }
.image-frame img.actual-size { width:auto; max-width:none; max-height:none; }
.image-dialog p { margin:0; padding:8px 13px; font-size:.85rem; color:var(--muted); }
@media (min-width:1650px) {
  .hero-copy { padding-top:42px; padding-bottom:43px; }
  .nav-link { min-height:37px; }
}
@media (max-width:1150px) {
  .reader-layout { grid-template-columns: minmax(0,1fr); }
  .local-toc { display:none; }
  .mobile-toc { display:block; margin-top:16px; background:#f1f5f9; border-radius:6px; font-size:.91rem; }
  .mobile-toc summary { padding:9px 13px; cursor:pointer; color:#1d4ed8; font-weight:600; }
  .mobile-toc nav { padding:0 13px 9px; }
  .mobile-toc a { display:block; padding:7px 0; border-top:1px solid var(--edge); }
  .quick-card { padding:16px; }
}
@media (max-width:860px) {
  :root { --bar:59px; }
  .topbar { padding:0 16px 0 9px; gap:10px; }
  .menu-button { display:inline-flex; }
  .sidebar { width:min(290px,84vw); transform:translateX(-102%); visibility:hidden; }
  .menu-open .sidebar { transform:translateX(0); visibility:visible; }
  .scrim:not([hidden]) { display:block; position:fixed; inset:var(--bar) 0 0; z-index:3; width:100%; background:#0b1e4599; border:0; }
  main { margin-left:0; }
  .nav-link { min-height:39px; }
  .header-actions { gap:16px; }
  .container { padding:19px 23px 0; }
  .home-section { margin-top:24px; }
}
@media (max-width:600px) {
  .brand img { width:24px; height:30px; }
  .brand strong { font-size:1.33rem; }
  .brand-section { font-size:.83rem; }
  .header-actions { gap:4px; }
  .header-help, .search-trigger > span:not([data-icon]), .search-trigger kbd { display:none; }
  .search-trigger { width:38px; height:38px; justify-content:center; padding:0; }
  .container { padding:15px 15px 0; }
  .breadcrumb { margin-bottom:13px; }
  .hero { min-height:0; }
  .hero h1 { font-size:clamp(1.65rem,7vw,2.4rem); }
  .hero-copy { padding:24px 19px; }
  .hero p { font-size:.93rem; max-width:83%; line-height:1.75; text-shadow:0 1px 5px #0b1e45; }
  .wide-only { display:none; }
  .cover-photo { width:61%; opacity:.65; }
  .hero::before { background:linear-gradient(90deg,#0b1e45 8%,rgba(11,30,69,.93) 35%,rgba(11,30,69,.55) 68%,rgba(11,30,69,.25)); }
  .cover-trace { width:27%; height:30px; bottom:13px; }
  .hero-actions { gap:18px; margin-top:18px; }
  .quick-grid { grid-template-columns:1fr; gap:8px; }
  .quick-card { display:grid; grid-template-columns:76px 1fr; column-gap:13px; padding:12px; }
  .quick-preview { align-self:center; grid-row:span 2; height:56px; }
  .quick-card h3 { margin:0 0 1px; font-size:1.02rem; }
  .quick-card p { font-size:.86rem; }
  .catalog-grid { grid-template-columns:1fr; gap:10px; }
  .foot { flex-wrap:wrap; gap:4px 20px; }
  .article-head h1 { font-size:2rem; }
  .prose h2 { font-size:1.24rem; }
  .section-title h2 { font-size:1.2rem; }
  .prose { line-height:1.85; }
  .image-dialog p { font-size:.78rem; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { transition:none !important; }
}
@media print {
  :root { --bar:0px; }
  @page { margin:16mm; }
  body, main, .container { background:#fff; margin:0; padding:0; }
  .topbar,.sidebar,.scrim,.breadcrumb,.article-tools,.local-toc,.mobile-toc,.prevnext,.skip,dialog,.zoom-badge,.hero-actions { display:none !important; }
  .reader-layout { display:block; }
  .prose { color:#111; font:10.5pt/1.65 var(--sans); }
  .prose h2, .prose h3 { break-after:avoid; }
  .prose :is(figure,tr,blockquote) { break-inside:avoid; }
  .table-scroll { overflow:visible; }
  .prose table { min-width:0; }
  .article-head h1 { font-size:24pt; }
  .hero { background:#fff; color:#111; }
  .hero p,.hero-editions { color:#222; }
  .hero::before,.cover-grid,.cover-photo,.cover-trace { display:none; }
}
