/* ==========================================================================
   RiskWeb · 职业决策评估表 样式（前缀 cd-）
   ========================================================================== */

/* hero lead 不换行（窄面板/手机同样保持一整行） */
.page-hero .lead { white-space: nowrap; font-size: clamp(0.7rem, 1.9vw, 1.05rem); }

.cd-main { max-width: 860px; }

/* ---- 决策设定卡 ---- */
.cd-setup { padding: 1.6rem 1.8rem; margin-bottom: 1.4rem; }
.cd-sub { font-size: 1.12rem; margin: 0 0 0.9rem; }
.cd-qrow { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.cd-qrow label, .cd-opt label { font-size: 0.82rem; color: var(--muted, #667); }
.cd-qrow input, .cd-opt input {
  width: 100%; padding: 0.6rem 0.8rem; border: 1px solid rgba(0,0,0,0.14);
  border-radius: 8px; font: inherit; background: #fff;
}
.cd-opts { display: flex; align-items: flex-end; gap: 0.8rem; }
.cd-opt { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.cd-vs { font-weight: 700; color: var(--life, #2e7d6b); padding-bottom: 0.55rem; }

/* ---- 维度打分表 ---- */
.cd-table-wrap { padding: 1.6rem 1.8rem; margin-bottom: 1.4rem; }
.cd-table-hint { font-size: 0.86rem; color: var(--muted, #667); margin: 0 0 1rem; }
.cd-thead, .cd-row {
  display: grid; grid-template-columns: minmax(9rem, 1.6fr) repeat(3, minmax(3.4rem, 0.7fr));
  gap: 0.6rem; align-items: center;
}
.cd-thead { padding-bottom: 0.5rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
.cd-th { font-size: 0.78rem; color: var(--muted, #667); text-align: center; }
.cd-th-dim { text-align: left; }
.cd-row { padding: 0.45rem 0; border-bottom: 1px dashed rgba(0,0,0,0.07); }
.cd-row:last-child { border-bottom: 0; }
.cd-dim { font-size: 0.95rem; }
.cd-thead select, .cd-row select {
  width: 100%; padding: 0.3rem 0.2rem; border: 1px solid rgba(0,0,0,0.14);
  border-radius: 6px; background: #fff; font: inherit; text-align: center;
}
.cd-w { color: var(--life, #2e7d6b); font-weight: 600; }

/* ---- 报告 ---- */
.cd-report { padding: 1.7rem 1.8rem; margin-bottom: 1.4rem; border-left: 4px solid var(--life, #2e7d6b); }
.cd-report-q { font-size: 1.02rem; margin: 0 0 1rem; color: var(--muted, #556); }
.cd-totals { display: flex; flex-direction: column; gap: 0.7rem; margin-bottom: 1.1rem; }
.cd-total { display: grid; grid-template-columns: minmax(5.5rem, auto) 1fr auto; gap: 0.8rem; align-items: center; }
.cd-total-name { font-weight: 600; font-size: 0.95rem; }
.cd-bar { height: 0.75rem; border-radius: 99px; background: rgba(0,0,0,0.08); overflow: hidden; }
.cd-bar i { display: block; height: 100%; border-radius: 99px; background: var(--life, #2e7d6b); transition: width 0.5s ease; }
.cd-bar-b i { background: #c98a2b; }
.cd-total-num { font-variant-numeric: tabular-nums; font-weight: 700; }
.cd-verdict { font-size: 1rem; line-height: 1.7; margin: 0 0 1.1rem; }
.cd-side-h { font-size: 0.95rem; margin: 1rem 0 0.45rem; }
.cd-side { margin: 0; padding-left: 1.2rem; }
.cd-side li { margin: 0.25rem 0; line-height: 1.6; }
.cd-side-cost li strong { color: #a05252; }
.cd-side-note { font-size: 0.9rem; color: var(--muted, #667); margin: 0.6rem 0; }
.cd-caution { background: var(--life-soft, #eef5f2); border-radius: 10px; padding: 0.9rem 1.1rem; margin-top: 1.1rem; }
.cd-caution h4 { margin: 0 0 0.4rem; font-size: 0.92rem; }
.cd-caution p { margin: 0.3rem 0; font-size: 0.88rem; line-height: 1.65; }
.cd-caution a { color: var(--life, #2e7d6b); font-weight: 600; }
.cd-report-note { font-size: 0.8rem; color: var(--muted, #667); margin: 1rem 0 0; }

/* ---- 报告里的分叉：两条去向 ---- */
.cd-next { margin-top: 1.2rem; border-top: 1px dashed rgba(0,0,0,0.12); padding-top: 1rem; }
.cd-next-h { margin: 0 0 0.35rem; font-size: 0.94rem; }
.cd-next-intro { margin: 0 0 0.8rem; font-size: 0.86rem; color: var(--muted, #667); line-height: 1.6; }
.cd-next-intro strong { font-weight: 600; }
.cd-next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.cd-next-card {
  display: block; padding: 0.85rem 0.95rem; border: 1px solid rgba(0,0,0,0.12);
  border-radius: 10px; background: #fff; color: inherit; text-decoration: none;
  transition: border-color 0.18s, transform 0.18s;
}
.cd-next-card:hover { border-color: var(--life, #2e7d6b); transform: translateY(-1px); }
.cd-next-k { display: block; font-size: 0.74rem; color: var(--muted, #667); margin-bottom: 0.25rem; }
.cd-next-t { display: block; font-size: 0.95rem; color: var(--life, #2e7d6b); }
.cd-next-d { display: block; margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.55; color: var(--muted, #667); font-style: normal; }

/* ---- 操作区 ---- */
.cd-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 0.4rem 0 0.8rem; }
.quiet-btn {
  padding: 0.55rem 1.1rem; border: 1px solid rgba(0,0,0,0.18); border-radius: 99px;
  background: #fff; font: inherit; cursor: pointer;
}
.quiet-btn:hover { border-color: var(--life, #2e7d6b); color: var(--life, #2e7d6b); }
.cd-privacy { font-size: 0.82rem; color: var(--muted, #667); margin-bottom: 1.6rem; }

/* ---- 使用建议区微调 ---- */
.cd-usage .card h3 { font-size: 1.02rem; }

/* ---- 窄屏 ---- */
@media (max-width: 640px) {
  .cd-setup, .cd-table-wrap, .cd-report { padding: 1.2rem 1.1rem; }
  .cd-opts { flex-direction: column; align-items: stretch; }
  .cd-vs { padding: 0; text-align: center; }
  .cd-thead, .cd-row { grid-template-columns: minmax(6.5rem, 1.4fr) repeat(3, minmax(2.9rem, 0.6fr)); gap: 0.35rem; }
  .cd-dim { font-size: 0.85rem; }
  .cd-total { grid-template-columns: minmax(4.5rem, auto) 1fr auto; }
  .cd-next-grid { grid-template-columns: 1fr; }
}

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