:root {
    color-scheme: dark;
    --bg: #151413;
    --panel: #211e1a;
    --line: #403a31;
    --text: #f4ede1;
    --soft: #c9c1b3;
    --gold: #e9c48a;
    --cjk-sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    font: 100%/1.6 system-ui, "Segoe UI", var(--cjk-sans);
    background: var(--bg);
    color: var(--text);
}
html:lang(zh-CN) { font-family: var(--cjk-sans); }
* { box-sizing: border-box; }
body, figure, h1, h2, h3, p { margin: 0; }
a { color: inherit; text-underline-offset: .3em; }
a:hover { color: #ffdb9e; }
:focus-visible { outline: 2px solid #ffdb9e; outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1280px, calc(100% - clamp(40px, 10vw, 160px))); margin-inline: auto; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 5; padding: .5rem 1rem; background: var(--bg); transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { background: #141312; border-bottom: 1px solid var(--line); }
.mast, .mast nav, .brand, .meta, .actions, .key-strip, .section-head, .foot, .player figcaption, .adjacent { display: flex; align-items: center; }
.mast { min-height: 76px; justify-content: space-between; gap: 24px; }
.brand { flex: none; text-decoration: none; }
.brand img { width: 142px; height: auto; }
.mast nav { gap: clamp(15px, 3vw, 40px); font-size: .94rem; }
.mast nav a { text-decoration: none; }
.language { border-left: 1px solid var(--line); padding-left: clamp(14px, 2vw, 28px); color: var(--gold); }
.hero { background: radial-gradient(ellipse at 86% 48%, #3d30233d, transparent 61%), linear-gradient(115deg,#1c1b18,#201c18 55%,#1a1917); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(28px, 4vw, 76px); padding-block: clamp(48px, 6vw, 88px) clamp(32px, 5vw, 72px); }
.hero-grid > *, .feature-grid > *, .guide > * { min-width: 0; }
.meta { flex-wrap: wrap; gap: 12px; font-size: .88rem; color: var(--soft); }
.alpha { display: inline-block; border: 1px solid #776246; border-radius: 3px; background: #332b20; color: var(--gold); padding: 2px 9px; letter-spacing: .03em; }
h1, h2, h3 { text-wrap: balance; font-weight: 600; }
.hero h1 { font-size: clamp(3.2rem, 5vw, 5rem); line-height: 1.07; letter-spacing: -.04em; margin: 24px 0 18px; }
.hero em { font-style: normal; color: var(--gold); }
:lang(zh-CN) .hero h1 { font-size: clamp(3rem, 4.3vw, 4.4rem); line-height: 1.2; letter-spacing: -.025em; }
.lead, .feature p, .lesson p { color: var(--soft); }
.lead { max-width: 48ch; font-size: 1.06rem; line-height: 1.72; }
.actions { gap: 20px; flex-wrap: wrap; margin-top: 26px; }
.button { border-radius: 4px; display: inline-block; background: #e9c58a; color: #21190e; padding: .7rem 1.12rem; font-weight: 650; text-decoration: none; }
.button:hover { background: #f5d7a6; color: #21190e; }
.inline-link { color: var(--gold); font-weight: 550; font-size: .96rem; text-decoration-thickness: 1px; text-decoration-color: #847052; }
.platform, .duration { font: .84rem/1.5 ui-monospace, Consolas, monospace; color: #bfb3a2; }
.platform { margin-top: 14px; }
.platform span { color: #968776; }
.player { border: 1px solid #665742; border-radius: 9px; padding: 7px; background: linear-gradient(145deg,#493e30,#24211d 38%,#363027); box-shadow: 0 20px 45px #0005; }
.video-shell { border: 1px solid #100e0b; border-radius: 4px; overflow: hidden; background: #100f0e; }
video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.player figcaption { justify-content: space-between; padding: 10px 10px 3px; }
.player figcaption div { display: flex; align-items: baseline; gap: 12px; }
.kicker { font-size: .86rem; color: var(--gold); font-weight: 600; }
.player strong { font-weight: 600; font-size: 1.1rem; }
.key-strip { gap: clamp(18px, 3vw, 46px); padding-block: 20px; border-top: 1px solid var(--line); }
.key-strip p { font-size: .95rem; color: var(--soft); }
.keys { display: flex; gap: 5px; align-items: center; }
kbd { display: grid; place-items: center; width: 32px; height: 30px; border-radius: 4px; color: #251f16; background: linear-gradient(#f1e7d3,#cfc0a4); box-shadow: 0 3px #796c55; font: 600 .85rem/1 ui-monospace, Consolas, monospace; }
kbd.space { width: 58px; }
.features { padding: clamp(42px, 5vw, 72px) 0 38px; }
.section-head { justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h2 { font-size: clamp(1.85rem, 2.9vw, 2.85rem); line-height: 1.22; letter-spacing: -.025em; }
.feature-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(18px, 2.5vw, 40px); }
.thumb { display: block; border-radius: 5px; overflow: hidden; border: 1px solid #514638; background: var(--panel); }
.thumb img { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #171715; }
.feature-copy { padding: 16px 1px 0; }
.feature h3 { font-size: clamp(1.35rem, 1.7vw, 1.7rem); line-height: 1.35; letter-spacing: -.015em; margin: 5px 0 9px; }
.feature p { margin-bottom: 10px; }
figcaption { color: var(--soft); font-size: .89rem; }
code, pre { font-family: ui-monospace, Consolas, monospace; }
.foot { margin-top: 52px; padding: 25px 0 38px; border-top: 1px solid var(--line); justify-content: space-between; gap: 15px; font-size: .85rem; color: var(--soft); }
.foot .brand img { width: 100px; }
.guide { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 3fr); gap: clamp(24px, 5vw, 80px); margin-top: 48px; max-width: 1080px; }
.toc { align-self: start; position: sticky; top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.toc nav { display: grid; margin-top: 12px; gap: 4px; }
.toc a { display: block; padding: 7px 10px; text-decoration: none; color: var(--soft); border-left: 2px solid transparent; }
.toc [aria-current] { border-color: var(--gold); background: #25221e; color: var(--text); }
.article header { margin-bottom: 30px; }
.article h1 { font-size: clamp(2.55rem, 4.5vw, 4.4rem); line-height: 1.16; letter-spacing: -.03em; margin: 10px 0 16px; }
.article .lead { max-width: 60ch; }
.lesson { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 30px; scroll-margin-top: 18px; }
.lesson h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); margin-bottom: 12px; }
.lesson p { line-height: 1.8; max-width: 72ch; }
.lesson .keys { margin-block: 16px; }
.shot { margin-top: 18px; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 4px; }
.shot figcaption { margin-top: 6px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
pre { padding: 15px; background: #24211d; color: var(--gold); border-left: 2px solid #a68b5d; white-space: pre-wrap; overflow-wrap: anywhere; }
.adjacent { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; justify-content: space-between; gap: 20px; color: var(--gold); }
@media (max-width: 850px) {
    .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .lead { max-width: 62ch; }
    .feature-grid { gap: 16px; }
    .guide { grid-template-columns: 1fr; }
    .toc { position: static; }
    .toc nav { display: flex; flex-wrap: wrap; }
}
@media (max-width: 650px) {
    .wrap { width: calc(100% - 36px); }
    .mast { min-height: 66px; gap: 8px; }
    .brand img { width: 102px; }
    .mast nav { font-size: .85rem; gap: 12px; }
    .language { padding-left: 10px; }
    .hero-grid { padding-block: 38px 24px; }
    .hero h1 { font-size: clamp(2.7rem, 12vw, 4.6rem); margin-block: 18px 14px; }
    :lang(zh-CN) .hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.2rem); }
    .key-strip { align-items: flex-start; flex-direction: column; gap: 14px; }
    .key-strip { padding-block: 18px; }
    .section-head { flex-wrap: wrap; }
    .feature-grid, .pair { grid-template-columns: 1fr; gap: 28px; }
    .feature-copy { padding-top: 10px; }
    .features { padding-block: 36px; }
    .foot { margin-top: 30px; }
    .guide { margin-top: 22px; gap: 26px; }
    .toc a { padding: 4px 7px; font-size: .9rem; }
    .pair { gap: 0; }
}
