:root {
  color-scheme: light;
  --page: #f5f6f4;
  --surface: #ffffff;
  --surface-muted: #f0f3ef;
  --ink: #1d221f;
  --ink-soft: #555f59;
  --ink-muted: #747d77;
  --line: #d9dfda;
  --line-strong: #b7c1ba;
  --accent: #23624f;
  --accent-muted: #dce9e3;
  --warning: #7a5427;
  --shadow: 0 24px 70px rgba(29, 34, 31, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans TC",
    "PingFang TC",
    "Microsoft JhengHei",
    sans-serif;
  font-size: 16px;
  line-height: 1.72;
}

.page {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  padding: 48px 0 80px;
}

.document-header {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 36px;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--surface);
  background: var(--ink);
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 760;
}

.document-type {
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.title-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 40px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 720;
}

h1,
h2,
p,
dl,
dd,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.42;
  font-weight: 760;
  letter-spacing: 0;
}

.document-meta {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.document-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 15px;
  background: var(--surface);
}

.document-meta div + div {
  border-top: 1px solid var(--line);
}

.document-meta dt {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.document-meta dd {
  min-width: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.intro {
  max-width: 820px;
  padding-top: 34px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.notice {
  margin: 22px 0;
  padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice h2 {
  padding-bottom: 18px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.summary-grid div {
  min-width: 0;
  padding: 18px;
  background: var(--surface-muted);
}

.label {
  display: block;
  padding-bottom: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 760;
}

.summary-grid p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
}

.content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.content section {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  padding: 34px 36px;
}

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

.section-label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.section-label span {
  flex: 0 0 auto;
  min-width: 34px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 760;
  line-height: 1.9;
}

.section-body {
  min-width: 0;
  color: var(--ink-soft);
}

.section-body p,
.section-body li {
  max-width: 760px;
}

p + p,
p + ul,
p + table,
table + p,
ul + p {
  margin-top: 16px;
}

ul {
  padding-left: 1.15rem;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 0.94rem;
}

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

th {
  color: var(--ink);
  background: var(--surface-muted);
  font-size: 0.82rem;
  font-weight: 760;
}

td:first-child {
  width: 24%;
  color: var(--ink);
  font-weight: 680;
}

.after-table {
  color: var(--warning);
}

code {
  padding: 0.12em 0.3em;
  color: var(--ink);
  background: var(--surface-muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family:
    "SFMono-Regular",
    Consolas,
    "Liberation Mono",
    Menlo,
    monospace;
  font-size: 0.9em;
  word-break: break-word;
}

a {
  color: var(--accent);
  text-decoration-color: color-mix(in srgb, var(--accent), transparent 54%);
  text-underline-offset: 0.18em;
}

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

.endpoint-list {
  list-style: none;
  padding-left: 0;
}

.endpoint-list li + li,
.contact-list li + li {
  margin-top: 7px;
}

::selection {
  background: var(--accent-muted);
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 1080px);
    padding-top: 28px;
  }

  .document-header,
  .notice,
  .content section {
    padding: 24px;
  }

  .title-grid,
  .content section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

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

  .page {
    width: min(100% - 20px, 1080px);
  }

  .document-header,
  .notice,
  .content {
    border-radius: 6px;
  }

  .brand-row {
    align-items: flex-start;
    padding-bottom: 26px;
  }

  .document-type {
    line-height: 1.45;
  }

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

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

  .content section {
    padding: 22px 18px;
  }

  .section-label {
    gap: 10px;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr + tr {
    border-top: 1px solid var(--line-strong);
  }

  th,
  td {
    border: 0;
  }

  td {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 12px;
  }

  td:first-child {
    width: 100%;
    padding-top: 14px;
    background: var(--surface-muted);
  }

  td::before {
    content: attr(data-label);
    color: var(--ink-muted);
    font-size: 0.78rem;
    font-weight: 760;
  }
}
