:root {
  color-scheme: dark;
  --ink: #170e12;
  --surface: #24141b;
  --cream: #f1e6d7;
  --muted: #cbb8a5;
  --gold: #e5c58e;
  --line: #614638;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; }
body { margin: 0; background: var(--ink); color: var(--cream); }
a { color: var(--gold); text-underline-offset: .25em; }
a:hover { color: #fff4df; }
a:focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
img { max-width: 100%; height: auto; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 2; padding: .8rem 1rem; background: var(--gold); color: var(--ink); }
.skip-link:focus { top: 1rem; color: var(--ink); }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer, main { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.header-inner { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; padding-block: .5rem; }
.brand img { display: block; width: 138px; height: 38px; }
.header-nav { display: flex; gap: 1.6rem; align-items: center; font-size: .9rem; }
.header-nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .7rem; margin: 2.2rem 0; color: var(--muted); font-size: .85rem; }
.breadcrumb a { color: var(--muted); }
.eyebrow { margin: 0 0 1.2rem; color: var(--gold); font-size: .75rem; font-weight: 600; letter-spacing: .16em; }
h1, h2, h3 { font-family: "Noto Serif TC", "Songti TC", Georgia, serif; font-weight: 500; }
h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1.35; letter-spacing: .01em; text-wrap: balance; }
.lead { max-width: 42rem; margin: 1.4rem 0; color: var(--muted); font-size: 1.15rem; line-height: 1.9; }
.byline { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.8rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.article-header { border-bottom: 1px solid var(--line); padding: 0 0 2.8rem; }
.reading-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(180px, 260px); gap: clamp(32px, 6vw, 96px); padding: 3rem 0 4rem; align-items: start; }
.article-content { min-width: 0; font-size: 1rem; line-height: 1.95; }
.article-content section + section { margin-top: 2.8rem; }
.article-content h2 { margin: 0 0 1rem; color: var(--gold); font-size: 1.7rem; line-height: 1.5; scroll-margin-top: 2rem; }
.article-content h3 { margin: 1.7rem 0 .5rem; font-size: 1.2rem; line-height: 1.6; }
.article-content p { margin: 0 0 1.1rem; }
.article-content ul, .article-content ol { margin: 1rem 0 1.3rem; padding-left: 1.5rem; }
.article-content li + li { margin-top: .6rem; }
.article-content strong { font-weight: 600; color: #fff4df; }
.note { margin: 1.7rem 0; padding: 1.2rem 1.4rem; border-left: 3px solid var(--gold); background: var(--surface); }
.note p:last-child { margin-bottom: 0; }
.sample { margin: 1.3rem 0; padding: 1.3rem 1.5rem; border: 1px solid var(--line); color: var(--gold); font-size: 1.05rem; }
.sample p { margin: 0; }
.toc { position: sticky; top: 2rem; border-top: 1px solid var(--line); padding-top: 1.2rem; }
.toc h2 { margin: 0 0 1rem; font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--muted); }
.toc ol { padding-left: 1.2rem; margin: 0; }
.toc li { padding-left: .15rem; margin-bottom: .8rem; color: var(--muted); font-size: .85rem; line-height: 1.8; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--gold); text-decoration: underline; }
.related { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.related h2 { margin: 0 0 1.3rem; font-size: 1.5rem; }
.related-links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; line-height: 1.8; }
.join { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 2rem; border: 1px solid var(--line); background: var(--surface); }
.join h2 { margin: 0 0 .6rem; font-size: 1.6rem; line-height: 1.5; }
.join p { margin: 0; max-width: 34rem; color: var(--muted); font-size: .95rem; line-height: 1.8; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: .7rem 1.4rem; border: 1px solid var(--gold); color: var(--ink); background: var(--gold); font-size: .95rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.button:hover { color: var(--ink); background: #f4dab0; }
.site-footer { display: flex; justify-content: space-between; gap: 1.2rem 2rem; flex-wrap: wrap; padding: 2.6rem 0; margin-top: 3rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; line-height: 1.8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.site-footer a { color: var(--muted); }
.index-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; padding: 1rem 0 3.5rem; }
.index-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.guide-list { border-top: 1px solid var(--line); }
.guide-item { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 2rem; align-items: center; padding: 2.2rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.guide-item .category { color: var(--muted); font-size: .8rem; letter-spacing: .06em; }
.guide-item h2 { margin: 0 0 .6rem; color: var(--cream); font-size: 1.6rem; line-height: 1.5; }
.guide-item p { margin: 0; max-width: 44rem; color: var(--muted); font-size: .95rem; line-height: 1.9; }
.guide-item .arrow { font-size: 1.6rem; }
.guide-item:hover h2 { color: var(--gold); }
.index-note { max-width: 46rem; margin: 2.5rem 0; color: var(--muted); font-size: .9rem; line-height: 1.9; }
@media (max-width: 760px) {
  .header-inner, .site-footer, main { width: calc(100% - 40px); }
  .header-inner { min-height: 76px; gap: 1rem; }
  .brand img { width: 116px; height: 32px; }
  .header-nav { gap: 1rem; font-size: .8rem; }
  .header-nav .desktop-link { display: none; }
  .breadcrumb { margin: 1.7rem 0; font-size: .8rem; }
  h1 { font-size: 2rem; }
  .lead { font-size: 1.05rem; }
  .article-header { padding-bottom: 2rem; }
  .reading-layout { display: flex; flex-direction: column; gap: 2.2rem; padding: 2rem 0 2.8rem; }
  .toc { position: static; order: -1; width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem 1.6rem; }
  .toc li { margin: 0; }
  .article-content { font-size: 1rem; }
  .article-content h2 { font-size: 1.45rem; }
  .join { align-items: flex-start; flex-direction: column; gap: 1.4rem; padding: 1.5rem; }
  .join h2 { font-size: 1.4rem; }
  .index-hero { grid-template-columns: 1fr; gap: 1.5rem; padding: .5rem 0 2rem; }
  .index-photo { aspect-ratio: 16 / 9; }
  .guide-item { grid-template-columns: minmax(0, 1fr) auto; gap: .8rem 1rem; padding: 1.8rem 0; }
  .guide-item .category { grid-column: 1 / -1; }
  .guide-item h2 { font-size: 1.4rem; }
}
@media (max-width: 380px) {
  .header-nav { gap: .7rem; }
  .toc ol { display: block; }
  .toc li + li { margin-top: .5rem; }
}
@media print {
  :root { color-scheme: light; }
  body { color: #1a1a1a; background: white; }
  .site-header, .toc, .join, .related, .site-footer, .skip-link { display: none; }
  main { width: 100%; }
  .reading-layout { display: block; padding-top: 1rem; }
  h1, .article-content h2, .lead, .byline, a { color: #1a1a1a; }
  .note { background: transparent; border-color: #444; }
}
