:root {
  color-scheme: light;
  --ink: #18312f;
  --muted: #667b78;
  --line: #d8e2df;
  --paper: #f6f8f7;
  --white: #ffffff;
  --green: #124c48;
  --green-2: #1f6d65;
  --mint: #dcece7;
  --yellow: #f0c75e;
  --coral: #db725f;
  --shadow: 0 16px 44px rgba(25, 55, 51, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  min-height: 76px; padding: 14px clamp(20px, 5vw, 72px); background: var(--white);
  border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { width: 104px; max-height: 46px; object-fit: contain; object-position: left center; }
.brand div { padding-left: 13px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.brand strong { font-size: 15px; }
.brand span, .stage-label { color: var(--muted); font-size: 13px; }
.stage-label { padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; }
.stage-label { text-decoration: none; }
.empty-state { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--white); border: 1px solid var(--line); }

.progress-shell { padding: 14px clamp(20px, 5vw, 72px) 0; max-width: 1280px; margin: 0 auto; }
.progress-track { height: 4px; background: #e7edeb; border-radius: 2px; overflow: hidden; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--green-2); transition: width .25s ease; }
.progress-copy { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font-size: 12px; }

#app { min-height: calc(100vh - 120px); }
.page { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 44px 0 64px; animation: rise .25s ease; }
@keyframes rise { from { opacity: .3; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.welcome-page { min-height: 650px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr); gap: 70px; align-items: center; }
.eyebrow { color: var(--green-2); font-weight: 700; font-size: 13px; margin: 0 0 14px; }
h1 { margin: 0; font-size: clamp(38px, 5vw, 64px); line-height: 1.16; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.25; letter-spacing: 0; }
.lead { max-width: 720px; color: var(--muted); font-size: 18px; line-height: 1.8; margin: 22px 0 30px; }
.process-panel { border-left: 4px solid var(--green); background: var(--white); box-shadow: var(--shadow); }
.process-panel div { padding: 24px 26px; display: grid; grid-template-columns: 38px 1fr; gap: 2px 12px; border-bottom: 1px solid var(--line); }
.process-panel div:last-child { border-bottom: 0; }
.process-panel b { grid-row: span 2; color: var(--green-2); font-size: 14px; }
.process-panel span { font-weight: 700; }
.process-panel small { color: var(--muted); line-height: 1.5; }

.primary-button, .secondary-button, .text-button {
  border: 0; border-radius: 6px; min-height: 46px; padding: 0 22px; font-weight: 700;
}
.primary-button { background: var(--green); color: white; }
.primary-button:hover { background: #0c3d3a; }
.secondary-button { background: var(--white); color: var(--green); border: 1px solid var(--green); }
.text-button { background: transparent; color: var(--muted); padding-inline: 8px; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }

.section-head { display: grid; gap: 12px; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.7; max-width: 780px; }
.choice-list { display: grid; gap: 12px; }
.choice-item {
  display: grid; gap: 14px; padding: 20px 22px; background: var(--white);
  border: 1px solid var(--line); border-radius: 7px; transition: border-color .15s, box-shadow .15s;
}
.choice-item:hover { border-color: #96b6b0; }
.choice-item.is-selected { border-color: var(--green-2); box-shadow: 0 0 0 2px rgba(31,109,101,.1); }
.choice-check { display: grid; grid-template-columns: 28px 1fr; gap: 14px; cursor: pointer; }
.choice-check input { width: 19px; height: 19px; accent-color: var(--green-2); margin-top: 2px; }
.choice-item strong { display: block; margin-bottom: 5px; }
.choice-item span { color: var(--muted); line-height: 1.55; font-size: 14px; }
.object-name { margin-left: 42px; width: calc(100% - 42px); }
.field, .field-group { display: grid; gap: 8px; }
.field label, .field-group > label { font-weight: 700; font-size: 14px; }
.field input, .field textarea, .object-name {
  width: 100%; border: 1px solid #bdcbc8; border-radius: 6px; background: #fbfcfc;
  color: var(--ink); padding: 12px 13px; outline: none;
}
.field input:focus, .field textarea:focus, .object-name:focus { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(31,109,101,.1); }
.field textarea { min-height: 92px; resize: vertical; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fields-grid .wide { grid-column: 1 / -1; }
.identity-page { width: min(840px, calc(100% - 40px)); }
.identity-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--white); border: 1px solid var(--line); padding: 28px; }
.identity-company { grid-column: 1 / -1; }
.actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 30px; }
.actions-right { margin-left: auto; display: flex; gap: 12px; }
.inline-error { color: #a34435; min-height: 22px; margin: 14px 0 0; font-size: 14px; }

.candidate-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.candidate {
  text-align: left; padding: 20px; min-height: 150px; background: var(--white); border: 1px solid var(--line);
  border-radius: 7px; color: var(--ink); display: grid; align-content: space-between; gap: 18px;
}
.candidate:hover, .candidate.is-selected { border-color: var(--green-2); }
.candidate.is-selected { box-shadow: 0 0 0 2px rgba(31,109,101,.1); }
.candidate small { color: var(--muted); }

.object-summary { display: grid; grid-template-columns: 1.2fr .8fr; border: 1px solid var(--line); background: var(--white); }
.summary-main { padding: 30px; border-right: 1px solid var(--line); }
.summary-main h3 { margin: 8px 0 12px; font-size: 28px; }
.summary-main p { color: var(--muted); line-height: 1.7; }
.summary-meta { padding: 30px; display: grid; gap: 20px; }
.meta-row { display: grid; gap: 5px; }
.meta-row span { color: var(--muted); font-size: 13px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: var(--mint); color: var(--green); padding: 6px 9px; border-radius: 5px; font-size: 13px; font-weight: 700; }

.question-page { width: min(920px, calc(100% - 40px)); }
.question-context { color: var(--green-2); font-weight: 700; font-size: 14px; margin-bottom: 22px; }
.question-number { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.question-text { font-size: clamp(25px, 3.5vw, 38px); line-height: 1.45; font-weight: 700; margin: 0 0 32px; }
.answer-guide { color: var(--muted); font-size: 13px; margin: -16px 0 14px; }
.scale-anchor {
  display: flex; justify-content: space-between; gap: 24px; padding: 11px 14px; margin-bottom: 12px;
  background: #eef4f2; color: var(--muted); font-size: 12px; line-height: 1.5;
}
.scale-anchor span:last-child { text-align: right; }
.scale-anchor b { color: var(--green); margin-right: 7px; }
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.scale button {
  border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 7px;
  min-height: 94px; padding: 12px 8px; display: grid; place-items: center; gap: 7px;
}
.scale button:hover, .scale button.is-selected { border-color: var(--green-2); background: #edf6f3; }
.scale b { font-size: 22px; color: var(--green); }
.scale span { font-size: 12px; color: var(--muted); }
.behavior-scale { grid-template-columns: 1fr; gap: 8px; }
.behavior-scale button {
  min-height: 58px; grid-template-columns: 42px 1fr; place-items: center start;
  text-align: left; padding: 11px 16px; gap: 12px;
}
.behavior-scale b {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #edf3f1; font-size: 15px;
}
.behavior-scale span { font-size: 14px; line-height: 1.55; }
.behavior-scale button.is-selected b { background: var(--green); color: white; }
.behavior-scale .unknown-option { margin-top: 4px; background: transparent; border-style: dashed; }
.short-scale button { min-height: 82px; }
.unknown-short {
  display: block; margin: 12px auto 0; border: 0; background: transparent; color: var(--muted);
  padding: 8px 12px; font-size: 13px; text-decoration: underline; text-underline-offset: 3px;
}
.unknown-short:hover, .unknown-short.is-selected { color: var(--green); font-weight: 700; }
.module-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.module-strip div { background: var(--white); padding: 22px; display: grid; gap: 6px; }
.module-strip b { color: var(--green); font-size: 25px; }
.module-strip span { color: var(--muted); font-size: 13px; }
.final-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.result-summary-label { text-align: right; color: #b8ddd3; line-height: 1.5; }
.result-summary-label strong { color: white; font-size: 17px; }
.headline-conclusions { display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 1px; background: rgba(255,255,255,.25); }
.headline-conclusions > div { min-width: 180px; padding: 17px 20px; background: rgba(255,255,255,.08); display: grid; gap: 4px; }
.headline-conclusions span { color: #b8ddd3; font-size: 12px; }
.headline-conclusions strong { color: white; font-size: 22px; line-height: 1.25; }
.headline-conclusions small { color: #b8ddd3; font-size: 11px; }
.headline-conclusions .necessity-conclusion { background: rgba(240,199,94,.14); }
.metric-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 24px; }
.metric-grid.four-metrics { grid-template-columns: repeat(4, 1fr); }
.metric { background: var(--white); padding: 20px; display: grid; gap: 7px; min-width: 0; }
.metric span { color: var(--muted); font-size: 12px; }
.metric strong { color: var(--green); font-size: 30px; }
.metric b { font-size: 13px; line-height: 1.4; }
.risk-metric strong { color: #a34435; }
.reason-list { display: grid; gap: 8px; margin: 16px 0 24px; }
.reason-list div { padding: 10px 12px; background: #eef4f2; border-left: 3px solid var(--green-2); color: var(--ink); font-size: 14px; }

.result-band { background: var(--green); color: white; padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.result-band .eyebrow { color: #b8ddd3; }
.result-band h2 { max-width: 720px; }
.result-object-name { margin: 10px 0 0; color: #d8ebe6; font-size: 16px; }
.submission-complete { margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--green-2); background: var(--mint); }
.submission-complete strong { display: block; margin-bottom: 7px; color: var(--green); font-size: 18px; }
.submission-complete p { margin: 0; color: #47645f; line-height: 1.7; }
.review-page h3 { margin: 28px 0 12px; }
.review-list { border: 1px solid var(--line); background: var(--white); }
.review-row { display: grid; grid-template-columns: 34px minmax(0,1fr) 120px 58px; gap: 14px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-row p { margin: 0; line-height: 1.6; }
.review-row strong { color: var(--green); text-align: right; }
.review-number { color: var(--muted); }
.review-edit { border: 0; background: transparent; color: var(--green-2); font-weight: 700; }
.review-row.missing { background: #fff5f2; }
.submit-confirm { margin-top: 24px; padding: 22px; border: 1px solid #dfb96a; background: #fffaf0; }
.submit-confirm p { color: var(--muted); }
.submit-confirm div { display: flex; justify-content: flex-end; gap: 10px; }
.score-block { text-align: right; }
.score-block strong { font-size: 58px; line-height: 1; }
.score-block span { display: block; color: #b8ddd3; margin-top: 6px; }
.result-body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 28px; }
.result-copy, .score-details { background: var(--white); border: 1px solid var(--line); padding: 28px; }
.result-copy h3, .score-details h3 { margin: 0 0 14px; }
.result-copy p { line-height: 1.75; color: var(--muted); }
.dimension-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dimension-row:last-child { border-bottom: 0; }
.dimension-row span { color: var(--muted); }
.note { margin-top: 24px; padding: 15px 18px; border-left: 3px solid var(--yellow); background: #fffaf0; color: #655a3d; line-height: 1.65; font-size: 14px; }
.invite-panel { margin-top: 18px; padding: 20px; background: var(--white); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; align-items: center; }
.invite-panel p { color: var(--muted); margin: 5px 0 0; font-size: 14px; line-height: 1.5; }
.invite-panel input { grid-column: 1; min-width: 0; border: 1px solid #bdcbc8; border-radius: 6px; padding: 12px; color: var(--muted); background: #f8faf9; }
.invite-panel span { color: var(--green-2); font-size: 13px; font-weight: 700; }

@media (max-width: 760px) {
  .site-header { padding-inline: 18px; }
  .brand img { width: 82px; }
  .brand div { display: none; }
  .progress-shell { padding-inline: 20px; }
  .page, .question-page { width: min(100% - 28px, 680px); padding-top: 32px; }
  .welcome-page { min-height: auto; grid-template-columns: 1fr; gap: 40px; }
  h1 { font-size: 40px; }
  .lead { font-size: 16px; }
  .fields-grid, .identity-fields, .candidate-list, .object-summary, .result-body { grid-template-columns: 1fr; }
  .module-strip, .metric-grid { grid-template-columns: 1fr 1fr; }
  .final-band { grid-template-columns: 1fr; }
  .headline-conclusions { grid-template-columns: 1fr 1fr; width: 100%; }
  .headline-conclusions > div { min-width: 0; }
  .metric-grid.four-metrics { grid-template-columns: 1fr 1fr; }
  .summary-main { border-right: 0; border-bottom: 1px solid var(--line); }
  .scale { grid-template-columns: 1fr; }
  .scale button { min-height: 56px; grid-template-columns: 34px 1fr; place-items: center start; text-align: left; padding-inline: 18px; }
  .scale b { font-size: 17px; }
  .scale span { font-size: 14px; }
  .behavior-scale button { min-height: 58px; grid-template-columns: 38px 1fr; padding-inline: 12px; }
  .scale-anchor { display: grid; gap: 5px; }
  .scale-anchor span:last-child { text-align: left; }
  .short-scale button { min-height: 54px; }
  .result-band { grid-template-columns: 1fr; }
  .score-block { text-align: left; }
  .actions { align-items: stretch; }
  .actions-right { width: 100%; margin-left: 0; }
  .invite-panel { grid-template-columns: 1fr; }
  .invite-panel input { grid-column: 1; }
  .actions-right button { flex: 1; }
  .review-row { grid-template-columns: 28px 1fr auto; }
  .review-row strong { grid-column: 2; text-align: left; }
  .review-edit { grid-column: 3; grid-row: 1 / span 2; }
}

@media print {
  .site-header, .progress-shell, .actions { display: none !important; }
  body { background: white; }
  .page { width: 100%; padding: 0; }
}
