:root {
  color-scheme: light;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: #272521;
  background: #f8f7f3;
  font-synthesis: none;
  --ink: #272521;
  --muted: #68635b;
  --line: #d9d4c9;
  --paper: #fffefb;
  --green: #236b5c;
  --green-soft: #dceee8;
  --coral: #d8664d;
  --yellow: #e4b449;
  --shadow: 0 24px 70px rgba(48, 45, 38, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  background:
    linear-gradient(#e8e4db 1px, transparent 1px),
    linear-gradient(90deg, #e8e4db 1px, transparent 1px),
    #f8f7f3;
  background-size: 32px 32px;
  min-height: 100vh;
}

a {
  color: var(--green);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(35, 107, 92, 0.28);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 2;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 251, 0.94);
  backdrop-filter: blur(14px);
}

.site-header-inner,
.page,
.site-footer-inner {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 600;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--green);
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.language-switch::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
}

.page {
  padding: 68px 0 88px;
}

.document-header {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 58px);
  padding-bottom: 36px;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--ink);
  border-radius: 20px 20px 4px 4px;
  background: rgba(255, 254, 251, 0.92);
  box-shadow: var(--shadow);
}

.document-header::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 310px;
  height: 310px;
  border: 54px solid rgba(228, 180, 73, 0.18);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid #afccc3;
  border-radius: 4px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 18px 0 14px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.effective-date {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
}

.trust-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.trust-strip li {
  padding: 8px 12px;
  border: 1px solid #cddbd5;
  border-radius: 999px;
  background: #f2f8f5;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.document-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.34fr) minmax(0, 1fr);
  gap: 44px;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.document-section h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.45;
  letter-spacing: 0;
}

.document-copy p,
.document-copy li {
  color: #4f4b45;
  font-size: 16px;
  line-height: 1.85;
}

.document-copy p {
  margin: 0 0 14px;
}

.document-copy p:last-child {
  margin-bottom: 0;
}

.document-copy ul {
  margin: 0;
  padding-left: 21px;
}

.notice {
  margin-top: 34px;
  padding: 22px 24px;
  border-left: 4px solid var(--coral);
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(48, 45, 38, 0.07);
}

.notice strong {
  display: block;
  margin-bottom: 7px;
}

.notice p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.support-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button-link {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--green);
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.button-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(35, 107, 92, 0.18);
}

.button-link.secondary {
  background: var(--paper);
  color: var(--green);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.site-footer-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 640px) {
  .site-header-inner,
  .page,
  .site-footer-inner {
    width: min(100% - 28px, 920px);
  }

  .site-header-inner {
    min-height: 62px;
  }

  .header-actions {
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .site-nav {
    gap: 12px;
    font-size: 13px;
  }

  .language-switch {
    width: 34px;
    height: 34px;
    justify-content: center;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 0;
  }

  .language-switch::before {
    width: auto;
    height: auto;
    border-radius: 0;
    background: none;
    color: var(--green);
    content: "EN";
    font-size: 11px;
  }

  html[lang="en"] .language-switch::before {
    content: "中";
    font-size: 14px;
  }

  .page {
    padding: 42px 0 64px;
  }

  h1 {
    font-size: 40px;
  }

  .document-header {
    padding: 28px 22px 30px;
    border-radius: 14px 14px 3px 3px;
  }

  .lead {
    font-size: 16px;
  }

  .document-section {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 28px 0;
  }

  .support-actions .button-link {
    flex: 1 1 100%;
  }

  .document-copy p,
  .document-copy li {
    font-size: 15px;
  }

  .site-footer-inner {
    min-height: 96px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 22px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
