:root {
  color-scheme: light;
  --page: #f6f8f5;
  --surface: #ffffff;
  --ink: #1f2e29;
  --muted: #65716c;
  --line: #dce4df;
  --accent: #176b58;
  --accent-strong: #0f5546;
  --accent-soft: #e2f0eb;
  --warm: #ad5745;
  --warm-soft: #f7e9e4;
  --focus: #0b6fc2;
  --shadow: 0 12px 28px rgba(25, 48, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

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

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}

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

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

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

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

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 2px;
}

.hero {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.hero-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: center;
  gap: 36px;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.35;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 25px;
}

h3 {
  font-size: 18px;
}

.hero-copy {
  max-width: 660px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-strong);
  color: #fff;
}

.button.secondary {
  background: transparent;
  color: var(--accent-strong);
}

.button.secondary:hover {
  background: var(--accent-soft);
}

.content-band {
  padding: 56px 0;
}

.content-band + .content-band {
  border-top: 1px solid var(--line);
}

.section-intro {
  max-width: 700px;
  margin: 12px 0 28px;
  color: var(--muted);
}

.document-grid,
.fact-grid {
  display: grid;
  gap: 16px;
}

.document-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.document-card,
.fact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.document-card {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
  box-shadow: var(--shadow);
}

.document-card p,
.fact-card p {
  color: var(--muted);
}

.document-card .text-link {
  margin-top: auto;
  font-weight: 700;
}

.fact-card {
  padding: 20px;
}

.fact-label {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.fact-value {
  margin: 0;
  color: var(--ink) !important;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.notice {
  margin-top: 28px;
  padding: 18px 20px;
  border-left: 4px solid var(--warm);
  background: var(--warm-soft);
}

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

.document-header {
  padding: 56px 0 36px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.document-header p {
  max-width: 700px;
  margin: 14px 0 0;
  color: var(--muted);
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 14px;
}

.document-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: start;
  gap: 44px;
  padding: 44px 0 64px;
}

.toc {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.toc h2 {
  margin-bottom: 10px;
  font-size: 16px;
}

.toc ol {
  margin: 0;
  padding-left: 22px;
}

.toc a {
  color: var(--muted);
  font-size: 14px;
}

.legal-document {
  min-width: 0;
  padding: 0 32px 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.legal-section {
  padding-top: 32px;
}

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

.legal-section h2 {
  margin-bottom: 14px;
}

.legal-section h3 {
  margin: 20px 0 8px;
}

.legal-section p,
.legal-section li {
  color: #36453f;
}

.legal-section ul,
.legal-section ol {
  padding-left: 24px;
}

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

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

table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 14px;
}

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

th {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

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

code {
  padding: 2px 5px;
  border-radius: 4px;
  background: #edf1ee;
  color: #314139;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.back-top {
  display: inline-block;
  margin-top: 32px;
  font-weight: 700;
}

.site-footer {
  padding: 30px 0 36px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.error-page {
  min-height: calc(100vh - 176px);
  display: grid;
  place-items: center;
  padding: 64px 0;
  text-align: center;
}

.error-page img {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 8px;
}

.error-page p {
  max-width: 520px;
  margin: 14px auto 28px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .header-inner,
  .page-width {
    width: min(100% - 28px, 960px);
  }

  .header-inner {
    min-height: 68px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px 0;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

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

  .hero {
    padding: 46px 0 42px;
  }

  .hero-inner {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 20px;
  }

  .app-icon {
    width: 82px;
    height: 82px;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  .hero-copy {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .hero-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
  }

  .content-band {
    padding: 42px 0;
  }

  .document-grid,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .document-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 28px 0 48px;
  }

  .toc {
    position: static;
  }

  .legal-document {
    padding: 0 20px 24px;
  }

  .document-header {
    padding: 40px 0 28px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .site-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-nav a {
    text-align: center;
  }

  .hero-inner {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .app-icon {
    width: 68px;
    height: 68px;
  }

  h1 {
    font-size: 27px;
  }

  .button {
    width: 100%;
  }
}

@media print {
  .skip-link,
  .site-header,
  .toc,
  .site-footer,
  .back-top {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
  }

  .document-layout {
    display: block;
    padding: 0;
  }

  .legal-document {
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
