* { margin: 0; padding: 0; box-sizing: border-box; font-family: "Microsoft YaHei", sans-serif; }
body { background: #f0f4f0; color: #2d3a2d; }
nav { background: #2e7d32; color: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav .brand { font-size: 18px; font-weight: bold; }
/* 品牌位＝作品名「碳瞳——城市绿地碳汇智能评估系统」，全称跟在后面当副标题 */
nav .brand-sub { font-size: 12px; font-weight: normal; margin-left: 8px; opacity: 0.85; }
nav a { color: #e8f5e9; text-decoration: none; padding: 6px 12px; border-radius: 4px; }
nav a:hover, nav a.active { background: rgba(255,255,255,0.15); }
main { padding: 20px 24px; max-width: 1400px; margin: 0 auto; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.08); margin-bottom: 20px; }
h2 { color: #2e7d32; margin-bottom: 12px; font-size: 20px; }
.plot-result { display: flex; gap: 16px; flex-wrap: wrap; }
.model-card { border: 1px solid #c8e6c9; border-radius: 6px; padding: 12px 16px; min-width: 150px; background: #fff; }
.model-card .model-name { font-weight: bold; color: #2e7d32; }
.model-card .value { font-size: 24px; color: #1b5e20; margin: 4px 0; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid #c8e6c9; padding: 8px; text-align: left; font-size: 14px; }
th { background: #e8f5e9; color: #2e7d32; }
button { background: #2e7d32; color: #fff; border: none; padding: 8px 16px; border-radius: 4px; cursor: pointer; }
button:hover { background: #1b5e20; }
select { padding: 8px; border: 1px solid #c8e6c9; border-radius: 4px; background: #fff; }

#map { height: 560px; border-radius: 8px; }
.legend { margin-top: 10px; display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; }
.legend .item { display: flex; align-items: center; gap: 5px; }
.legend .swatch { width: 14px; height: 14px; border-radius: 3px; border: 1px solid #bbb; }
.detail-row { display: flex; gap: 10px; padding: 4px 0; border-bottom: 1px dashed #e0e0e0; }
.detail-row .k { width: 96px; color: #666; }
.layer-note { font-size: 12px; color: #b71c1c; margin-top: 8px; }
.map-error { font-size: 13px; color: #b71c1c; background: #fdecea; border: 1px solid #f5c6cb; border-radius: 4px; padding: 6px 10px; margin-top: 8px; }
#raster-controls { margin-top: 10px; font-size: 13px; }
#raster-controls .hint { color: #666; margin-left: 8px; }

/* 看板两处格子。原先写在各元素的行内 style 上，行内样式媒体查询覆盖不掉，
   窄屏时四列 KPI 硬挤成一行。挪成类，收列的事才轮得到下面的媒体查询说话。 */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* 窄屏：评委把窗口拖窄、或笔记本分屏演示时会走到这里 */
@media (max-width: 900px) {
    .kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .duo-grid { grid-template-columns: 1fr; }
    #map { height: clamp(320px, 55vh, 560px); }
}

/* 页脚只放 ICP 备案号，是工信部的硬要求，不能删。见 计划/03-部署与备案.md */
.site-footer { padding: 8px 24px 24px; text-align: center; font-size: 13px; }
.site-footer a { color: #7a8a7a; text-decoration: none; }
.site-footer a:hover { color: #2e7d32; text-decoration: underline; }
