:root {
  color-scheme: light;
  --ink: #18201f;
  --muted: #5f6c69;
  --paper: #ffffff;
  --canvas: #f3f6f4;
  --line: #dce5e1;
  --brand: #123f3a;
  --brand-soft: #e8f2ee;
  --accent: #b9ff5a;
  --warning: #fff6dd;
  --warning-line: #efd488;
  --shadow: 0 18px 50px rgba(18, 63, 58, 0.08);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: #17675b;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #0d493f;
}

a:focus-visible {
  outline: 3px solid rgba(23, 103, 91, 0.35);
  outline-offset: 4px;
  border-radius: 4px;
}

.site-header {
  color: #ffffff;
  background: var(--brand);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.brand:hover {
  color: #ffffff;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: var(--brand);
  background: var(--accent);
  border-radius: 11px;
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

nav a {
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}

nav a:hover,
nav a[aria-current="page"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

.eyebrow {
  margin: 0 0 10px;
  color: #34796e;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.home-shell {
  width: min(1050px, calc(100% - 40px));
  min-height: calc(100vh - 240px);
  margin: 0 auto;
  padding: 88px 0 76px;
}

.home-intro {
  max-width: 790px;
}

.home-intro h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.home-lead {
  max-width: 720px;
  margin: 24px 0 20px;
  color: #41504d;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.85;
}

.health-notice {
  display: inline-block;
  margin: 0;
  padding: 13px 16px;
  color: #6f5314;
  background: var(--warning);
  border: 1px solid var(--warning-line);
  border-radius: 10px;
  font-size: 14px;
}

.document-grid {
  margin-top: 58px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.document-card {
  min-height: 245px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.document-card:hover {
  color: var(--ink);
  border-color: #9dbbb4;
  box-shadow: 0 22px 60px rgba(18, 63, 58, 0.12);
  transform: translateY(-3px);
}

.card-number {
  color: #609087;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.document-card h2 {
  margin: 24px 0 9px;
  font-size: 25px;
  line-height: 1.35;
}

.document-card p {
  margin: 0;
  color: var(--muted);
}

.card-action {
  margin-top: auto;
  padding-top: 26px;
  color: #17675b;
  font-size: 14px;
  font-weight: 720;
}

.document-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 46px 0 80px;
  display: grid;
  grid-template-columns: 240px minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: 28px;
}

.toc-card {
  position: sticky;
  top: 24px;
  padding: 22px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.toc-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toc-card li + li {
  margin-top: 3px;
}

.toc-card a {
  display: block;
  padding: 5px 0;
  color: #566561;
  font-size: 13px;
  line-height: 1.55;
  text-decoration: none;
}

.toc-card a:hover {
  color: #17675b;
}

.legal-document {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.document-heading {
  padding: clamp(30px, 6vw, 58px);
  background: linear-gradient(145deg, #ffffff 0%, #edf6f2 100%);
  border-bottom: 1px solid var(--line);
}

.document-heading h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 50px);
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.document-meta {
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 24px;
}

.document-meta div {
  min-width: 0;
}

.document-meta dt,
.document-meta dd {
  display: inline;
  margin: 0;
  font-size: 14px;
}

.document-meta dt {
  color: #71807c;
}

.document-meta dt::after {
  content: "：";
}

.document-meta dd {
  color: #293532;
  font-weight: 560;
  overflow-wrap: anywhere;
}

.document-content {
  padding: clamp(30px, 6vw, 58px);
}

.document-content h2 {
  margin: 56px 0 20px;
  padding-top: 8px;
  color: #123f3a;
  font-size: 25px;
  line-height: 1.4;
  scroll-margin-top: 24px;
}

.document-content h2:first-of-type {
  margin-top: 44px;
}

.document-content p {
  margin: 0 0 18px;
  color: #2b3432;
  text-align: justify;
  text-justify: inter-ideograph;
}

.document-content .document-lead {
  margin-bottom: 34px;
  color: #354541;
  font-size: 17px;
  line-height: 1.95;
}

.document-content .clause {
  padding-left: 0.1em;
}

.document-content ul {
  margin: 0 0 25px;
  padding: 20px 22px 20px 44px;
  background: #f7faf8;
  border: 1px solid #e4ebe8;
  border-radius: 12px;
}

.document-content li + li {
  margin-top: 7px;
}

.document-content li::marker {
  color: #2e7b6f;
}

.document-footer {
  padding: 26px clamp(30px, 6vw, 58px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #f8faf9;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.document-footer p {
  margin: 0;
}

.back-to-top {
  flex: 0 0 auto;
  text-decoration: none;
  font-weight: 650;
}

.site-footer {
  width: min(1050px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 40px;
  color: #6a7774;
  border-top: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
}

.site-footer p {
  margin: 4px 0;
}

@media (max-width: 850px) {
  .document-shell {
    grid-template-columns: minmax(0, 760px);
  }

  .toc-card {
    position: static;
  }

  .toc-card ol {
    columns: 2;
    column-gap: 20px;
  }
}

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

  .header-inner {
    width: min(100% - 28px, 1180px);
    min-height: 68px;
  }

  .brand {
    font-size: 16px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }

  nav {
    gap: 2px;
  }

  nav a {
    padding: 7px 8px;
    font-size: 13px;
  }

  .home-shell,
  .document-shell,
  .site-footer {
    width: min(100% - 28px, 1050px);
  }

  .home-shell {
    padding: 56px 0 52px;
  }

  .document-grid {
    margin-top: 38px;
    grid-template-columns: 1fr;
  }

  .document-card {
    min-height: 220px;
    padding: 24px;
  }

  .document-shell {
    padding: 24px 0 54px;
    gap: 16px;
  }

  .toc-card {
    padding: 18px;
  }

  .toc-card ol {
    columns: 1;
  }

  .legal-document {
    border-radius: 14px;
  }

  .document-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .document-content h2 {
    margin-top: 46px;
    font-size: 22px;
  }

  .document-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .document-card {
    transition: none;
  }
}

@media print {
  body {
    background: #ffffff;
    font-size: 11pt;
  }

  .site-header,
  .toc-card,
  .site-footer,
  .document-footer {
    display: none;
  }

  .document-shell {
    width: 100%;
    display: block;
    padding: 0;
  }

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

  .document-heading,
  .document-content {
    padding: 24px 0;
  }

  .document-content h2 {
    break-after: avoid;
  }

  .document-content p,
  .document-content li {
    orphans: 3;
    widows: 3;
  }
}
