/* ======================================================
   企业AI化诊断系统 v2 — 智脑引擎科技
   科技感深色主题 · 玻璃拟态 · 宽松排版
   ====================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #06090f;
  --bg-g:       rgba(255,255,255,.03);
  --bg-g-h:     rgba(255,255,255,.055);
  --border:     rgba(43,111,255,.18);
  --border-h:   rgba(43,111,255,.42);
  --border-sel: rgba(0,212,255,.7);
  --blue:       #2b6fff;
  --cyan:       #00d4ff;
  --teal:       #00e5bb;
  --grad:       linear-gradient(135deg, #2b6fff, #00d4ff);
  --glow-sel:   0 0 0 1px rgba(0,212,255,.45), 0 4px 24px rgba(0,212,255,.2);
  --text-0:     #f0f6ff;
  --text-1:     rgba(240,246,255,.82);
  --text-2:     rgba(240,246,255,.46);
  --text-3:     rgba(240,246,255,.24);
  --radius:     16px;
  --radius-sm:  10px;
  --radius-xs:  6px;
  --fs-xs:      .76rem;
  --fs-sm:      .875rem;
  --fs-base:    1rem;
  --fs-lg:      1.15rem;
  --fs-xl:      1.42rem;
  --fs-2xl:     1.9rem;
  --fs-3xl:     2.4rem;
}

/* ---- Base ---- */
body.diag-body {
  background: var(--bg);
  color: var(--text-1);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.75;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Dot-grid background */
body.diag-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(43,111,255,.14) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow */
body.diag-body::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 18% 12%, rgba(43,111,255,.11) 0%, transparent 70%),
    radial-gradient(ellipse 55% 45% at 82% 82%, rgba(0,212,255,.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ======================================================
   Header
   ====================================================== */
.diag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6,9,15,.9);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.diag-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.diag-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--text-0);
  font-weight: 700;
  font-size: var(--fs-sm);
  flex-shrink: 0;
  letter-spacing: .01em;
}
.diag-logo svg { width: 30px; height: 30px; }
.diag-header__title {
  flex: 1;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-2);
  letter-spacing: .07em;
  text-transform: uppercase;
}
.diag-header__phone {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid rgba(0,212,255,.32);
  padding: .36em .95em;
  border-radius: 20px;
  letter-spacing: .02em;
  transition: background .2s, border-color .2s;
}
.diag-header__phone:hover { background: rgba(0,212,255,.08); border-color: var(--cyan); }

/* ======================================================
   Progress
   ====================================================== */
.diag-progress-wrap {
  position: sticky;
  top: 55px;
  z-index: 99;
  height: 2px;
  background: rgba(255,255,255,.04);
}
#progress-bar {
  height: 100%;
  background: var(--grad);
  width: 0%;
  transition: width .5s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 0 10px rgba(0,212,255,.55), 0 0 22px rgba(43,111,255,.35);
}
.diag-progress-label {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding: 10px 0 0;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ======================================================
   Main
   ====================================================== */
.diag-main {
  min-height: calc(100vh - 110px);
  padding: 56px 0 80px;
  position: relative;
  z-index: 1;
}

/* ======================================================
   Step
   ====================================================== */
.diag-step { animation: fadeUp .4s cubic-bezier(.22,.61,.36,1); }

.diag-step__head {
  text-align: center;
  margin-bottom: 52px;
  padding: 0 8px;
}
.diag-step__no {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: var(--fs-xs);
  color: var(--cyan);
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding: .3em 1.1em .3em .8em;
  border: 1px solid rgba(0,212,255,.32);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0,212,255,.08), rgba(43,111,255,.06));
  box-shadow: 0 0 16px rgba(0,212,255,.1), inset 0 1px 0 rgba(0,212,255,.12);
}
.diag-step__no::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0,212,255,.9);
}
.diag-step__title {
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 14px;
  line-height: 1.22;
  letter-spacing: -.015em;
}
.diag-step__subtitle {
  font-size: var(--fs-sm);
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.75;
}

.diag-step__body { display: flex; flex-direction: column; gap: 44px; }

.diag-step__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.06);
}

/* ======================================================
   Question label
   ====================================================== */
