/* OSM 下载页（/osm-download/）——沿用站点配色与字体 */

/* products.css 把 code 设成了块级深色代码块，这里恢复成行内小标签 */
.osm-main code {
  display: inline;
  background: #f2f5f9; color: #162945; border-radius: 4px; padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em;
  overflow-wrap: anywhere;
}
.osm-main pre code { display: block; background: none; color: inherit; padding: 0; font-size: inherit; }
.osm-main { background: #f5f7fa; padding-top: 80px; min-height: 100svh; }

.osm-hero { padding: 44px 0 10px; }
.osm-hero .eyebrow { font-size: 11px; letter-spacing: 1.4px; color: #7a8c9d; margin-bottom: 18px; }
.osm-hero h1 { font-size: 38px; font-weight: 550; letter-spacing: -1px; line-height: 1.3; color: #162945; }
.osm-hero p { max-width: 720px; margin-top: 18px; font-size: 15px; line-height: 1.95; color: #6b7f94; }
.osm-hero .osm-chips { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.osm-chips span {
  font-size: 11px; color: #4a6480; background: #fff; border: 1px solid #dfe7ef;
  border-radius: 999px; padding: 5px 11px;
}

.osm-picker-card,
.osm-result,
.osm-map-card,
.osm-doc {
  background: #fff; border: 1px solid #dfe7ef; border-radius: 10px;
}

.osm-picker-card { margin-top: 26px; padding: 22px 24px; }
.osm-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.osm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.osm-field label { font-size: 11px; letter-spacing: .5px; color: #7d8fa2; }
.osm-field select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; color: #162945;
  background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d8fa2' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  border: 1px solid #dfe7ef; border-radius: 8px; padding: 11px 36px 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.osm-field select:hover { border-color: #b9cadd; }
.osm-field select:focus { outline: none; border-color: #087bef; box-shadow: 0 0 0 3px #087bef22; }
.osm-field select:disabled { background-color: #f4f7fa; color: #9aabbd; cursor: not-allowed; }

.osm-stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; margin-top: 22px; }

.osm-result { padding: 26px 28px; display: flex; flex-direction: column; min-height: 100%; }
.osm-breadcrumb { font-size: 12px; color: #8293a3; letter-spacing: .3px; }
.osm-result h2 { font-size: 26px; font-weight: 550; letter-spacing: -.6px; color: #162945; margin: 10px 0 6px; }
.osm-result .osm-sub { font-size: 13px; color: #7d8fa2; line-height: 1.8; }

.osm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; }
.osm-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; text-decoration: none;
  border-radius: 8px; padding: 12px 18px; border: 1px solid transparent;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.osm-btn.primary { background: #087bef; color: #fff; }
.osm-btn.primary:hover { background: #0668cf; transform: translateY(-1px); }
.osm-btn.ghost { background: #fff; color: #24405f; border-color: #dfe7ef; }
.osm-btn.ghost:hover { border-color: #b9cadd; background: #f7fafd; }
.osm-btn[aria-disabled="true"] { background: #eef2f7; color: #9aabbd; border-color: #dfe7ef; pointer-events: none; }

.osm-note {
  margin-top: 20px; padding: 12px 14px; border-radius: 8px;
  background: #f6faf3; border: 1px solid #dbe9ce; color: #4c6b3a;
  font-size: 12px; line-height: 1.85;
}
.osm-note.warn { background: #fff8ec; border-color: #f3d6a4; color: #8a5a1c; }
.osm-note:empty { display: none; }

.osm-facts { margin-top: auto; padding-top: 20px; border-top: 1px solid #eef2f7; display: grid; gap: 9px; font-size: 12px; }
.osm-facts div { display: flex; gap: 12px; }
.osm-facts dt { width: 74px; color: #8293a3; flex: none; }
.osm-facts dd { margin: 0; color: #24405f; overflow-wrap: anywhere; }

.osm-map-card { position: relative; overflow: hidden; padding: 0; min-height: 300px; }
.osm-map-card svg { display: block; width: 100%; height: 100%; min-height: 300px; background: #f1f6fb; }
.osm-map-card .land { fill: #dfe8f2; stroke: #fff; stroke-width: .6; vector-effect: non-scaling-stroke; }
.osm-map-card .land.active { fill: #087bef; }
.osm-map-card .province { fill: #cfe0f0; stroke: #fff; stroke-width: .5; vector-effect: non-scaling-stroke; }
.osm-map-card .province.active { fill: #087bef; }
.osm-map-legend {
  position: absolute; left: 16px; bottom: 14px; font-size: 11px; color: #5a7793;
  background: #ffffffdd; border-radius: 6px; padding: 6px 10px;
}
#osm-world, #osm-china { transform-origin: 0 0; transition: transform .55s cubic-bezier(.4,0,.2,1); }

.osm-docs { margin-top: 34px; padding-bottom: 70px; display: grid; gap: 22px; }
.osm-doc { padding: 30px 32px; }
.osm-doc h2 { font-size: 21px; font-weight: 550; letter-spacing: -.3px; color: #162945; margin-bottom: 6px; }
.osm-doc h3 { font-size: 14px; font-weight: 600; color: #24405f; margin: 22px 0 8px; }
.osm-doc p, .osm-doc li { font-size: 14px; line-height: 1.95; color: #61758b; }
.osm-doc ul, .osm-doc ol { padding-left: 20px; margin: 10px 0; }
.osm-doc li { padding: 3px 0; }
.osm-doc code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: #f2f5f9; border-radius: 4px; padding: 2px 6px; color: #162945;
}
.osm-doc pre {
  margin: 12px 0 4px; padding: 16px 18px; background: #0f1b2c; border-radius: 8px;
  overflow: auto; font-size: 12.5px; line-height: 1.8; color: #cfe0f5;
}
.osm-doc pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.osm-doc .osm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.osm-footnote { margin-top: 18px; font-size: 11px; color: #8293a3; line-height: 1.9; }

@media (max-width: 1000px) {
  .osm-picker-grid { grid-template-columns: 1fr 1fr; }
  .osm-stage { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .osm-main { padding-top: 72px; }
  .osm-hero { padding: 26px 0 4px; }
  .osm-hero h1 { font-size: 27px; }
  .osm-hero p { font-size: 13px; }
  .osm-picker-grid { grid-template-columns: 1fr; }
  .osm-result { padding: 20px; }
  .osm-result h2 { font-size: 22px; }
  .osm-map-card svg { min-height: 220px; }
  .osm-doc { padding: 22px 20px; }
  .osm-doc .osm-two { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  #osm-world, #osm-china, .osm-btn { transition: none !important; }
}
