:root {
  color-scheme: light;
  --paper: #f7f8f2;
  --surface: #ffffff;
  --soft: #edf2e9;
  --ink: #172e29;
  --muted: #4c6258;
  --line: #ced9ce;
  --accent: #175344;
  --deep: #102e2b;
  --mint: #a9e4bc;
  --figure-type: ui-monospace, SFMono-Regular, Consolas, monospace;
  --body-type: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body-type); }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .12em; }
:focus-visible { outline: 2px solid #976010; outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; }
code { font-family: var(--figure-type); font-size: .9em; overflow-wrap: anywhere; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.14; letter-spacing: -.04em; }
h3 { font-size: 1.12rem; line-height: 1.35; }
p + p { margin-top: .9rem; }
[id] { scroll-margin-top: 1.25rem; }
.page-width { width: min(100% - 80px, 1240px); margin-inline: auto; }
.skip-link { position: fixed; z-index: 2; top: .75rem; left: .75rem; padding: .55rem .8rem; background: var(--surface); transform: translateY(-180%); }
.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: .6rem 1.6rem; min-height: 74px; padding-block: .65rem; }
.brand, .site-nav a { text-decoration: none; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 760; white-space: nowrap; font-size: 1.14rem; letter-spacing: -.035em; }
.brand-mark { display: grid; width: 26px; height: 26px; place-items: center; flex: none; background: var(--deep); color: var(--mint); border-radius: 50%; }
.brand-mark::before, .brand-mark::after { content: ""; grid-area: 1 / 1; }
.brand-mark::before { width: 18px; height: 8px; border: 1px solid currentColor; border-radius: 50%; transform: rotate(-37deg); }
.brand-mark::after { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1.15rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 38px; color: var(--ink); font-size: .875rem; font-weight: 630; }
.site-nav a:hover { text-decoration: underline; }
.site-nav .lang-switch { padding-inline: .7rem; border: 1px solid var(--line); border-radius: 4px; }

.hero { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(2rem, 5.5vw, 5.3rem); padding-block: clamp(3rem, 6.5vw, 6.1rem); }
.hero-copy { min-width: 0; }
.kicker { display: block; margin-bottom: 1rem; color: var(--accent); font-size: .88rem; font-weight: 720; }
.hero h1 { font-size: clamp(3rem, 5.45vw, 4.7rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 740; text-wrap: balance; }
:lang(zh) .hero h1 { line-height: 1.12; letter-spacing: -.045em; font-size: clamp(2.55rem, 4.5vw, 4.5rem); }
.hero-intro { margin-top: 1.32rem; max-width: 44ch; color: var(--muted); font-size: clamp(1rem, 1.35vw, 1.19rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-top: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .62rem 1rem; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: .9rem; font-weight: 730; text-decoration: none; }
.button:hover { background: var(--soft); }
.button-primary { color: var(--surface); background: var(--accent); }
.button-primary:hover { background: var(--deep); }

.feature-figure {
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.35rem);
  border-radius: 8px;
  background-color: var(--deep);
  background-image: linear-gradient(#d3eddb0b 1px, transparent 1px), linear-gradient(90deg, #d3eddb0b 1px, transparent 1px);
  background-size: 24px 24px;
  color: #f5fbf5;
}
.feature-figure a { color: #f5fbf5; }
.feature-figure .figure-meta { color: #c0d6c8; }
.figure-heading { display: block; font-size: 1.08rem; line-height: 1.35; font-weight: 720; }
.figure-meta { margin-top: .4rem; font-size: .875rem; line-height: 1.5; }

.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid var(--line); }
.section-heading { max-width: 72ch; margin-bottom: 1.4rem; }
.section-heading p { margin-top: .6rem; color: var(--muted); }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); background: var(--surface); }
.table-scroll:focus-visible { outline-offset: 0; }
.table-scroll table { width: 100%; border-collapse: collapse; }
.table-scroll :is(td, th) { padding: .7rem .88rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-scroll th { background: var(--soft); }
.table-scroll tr:last-child td { border-bottom: 0; }
.table-scroll a { overflow-wrap: anywhere; }

pre { max-width: 100%; margin: 0; padding: 1rem 1.2rem; overflow-x: auto; border-radius: 4px; background: var(--deep); color: #ecf7eb; font: .88rem/1.65 var(--figure-type); }
pre code { font-size: inherit; overflow-wrap: normal; }
.site-footer { padding-block: 1.55rem 2.15rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; margin-top: .55rem; }
.site-footer a { color: var(--ink); }

@media (max-width: 900px) {
  .page-width { width: calc(100% - 48px); }
  .hero { gap: 1.8rem; }
}
@media (max-width: 740px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: 13ch; }
  .hero-intro { max-width: 50ch; }
  .masthead { align-items: flex-start; flex-direction: column; }
  .site-nav { gap: .12rem .85rem; }
  .site-nav a { min-height: 40px; }
}
@media (max-width: 460px) {
  .page-width { width: calc(100% - 32px); }
  .hero { padding-block: 2rem 2.6rem; gap: 1.5rem; }
  .hero h1 { font-size: clamp(2.55rem, 10vw, 3.2rem); }
  :lang(zh) .hero h1 { font-size: clamp(2.35rem, 9.1vw, 3rem); }
  .hero-intro { margin-top: .95rem; }
  .kicker { margin-bottom: .7rem; }
  .actions { margin-top: 1.15rem; }
}
