@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;800&display=swap");

:root {
  color: #071426;
  background: #f7fbff;
  --ink: #071426;
  --muted: #53657d;
  --quiet: #7890ac;
  --line: #d9e8f8;
  --line-strong: #b9d8ff;
  --paper: rgba(255, 255, 255, 0.92);
  --paper-solid: #ffffff;
  --blue-50: #f2f8ff;
  --blue-100: #e5f2ff;
  --blue-200: #c8e4ff;
  --blue-400: #6fb6ff;
  --blue-600: #2368ff;
  --blue-700: #184ee8;
  --violet: #6c63ff;
  --orange: #ff9d43;
  --danger: #b42342;
  --danger-bg: #fff0f3;
  --shadow-soft: 0 16px 42px rgba(19, 72, 132, 0.08);
  --shadow-lifted: 0 28px 80px rgba(21, 82, 157, 0.16);
  --radius: 8px;
  font-family: "Manrope", "Noto Sans SC", "Microsoft YaHei UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 248, 255, 0.98) 46%, rgba(231, 244, 255, 0.98) 100%),
    linear-gradient(rgba(35, 104, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 104, 255, 0.045) 1px, transparent 1px),
    #f7fbff;
  background-size: auto, 36px 36px, 36px 36px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, transparent 0 44%, rgba(255, 255, 255, 0.62) 44% 56%, transparent 56%),
    linear-gradient(180deg, rgba(35, 104, 255, 0.06), transparent 38%);
  opacity: 0.8;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

h1,
h2 {
  color: var(--ink);
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(217, 232, 248, 0.86);
  background: rgba(247, 251, 255, 0.8);
  backdrop-filter: blur(20px);
}

.brand,
nav button,
.ghost,
.primary,
.danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #193456;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.brand:hover,
nav button:hover,
.ghost:hover,
.primary:hover,
.danger:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 28px rgba(21, 82, 157, 0.12);
}

