:root {
  color-scheme: light;
  --ink: #17201d;
  --ink-soft: #4f5b57;
  --paper: #f7f6f1;
  --surface: #ffffff;
  --line: #d9ddd8;
  --line-strong: #b9c1bb;
  --gold: #94701f;
  --gold-soft: #f2ead4;
  --forest: #214f43;
  --forest-soft: #e7f0ec;
  --nav: #101613;
  --warning: #7b4b10;
  --warning-soft: #fff5df;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #e0b93a;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: #ffffff;
  background: var(--forest);
  border-radius: 4px;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  color: #ffffff;
  background: rgba(16, 22, 19, 0.97);
  border-bottom: 1px solid #2d3934;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 68px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", SimSun, serif;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid #695524;
  border-radius: 8px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  color: #dbe1de;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: #f2d982;
  background: #1b2521;
  border-color: #34433d;
}

.page-shell {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 48px;
  align-items: end;
  padding: 68px 0 46px;
  border-bottom: 1px solid var(--line-strong);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 42px;
  line-height: 1.25;
}

.lede {
  max-width: 740px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.8;
}

.document-meta {
  margin: 0;
  padding: 18px 20px;
  background: var(--forest-soft);
  border-left: 4px solid var(--forest);
  border-radius: 0 6px 6px 0;
  color: #2d4a41;
  font-size: 14px;
}

.document-meta strong {
  display: block;
  margin-bottom: 3px;
  color: var(--forest);
}

.content-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 52px;
  align-items: start;
  padding: 44px 0 80px;
}

.toc {
  position: sticky;
  top: 92px;
  padding: 4px 0;
}

.toc-title {
  margin: 0 0 12px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

.toc a {
  display: block;
  padding: 7px 10px;
  color: #52605a;
  border-left: 2px solid var(--line);
  font-size: 14px;
  line-height: 1.45;
  text-decoration: none;
}

.toc a:hover {
  color: var(--forest);
  border-left-color: var(--gold);
  background: #eeeee8;
}

.legal-copy {
  min-width: 0;
}

.legal-section {
  padding: 0 0 34px;
  scroll-margin-top: 90px;
}

.legal-section + .legal-section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.4;
}

.legal-section h3 {
  margin: 24px 0 8px;
  color: #2f3a36;
  font-size: 18px;
}

.legal-section p {
  margin: 0 0 14px;
}

.legal-section ul,
.legal-section ol {
  margin: 10px 0 16px;
  padding-left: 24px;
}

.legal-section li + li {
  margin-top: 8px;
}

.summary-box,
.notice-box,
.contact-box {
  margin: 20px 0;
  padding: 18px 20px;
  border-radius: 6px;
}

.summary-box {
  background: var(--forest-soft);
  border: 1px solid #c4d8d0;
}

.notice-box {
  color: #583e18;
  background: var(--warning-soft);
  border: 1px solid #e8ce99;
}

.contact-box {
  background: #f0f1ed;
  border: 1px solid var(--line);
}

.summary-box p:last-child,
.notice-box p:last-child,
.contact-box p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  width: 100%;
  margin: 20px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.65;
}

th,
td {
  padding: 13px 15px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  color: #26322e;
  background: #edf0ec;
  font-weight: 800;
}

tr:last-child td {
  border-bottom: 0;
}

.status-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.status-item {
  min-width: 0;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.status-label {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-value {
  display: block;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.status-value.verified {
  color: var(--forest);
}

.status-value.pending {
  color: var(--warning);
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.link-card {
  display: block;
  min-height: 150px;
  padding: 22px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  color: var(--ink);
  border-color: var(--gold);
  box-shadow: 0 10px 28px rgba(22, 32, 28, 0.08);
  transform: translateY(-2px);
}

.link-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.link-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, serif;
  font-size: 21px;
}

.link-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.65;
}

.site-footer {
  color: #cad2ce;
  background: var(--nav);
  border-top: 1px solid #2f3b36;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 34px 0;
}

.footer-inner p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-disclaimer {
  max-width: 760px;
  padding-top: 8px;
  color: #aeb9b4;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: flex-start;
  gap: 8px 16px;
}

.footer-links a {
  color: #e4d59f;
  font-size: 13px;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
  overflow-wrap: anywhere;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
  }

  .header-inner {
    display: block;
    width: min(calc(100% - 28px), var(--max-width));
    padding: 14px 0 10px;
  }

  .brand {
    margin-bottom: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .site-nav a {
    flex: 0 0 auto;
    padding-right: 10px;
    padding-left: 10px;
  }

  .page-shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .page-intro {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 46px 0 34px;
  }

  h1 {
    font-size: 34px;
  }

  .lede {
    font-size: 17px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 30px 0 64px;
  }

  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 14px;
    background: #eeeee8;
    border-radius: 6px;
  }

  .toc-title {
    grid-column: 1 / -1;
  }

  .toc a {
    padding: 7px 8px;
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-list,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    width: min(calc(100% - 30px), var(--max-width));
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .page-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner,
  .footer-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .brand img {
    width: 34px;
    height: 34px;
  }

  .site-nav {
    gap: 2px;
  }

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

  h1 {
    font-size: 30px;
  }

  .legal-section h2 {
    font-size: 22px;
  }

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

  .summary-box,
  .notice-box,
  .contact-box,
  .status-item,
  .link-card {
    padding: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