.diag-q__label {
  font-size: var(--fs-base);
  color: var(--text-0);
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  letter-spacing: -.01em;
}
.diag-req { color: #ff6b6b; margin-left: 3px; }
.diag-limit {
  font-size: var(--fs-xs);
  color: var(--text-2);
  font-weight: 400;
  background: rgba(255,255,255,.06);
  padding: .18em .6em;
  border-radius: var(--radius-xs);
  transition: color .2s, transform .2s;
}

/* ======================================================
   Single Cards
   ====================================================== */
.diag-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.diag-card {
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px 18px;
  cursor: pointer;
  text-align: left;
  transition: border-color .22s, background .22s, box-shadow .22s, transform .22s;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.diag-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(43,111,255,.14), rgba(0,212,255,.08));
  opacity: 0;
  transition: opacity .22s;
  pointer-events: none;
}
/* top accent line */
.diag-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  opacity: 0;
  transition: opacity .3s, left .3s, right .3s;
}
.diag-card:hover {
  border-color: var(--border-h);
  background: var(--bg-g-h);
  transform: translateY(-3px);
}
.diag-card.is-active {
  border-color: var(--border-sel);
  box-shadow:
    0 0 0 1px rgba(0,212,255,.4),
    0 6px 28px rgba(0,212,255,.22),
    0 2px 8px rgba(43,111,255,.2);
  transform: translateY(-3px);
}
.diag-card.is-active::after { opacity: 1; }
.diag-card.is-active::before { opacity: 1; left: 10%; right: 10%; }

/* SVG icon box */
.diag-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43,111,255,.18), rgba(0,212,255,.1));
  border: 1px solid rgba(0,212,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.diag-card__icon svg { width: 20px; height: 20px; }
.diag-card.is-active .diag-card__icon {
  background: linear-gradient(135deg, rgba(43,111,255,.28), rgba(0,212,255,.18));
  border-color: rgba(0,212,255,.45);
  box-shadow: 0 0 16px rgba(0,212,255,.4);
}

.diag-card__label {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-0);
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.diag-card__desc {
  font-size: var(--fs-xs);
  color: var(--text-2);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ======================================================
   Single Row
   ====================================================== */
.diag-row-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.diag-row-opt {
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: .55em 1.3em;
  cursor: pointer;
  color: var(--text-1);
  font-size: var(--fs-sm);
  letter-spacing: .01em;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.diag-row-opt:hover { border-color: var(--border-h); color: var(--text-0); }
.diag-row-opt.is-active {
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(43,111,255,.15), rgba(0,212,255,.1));
  color: var(--text-0);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,212,255,.3), 0 0 16px rgba(0,212,255,.2);
}

/* ======================================================
   Multi Chips
   ====================================================== */
.diag-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.diag-chip {
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  padding: .52em 1.1em;
  cursor: pointer;
  color: var(--text-1);
  font-size: var(--fs-sm);
  line-height: 1.4;
  transition: border-color .18s, background .18s, color .18s, box-shadow .18s;
}
.diag-chip:hover { border-color: var(--border-h); color: var(--text-0); }
.diag-chip.is-active {
  border-color: rgba(0,212,255,.65);
  background: linear-gradient(135deg, rgba(43,111,255,.14), rgba(0,212,255,.1));
  color: var(--text-0);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(0,212,255,.25), 0 0 12px rgba(0,212,255,.18);
}

/* ======================================================
   Inputs
   ====================================================== */
.diag-input {
  width: 100%;
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .82em 1.1em;
  color: var(--text-0);
  font-size: var(--fs-base);
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.diag-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,212,255,.1);
}
.diag-input::placeholder { color: var(--text-3); }
.diag-textarea { resize: vertical; min-height: 110px; line-height: 1.7; }

/* Contact step grid layout */
#step-6 .diag-step__body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 24px;
}
#step-6 .diag-step__body .diag-q[data-qid="remark"] {
  grid-column: 1 / -1;
}

/* ======================================================
   Buttons
   ====================================================== */
