:root {
  --font-sans: 'Inter', -apple-system, system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Libre Baskerville', ui-serif, Georgia, Cambria, 'Times New Roman', serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  /* 色板：全站只用这些颜色，其余地方一律 var(--…) */
  --ink: #1d2a24;
  --ink-2: #26352d;
  --text: #393b32;
  --muted: #5e594f;
  --paper: #f4eee4;
  --sand: #eee7da;
  --card: #e7dcc9;
  --kraft: #d6bc95;
  --line: #c6b299;
  --brown: #9b6a42;
  --rust: #b95c33;
  --rust-2: #a8502f;
  --rust-text: #8c4529;
  --rust-dark: #69301d;
  --gold: #e0a06d;
  --on-dark: #f7f0e4;
  --on-dark-muted: #d6cdc0;
}

/* 基础重置（老站用 Tailwind，这里保持同样的起点） */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body { margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--kraft); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
body.kind-tool { background: var(--paper); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: inherit; font-weight: inherit; }
p, figure, dl, dd, blockquote, pre { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
img, svg, video, canvas { display: block; vertical-align: middle; }
img, video { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; padding: 0; background: transparent; }
button, [role="button"] { cursor: pointer; }
summary { cursor: pointer; }
.icon { width: 16px; height: 16px; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 4px; }

/* 容器 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .container { padding: 0 32px; } }
@media (min-width: 1024px) { .container { padding: 0 48px; } }

/* 页头 */
.site-header { position: sticky; top: 0; left: 0; right: 0; z-index: 50; background: var(--paper); color: var(--ink); border-top: 2px solid var(--rust); border-bottom: 1px solid var(--brown); }
.kind-tool .site-header { position: absolute; }
.site-header__bar { max-width: 1440px; height: 76px; margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; }
@media (min-width: 640px) { .site-header__bar { padding: 0 32px; } }
@media (min-width: 1024px) { .site-header__bar { padding: 0 48px; } }
.brand { display: inline-flex; align-items: center; gap: 12px; border-radius: 2px; }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; padding: 4px; border: 1px solid var(--brown); background: var(--card); box-shadow: 0 10px 22px rgba(71, 48, 31, .16); transition: transform .2s; }
.brand:hover .brand__mark { transform: translateY(-2px); }
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }
.brand__name { font-family: var(--font-serif); font-size: 18px; line-height: 28px; font-weight: 700; }
@media (min-width: 640px) { .site-header .brand__mark { width: 44px; height: 44px; } .site-header .brand__name { font-size: 20px; } }
.site-nav { display: none; height: 100%; align-items: center; gap: 20px; }
.site-nav a { position: relative; display: inline-flex; align-items: center; height: 100%; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); transition: color .2s; }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.site-nav a:hover { color: var(--rust); }
.site-nav a:hover::after { transform: scaleX(1); }
.menu-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--brown); border-radius: 2px; background: var(--card); color: var(--ink); transition: background-color .2s; }
.menu-toggle:hover { background: var(--kraft); }
.menu-toggle .icon { width: 20px; height: 20px; }
.menu-toggle__close, .menu-toggle[aria-expanded="true"] .menu-toggle__open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-toggle__close { display: block; }
.mobile-nav { margin: 0 16px; padding: 8px; border: 1px solid var(--brown); border-top: 2px solid var(--rust); background: var(--paper); box-shadow: 0 18px 36px rgba(29, 42, 36, .18); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 44px; padding: 12px; border-radius: 2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); transition: background-color .2s, color .2s; }
.mobile-nav a:hover { background: var(--card); color: var(--rust-text); }
@media (min-width: 1024px) { .site-nav { display: flex; } .menu-toggle, .mobile-nav { display: none !important; } }

