:root {
  color-scheme: light;
  --paper: #fbfaf6;
  --ink: #212720;
  --muted: #586155;
  --line: #dedfd6;
  --accent: #2e4e3d;
  --surface: #eef0e8;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

*, *::before, *::after { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
main { flex: 1; width: min(100% - 56px, 1120px); margin-inline: auto; }
.shell { width: min(100% - 56px, 1120px); margin-inline: auto; }
.skip { position: fixed; z-index: 1; top: 10px; left: 12px; padding: 8px 14px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }

.top { border-bottom: 1px solid var(--line); }
.top-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 680; white-space: nowrap; }
.mark { display: grid; place-items: center; background: var(--accent); color: white; border-radius: 8px; width: 30px; height: 30px; font: 700 20px/1 Georgia, serif; }
.primary-nav, .regions { display: flex; align-items: center; gap: 24px; }
.primary-nav a { padding-block: 7px; }
.primary-nav a[aria-current="page"], .primary-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.primary-nav a:last-child { color: var(--accent); font-weight: 700; }

.home { width: 100%; }
.hero { background: #14232d; color: #fffaf1; }
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(42px, 6.4vw, 88px);
}
.hero h1 {
  font-family: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: -.045em;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.hero h1 span { display: block; }
.hero h1 span + span { color: #e5cba5; }
.hero-figure { margin: 0; }
.hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 46px rgb(0 0 0 / .2);
}
.hero-figure figcaption {
  margin-top: 9px;
  color: #e0d5c3;
  font-size: .79rem;
  text-align: right;
}
.hero-figure a:hover { text-decoration: underline; text-underline-offset: 3px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 11px 17px;
  border-radius: 5px;
  background: #f1e5d2;
  color: #1d2a32;
  font-weight: 650;
}
.button:hover { background: #fffaf0; }
.plain { color: var(--accent); font-weight: 620; }
.plain:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero .plain { color: #f1e5d2; }
.hero a:focus-visible { outline-color: #e5cba5; }
.home-directory {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(32px, 4.5vw, 64px);
}
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
h2 { margin: 0 0 13px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.03em; }
.section-heading h2 { margin: 0; }
.home-directory .row { padding-block: 16px; }

.page { padding-block: 56px 74px; }
.page h1 { margin: 0 0 12px; font-size: clamp(34px, 6vw, 60px); line-height: 1.16; letter-spacing: -.045em; overflow-wrap: anywhere; }
.page .intro { margin: 0 0 28px; max-width: 610px; color: var(--muted); }
.page section + section { margin-top: 36px; }
.back { display: inline-block; color: var(--muted); margin-bottom: 18px; }
.back:hover { color: var(--accent); text-decoration: underline; }
.empty { padding: 19px 20px; background: var(--surface); border-radius: 9px; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .5fr) 18px; align-items: center; column-gap: 15px; padding: 15px 6px; }
.row:hover { background: var(--surface); }
.row strong { display: block; font-weight: 680; }
.row small, .row .detail, .row .arrow { color: var(--muted); font-size: .88rem; }
.row .detail { text-align: right; overflow-wrap: anywhere; }
.row .arrow { text-align: right; }
.term { display: grid; grid-template-columns: repeat(2, minmax(0, 180px)); gap: 12px; margin: 0 0 14px; }
.term div { padding: 13px 15px; border-radius: 8px; background: var(--surface); }
.term dt { color: var(--muted); font-size: .86rem; }
.term dd { margin: 0; font-weight: 650; }
.reading { max-width: 660px; }
.reading li + li { margin-top: 8px; }
.contact { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact img { width: min(225px, 100%); height: auto; border: 1px solid var(--line); border-radius: 9px; }
.contact p { color: var(--muted); }

.foot { border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.foot-inner { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 13px 22px; padding-block: 22px; }
.regions { gap: 15px; flex-wrap: wrap; }
.regions a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 720px) {
  .shell, main { width: min(100% - 36px, 1120px); }
  .top-inner { align-items: flex-start; flex-direction: column; gap: 7px; padding-block: 12px 8px; }
  .primary-nav { gap: clamp(9px, 5vw, 25px); flex-wrap: wrap; font-size: .92rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 25px; padding-block: 34px 28px; }
  .hero h1 { font-size: clamp(40px, 10vw, 60px); }
  .hero-image { max-height: 350px; }
  .page { padding-block: 33px 48px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .row .detail { order: 2; text-align: left; }
  .row .arrow { grid-column: 2; grid-row: 1 / span 2; }
}
