* {
  box-sizing: border-box;
}
:root {
  color: #12263a;
  background: #f6f8fb;
  font-family: system-ui, "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}
body {
  margin: 0;
}
a {
  color: #1859a9;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
.wrap {
  width: min(1200px, 92%);
  margin: auto;
}
header {
  background: white;
  border-bottom: 1px solid #dce5ef;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: #12263a;
}
nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 25px;
  padding: 10px 0 16px;
}
nav a {
  color: #344b62;
  font-size: 14px;
}
.btn, .outline, button {
  display: inline-block;
  border: 1px solid #246bce;
  border-radius: 6px;
  background: #246bce;
  color: white;
  padding: 10px 18px;
  font: inherit;
  cursor: pointer;
  text-align: center;
}
.outline {
  background: transparent;
  color: #1859a9;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
  padding: 52px 0 36px;
}
.hero h1 {
  font-size: 18px;
  font-weight: 650;
  margin: 12px 0;
}
.hero h2 {
  font-size: clamp(28px,4vw,49px);
  line-height: 1.23;
  margin: 12px 0;
  letter-spacing: -.04em;
}
.hero p {
  color: #40566b;
}
figure {
  margin: 0;
}
figure img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 1.4;
  object-fit: cover;
}
figcaption, .muted, .crumb {
  color: #53677a;
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .12em;
  color: #246bce;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.workflow {
  background: #12263a;
  color: white;
  padding: 25px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 20px;
}
.workflow .eyebrow {
  color: #edb365;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}
.steps a {
  border-left: 1px solid #60758a;
  padding-left: 12px;
  color: white;
}
section {
  margin-bottom: 38px;
}
h2 {
  line-height: 1.4;
  margin: 8px 0 14px;
}
.guides {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
.guide {
  display: flex;
  flex-direction: column;
  border: 1px solid #dce5ef;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  color: #12263a;
}
.guide img {
  width: 100%;
  aspect-ratio: 2;
  object-fit: cover;
}
.guide div {
  padding: 18px;
}
.guide h3 {
  margin: 4px 0;
}
.guide p {
  margin: 0 0 12px;
  color: #53677a;
}
.feature {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 28px;
  background: #e6eff8;
  padding: 25px;
  border-radius: 12px;
}
.feature img {
  width: 100%;
}
.article {
  max-width: 820px;
  margin: 24px auto;
  padding: clamp(16px,4vw,40px);
  background: white;
  border: 1px solid #dce5ef;
  border-radius: 12px;
}
.article h1 {
  line-height: 1.4;
}
.article h2 {
  margin-top: 28px;
}
.diagram {
  width: min(100%,480px);
  margin: 20px auto;
}
.related, .toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.related a {
  padding: 10px;
  background: white;
}
#board {
  width: 100%;
  background: white;
  border: 1px solid #a6bdd4;
  touch-action: none;
  margin-top: 15px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
input, select {
  max-width: 100%;
  padding: 8px;
  font: inherit;
  border: 1px solid #a6bdd4;
  border-radius: 5px;
}
#calc {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3,minmax(0,1fr));
}
output {
  display: block;
  margin-top: 15px;
  font-weight: bold;
}
footer {
  background: #12263a;
  color: white;
  padding: 30px 0;
  margin-top: 40px;
}
footer a {
  color: #b9dbff;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 10px;
  background: white;
}
@media(max-width: 700px) { .hero,.workflow,.feature {
  grid-template-columns: 1fr;
} .hero {
  padding-top: 24px;
  gap: 20px;
} .guides {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
} .guide div {
  padding: 12px;
} .steps {
  grid-template-columns: 1fr 1fr;
} .brand {
  font-size: 14px;
} .top .btn {
  padding: 8px;
  font-size: 13px;
} #calc {
  grid-template-columns: 1fr;
} }

.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th, td {
  padding: 12px;
  border-bottom: 1px solid #dce5ef;
  text-align: left;
}
.precise {
  background: white;
  padding: 20px;
  border: 1px solid #dce5ef;
  border-radius: 10px;
}
.coordinates {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(90px,1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.coordinates input {
  width: 100%;
  min-width: 0;
}
.toolbar > * {
  min-width: 0;
}
:focus-visible {
  outline: 3px solid #edb365;
  outline-offset: 3px;
}
@media(max-width: 400px) { .guides {
  grid-template-columns: 1fr;
} .top {
  flex-wrap: wrap;
} }
