/* ==========================================================================
   经纬度查询 · jingweiduchaxundingwei.com
   设计语言：深洋红 #a92b5f × 纸白 × 暖灰，直角、细线、网格与留白
   ========================================================================== */

:root {
  --brand: #a92b5f;
  --brand-deep: #89224d;
  --brand-soft: #f6e9ee;
  --ink: #222222;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --faint: #8c8c8c;
  --line: #b8b1ac;
  --line-strong: #a6a6a6;
  --line-soft: #ded9d5;
  --paper: #ffffff;
  --sand: #f2f0ef;
  --sand-2: #ebe6e2;
  --dark: #1d1d1d;
  --ok: #1c6b4a;
  --warn: #8a5a00;
  --err: #a02222;
  --font-sans: "Noto Sans SC", "Source Han Sans SC", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --font-num: "DIN Alternate", "Heebo", "Helvetica Neue", Arial, sans-serif;
  --container: 1100px;
  --narrow: 780px;
  --header-h: 78px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--brand);
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol,
dl,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
}

.skip-link:focus {
  top: 8px;
  color: #fff;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 48px, var(--narrow));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- 通用排版 ---------- */

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before,
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  background: var(--brand);
}

.eyebrow--plain::before,
.kicker--plain::before {
  display: none;
}

.kicker__no {
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.14em;
}

.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}

.arrow-link::after {
  content: "→";
  color: var(--brand);
  font-family: var(--font-num);
  transition: transform 0.2s var(--ease);
}

.arrow-link:hover {
  color: var(--brand);
}

.arrow-link:hover::after {
  transform: translateX(4px);
}

/* ---------- 按钮 ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.btn--primary:hover {
  background: #444;
  border-color: #444;
  color: #fff;
}

.btn--primary:active {
  background: var(--ink);
  border-color: var(--ink);
}

.btn--line {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn--line:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.btn--quiet {
  background: var(--sand);
  border-color: var(--line-soft);
  color: var(--ink);
}

.btn--quiet:hover {
  background: var(--sand-2);
  border-color: var(--line);
  color: var(--ink);
}

.btn--sm {
  min-height: 38px;
  padding: 8px 15px;
  font-size: 13px;
}

.btn--block {
  width: 100%;
}

.btn .arw {
  font-family: var(--font-num);
  font-size: 16px;
  line-height: 1;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line-strong);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 8px 0;
}

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

.brand__mark {
  position: relative;
  width: 26px;
  height: 26px;
  background: var(--brand);
  flex: 0 0 26px;
}

.brand__mark::before,
.brand__mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.brand__mark::before {
  width: 13px;
  height: 13px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: transparent;
}

.brand__mark::after {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__text strong {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.brand__text small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 8px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav > ul {
  display: flex;
  align-items: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: var(--header-h);
  padding: 0 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.is-current {
  color: var(--brand);
}

.nav-link[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 2px;
  background: var(--brand);
}

.nav-link--btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
}

.nav-link .caret {
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s var(--ease);
}

.nav-item.is-open > .nav-link--btn {
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  appearance: none;
}

.nav-link .caret {
  transform: rotate(225deg) translate(-2px, -2px);
}

.subnav {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 208px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.nav-item.is-open .subnav,
.nav-item:hover .subnav,
.nav-item:focus-within .subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.subnav a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
}

.subnav a::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: var(--line);
  transition: background-color 0.2s;
}

.subnav a:hover {
  background: var(--sand);
  color: var(--brand);
}

.subnav a:hover::before {
  background: var(--brand);
}

.subnav a[aria-current="page"] {
  color: var(--brand);
  font-weight: 700;
}

.subnav small {
  display: block;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.header__cta {
  margin-left: 14px;
  min-height: 40px;
  padding: 8px 18px;
  font-size: 13px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 20px;
  height: 1px;
  margin: 0 auto;
  background: var(--ink);
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 首页主视觉 ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 0;
  background:
    linear-gradient(90deg, transparent 0, transparent calc(100% - 1px), #e7e2de 100%),
    var(--paper);
}

.hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, rgba(34, 34, 34, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 34, 34, 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.5) 55%, transparent 92%);
}

.hero__inner {
  position: relative;
  z-index: 2;
}

.hero__copy {
  position: relative;
  max-width: 760px;
  padding-top: 10px;
}

.hero__copy::after {
  content: "";
  position: absolute;
  top: 4px;
  left: -24px;
  width: 3px;
  height: 54px;
  background: var(--brand);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(38px, 5.2vw, 58px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.16;
}

.hero h1 .thin {
  font-weight: 400;
  color: var(--muted);
}

.hero__sub {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero__sub::before,
.hero__sub::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--line);
}

.hero__lede {
  max-width: 690px;
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.85;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
}

.hero__meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero__meta li::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.hero__deco {
  position: absolute;
  top: 32px;
  right: -40px;
  width: 330px;
  color: var(--ink);
  opacity: 0.9;
  pointer-events: none;
}

.hero__deco text {
  font-family: var(--font-num);
}

.hero__tool {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  padding-bottom: 56px;
}

.hero__footnote {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 区块结构 ---------- */

