/* v2.css — 商业决策版视觉覆盖。安静、清晰、适合反复阅读。 */
:root {
  --bg: #f3f5f2;
  --bg-2: #ffffff;
  --bg-3: #e3e8e3;
  --card: #ffffff;
  --border: #d3dad4;
  --text: #172019;
  --text-2: #34443a;
  --muted: #69786e;
  --primary: #23684f;
  --primary-2: #2d7b60;
  --accent: #b66c16;
  --accent-2: #96580e;
  --danger: #a63f3f;
  --success: #24714e;
  --info: #326b9a;
  --grad: #23684f;
  --grad-soft: #e5f0ea;
  --radius: 8px;
  --radius-sm: 6px;
  --shadow: 0 8px 24px rgba(29, 46, 35, .08);
  --max-w: 760px;
}

html { background: var(--bg); }
body { background: var(--bg); color: var(--text); letter-spacing: 0; }
#app { padding: 0 18px 56px; }
.page { animation-duration: .22s; }

.btn,
.btn-primary,
.btn-secondary,
.option-btn,
.confirm-btn {
  border-radius: 6px;
  box-shadow: none;
  letter-spacing: 0;
}
.btn-primary,
button.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
}
.btn-primary:hover,
button.btn-primary:hover { background: #19563f; filter: none; }
.btn-secondary,
button.btn-secondary {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  padding: 11px 16px;
  border-radius: 6px;
  cursor: pointer;
}

#page-home { justify-content: flex-start; padding-top: clamp(42px, 9vh, 86px); }
.hero { width: 100%; text-align: left; }
.hero-badge {
  margin-bottom: 18px;
  border-radius: 4px;
  background: #e5f0ea;
  border-color: #bdd5c7;
  color: var(--primary);
  font-weight: 700;
}
.hero h1 {
  max-width: 650px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.18;
  margin-bottom: 18px;
  background: none;
  color: var(--text);
  -webkit-text-fill-color: currentColor;
}
.hero p.sub { max-width: 590px; font-size: 17px; margin-bottom: 28px; color: var(--text-2); }
.hero-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 4px 0 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.hero-feature { padding: 15px 10px 15px 0; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.hero-feature .dot { margin-top: 6px; background: var(--accent); border-radius: 1px; }
.hero .btn { max-width: 240px; }
.home-trust { margin-top: 16px; color: var(--muted); font-size: 12px; }

.topbar { border-bottom: 1px solid var(--border); margin-bottom: 18px; }
.topbar .back { color: var(--text-2); }
.topbar .title { font-size: 14px; }

.chat-container { max-width: 680px; margin: 0 auto; }
.chat-progress-wrap { position: sticky; top: 0; z-index: 3; padding: 10px 0 14px; background: var(--bg); }
.chat-progress-bar { height: 5px; border-radius: 2px; background: var(--bg-3); }
.chat-progress-fill { height: 100%; border-radius: 2px; background: var(--primary); transition: width .25s ease; }
.chat-progress-text { margin-top: 7px; color: var(--muted); font-size: 12px; }
.question-bubble {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  box-shadow: none;
}
.question-subtitle { color: var(--primary); font-size: 12px; font-weight: 700; margin-bottom: 7px; }
.question-text { color: var(--text); font-size: 18px; font-weight: 750; line-height: 1.45; }
.question-note { color: var(--accent-2); background: #fff8ee; border-left-color: var(--accent); border-radius: 4px; }
.question-input-area { margin-top: 14px; display: grid; gap: 9px; }
.option-btn {
  min-height: 50px;
  padding: 13px 15px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
}
.option-btn:hover { transform: none; background: #f7faf7; border-color: #8eaa99; }
.option-btn.selected { background: #e8f2ed; border-color: var(--primary); color: #174b39; }
.confirm-btn { justify-content: center; background: var(--primary); color: #fff; border-color: var(--primary); margin-top: 4px; }
.number-input,
.text-input {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  font: inherit;
}
.number-input:focus,
.text-input:focus { outline: 3px solid #dcebe3; border-color: var(--primary); }
.history-bubble {
  align-self: flex-end;
  max-width: 88%;
  margin: 8px 0 18px;
  padding: 10px 13px;
  border-radius: 6px 6px 2px 6px;
  background: #dfece5;
  color: #214b39;
  font-size: 13px;
}

.result-shell,
.plan-shell { max-width: 760px; margin: 0 auto; }
.result-intro { padding: 8px 0 24px; border-bottom: 1px solid var(--border); }
.result-intro h2 { font-size: 26px; margin-bottom: 8px; }
.result-intro p { color: var(--text-2); }
.source-note { margin-top: 8px; font-size: 12px; color: var(--muted); }
.profile-evidence { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.evidence-column { padding: 22px 18px 22px 0; min-width: 0; }
.evidence-column + .evidence-column { padding-left: 18px; border-left: 1px solid var(--border); }
.evidence-column h3 { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.evidence-column strong { display: block; font-size: 16px; margin-bottom: 5px; overflow-wrap: anywhere; }
.evidence-column p { font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.section-heading { margin: 30px 0 13px; }
.section-heading h3 { font-size: 20px; }
.section-heading p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.empty-state { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.empty-state h3 { margin-bottom: 7px; }
.empty-state p { color: var(--text-2); }

.path-list { display: grid; gap: 12px; }
.path-card-v2 {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
  margin: 0;
}
.path-card-v2.selected { border: 2px solid var(--primary); padding: 17px; }
.path-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.path-card-title h4 { font-size: 18px; line-height: 1.35; }
.status-badge,
.role-badge,
.confidence-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.status-badge.experimental { color: #7b4a0b; background: #fff1d9; }
.role-badge { color: #28577d; background: #e5eff7; }
.confidence-badge { color: #315b46; background: #e4efe8; }
.path-one-liner { margin: 9px 0 14px; color: var(--text-2); }
.path-business { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.path-fact span { display: block; color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.path-fact strong { font-size: 13px; line-height: 1.45; }
.path-reasons { margin: 12px 0; padding-left: 18px; color: var(--text-2); font-size: 13px; }
.path-reasons li { margin: 4px 0; }
.path-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; }
.path-score { color: var(--muted); font-size: 12px; }
.path-actions button { width: auto; min-width: 132px; }

.contract-panel { margin-top: 24px; padding: 20px 0; border-top: 2px solid var(--text); border-bottom: 1px solid var(--border); }
.contract-panel h3 { margin-bottom: 6px; }
.contract-note { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.contract-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.contract-field span { display: block; color: var(--muted); font-size: 11px; }
.contract-field strong { font-size: 14px; }
.contract-actions { margin-top: 20px; display: flex; gap: 10px; }

.plan-summary { padding: 10px 0 22px; border-bottom: 1px solid var(--border); }
.plan-summary h2 { font-size: 26px; }
.plan-summary p { margin-top: 6px; color: var(--text-2); }
.plan-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.phase-section { margin-top: 28px; border-top: 1px solid var(--border); padding-top: 18px; }
.phase-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.phase-index { width: 30px; height: 30px; border-radius: 4px; display: grid; place-items: center; background: var(--text); color: #fff; font-weight: 800; flex: 0 0 auto; }
.phase-head h3 { font-size: 18px; }
.phase-head p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.task-row { padding: 16px 0; border-top: 1px solid #e1e6e2; }
.task-row:first-of-type { border-top: 0; }
.task-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.task-top h4 { font-size: 15px; }
.task-time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.task-purpose { margin: 5px 0 9px; color: var(--text-2); font-size: 13px; }
.task-actions-list { padding-left: 20px; font-size: 13px; }
.task-actions-list li { margin: 5px 0; }
.task-details { margin-top: 10px; }
.task-details summary { cursor: pointer; color: var(--primary); font-size: 12px; font-weight: 700; }
.task-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 10px; font-size: 12px; }
.task-detail-grid span { display: block; color: var(--muted); }
.plan-end { margin: 30px 0; padding: 18px 0; border-top: 2px solid var(--text); }
.plan-end h3 { margin-bottom: 7px; }
.plan-end p { color: var(--text-2); }

@media (max-width: 620px) {
  #app { padding-left: 14px; padding-right: 14px; }
  .hero-features { grid-template-columns: 1fr; }
  .hero-feature + .hero-feature { border-top: 1px solid var(--border); }
  .profile-evidence { grid-template-columns: 1fr; }
  .evidence-column { padding: 17px 0; }
  .evidence-column + .evidence-column { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .path-business,
  .contract-grid,
  .task-detail-grid { grid-template-columns: 1fr; }
  .path-actions { align-items: stretch; flex-direction: column; }
  .path-actions button { width: 100%; }
  .contract-actions { flex-direction: column; }
  .contract-actions button { width: 100%; }
}