.brand {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.brand:hover {
  transform: none;
  box-shadow: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #f8fbff, #9fd1ff 48%, var(--blue-600));
  color: #063071;
  font-weight: 900;
  box-shadow: 0 16px 32px rgba(35, 104, 255, 0.2);
}

.brand-logo {
  overflow: hidden;
  border: 1px solid rgba(185, 216, 255, 0.72);
  background: #ffffff;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand span:last-child {
  display: grid;
  gap: 2px;
  text-align: left;
}

.brand small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

nav button {
  padding: 0 14px;
}

nav button.active {
  border-color: rgba(35, 104, 255, 0.36);
  background: linear-gradient(180deg, #ffffff, var(--blue-100));
  color: #0c48c8;
}

.primary {
  border-color: transparent;
  background: linear-gradient(135deg, var(--blue-600), #5aaeff);
  color: #fff;
  box-shadow: 0 18px 34px rgba(35, 104, 255, 0.24);
}

.primary:hover {
  background: linear-gradient(135deg, var(--blue-700), #47a4ff);
}

.danger {
  color: var(--danger);
  background: var(--danger-bg);
  border-color: rgba(180, 35, 66, 0.18);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(330px, 0.9fr) minmax(390px, 1.1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 76px);
  min-height: calc(100vh - 78px);
  padding: clamp(42px, 7vw, 92px) clamp(20px, 6vw, 86px);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero h1,
.content-page h1,
.page-grid h1,
.workshop h1 {
  margin-top: 12px;
  font-size: clamp(2.55rem, 5.4vw, 4.9rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.content-page h1,
.page-grid h1,
.workshop h1 {
  font-size: clamp(1.95rem, 3.5vw, 3.25rem);
  line-height: 1.12;
}

.hero p,
.panel p,
.content-page > p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.78;
  font-size: 1.03rem;
}

.hero-lede {
  margin-top: 22px;
}

.hero .eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: #0c48c8;
}

.eyebrow {
  display: block;
  color: #4f78b6;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.actions,
.archive-tools,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primary,
.ghost,
.danger {
  min-height: 44px;
  padding: 0 18px;
}

.primary:disabled {
  cursor: not-allowed;
  background: #b7cbe4;
  box-shadow: none;
  opacity: 0.72;
}

.notice-bar {
  position: sticky;
  top: 78px;
  z-index: 9;
  width: min(920px, calc(100% - 36px));
  margin: 14px auto 0;
  padding: 10px 14px;
  border: 1px solid rgba(35, 104, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  color: #0c48c8;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
  max-width: 580px;
}

.hero-stats span {
  min-height: 76px;
  padding: 14px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  box-shadow: var(--shadow-soft);
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.6rem;
}

.hero-media {
  position: relative;
  z-index: 1;
  min-height: min(58vw, 560px);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(217, 232, 248, 0.9);
  background: #ffffff;
  box-shadow: var(--shadow-lifted);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: min(58vw, 560px);
  object-fit: cover;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(247, 251, 255, 0.72), transparent 38%),
    linear-gradient(180deg, transparent 58%, rgba(247, 251, 255, 0.66));
}

.scan-card {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 150px;
  padding: 13px 14px;
  border: 1px solid rgba(185, 216, 255, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 42px rgba(21, 82, 157, 0.16);
  backdrop-filter: blur(16px);
}

.scan-card span,
.scan-card small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scan-card strong {
  color: #073d9f;
  font-size: 1.25rem;
}

.scan-a {
  left: 22px;
  bottom: 24px;
}

.scan-b {
  right: 22px;
  top: 22px;
}

.mission-band,
.lesson-grid,
.archive-grid,
.page-grid,
.workshop {
  display: grid;
  gap: 18px;
  padding: 0 clamp(18px, 5vw, 64px) 64px;
}

.mission-band {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mission-card,
.mission-band article,
.panel,
.tech-tree article {
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.mission-card {
  display: grid;
  gap: 10px;
  min-height: 176px;
  padding: 22px;
  color: inherit;
  text-align: left;
}

.mission-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.mission-band article {
  min-height: 160px;
  padding: 22px;
}

.mission-card:nth-child(1),
.mission-band article:nth-child(1),
.lesson:nth-child(3n+1),
.tech-tree article:nth-child(4n+1) {
  background: linear-gradient(180deg, #fff, #eff7ff);
}

.mission-card:nth-child(2),
.mission-band article:nth-child(2),
.lesson:nth-child(3n+2),
.tech-tree article:nth-child(4n+2) {
  background: linear-gradient(180deg, #fff, #f2f5ff);
}

.mission-card:nth-child(3),
.mission-band article:nth-child(3),
.lesson:nth-child(3n),
.tech-tree article:nth-child(4n+3) {
  background: linear-gradient(180deg, #fff, #edf9ff);
}

.mission-card:nth-child(4),
.mission-band article:nth-child(4),
.tech-tree article:nth-child(4n) {
  background: linear-gradient(180deg, #fff, #fff7ed);
}

.mission-card span,
.mission-band span,
.lesson span,
.design-card > span,
.tech-tree span {
  color: var(--blue-600);
  font-weight: 900;
}

.mission-card h2,
.mission-card p {
  pointer-events: none;
}

.content-page {
  padding: clamp(34px, 5vw, 78px) clamp(18px, 5vw, 64px);
}

.page-grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.72fr);
  padding-top: clamp(34px, 5vw, 78px);
}

.panel {
  padding: 26px;
}

.wide {
  min-width: 0;
}

.blueprint-board {
  position: relative;
  min-height: 430px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid rgba(185, 216, 255, 0.8);
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(35, 104, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 104, 255, 0.06) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff, #edf7ff 62%, #ffffff);
  background-size: 28px 28px, 28px 28px, auto;
}

.blueprint-board::before {
  content: "";
  position: absolute;
  inset: 56px 10% 56px 10%;
  border: 1px dashed rgba(35, 104, 255, 0.28);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.equipment-visual {
  margin: 24px 0 0;
  overflow: hidden;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.equipment-visual img {
  display: block;
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.equipment-visual figcaption {
  padding: 10px 14px;
  color: #315779;
  font-size: 0.9rem;
  font-weight: 800;
}

.blueprint-layer {
  position: absolute;
  left: calc(8% + var(--i) * 14%);
  top: calc(14% + var(--i) * 13%);
  z-index: 1;
  display: grid;
  gap: 4px;
  width: min(230px, 58%);
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(185, 216, 255, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  color: #173559;
  text-align: left;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.blueprint-layer span,
.blueprint-core small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blueprint-layer:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.blueprint-core {
  position: absolute;
  right: clamp(18px, 8%, 72px);
  bottom: 46px;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(35, 104, 255, 0.32);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #073d9f;
  box-shadow: var(--shadow-lifted);
}

.blueprint-core b {
  max-width: 104px;
  text-align: center;
}

.list-buttons,
.part-strip,
.parts-grid {
  display: grid;
  gap: 10px;
}

.list-buttons button,
.part-strip button,
.parts-grid button {
  min-height: 66px;
  padding: 13px;
  border: 1px solid rgba(217, 232, 248, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #173559;
  text-align: left;
  font-weight: 800;
}

.list-buttons button:hover,
.part-strip button:hover,
.parts-grid button:hover {
  border-color: var(--line-strong);
  box-shadow: 0 12px 30px rgba(21, 82, 157, 0.1);
}

.list-buttons button strong,
.part-strip span,
.parts-grid span {
  display: block;
  margin-top: 5px;
  color: var(--quiet);
  font-size: 0.92rem;
}

.list-buttons button.active,
.parts-grid button.selected {
  border-color: rgba(35, 104, 255, 0.42);
  background: linear-gradient(180deg, #fff, var(--blue-100));
  box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1);
}

.part-strip {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson-grid,
.archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lesson {
  display: grid;
  width: 100%;
  min-height: 214px;
  color: inherit;
  text-align: left;
}

.lesson:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lifted);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 20, 38, 0.24);
  backdrop-filter: blur(14px);
}

.lesson-modal,
.detail-modal {
  width: min(920px, 100%);
  max-height: min(88vh, 860px);
  overflow: auto;
  box-shadow: 0 34px 110px rgba(7, 20, 38, 0.22);
}

.lesson-modal h2,
.detail-modal h2 {
  max-width: calc(100% - 130px);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.15;
}

.lesson-visual {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.lesson-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background: #f3f9ff;
}

.lesson-visual figcaption {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.7;
}

.lesson-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.lesson-detail-grid article {
  padding: 16px;
  border: 1px solid rgba(217, 232, 248, 0.95);
  border-radius: var(--radius);
  background: #f8fbff;
}

.lesson-detail-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.lesson-detail-grid strong {
  color: #173559;
  line-height: 1.7;
}

.workshop {
  grid-template-columns: minmax(320px, 0.74fr) minmax(0, 1.26fr);
  padding-top: clamp(34px, 5vw, 78px);
}

.build-stage {
  position: sticky;
  top: 98px;
  align-self: start;
}

.suit-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  margin: 24px 0;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(111, 182, 255, 0.2), transparent 58%),
    linear-gradient(135deg, #ffffff, #f0f7ff);
}

.rule-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rule-strip span {
  padding: 7px 10px;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: #f5faff;
  color: #315779;
  font-size: 12px;
  font-weight: 900;
}

.suit-rings {
  position: absolute;
  width: min(360px, 88%);
  aspect-ratio: 1;
  border: 1px dashed rgba(35, 104, 255, 0.32);
  border-radius: 50%;
  animation: labSpin 18s linear infinite;
}

.suit-rings::before,
.suit-rings::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px dashed rgba(255, 157, 67, 0.32);
  border-radius: 50%;
}

.suit-rings::after {
  inset: 26%;
  border-color: rgba(35, 104, 255, 0.22);
}

@keyframes labSpin {
  to { transform: rotate(360deg); }
}

.suit-core {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: min(270px, 90%);
  min-height: 330px;
  padding: 18px;
  clip-path: polygon(50% 0, 82% 12%, 92% 44%, 76% 100%, 24% 100%, 8% 44%, 18% 12%);
  background: linear-gradient(180deg, #ffffff, #e9f4ff);
  border: 1px solid rgba(35, 104, 255, 0.28);
  text-align: center;
  box-shadow: var(--shadow-lifted);
}

.suit-core span {
  padding: 7px 8px;
  border-radius: var(--radius);
  background: #ffffff;
  color: #0c48c8;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(185, 216, 255, 0.8);
}

.parts-panel {
  display: grid;
  gap: 18px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.05rem;
}

.panel-heading small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.55;
}

.panel-heading span {
  padding: 6px 10px;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background: #f4f9ff;
  color: #335b8f;
  font-size: 12px;
  font-weight: 900;
}

.parts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(150px, 190px) minmax(220px, 300px) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.scenario-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.scenario-tabs button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(185, 216, 255, 0.88);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #315779;
  font-weight: 900;
}

.scenario-tabs button.active {
  border-color: rgba(35, 104, 255, 0.42);
  background: linear-gradient(180deg, #ffffff, var(--blue-100));
  color: #0c48c8;
}

.report-note {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(255, 157, 67, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #fff8ed);
}

.report-note b {
  color: #9b530d;
}

.radar {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.radar-grid,
.radar-axis line {
  fill: rgba(229, 242, 255, 0.45);
  stroke: rgba(35, 104, 255, 0.22);
  stroke-width: 2;
}

.radar-grid.inner {
  fill: rgba(255, 255, 255, 0.42);
}

.radar-axis text {
  fill: var(--muted);
  font-size: 14px;
  text-anchor: middle;
  dominant-baseline: middle;
}

.radar-value {
  fill: rgba(35, 104, 255, 0.22);
  stroke: var(--blue-600);
  stroke-width: 4;
}

.stat-bars {
  display: grid;
  gap: 16px;
}

.stat-bars label {
  position: relative;
  display: grid;
  grid-template-columns: 46px 72px 42px 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.stat-bars b {
  display: grid;
  place-items: center;
  min-height: 30px;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background: #ffffff;
  color: #0c48c8;
  font-size: 11px;
}

.stat-bars span {
  color: var(--ink);
}

.stat-bars label::after {
  content: "";
  grid-column: 4;
  grid-row: 1;
  height: 10px;
  border-radius: 999px;
  background: #e5eef9;
}

.stat-bars i {
  grid-column: 4;
  grid-row: 1;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue-600), #7cc8ff);
}

form,
.archive-tools {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 216, 255, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  outline: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.65;
}

.form-notice {
  padding: 11px 12px;
  border: 1px solid rgba(180, 35, 66, 0.18);
  border-radius: var(--radius);
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.92rem;
}

.compact {
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.86rem;
}

input:focus,
textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 4px rgba(111, 182, 255, 0.22);
}

.tech-tree {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tech-tree article {
  min-height: 180px;
  padding: 18px;
}

.image-strip,
.parts-grid {
  align-items: stretch;
}

.part-card {
  display: grid;
  grid-template-columns: minmax(92px, 0.84fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 176px;
  padding: 10px;
  border: 1px solid rgba(217, 232, 248, 0.95);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  color: #173559;
  text-align: left;
  box-shadow: 0 10px 28px rgba(21, 82, 157, 0.08);
}

.part-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lifted);
}

.part-card.selected {
  border-color: rgba(35, 104, 255, 0.46);
  background: linear-gradient(180deg, #ffffff, #eaf5ff);
  box-shadow: 0 0 0 3px rgba(35, 104, 255, 0.1), var(--shadow-soft);
}

.part-card.replaceable {
  border-color: rgba(255, 157, 67, 0.36);
  background: linear-gradient(180deg, #ffffff, #fff8ef);
}

.part-card:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
  box-shadow: none;
}

.part-thumb {
  grid-row: 1 / span 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  min-height: 142px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #edf7ff);
}

.part-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.part-copy {
  display: grid;
  gap: 5px;
  align-self: start;
}

.part-copy strong {
  color: var(--ink);
  line-height: 1.25;
}

.part-copy small {
  color: var(--quiet);
  font-weight: 900;
}

.part-copy em {
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.45;
}

.part-fit {
  justify-self: start;
  padding: 5px 8px;
  border: 1px solid rgba(35, 104, 255, 0.2);
  border-radius: var(--radius);
  background: #eef7ff;
  color: #164aa5;
  font-size: 11px;
  font-weight: 900;
}

.part-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-self: end;
}

.part-stats b {
  padding: 5px 7px;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background: #f5faff;
  color: #315779;
  font-size: 11px;
}

.part-status {
  justify-self: start;
  padding: 5px 8px;
  border-radius: var(--radius);
  background: #edf7ff;
  color: #0c48c8;
  font-size: 11px;
  font-weight: 900;
}

.assembly-visual {
  position: relative;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  border-radius: var(--radius);
}

.assembly-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assembly-glow {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(239, 248, 255, 0.72)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.76), transparent 34%, transparent 66%, rgba(255, 255, 255, 0.7));
}

.assembly-slots {
  position: absolute;
  inset: 0;
}

.assembly-module-card {
  position: absolute;
  z-index: 2;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: clamp(158px, 34%, 218px);
  min-height: 64px;
  padding: 9px;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 18px 40px rgba(21, 82, 157, 0.16);
  backdrop-filter: blur(14px);
  pointer-events: none;
  animation: moduleFloat 5.8s ease-in-out infinite;
}

.assembly-card-thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 10px;
  background: #eef7ff;
}

.assembly-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assembly-module-card strong,
.assembly-module-card em {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.assembly-module-card strong {
  color: #123b5f;
  font-size: 0.82rem;
  line-height: 1.2;
}

.assembly-module-card em {
  margin-top: 4px;
  color: #4a6c8c;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.slot-0 { left: 6%; top: 12%; }
.slot-1 { right: 7%; top: 13%; animation-delay: -0.8s; }
.slot-2 { left: 8%; top: 42%; animation-delay: -1.4s; }
.slot-3 { right: 8%; top: 43%; animation-delay: -2s; }
.slot-4 { left: 21%; bottom: 8%; animation-delay: -2.5s; }
.slot-5 { right: 22%; bottom: 8%; animation-delay: -3s; }
.slot-6 { left: 39%; top: 7%; animation-delay: -3.5s; }
.slot-7 { left: 42%; bottom: 4%; animation-delay: -4s; }

@keyframes moduleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

.assembly-label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
  color: #173559;
  box-shadow: 0 14px 30px rgba(21, 82, 157, 0.12);
  backdrop-filter: blur(14px);
}

.assembly-label small {
  color: var(--quiet);
  font-weight: 900;
}

.testing-page {
  padding: clamp(24px, 4vw, 52px) clamp(18px, 5vw, 64px) 64px;
}

.test-hero {
  position: relative;
  min-height: clamp(380px, 46vw, 560px);
  overflow: hidden;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: var(--shadow-lifted);
}

.test-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.test-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(247, 251, 255, 0.92) 0 34%, rgba(247, 251, 255, 0.2) 62%, rgba(247, 251, 255, 0.78));
}

.test-overlay {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding: clamp(24px, 5vw, 56px);
}

.test-overlay h1 {
  margin-top: 10px;
  font-size: clamp(2.6rem, 5.5vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.test-overlay p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--muted);
  line-height: 1.75;
}

.scenario-focus {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 8px 10px;
  border: 1px solid rgba(185, 216, 255, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: #123b5f;
  font-weight: 900;
}

.scenario-focus span {
  color: var(--quiet);
  font-size: 12px;
}

.test-hero .scenario-tabs {
  position: absolute;
  z-index: 2;
  left: clamp(18px, 5vw, 56px);
  right: clamp(18px, 5vw, 56px);
  bottom: 22px;
  margin-top: 0;
}

.test-console {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(280px, 0.82fr);
  gap: 18px;
  margin-top: 18px;
}

.test-console-locked {
  grid-template-columns: 1fr;
}

.test-lock-panel {
  display: grid;
  gap: 18px;
  min-height: 300px;
  align-content: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(234, 245, 255, 0.92)),
    #ffffff;
}

.test-lock-panel h2 {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
}

.test-lock-panel p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.8;
}

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

.readiness-grid span {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: #f7fbff;
  color: var(--muted);
  font-weight: 800;
}

.readiness-grid span.ready {
  border-color: rgba(35, 104, 255, 0.38);
  background: #eef7ff;
  color: #123b5f;
}

.readiness-grid b {
  color: #073d9f;
  font-size: 1.35rem;
}

.score-console {
  display: grid;
  grid-template-columns: minmax(170px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.score-dial {
  display: grid;
  place-items: center;
  min-height: 190px;
  border-radius: var(--radius);
  background:
    conic-gradient(from -90deg, #2368ff var(--score), #e5eef9 0),
    #ffffff;
  box-shadow: inset 0 0 0 14px #ffffff, 0 18px 42px rgba(21, 82, 157, 0.14);
}

.score-dial strong {
  color: #073d9f;
  font-size: 4.3rem;
  line-height: 1;
}

.score-dial span {
  color: var(--muted);
  font-weight: 900;
}

.score-copy h2,
.save-panel h2 {
  font-size: 1.5rem;
}

.mission-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.mission-steps span,
.synergy-list article,
.archive-tech span {
  padding: 10px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: #f7fbff;
}

.mission-steps b,
.mission-steps strong,
.synergy-list strong {
  display: block;
}

.mission-steps b {
  color: var(--quiet);
  font-size: 11px;
}

.mission-steps strong {
  color: #073d9f;
  margin-top: 4px;
}

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

.insight-card {
  padding: 14px;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f5faff);
}

.insight-card span {
  display: block;
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
}

.insight-card strong {
  display: block;
  margin-top: 6px;
  color: #073d9f;
  font-size: 1.2rem;
}

.insight-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.metric-console {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.metric-console article {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 170px;
  overflow: hidden;
  padding: 14px;
  border: 1px solid rgba(185, 216, 255, 0.82);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
}

.metric-console article i {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(35, 104, 255, 0.22), rgba(111, 182, 255, 0.08));
}

.metric-console article > *:not(i) {
  position: relative;
  z-index: 1;
}

.metric-console span {
  color: var(--quiet);
  font-weight: 900;
}

.metric-console strong {
  color: #073d9f;
  font-size: 2.2rem;
}

.metric-console small {
  color: var(--muted);
  font-weight: 900;
}

.contribution-console {
  grid-row: span 2;
}

.contribution-list {
  display: grid;
  gap: 10px;
}

.contribution-list article {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.contribution-list img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #f3f9ff;
}

.contribution-list strong,
.contribution-list span {
  display: block;
}

.contribution-list span {
  margin-top: 4px;
  color: var(--quiet);
  font-size: 0.9rem;
  font-weight: 800;
}

.synergy-list {
  display: grid;
  gap: 9px;
}

.synergy-list article.active {
  border-color: rgba(35, 104, 255, 0.42);
  background: linear-gradient(180deg, #ffffff, #eaf5ff);
}

.synergy-list span {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-size: 0.9rem;
}

.empty-mini {
  min-height: 120px;
  display: grid;
  place-items: center;
  color: var(--quiet);
}

.tech-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.32fr) minmax(0, 1fr);
  gap: 18px;
  margin: 28px 0 18px;
}

.tech-budget {
  display: grid;
  gap: 8px;
  align-content: center;
  background: linear-gradient(180deg, #ffffff, #edf7ff);
}

.tech-budget span,
.tech-budget small {
  color: var(--quiet);
  font-weight: 900;
}

.tech-budget strong {
  color: #073d9f;
  font-size: 5rem;
  line-height: 1;
}

.tech-page .tech-tree {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tech-page .tech-tree::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(35, 104, 255, 0.36), transparent);
}

.tech-node {
  position: relative;
  display: grid;
  gap: 10px;
  overflow: hidden;
}

.tech-node::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #dcecff;
  box-shadow: 0 0 0 6px rgba(35, 104, 255, 0.08);
}

.tech-node.level-1::after { background: #8cc7ff; }
.tech-node.level-2::after { background: #2368ff; }
.tech-node.level-3::after { background: #ff9d43; }

.tech-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5eef9;
}

.tech-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2368ff, #7cc8ff);
}

.tech-control {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  gap: 8px;
  align-items: center;
}

.tech-control button {
  min-height: 36px;
  border: 1px solid rgba(185, 216, 255, 0.9);
  border-radius: var(--radius);
  background: #ffffff;
  color: #073d9f;
  font-weight: 900;
}

.tech-control button:disabled {
  cursor: not-allowed;
  color: #a3b8d1;
}

.tech-control strong {
  text-align: center;
  color: #073d9f;
  font-size: 1.6rem;
}

.history-lane {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-top: 18px;
  padding-bottom: 8px;
}

.history-lane span {
  flex: 0 0 180px;
  padding: 12px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: #315779;
  font-weight: 900;
}

.history-lane b {
  display: block;
  color: #0c48c8;
  margin-bottom: 4px;
}

.archive-tools {
  grid-template-columns: minmax(180px, 260px) auto minmax(140px, 170px);
  align-items: end;
  width: min(760px, 100%);
  margin: 22px 0 24px;
  padding: 12px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.archive-tools label {
  display: grid;
  gap: 5px;
}

.archive-tools label span {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
}

.admin-field input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 0.86rem;
}

.design-card {
  display: grid;
  gap: 12px;
  cursor: pointer;
}

.design-card:focus-visible {
  outline: 4px solid rgba(111, 182, 255, 0.38);
  outline-offset: 3px;
}

.design-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.design-topline b {
  padding: 6px 10px;
  border-radius: var(--radius);
  background: #edf7ff;
  color: #073d9f;
}

.archive-parts {
  display: flex;
  gap: 8px;
  min-height: 74px;
}

.archive-parts img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: #f5faff;
}

.archive-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.archive-tech span {
  font-size: 0.84rem;
  color: #315779;
  font-weight: 800;
}

.archive-tech b {
  color: #0c48c8;
}

.detail-parts span {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: center;
}

.detail-parts img {
  grid-row: span 2;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.detail-parts b {
  color: var(--ink);
}

.detail-tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 22px;
}

.detail-tech-grid article {
  position: relative;
  overflow: hidden;
  padding: 12px;
  border: 1px solid rgba(217, 232, 248, 0.9);
  border-radius: var(--radius);
  background: #f8fbff;
}

.detail-tech-grid span,
.detail-tech-grid small {
  color: var(--quiet);
  font-size: 11px;
  font-weight: 900;
}

.detail-tech-grid strong {
  display: block;
  margin: 5px 0;
  color: #073d9f;
  font-size: 1.7rem;
}

.detail-tech-grid i {
  position: absolute;
  left: 0;
  right: auto;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, #2368ff, #7cc8ff);
}

.design-card .radar {
  width: 180px;
  margin: 12px auto;
}

.archive-score {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: end;
  margin-top: 14px;
  padding: 9px 11px;
  border: 1px solid rgba(185, 216, 255, 0.86);
  border-radius: var(--radius);
  background: #f5faff;
}

.archive-score strong {
  color: #073d9f;
  font-size: 1.55rem;
  line-height: 1;
}

.archive-score span {
  color: var(--quiet);
  font-size: 12px;
  font-weight: 900;
}

.card-actions {
  margin-top: 14px;
}

.card-actions button {
  min-height: 36px;
  padding: 0 12px;
}

.detail-panel {
  position: relative;
  margin-top: 22px;
}

.detail-panel .test-layout {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.close-detail {
  position: absolute;
  top: 18px;
  right: 18px;
}

.detail-panel dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}

.detail-panel dt {
  color: var(--muted);
  font-size: 0.9rem;
}

.detail-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.detail-parts span {
  min-height: 58px;
  padding: 12px;
  border: 1px solid rgba(217, 232, 248, 0.95);
  border-radius: var(--radius);
  background: #ffffff;
  font-weight: 800;
}

.detail-parts small {
  display: block;
  margin-top: 4px;
  color: var(--quiet);
  font-weight: 600;
}

.empty,
.boot {
  display: grid;
  place-items: center;
  min-height: 60vh;
  color: var(--muted);
}

@media (max-width: 960px) {
  .topbar,
  .hero,
  .page-grid,
  .workshop,
  .test-layout,
  .test-console,
  .score-console,
  .tech-dashboard {
    grid-template-columns: 1fr;
  }

  nav {
    justify-content: flex-start;
  }

  .mission-band,
  .lesson-grid,
  .archive-grid,
  .tech-tree,
  .tech-page .tech-tree,
  .metric-console,
  .mission-steps,
  .readiness-grid,
  .report-insights,
  .detail-tech-grid,
  .parts-grid,
  .part-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .build-stage {
    position: static;
  }

  .test-hero::after {
    background: linear-gradient(180deg, rgba(247, 251, 255, 0.92), rgba(247, 251, 255, 0.38));
  }

  .contribution-console {
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: stretch;
  }

  .mission-band,
  .lesson-grid,
  .archive-grid,
  .tech-tree,
  .tech-page .tech-tree,
  .metric-console,
  .mission-steps,
  .readiness-grid,
  .report-insights,
  .detail-tech-grid,
  .parts-grid,
  .part-strip,
  .detail-panel dl,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 28px 16px 48px;
  }

  .hero h1,
  .content-page h1,
  .page-grid h1,
  .workshop h1,
  .test-overlay h1 {
    font-size: 2.15rem;
    line-height: 1.12;
  }

  .part-card,
  .archive-tools {
    grid-template-columns: 1fr;
  }

  .assembly-label {
    display: grid;
  }

  .test-hero .scenario-tabs {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    padding: 0 16px 18px;
  }

  .test-hero {
    min-height: 560px;
  }

  .lesson-detail-grid {
    grid-template-columns: 1fr;
  }
}
