:root {
  color-scheme: light;
  --ink: #142c39;
  --text: #334d59;
  --accent: #07695f;
  --paper: #ffffff;
  --rule: #d7e4e3;
  font-family: system-ui, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: #f6faf9;
  line-height: 1.65;
}

* { box-sizing: border-box; }
body { margin: 0; }
.wrap { width: min(100% - 2rem, 54rem); margin-inline: auto; }
.hero { background: #102b3a; color: #f2faf9; padding-block: 1.45rem clamp(2rem, 7vw, 4rem); }
.hero p { color: #c5dadc; max-width: 38rem; }
.hero a:not(.button) { color: #b4e5dd; }
.topline { display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-weight: 650; }
h1, h2, h3 { line-height: 1.28; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); margin: clamp(1.55rem, 5vw, 2.8rem) 0 .6rem; }
h2 { font-size: clamp(1.28rem, 4vw, 1.65rem); margin: 0 0 .65rem; }
h3 { font-size: 1.06rem; margin: 0 0 .35rem; }
p { color: var(--text); margin: .55rem 0 .85rem; }
ul { margin: .5rem 0 0; padding-inline-start: 1.35rem; color: var(--text); }
ul li + li { margin-top: .4rem; }
a { color: var(--accent); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:focus-visible, [tabindex]:focus-visible { outline: 2px solid #097f75; outline-offset: 4px; }
.hero a:focus-visible { outline-color: #b4e5dd; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(1.35rem, 5vw, 2.35rem); padding-block: clamp(1.35rem, 5vw, 2.6rem) 3rem; }
.setup { border-radius: .85rem; border: 1px solid var(--rule); border-inline-start: .3rem solid var(--accent); background: #edf7f4; padding: clamp(.95rem, 4vw, 1.5rem); }
.setup p:last-child, .steps p { margin-bottom: 0; }
.actions { display: flex; gap: .55rem .85rem; flex-wrap: wrap; align-items: center; margin: .9rem 0; }
.feedback .actions { margin-bottom: 0; }
.button { display: inline-block; padding: .5rem .9rem; border: 1px solid #43897e; border-radius: .55rem; background: var(--paper); font-weight: 650; text-decoration: none; }
.button:hover { box-shadow: 0 0 0 2px #bfded8; }
.primary { color: #0d302d; background: #a7e3d7; border-color: #a7e3d7; margin-top: .35rem; }
.table-scroll { overflow: auto; border: 1px solid var(--rule); border-radius: .7rem; background: var(--paper); }
table { width: 100%; min-width: 29rem; border-collapse: collapse; font-size: .93rem; text-align: start; }
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--rule); text-align: start; }
thead { background: #e9f2f2; }
tbody tr:last-child > * { border-bottom: 0; }
code { font-size: .9em; white-space: nowrap; }
.steps { margin: .9rem 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--rule); border-radius: .7rem; padding: .9rem .95rem .95rem 3.1rem; }
.steps > li + li { margin-top: .55rem; }
.steps > li::before { content: counter(step); position: absolute; inset: .88rem auto auto .9rem; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 50%; color: var(--accent); background: #e6f4ef; font-size: .84rem; font-weight: 750; }
.steps p { margin-top: 0; }
.steps p + p { margin-top: .55rem; }

@media (max-width: 500px) {
  .wrap { width: calc(100% - 1.4rem); }
  table { min-width: 0; font-size: .83rem; }
  th, td { padding: .45rem .35rem; }
  .steps > li { padding-inline-start: 2.75rem; }
  .steps > li::before { inset-inline-start: .68rem; }
}

@media print {
  :root { background: #ffffff; font-size: 10pt; }
  .wrap { width: 100%; }
  .hero { background: #ffffff; color: var(--ink); padding: 0 0 1rem; border-bottom: 1px solid var(--rule); }
  .hero p { color: var(--text); }
  .hero a.primary { background: none; color: var(--ink); border: 0; padding: 0; }
  .hero a.primary::after { content: " (" attr(href) ")"; font-size: .84em; }
  .topline a, .actions { display: none; }
  main { gap: 1.1rem; padding: 1rem 0; }
  h1 { font-size: 24pt; margin-top: .35rem; }
  h2 { break-after: avoid; }
  .steps > li, .setup, table { break-inside: avoid; }
}
