:root {
  color-scheme: light dark;
  --canvas: #e6eeee;
  --canvas-glow: rgba(255, 255, 255, 0.72);
  --paper: #fffaf2;
  --paper-soft: rgba(255, 250, 242, 0.72);
  --ink: #302a26;
  --muted: #70645d;
  --accent: #865e52;
  --accent-deep: #60443b;
  --line: rgba(96, 68, 59, 0.17);
  --focus: #226d78;
  --shadow: rgba(50, 43, 39, 0.14);
  --content-width: 72ch;
}

@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #252a29;
    --canvas-glow: rgba(102, 124, 122, 0.16);
    --paper: #39322d;
    --paper-soft: rgba(57, 50, 45, 0.78);
    --ink: #fbefde;
    --muted: #d4c5b6;
    --accent: #c8a396;
    --accent-deep: #f2d8c9;
    --line: rgba(242, 216, 201, 0.17);
    --focus: #8ed9e3;
    --shadow: rgba(0, 0, 0, 0.32);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--canvas-glow), transparent 30rem),
    radial-gradient(circle at 88% 84%, rgba(145, 109, 97, 0.14), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-family: "Avenir Next", "PingFang SC", -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-deep);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
  border-radius: 6px;
}

.page-shell {
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  box-shadow: 0 8px 20px var(--shadow);
}

.language-switcher {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.language-switcher a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.language-switcher a:hover {
  border-color: var(--line);
  background: var(--paper-soft);
}

.hero {
  min-height: min(700px, calc(100vh - 88px));
  padding: clamp(52px, 10vw, 120px) 0 clamp(72px, 12vw, 136px);
  display: grid;
  align-content: center;
}

.hero-inner {
  max-width: 900px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 17em;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(2.55rem, 8vw, 5.7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.hero h1 span {
  display: block;
}

.hero h1 .english-title {
  margin-top: 0.24em;
  color: var(--accent-deep);
  font-size: 0.55em;
  letter-spacing: -0.02em;
  line-height: 1.16;
}

.hero-copy {
  max-width: var(--content-width);
  margin: 32px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero-copy p {
  margin: 0;
}

.hero-copy p + p {
  margin-top: 12px;
}

.actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--accent-deep);
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}

.button.primary {
  border-color: var(--accent-deep);
  background: var(--accent-deep);
  color: var(--paper);
}

.content-grid {
  padding: 0 0 clamp(72px, 11vw, 128px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.content-card {
  max-width: var(--content-width);
  padding: clamp(26px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--paper-soft);
  box-shadow: 0 22px 58px var(--shadow);
}

.content-card h2 {
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.2rem);
  font-weight: 600;
  line-height: 1.25;
}

.content-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.policy-section {
  max-width: var(--content-width);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 64px) 0 clamp(72px, 10vw, 112px);
}

.policy-intro {
  max-width: 62ch;
}

.policy-intro h1 {
  max-width: 18ch;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(2.125rem, 7vw, 4.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

.policy-intro > p:not(.eyebrow):not(.notice) {
  margin: 18px 0 0;
  color: var(--muted);
}

.policy-chapters {
  margin-top: clamp(40px, 7vw, 72px);
  display: grid;
  gap: clamp(28px, 5vw, 48px);
}

.policy-chapter {
  position: relative;
  padding: clamp(24px, 4vw, 36px) 0 0 clamp(18px, 3vw, 28px);
  border-top: 1px solid var(--line);
}

.policy-chapter::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(48px, 12vw, 88px);
  height: 2px;
  background: var(--accent);
  content: "";
}

.policy-chapter h2 {
  max-width: 24ch;
  margin: 0;
  font-family: Georgia, "Songti SC", "STSong", serif;
  font-size: clamp(1.5rem, 3.5vw, 2.05rem);
  font-weight: 600;
  line-height: 1.28;
}

.policy-chapter p,
.policy-chapter li {
  color: var(--muted);
}

.policy-chapter p {
  margin: 14px 0 0;
}

.policy-chapter ul,
.policy-chapter ol {
  margin: 16px 0 0;
  padding-left: 1.35em;
}

.policy-chapter li + li {
  margin-top: 10px;
}

.notice {
  max-width: var(--content-width);
  margin: 22px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: rgba(145, 109, 97, 0.11);
  color: var(--accent-deep);
}

.gateway-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.gateway-main {
  min-height: calc(100vh - 176px);
  padding: clamp(48px, 9vw, 96px) 0;
  display: grid;
  place-items: center;
}

.gateway-main .content-card {
  width: min(100%, 620px);
  text-align: center;
}

.gateway-main .language-switcher {
  margin-top: 28px;
  justify-content: center;
}

.gateway-main .language-switcher a {
  border-color: var(--line);
  background: var(--paper);
}

.site-footer {
  min-height: 88px;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
}

.site-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button,
  .language-switcher a {
    transition: transform 160ms ease, background-color 160ms ease,
      border-color 160ms ease;
  }

  .button:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    padding: 18px 0;
  }

  .hero {
    min-height: auto;
  }

  .content-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 36px, 1120px);
  }

  .content-card {
    border-radius: 22px;
  }

  .policy-section {
    padding-top: 28px;
    font-size: 1.0625rem;
    line-height: 1.75;
  }

  .policy-intro h1 {
    font-size: 2.125rem;
  }

  .policy-chapters {
    margin-top: 40px;
    gap: 26px;
  }

  .policy-chapter {
    padding: 22px 0 0 14px;
  }

  .policy-chapter h2 {
    font-size: clamp(1.5rem, 6.4vw, 1.6875rem);
    line-height: 1.25;
  }

  .notice {
    margin-top: 26px;
    padding: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
