:root {
  --bg: #07111f;
  --panel: rgba(8, 24, 45, 0.78);
  --panel-border: rgba(155, 205, 255, 0.18);
  --panel-strong: rgba(11, 34, 64, 0.94);
  --text: #eff7ff;
  --muted: #9fb4cb;
  --line: rgba(168, 209, 255, 0.12);
  --blue: #15a5ff;
  --blue-strong: #007aff;
  --green: #7ee339;
  --green-soft: rgba(126, 227, 57, 0.16);
  --danger: #ff8d73;
  --warning: #ffc857;
  --shadow: 0 18px 52px rgba(0, 0, 0, 0.32);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(16, 106, 255, 0.28), transparent 30%),
    radial-gradient(circle at bottom right, rgba(126, 227, 57, 0.18), transparent 28%),
    linear-gradient(160deg, #030913 0%, #07111f 38%, #0a1a30 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.78), transparent 82%);
  pointer-events: none;
}

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.45;
}

.ambient-a {
  width: 360px;
  height: 360px;
  top: 80px;
  left: -80px;
  background: rgba(13, 144, 255, 0.3);
}

.ambient-b {
  width: 300px;
  height: 300px;
  right: -60px;
  top: 220px;
  background: rgba(126, 227, 57, 0.2);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 32px));
  margin: 24px auto 48px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 28px;
  margin-bottom: 24px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.brand-lockup {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}

.brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.brand-mark svg {
  width: 58px;
  height: 58px;
}

.brand-mark img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8cd3ff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  max-width: 12ch;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.hero-copy {
  max-width: 780px;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-strong) 100%);
  box-shadow: 0 12px 30px rgba(0, 122, 255, 0.28);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.hero-card {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-card-highlight {
  background: linear-gradient(135deg, rgba(10, 87, 173, 0.6), rgba(10, 44, 77, 0.7));
}

.card-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #8cd3ff;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span,
.section-tip {
  color: var(--muted);
  font-size: 14px;
}

.field input,
.scene-select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 14px 16px;
  font: inherit;
}

.field input::placeholder {
  color: rgba(225, 239, 255, 0.35);
}

.headline-level {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 18px;
}

.headline-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.headline-metrics div {
  padding: 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.18);
}

.headline-metrics span {
  display: block;
  color: rgba(234, 245, 255, 0.66);
  font-size: 13px;
  margin-bottom: 8px;
}

.headline-metrics strong {
  font-size: 22px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.form-panel,
.summary-panel,
.report-panel {
  padding: 24px;
  margin-bottom: 24px;
}

.summary-panel {
  position: sticky;
  top: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}

.question-groups,
.scene-groups {
  display: grid;
  gap: 18px;
}

.group-block {
  border-radius: 22px;
  padding: 20px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.group-block > h3 {
  font-size: 18px;
  margin-bottom: 16px;
}

.question-list,
.scene-list {
  display: grid;
  gap: 14px;
}

.question-card,
.scene-card {
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.question-card header,
.scene-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  align-items: start;
}

.question-index,
.scene-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(21, 165, 255, 0.12);
  color: #7ed0ff;
}

.constraint-tag {
  background: rgba(126, 227, 57, 0.14);
  color: #baf589;
}

.question-title,
.scene-title {
  font-size: 16px;
  line-height: 1.55;
}

.question-weight {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.option-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  position: relative;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip span:hover {
  transform: translateY(-1px);
}

.chip input:checked + span {
  background: linear-gradient(135deg, rgba(21, 165, 255, 0.24), rgba(0, 122, 255, 0.36));
  border-color: rgba(126, 227, 57, 0.66);
}

.helper-text {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.score-ring-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.score-ring {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
}

.score-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.score-ring circle {
  fill: none;
  stroke-width: 10;
}

.score-ring circle:first-child {
  stroke: rgba(255, 255, 255, 0.08);
}

.score-ring circle:last-child {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 280ms ease;
}

.score-ring-text {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
}

.score-ring-text strong {
  display: block;
  font-size: 36px;
}

.score-ring-text span {
  color: var(--muted);
}

.summary-list,
.dimension-bars {
  display: grid;
  gap: 12px;
}

.summary-list {
  margin-bottom: 18px;
}

.summary-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.summary-card span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.summary-card strong {
  display: block;
  font-size: 24px;
  margin-bottom: 6px;
}

.summary-card small {
  display: block;
  color: rgba(234, 245, 255, 0.62);
  line-height: 1.6;
}

.bar-item {
  padding: 14px 0 0;
}

.bar-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.bar-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(126, 227, 57, 0.85), rgba(21, 165, 255, 0.85));
  transition: width 240ms ease;
}

.next-gap {
  margin-top: 20px;
  padding: 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(126, 227, 57, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(126, 227, 57, 0.16);
}

.gap-summary {
  color: var(--muted);
  line-height: 1.7;
}

.scene-groups {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.scene-card {
  display: grid;
  gap: 14px;
}

.scene-levels {
  display: grid;
  gap: 10px;
}

.scene-levels small {
  color: var(--muted);
  line-height: 1.65;
}

.report-panel.hidden {
  display: none;
}

.report-sheet {
  border-radius: 24px;
  padding: 26px;
  background: linear-gradient(180deg, rgba(7, 19, 33, 0.96), rgba(8, 27, 46, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.report-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.report-brand p,
.report-meta,
.report-paragraph,
.report-list li,
.report-table td {
  color: var(--muted);
}

.report-mark {
  width: 58px;
  height: 58px;
}

.report-meta {
  text-align: right;
  line-height: 1.8;
}

.report-section-block {
  margin-top: 22px;
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.report-kpis article {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.report-kpis span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 13px;
}

.report-kpis strong {
  font-size: 22px;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.report-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
}

.report-table th,
.report-table td {
  padding: 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: top;
}

.report-table th {
  color: var(--text);
  font-weight: 700;
}

.report-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.report-list li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.report-badge {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(21, 165, 255, 0.14);
  color: #8cd3ff;
}

@media (max-width: 1100px) {
  .hero-grid,
  .workspace,
  .scene-groups,
  .report-kpis,
  .report-grid {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
  }

  .headline-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100vw - 18px, 100%);
    margin: 10px auto 28px;
  }

  .hero,
  .form-panel,
  .summary-panel,
  .report-panel {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-top,
  .section-heading,
  .report-header,
  .question-card header,
  .scene-card header {
    flex-direction: column;
    align-items: flex-start;
  }

  .company-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: none;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #0d1a2b;
  }

  .ambient,
  .hero,
  .workspace,
  .form-panel:not(.report-panel),
  .button,
  #printButton,
  #evaluateButton {
    display: none !important;
  }

  .page-shell {
    width: 100%;
    margin: 0;
  }

  .report-panel,
  .report-sheet {
    display: block !important;
    background: #ffffff;
    color: #0d1a2b;
    box-shadow: none;
    border: 0;
  }

  .report-brand p,
  .report-meta,
  .report-paragraph,
  .report-list li,
  .report-table td {
    color: #45617f;
  }
}
