:root {
  --primary: #12A97A;
  --primary-dark: #0E8E66;
  --text: #0E211B;
  --text-secondary: #4C665C;
  --border: #DBEAE3;
  --bg: #F2F8F5;
  --card: #ffffff;
  --accent: #0E8E66;
  --warn: #B7791F;
  --danger: #c0392b;
  --radius: 12px;
}

* { 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-font-smoothing: antialiased;
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ===== 问卷区 ===== */
.survey-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 16px 0;
  z-index: 10;
}
.brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.progress {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0;
}

.question-area {
  margin-top: 8px;
}

.question-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.q-label {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}
.q-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 4px;
}
.q-hint {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.option-list { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #fff;
}
.option:hover { border-color: var(--primary); background: #F7FBF9; }
.option.selected { border-color: var(--primary); background: #EAF4EF; }
.option input { display: none; }
.option .mark {
  width: 20px; height: 20px;
  border: 2px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s ease;
}
.option.selected .mark { border-color: var(--primary); }
.option.selected .mark::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--primary);
  border-radius: 50%;
}
.option.multi .mark { border-radius: 4px; }
.option.multi.selected .mark::after { border-radius: 2px; }
.option .opt-text { font-size: 15px; }

.survey-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}
.btn {
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { background: #C6EDDF; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--text); }

/* ===== 报告区 ===== */
.report-content {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.report-cover { text-align: center; padding: 20px 0 32px; border-bottom: 1px solid var(--border); margin-bottom: 32px; }
.report-cover .rc-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.report-cover .rc-sub { font-size: 14px; color: var(--text-secondary); }
.report-cover .rc-badge {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: #EAF4EF;
}

.report-section { margin-bottom: 32px; }
.report-section h2 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--primary);
}
.report-section h3 { font-size: 15px; font-weight: 600; margin: 16px 0 8px; }

.exec-summary {
  background: #F7FBF9;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.exec-summary p { font-size: 15px; margin-bottom: 6px; }
.exec-summary p:last-child { margin-bottom: 0; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  margin-right: 6px;
}
.tag-green { background: #e6f6ef; color: var(--accent); }
.tag-yellow { background: #fdf3e3; color: var(--warn); }
.tag-red { background: #fdeaea; color: var(--danger); }
.tag-blue { background: #EAF4EF; color: var(--primary); }

.dim-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.dim-card .dim-title { font-weight: 600; margin-bottom: 8px; }
.dim-row { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dim-row .dim-name { width: 90px; font-size: 13px; color: var(--text-secondary); flex-shrink: 0; }
.dim-bar {
  flex: 1; height: 8px; background: #E4EFE9; border-radius: 4px; overflow: hidden;
}
.dim-bar .fill { height: 100%; border-radius: 4px; background: var(--primary); }

.advice-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 10px;
}
.advice-item .advice-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.advice-item .advice-text { font-size: 15px; }

.quote-block {
  background: #FBFDFC;
  border-left: 3px solid var(--primary);
  padding: 12px 16px;
  margin: 10px 0;
  border-radius: 0 8px 8px 0;
  font-size: 14px;
  color: var(--text-secondary);
}
.quote-block .quote-source { font-size: 12px; color: #5C7268; margin-top: 4px; }

.advise-against {
  background: #fdf3e3;
  border: 1px solid #f0d9b0;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 24px;
}
.advise-against .aa-title { font-weight: 700; color: var(--warn); margin-bottom: 8px; }

.report-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

@media print {
  .survey-footer, .report-footer, .survey-header { display: none; }
  .container { max-width: 100%; padding: 0; }
  .report-content { box-shadow: none; }
}

/* ===== 联系表单（问卷最后一步）===== */
.contact-card { max-width: 620px; }
.contact-form { margin-top: 18px; }
.cf-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.cf-row .cf-label {
  width: 92px; flex-shrink: 0;
  font-size: 14px; color: var(--text);
}
.cf-row .cf-label i { color: var(--danger, #d93026); font-style: normal; margin-left: 2px; }
.cf-row input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
}
.cf-row input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(18,169,122,0.12); }
.contact-err {
  display: none;
  color: var(--danger, #d93026);
  background: #fdeaea;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  margin-top: 4px;
}
.contact-tip { font-size: 12.5px; color: #5C7268; margin-top: 12px; }

/* ===== 报告：品牌行 / 定性档位 / 免责说明 ===== */
.report-cover .rc-brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--primary);
  margin-bottom: 6px;
}
.dim-row .dim-name { width: 118px; }
.dim-label { font-size: 12px; padding: 2px 8px; border-radius: 4px; flex-shrink: 0; }
.dim-label.q-good { background: #E4F5EE; color: #0B7A57; }
.dim-label.q-mid { background: #fdf3e3; color: #b7791f; }
.dim-label.q-low { background: #fdeaea; color: #c53030; }
.sect-note { font-size: 13px; color: #5C7268; margin-top: 8px; }
.report-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: #5C7268;
  text-align: center;
}

/* ===== 前台头部：中英标题 + 欢迎语 ===== */
.survey-header .brand { margin-bottom: 4px; }
.brand-cn {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  margin-left: 8px;
}
.brand-sub {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* 报告页：提交结果提示 */
.report-footer .submit-state {
  display: none;
  width: 100%;
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
