:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #647187;
  --soft: #f6f8fb;
  --paper: #ffffff;
  --line: #dce3ee;
  --blue: #2563eb;
  --green: #0f8b6f;
  --amber: #b96810;
  --pink: #c02672;
  --violet: #6750a4;
  --shadow: 0 16px 40px rgba(39, 51, 79, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.10), transparent 28rem),
    linear-gradient(180deg, #ffffff 0%, var(--soft) 38rem);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.82;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--blue);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #1742a4;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green);
  font-size: 18px;
  box-shadow: 0 8px 20px rgba(23, 32, 51, 0.06);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  min-height: 430px;
  display: grid;
  align-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(23, 32, 51, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 32, 51, 0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, 0.88) 48%, transparent 100%);
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(115deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 48%, rgba(255, 255, 255, 0.46) 100%),
    repeating-linear-gradient(135deg, transparent 0 28px, rgba(15, 139, 111, 0.08) 28px 29px);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 70px;
}

.kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(38px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 760px;
  margin: 22px 0 0;
  color: #415068;
  font-size: clamp(18px, 2.4vw, 23px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 720;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.07);
}

.button.primary {
  border-color: #1f58cf;
  background: var(--blue);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
}

main {
  padding: 54px 0 76px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.section-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

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

.card {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.card:hover {
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-2px);
}

.card-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef7f3;
  color: var(--green);
  padding: 3px 10px;
  font-size: 13px;
  font-weight: 760;
}

.card:nth-child(2) .card-label {
  background: #fff2df;
  color: var(--amber);
}

.card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.26;
}

.card p {
  margin: 12px 0 0;
  color: #4d5a70;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.arrow {
  color: var(--blue);
  font-size: 20px;
  line-height: 1;
}

.notes {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  margin-top: 38px;
}

.note-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 22px 24px;
}

.note-panel h2,
.note-panel h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.note-panel p {
  margin: 0;
  color: #4d5a70;
}

.note-panel ul {
  margin: 12px 0 0;
  padding-left: 1.2em;
  color: #4d5a70;
}

.doc-page {
  background: #fff;
}

.doc-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
}

.doc-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
}

.doc-main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 76px;
}

.doc-title {
  margin-bottom: 26px;
}

.doc-title .kicker {
  margin-bottom: 10px;
}

.doc-title p:last-child {
  max-width: 760px;
  margin: 16px 0 0;
  color: #4d5a70;
  font-size: 18px;
}

.doc-main h1 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 54px);
}

.doc-main h2 {
  margin: 2.2em 0 0.62em;
  padding-bottom: 0.22em;
  border-bottom: 1px solid var(--line);
  font-size: 28px;
}

.doc-main h3 {
  margin: 1.55em 0 0.45em;
  font-size: 22px;
}

.doc-main h4 {
  margin: 1.25em 0 0.4em;
  font-size: 18px;
}

.doc-main p,
.doc-main li {
  color: #334155;
}

.doc-main blockquote {
  margin: 22px 0;
  border-left: 4px solid var(--green);
  background: #f3faf7;
  padding: 16px 18px;
  color: #2f584d;
}

.doc-main table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 22px 0;
  font-size: 15px;
}

.doc-main th,
.doc-main td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}

.doc-main th {
  background: var(--soft);
}

.doc-main code {
  border-radius: 5px;
  background: #eef2f7;
  padding: 0.1em 0.36em;
  font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.doc-main pre {
  overflow: auto;
  border-radius: 8px;
  background: #111827;
  color: #e5e7eb;
  padding: 16px 18px;
}

.doc-main pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.doc-main hr {
  margin: 34px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.doc-main img,
.doc-main svg {
  max-width: 100%;
}

.doc-main #TOC {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 16px 18px;
  margin: 24px 0 30px;
}

.doc-main #TOC::before {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  content: "目录";
  font-size: 18px;
  font-weight: 780;
}

.doc-main #TOC ul {
  margin: 0.3em 0;
}

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 34px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .shell,
  .hero-inner,
  .doc-main {
    width: min(100% - 28px, 1120px);
  }

  .topbar,
  .section-heading,
  .doc-header .shell {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    flex-wrap: wrap;
  }

  .hero {
    min-height: 520px;
  }

  .hero-inner {
    padding: 48px 0 56px;
  }

  .grid,
  .notes {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}
