* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f6f8fb; color: #1b2a4a; }

/* 头部：与「省份对比」页保持一致的单行结构（图标 + 标题 + 右侧返回） */
.topbar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e3e9f2; color: #1b2a4a; padding: 18px 28px; display: flex; align-items: center; gap: 14px; }
.topbar .logo { font-size: 26px; cursor: pointer; background: #1d6ae5; border-radius: 9px; padding: 5px; box-sizing: content-box; }
.topbar h1 { font-size: 22px; letter-spacing: 1px; font-weight: 600; }
.topbar .back { margin-left: auto; color: #5a6b85; text-decoration: none; font-size: 14px; border: 1px solid #d5deea; border-radius: 16px; padding: 5px 12px; }
.topbar .back:hover { color: #1d6ae5; border-color: #1d6ae5; }

.wrap { max-width: 880px; margin: 0 auto; padding: 22px 18px 60px; }

.banner { background: #fff4e5; border: 1px solid #ffd8a8; color: #b35000; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-size: 14px; }

.card { background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 3px 12px rgba(0,0,0,.06); border: 1px solid #edf1f7; }

.lbl { display: block; font-size: 14px; font-weight: 600; color: #4a3f6b; margin: 6px 0 4px; }
.lbl-hint { font-size: 12.5px; color: #7a8699; margin-bottom: 9px; }

.qinput { width: 100%; border: 1px solid #d8e1ee; border-radius: 12px; padding: 12px 14px; font-size: 15px; outline: none; resize: vertical; font-family: inherit; }
.qinput:focus { border-color: #1d6ae5; box-shadow: 0 0 0 3px rgba(29, 106, 229,.15); }

.qsec { margin-top: 16px; }
.qsec-title { font-size: 13px; color: #6b7a93; margin-bottom: 8px; cursor: pointer; user-select: none; }
.qsec-title:hover { color: #1d6ae5; }
.muted { color: #9aa8c4; font-size: 13px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: #edf3fc; color: #1450b8; border: 1px solid #d6e5fb; border-radius: 18px; padding: 7px 14px; font-size: 13px; cursor: pointer; transition: background .15s; }
.chip:hover { background: #eaf1fd; }

.seg { display: inline-flex; background: #edf1f7; border-radius: 10px; padding: 4px; gap: 4px; }
.seg-btn { border: none; background: transparent; padding: 8px 18px; border-radius: 8px; font-size: 14px; color: #4d5d78; cursor: pointer; transition: all .15s; }
.seg-btn.active { background: #1d6ae5; color: #fff; box-shadow: 0 2px 6px rgba(29, 106, 229,.3); }

.prov-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-height: 180px; overflow-y: auto; padding: 4px; }
.prov-item { display: inline-flex; align-items: center; gap: 6px; background: #f6f8fb; border: 1px solid #e3e9f2; border-radius: 16px; padding: 5px 12px; font-size: 13px; cursor: pointer; }
.prov-item input { accent-color: #1d6ae5; }

.submit { margin-top: 22px; width: 100%; background: #1d6ae5; color: #fff; border: none; border-radius: 12px; padding: 13px; font-size: 16px; font-weight: 600; cursor: pointer; transition: transform .12s, box-shadow .15s; }
.submit:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(20, 80, 184,.3); }
.submit:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }

.loading { margin-top: 14px; text-align: center; color: #7a8699; font-size: 14px; }
.err { margin-top: 14px; background: #fdecea; border: 1px solid #f5c6c0; color: #c0392b; padding: 10px 14px; border-radius: 10px; font-size: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; line-height: 1.6; }
.retry-btn { margin-left: auto; background: #c0392b; color: #fff; border: none; border-radius: 8px; padding: 7px 16px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.retry-btn:hover { background: #a5311f; }

.result { margin-top: 24px; background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: 0 3px 12px rgba(0,0,0,.06); border: 1px solid #edf1f7; }
.res-head h2 { font-size: 18px; color: #1450b8; margin-bottom: 8px; }
.summary { font-size: 14px; color: #4d5d78; background: #f6f8fb; border-left: 3px solid #1d6ae5; padding: 10px 12px; border-radius: 0 8px 8px 0; margin-bottom: 16px; }

/* 「已识别分析范围」提示条 */
.region-hint { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13.5px; color: #1d6ae5; background: #edf3fc; border: 1px solid #c4d6f0; border-radius: 10px; padding: 9px 14px; margin-bottom: 14px; }
.region-hint .region-reset { color: #1450b8; text-decoration: none; font-weight: 600; cursor: pointer; }
.region-hint .region-reset:hover { text-decoration: underline; }

.ind-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ind-card { border: 1px solid #e3e9f2; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: all .15s; background: #fff; display: flex; gap: 10px; align-items: flex-start; }
.ind-card:hover { border-color: #1d6ae5; }
.ind-card.selected { border-color: #1d6ae5; background: #f6f8fb; box-shadow: 0 0 0 2px rgba(29, 106, 229,.2); }
.ind-card .box { width: 18px; height: 18px; border: 2px solid #c3d2ea; border-radius: 5px; flex-shrink: 0; margin-top: 2px; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.ind-card.selected .box { background: #1d6ae5; border-color: #1d6ae5; }
.ind-card .info .name { font-size: 15px; font-weight: 600; }
.ind-card .info .meta { font-size: 12px; color: #7a8699; margin-top: 3px; }
.ind-card .info .cat { display: inline-block; background: #edf1f7; color: #4d5d78; border-radius: 6px; padding: 1px 7px; margin-right: 5px; }
.ind-card .info .reason { font-size: 12.5px; color: #4d5d78; margin-top: 6px; line-height: 1.5; }
.glabel { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: #edf3fc; color: #1d6ae5; margin-left: 4px; }

.res-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; padding-top: 14px; border-top: 1px solid #edf1f7; }
.sel-count { font-size: 14px; color: #4d5d78; }
.go-btn { background: #1d6ae5; color: #fff; border: none; border-radius: 10px; padding: 11px 22px; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .15s; }
.go-btn:hover { background: #1450b8; }
.go-btn:disabled { opacity: .5; cursor: not-allowed; }

.footer { text-align: center; color: #7a8699; font-size: 12px; padding: 20px; }
.hidden { display: none !important; }
