:root {
  --ink: #17372f;
  --green: #1f4a3d;
  --green-soft: #dfe9e3;
  --paper: #f5f1e8;
  --white: #fff;
  --gold: #c99b3d;
  --line: rgba(23, 55, 47, 0.18);
  --muted: #65736e;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans TC", "PingFang TC", sans-serif;
  letter-spacing: 0;
  line-height: 1.7;
}
body.dialog-open { overflow: hidden; }
img { display: block; max-width: 100%; }
button, a { font: inherit; }
a { color: inherit; }

.review-banner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px 20px;
  color: #fff;
  background: #7a5530;
  font-size: 13px;
}
.review-banner strong { color: #ffe2a6; }

.site-header {
  position: relative;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - var(--max)) / 2));
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 750;
}
.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
  font-size: 13px;
}
.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 14px;
}
.site-nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); }
.site-nav a[data-location="site_nav_inquiry"] {
  padding: 7px 12px;
  color: #fff;
  background: var(--green);
  border-radius: 4px;
  font-weight: 800;
}
.nav-toggle { display: none; }

.hero {
  min-height: min(720px, calc(100vh - 104px));
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #233a33;
}
.hero > img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { object-fit: cover; object-position: center 48%; }
.hero-shade { background: linear-gradient(90deg, rgba(7,25,20,0.84) 0%, rgba(7,25,20,0.46) 48%, rgba(7,25,20,0.08) 100%); }
.hero-copy {
  position: relative;
  width: min(760px, calc(100% - 48px));
  margin: 0 max(24px, calc((100vw - var(--max)) / 2));
  padding: 88px 0 76px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}
.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.12;
  font-weight: 700;
}
.hero-copy > p:not(.eyebrow):not(.review-date) { max-width: 690px; margin: 24px 0 0; font-size: 19px; }
.review-date { margin: 18px 0 0; color: rgba(255,255,255,0.7); font-size: 13px; }