.btn-diag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: .72em 1.9em;
  border-radius: 28px;
  font-size: var(--fs-base);
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .2s, transform .15s, box-shadow .2s;
}
.btn-diag:hover { opacity: .9; transform: translateY(-1px); }
.btn-diag--primary {
  position: relative;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 4px 22px rgba(43,111,255,.45), 0 2px 6px rgba(0,212,255,.2);
}
.btn-diag--primary::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: btn-shine 2.8s ease-in-out infinite 0.8s;
  pointer-events: none;
}
@keyframes btn-shine {
  0%   { transform: translateX(-120%) skewX(-20deg); }
  100% { transform: translateX(220%)  skewX(-20deg); }
}
.btn-diag--primary:hover { box-shadow: 0 8px 32px rgba(0,212,255,.5), 0 4px 12px rgba(43,111,255,.3); }
.btn-diag--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid rgba(255,255,255,.1);
}
.btn-diag--ghost:hover { border-color: rgba(255,255,255,.24); color: var(--text-1); }

/* ======================================================
   Error
   ====================================================== */
.diag-error {
  background: rgba(255,80,80,.1);
  border: 1px solid rgba(255,80,80,.32);
  border-radius: var(--radius-sm);
  padding: .7em 1.1em;
  margin-bottom: 20px;
  font-size: var(--fs-sm);
  color: #ff9090;
  display: none;
  animation: fadeUp .3s ease;
}

/* ======================================================
   Footer
   ====================================================== */
.diag-footer {
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-3);
  padding: 24px 20px;
  border-top: 1px solid rgba(255,255,255,.05);
  letter-spacing: .04em;
  position: relative;
  z-index: 1;
}

/* ======================================================
   RESULTS PAGE
   ====================================================== */
.diag-result { animation: fadeUp .4s cubic-bezier(.22,.61,.36,1); }

/* ---- Hero ---- */
.result-hero {
  text-align: center;
  padding: 32px 16px 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 56px;
}
.result-hero__tag {
  font-size: var(--fs-xs);
  color: var(--cyan);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.result-hero__company {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-0);
  margin-bottom: 8px;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.result-hero__sub {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Overall ring */
.result-overall {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}
.result-overall__ring {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 3px solid var(--phase-color, var(--blue));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  box-shadow: 0 0 30px rgba(0,212,255,.14), inset 0 0 20px rgba(0,0,0,.3);
  position: relative;
}
.result-overall__ring::before {
  content: '';
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 1px solid var(--phase-color, var(--blue));
  opacity: .2;
}
.result-overall__score {
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--phase-color, var(--cyan));
  line-height: 1;
  letter-spacing: -.03em;
}
.result-overall__total {
  font-size: var(--fs-xs);
  color: var(--text-2);
  margin-top: 3px;
  letter-spacing: .04em;
}
.result-overall__meta { text-align: left; max-width: 340px; }

/* Phase badge */
.result-phase-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  border: 1px solid var(--phase-color, var(--blue));
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  margin-bottom: 14px;
  background: rgba(0,0,0,.2);
  backdrop-filter: blur(8px);
}
.result-phase-label { font-size: var(--fs-xs); color: var(--text-2); letter-spacing: .08em; }
.result-phase-name  { font-size: var(--fs-xl); font-weight: 700; color: var(--phase-color, var(--blue)); }
.result-phase-desc  { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.7; }

/* Sections */
.result-section { margin-bottom: 52px; }

/* 诊断结论摘要：开篇高亮卡片，先给结论 */
.exec-summary {
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(43,111,255,.08), rgba(0,212,255,.05));
  border: 1px solid var(--border);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
}
.exec-summary .result-section__title { border-bottom: none; padding-bottom: 6px; margin-bottom: 4px; }
.exec-summary__text {
  font-size: var(--fs-base);
  line-height: 1.95;
  color: var(--text-1);
  margin: 0;
}
.exec-summary__text strong { color: var(--text-0); font-weight: 700; }

/* AI 专家深度解读：千问实时生成，区别于规则模板 */
.ai-analysis {
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(0,212,255,.07), rgba(43,111,255,.04));
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
}
.ai-analysis .result-section__title { border-bottom: none; padding-bottom: 6px; margin-bottom: 8px; }
.ai-analysis__text p {
  font-size: var(--fs-base);
  line-height: 1.95;
  color: var(--text-1);
  margin: 0 0 12px;
}
.ai-analysis__text p:last-child { margin-bottom: 0; }
.ai-analysis__sign { margin-top: 16px; font-size: var(--fs-xs); color: var(--text-3); }
.ai-loading { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--fs-sm); }
.ai-loading__txt { margin-left: 4px; }
.ai-loading__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); display: inline-block; animation: aiblink 1.2s infinite both; }
.ai-loading__dot:nth-child(2) { animation-delay: .2s; }
.ai-loading__dot:nth-child(3) { animation-delay: .4s; }
@keyframes aiblink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* 结论摘要收尾的决断句 */
.exec-summary__punch { margin: 14px 0 0; font-weight: 700; color: var(--text-0); line-height: 1.7; }

