/* ==========================================================================
   自我探索问答清单 · self-explore.css
   ========================================================================== */

/* ---- 页首引言不换行（窄屏允许换行防溢出） ---- */
.page-hero .lead { white-space: nowrap; }
@media (max-width: 860px) { .page-hero .lead { white-space: normal; } }

/* ---- 使用建议：标题不换行 + 四卡一排（窄屏降级） ---- */
.se-usage .section-head .h2 { white-space: nowrap; }
@media (max-width: 860px) { .se-usage .section-head .h2 { white-space: normal; } }
.se-usage .cards {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.se-usage .card h3 { font-size: 0.98rem; }
.se-usage .card p { font-size: 0.85rem; line-height: 1.65; }
@media (max-width: 1100px) { .se-usage .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .se-usage .cards { grid-template-columns: 1fr; } }

/* ---- hidden 兜底：防止全局 .btn 等 display 规则覆盖 hidden 属性 ---- */
[hidden] { display: none !important; }

/* 布局：问题区 + 侧栏 */
.se-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 960px) {
  .se-grid { grid-template-columns: 1fr; }
  .se-aside { order: -1; }
}

/* 维度块 */
.se-form .dim-block {
  border: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 26px 0 10px;
  margin: 0 0 8px;
}
.se-form .dim-block:first-child { border-top: 0; padding-top: 4px; }
.se-form legend {
  padding: 0;
  margin-bottom: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  width: 100%;
}
.se-form .dim-num {
  font-size: 0.85rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.35);
  letter-spacing: 0.08em;
}
.se-form legend h3 { margin: 0; font-size: 1.15rem; }
.se-form .dim-tip {
  width: 100%;
  font-size: 0.85rem;
  line-height: 1.7;
  opacity: 0.6;
}

/* 问题行 */
.q-row {
  border-left: 3px solid transparent;
  padding: 10px 0 10px 14px;
  margin: 0 0 14px;
  transition: border-color 0.2s;
}
.q-row.answered { border-left-color: #0a7d66; }
.q-text {
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 8px;
  font-weight: 600;
}
.q-row textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.65;
  color: inherit;
  background: rgba(0, 0, 0, 0.025);
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}
.q-row textarea:focus {
  outline: none;
  border-color: #0a7d66;
  background: #fff;
}
.q-row textarea::placeholder { color: rgba(0, 0, 0, 0.32); }

/* 侧栏 */
.se-aside .result-hero { text-align: center; margin-bottom: 18px; }
.se-aside .big-number { font-size: 2.6rem; font-weight: 800; line-height: 1.1; }
.se-aside .big-number .of { font-size: 1rem; font-weight: 600; opacity: 0.45; margin-left: 4px; }
.se-progress {
  height: 6px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin: 12px auto 8px;
  max-width: 220px;
}
.se-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: #0a7d66;
  transition: width 0.35s ease;
}

/* 维度进度明细 */
.dim-grid { display: flex; flex-direction: column; gap: 8px; margin: 16px 0; }
.dim-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
}
.dim-row .dim-name { flex: 1; }
.dim-row .dim-count { opacity: 0.55; font-variant-numeric: tabular-nums; }
.dim-row .dim-mini {
  flex: 1.4;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}
.dim-row .dim-mini > i {
  display: block;
  height: 100%;
  background: #0a7d66;
  transition: width 0.3s ease;
}
.dim-row.done .dim-count { color: #0a7d66; font-weight: 700; opacity: 1; }

/* 操作按钮 */
.se-actions { display: flex; flex-direction: column; gap: 10px; margin: 18px 0 10px; }
.quiet-btn {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  padding: 9px 20px;
  font: inherit;
  font-size: 0.88rem;
  cursor: pointer;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.quiet-btn:hover { opacity: 1; }

.se-privacy {
  font-size: 0.78rem;
  line-height: 1.7;
  opacity: 0.55;
  margin: 10px 0 22px;
}

/* 写完之后 CTA */
.se-cta {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.se-cta h4 { margin: 0; font-size: 1rem; }
.se-cta p { margin: 0; font-size: 0.85rem; opacity: 0.7; }
.se-cta .btn { text-align: center; }
/* 描边次按钮：必须显式给深色文字——全局 .btn.life 是白字，
   若只把背景改透明，白字会「悬停才可见」 */
.se-cta .se-cta-2 {
  background: transparent;
  border: 1px solid rgba(10, 125, 102, 0.45);
  color: #0a7d66;
}
.se-cta .se-cta-2:hover { background: rgba(10, 125, 102, 0.08); }

/* 导出反馈提示 */
.se-export-note {
  font-size: 0.8rem;
  line-height: 1.6;
  margin: 4px 0 0;
  opacity: 0.75;
}

/* 窄屏允许 lead 换行：单行 nowrap 在移动端会横向溢出（2026-09-22 全站视觉打磨） */
@media (max-width: 680px) {
  .page-hero .lead,
  .lead { white-space: normal; }
}
