:root {
  color-scheme: light;
  --paper: #f7f7f4;
  --surface: #ffffff;
  --ink: #202321;
  --muted: #626965;
  --line: #d9ddd9;
  --brand: #d94535;
  --brand-dark: #9f2c23;
  --accent: #087f73;
  --accent-soft: #e6f3f0;
  --warning: #8c5a00;
  --warning-soft: #fff5dc;
  --shadow: 0 12px 30px rgba(32, 35, 33, 0.08);
}

* {
  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", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
}

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

a:hover {
  color: #055f57;
}

.topbar {
  background: #202321;
  border-bottom: 4px solid var(--brand);
  color: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--brand);
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  color: #e9ecea;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.topnav a[aria-current="page"],
.topnav a:hover {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 3px;
  text-underline-offset: 8px;
}

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

.hero-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 14px;
  font-size: clamp(32px, 5vw, 48px);
}

h2 {
  margin-bottom: 14px;
  font-size: 25px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.page {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 72px;
}

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

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

.toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.toc a:hover {
  color: var(--accent);
}

.document {
  min-width: 0;
}

.document section {
  padding: 0 0 36px;
  scroll-margin-top: 22px;
}

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

.document p,
.document ul,
.document ol {
  margin-top: 0;
  margin-bottom: 14px;
}

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

.lead {
  color: #3f4541;
  font-size: 17px;
}

.notice {
  margin: 18px 0 24px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 0 6px 6px 0;
}

.notice.warning {
  background: var(--warning-soft);
  border-left-color: var(--warning);
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.doc-card {
  min-height: 180px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.doc-card .number {
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}

.doc-card h2 {
  margin: 10px 0 8px;
  font-size: 20px;
}

.doc-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.doc-card a {
  font-weight: 700;
}

.summary-band {
  margin-bottom: 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  background: #202321;
  color: #fff;
  border-radius: 8px;
}

.summary-band strong,
.summary-band span {
  display: block;
}

.summary-band strong {
  font-size: 19px;
}

.summary-band span {
  color: #cbd1cd;
  font-size: 13px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

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

th {
  background: #eff1ef;
  color: #353a37;
  font-weight: 750;
}

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

.tag {
  display: inline-block;
  margin: 2px 5px 2px 0;
  padding: 2px 7px;
  background: #eef0ee;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #424844;
  font-size: 12px;
}

.form {
  max-width: 760px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.field {
  margin-bottom: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #bfc5c0;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  letter-spacing: 0;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(8, 127, 115, 0.18);
  border-color: var(--accent);
}

.hint {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--brand-dark);
  border-radius: 6px;
  background: var(--brand);
  color: #fff;
  font: inherit;
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: var(--brand-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
}

.form-status.success {
  display: block;
  background: var(--accent-soft);
  color: #075c54;
}

.form-status.error {
  display: block;
  background: #fde9e6;
  color: #8e281f;
}

.footer {
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

.footer-inner {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer p {
  margin: 0;
}

@media (max-width: 800px) {
  .topbar-inner {
    width: calc(100% - 28px);
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topnav {
    width: 100%;
    padding-bottom: 4px;
  }

  .hero-inner,
  .page,
  .footer-inner {
    width: calc(100% - 28px);
  }

  .hero-inner {
    padding: 38px 0 32px;
  }

  .page {
    padding: 30px 0 52px;
  }

  .document-layout {
    display: block;
  }

  .toc {
    position: static;
    margin-bottom: 28px;
  }

  .doc-grid,
  .summary-band,
  .field-row {
    grid-template-columns: 1fr;
  }

  .doc-card {
    min-height: 0;
  }

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

@media print {
  .topbar,
  .toc,
  .footer,
  .form {
    display: none;
  }

  body,
  .hero {
    background: #fff;
  }

  .document-layout {
    display: block;
  }

  .page,
  .hero-inner {
    width: 100%;
  }
}
