/* 地理互动馆 · 多课程共享组件（叠加在 style.css 之上） */
.course-nav{max-width:1040px;margin:4px auto 0;padding:0 26px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.course-nav::-webkit-scrollbar{display:none}
.course-nav a{flex:none;font-size:14px;padding:7px 13px;border-radius:16px;background:#eef2e8;color:#5f7259;white-space:nowrap}
.course-nav a b{font-weight:600;color:#8a9a82;margin-right:5px}
.course-nav a[aria-current="page"]{background:var(--green);color:#fff}
.course-nav a[aria-current="page"] b{color:#cfe0c8}
.panel{padding:18px 20px}
.panel h2{font-size:17px;margin:0 0 4px;letter-spacing:-.2px}
.panel-sub{font-size:13.5px;color:var(--muted);margin:0 0 12px;line-height:1.7}
.figure svg{display:block;width:100%;height:auto;overflow:hidden;user-select:none;-webkit-user-select:none}
.figure text{font-family:var(--font-ui)}
.chips{display:flex;flex-wrap:wrap;gap:7px}
.chips button{font-size:14px;padding:8px 12px;border-radius:10px;background:#f0f4e9;color:#56694f;min-height:36px}
.chips button[aria-pressed="true"],.chips button.selected{background:var(--green);color:#fff}
.chips.small button{font-size:13px;padding:6px 10px;min-height:32px}
.stat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 18px;margin:14px 0 6px}
.stat{display:flex;flex-direction:column;gap:3px;min-width:0}
.stat span{font-size:13px;color:var(--muted)}
.stat strong{font-size:23.5px;font-weight:650;letter-spacing:-.4px;font-variant-numeric:tabular-nums;line-height:1.25}
.stat strong small{font-size:14px;font-weight:500;margin-left:2px;color:var(--muted)}
.stat.wide{grid-column:1/-1}
.readout .stat strong{font-size:25.5px}
.note{font-size:13px;color:#84917c;line-height:1.75;margin:10px 0 0}
.lead{font-size:15px;line-height:1.85;color:var(--green);margin:8px 0 0}
.section{margin-top:30px}
.section>h2{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.section>h2 span{font-size:14px;font-weight:400;color:var(--muted);letter-spacing:0}
.two-col{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,1fr);gap:22px;align-items:start}
.stack{display:flex;flex-direction:column;gap:16px}
.info-card{background:var(--soft);border-radius:18px;padding:17px 19px}
.info-card h3{font-size:16px;color:var(--green);margin:0 0 8px}
.info-card p,.info-card li{font-size:14px;line-height:1.85;color:#40594b;margin:0}
.info-card ul{margin:0;padding-left:18px}
.choice-list{display:flex;flex-direction:column;gap:9px}
.choice-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 13px;border-radius:13px;background:#f7f9f3;border:1px solid #edf1e8}
.choice-row p{margin:0;font-size:14.5px;line-height:1.6}
.choice-row .chips{flex:none;flex-wrap:nowrap}
.choice-row.correct{background:#ecf4e6;border-color:#cfe2c5}
.choice-row.wrong{background:#fbf1e6;border-color:#efd8bd}
.choice-row .verdict{font-size:13px;margin-top:4px;color:var(--muted)}
.option-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:12px 0}
.option-grid button{font-size:14.5px;padding:11px 10px;border-radius:11px;background:#f0f4e9;color:#455d48;min-height:42px;text-align:center;line-height:1.4}
.option-grid button.correct{background:#d9ead1;color:#2f5a44;font-weight:600}
.option-grid button.wrong{background:#f6e2cc;color:#8b5d33}
.feedback{font-size:14px;line-height:1.85;margin-top:10px;min-height:1px}
.feedback.success{color:#396b57}.feedback.retry{color:#9c6334}
.compare{width:100%;border-collapse:collapse;font-size:14px}
.compare th,.compare td{padding:9px 8px;text-align:left;border-bottom:1px solid #edf0e8;line-height:1.6;vertical-align:top}
.compare th{font-size:13px;color:var(--muted);font-weight:500}
.compare td:first-child{color:var(--muted);white-space:nowrap}
.source{font-size:12.5px;color:#8b9784;line-height:1.7;margin-top:12px}
.source a{text-decoration:underline;text-underline-offset:2px}
.pager{display:flex;justify-content:space-between;gap:12px;margin-top:36px}
.pager a{flex:1;max-width:48%;border:1px solid var(--line);background:#fff;border-radius:16px;padding:13px 15px;font-size:14px;color:var(--muted)}
.pager a strong{display:block;font-size:16px;color:var(--ink);margin-top:4px}
.pager a.next{text-align:right;margin-left:auto}
.map-link{display:flex;gap:14px;align-items:center;background:#fff;border:1px dashed #c9d6c1;border-radius:18px;padding:16px 18px}
.map-link svg{flex:none;width:34px;height:34px}
.map-link p{margin:4px 0 0;font-size:13.5px;color:var(--muted);line-height:1.7}
.map-link a{color:var(--green);font-weight:600;font-size:15px;text-decoration:underline;text-underline-offset:3px}
.daynight-panel{border-top:1px solid #f0f2eb;margin-top:10px;padding:12px 4px 0;font-size:15px}
.daynight-panel .control-heading{font-weight:600}
.instrument-actions button[aria-pressed="true"]{background:var(--green);color:#fff}
.toggle-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bar-list{display:flex;flex-direction:column;gap:8px}
.bar-item{display:grid;grid-template-columns:56px 1fr 64px;gap:9px;align-items:center;font-size:14px}
.bar-item .track{height:14px;background:#f0f3eb;border-radius:7px;overflow:hidden}
.bar-item .fill{height:100%;background:#8fae8a;border-radius:7px}
.bar-item.ocean .fill{background:#7fa6b3}
.bar-item em{font-style:normal;text-align:right;color:var(--muted);font-variant-numeric:tabular-nums}
.order-pick{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 6px}
.order-pick button{font-size:14px;padding:8px 12px;border-radius:10px;background:#f0f4e9;color:#4c6247;min-height:36px}
.order-pick button[disabled]{background:#dbe8d3;color:#2f5a44;opacity:1}
.order-result{font-size:14px;color:var(--muted);min-height:20px}
.hub-hero{padding:34px 0 26px}
.hub-hero h1{font-size:42.5px}
.hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.hub-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:22px;padding:18px;transition:transform .15s,box-shadow .15s}
.hub-card:hover{transform:translateY(-2px);box-shadow:0 10px 30px #2a3f2a10}
.hub-card svg{width:100%;height:auto;background:#f3f6ee;border-radius:14px;margin-bottom:14px}
.hub-card .no{font-size:13px;color:var(--muted);letter-spacing:.5px}
.hub-card h2{font-size:19.5px;margin:5px 0 9px}
.hub-card ul{margin:0 0 14px;padding-left:16px;font-size:14px;color:var(--muted);line-height:1.85;flex:1}
.hub-card .go{font-size:14.5px;color:var(--green);font-weight:600}
.hub-promise{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.hub-promise span{font-size:13px;color:#5f7259;background:#e6eedd;border-radius:12px;padding:5px 10px}
.legend-inline{display:flex;gap:14px;flex-wrap:wrap;font-size:13px;color:var(--muted);margin-top:8px}
.legend-inline i{display:inline-block;width:14px;height:3px;border-radius:2px;margin-right:5px;vertical-align:middle}
.svg-hit{cursor:pointer}
.svg-hit:focus-visible{outline:none}
.svg-hit:focus-visible>*{stroke:var(--orange);stroke-width:2.4}
@media(max-width:860px){.hub-grid{grid-template-columns:1fr 1fr}}
@media(max-width:680px){.course-nav{padding:0 16px;margin-top:10px}.two-col{grid-template-columns:1fr;gap:14px}.panel{padding:16px 16px}.stat strong{font-size:21.5px}.readout .stat strong{font-size:23.5px}.section{margin-top:26px}.hub-hero{padding:24px 4px 18px}.hub-hero h1{font-size:32px}.hub-grid{grid-template-columns:1fr;gap:12px}.choice-row{flex-direction:column;align-items:stretch}.choice-row .chips{justify-content:flex-end}.pager a{padding:11px 13px}.bar-item{grid-template-columns:50px 1fr 58px}}
.option-grid.single{grid-template-columns:1fr}
.option-grid.single button{text-align:left;padding:12px 14px}
.trio{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
@media(max-width:860px){.trio{grid-template-columns:1fr}}
.sym-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sym-grid figure{margin:0;background:#f6f8f2;border-radius:12px;padding:8px 4px 6px;text-align:center}
.sym-grid svg{width:100%;max-width:64px;height:auto;display:block;margin:0 auto}
.sym-grid figcaption{font-size:14px;color:#40594b;margin-top:2px}
.aqi-scale{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:3px;margin:12px 0 4px}
.aqi-scale span{color:#fff;font-size:13px;font-weight:600;text-align:center;padding:6px 2px;border-radius:6px;line-height:1.3}
.aqi-scale small{display:block;font-weight:400;font-size:11.5px;opacity:.9}
@media(max-width:680px){.sym-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.aqi-scale span{font-size:12px;padding:5px 1px}}
.compare.tight th,.compare.tight td:not(:last-child){white-space:nowrap}
.cover{width:100%;border-collapse:collapse;font-size:14.5px}
.cover th{font-size:13px;color:var(--muted);font-weight:500;text-align:left;padding:8px 6px;border-bottom:1px solid #e4e9df}
.cover td{padding:9px 6px;border-bottom:1px solid #eef1ea;vertical-align:top;line-height:1.6}
.cover td:first-child{white-space:nowrap;color:var(--muted)}
.cover .st{white-space:nowrap;font-weight:650}
.cover .ok{color:#2f6a4a}.cover .part{color:#9c6334}.cover .todo{color:#8b9784}
.cover a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.cover-sum{display:flex;gap:10px;flex-wrap:wrap;margin:6px 0 12px}
.cover-sum span{font-size:14px;border-radius:10px;padding:5px 10px;background:#eef2e8}
.fact-list{list-style:none;margin:0;padding:0}
.fact-list li{padding:8px 0;border-bottom:1px solid #eef1ea;display:flex;flex-direction:column;gap:2px}
.fact-list li:last-child{border-bottom:0}
.fact-list b{font-size:15px;color:#203b35}
.fact-list span{font-size:14px;color:var(--muted)}
.reveal{margin-top:6px}
.dev-row{display:grid;grid-template-columns:120px 1fr;gap:10px 12px;align-items:center;padding:9px 0;border-bottom:1px solid #eef1ea;font-size:14.5px}
.dev-row:last-child{border-bottom:0}
.dev-row>span{color:var(--muted);line-height:1.5}
.dev-row .pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.dev-row .pair b{font-weight:400;font-size:13.5px;color:#40594b;display:block;margin-top:3px;line-height:1.45}
.dev-row .trk{height:12px;background:#f0f3eb;border-radius:6px;overflow:hidden}
.dev-row .fl{height:100%;width:0;background:#5f97ae;border-radius:6px;transition:width .6s ease}
.dev-row .fl.alt{background:#c58a4f}
@media(max-width:680px){.dev-row{grid-template-columns:1fr}.dev-row .pair{grid-template-columns:1fr 1fr}}
/* ---------- 地图（天地图） ---------- */
.geo-map{margin-top:12px}
.map-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:6px}
.map-types{display:flex;gap:6px}
.map-types button{font:inherit;font-size:14px;padding:5px 11px;border-radius:999px;border:1px solid #d6dfcf;background:#fff;color:#40594b;cursor:pointer}
.map-types button[aria-pressed="true"]{background:#2f5d46;border-color:#2f5d46;color:#fff}
.map-status{font-size:13px;color:var(--muted)}
.map-canvas{position:relative;height:320px;border-radius:14px;overflow:hidden;background:#e8eef0;border:1px solid #dfe6da}
.geo-map.is-fallback .map-canvas{height:auto;background:#f6f8f2;border-style:dashed}
.map-fallback{padding:16px 16px 14px}
.mf-title{margin:0 0 4px;font-weight:700;color:#40594b;font-size:16px}
.mf-sub{margin:0;font-size:14.5px;line-height:1.7;color:var(--muted)}
.mf-sub a,.map-credit a{color:var(--green);text-decoration:underline;text-underline-offset:2px}
.map-list{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.map-list li{background:#f7f9f3;border:1px solid #edf1e8;border-radius:11px;padding:7px 9px}
.map-list li.on{background:#fbf1e6;border-color:#efd8bd}
.map-list button{all:unset;cursor:pointer;display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;width:100%}
.map-list button:focus-visible{outline:2px solid #2f5d46;outline-offset:3px;border-radius:6px}
.map-list i{width:8px;height:8px;border-radius:50%;flex:none}
.map-list b{font-size:14.5px;color:#203b35}
.map-list span{font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.map-list em{display:block;font-style:normal;font-size:13px;color:#6f8268;margin-top:2px;line-height:1.45}
.map-credit{font-size:13px;color:var(--muted);margin:8px 0 0}
.gm-icon{background:none!important;border:0!important}
.gm-pin{position:relative;width:14px;height:14px}
.gm-pin i{position:absolute;inset:2px;border-radius:50%;background:var(--c);box-shadow:0 0 0 2px #fff,0 1px 4px rgba(0,0,0,.35)}
.gm-pin span{position:absolute;left:16px;top:-3px;white-space:nowrap;font-size:14px;font-weight:700;color:#1f3a30;background:rgba(255,255,255,.92);padding:1px 6px;border-radius:6px;box-shadow:0 1px 3px rgba(0,0,0,.18)}
.gm-pin.on i{inset:0;box-shadow:0 0 0 3px #fff,0 0 0 5px var(--c)}
.gm-pin.on span{background:#fff7ec;color:#7a4520}
@media(max-width:680px){.map-canvas{height:280px}.map-list{grid-template-columns:1fr}}
.gm-pin.side-l span{left:auto;right:16px}
.gm-pin.side-b span{left:50%;top:15px;transform:translateX(-50%)}
.gm-pin.side-t span{left:50%;top:auto;bottom:15px;transform:translateX(-50%)}
@media(max-width:680px){.gm-pin.k-route:not(.on) span{display:none}}
.gm-pin.gm-hide span{visibility:hidden}
.np-row{display:grid;grid-template-columns:minmax(0,1.3fr) 1fr 74px;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid #eef1ea}
.np-row:last-of-type{border-bottom:0}
.np-name b{display:block;font-size:15px}
.np-name span{font-size:13px;color:var(--muted);line-height:1.45}
.np-row .trk{height:12px;background:#f0f3eb;border-radius:6px;overflow:hidden}
.np-row .fl{height:100%;background:#4f7a48;border-radius:6px}
.np-row em{font-style:normal;font-size:14px;text-align:right;color:#40594b;font-variant-numeric:tabular-nums}
#w-bins button.correct{outline:3px solid #4f7a48}
#w-bins button.wrong{outline:3px solid #b0472e}
@media(max-width:680px){.np-row{grid-template-columns:1fr 64px}.np-row .trk{grid-column:1/-1;order:3}}
.np-row em{white-space:nowrap}
@media(max-width:680px){.np-row{grid-template-columns:1fr 86px}}


/* —— 数字、公式、图内文字统一用无衬线体（正文也已改为无衬线体，楷体在小字号下会显得发虚、和数字对不齐） —— */
.bignum, .stat strong, .frac, var, .v, .formula, .radical,
td.n, th, table.compare, table.steps,
input, output, select, textarea, button,
.quiz-nav .dot, .lv, .badge, .cover-sum,
svg text, svg tspan {
  font-family: var(--font-ui);
}
/* 练习区：题号导航 */
.quiz-nav { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.quiz-nav .dot {
  width: 26px; height: 26px; padding: 0;
  border-radius: 8px; border: 1px solid var(--line, #e2e5dd);
  background: #fff; color: var(--muted, #6f7685);
  font-size: 14px; font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.quiz-nav .dot.on { border-color: #2f5aa8; color: #2f5aa8; font-weight: 700; box-shadow: 0 0 0 2px #e4ebf8; }
.quiz-nav .dot.ok { background: #e7efe6; border-color: #a9c6a4; color: #3d6b38; }
.quiz-nav .dot.bad { background: #fbeeea; border-color: #e0b6a6; color: #a4422c; }

/* 难度徽章 */
.lv {
  display: inline-block; margin-left: 7px; padding: 2px 8px;
  border-radius: 9px; font-size: 12.5px; font-weight: 600; letter-spacing: .02em;
}
.lv-base { background: #e7efe6; color: #3d6b38; }
.lv-mid { background: #e4ebf8; color: #2f5aa8; }
.lv-trap { background: #fbeae2; color: #a4492b; }

/* 自测结果 */
.quiz-result {
  margin-top: 14px; padding: 12px 14px;
  background: #eef1f7; border-radius: 13px;
}
.quiz-result h4 { margin: 0 0 5px; font-size: 15.5px; color: #2f4473; }
.quiz-result p { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4a5568; }
.quiz-result .weak { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 5px; }
.quiz-result .weak span {
  background: #fff; border-radius: 8px; padding: 3px 9px;
  font-size: 13.5px; color: #a4492b;
}

/* 中考怎么考 */
.exam-card { background: #fdf6ec; border-radius: 18px; padding: 16px 18px; margin-top: 15px; color: #6b4f2a; }
.exam-card h3 { font-size: 15px; margin: 0 0 8px; color: #8a5a22; display: flex; gap: 7px; align-items: center; }
.exam-card h3 i { font-style: normal; font-size: 12px; background: #f3e2c7; border-radius: 8px; padding: 2px 7px; color: #8a5a22; white-space: nowrap; flex: none; }
.exam-card ul { margin: 0; padding-left: 18px; }
.exam-card li { font-size: 14.5px; line-height: 1.85; margin: 4px 0; }
.exam-card b { color: #8a5a22; }
.exam-card .q {
  margin-top: 10px; padding: 10px 12px; background: #fff;
  border-radius: 11px; font-size: 14.5px; line-height: 1.8; color: #5a4a35;
}
.exam-card .q b { color: #a4492b; }

/* 想明白为什么 */
.derive-card { background: #eaf0f6; border-radius: 18px; padding: 16px 18px; margin-top: 15px; color: #39485b; }
.derive-card h3 { font-size: 15px; margin: 0 0 8px; color: #2f4a68; display: flex; gap: 7px; align-items: center; }
.derive-card h3 i { font-style: normal; font-size: 12px; background: #d5e1ee; border-radius: 8px; padding: 2px 7px; color: #2f4a68; white-space: nowrap; flex: none; }
.derive-card .derive-lead { font-size: 14.5px; line-height: 1.85; margin: 0 0 11px; color: #4c5e73; }
.derive-card ol { margin: 0; padding: 0; list-style: none; counter-reset: dv; }
.derive-card ol > li { position: relative; padding-left: 27px; margin: 0 0 10px; counter-increment: dv; }
.derive-card ol > li::before {
  content: counter(dv); position: absolute; left: 0; top: 0;
  width: 19px; height: 19px; border-radius: 50%; background: #fff;
  color: #2f4a68; font-size: 13px; line-height: 19px; text-align: center;
  font-family: var(--font-ui);
}
.derive-card ol > li h4 { font-size: 14.5px; font-weight: 650; margin: 0 0 3px; color: #2f4a68; }
.derive-card ol > li p { font-size: 14.5px; line-height: 1.85; margin: 0; color: #4c5e73; }
.derive-card b { color: #2f4a68; font-weight: 650; }
.derive-card .derive-end {
  margin: 12px 0 0; padding: 10px 12px; background: #fff;
  border-radius: 11px; font-size: 14.5px; line-height: 1.8; color: #39485b;
}
.derive-card .derive-end > b:first-child {
  color: #a4492b; margin-right: 5px;
}
@media (max-width: 640px) {
  .derive-card { padding: 14px 15px; }
  .derive-card ol > li { padding-left: 25px; }
}

/* 课程导航：首页钉住 + 吸顶 */
.course-nav{
  position: sticky; top: 0; z-index: 6;
  background: var(--bg);
  padding-top: 7px; padding-bottom: 8px;
  align-items: center; overflow: visible;
  box-shadow: 0 7px 12px -11px #1f2a3a55;
}
.course-nav .nav-home{ flex: none; background: var(--soft); color: var(--green); font-weight: 600; }
.course-nav .nav-home b{ color: var(--green); opacity: .72; }
.course-nav .nav-scroll{
  position: relative; flex: 1; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* 紧挨首页胶囊的那半截课程胶囊渐隐，免得看起来像被切断 */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16px);
  mask-image: linear-gradient(to right, transparent 0, #000 16px);
}
.course-nav .nav-scroll::-webkit-scrollbar{ display: none; }
/* 锚点滚动时别被吸顶的导航盖住 */
html{ scroll-padding-top: 58px; }
/* 窄屏寸土寸金，首页胶囊只留两个字，把宽度让给课程列表 */
@media (max-width: 680px){
  .course-nav{ padding-top: 6px; padding-bottom: 7px; }
  .course-nav .nav-home span{ display: none; }
  .course-nav .nav-home b{ margin-right: 0; }
}

/* 地球仪真实底图 */
/* 画布是绝对定位的，默认会压过静态的 SVG；把 SVG 也提成定位元素压回去，
   否则经纬网、橙色选中线和点 P 全被底图盖住。 */
#globe-map{ z-index:0; border-radius:50%; }
#globe{ position:relative; z-index:1; }
