/* 营养测评系统 V5.1 样式 — 深绿色主题 */
:root {
  --primary: #1B5E20;
  --primary-dark: #0D3B0E;
  --primary-light: #2E7D32;
  --green: #4CAF50;
  --yellow: #FFC107;
  --orange: #FF9800;
  --red: #F44336;
  --darkred: #8B0000;
  --bg: #f0f4f0;
  --card-bg: #fff;
  --text: #333;
  --text-light: #666;
  --border: #e0e0e0;
  --shadow: 0 2px 8px rgba(0,0,0,0.1);
  --radius: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.6;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}

.page { display: none; min-height: 100vh; padding: 15px; }
.page.active { display: block; }

/* ===== 开始页面 ===== */
.hero { max-width: 600px; margin: 30px auto; text-align: center; }
.logo-area h1 { font-size: 26px; color: var(--primary); margin-bottom: 8px; }
.hero-title { font-size: 20px; font-weight: bold; margin: 20px 0 15px; }

/* 三步流程卡片 */
.flow-cards { display: flex; flex-direction: column; gap: 12px; margin: 15px 0; }
.flow-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px 18px;
  border-left: 4px solid var(--primary);
  transition: box-shadow 0.2s;
}
.flow-card:hover { box-shadow: var(--shadow); }
.flow-card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flow-step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: white;
  font-size: 14px; font-weight: bold; flex-shrink: 0;
}
.flow-card-title { font-size: 16px; font-weight: bold; color: var(--text); }
.flow-card-desc { font-size: 14px; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; text-align: left; padding-left: 2em; }
.flow-card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.flow-tag {
  display: inline-block; padding: 3px 10px; border-radius: 6px;
  font-size: 12px; color: var(--text-light); background: #f5f5f5;
  border: 1px solid var(--border);
}
.flow-tag-highlight {
  background: var(--primary); color: white; border-color: var(--primary);
}