/* 首页：标题区 + 合成器 */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sand); color: var(--ink); }
.hero__band { position: absolute; left: 0; right: 0; top: 0; height: 32rem; background: var(--card); pointer-events: none; }
.hero__inner { position: relative; max-width: 1440px; margin: 0 auto; padding: 96px 20px 40px; }
@media (min-width: 640px) { .hero__inner { padding: 128px 32px 56px; } }
@media (min-width: 1024px) { .hero__inner { padding-left: 48px; padding-right: 48px; } }
.hero__top { display: grid; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(189, 167, 139, .65); }
.hero__copy { max-width: 56rem; }
.hero__title { max-width: 48rem; font-family: var(--font-serif); font-size: 2.625rem; line-height: .96; text-wrap: balance; color: var(--ink-2); }
.hero__lead { margin-top: 20px; max-width: 42rem; font-size: 16px; line-height: 28px; color: var(--muted); }
@media (min-width: 640px) { .hero__title { font-size: 60px; } .hero__lead { margin-top: 24px; font-size: 20px; line-height: 32px; } }
.hero__top > .hero-facts { display: none; }
@media (min-width: 1024px) {
  .hero__top { grid-template-columns: minmax(0, 1.15fr) minmax(17rem, .55fr); align-items: end; gap: 64px; padding-bottom: 48px; }
  .hero__title { font-size: 72px; }
  .hero__top > .hero-facts { display: grid; padding-bottom: 4px; }
  .hero__facts-mobile { display: none; }
}
.hero-facts { display: grid; gap: 16px; padding-top: 20px; border-top: 1px solid rgba(189, 167, 139, .7); font-size: 14px; line-height: 24px; color: var(--muted); }
.hero__facts-mobile { margin-top: 28px; }
.hero-facts__item { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: 12px; }
.hero-facts__item + .hero-facts__item { padding-top: 16px; border-top: 1px solid rgba(198, 178, 153, .65); }
.hero-facts__item .icon { margin-top: 2px; color: var(--rust-2); }
.hero-facts dt { font-weight: 600; color: var(--ink-2); }
.hero__stage { margin-top: 32px; padding: 8px; border: 1px solid rgba(132, 98, 72, .45); background: var(--brown); box-shadow: 0 24px 54px rgba(78, 52, 30, .22); }
@media (min-width: 640px) { .hero__stage { margin-top: 40px; padding: 12px; } }
.hero__steps { display: grid; gap: 16px; padding: 20px; border: 1px solid rgba(189, 167, 139, .65); border-top: 0; background: var(--paper); font-size: 14px; line-height: 24px; color: var(--muted); }
.hero__steps span { font-weight: 600; color: var(--ink-2); }
@media (min-width: 640px) { .hero__steps { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px 28px; } }