/* 关键问题：引导语、痛点强调、基础肯定 */
.problem-lead { font-size: var(--fs-sm); color: var(--text-1); font-weight: 600; margin: 0 0 10px; }
.problem-lead:not(:first-child) { margin-top: 22px; }
.finding-item strong { color: var(--text-0); font-weight: 700; }
.problem-base { margin: 16px 0 0; font-size: var(--fs-sm); color: var(--teal); line-height: 1.7; }

/* 维持现状的代价：左侧警示条 + 末段正向对照高亮 */
.cost-inaction { border-left: 3px solid #ffc83c; padding: 4px 0 4px 18px; }
.cost-inaction p { font-size: var(--fs-base); line-height: 1.95; color: var(--text-1); margin: 0 0 14px; }
.cost-inaction p:last-child { margin-bottom: 0; }
.cost-inaction__up { color: var(--teal); font-weight: 600; }

/* CTA 风险逆转说明 */
.result-cta__assure { margin: 14px 0 0; font-size: var(--fs-sm); color: var(--teal); line-height: 1.7; }
.result-section__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--text-0);
  margin-bottom: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  letter-spacing: -.01em;
}
.result-section__desc {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: 20px;
  margin-top: 10px;
  line-height: 1.75;
}

/* Phase steps */
.phase-steps {
  display: flex;
  gap: 0;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.phase-step {
  flex: 1;
  min-width: 108px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-3);
  position: relative;
  padding-top: 26px;
  padding-bottom: 4px;
  line-height: 1.4;
}
.phase-step::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,.06);
}
.phase-step:first-child::before { left: 50%; }
.phase-step:last-child::before  { right: 50%; }
.phase-step__dot {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid rgba(255,255,255,.1);
  z-index: 1;
}
.phase-step--done::before { background: rgba(43,111,255,.48); }
.phase-step--done .phase-step__dot { background: var(--blue); border-color: var(--blue); }
.phase-step--done { color: var(--text-2); }
.phase-step--current .phase-step__dot {
  background: var(--grad);
  border-color: var(--cyan);
  box-shadow: 0 0 14px rgba(0,212,255,.6);
  width: 18px;
  height: 18px;
  top: 2px;
}
.phase-step--current { color: var(--text-0); font-weight: 600; }

/* Score bars */
.score-bars { display: flex; flex-direction: column; gap: 24px; margin-top: 20px; }
.score-bar-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.score-bar-label { font-size: var(--fs-sm); color: var(--text-0); font-weight: 600; }
.score-bar-hint  { font-size: var(--fs-xs); color: var(--text-2); flex: 1; }
.score-bar-pct   { font-size: var(--fs-sm); font-weight: 700; margin-left: auto; color: var(--text-0); }
.score-bar-track {
  height: 8px;
  background: rgba(255,255,255,.06);
  border-radius: 4px;
  overflow: hidden;
}
.score-bar-fill {
  height: 100%;
  background: var(--c, var(--grad));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(.25,.8,.25,1);
}

