:root {
  color-scheme: light dark;
  --page: #f7f3e8;
  --card: #fffdf8;
  --soft: #eee8da;
  --tint: #ddebe4;
  --border: #ded7c7;
  --text: #1f3140;
  --text-secondary: #55635f;
  --text-muted: #68716c;
  --brand: #2f6b5f;
  --brand-strong: #24574e;
  --sky: #3c718e;
  --gold: #8a6716;
  --shadow: 0 24px 70px rgba(31, 49, 64, 0.08);
  --radius-lg: 28px;
  --radius-md: 18px;
  --content: 760px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(60, 113, 142, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 7%, rgba(47, 107, 95, 0.14), transparent 28rem),
    var(--page);
  font-family: -apple-system, BlinkMacSystemFont, "HarmonyOS Sans SC", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-strong);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(60, 113, 142, 0.45);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--brand);
  transform: translateY(-180%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 24px 0 10px;
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(47, 107, 95, 0.2);
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 10px 28px rgba(47, 107, 95, 0.12);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.brand-en {
  display: block;
  margin-top: -4px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-shell {
  width: min(calc(100% - 32px), 1080px);
  margin: 22px auto 72px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 64px);
  border: 1px solid rgba(47, 107, 95, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 253, 248, 0.98), rgba(221, 235, 228, 0.86));
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -70px;
  bottom: -105px;
  width: 280px;
  height: 190px;
  border-radius: 50%;
  background: rgba(47, 107, 95, 0.11);
  box-shadow:
    -88px -40px 0 rgba(60, 113, 142, 0.07),
    -20px -96px 0 rgba(138, 103, 22, 0.06);
  content: "";
  transform: rotate(-7deg);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero-summary {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 19px);
}

.meta-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--text-secondary);
  font-size: 14px;
  list-style: none;
}

.meta-list strong {
  color: var(--text);
  font-weight: 650;
}

.notice {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid rgba(47, 107, 95, 0.22);
  border-radius: var(--radius-md);
  background: var(--tint);
  color: var(--text);
}

.notice strong {
  color: var(--brand-strong);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, var(--content)) minmax(220px, 1fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.document {
  min-width: 0;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.document section + section {
  margin-top: 50px;
  padding-top: 42px;
  border-top: 1px solid var(--border);
}

h2 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  margin: 30px 0 10px;
  font-size: 19px;
  line-height: 1.45;
}

p {
  margin: 12px 0;
}

ul,
ol {
  padding-left: 1.35em;
}

li + li {
  margin-top: 8px;
}

code {
  padding: 0.12em 0.35em;
  border-radius: 5px;
  background: var(--soft);
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

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

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

th {
  color: var(--brand-strong);
  background: var(--tint);
  font-weight: 700;
}

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

.toc {
  position: sticky;
  top: 20px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(16px);
}

.toc h2 {
  margin-bottom: 12px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.toc ol {
  margin: 0;
  padding-left: 1.3em;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

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

.toc a {
  color: inherit;
  text-decoration: none;
}

.toc a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.contact-card {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
  background: var(--soft);
}

.contact-card p {
  margin: 5px 0;
}

.site-footer {
  width: min(calc(100% - 32px), 1080px);
  margin: 0 auto;
  padding: 0 0 42px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 860px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
    grid-row: 1;
  }
}

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

  .site-header,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 22px), 1080px);
  }

  .site-header {
    padding-top: 14px;
  }

  .page-shell {
    margin-top: 12px;
  }

  .hero,
  .document {
    border-radius: 20px;
  }

  .hero {
    padding: 28px 22px;
  }

  .document {
    padding: 28px 22px;
  }

  .meta-list {
    display: grid;
    gap: 7px;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121816;
    --card: #1c2421;
    --soft: #26302c;
    --tint: #24443b;
    --border: #35403b;
    --text: #f3f5f2;
    --text-secondary: #b8c0bc;
    --text-muted: #aab2ad;
    --brand: #85c8b5;
    --brand-strong: #a9dfcf;
    --sky: #8cbbd3;
    --gold: #f0c861;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
  }

  .hero {
    background: linear-gradient(145deg, rgba(28, 36, 33, 0.98), rgba(36, 68, 59, 0.82));
  }

  .brand-mark,
  .toc {
    background: rgba(28, 36, 33, 0.88);
  }
}

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

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

@media print {
  :root {
    color-scheme: light;
  }

  body {
    background: #fff;
    color: #111;
    font-size: 11pt;
  }

  .site-header,
  .toc,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .hero,
  .document {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero::after {
    display: none;
  }

  .layout {
    display: block;
  }

  .document {
    margin-top: 28px;
  }

  a {
    color: inherit;
    text-decoration: none;
  }
}