/* 通用：大标题、正文、链接、按钮 */
.display { font-family: var(--font-serif); font-size: 36px; line-height: 1.02; }
@media (min-width: 640px) { .display { font-size: 48px; } }
.section-text { margin-top: 24px; max-width: 36rem; font-size: 16px; line-height: 28px; color: var(--muted); }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 24px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rust-text); transition: color .2s; }
.text-link:hover { color: var(--rust-dark); }
.text-link--green { color: var(--text); }
.text-link--green:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; width: fit-content; min-height: 48px; padding: 12px 20px; border-radius: 6px; font-size: 14px; line-height: 20px; font-weight: 600; transition: background-color .2s, transform .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: none; }
.btn .icon { width: 20px; height: 20px; }
.btn--rust { background: var(--rust-2); color: var(--on-dark); }
.btn--rust:hover { background: var(--rust-text); }
.btn--rust:focus-visible { outline-color: var(--gold); }
.btn--dark { flex-shrink: 0; justify-content: center; gap: 12px; background: var(--ink-2); color: #fff; }
.btn--dark:hover { background: var(--ink); }
.btn--dark:focus-visible { outline-color: var(--gold); }
.btn--dark .icon:last-child { width: 16px; height: 16px; }

/* 教程视频 */
.tutorial { scroll-margin-top: 32px; padding: 64px 0; background: var(--ink); color: #fff; }
@media (min-width: 640px) { .tutorial { padding: 80px 0; } }
@media (min-width: 1024px) { .tutorial { padding: 96px 0; } }
.tutorial__inner { max-width: 1280px; margin: 0 auto; padding: 0 20px; display: grid; gap: 48px; }
@media (min-width: 640px) { .tutorial__inner { padding: 0 32px; } }
@media (min-width: 1024px) { .tutorial__inner { padding: 0 48px; grid-template-columns: minmax(0, .9fr) minmax(360px, .6fr); align-items: center; gap: 80px; } }
.tutorial__copy { max-width: 42rem; }
.tutorial h2 { max-width: 36rem; font-family: var(--font-serif); font-size: 36px; line-height: 1.02; color: var(--on-dark); }
@media (min-width: 640px) { .tutorial h2 { font-size: 48px; } }
.tutorial__text { margin-top: 24px; max-width: 36rem; font-size: 16px; line-height: 28px; color: var(--on-dark-muted); }
.chapters { margin-top: 36px; border-top: 1px solid rgba(195, 181, 159, .35); border-bottom: 1px solid rgba(195, 181, 159, .35); }
.chapters li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; column-gap: 16px; padding: 16px 0; }
.chapters li + li { border-top: 1px solid rgba(195, 181, 159, .35); }
.chapters__num { font-family: var(--font-serif); font-size: 20px; line-height: 28px; color: var(--gold); }
.chapters h3 { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--on-dark); }
.chapters p { margin-top: 4px; font-size: 14px; line-height: 24px; color: var(--on-dark-muted); }
.chapters__time { padding-top: 2px; text-align: right; font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--on-dark-muted); }
@media (min-width: 640px) { .chapters li { grid-template-columns: 40px minmax(0, 1fr) auto; } .chapters__num { font-size: 24px; line-height: 32px; } .chapters h3 { font-size: 16px; line-height: 24px; } }
.tutorial__actions { margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .tutorial__actions { flex-direction: row; align-items: center; } }
.tutorial__note { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--on-dark-muted); }
.tutorial__note span { width: 8px; height: 8px; border-radius: 999px; background: var(--gold); }
.tutorial__video { width: 100%; max-width: 390px; margin: 0 auto; }
@media (min-width: 1024px) { .tutorial__video { justify-self: end; margin: 0; } }
.tutorial__frame { padding: 8px; border: 1px solid rgba(189, 167, 139, .6); background: var(--card); box-shadow: 0 22px 52px rgba(0, 0, 0, .3); }
@media (min-width: 640px) { .tutorial__frame { padding: 12px; } }
.tutorial__frame iframe { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; border: 0; background: #000; }
.tutorial__video figcaption { margin-top: 16px; font-size: 14px; line-height: 24px; color: var(--on-dark-muted); }

/* 功能 */
.features { scroll-margin-top: 32px; padding: 80px 0; background: var(--paper); }
@media (min-width: 640px) { .features, .first-chord, .ways, .tech, .faq { padding: 112px 0; } }
.features__grid { display: grid; gap: 40px; }
@media (min-width: 1024px) { .features__grid { grid-template-columns: .75fr 1.25fr; gap: 80px; } }
.features .display { max-width: 28rem; color: var(--ink-2); }
.features .section-text { max-width: 28rem; }
.features__list { display: grid; gap: 40px; }
@media (min-width: 640px) { .features__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.feature { padding-top: 20px; border-top: 1px solid var(--line); }
.feature .icon { width: 20px; height: 20px; stroke-width: 1.6; color: var(--rust-2); }
.feature h3 { margin-top: 20px; font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink-2); }
.feature p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }

