:root {
  color-scheme: light;
  --paper: #f2f6f7;
  --surface: #ffffff;
  --ink: #173440;
  --muted: #526b75;
  --rule: #d5e1e4;
  --seam: #168b98;
  --seam-wash: #e0f1f2;
  --link: #086e7b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--seam);
  outline-offset: 4px;
  border-radius: 2px;
}

.site-shell {
  width: min(100% - 40px, 880px);
  margin-inline: auto;
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 15px 0 15px 18px;
  border-left: 3px solid var(--seam);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 25px;
  border: 1px solid var(--ink);
  border-radius: 2px;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  left: 3px;
  right: 3px;
  height: 7px;
  border: 1px solid var(--seam);
  content: "";
}

.brand-mark::before { top: 3px; }
.brand-mark::after { bottom: 3px; }

.brand-mark span {
  position: absolute;
  top: 11px;
  left: 8px;
  height: 3px;
  border-left: 2px solid var(--seam);
}

.masthead-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 0;
  font-size: 0.92rem;
}

.language-nav a { font-weight: 620; }

main {
  width: min(100%, 720px);
  padding: 60px 0 76px;
}

.page-intro { margin-bottom: 42px; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 15ch;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 4rem);
  font-weight: 690;
  letter-spacing: -0.055em;
  line-height: 1.08;
}

.page-intro > p {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.language-section { padding-top: 8px; }

.language-section + .language-section {
  margin-top: 68px;
  padding-top: 42px;
  border-top: 2px solid var(--seam);
}

.language-label {
  display: inline-block;
  margin-bottom: 28px;
  padding: 3px 10px;
  background: var(--seam-wash);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 650;
}

h2 {
  margin: 42px 0 13px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--rule);
  font-size: 1.35rem;
  font-weight: 680;
  letter-spacing: -0.025em;
  line-height: 1.3;
}

h3 {
  margin: 24px 0 7px;
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.4;
}

p, li { max-width: 72ch; }
p { margin-bottom: 14px; }
ul { padding-left: 1.25rem; }
li + li { margin-top: 7px; }

.contact-block {
  margin-top: 22px;
  padding: 16px 0 16px 18px;
  border-left: 2px solid var(--seam);
}

.contact-block p:last-child { margin-bottom: 0; }
.contact-address { font-size: 1.1rem; font-weight: 680; }

.faq-list { margin-top: 17px; border-top: 1px solid var(--rule); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  padding: 15px 22px 15px 0;
  cursor: pointer;
  font-weight: 650;
  line-height: 1.5;
}
.faq-list details p { margin: 0 0 17px; color: var(--muted); }

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 17px;
  border-top: 1px solid var(--rule);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 22px;
  padding: 18px 0 30px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p { margin: 0; }

@media (max-width: 560px) {
  .site-shell { width: min(100% - 28px, 880px); }
  .masthead { align-items: flex-start; margin-top: 14px; }
  .masthead-note { max-width: 14ch; text-align: right; }
  main { padding: 43px 0 56px; }
  .page-intro { margin-bottom: 32px; }
  .language-section + .language-section { margin-top: 48px; padding-top: 30px; }
  h2 { margin-top: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  body { background: #fff; }
  .site-shell { width: 100%; }
  .language-nav { display: none; }
}