.basic-info-form { background: white; padding: 15px 20px; border-radius: var(--radius); margin: 20px 0; }
.basic-info-form h3 { margin-bottom: 10px; font-size: 16px; }
.form-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.form-row label { font-size: 14px; min-width: 50px; }
.form-row select { padding: 8px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.form-row input[type="text"],
.form-row input[type="number"] { padding: 8px 15px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; flex: 1; }
.estimated-time { font-size: 13px; color: var(--text-light); margin-top: 10px; }

/* ===== 按钮 ===== */
.btn-primary { background: var(--primary); color: white; padding: 12px 30px; border: none; border-radius: 8px; font-size: 16px; cursor: pointer; transition: background 0.2s; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #ccc; cursor: not-allowed; }
.btn-secondary { background: white; color: var(--primary); padding: 10px 20px; border: 1px solid var(--primary); border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-large { padding: 14px 40px; font-size: 18px; }
.btn-text { background: none; color: var(--primary); border: none; cursor: pointer; font-size: 14px; padding: 5px 0; }
.btn-back { background: none; color: var(--primary); border: none; cursor: pointer; font-size: 14px; padding: 5px 0; }

/* ===== 问卷页面 ===== */
.question-header { max-width: 600px; margin: 0 auto 15px; }
.progress-bar { height: 8px; background: var(--border); border-radius: 4px; margin-bottom: 8px; }
.progress-fill { height: 100%; background: var(--primary); border-radius: 4px; transition: width 0.3s; }
.progress-text { font-size: 14px; color: var(--text-light); }
.module-label { font-size: 13px; color: var(--primary); margin-top: 5px; }
.question-body { max-width: 600px; margin: 0 auto; background: white; padding: 20px; border-radius: var(--radius); }
.question-title { font-size: 18px; font-weight: bold; margin-bottom: 12px; }
.question-desc { font-size: 14px; color: var(--text-light); margin-bottom: 18px; }

.option-list { display: flex; flex-direction: column; gap: 8px; }
.option-item { display: flex; align-items: center; padding: 12px 15px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all 0.2s; }
.option-item:hover { border-color: var(--primary); background: rgba(27,94,32,0.05); }
.option-item.selected { border-color: var(--primary); background: rgba(27,94,32,0.1); }
.option-radio { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; margin-right: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.option-item.selected .option-radio { border-color: var(--primary); background: var(--primary); }
.option-radio-inner { width: 10px; height: 10px; background: white; border-radius: 50%; display: none; }
.option-item.selected .option-radio-inner { display: block; }
.option-label { font-size: 15px; }

.input-group { display: flex; gap: 15px; margin-bottom: 18px; }
.input-field { flex: 1; }
.input-field label { display: block; font-size: 14px; margin-bottom: 5px; }
.input-field input { width: 100%; padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 16px; }
.bmi-result { font-size: 16px; padding: 10px; background: #e8f5e9; border-radius: 8px; margin-top: 10px; }
.waist-standard { font-size: 13px; color: var(--text-light); margin-bottom: 10px; padding: 8px 12px; background: #fff3e0; border-radius: 8px; }

.matrix-row { margin-bottom: 15px; }
.matrix-row-title { font-size: 15px; font-weight: bold; margin-bottom: 8px; }
.freq-options { display: flex; flex-wrap: wrap; gap: 8px; }
.freq-option { padding: 8px 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 13px; cursor: pointer; }
.freq-option.selected { border-color: var(--primary); background: rgba(27,94,32,0.1); }

.multi-options { display: flex; flex-direction: column; gap: 8px; }
.multi-hint { font-size: 13px; color: var(--text-light); margin-bottom: 8px; padding: 6px 10px; background: #f5f5f5; border-radius: 6px; }
.background-hint { font-size: 13px; color: var(--text-light); margin-top: 15px; padding: 8px 12px; background: #e8f5e9; border-radius: 8px; border-left: 3px solid var(--primary); }
.multi-item { display: flex; align-items: center; padding: 12px 15px; border: 2px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.multi-item:hover { border-color: var(--primary); }
.multi-item.selected { border-color: var(--primary); background: rgba(27,94,32,0.1); }
.multi-checkbox { width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 4px; margin-right: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.multi-item.selected .multi-checkbox { border-color: var(--primary); background: var(--primary); }
.multi-check-mark { width: 12px; height: 8px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); margin-top: -2px; display: none; }
.multi-item.selected .multi-check-mark { display: block; }
.multi-item.default-good { border-color: var(--green); background: rgba(76,175,80,0.05); }
.multi-item.default-good.selected { background: rgba(76,175,80,0.15); }

.reference-question { background: #f0f0f0; padding: 15px; border-radius: var(--radius); border: 2px solid #ccc; }
.reference-badge { display: inline-block; background: #9E9E9E; color: white; padding: 2px 8px; border-radius: 6px; font-size: 12px; margin-bottom: 8px; }
.reference-answer { font-size: 16px; font-weight: bold; color: var(--primary); }
.reference-answer.pending { color: var(--red); }
.reference-answer-detail { font-size: 13px; color: var(--text-light); margin-top: 5px; padding: 6px 10px; background: white; border-radius: 6px; }

.question-footer { max-width: 600px; margin: 15px auto 0; display: flex; justify-content: space-between; gap: 10px; }

/* ===== 报告页面 ===== */
.report-header, .final-header { text-align: center; margin-bottom: 15px; }
.report-header h2, .final-header h2 { font-size: 22px; color: var(--primary); }
.report-subtitle, .final-subtitle { font-size: 14px; color: var(--text-light); }

.report-summary { display: flex; justify-content: center; gap: 10px; margin: 12px auto; max-width: 700px; padding: 12px; background: white; border-radius: var(--radius); flex-wrap: wrap; }
.summary-stat { text-align: center; padding: 8px; }
.summary-num { display: block; font-size: 24px; font-weight: bold; }
.summary-label { font-size: 11px; color: var(--text-light); }

/* ===== 营养素矩阵网格 ===== */
.nutrient-matrix-section { max-width: 900px; margin: 15px auto; }
.matrix-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; padding: 8px 12px; background: white; border-radius: 8px; font-size: 12px; }
.legend-item { display: flex; align-items: center; gap: 4px; color: var(--text-light); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.matrix-category-title { font-size: 15px; font-weight: bold; color: var(--primary); margin: 15px 0 8px; padding-left: 5px; border-left: 3px solid var(--primary); }

.matrix-grid-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }

.nutrient-block {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: default;
  position: relative;
}
.nutrient-block:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.nutrient-block.highlight { animation: highlight-pulse 1.5s ease; }

@keyframes highlight-pulse {
  0% { box-shadow: 0 0 0 0 rgba(27,94,32,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(27,94,32,0.2); }
  100% { box-shadow: 0 0 0 0 rgba(27,94,32,0); }
}

.nutrient-block.insufficient-data {
  border-top: 4px solid #bbb;
  background: #f9f9f9;
}
.nutrient-block.insufficient-data .block-name { color: #999; }

.block-header { display: flex; align-items: center; gap: 4px; }
.block-icon { font-size: 16px; line-height: 1; }
.block-name { font-size: 13px; font-weight: bold; }
.block-score { font-size: 22px; font-weight: bold; line-height: 1.2; }
.block-level { font-size: 11px; }
.block-count { font-size: 10px; color: var(--text-light); }

/* 营养素块按钮 */
.block-buttons {
  display: flex;
  gap: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.block-btn {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  transition: opacity 0.2s, transform 0.1s;
  line-height: 1.4;
  white-space: nowrap;
}
.block-btn:active { transform: scale(0.95); }
.block-btn:hover { opacity: 0.85; }

.block-btn-detail {
  /* 背景色由内联style跟随营养素状态颜色设置 */
  color: white;
}

.block-btn-supplement {
  background: var(--orange);
  color: white;
}
.block-btn-supplement:hover { background: #e85d00; }

/* 旧链接样式（保留兼容，不再使用） */
.block-detail-link {
  font-size: 11px;
  color: var(--primary);
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
}
.block-detail-link:hover { color: var(--primary-dark); }
.block-supplement-link {
  font-size: 11px;
  color: var(--orange);
  cursor: pointer;
  margin-top: 4px;
  text-decoration: underline;
  font-weight: bold;
}
.block-supplement-link:hover { color: var(--red); }

/* ===== 场景推荐 ===== */
.scenario-recommendation { max-width: 700px; margin: 25px auto; }
.scenario-recommendation h3 { font-size: 18px; margin-bottom: 8px; }
.rec-desc { font-size: 14px; color: var(--text-light); margin-bottom: 12px; }
.scenario-option { display: flex; align-items: center; padding: 12px 15px; border: 2px solid var(--border); border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.scenario-option:hover { border-color: var(--primary); }
.scenario-option.selected { border-color: var(--primary); background: rgba(27,94,32,0.08); }
.scenario-icon { font-size: 24px; margin-right: 10px; }
.scenario-info { flex: 1; }
.scenario-name { font-size: 16px; font-weight: bold; }
.scenario-desc { font-size: 13px; color: var(--text-light); }
.scenario-match { font-size: 12px; color: var(--red); }
.scenario-check { width: 22px; height: 22px; border: 2px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.scenario-option.selected .scenario-check { border-color: var(--primary); background: var(--primary); }
.scenario-check-mark { width: 10px; height: 6px; border-left: 2px solid white; border-bottom: 2px solid white; transform: rotate(-45deg); margin-top: -2px; display: none; }
.scenario-option.selected .scenario-check-mark { display: block; }

/* "查看全部场景"按钮 — 紫色背景，尺寸同 scenario-option */
.btn-all-scenarios { display: flex; align-items: center; justify-content: center; width: 100%; padding: 12px 15px; background: #7B1FA2; color: white; border: 2px solid #7B1FA2; border-radius: var(--radius); margin-bottom: 8px; cursor: pointer; font-size: 16px; font-weight: bold; transition: all 0.2s; }
.btn-all-scenarios:hover { background: #6A1B9A; border-color: #6A1B9A; }

.all-scenarios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.report-actions { text-align: center; margin: 25px 0; display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.hidden { display: none; }

/* ===== 可折叠区域 ===== */
.collapsible-section {
  transition: max-height 0.3s ease, opacity 0.3s ease;
  overflow: hidden;
}
.collapsible-section.collapsed {
  max-height: 0;
  opacity: 0;
  margin: 0;
  padding: 0;
}
.expand-section {
  text-align: center;
  padding: 10px 0;
  margin: 10px 0;
  background: white;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

/* ===== 支线测评 ===== */
.branch-header { text-align: center; margin-bottom: 15px; }
.branch-header h2 { font-size: 20px; color: var(--primary); }
.branch-questions { max-width: 600px; margin: 0 auto; }
.branch-progress { font-size: 14px; color: var(--text-light); margin-top: 5px; }
.branch-footer { max-width: 600px; margin: 15px auto 0; display: flex; justify-content: space-between; }

/* ===== 补充测评页面 ===== */
.supplement-header { text-align: center; margin-bottom: 15px; }
.supplement-header h2 { font-size: 20px; color: var(--primary); margin: 8px 0; }
.supplement-desc { font-size: 14px; color: var(--text-light); }
.supplement-body { max-width: 600px; margin: 0 auto; }

.supplement-hint { font-size: 14px; color: var(--text-light); margin-bottom: 12px; padding: 10px 15px; background: #e8f5e9; border-radius: 8px; }
.supplement-scenario-list { display: flex; flex-direction: column; gap: 8px; }
.supplement-scenario-card {
  display: flex; align-items: center; padding: 12px 15px;
  border: 2px solid var(--border); border-radius: var(--radius);
  cursor: pointer; transition: all 0.2s;
}
.supplement-scenario-card:hover { border-color: var(--primary); background: rgba(27,94,32,0.05); }
.supplement-scenario-icon { font-size: 24px; margin-right: 10px; }
.supplement-scenario-info { flex: 1; }
.supplement-scenario-name { font-size: 16px; font-weight: bold; }
.supplement-scenario-desc { font-size: 13px; color: var(--text-light); }
.supplement-scenario-count { font-size: 12px; color: var(--orange); font-weight: bold; white-space: nowrap; }

.supplement-progress { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.supplement-footer { display: flex; justify-content: space-between; margin-top: 15px; }
.supplement-empty { text-align: center; padding: 30px; color: var(--text-light); font-size: 14px; }

/* ===== 详情浮层弹窗 ===== */
.modal-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.active { display: flex; align-items: flex-start; justify-content: center; padding: 20px; }

.modal-container {
  background: white;
  border-radius: 14px;
  max-width: 600px;
  width: 100%;
  margin: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { font-size: 18px; color: var(--primary); }
.modal-close {
  background: none; border: none; font-size: 20px;
  cursor: pointer; color: var(--text-light);
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: #f0f0f0; }
.modal-body { padding: 15px 20px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.modal-loading { text-align: center; padding: 40px; color: var(--text-light); }
.modal-error { text-align: center; padding: 40px; color: var(--red); }

/* 详情：评分概览 */
.detail-score-bar {
  display: flex; align-items: center; gap: 15px;
  padding: 15px; background: #f5f7fa; border-radius: var(--radius); margin-bottom: 15px;
}
.detail-score-num { font-size: 36px; font-weight: bold; line-height: 1; }
.detail-score-info { flex: 1; }
.detail-level { font-size: 16px; font-weight: bold; }
.detail-advice { font-size: 13px; color: var(--text-light); margin-top: 2px; }
.detail-meta { font-size: 12px; color: var(--text-light); margin-top: 2px; }

/* 详情：分区 */
.detail-section { margin-bottom: 20px; }
.detail-section-title { font-size: 16px; font-weight: bold; color: var(--primary); margin-bottom: 10px; padding-bottom: 5px; border-bottom: 2px solid var(--primary); }
.detail-empty { text-align: center; padding: 20px; color: var(--text-light); font-size: 14px; }
.detail-intensity-badge { display: inline-block; padding: 3px 12px; border-radius: 12px; font-size: 12px; font-weight: bold; margin-bottom: 10px; }

/* 详情：失分题目卡片 */
.detail-question-card {
  background: #f9f9f9; border-radius: 8px; padding: 10px 12px;
  margin-bottom: 8px; border-left: 3px solid var(--border);
}
.detail-q-header { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.detail-q-id { font-size: 12px; font-weight: bold; color: var(--primary); background: #e8f5e9; padding: 1px 6px; border-radius: 4px; }
.detail-ref-tag { font-size: 10px; color: #9E9E9E; background: #f0f0f0; padding: 1px 6px; border-radius: 4px; }
.detail-q-score { font-size: 12px; font-weight: bold; margin-left: auto; }
.detail-q-title { font-size: 14px; font-weight: bold; margin-bottom: 3px; }
.detail-q-answer { font-size: 13px; color: var(--text); margin-bottom: 3px; }
.detail-q-weight { font-size: 11px; color: var(--text-light); }

/* 详情：四维干预卡片 */
.detail-plan-card {
  display: flex; gap: 10px; padding: 12px;
  border-radius: 8px; margin-bottom: 8px; background: #f9f9f9;
}
.detail-plan-card.diet { border-left: 3px solid var(--green); }
.detail-plan-card.supplement { border-left: 3px solid var(--primary); }
.detail-plan-card.lifestyle { border-left: 3px solid var(--orange); }
.detail-plan-card.monitoring { border-left: 3px solid var(--text-light); }
.plan-card-icon { font-size: 20px; flex-shrink: 0; }
.plan-card-body { flex: 1; }
.plan-card-title { font-size: 14px; font-weight: bold; margin-bottom: 5px; }
.plan-card-intensity { font-size: 11px; color: var(--text-light); font-weight: normal; }
.plan-card-row { font-size: 13px; color: var(--text-light); margin: 3px 0; }
.plan-card-row strong { color: var(--text); }

/* ===== 最终报告 ===== */
.section-title { font-size: 18px; font-weight: bold; color: var(--primary); margin: 15px 0; }

.final-footer { text-align: center; margin: 25px 0; display: flex; justify-content: center; gap: 15px; }
.disclaimer { max-width: 700px; margin: 20px auto; padding: 15px; background: #fff3e0; border-radius: var(--radius); font-size: 13px; color: var(--text-light); }

/* ===== 打印 ===== */
@media print {
  .btn-primary, .btn-secondary, .btn-text, .btn-back { display: none; }
  .page { display: block !important; padding: 0; }
  #start-page, #question-page, #branch-page, #supplement-page { display: none !important; }
  .modal-overlay { display: none !important; }
  .matrix-grid-row { grid-template-columns: repeat(4, 1fr); }
}

/* ===== H5 移动端适配 ===== */
@media (max-width: 768px) {
  .page { padding: 10px; }
  .hero { margin: 15px auto; }
  .logo-area h1 { font-size: 22px; }
  .hero-title { font-size: 18px; }
  .flow-card { padding: 12px 14px; }
  .flow-card-title { font-size: 14px; }
  .flow-card-desc { font-size: 13px; }
  .flow-step-badge { width: 24px; height: 24px; font-size: 12px; }

  .question-body { padding: 15px; }
  .question-title { font-size: 16px; }
  .option-item { padding: 10px 12px; }
  .option-label { font-size: 14px; }
  .freq-options { gap: 6px; }
  .freq-option { padding: 6px 10px; font-size: 12px; }
  .input-group { flex-direction: column; gap: 10px; }

  .report-header h2, .final-header h2 { font-size: 18px; }
  .report-summary { gap: 5px; padding: 8px; }
  .summary-stat { padding: 5px; }
  .summary-num { font-size: 20px; }
  .summary-label { font-size: 10px; }

  .matrix-legend { gap: 6px; font-size: 11px; }
  .matrix-grid-row { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .nutrient-block { padding: 8px 6px; }
  .block-icon { font-size: 14px; }
  .block-name { font-size: 12px; }
  .block-score { font-size: 18px; }
  .block-level { font-size: 10px; }
  .block-count { font-size: 9px; }

  .matrix-category-title { font-size: 14px; margin: 10px 0 6px; }
  .block-buttons { gap: 3px; margin-top: 5px; }
  .block-btn { padding: 3px 6px; font-size: 10px; }

  .scenario-option { padding: 10px 12px; }
  .scenario-name { font-size: 14px; }
  .scenario-desc { font-size: 12px; }
  .scenario-icon { font-size: 20px; }
  .btn-all-scenarios { padding: 10px 12px; font-size: 14px; }

  .report-actions { gap: 8px; }
  .btn-primary { padding: 10px 20px; font-size: 14px; }
  .btn-large { padding: 12px 30px; font-size: 16px; }

  /* 浮层弹窗移动端 */
  .modal-overlay { padding: 0; }
  .modal-container { max-width: 100%; max-height: 100vh; border-radius: 0; }
  .modal-header { padding: 12px 15px; }
  .modal-header h3 { font-size: 16px; }
  .modal-body { padding: 12px 15px; }
  .detail-score-num { font-size: 28px; }
  .detail-section-title { font-size: 14px; }
  .detail-question-card { padding: 8px 10px; }
  .detail-q-title { font-size: 13px; }
  .detail-q-answer { font-size: 12px; }

  /* 补充测评移动端 */
  .supplement-scenario-card { padding: 10px 12px; }
  .supplement-scenario-name { font-size: 14px; }
  .supplement-scenario-desc { font-size: 12px; }
}

@media (max-width: 400px) {
  .matrix-grid-row { grid-template-columns: repeat(2, 1fr); }
  .flow-card { padding: 10px 12px; }
  .flow-card-title { font-size: 13px; }
  .flow-card-desc { font-size: 12px; }
  .flow-tag { font-size: 11px; padding: 2px 8px; }
  .report-summary { gap: 3px; }
  .summary-num { font-size: 16px; }
}
