:root {
  color-scheme: light;
  --background: #f7f5f1;
  --surface: #fffdf9;
  --surface-soft: #fbfaf7;
  --text: #1f2320;
  --secondary: #6f766f;
  --tertiary: #92988f;
  --primary: #5f806c;
  --primary-strong: #486655;
  --primary-soft: #e8f0ea;
  --accent-soft: #f4e7d5;
  --line: #e8e1d7;
  --border: #ede8e0;
  --shadow: 0 24px 70px rgb(66 55 42 / 8%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
:focus-visible { outline: 3px solid rgb(95 128 108 / 45%); outline-offset: 3px; }

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 10px 14px; border-radius: 10px; background: var(--text); color: white;
  text-decoration: none; transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  border-bottom: 1px solid rgb(232 225 215 / 78%);
  background: rgb(247 245 241 / 90%); backdrop-filter: blur(18px);
}
.nav { display: flex; min-height: 72px; align-items: center; gap: 28px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  color: var(--primary-strong); font-family: "Songti SC", "Noto Serif SC", serif;
  font-size: 21px; letter-spacing: .08em; text-decoration: none; white-space: nowrap;
}
.brand-mark {
  display: grid; width: 34px; height: 34px; place-items: center; border-radius: 12px;
  background: var(--primary-soft); font-family: system-ui, sans-serif; font-size: 18px; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 22px; color: var(--secondary); font-size: 14px; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--primary-strong); }