/* 第一个和弦 */
.first-chord { scroll-margin-top: 32px; padding: 80px 0; background: var(--card); color: var(--ink-2); }
.first-chord__head { display: grid; gap: 32px; }
@media (min-width: 1024px) { .first-chord__head { grid-template-columns: 1fr .72fr; align-items: end; gap: 64px; } }
.first-chord .display { max-width: 48rem; }
.first-chord .section-text { margin-top: 0; color: var(--muted); }
.first-chord__steps { margin-top: 48px; display: grid; gap: 40px; }
@media (min-width: 768px) { .first-chord__steps { grid-template-columns: 1.2fr .9fr .9fr; gap: 24px; } }
@media (min-width: 1024px) { .first-chord__steps { margin-top: 56px; gap: 32px; } }
.step { padding-top: 20px; border-top: 1px solid var(--line); }
.step__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--brown); }
.step__media img { width: 100%; height: 100%; object-fit: cover; }
.step__num { position: absolute; top: 16px; left: 16px; padding: 4px 10px; background: rgba(244, 238, 228, .94); font-family: var(--font-serif); font-size: 14px; line-height: 20px; color: var(--rust-2); box-shadow: 0 4px 12px rgba(38, 29, 20, .18); }
.step__label { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--rust-text); }
.step__label .icon { stroke-width: 1.6; }
.step h3 { margin-top: 12px; font-size: 20px; line-height: 28px; font-weight: 600; }
.step__text { margin-top: 12px; font-size: 14px; line-height: 24px; color: var(--muted); }
.step__note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--rust); font-size: 14px; line-height: 24px; color: var(--text); }
.first-chord__foot { margin-top: 48px; display: flex; flex-direction: column; gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .first-chord__foot { margin-top: 56px; } }
@media (min-width: 1024px) { .first-chord__foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.first-chord__foot > p { max-width: 48rem; font-size: 14px; line-height: 28px; color: var(--muted); }
.first-chord__links { display: flex; flex-wrap: wrap; align-items: center; column-gap: 24px; row-gap: 12px; }
.first-chord__links .text-link { margin-top: 0; }

/* 玩法和录制 */
.ways { scroll-margin-top: 32px; padding: 80px 0; background: var(--paper); }
.ways__row { display: grid; align-items: center; gap: 48px; }
@media (min-width: 1024px) { .ways__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; } }
.ways figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 1px solid var(--line); }
.ways figcaption { margin-top: 16px; max-width: 32rem; font-size: 14px; line-height: 24px; color: var(--muted); }
.ways .display { max-width: 36rem; color: var(--ink-2); }
.ideas { margin-top: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ideas article { display: grid; gap: 12px; padding: 20px 0; }
.ideas article + article { border-top: 1px solid var(--line); }
@media (min-width: 640px) { .ideas article { grid-template-columns: 44px 1fr; } }
.ideas__num { font-family: var(--font-serif); font-size: 18px; line-height: 28px; color: var(--rust-2); }
.ideas h3 { font-size: 18px; line-height: 28px; font-weight: 600; color: var(--ink-2); }
.ideas p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }
.ways .text-link { margin-top: 28px; }
.ways__row--record { margin-top: 64px; padding-top: 64px; border-top: 1px solid var(--line); }
@media (min-width: 1024px) {
  .ways__row--record { margin-top: 96px; padding-top: 96px; grid-template-columns: .9fr 1.1fr; }
  .ways__record-copy { order: 2; }
  .ways__record-media { order: 1; }
}

/* 技术 */
.tech { scroll-margin-top: 32px; padding: 80px 0; background: var(--ink-2); color: #fff; }
.tech__grid { display: grid; gap: 48px; }
@media (min-width: 1024px) { .tech__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 80px; } }
.tech .display { max-width: 36rem; color: var(--on-dark); }
.tech .section-text { color: var(--on-dark-muted); }
.tech__rows { border-top: 1px solid rgba(216, 199, 174, .3); border-bottom: 1px solid rgba(216, 199, 174, .3); }
.tech__rows > div { display: grid; gap: 8px; padding: 20px 0; font-size: 14px; line-height: 20px; color: var(--on-dark-muted); }
.tech__rows > div + div { border-top: 1px solid rgba(216, 199, 174, .3); }
@media (min-width: 640px) { .tech__rows > div { grid-template-columns: 120px 1fr; align-items: center; } }
.tech__label { font-family: var(--font-mono); font-size: 12px; line-height: 16px; color: var(--gold); }