/* Findings */
.findings { margin-top: 12px; }
.finding-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.finding-item {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  line-height: 1.72;
  border-left: 3px solid;
}
.finding-item--good { background: rgba(0,229,187,.07); border-color: #00e5bb; color: var(--text-1); }
.finding-item--warn { background: rgba(255,200,60,.07);  border-color: #ffc83c; color: var(--text-1); }
.finding-item--info { background: rgba(43,111,255,.07);  border-color: var(--blue); color: var(--text-1); }

/* ======================================================
   核心结论卡 / 雷达图 / 问题分级 / 评估说明 / 落款（v2.1 升级）
   ====================================================== */

/* ---- 核心结论卡 ---- */
.verdict {
  padding: 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
}
.verdict--high { border-left-color: #ff6b6b; background: linear-gradient(135deg, rgba(255,107,107,.10), rgba(255,107,107,.03)); }
.verdict--mid  { border-left-color: #ffc83c; background: linear-gradient(135deg, rgba(255,200,60,.10), rgba(255,200,60,.03)); }
.verdict--good { border-left-color: var(--teal); background: linear-gradient(135deg, rgba(0,229,187,.10), rgba(0,229,187,.03)); }
.verdict__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.verdict__icon {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.15rem; color: #fff;
}
.verdict--high .verdict__icon { background: #ff6b6b; }
.verdict--mid  .verdict__icon { background: #ffc83c; color: #1a1500; }
.verdict--good .verdict__icon { background: var(--teal); color: #00271f; }
.verdict__heads { display: flex; flex-direction: column; gap: 2px; }
.verdict__eyebrow { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.verdict__risk { font-size: var(--fs-sm); color: var(--text-1); }
.verdict--high .verdict__risk strong { color: #ff8585; }
.verdict--mid  .verdict__risk strong { color: #ffce5c; }
.verdict--good .verdict__risk strong { color: var(--teal); }
.verdict__core { font-size: var(--fs-lg); line-height: 1.75; color: var(--text-0); margin: 0 0 12px; font-weight: 600; }
.verdict__core strong { color: #fff; }
.verdict--high .verdict__core strong { color: #ff8585; }
.verdict__action { font-size: var(--fs-sm); line-height: 1.7; color: var(--text-1); margin: 0; }
.verdict__action-tag {
  display: inline-block; font-size: var(--fs-xs); font-weight: 700;
  color: var(--cyan); background: rgba(0,212,255,.12);
  border-radius: var(--radius-xs); padding: 2px 8px; margin-right: 8px;
}

/* ---- 雷达图 ---- */
.radar-wrap { display: flex; flex-direction: column; align-items: center; margin: 6px 0 26px; }
.radar-svg { width: 100%; max-width: 380px; height: auto; }
.radar-grid { fill: none; stroke: rgba(255,255,255,.07); stroke-width: 1; }
.radar-axis { stroke: rgba(255,255,255,.10); stroke-width: 1; }
.radar-label { fill: var(--text-1); font-size: 12px; font-weight: 600; }
.radar-bench { fill: rgba(255,200,60,.08); stroke: #ffc83c; stroke-width: 1.5; stroke-dasharray: 4 3; }
.radar-you { fill: rgba(0,212,255,.16); stroke: var(--cyan); stroke-width: 2; }
.radar-legend { display: flex; gap: 22px; margin-top: 8px; font-size: var(--fs-xs); color: var(--text-2); }
.radar-legend__item { display: inline-flex; align-items: center; gap: 7px; }
.radar-legend__mark { width: 16px; border-top: 3px solid; display: inline-block; }
.radar-legend__you { border-top-color: var(--cyan); }
.radar-legend__bench { border-top-color: #ffc83c; border-top-style: dashed; }

/* ---- 评分条：同类基准标记 ---- */
.score-bar-track { position: relative; height: 10px; overflow: visible; }
.score-bar-bench {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: #ffc83c; box-shadow: 0 0 4px rgba(255,200,60,.6);
  border-radius: 2px; transform: translateX(-1px);
}
.score-bar-gap { display: block; margin-top: 6px; font-size: var(--fs-xs); color: var(--text-2); }
.score-bar-gap.is-behind { color: #ff9a9a; }
.score-bar-gap.is-ahead { color: var(--teal); }

/* ---- 问题分级 ---- */
.problem-lead__hi { color: #ff8585; }
.finding-item { display: flex; align-items: flex-start; gap: 12px; }
.finding-sev {
  flex: none; font-size: var(--fs-xs); font-weight: 700;
  padding: 2px 9px; border-radius: var(--radius-xs); line-height: 1.5; margin-top: 1px;
}
.finding-body { flex: 1; }
.finding-item--high { background: rgba(255,107,107,.07); border-color: #ff6b6b; color: var(--text-1); }
.finding-item--mid  { background: rgba(255,200,60,.07);  border-color: #ffc83c; color: var(--text-1); }
.finding-item--low  { background: rgba(43,111,255,.07);  border-color: var(--blue); color: var(--text-1); }
.finding-sev--high { background: #ff6b6b; color: #fff; }
.finding-sev--mid  { background: rgba(255,200,60,.16); color: #ffce5c; }
.finding-sev--low  { background: rgba(43,111,255,.16); color: #8fb4ff; }

/* ---- 评估方法说明 ---- */
.methodology { padding: 20px 24px; background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.06); border-radius: var(--radius); }
.methodology__text { font-size: var(--fs-sm); line-height: 1.85; color: var(--text-1); margin: 0 0 12px; }
.methodology__note { font-size: var(--fs-xs); line-height: 1.7; color: var(--text-2); margin: 0; }

/* ---- 报告落款 ---- */
.report-sign {
  display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px;
  margin-bottom: 14px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
}
.report-sign__org { display: flex; flex-direction: column; gap: 3px; }
.report-sign__org strong { font-size: var(--fs-base); color: var(--text-0); font-weight: 700; }
.report-sign__org span { font-size: var(--fs-xs); color: var(--text-2); }
.report-sign__meta { display: flex; flex-direction: column; gap: 3px; text-align: right; font-size: var(--fs-xs); color: var(--text-2); }
.report-disclaimer { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.7; margin: 0 0 8px; }

/* Recommendations */
.rec-list { display: flex; flex-direction: column; gap: 14px; margin-top: 20px; }
.rec-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s;
}
.rec-item:hover { border-color: var(--border-h); }
.rec-item--highlight {
  border-color: rgba(0,212,255,.32);
  background: rgba(0,212,255,.04);
}
.rec-item--highlight::before {
  content: '首要推荐';
  position: absolute;
  top: 0; right: 0;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  background: var(--grad);
  color: #fff;
  padding: 3px 10px;
  border-radius: 0 var(--radius) 0 var(--radius-sm);
}
.rec-layer {
  font-size: .72rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 24px;
  margin-top: 3px;
  letter-spacing: .04em;
}
.rec-body { flex: 1; min-width: 0; }
.rec-title { font-size: var(--fs-base); font-weight: 600; color: var(--text-0); margin-bottom: 5px; }
.rec-desc  { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.7; }
.rec-no {
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(255,255,255,.04);
  line-height: 1;
  flex-shrink: 0;
  align-self: center;
  letter-spacing: -.04em;
}

/* Roadmap */
.roadmap { display: grid; gap: 14px; margin-top: 20px; }
.road-step {
  background: var(--bg-g);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  border-left: 3px solid var(--blue);
}
.road-step:nth-child(2) { border-left-color: var(--cyan); }
.road-step:nth-child(3) { border-left-color: var(--teal); }
.road-step__head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.road-step__phase { font-size: var(--fs-xs); font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.road-step__time  { font-size: var(--fs-xs); color: var(--text-2); }
.road-step__title { font-size: var(--fs-base); font-weight: 600; color: var(--text-0); margin-bottom: 6px; }
.road-step__desc  { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.7; }

/* CTA */
.result-cta {
  text-align: center;
  background: rgba(43,111,255,.05);
  border: 1px solid rgba(43,111,255,.22);
  border-radius: var(--radius);
  padding: 40px 28px;
  margin-bottom: 36px;
  backdrop-filter: blur(8px);
}
.result-cta__inner { display: flex; flex-direction: column; align-items: center; }
.result-cta__copy  { margin-bottom: 0; }
.result-cta h3 { font-size: var(--fs-xl); color: var(--text-0); margin-bottom: 12px; font-weight: 700; letter-spacing: -.01em; }
.result-cta p  { font-size: var(--fs-sm); color: var(--text-2); line-height: 1.8; }
.result-cta strong { color: var(--cyan); font-weight: 600; }
.result-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 24px; }
.result-cta__privacy { font-size: var(--fs-xs) !important; color: var(--text-3) !important; margin-top: 18px !important; letter-spacing: .02em; }

.result-back {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

/* ======================================================
   Animation
   ====================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ======================================================
   Print
   ====================================================== */
@media print {
  body.diag-body::before, body.diag-body::after { display: none; }
  .diag-header, .diag-progress-wrap, .diag-progress-label,
  .result-cta__btns, .result-back, .diag-footer { display: none !important; }
  body { background: #fff; color: #111; }
  .result-hero, .result-section, .result-cta, .rec-item, .road-step,
  .verdict, .methodology, .report-sign {
    background: #f8f8f8 !important; border-color: #ddd !important; break-inside: avoid;
  }
  /* 深色主题里的白字在打印浅底上需转深色 */
  .verdict__core, .verdict__core strong, .finding-item strong { color: #111 !important; }
  .radar-label { fill: #333; }
  .radar-grid { stroke: #ccc; }
  .radar-you { fill: rgba(0,140,200,.18); stroke: #0a7; }
}

/* ======================================================
   Responsive
   ====================================================== */

/* ---- 平板 768px ---- */
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .diag-header__inner { padding: 12px 20px; }
  .diag-card { padding: 18px 16px 15px; }
  /* 结果页评分条 hint 换行 */
  .score-bar-head { flex-wrap: wrap; gap: 4px 8px; }
  .score-bar-hint { flex: 1 1 100%; }
  /* 推荐卡片 */
  .rec-item { padding: 18px 16px; }
  /* 路线图步骤 */
  .road-step { padding: 18px 16px; }
}

/* ---- 手机 600px ---- */
@media (max-width: 600px) {
  .diag-main { padding: 36px 0 60px; }
  .diag-step__head { margin-bottom: 36px; }
  .diag-step__body { gap: 32px; }
  .diag-step__foot { margin-top: 36px; }
  .diag-header__title { display: none; }
  .rec-no { display: none; }

  /* 选项卡片：单列，触控区加高 */
  .diag-cards { grid-template-columns: 1fr; }
  .diag-card { padding: 16px 16px 14px; gap: 8px; }

  /* 行选项：最小高度 44px 触控目标 */
  .diag-row-opt {
    padding: .7em 1.3em;
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  /* 多选芯片：最小高度 40px */
  .diag-chip {
    padding: .65em 1.1em;
    min-height: 40px;
    display: flex;
    align-items: center;
  }

  /* 输入框：加高，防止 iOS 自动缩放 */
  .diag-input {
    padding: .92em 1.1em;
    font-size: 16px; /* 阻止 iOS Safari 自动放大 */
    min-height: 48px;
  }
  .diag-textarea { min-height: 120px; }

  /* 联系步骤：强制单列 */
  #step-6 .diag-step__body { grid-template-columns: 1fr; }

  /* 结果页 */
  .result-overall { flex-direction: column; gap: 20px; }
  .result-overall__meta { text-align: center; }
  .result-phase-badge { align-items: center; }
  .phase-step { min-width: 78px; font-size: .65rem; padding-top: 22px; }
  .phase-steps { padding-bottom: 12px; -webkit-overflow-scrolling: touch; }
  .result-cta__btns { flex-direction: column; align-items: stretch; }
  .btn-diag { justify-content: center; width: 100%; }
  .result-section { margin-bottom: 36px; }
  .score-bars { gap: 18px; }
  /* v2.1 升级模块手机适配 */
  .verdict { padding: 18px 18px; }
  .verdict__core { font-size: var(--fs-base); }
  .methodology { padding: 16px 18px; }
  .report-sign { flex-direction: column; align-items: flex-start; }
  .report-sign__meta { text-align: left; }
  .radar-svg { max-width: 320px; }
}

/* ---- 小屏手机 480px ---- */
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .diag-header__inner { padding: 11px 14px; gap: 10px; }

  /* 步骤标题 */
  .diag-step__title { font-size: 1.32rem; }
  .diag-step__subtitle { font-size: .82rem; }

  /* 导航按钮 */
  .btn-diag { padding: .68em 1.4em; font-size: var(--fs-sm); }

  /* 卡片更紧凑 */
  .diag-card { padding: 14px 14px 12px; border-radius: 12px; }
  .diag-card__icon { width: 36px; height: 36px; }
  .diag-card__label { font-size: var(--fs-sm); }

  /* 结果分数环缩小 */
  .result-overall__ring { width: 96px; height: 96px; }
  .result-overall__score { font-size: 2rem; }
  .result-overall__total { font-size: .68rem; }

  /* 进度步骤文字 */
  .phase-step { min-width: 68px; font-size: .6rem; }
}