.language-link {
  display: inline-flex; min-height: 36px; align-items: center; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--secondary);
  font-size: 13px; font-weight: 650; text-decoration: none; white-space: nowrap;
}
.language-link:hover { border-color: #d8e3da; color: var(--primary-strong); }

.button {
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center;
  padding: 0 22px; border: 1px solid transparent; border-radius: 16px;
  font: inherit; font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: var(--primary-strong); }
.button-download { border-color: #c98655; background: #fff4e8; color: #8b4e2d; }
.button-download:hover { border-color: #b86d3d; background: #ffe9d4; }
.button-secondary { border-color: var(--line); background: rgb(255 253 249 / 75%); color: var(--text); }
.button-small { min-height: 40px; padding: 0 17px; border-radius: 14px; font-size: 14px; white-space: nowrap; }

main { overflow: hidden; }
.breadcrumb { padding: 28px 0 0; color: var(--tertiary); font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breadcrumb li:not(:last-child)::after { margin-left: 8px; content: "/"; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--primary-strong); }

.hero { padding: 68px 0 76px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 64px; align-items: center; }
.eyebrow { color: var(--primary); font-size: 13px; font-weight: 750; letter-spacing: .12em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Songti SC", "Noto Serif SC", serif; text-wrap: balance; }
h1 { max-width: 820px; margin: 16px 0 22px; font-size: clamp(40px, 6vw, 64px); font-weight: 600; letter-spacing: -.035em; line-height: 1.16; }
.hero-lead { max-width: 760px; margin-bottom: 0; color: var(--secondary); font-size: 18px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-note {
  padding: 28px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(145deg, var(--surface), var(--primary-soft)); box-shadow: var(--shadow);
}
.hero-note strong { display: block; margin-bottom: 14px; font-family: "Songti SC", serif; font-size: 23px; }
.hero-note p { margin-bottom: 0; color: var(--secondary); font-size: 14px; line-height: 1.8; }

.section { padding: 76px 0; }
.section-soft { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-soft); }
.section-heading { max-width: 720px; margin-bottom: 34px; }
.section-heading h2 { margin: 10px 0 14px; font-size: clamp(29px, 4vw, 43px); font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.section-heading p { margin-bottom: 0; color: var(--secondary); line-height: 1.8; }
.prose { max-width: 760px; }
.prose h2 { margin: 56px 0 16px; font-size: clamp(27px, 3.6vw, 37px); font-weight: 600; line-height: 1.35; }
.prose h3 { margin: 34px 0 12px; font-size: 20px; }
.prose p, .prose li { color: var(--secondary); line-height: 1.9; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose strong { color: var(--text); }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card {
  display: block; padding: 26px; border: 1px solid var(--border); border-radius: 24px;
  background: var(--surface); text-decoration: none;
}
a.card { transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
a.card:hover { transform: translateY(-2px); border-color: #d8e3da; box-shadow: 0 16px 36px rgb(66 55 42 / 7%); }
.card-tag { display: inline-block; margin-bottom: 18px; padding: 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: 12px; font-weight: 700; }
.card h2, .card h3 { margin-bottom: 10px; font-family: inherit; font-size: 19px; }
.card p { margin-bottom: 0; color: var(--secondary); font-size: 14px; line-height: 1.75; }
.card-link { display: inline-block; margin-top: 18px; color: var(--primary-strong); font-size: 14px; font-weight: 700; }

.toc { margin: 10px 0 38px; padding: 22px 24px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); }
.toc strong { display: block; margin-bottom: 11px; }
.toc ol { display: grid; gap: 8px; margin: 0; padding-left: 20px; }
.toc a { color: var(--secondary); font-size: 14px; text-decoration: none; }
.toc a:hover { color: var(--primary-strong); }

.template-box { margin: 24px 0; overflow: hidden; border: 1px solid #dce6de; border-radius: 24px; background: var(--surface); }
.template-title { padding: 20px 24px; background: var(--primary-soft); }
.template-title strong { display: block; font-size: 18px; }
.template-title span { display: block; margin-top: 5px; color: var(--secondary); font-size: 13px; }
.field-list { margin: 0; padding: 0; list-style: none; }
.field-list li { display: grid; grid-template-columns: minmax(120px, .34fr) 1fr; gap: 18px; padding: 17px 24px; border-top: 1px solid var(--border); }
.field-list b { font-size: 14px; }
.field-list span { color: var(--secondary); font-size: 14px; line-height: 1.65; }

.example { margin: 26px 0; padding: 24px; border-left: 4px solid var(--primary); border-radius: 0 20px 20px 0; background: var(--surface); }
.example-label { display: block; margin-bottom: 12px; color: var(--primary-strong); font-size: 12px; font-weight: 750; letter-spacing: .08em; }
.example p:last-child { margin-bottom: 0; }
.notice { margin: 28px 0; padding: 20px 22px; border: 1px solid #eadcc7; border-radius: 18px; background: #fcf6ed; color: #765d3e; font-size: 14px; line-height: 1.75; }

.checklist { display: grid; gap: 12px; margin: 24px 0; }
.check-group { padding: 24px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
.check-group h3 { margin-bottom: 14px; }
.check-group label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; color: var(--secondary); line-height: 1.6; cursor: pointer; }
.check-group input { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; accent-color: var(--primary); }

.related { border-top: 1px solid var(--line); }
.closing { padding: 76px 0; }
.closing-inner { padding: 52px 28px; border-radius: 30px; background: var(--primary-strong); color: white; text-align: center; }
.closing h2 { max-width: 680px; margin: 0 auto 16px; font-size: clamp(30px, 4.6vw, 44px); font-weight: 600; line-height: 1.3; }
.closing p { max-width: 620px; margin: 0 auto 26px; color: rgb(255 255 255 / 76%); line-height: 1.75; }
.closing .button { background: white; color: var(--primary-strong); }

.site-footer { padding: 30px 0 42px; border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-note { max-width: 600px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 32px, 560px); }
  .nav { min-height: 64px; gap: 10px; flex-wrap: wrap; padding: 10px 0; }
  .brand-mark { display: none; }
  .brand { font-size: 18px; letter-spacing: .04em; }
  .language-link { min-height: 34px; padding: 0 10px; }
  .button-small { padding: 0 12px; font-size: 13px; }
  .breadcrumb { padding-top: 22px; }
  .hero { padding: 48px 0 60px; }
  h1 { font-size: clamp(37px, 11vw, 51px); }
  .hero-lead { font-size: 17px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .card-grid, .card-grid.two { grid-template-columns: 1fr; }
  .field-list li { grid-template-columns: 1fr; gap: 5px; }
  .closing { padding: 60px 0; }
  .closing-inner { padding: 44px 22px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media print {
  .site-header, .breadcrumb, .hero-actions, .related, .closing, .site-footer { display: none !important; }
  body { background: white; }
  .hero, .section { padding: 24px 0; }
  .check-group { break-inside: avoid; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, a.card { transition: none; }
}