/* 常见问题 */
.faq { scroll-margin-top: 32px; padding: 80px 0; background: var(--sand); }
.faq__inner { max-width: 64rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .faq__inner { padding: 0 32px; } }
.faq__head { max-width: 42rem; }
.faq .display { color: var(--ink-2); }
.faq .section-text { margin-top: 20px; }
.faq__list { margin-top: 48px; border-top: 1px solid var(--line); }
.faq__list details { padding: 4px 0; border-bottom: 1px solid var(--line); }
.faq__list summary { padding: 20px 24px 20px 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink-2); }
.faq__list summary::marker { color: var(--rust-2); }
@media (min-width: 640px) { .faq__list summary { font-size: 18px; line-height: 28px; } }
.faq__list p { max-width: 48rem; padding-bottom: 24px; font-size: 14px; line-height: 28px; color: var(--muted); }
.faq__privacy { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; padding-top: 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .faq__privacy { flex-direction: row; align-items: center; justify-content: space-between; } }
.faq__privacy-copy { display: flex; gap: 16px; max-width: 36rem; }
.faq__privacy-copy .icon { width: 24px; height: 24px; margin-top: 2px; color: var(--rust-2); }
.faq__privacy h3 { font-weight: 600; color: var(--ink-2); }
.faq__privacy p { margin-top: 8px; font-size: 14px; line-height: 24px; color: var(--muted); }
.faq__privacy-links { display: flex; flex-shrink: 0; flex-wrap: wrap; column-gap: 20px; row-gap: 8px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--rust-text); }
.faq__privacy-links a:hover { color: var(--rust-dark); }

/* 底部号召 */
.cta { padding: 64px 0; background: var(--rust-2); color: var(--on-dark); }
@media (min-width: 640px) { .cta { padding: 80px 0; } }
.cta__inner { display: flex; flex-direction: column; gap: 32px; }
@media (min-width: 1024px) { .cta__inner { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.cta .display { max-width: 36rem; }
.cta__inner > div { max-width: 42rem; }
.cta p { margin-top: 20px; font-size: 16px; line-height: 28px; color: var(--on-dark); }

/* 内页外框：牛皮纸底 + 中间一张纸 */
.paper { position: relative; min-height: calc(100vh - 76px); padding-top: 1px; background: var(--kraft); }
.paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--brown); pointer-events: none; }
.paper__sheet { position: relative; max-width: 1440px; min-height: calc(100vh - 77px); margin: 0 auto; border-left: 1px solid rgba(155, 106, 66, .55); border-right: 1px solid rgba(155, 106, 66, .55); background: var(--paper); }
.paper__inner { max-width: 64rem; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .paper__inner { padding: 0 32px; } }
@media (min-width: 1024px) { .paper__inner { padding: 0 48px; } }

.back-chip { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 8px 12px; border: 1px solid var(--brown); border-radius: 2px; background: var(--card); font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); box-shadow: 0 8px 18px rgba(71, 48, 31, .14); transition: transform .2s; }
.back-chip:hover { transform: translateY(-2px); }
.back-chip .icon { transition: transform .2s; }
.back-chip:hover .icon { transform: translateX(-2px); }
.page-lead { margin-top: 20px; max-width: 42rem; font-size: 16px; line-height: 28px; color: var(--muted); }
@media (min-width: 640px) { .page-lead { font-size: 17px; line-height: 32px; } }

/* 普通内页 */
.static-page { padding: 48px 0; }
@media (min-width: 640px) { .static-page { padding: 64px 0; } }
@media (min-width: 1024px) { .static-page { padding: 80px 0; } }
.static-page__head { max-width: 56rem; padding-bottom: 36px; border-bottom: 2px solid var(--ink); }
@media (min-width: 640px) { .static-page__head { padding-bottom: 44px; } }
.static-page h1 { margin-top: 40px; max-width: 48rem; font-family: var(--font-serif); font-size: 36px; line-height: 1.13; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .static-page h1 { margin-top: 48px; font-size: 48px; } }
@media (min-width: 1024px) { .static-page h1 { font-size: 3.5rem; } }
.updated { margin-top: 28px; display: inline-flex; padding-left: 12px; border-left: 1px solid var(--rust); font-size: 14px; line-height: 20px; color: var(--muted); }
.static-page .prose { margin-top: 44px; }
@media (min-width: 640px) { .static-page .prose { margin-top: 56px; } }

