/* AI门店获客诊断系统 V0.1 — 全站样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f5f6f8; color: #222; line-height: 1.6;
}
.wrap { max-width: 860px; margin: 0 auto; padding: 24px 16px 64px; }
.wrap.narrow { max-width: 560px; }
.center { text-align: center; margin: 24px 0; }
.hidden { display: none; }

.page-head { margin: 16px 0 24px; }
.page-head h1 { font-size: 26px; }
.page-head .sub { color: #666; margin-top: 6px; }

.card {
  background: #fff; border-radius: 12px; padding: 20px 22px;
  margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.card h2 { font-size: 18px; margin-bottom: 14px; }
.card h3 { font-size: 16px; margin: 12px 0 8px; }

.field { display: block; margin-bottom: 14px; }
.field span { display: block; font-size: 13px; color: #555; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d9dce1;
  border-radius: 8px; font-size: 14px; font-family: inherit;
}
.field input:focus, .field textarea:focus { outline: none; border-color: #3b7cff; }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; }

.btn {
  display: inline-block; padding: 10px 22px; border: 1px solid #d9dce1;
  border-radius: 8px; background: #fff; color: #222; font-size: 14px;
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: #f2f4f7; }
.btn.primary { background: #3b7cff; border-color: #3b7cff; color: #fff; }
.btn.primary:hover { background: #2c66e0; }
.btn.big { font-size: 17px; padding: 13px 40px; }
.btn.small { font-size: 13px; padding: 6px 14px; }
.btn.ghost { border-color: transparent; color: #3b7cff; }

.error { color: #d33; font-size: 13px; }
.error.card { color: #222; }
.ok-msg { color: #1a9c5b; font-size: 13px; margin-left: 10px; }
.hint { color: #888; font-size: 13px; margin-top: 8px; }
.links summary { cursor: pointer; color: #3b7cff; font-size: 14px; margin-bottom: 10px; }

.intake-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 720px) { .intake-grid { grid-template-columns: 1fr; } }

/* 进度页 */
.progress-num { font-size: 34px; font-weight: 700; margin: 12px 0 8px; }
.progress-bar { height: 10px; background: #e6e9ee; border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; background: #3b7cff; transition: width .5s; }
.checklist { list-style: none; }
.checklist li { padding: 5px 0; color: #999; font-size: 14px; }
.checklist li.done { color: #222; }
.checklist li.done .dot { color: #1a9c5b; }
.checklist li.active { color: #3b7cff; font-weight: 600; }

/* 报告页 */
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
@media (max-width: 640px) { .four-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: 12px; padding: 16px; text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat .label { font-size: 13px; color: #666; }
.stat .num { font-size: 30px; font-weight: 700; }
.stat .num small { font-size: 14px; color: #999; font-weight: 400; }

.dim-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dim-name { width: 120px; font-size: 13px; flex-shrink: 0; }
.dim-bar { flex: 1; height: 12px; background: #eef0f3; border-radius: 6px; overflow: hidden; }
.dim-fill { height: 100%; background: #3b7cff; border-radius: 6px; }
.dim-score { width: 56px; text-align: right; font-size: 13px; }

.tag { display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: 12px; background: #eef0f3; color: #555; }
.tag.p0 { background: #fdeaea; color: #d33; font-weight: 600; }
.tag.p1 { background: #fff3e0; color: #d68910; font-weight: 600; }
.tag.p2 { background: #eef0f3; color: #555; }
.tag.warn { background: #fff3e0; color: #d68910; }

.problem { border-top: 1px solid #eef0f3; padding: 16px 0; }
.problem:first-of-type { border-top: none; }
.problem-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.problem-head h3 { margin: 0; }

.full-list summary { cursor: pointer; color: #3b7cff; font-weight: 600; }
.ind-table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 13px; }
.ind-table th, .ind-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eef0f3; }
.ind-table .evi { max-width: 300px; color: #666; }

/* 方案页 */
.solution h3 { color: #3b7cff; }
.steps { margin: 10px 0 14px 20px; }
.steps li { margin-bottom: 4px; font-size: 14px; }
.sol-meta { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 12px; font-size: 14px; }
.sol-meta .label, .sol-validate .label {
  display: block; font-size: 12px; color: #888; margin-bottom: 2px; }
.metrics { margin-left: 20px; font-size: 14px; }
.metrics li { margin-bottom: 2px; }
.actions { display: flex; gap: 12px; justify-content: center; }
