:root {
  color-scheme: light;
  --ink: #182c2f;
  --forest: #173d39;
  --teal: #216560;
  --leaf: #e4efeb;
  --paper: #fff9ef;
  --white: #fffefb;
  --gold: #f2bc63;
  --coral: #d16f3b;
  --muted: #415651;
  --line: #d7dacf;
  --display: Georgia, "Songti SC", "Noto Serif CJK SC", serif;
  --body: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --max: 1260px;
  font: 17px/1.55 var(--body);
  background: var(--paper);
  color: var(--ink);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .16em; }
:focus-visible { outline: 3px solid #ad4c19; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.035em; }
h1 { font-size: clamp(2.65rem, 6vw, 5.75rem); line-height: .99; }
h2 { font-size: clamp(1.95rem, 4.7vw, 3.6rem); line-height: 1.02; }
h3 { line-height: 1.2; }
a, button { touch-action: manipulation; }
.skip-link { position: fixed; z-index: 5; top: 8px; left: 8px; transform: translateY(-180%); padding: 8px 15px; background: var(--white); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }
.wrap, .nav-wrap, .footer-inner { width: min(var(--max), calc(100% - 80px)); margin-inline: auto; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.nav-wrap { min-height: 73px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 8px; }
.wordmark { font: 700 clamp(1.12rem, 2vw, 1.37rem)/1 var(--display); text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.brand-dot { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(#e79e3a 0 26%, #e9bda0 26% 50%, #6eada2 50% 75%, #295d54 75% 100%); border: 2px solid var(--ink); display: inline-block; position: relative; flex: 0 0 auto; }
.brand-dot::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--ink); background: var(--paper); border-radius: 50%; }
.brand-copy span { display: block; }
.brand-copy small { display: block; font: 650 .74rem/1.2 var(--body); margin-top: 5px; color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 5px; }
.nav-links a { font-size: .86rem; font-weight: 720; padding: 9px 13px; border-radius: 999px; text-decoration: none; min-height: 44px; }
.nav-links a:hover, .nav-links [aria-current="page"] { background: var(--leaf); color: #174b47; }
.hero { display: grid; grid-template-columns: minmax(0,.88fr) minmax(0,1.12fr); margin-top: 24px; min-height: 431px; border-radius: 24px; overflow: clip; background: var(--forest); color: var(--white); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 15px; padding: clamp(1.5rem, 4.2vw, 3.75rem); padding-right: clamp(1.5rem,3vw,2.5rem); z-index: 1; }
.hero-title { max-width: 8ch; }
.hero-zh { color: #f6cb82; font-size: clamp(1.3rem, 3.5vw, 2.2rem); font-weight: 740; line-height: 1.2; letter-spacing: .02em; }
.hero-guide { margin-top: 1px; max-width: 38ch; }
.hero-guide span { display: block; }
.hero-guide span + span { color: #e0efea; margin-top: 5px; font-size: .92rem; }
.hero-illustration { position: relative; min-height: 100%; }
.hero-illustration img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-illustration::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--forest), transparent 18%); pointer-events: none; }
.hero .button { margin-top: 7px; }
.button, .tap {
  display: inline-flex; justify-content: center; align-items: center; gap: 7px;
  min-height: 44px; padding: 10px 15px; text-decoration: none; font-size: .88rem; font-weight: 740; text-align: center;
  cursor: pointer; border: 1px solid transparent; border-radius: 9px;
}
.button { background: var(--gold); color: var(--ink); }
.button:hover { background: #ffd38a; }
.button.secondary, .tap { background: var(--white); border-color: var(--line); color: var(--ink); }
.button.secondary:hover, .tap:hover { background: var(--leaf); border-color: #8fb2a8; }
.hero .button:focus-visible { outline-color: white; }
.gallery { padding: clamp(2rem, 5vw, 4.25rem) 0 3.2rem; scroll-margin-top: 1rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head .bilingual { font-size: 1.1rem; font-weight: 750; color: var(--teal); margin-top: 6px; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 19px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .28s ease, box-shadow .28s ease, border-color .28s; position: relative; }
.card-art { aspect-ratio: 1.65; overflow: hidden; background: var(--tint); }
.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2,.65,.3,1); }
.card-copy { padding: 14px 17px 17px; min-height: 123px; }
.card-copy .country { color: var(--theme); font-size: .79rem; font-weight: 780; margin-bottom: 6px; }
.card h3 { font: 700 clamp(1.23rem,1.83vw,1.6rem)/1.1 var(--display); letter-spacing: -.022em; text-wrap: balance; }
.card-copy .translated { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.card:hover, .card:focus-visible { transform: translateY(-4px); border-color: var(--theme); box-shadow: 0 10px 23px #182c2f17; }
.card:hover img { transform: scale(1.055); }
.review-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 3rem; padding: clamp(18px,4vw,36px); border-radius: 17px; border: 1px solid #bed3cb; background: var(--leaf); }
.review-cta h2 { font-size: clamp(1.45rem,3vw,2.3rem); letter-spacing: -.02em; }
.review-cta p { margin-top: 7px; }
.review-cta .button { flex: 0 0 auto; background: var(--teal); color: white; }
.review-cta .button:hover { background: #174b47; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; background: #f0f3e9; }
.footer-inner { display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; align-items: center; font-size: .87rem; color: var(--muted); }
.site-footer a { font-weight: 730; }
.back-link { font-size: .91rem; font-weight: 730; padding-block: 10px; display: inline-block; color: var(--teal); }
.topic { margin-block: 16px 52px; }
.topic-banner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); border-radius: 21px; overflow: hidden; background: var(--tint); border: 1px solid var(--line); margin: 9px 0 23px; }
.topic-intro { padding: clamp(21px, 4vw, 46px); align-self: center; }
.topic-intro .country { color: var(--theme); font-weight: 750; margin-bottom: 7px; }
.topic-intro h1 { font-size: clamp(2.1rem,5.3vw,4.3rem); text-wrap: balance; }
.topic-intro .translated { font-size: clamp(1.16rem,2.4vw,1.65rem); margin-top: 13px; font-weight: 720; color: var(--theme); }
.topic-banner img { width: 100%; height: 100%; min-height: 230px; max-height: 325px; object-fit: cover; }
.topic-intro, .source-panel { animation: open-in .4s ease both; }
.source-nav { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 18px; }
.source-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; min-height: 48px; background: var(--white); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font-size: .89rem; font-weight: 690; text-decoration: none; }
.source-nav a:hover { border-color: var(--theme); background: var(--tint); }
.source-nav strong { display: grid; place-items: center; flex: 0 0 25px; height: 25px; border-radius: 6px; background: var(--theme); color: white; }
.source-nav small { display: block; color: var(--muted); }
.source-layout { display: grid; gap: 18px; }
.reading-sources, .side-sources { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 18px; }
.source-heading { scroll-margin-block-start: 85px; }
.source-panel { border-radius: 15px; background: var(--white); border: 1px solid var(--line); overflow: hidden; }
.source-head { display: flex; align-items: center; gap: 12px; padding: 17px 19px; background: var(--tint); }
.source-letter { display: inline-grid; place-items: center; width: 37px; height: 37px; border-radius: 9px; background: var(--theme); color: white; font-size: 1.12rem; font-weight: 800; flex: 0 0 auto; }
.source-heading { font: 750 clamp(1rem,2vw,1.3rem)/1.2 var(--body); letter-spacing: -.014em; }
.source-heading span { display: block; font-size: .82rem; color: var(--muted); font-weight: 650; margin-top: 3px; }
.source-body { padding: 18px 19px; }
.reading-ui { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.tabs .tap { border-color: transparent; min-height: 45px; padding-inline: 11px; background: #eff3ef; }
.tabs [aria-selected="true"] { background: var(--teal); color: white; }
.reading-photo { display: block; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.reading-photo img { width: 100%; height: auto; aspect-ratio: 2480/3508; animation: fade-in .3s ease; }
.refs { margin-top: 13px; color: var(--muted); }
.refs summary { min-height: 44px; display: list-item; padding-block: 9px; cursor: pointer; font-weight: 700; font-size: .89rem; }
.refs ul { padding-left: 21px; font-size: .91rem; margin-bottom: 0; }
.refs li + li { margin-top: 6px; }
.outside { display: grid; gap: 6px; }
.outside + .outside { border-top: 1px solid var(--line); padding-top: 13px; margin-top: 13px; }
.source-panel h3 { font-weight: 740; font-size: .92rem; }
.outside .button { justify-self: start; text-align: left; background: var(--leaf); border-color: #b9d3c9; color: #174b47; }
.outside .button:hover { background: #d3e5df; }
.outside p { font-size: .91rem; }
.runtime { color: var(--muted); font-weight: 630; }
.player-meta { display: grid; gap: 8px; }
.player-meta .button { justify-self: start; }
.external-label { display: block; color: var(--muted); margin-top: 10px; font-size: .81rem; }
.neighbors { margin-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.neighbors a { color: var(--teal); padding: 9px 0; font-weight: 700; display: inline-block; }
.image-dialog { color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: 16px; width: min(980px,94vw); height: min(94dvh,1300px); max-width: none; max-height: none; background: var(--white); overflow: hidden; }
.image-dialog[open] { display: grid; grid-template-rows: auto minmax(0,1fr); animation: open-in .22s ease; }
.image-dialog::backdrop { background: #101d1cdc; }
.dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--leaf); }
.dialog-label { font-weight: 760; }
.dialog-buttons { display: flex; flex-wrap: wrap; gap: 5px; }
.image-scroll { overflow: auto; overscroll-behavior: contain; padding: 10px; background: #e3e9e3; }
.image-scroll img { width: 100%; height: auto; max-width: none; }
.image-scroll[data-large="true"] img { width: max(1440px, 168%); }
@keyframes open-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { from { opacity: .4; } to { opacity: 1; } }
@media(max-width: 1060px) { .cards { grid-template-columns: repeat(3,minmax(0,1fr)); } .hero { min-height: 385px; } }
@media(max-width: 850px) {
 .wrap, .nav-wrap, .footer-inner { width: calc(100% - 44px); }
 .hero { grid-template-columns: .89fr 1.11fr; min-height: 350px; }
}
@media(max-width: 655px) {
 .wrap, .nav-wrap, .footer-inner { width: calc(100% - 26px); }
 .nav-wrap { min-height: 64px; }
 .nav-links a { padding-inline: 8px; }
 .nav-links a span { display: block; line-height: 1.18; }
 .hero { grid-template-columns: 1fr; margin-top: 14px; border-radius: 16px; }
 .hero-copy { gap: 10px; padding: 22px; }
 .hero-title { max-width: 12ch; }
 .hero-illustration { aspect-ratio: 1.65; min-height: 0; }
 .hero-illustration::after { background: linear-gradient(180deg, var(--forest), transparent 18%); }
 .cards { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
 .card { border-radius: 11px; }
 .card-copy { padding: 10px; min-height: 106px; }
 .card h3 { font-size: 1.12rem; }
 .card-copy .country { font-size: .78rem; }
 .card-copy .translated { font-size: .79rem; }
 .review-cta { align-items: flex-start; flex-direction: column; border-radius: 12px; }
 .topic-banner { grid-template-columns: 1fr; border-radius: 14px; }
 .topic-banner img { height: auto; min-height: 0; aspect-ratio: 1.85; }
 .source-nav { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 7px; }
 .reading-sources, .side-sources { grid-template-columns: minmax(0,1fr); }
 .dialog-label { font-size: .8rem; }
 .dialog-bar { align-items: flex-start; flex-direction: column; }
}
@media(prefers-reduced-motion: reduce) {
 *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
