:root {
  --bg: #faf9f5;
  --card: #ffffff;
  --soft: #f5f0e8;
  --ink: #141413;
  --text: #3d3d3a;
  --muted: #6c6a64;
  --line: #e6dfd8;
  --primary: #cc785c;
  --primary-dark: #a9583e;
  --accent: #5db8a6;
  --radius: 12px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .08);
  --serif: "EB Garamond", "Songti SC", "STSong", Georgia, serif;
  --sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); }
img { max-width: 100%; height: auto; }
a { color: var(--primary-dark); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 12px; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
h1 { font-size: 48px; letter-spacing: -.5px; }
h2 { font-size: 28px; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 16px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: var(--card); padding: 8px 12px; z-index: 10; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.section { padding: 48px 0; }
.section-soft { background: var(--soft); }
.lead { font-size: 18px; color: var(--muted); max-width: 70ch; }
.meta { font-size: 14px; color: var(--muted); margin-bottom: 8px; }

/* 页头页脚 */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 24px; }
.nav a { color: var(--text); text-decoration: none; font-size: 14px; }
.nav a:hover { color: var(--primary-dark); }
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 24px; margin-top: 48px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); margin-top: 12px; max-width: 32ch; }
.footer-title { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.site-footer li { margin-bottom: 8px; }
.site-footer li a { color: var(--muted); text-decoration: none; }
.site-footer li a:hover { color: var(--primary-dark); }
.footer-copy { color: var(--muted); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }

/* 首屏 */
.hero { padding: 48px 0 32px; text-align: center; }
.hero .lead { margin: 0 auto 32px; }
.hero .narrow, .section .narrow { margin: 0 auto; }
.tool-card { text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 24px; }

/* 按钮 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border-radius: var(--radius); background: var(--primary-dark); color: #fff; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; }
.btn:hover { background: #8a4630; color: #fff; }

/* 首页区块 */
.steps { counter-reset: step; display: grid; gap: 16px; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-dark); color: #fff; font-weight: 600; display: grid; place-items: center; font-size: 14px; }
.steps p, .uses p, .learn p, .card p { color: var(--muted); margin: 0; }
.narrow-head { max-width: 820px; margin: 0 auto 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 820px; margin: 0 auto; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-1); }
.uses { display: grid; gap: 0; border-top: 1px solid var(--line); }
.uses li { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.uses h3 { margin: 0; }
.center-head { text-align: center; margin-bottom: 24px; }
.learn { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; max-width: 1000px; margin: 0 auto; }
.learn li { border-left: 3px solid var(--primary); padding-left: 16px; }

/* FAQ / 相关文章 / CTA */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary-dark); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary h3 { margin: 0; }
.faq details p { margin: 12px 0 0; color: var(--text); }
.related { display: grid; gap: 8px; }
.related li a { display: block; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.related li a:hover { border-color: var(--primary); }
.cta { background: var(--ink); color: #faf9f5; border-radius: var(--radius); padding: 32px; text-align: center; }
.cta h2 { color: #faf9f5; }
.cta p { color: #a09d96; }

/* 内页：表格、声调、音节 */
.examples, .prose table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.examples th, .examples td, .prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.examples th, .prose th { background: var(--soft); color: var(--ink); font-weight: 600; font-size: 14px; }
.examples tr:last-child td, .prose tr:last-child td { border-bottom: 0; }
.examples td:last-child { font-family: var(--mono); color: var(--primary-dark); }
.tones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 32px; }
.tones li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.tones p { margin: 0; color: var(--muted); font-size: 14px; }
.sound-group { margin-top: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: 14px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }

/* 正文 */
.page-head { margin-bottom: 32px; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 32px; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 16px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 8px; }
.prose blockquote { margin: 0 0 16px; padding: 12px 16px; border-left: 3px solid var(--primary); background: var(--soft); color: var(--muted); }
.prose blockquote p:last-child { margin: 0; }
.prose code { font-family: var(--mono); font-size: .9em; background: var(--soft); padding: 2px 6px; border-radius: 4px; }
.prose pre { background: var(--soft); padding: 16px; border-radius: var(--radius); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { display: block; overflow-x: auto; margin-bottom: 16px; }
.cover { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 32px; }
.back { font-size: 14px; }
.back a { text-decoration: none; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.post-card a { display: block; text-decoration: none; color: inherit; height: 100%; }
.post-card h2 { font-size: 22px; }
.post-card p:last-child { margin: 0; color: var(--muted); }
.post-card:hover { border-color: var(--primary); }

@media (max-width: 640px) {
  h1 { font-size: 30px; }
  h2 { font-size: 22px; }
  .wrap { padding: 0 16px; }
  .section { padding: 32px 0; }
  .nav { gap: 16px; }
  .tool-card { padding: 16px; }
  .footer-grid, .grid-2, .learn, .post-list { grid-template-columns: 1fr; }
  .tones { grid-template-columns: 1fr 1fr; }
  .uses li { grid-template-columns: 1fr; gap: 4px; }
  .btn { width: 100%; }
}