.category-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow-x: auto;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.category-nav > div { width: max-content; min-width: 100%; display: flex; justify-content: center; }
.category-nav a {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  padding: 0 19px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.category-nav a:hover, .category-nav a:focus-visible, .category-nav a.active { color: var(--green); border-color: var(--gold); outline: none; }

.editorial-intro, .section-head, .photo-grid, .evidence-gap-grid, .evidence-gap-inline, .closing {
  width: min(var(--max), calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}
.editorial-intro { padding: 92px 0; }
.editorial-intro h2, .section-head h2, .closing h2 {
  max-width: 820px;
  margin: 0;
  font-family: "Songti TC", "Noto Serif TC", serif;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.25;
}
.section-head h2 { max-width: 980px; }
.editorial-intro > p:last-child, .section-head > p:last-child, .closing > p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
}

.photo-section { padding: 88px 0 104px; scroll-margin-top: 56px; }
.section-light { background: #eef4f0; }
.section-paper { background: var(--paper); }
.section-ink { color: #fff; background: var(--green); }
.section-ink .section-head > p:last-child { color: rgba(255,255,255,0.72); }
.section-head { margin-bottom: 42px; }

.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 24px; }
.photo-grid-feature { grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr); }
.photo-item { margin: 0; min-width: 0; }
.photo-item-wide { grid-row: span 1; }
.photo-open {
  width: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #d8e1dc;
  border: 0;
  cursor: zoom-in;
}
.photo-open img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 280ms ease; }
.photo-item-wide .photo-open img { aspect-ratio: 16 / 10; }
.photo-grid-feature .photo-item-wide .photo-open img { aspect-ratio: 16 / 9; }
.map-item .photo-open img { object-fit: contain; background: #e7e0d1; }
.photo-open:hover img { transform: scale(1.018); }
.photo-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.photo-item figcaption { display: grid; gap: 5px; padding: 15px 0 0; }
.photo-item figcaption strong { font-size: 18px; }
.photo-item figcaption span { color: var(--muted); font-size: 14px; }
.section-ink .photo-item figcaption span { color: rgba(255,255,255,0.7); }

.evidence-gap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-gap { min-height: 220px; padding: 32px; border-right: 1px solid var(--line); }
.evidence-gap:last-child { border-right: 0; }
.evidence-gap span { display: block; color: #8a6b31; font-size: 12px; font-weight: 800; }
.evidence-gap strong { display: block; margin-top: 22px; font-size: 21px; }
.evidence-gap p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.evidence-gap-inline { display: flex; gap: 12px; margin-top: 34px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.evidence-gap-inline strong { color: #8a6b31; }

.closing { padding-top: 108px; padding-bottom: 108px; text-align: center; }
.closing h2, .closing p { margin-left: auto; margin-right: auto; }
.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin-top: 30px;
  padding: 0 24px;
  color: #fff;
  background: var(--green);
  border: 0;
  border-radius: 4px;
  font-weight: 800;
  text-decoration: none;
}
.primary-action:hover, .primary-action:focus-visible { background: #173b31; }
.closing-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin-top: 24px; }
.closing-links a { color: var(--green); font-size: 14px; font-weight: 750; }
.closing > a { display: block; width: fit-content; margin: 20px auto 0; color: var(--green); font-size: 14px; }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 32px max(24px, calc((100vw - var(--max)) / 2)); color: rgba(255,255,255,0.72); background: #102a23; font-size: 13px; }

.lightbox {
  width: min(1120px, calc(100vw - 36px));
  max-width: none;
  height: min(88vh, 880px);
  padding: 0;
  color: #fff;
  background: #0c1714;
  border: 0;
}
.lightbox::backdrop { background: rgba(5,12,10,0.88); }
.lightbox[open] { display: grid; grid-template-columns: 58px minmax(0, 1fr) 58px; align-items: center; }
.lightbox figure { min-width: 0; margin: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; align-items: center; }
.lightbox img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { padding: 12px 18px 16px; text-align: center; color: rgba(255,255,255,0.76); font-size: 14px; }
.lightbox button { color: #fff; background: transparent; border: 0; cursor: pointer; }
.lightbox-prev, .lightbox-next { height: 64px; font-size: 42px; }
.lightbox-close { position: absolute; z-index: 2; top: 8px; right: 10px; width: 44px; height: 44px; font-size: 30px; }
.lightbox button:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }

@media (max-width: 760px) {
  .review-banner { align-items: flex-start; gap: 3px; flex-direction: column; padding: 8px 16px; line-height: 1.35; }
  .site-header { height: 58px; padding: 0 16px; }
  .brand-mark { width: 36px; height: 36px; font-size: 11px; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 11px;
    color: var(--green);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    font-weight: 750;
  }
  .site-nav {
    position: absolute;
    z-index: 30;
    top: 58px;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 24px rgba(16, 42, 35, 0.14);
  }
  .site-nav.open { display: grid; }
  .site-nav a { min-height: 42px; display: flex; align-items: center; padding: 0 8px; }
  .site-nav a[data-location="site_nav_inquiry"] { justify-content: center; margin-top: 4px; }
  .hero { min-height: min(690px, calc(100svh - 98px)); }
  .hero > img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(6,23,18,0.88) 0%, rgba(6,23,18,0.3) 70%, rgba(6,23,18,0.12) 100%); }
  .hero-copy { width: calc(100% - 32px); margin: 0 16px; padding: 80px 0 38px; }
  .hero h1 { font-size: 42px; }
  .hero-copy > p:not(.eyebrow):not(.review-date) { margin-top: 18px; font-size: 16px; }
  .category-nav > div { justify-content: flex-start; }
  .category-nav a { min-height: 50px; padding: 0 15px; white-space: nowrap; }
  .editorial-intro, .section-head, .photo-grid, .evidence-gap-grid, .evidence-gap-inline, .closing { width: calc(100% - 32px); }
  .editorial-intro { padding: 68px 0; }
  .editorial-intro h2, .section-head h2, .closing h2 { font-size: 31px; }
  .photo-section { padding: 64px 0 76px; }
  .section-head { margin-bottom: 30px; }
  .photo-grid, .photo-grid-feature { grid-template-columns: 1fr; gap: 32px; }
  .photo-item-wide .photo-open img, .photo-grid-feature .photo-item-wide .photo-open img { aspect-ratio: 4 / 3; }
  .evidence-gap-grid { grid-template-columns: 1fr; }
  .evidence-gap { min-height: 0; padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .evidence-gap:last-child { border-bottom: 0; }
  .evidence-gap-inline { align-items: flex-start; flex-direction: column; gap: 3px; }
  .closing { padding-top: 76px; padding-bottom: 76px; }
  .closing-links { align-items: center; flex-direction: column; }
  footer { align-items: flex-start; flex-direction: column; padding: 28px 16px; }
  .lightbox { width: 100vw; height: 100dvh; max-height: none; margin: 0; }
  .lightbox[open] { grid-template-columns: 48px minmax(0, 1fr) 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .photo-open img { transition: none; }
}
