:root {
  --paper: #f6f7f4;
  --card: #ffffff;
  --ink: #20262b;
  --ink-soft: #5d6870;
  --ink-faint: #8a949b;
  --line: #e3e7e2;
  --accent: #0e766d;
  --accent-deep: #0a5b55;
  --accent-soft: #e6f3ef;
  --amber: #9a6111;
  --amber-soft: #fdf2e1;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
}

.brand:hover {
  text-decoration: none;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
}

.brand__caption {
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 500;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
}

.page-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
}

.page-nav a.is-active {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 72px;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.doc-toc {
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 18px 16px;
}

.doc-toc__title {
  margin: 0 0 10px;
  padding: 0 8px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-faint);
}

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

.doc-toc li {
  margin: 0;
}

.doc-toc a {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.doc-toc a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
  text-decoration: none;
}

.doc-toc .toc-sub {
  padding-left: 22px;
  font-size: 13px;
}

.doc {
  min-width: 0;
}

.doc-hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 34px 40px 30px;
  margin-bottom: 28px;
}

.doc-hero__eyebrow {
  margin: 0 0 10px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
}

.doc-hero h1 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.25;
}

.doc-hero__meta {
  margin: 0 0 16px;
  color: var(--ink-faint);
  font-size: 13px;
}

.doc-hero__lead {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.doc-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
}

.doc-links a:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

.doc-body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 38px 44px 46px;
}

.section {
  scroll-margin-top: 24px;
  padding-bottom: 26px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 21px;
  line-height: 1.4;
}

.section h3 {
  margin: 22px 0 10px;
  font-size: 17px;
  line-height: 1.5;
}

.section p {
  margin: 0 0 12px;
}

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

.notice {
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid #f0ddb9;
  border-left: 4px solid var(--amber);
  border-radius: 10px;
  background: var(--amber-soft);
}

.notice h2 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--amber);
}

.notice p {
  margin: 0;
  color: #5b4a2c;
}

.sub-heading {
  margin: 20px 0 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.feature-title {
  margin: 18px 0 8px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.list {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.list > li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
}

.list > li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.list--letters > li::before {
  display: none;
}

.list--letters > li {
  padding-left: 24px;
}

.list--plain > li::before {
  display: none;
}

.list--plain > li {
  padding-left: 0;
}

.table-wrap {
  margin: 12px 0 16px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}

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

.table-wrap th {
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-weight: 700;
}

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

.placeholder {
  display: inline-block;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--amber-soft);
  color: var(--amber);
  font-weight: 700;
}

.callout {
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  color: var(--accent-deep);
  font-size: 15px;
}

.footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 48px;
  color: var(--ink-faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer a {
  color: var(--ink-soft);
}

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink-soft);
  font-size: 16px;
}

.back-top:hover {
  border-color: var(--accent);
  color: var(--accent-deep);
  text-decoration: none;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 48px;
  }

  .doc-toc {
    position: static;
    max-height: none;
  }

  .doc-hero {
    padding: 26px 22px 24px;
  }

  .doc-hero h1 {
    font-size: 28px;
  }

  .doc-body {
    padding: 24px 20px 30px;
  }

  .site-header__inner,
  .footer {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 560px) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  .page-nav {
    width: 100%;
  }

  .page-nav a {
    padding: 6px 10px;
  }

  .doc-hero h1 {
    font-size: 25px;
  }
}

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

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

  .doc-hero,
  .doc-body {
    border: 0;
    box-shadow: none;
    padding: 0;
  }

  .section {
    page-break-inside: avoid;
  }
}