.section {
  padding: 76px 0;
  border-top: 1px solid var(--line-soft);
}

.section--sand {
  background: var(--sand);
}

.section--tight {
  padding: 56px 0;
}

.section--white {
  background: var(--paper);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.section__head-main {
  max-width: 720px;
}

.section__title {
  margin-top: 14px;
  font-size: clamp(25px, 3vw, 33px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.section__lede {
  max-width: 660px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section__more {
  flex: 0 0 auto;
  padding-bottom: 6px;
}

.section__foot {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

/* ---------- 数据条 ---------- */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.stat {
  padding: 26px 24px;
  border-left: 1px solid var(--line-soft);
}

.stat:first-child {
  border-left: 0;
}

.stat__value {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat__value small {
  margin-left: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.stat__label {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 卡片 ---------- */

.card-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  position: relative;
  display: block;
  padding: 30px 28px 32px;
  background: #fff;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.2s var(--ease);
}

a.card:hover {
  background: var(--sand);
  color: var(--ink);
}

.card__no {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.card__title {
  margin-top: 16px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
}

.card__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 500;
}

.card__link::after {
  content: "→";
  font-family: var(--font-num);
  transition: transform 0.2s var(--ease);
}

a.card:hover .card__link::after {
  transform: translateX(4px);
}

.card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
}

/* ---------- 列表 / 步骤 ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
}

.step {
  position: relative;
  padding: 28px 30px 32px 0;
  border-right: 1px solid var(--line-soft);
}

.step + .step {
  padding-left: 30px;
}

.step:last-child {
  border-right: 0;
}

.step__no {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.step__title {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
}

.step__text {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.bullet-list {
  display: grid;
  gap: 12px;
}

.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.8;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.82em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.bullet-list--tight li {
  font-size: 14px;
}

/* ---------- 双栏内容 ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split--wide-left {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
}

.split--wide-right {
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
}

.panel {
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.panel--sand {
  background: var(--sand);
  border-color: var(--line-soft);
}

.panel__title {
  font-size: 17px;
  font-weight: 700;
}

.panel__text {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.panel__list {
  margin-top: 18px;
}

/* ---------- 坐标系卡片 ---------- */

.crs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
}

.crs {
  padding: 26px 26px 30px;
  border-right: 1px solid var(--line-strong);
}

.crs:last-child {
  border-right: 0;
}

.crs__tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--brand);
  color: #fff;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.crs__name {
  margin-top: 14px;
  font-size: 17px;
  font-weight: 700;
}

.crs__desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.crs__meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.03em;
}

/* ---------- 表格 ---------- */

.table-wrap {
  position: relative;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  -webkit-overflow-scrolling: touch;
}

.table-wrap.is-scrollable::after {
  content: "左右滑动查看完整表格 →";
  display: block;
  padding: 8px 12px;
  border-top: 1px solid var(--line-soft);
  background: var(--sand);
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}

.table caption {
  padding: 14px 16px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  text-align: left;
}

.table th {
  padding: 13px 16px;
  background: var(--sand);
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-2);
  vertical-align: top;
}

.table tr:last-child td {
  border-bottom: 0;
}

.table td.num,
.table th.num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 正文 ---------- */

.prose {
  max-width: 800px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.95;
}

.prose--wide {
  max-width: none;
}

.prose > * + * {
  margin-top: 18px;
}

.prose h2 {
  margin-top: 52px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--ink);
  font-size: 25px;
  font-weight: 700;
  line-height: 1.5;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.prose h3 {
  margin-top: 34px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.prose p {
  margin-top: 0;
}

.prose strong {
  color: var(--ink);
  font-weight: 700;
}

.prose a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.prose a:hover {
  color: var(--brand-deep);
}

.prose ul,
.prose ol {
  display: grid;
  gap: 10px;
  padding-left: 2px;
}

.prose ul li {
  position: relative;
  padding-left: 18px;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.86em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.prose ol {
  counter-reset: item;
}

.prose ol li {
  position: relative;
  padding-left: 30px;
  counter-increment: item;
}

.prose ol li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  top: 0.1em;
  left: 0;
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.prose blockquote {
  padding: 18px 24px;
  border-left: 3px solid var(--brand);
  background: var(--sand);
  color: var(--ink-2);
  font-size: 14.5px;
}

.prose blockquote p {
  margin: 0;
}

.prose figure {
  margin: 28px 0;
}

.prose figure img,
.prose figure svg {
  width: 100%;
  border: 1px solid var(--line-soft);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.prose code {
  padding: 2px 6px;
  background: var(--sand);
  border: 1px solid var(--line-soft);
  color: var(--brand-deep);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.prose hr {
  margin: 40px 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
}

.callout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  background: var(--sand);
  border-left: 3px solid var(--brand);
  font-size: 14px;
  line-height: 1.8;
}

.callout__mark {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.callout p {
  margin: 0;
}

.callout strong {
  color: var(--ink);
}

.note {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.8;
}

/* ---------- 页面头部 ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 38px 0 46px;
  background: var(--sand);
  border-bottom: 1px solid var(--line-strong);
}

.page-head::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(34, 34, 34, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(34, 34, 34, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  pointer-events: none;
}

.page-head__inner {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a {
  color: var(--muted);
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb li + li::before {
  content: "/";
  color: var(--line);
  font-family: var(--font-num);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.page-head h1 {
  max-width: 850px;
  margin-top: 22px;
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.page-head__lede {
  max-width: 760px;
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.85;
}

.page-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.page-head__meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.page-head__meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brand);
}

.page-head__deco {
  position: absolute;
  right: 0;
  bottom: -70px;
  width: 300px;
  opacity: 0.16;
  pointer-events: none;
}

/* ---------- 首页工具区 ---------- */

.tool-shell {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brand);
}

.tool-bar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.tabs {
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 24px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.tab:hover {
  color: var(--ink);
  background: var(--sand);
}

.tab[aria-selected="true"] {
  color: var(--brand);
  font-weight: 700;
  background: #fff;
}

.tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--brand);
}

.tab__no {
  color: var(--line-strong);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.tab[aria-selected="true"] .tab__no {
  color: var(--brand);
}

.tool-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.tool-status::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.tool-section {
  position: relative;
  z-index: 5;
  margin-top: -32px;
  padding: 0 0 64px;
}

.tool-section .tool-shell {
  box-shadow: 0 18px 40px -34px rgba(34, 34, 34, 0.55);
}

.tool-shell--tall .map-pane {
  min-height: 560px;
}

.tool-shell--tall .result-pane {
  min-height: 560px;
}

.query-strip {
  position: relative;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.query-strip__hint {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.query-strip__hint::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  background: var(--brand);
}

.query-strip .field {
  flex: 1 1 auto;
}

.query-strip .field--sm {
  flex: 0 0 150px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.query-msg {
  flex: 1 1 100%;
  padding: 8px 12px;
  border-left: 2px solid var(--brand);
  background: var(--sand);
  color: var(--ink-2);
  font-size: 12.5px;
  line-height: 1.7;
}

.query-msg--error {
  border-left-color: var(--err);
  color: var(--err);
}

.field label,
.field__label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.input,
.select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.input::placeholder {
  color: #8f8883;
}

.input:focus,
.select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
  background: #fff;
}

.input--num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.input-group {
  display: flex;
}

.input-group .input {
  border-right: 0;
}

.select {
  appearance: none;
  padding-right: 32px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 19px, calc(100% - 12px) 19px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

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

.form-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.form-grid .field--full {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.form-msg {
  margin-top: 12px;
  padding: 10px 14px;
  border-left: 2px solid var(--brand);
  background: var(--sand);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.7;
}

.form-msg--error {
  border-left-color: var(--err);
  color: var(--err);
}

.form-msg--ok {
  border-left-color: var(--ok);
  color: var(--ok);
}

/* ---------- 地图工具 ---------- */

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  align-items: stretch;
}

.map-pane {
  position: relative;
  min-height: 504px;
  border-right: 1px solid var(--line-strong);
  background: #e9e5e1;
}

.map-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #e9e5e1;
}

.map-canvas.is-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--sand);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.map-hint {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 500;
  max-width: calc(100% - 28px);
  padding: 9px 13px;
  border-left: 3px solid var(--brand);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  pointer-events: none;
}

.map-hint strong {
  font-family: var(--font-num);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.map-layers {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #fff;
}

.map-layer {
  min-width: 62px;
  padding: 7px 10px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.map-layer:last-child {
  border-bottom: 0;
}

.map-layer:hover {
  background: var(--sand);
}

.map-layer[aria-pressed="true"] {
  background: var(--brand);
  color: #fff;
}

.map-tools {
  position: absolute;
  right: 14px;
  bottom: 44px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-end;
}

.map-tool {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.map-tool:hover {
  background: var(--sand);
  color: var(--brand);
}

.map-tool:disabled {
  opacity: 0.55;
  cursor: wait;
}

.map-tool svg {
  width: 14px;
  height: 14px;
}

.map-legend {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

.map-legend::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand);
}

/* 结果面板 */

.result-pane {
  display: flex;
  flex-direction: column;
  min-height: 504px;
  background: #fff;
}

.result-head {
  padding: 16px 20px 13px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--sand);
}

.result-head__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.result-head__value {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.result-head__value.is-loading {
  color: var(--muted);
  font-weight: 400;
}

.result-head__value.is-loading::after {
  content: "";
  width: 28px;
  height: 2px;
  margin-top: 11px;
  background: linear-gradient(90deg, var(--brand) 0 40%, var(--line-soft) 40% 100%);
  animation: shimmer 1.2s linear infinite;
}

@keyframes shimmer {
  to {
    background-position: 28px 0;
  }
}

.result-body {
  flex: 1 1 auto;
  padding: 4px 20px 16px;
  overflow-y: auto;
  max-height: 360px;
}

.coord-set {
  padding: 10px 0 9px;
  border-bottom: 1px solid var(--line-soft);
}

.coord-set__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.coord-set__name {
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.coord-set__desc {
  color: var(--muted);
  font-size: 10px;
}

.coord-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 1px 0;
}

.coord-row__key {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.coord-row__val {
  flex: 1 1 auto;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  text-align: right;
  overflow-wrap: anywhere;
}

.copy-btn {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  color: #5a5a5a;
  font-size: 10px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.copy-btn:hover {
  border-color: var(--line);
  background: var(--sand);
  color: var(--brand);
}

.copy-btn svg {
  width: 13px;
  height: 13px;
  margin: auto;
}

.dms-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 0 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.dms-toggle::after {
  content: "+";
  margin-left: auto;
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 14px;
}

.dms-toggle[aria-expanded="true"]::after {
  content: "−";
}

.dms-toggle:hover {
  color: var(--brand);
}

.dms {
  display: grid;
  gap: 3px;
  margin-top: 6px;
  padding: 8px 10px;
  background: var(--sand);
  border-left: 2px solid var(--line);
}

.dms[hidden] {
  display: none;
}

.dms__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 11px;
}

.dms__row span:last-child {
  color: var(--ink);
}

.result-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 12px 20px 8px;
  border-top: 1px solid var(--line-soft);
}

.result-actions .btn {
  min-height: 36px;
  padding: 6px 10px;
  font-size: 12px;
}

.result-actions .btn--wide {
  grid-column: 1 / -1;
}

.result-foot {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.result-empty {
  padding: 28px 4px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* 搜索建议 */

.search-box {
  position: relative;
}

.search-field {
  position: relative;
  flex: 1 1 auto;
}

.search-results {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  left: 0;
  z-index: 900;
  border: 1px solid var(--line-strong);
  background: #fff;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.search-results[hidden] {
  display: none;
}

.search-results__head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  background: var(--sand);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
}

.search-result {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.search-result:last-child {
  border-bottom: 0;
}

.search-result:hover,
.search-result:focus-visible {
  background: var(--sand);
}

.search-result__name {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.5;
}

.search-result__meta {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.search-result__coord {
  flex: 0 0 auto;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  line-height: 1.5;
  text-align: right;
}

.search-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 12px;
}

.quick-cities {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.city-chip {
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.city-chip:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* 历史记录 */

.history {
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.history__clear {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 10px;
  cursor: pointer;
}

.history__clear:hover {
  color: var(--brand);
}

.history__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.history-chip {
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 10px;
  line-height: 1.6;
  cursor: pointer;
}

.history-chip:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.history__empty {
  color: var(--muted);
  font-size: 11px;
}

/* ---------- 结果 / 输出块 ---------- */

.output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
}

.output-cell {
  padding: 22px 22px 24px;
  border-right: 1px solid var(--line-strong);
  background: #fff;
}

.output-cell:last-child {
  border-right: 0;
}

.output-cell--full {
  grid-column: 1 / -1;
  border-right: 0;
  border-top: 1px solid var(--line-strong);
}

.output-cell__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.output-cell__label::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.output-cell__value {
  margin-top: 8px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.output-cell__value small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.output-cell__sub {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.copy-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 11px;
  cursor: pointer;
}

.copy-line:hover {
  color: var(--brand-deep);
  text-decoration: underline;
}

/* ---------- 常见问题 ---------- */

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq {
  border-bottom: 1px solid var(--line-soft);
}

.faq summary {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: 0 0 auto;
  margin-top: -2px;
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.2;
  transition: transform 0.2s var(--ease);
}

.faq[open] summary {
  color: var(--brand);
}

.faq[open] summary::after {
  content: "−";
}

.faq__a {
  padding: 0 0 22px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

.faq__a p + p {
  margin-top: 10px;
}

.faq__a a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 相关工具 / 链接卡 ---------- */

.practice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line-soft);
}

.practice-grid ul {
  padding: 24px 30px 24px 0;
}

.practice-grid ul + ul {
  padding-right: 0;
  padding-left: 30px;
  border-left: 1px solid var(--line-soft);
}

.link-list {
  border-top: 1px solid var(--line-strong);
}

.link-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 20px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: padding 0.2s var(--ease), background-color 0.2s var(--ease);
}

.link-row:hover {
  padding-left: 12px;
  background: var(--sand);
  color: var(--ink);
}

.link-row__tag {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.link-row__title {
  font-size: 15px;
  font-weight: 500;
}

.link-row__desc {
  color: var(--muted);
  font-size: 12px;
}

.link-row__arrow {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 16px;
}

/* ---------- CTA 区块 ---------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: 58px 0;
  background: var(--dark);
  color: #fff;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--brand);
}

.cta::after {
  content: "LAT / LNG";
  position: absolute;
  right: 3%;
  bottom: -26px;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-num);
  font-size: 120px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta__text {
  max-width: 660px;
}

.cta .kicker {
  color: #e8a7bd;
}

.cta .kicker::before {
  background: #e8a7bd;
}

.cta h2 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  line-height: 1.45;
}

.cta p {
  margin-top: 10px;
  color: #c9c3bf;
  font-size: 14px;
  line-height: 1.85;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cta .btn--primary:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

.cta .btn--line {
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.cta .btn--line:hover {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}

/* ---------- 页脚 ---------- */

.site-footer {
  background: var(--sand-2);
  border-top: 1px solid var(--line-strong);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 54px 0 42px;
}

.footer__brand .brand {
  padding: 0;
}

.footer__desc {
  max-width: 300px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.9;
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 18px;
  color: var(--faint);
  font-family: var(--font-num);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.footer__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.footer__title::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.footer__links {
  display: grid;
  gap: 9px;
}

.footer__links a {
  color: var(--muted);
  font-size: 12.5px;
}

.footer__links a:hover {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding: 16px 0 20px;
  border-top: 1px solid #d3ccc7;
  color: var(--muted);
  font-size: 11px;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom a {
  color: var(--muted);
}

.footer__bottom a:hover {
  color: var(--brand);
}

/* ---------- 返回顶部 / 提示 ---------- */

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s, background-color 0.2s, color 0.2s;
}

.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-top:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 2500;
  max-width: calc(100% - 40px);
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.6;
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease),
    visibility 0.2s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast--err {
  background: var(--err);
}

/* ---------- 页面工具条 / 标签页（转换等） ---------- */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brand);
  background: #fff;
}

.workspace__col {
  min-width: 0;
  padding: 26px 28px 30px;
}

.workspace__col + .workspace__col {
  border-left: 1px solid var(--line-strong);
  background: var(--sand);
}

.workspace__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.workspace__title {
  font-size: 15px;
  font-weight: 700;
}

.workspace__note {
  color: var(--muted);
  font-size: 10px;
  font-family: var(--font-num);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.result-display {
  display: grid;
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.result-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fff;
}

.result-line__key {
  flex: 0 0 92px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.result-line__val {
  flex: 1 1 auto;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.7;
  text-align: right;
  overflow-wrap: anywhere;
}

.result-line__val small {
  color: var(--muted);
  font-size: 10px;
}

.mini-map {
  height: 300px;
  border: 1px solid var(--line-soft);
  background: #e9e5e1;
}

/* 批量表格 */

.batch-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0 12px;
}

.batch-toolbar__info {
  color: var(--muted);
  font-size: 12px;
}

.batch-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.batch-table td {
  font-size: 12.5px;
  padding: 9px 12px;
}

.batch-table th {
  font-size: 11px;
  padding: 9px 12px;
}

.batch-table .num {
  font-size: 12px;
}

/* 转换页输入行 */

.conv-row {
  display: grid;
  grid-template-columns: 110px 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.swap-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  font-size: 16px;
  cursor: pointer;
}

.swap-btn:hover {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* ---------- 文章 / 知识页 ---------- */

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 56px;
  align-items: start;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 11.5px;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--brand);
}

.toc {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px 0 0;
  border-top: 2px solid var(--brand);
}

.toc__title {
  color: var(--muted);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.toc a {
  display: block;
  padding-left: 12px;
  border-left: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.toc a:hover {
  border-left-color: var(--brand);
  color: var(--brand);
}

.article-cta {
  margin-top: 44px;
  padding: 24px 26px;
  background: var(--sand);
  border-left: 3px solid var(--brand);
}

.article-cta__title {
  font-size: 16px;
  font-weight: 700;
}

.article-cta p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}

.article-cta .btn {
  margin-top: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.related-card {
  display: block;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line-soft);
}

.related-card:hover {
  border-color: var(--brand);
  color: var(--ink);
}

.related-card__label {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-card__title {
  margin-top: 5px;
  font-size: 13.5px;
  font-weight: 700;
}

.related-card__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.6;
}

/* ---------- 关于 / 法务 ---------- */

.info-list {
  border-top: 1px solid var(--line-strong);
}

.info-list li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.8;
}

.info-list strong {
  color: var(--ink);
}

.info-list span {
  color: var(--muted);
}

/* ---------- 错误页 ---------- */

.error-page {
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding: 70px 0;
}

.error-page__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.error-code {
  color: var(--brand);
  font-family: var(--font-num);
  font-size: clamp(88px, 14vw, 150px);
  font-weight: 700;
  line-height: 0.9;
}

.error-page h1 {
  margin-top: 18px;
  font-size: 28px;
  line-height: 1.45;
}

.error-page p {
  max-width: 460px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

/* ---------- Leaflet 定制 ---------- */

.leaflet-container {
  font-family: var(--font-sans);
  background: #e9e5e1;
  outline: 0;
}

.leaflet-control-attribution {
  padding: 1px 5px;
  background: rgba(255, 255, 255, 0.88) !important;
  color: #555;
  font-size: 9px !important;
  line-height: 1.5;
}

.leaflet-control-attribution a {
  color: #444;
}

.leaflet-bar {
  border: 1px solid var(--line-strong) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.leaflet-bar a,
.leaflet-bar a:hover {
  width: 30px;
  height: 30px;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-num);
  line-height: 30px;
}

.leaflet-bar a:last-child {
  border-bottom: 0;
}

.leaflet-bar a:hover {
  background: var(--sand);
  color: var(--brand);
}

.leaflet-control-zoom {
  margin-right: 12px !important;
  margin-bottom: 34px !important;
}

.leaflet-popup-content-wrapper {
  border-radius: 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.leaflet-popup-content {
  margin: 10px 14px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 11px;
  line-height: 1.6;
}

.leaflet-popup-tip {
  box-shadow: none;
}

.latlng-marker {
  position: relative;
  width: 22px;
  height: 22px;
}

.latlng-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--brand);
}

.latlng-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4px;
  height: 4px;
  background: #fff;
  transform: translate(-50%, -50%);
}

.leaflet-marker-draggable {
  cursor: move;
}

/* ---------- 动效 ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 1080px) {
  .hero__deco {
    right: -90px;
    opacity: 0.55;
  }

  .map-layout {
    grid-template-columns: minmax(0, 1fr) 336px;
  }

  .result-body {
    max-height: 360px;
  }

  .footer__main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer__col--about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1024px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--header-h));
    padding: 8px 24px 24px;
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line-strong);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > ul {
    display: block;
  }

  .nav-item {
    border-bottom: 1px solid var(--line-soft);
  }

  .nav-link {
    display: flex;
    width: 100%;
    height: auto;
    min-height: 48px;
    padding: 12px 0;
    justify-content: space-between;
    font-size: 15px;
  }

  .nav-link[aria-current="page"]::after {
    display: none;
  }

  .subnav {
    position: static;
    display: none;
    min-width: 0;
    padding: 0 0 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-item.is-open .subnav {
    display: block;
  }

  .nav-item:hover .subnav {
    display: none;
  }

  .nav-item.is-open:hover .subnav {
    display: block;
  }

  .subnav a {
    padding: 8px 0;
    font-size: 13px;
  }

  .header__cta {
    display: none;
  }

  .hero__deco {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  .hero__copy {
    max-width: 100%;
  }

  .hero__footnote {
    flex-direction: column;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .map-pane {
    min-height: 430px;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .result-pane {
    min-height: 0;
  }

  .result-body {
    max-height: none;
  }

  .split {
    gap: 36px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .toc {
    position: static;
    order: -1;
    padding-top: 16px;
  }
}

@media (max-width: 900px) {
  .section {
    padding: 56px 0;
  }

  .section__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 30px;
  }

  .card-grid--3,
  .crs-grid,
  .output-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .crs {
    border-bottom: 1px solid var(--line-strong);
  }

  .crs:nth-child(2) {
    border-right: 0;
  }

  .crs:last-child {
    border-bottom: 0;
    border-right: 0;
  }

  .output-cell--full {
    grid-column: 1 / -1;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--line-soft);
  }

  .steps {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line-soft);
  }

  .step {
    padding: 24px 0 26px 22px;
    border-right: 0;
    border-top: 1px solid var(--line-soft);
  }

  .step + .step {
    padding-left: 22px;
  }

  .split,
  .split--wide-left,
  .split--wide-right {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .workspace__col + .workspace__col {
    border-left: 0;
    border-top: 1px solid var(--line-strong);
  }

  .cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer__brand {
    grid-column: 1 / -1;
  }

  .footer__col--about {
    grid-column: auto;
  }

  .error-page__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 720px) {
  .container,
  .container--narrow {
    width: calc(100% - 32px);
  }

  .header__inner {
    min-height: 68px;
  }

  .brand__text strong {
    font-size: 18px;
  }

  .brand__text small {
    font-size: 7px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero__copy::after {
    left: -12px;
    height: 40px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: 34px;
  }

  .hero__lede {
    margin-top: 16px;
    font-size: 15px;
  }

  .hero__sub {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .hero__tool {
    margin-top: 26px;
    padding-bottom: 40px;
  }

  .tool-section {
    margin-top: -22px;
    padding-bottom: 40px;
  }

  .tool-bar {
    flex-wrap: wrap;
  }

  .tabs {
    width: 100%;
  }

  .tab {
    flex: 1 0 auto;
    justify-content: center;
    min-height: 48px;
    padding: 0 14px;
    font-size: 13px;
  }

  .tool-status {
    display: none;
  }

  .query-strip {
    flex-wrap: wrap;
    padding: 12px;
    gap: 9px;
  }

  .query-strip__hint {
    width: 100%;
    font-size: 12px;
  }

  .query-strip .field,
  .query-strip .field--sm {
    flex: 1 1 100%;
  }

  .query-strip .btn {
    flex: 1 1 auto;
  }

  .map-pane,
  .tool-shell--tall .map-pane {
    min-height: 380px;
  }

  .map-hint {
    top: 10px;
    left: 10px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .map-layers {
    top: 10px;
    right: 10px;
  }

  .map-layer {
    min-width: 52px;
    padding: 6px 8px;
    font-size: 10px;
  }

  .map-tools {
    right: 10px;
    bottom: 40px;
  }

  .map-tool {
    padding: 7px 9px;
    font-size: 10px;
  }

  .map-legend {
    bottom: 7px;
    left: 8px;
    font-size: 9px;
  }

  .result-head,
  .result-body,
  .result-actions,
  .result-foot,
  .history {
    padding-left: 14px;
    padding-right: 14px;
  }

  .coord-row__val {
    font-size: 14px;
  }

  .card-grid--3,
  .card-grid--2,
  .crs-grid,
  .output-grid,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .practice-grid {
    grid-template-columns: 1fr;
  }

  .practice-grid ul {
    padding: 20px 0;
  }

  .practice-grid ul + ul {
    padding-left: 0;
    border-top: 1px solid var(--line-soft);
    border-left: 0;
  }

  .crs {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .crs:nth-child(2) {
    border-right: 0;
  }

  .output-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .output-cell:last-child {
    border-bottom: 0;
  }

  .stat {
    padding: 20px 16px;
  }

  .stat__value {
    font-size: 25px;
  }

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

  .conv-row {
    grid-template-columns: 1fr;
  }

  .link-row {
    grid-template-columns: 1fr auto;
    gap: 4px 16px;
  }

  .link-row__tag {
    grid-column: 1 / -1;
  }

  .link-row__desc {
    grid-column: 1 / 2;
  }

  .page-head {
    padding: 26px 0 34px;
  }

  .page-head h1 {
    margin-top: 16px;
    font-size: 27px;
  }

  .page-head__lede {
    font-size: 14px;
  }

  .footer__main {
    grid-template-columns: 1fr 1fr;
    padding: 40px 0 32px;
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta {
    padding: 44px 0;
  }

  .cta::after {
    font-size: 68px;
  }

  .toast {
    bottom: 18px;
  }

  .back-top {
    right: 14px;
    bottom: 14px;
  }

  .section {
    padding: 44px 0;
  }

  .info-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 420px) {
  .footer__main {
    grid-template-columns: 1fr;
  }

  .tab {
    font-size: 12px;
    padding: 0 10px;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .result-actions .btn--wide {
    grid-column: auto;
  }
}

/* ---------- 转换 / 度分秒 / 距离 / 批量工具 ---------- */

.textarea {
  width: 100%;
  min-height: 174px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 13px;
  line-height: 1.85;
  resize: vertical;
}

.textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-color: var(--brand);
  background: #fff;
}

.textarea::placeholder {
  color: #8f8883;
  font-family: var(--font-sans);
}

.dms-input-row {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr 0.72fr;
  gap: 8px;
  align-items: end;
}

.dms-input-row .field label {
  font-size: 10px;
}

.dms-input-row .input,
.dms-input-row .select {
  height: 40px;
  font-size: 13px;
}

.dms-group {
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.dms-group:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.dms-group__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.dms-group__title::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--brand);
}

.distance-map {
  height: 400px;
  border: 1px solid var(--line-strong);
  background: #e9e5e1;
}

.route-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #fff;
  background: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
  color: #fff;
  font-family: var(--font-num);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.result-line__val strong {
  color: var(--brand);
  font-size: 18px;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-strong);
  border-top: 0;
}

.metric {
  padding: 16px 18px;
  border-right: 1px solid var(--line-soft);
  background: #fff;
}

.metric:last-child {
  border-right: 0;
}

.metric__label {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.metric__value {
  margin-top: 5px;
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.metric__value small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}

.batch-map {
  height: 360px;
  border: 1px solid var(--line-strong);
  border-top: 0;
  background: #e9e5e1;
}

.batch-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.batch-count {
  color: var(--muted);
  font-size: 12px;
}

.batch-count strong {
  color: var(--ink);
  font-family: var(--font-num);
  font-size: 14px;
}

.batch-body {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line-soft);
  background: #fff;
}

.batch-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.batch-hint code {
  padding: 1px 5px;
  background: var(--sand);
  border: 1px solid var(--line-soft);
  color: var(--brand-deep);
  font-family: var(--font-num);
  font-size: 11px;
}

.example-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.example-btn {
  padding: 4px 9px;
  border: 1px solid var(--line-soft);
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
  cursor: pointer;
}

.example-btn:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.conv-form .form-grid {
  margin-top: 14px;
}

.conv-form .form-actions {
  margin-top: 16px;
}

.result-display--spaced {
  margin-top: 14px;
}

@media (max-width: 900px) {
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(3),
  .metric:nth-child(4) {
    border-top: 1px solid var(--line-soft);
  }
}

@media (max-width: 720px) {
  .dms-input-row {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .distance-map {
    height: 340px;
  }

  .batch-map {
    height: 300px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .batch-body,
  .batch-actions {
    padding-left: 14px;
    padding-right: 14px;
  }
}

.status-ok,
.status-err {
  font-size: 11px;
  line-height: 1.6;
}

.status-ok {
  color: var(--ok);
}

.status-err {
  color: var(--err);
  min-width: 140px;
}

.output-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.output-grid--4 .output-cell {
  padding: 18px 18px 20px;
}

@media (max-width: 900px) {
  .output-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .output-grid--4 .output-cell:nth-child(2) {
    border-right: 0;
  }

  .output-grid--4 .output-cell:nth-child(3),
  .output-grid--4 .output-cell:nth-child(4) {
    border-top: 1px solid var(--line-strong);
  }
}

@media (max-width: 720px) {
  .output-grid--4 {
    grid-template-columns: 1fr;
  }

  .output-grid--4 .output-cell {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
  }

  .output-grid--4 .output-cell:last-child {
    border-bottom: 0;
  }
}

/* 正文中的按钮不要继承普通链接颜色 */
.prose a.btn {
  text-decoration: none;
}

.prose a.btn--primary,
.prose a.btn--primary:hover {
  color: #fff;
}

.prose a.btn--line:hover {
  color: #fff;
}

.prose a.btn--quiet {
  color: var(--ink);
}

/* 防止表格的最小内容宽度把网格撑出屏幕 */
.split > *,
.article-layout > * {
  min-width: 0;
}

.prose,
.panel,
.table-wrap {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .map-hint {
    max-width: calc(100% - 88px);
  }
}
