* { box-sizing: border-box; }
body {
  margin: 0;
  background: #f4f8fb;
  color: #1c3447;
  font: 16px/1.65 system-ui, "Microsoft YaHei", sans-serif;
}
header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px max(5vw, calc((100vw - 940px) / 2));
  border-bottom: 1px solid #dce5eb;
  background: #fff;
}
a { color: #006e88; text-underline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
summary:focus-visible, .scroll:focus-visible { outline: 3px solid #92c9d8; outline-offset: 3px; }
.brand { color: #163e58; font-size: 22px; font-weight: 800; text-decoration: none; }
main { max-width: 988px; margin: auto; padding: 38px 24px; }
.method { margin: 0; color: #087e83; font-weight: 700; letter-spacing: .04em; }
h1 { margin: 8px 0; font-size: clamp(27px, 4vw, 43px); line-height: 1.25; }
h2 { margin: 0 0 15px; font-size: 22px; }
h3 { margin: 12px 0 4px; font-size: 18px; }
p { margin: 9px 0 14px; }
.intro { margin: 10px 0 23px; color: #405d6d; }
section {
  margin: 18px 0;
  padding: clamp(18px, 3vw, 32px);
  border: 1px solid #d5e2eb;
  border-radius: 14px;
  background: #fff;
}
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
.tabs { display: flex; gap: 4px; margin-bottom: 18px; border-bottom: 1px solid #d9e6e8; }
.tabs button { padding: 9px 15px; border: 0; border-bottom: 3px solid transparent; background: #fff; color: #465d68; }
.tabs button[aria-pressed="true"] { border-color: #057e83; color: #075e67; font-weight: 700; }
.sample-box { padding: 16px 20px; border-radius: 10px; background: #f0f8f8; }
.sample-box h3, .sample-box p { margin: 0 0 6px; }
.primary { display: block; margin: 19px 0 7px; padding: 10px 22px; border: 0; border-radius: 7px; background: #046e79; color: #fff; font-weight: 700; }
.note, small, footer, figcaption { color: #526674; font-size: 14px; }
.note { margin: 8px 0; }
label { display: block; margin: .9em 0 .3em; font-weight: 600; }
small { display: block; font-weight: 400; }
input, select { display: block; width: 100%; margin: .3em 0; padding: 7px; border: 1px solid #9cb3c1; border-radius: 6px; background: #fff; color: #183c51; }
input[type="file"] { min-width: 0; font-size: 14px; }
details { margin-top: 18px; }
summary { cursor: pointer; font-weight: 600; }
.params { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
#status { margin: 0; overflow-wrap: anywhere; }
#status:not(:empty) { margin-top: 16px; padding: 12px; border-radius: 6px; background: #eff7fa; }
#status.error { color: #8d241f; background: #fff2ef; }
.actions { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 15px 0; }
#result-figure { margin: 20px 0; }
#figure { display: block; width: auto; max-width: 100%; max-height: 680px; margin: 0 auto 8px; }
.scroll { max-width: 100%; overflow: auto; }
table { width: 100%; margin: 8px 0; border-collapse: collapse; font: 14px/1.5 system-ui, sans-serif; }
th, td { padding: 9px 12px; border-bottom: 1px solid #dce6eb; text-align: right; white-space: nowrap; }
th { background: #f3f7f9; }
th:first-child, td:first-child { text-align: left; }
.guide { background: #f8fbfd; }
footer { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  main { padding: 24px 12px; }
  header { padding: 10px 16px; }
  .params { grid-template-columns: 1fr; gap: 0; }
  .tabs button { padding: 9px 11px; }
  .sample-box { padding: 14px; }
}
