/* AI for Science 地图 */
.a4-note { font-size: .86rem; color: var(--graphite); }
ol.three { padding-left: 1.4em; }
ol.three li { margin: .35em 0; }

.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(15.5em, 1fr)); gap: 8px; margin: 12px 0 18px; }
.dims > div { border: 1px solid var(--rule); border-radius: var(--radius); padding: 8px 12px; font-size: .9rem; line-height: 1.6; }
.dims b { display: block; font-family: var(--f-hand); font-size: 1.05rem; }
.dims span { color: var(--ink-2); }

/* 形状 × 领域 */
.sg-wrap { overflow-x: auto; margin: 14px 0 0; border: 1px solid var(--rule); border-radius: var(--radius); }
table.sg { border-collapse: collapse; width: 100%; min-width: 690px; font-size: .84rem; }
table.sg th, table.sg td { border-bottom: 1px solid var(--grid); padding: 0; text-align: left; vertical-align: middle; }
table.sg thead th { background: #f6f8fa; font-weight: 600; padding: 8px 8px; color: var(--ink-2); white-space: nowrap; }
table.sg tbody th { width: 11.5em; background: #fbfcfd; position: sticky; left: 0; z-index: 1; border-right: 1px solid var(--rule); }
table.sg button { display: block; width: 100%; min-height: 3.1em; padding: 6px 8px; font: inherit; line-height: 1.35; color: var(--ink); text-align: left; background: none; border: 0; cursor: pointer; }
table.sg button:hover { background: #eef3f8; }
table.sg .rowh { font-weight: 600; }
table.sg .rowh small { display: block; font-weight: 400; font-size: .76rem; color: var(--faint); }
table.sg tr.hl td, table.sg tr.hl th { background: #f2f6fb; }
table.sg button.on { background: var(--ink); color: #fff; }
table.sg button.on small { color: #c9d4e3; }
table.sg td.empty { color: #c7ced5; text-align: center; }
.sg-detail { border-left: 3px solid var(--ink); padding: 10px 0 4px 16px; margin: 14px 0 20px; font-size: .94rem; min-height: 9em; }
.sg-title { margin: 0 0 6px; font-size: 1.02rem; }
.sg-title span { margin-left: 10px; font-size: .82rem; color: var(--faint); }
.sg-detail dl { margin: 0; display: grid; grid-template-columns: 7.5em 1fr; gap: 4px 14px; }
.sg-detail dt { color: var(--graphite); font-size: .86rem; padding-top: 2px; }
.sg-detail dd { margin: 0; }
.sg-ex { background: #fffbe0; padding: 6px 10px; border-radius: 4px; }
@media (max-width: 640px) { .sg-detail dl { grid-template-columns: 1fr; } .sg-detail dt { padding-top: 6px; } }

/* 两个地球 */
figure.globes { margin: 16px 0; }
figure.globes svg { display: block; width: 100%; max-width: 560px; height: auto; }
figure.globes .gl { font: 13px var(--f-body); fill: var(--ink-2); }
figure.globes figcaption { font-size: .86rem; color: var(--graphite); max-width: 40em; }
.three-views { display: grid; grid-template-columns: repeat(auto-fit, minmax(14em, 1fr)); gap: 14px; margin: 12px 0 16px; }
.three-views > div { border-top: 2px solid var(--ink); padding-top: 6px; font-size: .92rem; line-height: 1.7; }
.three-views h4 { font-size: 1.08rem; margin: 0 0 4px; }
.three-views p { margin: 0 0 .5em; }
.three-views .cost { color: var(--graphite); font-size: .86rem; }

/* 物理 → 结构 */
.bias-wrap { overflow-x: auto; margin: 12px 0 14px; }
table.bias, table.sum { border-collapse: collapse; width: 100%; font-size: .88rem; line-height: 1.55; }
table.bias { min-width: 680px; }
table.bias th, table.bias td, table.sum th, table.sum td { border-bottom: 1px solid var(--rule); padding: 8px 10px 8px 0; text-align: left; vertical-align: top; }
table.bias thead th, table.sum thead th { color: var(--graphite); font-weight: 500; font-size: .8rem; border-bottom: 2px solid var(--ink); }
table.bias tbody th { font-weight: 600; width: 23%; }
table.bias tbody th small { display: block; font-weight: 400; color: var(--graphite); font-size: .8rem; }
table.bias td:last-child, table.sum td:last-child { white-space: nowrap; }

/* 里程碑 */
h4.mg { font-size: 1.1rem; margin: 1.6em 0 .4em; color: var(--ink-2); }
details.mile { border-bottom: 1px solid var(--rule); }
details.mile > summary { cursor: pointer; list-style: none; padding: 9px 0; display: grid; grid-template-columns: 3.4em auto 1fr; gap: 0 12px; align-items: baseline; }
details.mile > summary::-webkit-details-marker { display: none; }
details.mile > summary .y { font: .85rem var(--f-num); color: var(--graphite); }
details.mile > summary .s { color: var(--graphite); font-size: .88rem; }
details.mile > summary:hover { color: var(--lane-learn); }
details.mile[open] > summary { font-weight: 600; }
details.mile dl { margin: 0 0 14px 4.6em; display: grid; grid-template-columns: 6em 1fr; gap: 5px 14px; font-size: .93rem; line-height: 1.7; }
details.mile dt { color: var(--graphite); font-size: .85rem; padding-top: 2px; }
details.mile dd { margin: 0; }
details.mile:target > summary { background: #fffbe0; }
@media (max-width: 640px) {
  details.mile > summary { grid-template-columns: 3em 1fr; }
  details.mile > summary .s { grid-column: 2; }
  details.mile dl { margin-left: 0; grid-template-columns: 1fr; }
  details.mile dt { padding-top: 6px; }
}

ul.limits li { margin: .45em 0; }

/* 你来分类 */
ol.classify { padding-left: 1.4em; }
ol.classify li { margin: 0 0 16px; }
ol.classify p { margin: 0 0 6px; }
ol.classify .opts { display: flex; flex-wrap: wrap; gap: 6px; }
ol.classify .btn.right { background: #e3f3ea; border-color: #2e8b57; color: #1d5e3a; }
ol.classify .btn.wrong { background: #fbeceb; border-color: var(--red); color: var(--red); }
.qfb { font-size: .88rem; min-height: 1.4em; margin-top: 4px !important; }
.qfb.ok { color: #1d5e3a; } .qfb.no { color: var(--red); }
.classify-score { font: .9rem var(--f-num); color: var(--graphite); }

table.sum { margin: 10px 0 18px; }
.srcs ul { font-size: .86rem; padding-left: 1.2em; }
.a4-next { margin: 28px 0 40px; }

/* 并入发展史页后的版式 */
.a4 { padding-top: 48px; padding-bottom: 60px; border-top: 1px solid var(--rule); scroll-margin-top: 60px; }
.a4 > h2 { font-size: 1.9rem; margin: 0 0 12px; }
.a4 > p, .a4 > ol, .a4 > ul, .a4 > details, .a4 > .dims, .a4 > .sg-detail, .a4 > .three-views, .a4 > figure { max-width: 46em; }
.a4 > h3 { font-size: 1.35rem; margin: 2.2em 0 .5em; scroll-margin-top: 70px; }
.a4 h4.mg { font-size: 1.05rem; }
.a4 .three-views h4 { font-size: 1.02rem; margin: 0 0 4px; }
.a4 .sg-wrap, .a4 .bias-wrap, .a4 table.sum { max-width: 60em; }
