:root {
  --color-ink: #2e2923;
  --color-muted: #6f665b;
  --color-bg: #f8f5ef;
  --color-surface: #fffdf8;
  --color-stone: #e9e1d3;
  --color-stone-light: #f1ebe2;
  --color-earth: #7b6046;
  --color-earth-dark: #4f3f31;
  --color-gold: #a77a36;
  --shadow-soft: 0 20px 50px rgba(70, 55, 38, 0.12);
  --radius: 8px;
  --container: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--color-ink); background: var(--color-bg); font-family: "Noto Serif TC", "Source Han Serif TC", "PingFang TC", "Microsoft JhengHei", serif; line-height: 1.85; text-rendering: optimizeLegibility; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.narrow { max-width: 820px; }
.skip-link { position: absolute; top: 12px; left: 12px; z-index: 30; padding: 8px 14px; color: var(--color-surface); background: var(--color-earth-dark); border-radius: 4px; transform: translateY(-140%); }
.skip-link:focus { transform: translateY(0); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(248, 245, 239, 0.94); border-bottom: 1px solid rgba(123, 96, 70, 0.16); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 24px; }
.site-title { display: inline-flex; align-items: center; gap: 18px; font-weight: 700; text-decoration: none; color: var(--color-earth-dark); white-space: nowrap; }
.site-title span { display: inline-flex; align-items: center; min-height: 2.15em; color: var(--color-earth-dark); font-size: 1.18rem; line-height: 1.2; }
.site-logo { width: 154px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; font-size: 0.95rem; }
.site-nav a, .back-nav a, .text-link, .pager-card, .footer-link { text-decoration: none; transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease; }
.site-nav a { padding: 8px 13px; border-bottom: 2px solid transparent; color: var(--color-muted); }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current="page"] { color: var(--color-earth-dark); border-color: var(--color-gold); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid rgba(123, 96, 70, 0.24); border-radius: 6px; background: var(--color-surface); color: var(--color-earth-dark); cursor: pointer; }
.nav-toggle-line { display: block; width: 18px; height: 2px; margin: 4px auto; background: currentColor; }
.hero { position: relative; min-height: 74vh; display: grid; align-items: end; overflow: hidden; color: #fffdf8; }
.hero-picture, .hero-image, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { object-fit: cover; }
.hero-picture .hero-image { position: static; width: 100%; height: 100%; }
.hero-image.hero-image-contain { object-fit: contain; background: #241f19; }
.hero-image.hero-image-align-top { object-position: top center; }
.hero-image.hero-image-natural { filter: contrast(1.02) saturate(1.02); }
.hero-image.hero-image-bright { filter: brightness(1.48) contrast(1.08) saturate(1.08); }
.hero-image.hero-image-focus-low { object-position: center 72%; }
.hero-overlay { background: linear-gradient(90deg, rgba(40,33,26,0.76), rgba(40,33,26,0.38) 58%, rgba(40,33,26,0.2)), linear-gradient(0deg, rgba(40,33,26,0.48), rgba(40,33,26,0.08)); }
.hero-overlay.hero-overlay-light { background: linear-gradient(90deg, rgba(40,33,26,0.48), rgba(40,33,26,0.2) 58%, rgba(40,33,26,0.08)), linear-gradient(0deg, rgba(40,33,26,0.22), rgba(40,33,26,0.02)); }
.hero-overlay.hero-overlay-river { background: linear-gradient(90deg, rgba(34,27,21,0.82), rgba(34,27,21,0.46) 34%, rgba(34,27,21,0.12) 58%, rgba(34,27,21,0) 76%), linear-gradient(0deg, rgba(34,27,21,0.42), rgba(34,27,21,0.08) 42%, rgba(34,27,21,0)); }
.hero-content { position: relative; z-index: 1; padding: 0 0 88px; }
.eyebrow, .section-kicker, .topic-number { margin: 0 0 10px; color: var(--color-gold); font-size: 0.9rem; font-weight: 700; }
.hero .eyebrow { color: #e8c982; }
.hero h1 { margin: 0; line-height: 1.18; font-size: clamp(2.45rem, 6vw, 5rem); font-weight: 700; }
.hero p:last-child, .hero-content > p { max-width: 760px; margin: 22px 0 0; font-size: clamp(1.05rem, 2vw, 1.3rem); color: rgba(255,253,248,0.9); }
.home-link-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 26px; padding: 9px 18px; color: var(--color-earth-dark); background: rgba(255,253,248,0.9); border: 1px solid rgba(232,201,130,0.68); border-radius: 4px; font-weight: 700; text-decoration: none; }
.home-link-button:hover, .home-link-button:focus-visible { color: var(--color-surface); background: var(--color-earth-dark); }
.home-link-button.dark { color: var(--color-earth-dark); }
.section { padding: 88px 0; }
.intro-section { background: var(--color-surface); }
.section h2 { margin: 0 0 20px; color: var(--color-earth-dark); line-height: 1.35; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-heading { max-width: 760px; margin-bottom: 36px; }
.article-shell { max-width: 900px; }
.article-content { max-width: 860px; margin: 0 auto; font-size: 1.06rem; }
.article-content h2 { margin-top: 2.2em; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 2.1em 0 0.7em; color: var(--color-earth-dark); font-size: 1.36rem; line-height: 1.45; }
.article-content p { margin: 0; color: #393229; }
.article-content p + p { margin-top: 1.18em; }
.article-content hr { margin: 42px 0; border: 0; border-top: 1px solid rgba(123,96,70,0.2); }
.table-wrap { margin: 28px 0; overflow-x: auto; border: 1px solid rgba(123,96,70,0.14); border-radius: var(--radius); background: var(--color-surface); }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.95rem; }
th, td { padding: 12px 14px; border-bottom: 1px solid rgba(123,96,70,0.12); text-align: left; vertical-align: top; }
th { color: var(--color-earth-dark); background: var(--color-stone-light); }
.topic-section { background: linear-gradient(180deg, var(--color-bg), #f0e9dd); }
.site-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.site-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; background: rgba(255,253,248,0.86); border: 1px solid rgba(123,96,70,0.14); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--color-stone-light); }
.card-image picture,
.card-image img { display: block; width: 100%; height: 100%; }
.card-image img { object-fit: cover; transition: transform 220ms ease; }
.site-card:hover .card-image img { transform: scale(1.018); }
.card-body { padding: 24px; }
.card-body h3 { margin: 0 0 12px; color: var(--color-earth-dark); font-size: 1.22rem; line-height: 1.4; }
.card-body p { margin: 0; color: var(--color-muted); }
.text-link { display: inline-flex; align-items: center; margin-top: 18px; padding-bottom: 3px; color: var(--color-earth-dark); border-bottom: 1px solid var(--color-gold); font-weight: 700; }
.text-link:hover, .text-link:focus-visible { color: var(--color-gold); }
.significance-section { background: var(--color-earth-dark); color: rgba(255,253,248,0.86); }
.significance-section h2 { color: var(--color-surface); }
.significance-section p { margin: 0; }
.page-image-hero { min-height: 62vh; }
.back-nav { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 42px; }
.back-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 8px 16px; border: 1px solid rgba(123,96,70,0.24); border-radius: 4px; color: var(--color-earth-dark); background: rgba(255,253,248,0.72); font-weight: 700; }
.back-nav a:hover, .back-nav a:focus-visible { border-color: var(--color-gold); background: var(--color-surface); }
.gallery-section { background: var(--color-stone-light); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.gallery-item { margin: 0; overflow: hidden; background: var(--color-surface); border: 1px solid rgba(123,96,70,0.14); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(70,55,38,0.08); }
.gallery-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-stone-light); }
.gallery-item img.image-contain { object-fit: contain; padding: 12px; }
.gallery-item img.image-portrait { aspect-ratio: 3 / 4; object-fit: cover; }
.gallery-item figcaption { padding: 12px 16px 14px; color: var(--color-muted); font-size: 0.92rem; line-height: 1.55; }
.glossary-section { padding: 56px 0; background: var(--color-bg); }
.glossary-section .article-content { font-size: 0.98rem; }
.glossary-section .article-content h2 { margin: 0 0 16px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.glossary-section .table-wrap { margin: 18px 0 0; }
.site-pager { padding-top: 0; background: var(--color-bg); }
.pager-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pager-card { display: grid; gap: 6px; min-height: 118px; padding: 22px; color: var(--color-earth-dark); background: var(--color-surface); border: 1px solid rgba(123,96,70,0.16); border-radius: var(--radius); }
.pager-card:hover, .pager-card:focus-visible { border-color: var(--color-gold); }
.pager-card span { color: var(--color-muted); font-size: 0.9rem; }
.pager-card strong { line-height: 1.45; }
.site-footer { padding: 46px 0; color: rgba(255,253,248,0.82); background: #30271f; }
.footer-inner { display: grid; gap: 18px; }
.footer-inner p { margin: 0; max-width: 880px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-link { width: fit-content; color: #fffdf8; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(255,253,248,0.32); text-underline-offset: 5px; }
.footer-meta { color: rgba(255,253,248,0.62); font-size: 0.92rem; }
@media (max-width: 980px) { .site-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .page-image-hero .hero-image { object-fit: contain; background: #4d4943; } .page-image-hero .hero-content { width: min(var(--container), calc(100% - 40px), calc(62vh * 16 / 9)); } }
@media (max-width: 860px) { .header-inner { min-height: 64px; } .nav-toggle { display: inline-block; } .site-nav { position: absolute; top: 64px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; padding: 10px 20px 18px; background: rgba(248,245,239,0.98); border-bottom: 1px solid rgba(123,96,70,0.16); } .site-nav.is-open { display: flex; } .site-nav a { padding: 11px 0; } .hero { min-height: 68vh; } .hero-content { padding-bottom: 64px; } .section { padding: 64px 0; } .pager-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .container { width: min(100% - 28px, var(--container)); } .site-title { gap: 12px; } .site-title span { min-height: 1.9em; font-size: 1.05rem; } .site-logo { width: 132px; } .hero { min-height: 620px; } .home-hero .hero-image { object-position: center center; } .hero-overlay { background: linear-gradient(0deg, rgba(40,33,26,0.74), rgba(40,33,26,0.24)), linear-gradient(90deg, rgba(40,33,26,0.66), rgba(40,33,26,0.3)); } .hero-overlay.hero-overlay-river { background: linear-gradient(90deg, rgba(34,27,21,0.82), rgba(34,27,21,0.46) 32%, rgba(34,27,21,0.1) 56%, rgba(34,27,21,0) 78%), linear-gradient(0deg, rgba(34,27,21,0.34), rgba(34,27,21,0.04) 42%, rgba(34,27,21,0)); } .hero-content { padding-bottom: 48px; } .hero h1 { font-size: 2.45rem; } .section { padding: 56px 0; } .site-grid, .gallery-grid { grid-template-columns: 1fr; } .card-body, .pager-card { padding: 22px; } .article-content { font-size: 1rem; } table { min-width: 560px; } .glossary-section table { min-width: 0; table-layout: fixed; font-size: 0.86rem; } .glossary-section th, .glossary-section td { padding: 10px 8px; overflow-wrap: anywhere; word-break: break-word; } .glossary-section th:nth-child(1), .glossary-section td:nth-child(1) { width: 24%; } .glossary-section th:nth-child(2), .glossary-section td:nth-child(2) { width: 28%; } .glossary-section th:nth-child(3), .glossary-section td:nth-child(3) { width: 48%; } }