/* 正文排版 */
.prose { max-width: 42rem; font-size: 16px; line-height: 32px; color: var(--text); }
@media (min-width: 640px) { .prose { font-size: 17px; } }
.prose p { margin: 0 0 28px; line-height: 32px; color: var(--text); }
.prose a { font-weight: 600; color: var(--rust-text); text-decoration: underline; text-decoration-color: var(--rust); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.prose a:hover { color: var(--rust-dark); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose em { font-style: italic; }
.prose h2 { margin: 48px 0 20px; padding-left: 16px; border-left: 1px solid var(--rust); font-family: var(--font-serif); font-size: 24px; line-height: 1.25; color: var(--ink); }
@media (min-width: 640px) { .prose h2 { font-size: 30px; } }
.prose h3 { margin: 36px 0 12px; font-family: var(--font-serif); font-size: 20px; line-height: 28px; color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 28px 24px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { padding-left: 4px; line-height: 32px; color: var(--text); }
.prose li + li { margin-top: 8px; }
.prose li::marker { color: var(--rust); }
.prose li p { margin-bottom: 0; }
.prose blockquote { margin: 32px 0; padding-left: 20px; border-left: 1px solid var(--rust); font-family: var(--font-serif); font-size: 18px; line-height: 32px; color: var(--muted); }
.prose code { padding: 2px 6px; background: var(--card); color: var(--text); font-family: var(--font-mono); font-size: .9em; }
.prose hr { margin: 40px 0; border-top: 1px solid var(--line); }
.prose table { display: block; overflow-x: auto; width: 100%; margin: 32px 0; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 20px; }
.prose th { padding: 10px 12px; border: 1px solid var(--brown); background: var(--card); font-weight: 600; color: var(--ink); text-align: left; }
.prose td { padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.prose img { margin: 32px 0; border: 1px solid var(--line); }

/* 博客列表 */
.blog-index { padding: 56px 20px; }
@media (min-width: 640px) { .blog-index { padding: 64px 32px; } }
@media (min-width: 1024px) { .blog-index { padding: 80px 48px; } }
.blog-index__inner { max-width: 64rem; margin: 0 auto; }
.blog-index__head { padding-bottom: 36px; border-bottom: 2px solid var(--ink); }
@media (min-width: 640px) { .blog-index__head { padding-bottom: 44px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--rust-text); }
.blog-index h1 { margin-top: 20px; font-family: var(--font-serif); font-size: 36px; line-height: 1.05; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .blog-index h1 { font-size: 48px; } }
@media (min-width: 1024px) { .blog-index h1 { font-size: 3.5rem; } }
.blog-grid { margin-top: 48px; display: grid; gap: 20px; }
@media (min-width: 640px) { .blog-grid { margin-top: 64px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog-card { display: flex; flex-direction: column; gap: 12px; padding: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); transition: border-color .2s, transform .2s, box-shadow .2s; }
.blog-card:hover { transform: translateY(-2px); border-color: var(--brown); box-shadow: 0 10px 24px rgba(71, 48, 31, .12); }
.blog-card h2 { font-family: var(--font-serif); font-size: 16px; line-height: 1.375; font-weight: 700; color: var(--ink-2); }
.blog-card:hover h2 { color: var(--rust-text); }
.blog-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; line-height: 1.625; color: var(--muted); }
.blog-card__date { margin-top: auto; display: flex; align-items: center; gap: 6px; padding-top: 12px; border-top: 1px solid var(--card); font-size: 12px; line-height: 16px; color: var(--muted); }
.blog-card__date .icon { width: 14px; height: 14px; }
.blog-empty { margin-top: 48px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; font-family: var(--font-serif); font-size: 20px; color: var(--ink-2); }

/* 博客文章 */
.post { padding: 40px 20px; }
@media (min-width: 640px) { .post { padding: 56px 32px; } }
@media (min-width: 1024px) { .post { padding: 64px 48px; } }
.post__inner { max-width: 48rem; margin: 0 auto; }
.post .back-chip { min-height: 44px; }
.post__head { margin-top: 40px; padding-bottom: 32px; border-bottom: 2px solid var(--ink); }
@media (min-width: 640px) { .post__head { margin-top: 48px; padding-bottom: 40px; } }
.post h1 { font-family: var(--font-serif); font-size: 36px; line-height: 1.08; font-weight: 700; color: var(--ink); }
@media (min-width: 640px) { .post h1 { font-size: 48px; } }
@media (min-width: 1024px) { .post h1 { font-size: 3.5rem; } }
.post__meta { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 20px; row-gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.post__meta time { display: inline-flex; align-items: center; gap: 8px; }
.post__body { margin-top: 40px; max-width: none; }
@media (min-width: 640px) { .post__body { margin-top: 48px; } }

/* 404 */
.notfound { padding: 80px 20px; }
.notfound h1 { font-family: var(--font-serif); font-size: 36px; line-height: 1.1; font-weight: 700; }
.notfound .back-chip { margin-top: 32px; }

/* 页脚 */
.site-footer { border-top: 2px solid var(--rust); background: var(--ink); color: var(--paper); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 56px 20px 28px; }
@media (min-width: 640px) { .site-footer__inner { padding: 64px 32px 28px; } }
@media (min-width: 1024px) { .site-footer__inner { padding-left: 48px; padding-right: 48px; } }
.site-footer__top { display: grid; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(231, 220, 201, .25); }
@media (min-width: 1024px) { .site-footer__top { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; } }
.site-footer__about { max-width: 24rem; }
.brand--footer .brand__mark { box-shadow: 0 10px 22px rgba(0, 0, 0, .24); }
.brand--footer .brand__name { font-size: 24px; line-height: 32px; }
.site-footer__rule { margin-top: 24px; width: 64px; height: 1px; background: var(--rust); }
.site-footer__tagline { margin-top: 20px; font-size: 14px; line-height: 24px; color: rgba(231, 220, 201, .72); }
.site-footer__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; font-size: 14px; line-height: 20px; }
@media (min-width: 640px) { .site-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 48px; } }
.site-footer__heading { padding-left: 12px; border-left: 1px solid var(--brown); font-weight: 600; color: var(--paper); }
.site-footer__links { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; color: rgba(231, 220, 201, .72); }
.site-footer__links a { width: fit-content; border-radius: 2px; transition: color .2s; }
.site-footer__links a:hover { color: var(--paper); }
.site-footer a:focus-visible { outline-color: var(--card); }
.site-footer__bottom { display: flex; align-items: center; gap: 20px; padding-top: 24px; }
.site-footer__line { flex: 1; height: 1px; background: rgba(231, 220, 201, .2); }
.site-footer__bottom p { text-align: right; font-size: 12px; line-height: 16px; color: rgba(231, 220, 201, .6); }
.site-footer__badges { margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.site-footer__extra { margin-top: 20px; text-align: center; font-size: 14px; line-height: 20px; color: rgba(231, 220, 201, .72); }
.site-footer__extra a { border-radius: 2px; text-decoration: underline; text-decoration-color: rgba(231, 220, 201, .5); text-underline-offset: 4px; }
.site-footer__extra a:hover { color: var(--paper); }


/* 博客导语和文章底部按钮 */
.blog-intro { margin-top: 32px; }
.blog-intro p:last-child { margin-bottom: 0; }
.post-cta { margin-top: 48px; padding-top: 28px; border-top: 2px solid var(--ink); display: flex; flex-direction: column; gap: 16px; }
.post-cta p { font-size: 14px; line-height: 24px; color: var(--muted); }
.post-cta p a { font-weight: 600; color: var(--rust-text); text-decoration: underline; text-decoration-color: var(--rust); text-underline-offset: 4px; }
.post-cta p a:hover { color: var(--rust-dark); }

/* 首页教程段：链到完整和弦表 */
.tutorial__more { margin-top: 20px; font-size: 14px; line-height: 24px; color: var(--on-dark-muted); }
.tutorial__more a { font-weight: 600; color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }
.tutorial__more a:hover { color: var(--on-dark); }


/* Device matrix on /compatibility */
.compat-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:24px 0}
.prose .compat-table{width:100%;border-collapse:collapse;margin-left:0;table-layout:fixed;font-size:15px;line-height:1.5}
.prose .compat-table th,.prose .compat-table td{text-align:left;vertical-align:top;padding:12px 14px;border-bottom:1px solid var(--line,currentColor)}
.prose .compat-table th:nth-child(1),.prose .compat-table td:nth-child(1){width:26%}
.compat-status{display:block;margin-top:4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--rust-text,currentColor)}
.compat-status--none{color:var(--muted,currentColor)}
.prose .compat-table thead th{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,currentColor);border-bottom-width:2px;white-space:nowrap}
.prose .compat-table tbody td:first-child{font-weight:600;min-width:150px}
@media (max-width:640px){.static-page__head h1,.static-page>header h1{font-size:1.65rem!important;line-height:1.18;letter-spacing:-.02em;text-wrap:balance}}
@media (max-width:768px){
.compat-table-wrap{overflow-x:visible;margin:20px 0}
.prose .compat-table{min-width:0;font-size:15px;line-height:1.5}
.prose .compat-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.prose .compat-table,.prose .compat-table tbody,.prose .compat-table tr,.prose .compat-table td{display:block;width:auto}
.prose .compat-table tr{padding:16px 0;border-bottom:1px solid var(--line,currentColor)}
.prose .compat-table tbody tr:last-child{border-bottom:0;padding-bottom:0}
.prose .compat-table tbody td{border:0;padding:0;min-width:0}
.prose .compat-table td:nth-child(1){width:auto}
.prose .compat-table tbody td:first-child{font-size:17px;font-weight:600;line-height:1.3}
.prose .compat-table tbody td:not(:first-child){margin-top:8px}
.prose .compat-table tbody td:not(:first-child)::before{content:attr(data-label);display:block;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,currentColor);margin-bottom:2px}
}


/* 2026-11-20：内页与文章页排版修正（只作用于 page / post 模版内部） */
.static-page .updated,
.post .post__meta { margin: 16px 0 32px; }
.static-page .static-page__head,
.post .post__head { padding-bottom: 24px; }

@media (max-width: 768px) {
  .static-page .back-chip,
  .post .back-chip { font-size: 13px; padding: 6px 12px; }
  .static-page .prose,
  .post .post__body { font-size: 16.5px; line-height: 1.68; }
  .static-page .prose h2,
  .post .post__body h2 { margin-top: 40px; line-height: 1.25; }
  .static-page .prose table,
  .post .post__body table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

@media (min-width: 900px) {
  .static-page .prose,
  .post .post__body { max-width: 72ch; }
}

/* 2026-11-20：内页正文链接与手机端大标题（限定在 page / post 内） */
.static-page .prose a,
.post .post__body a {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rust);
}

@media (max-width: 768px) {
  .post .post__head h1 { font-size: clamp(1.75rem, 7.5vw, 2.4rem); line-height: 1.2; }
  .static-page .static-page__head h1 { font-size: clamp(1.85rem, 8vw, 2.5rem); line-height: 1.2; }
  .post .post__inner, .static-page .static-page__head { padding-left: 16px; padding-right: 16px; }
}



/* Adsterra 广告位：页头下 728x90（只在宽屏）、正文上 300x250、页脚上原生横幅 */
.ad-slot { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 16px; text-align: center; }
.ad-slot__label { margin: 0 0 10px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.ad-slot__box { margin: 0 auto; max-width: 100%; overflow: hidden; }
.ad-slot__box--728 { width: 728px; min-height: 90px; }
.ad-slot__box--300 { width: 300px; min-height: 250px; }
.ad-slot--top { display: none; }
@media (min-width: 768px) { .ad-slot--top { display: block; } }
.paper .ad-slot--content { margin: 32px 0 40px; border: 1px solid var(--line); }
.ad-slot--native { border-bottom: 0; padding: 24px 20px; }
.ad-slot__wrap { max-width: 1280px; margin: 0 auto; min-width: 0; }
