:root {
  color-scheme: dark;
  --bg: #020817;
  --panel: rgba(3, 22, 55, 0.72);
  --panel-strong: rgba(6, 34, 78, 0.86);
  --line: rgba(68, 178, 255, 0.8);
  --line-soft: rgba(68, 178, 255, 0.28);
  --text: #eef8ff;
  --muted: #9ac7e8;
  --cyan: #4dd8ff;
  --cyan-strong: #35b7ff;
  --green: #67f5be;
  --amber: #ffbe5b;
  --danger: #ff6b78;
  --shadow: 0 0 28px rgba(42, 165, 255, 0.32);
  --font: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font);
  background: var(--bg);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

#app {
  min-height: 100vh;
}

.screen {
  position: relative;
  height: 100vh;
  min-height: 720px;
  padding: 16px 44px 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(1, 8, 24, 0.1), rgba(1, 8, 24, 0.4)),
    url("assets/bg-hangar.jpg") center / cover no-repeat;
}

.screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 72%, rgba(24, 169, 255, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.42), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.42));
}

.screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.58;
  background-image: url("assets/hud-texture.png");
  mix-blend-mode: screen;
}

.screen > * {
  position: relative;
  z-index: 1;
}

.top-badge {
  width: max-content;
  min-width: 172px;
  height: 46px;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  padding: 0 34px;
  color: #bff4ff;
  font-size: 22px;
  font-weight: 800;
  text-shadow: 0 0 12px rgba(77, 216, 255, 0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 22px rgba(44, 159, 255, 0.26);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  background: linear-gradient(180deg, rgba(19, 72, 142, 0.9), rgba(4, 27, 70, 0.74));
}

.top-badge.left {
  margin-left: 38px;
  margin-right: auto;
}

.home-screen {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
}

.home-panel,
.assessment-panel,
.online-panel,
.extract-panel,
.results-panel,
.content-frame {
  position: relative;
  width: min(1100px, 78vw);
  margin: 0 auto;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow), inset 0 0 55px rgba(44, 140, 255, 0.23);
  background:
    linear-gradient(180deg, rgba(7, 34, 79, 0.84), rgba(2, 18, 48, 0.72)),
    linear-gradient(90deg, transparent, rgba(77, 216, 255, 0.08), transparent);
  clip-path: polygon(40px 0, calc(100% - 40px) 0, 100% 40px, 100% calc(100% - 40px), calc(100% - 40px) 100%, 40px 100%, 0 calc(100% - 40px), 0 40px);
}

.home-panel {
  min-height: 610px;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 68px 90px 34px;
}

.panel-trim,
.section-title {
  width: min(620px, 72%);
  height: 70px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: #e8fbff;
  font-size: 34px;
  font-weight: 900;
  text-shadow: 0 0 16px rgba(77, 216, 255, 0.85);
  border-bottom: 2px solid rgba(77, 216, 255, 0.7);
  background: linear-gradient(90deg, transparent, rgba(26, 119, 217, 0.55), transparent);
  clip-path: polygon(12% 0, 88% 0, 100% 50%, 88% 100%, 12% 100%, 0 50%);
}

.panel-trim::before {
  content: "机舱监控模拟系统";
}

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

.home-panel h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.1;
  text-align: center;
  text-shadow: 0 0 20px rgba(103, 209, 255, 0.86);
}

.home-subtitle {
  margin: 16px 0 28px;
  color: var(--muted);
  font-size: 18px;
}

.home-actions {
  width: 430px;
  display: grid;
  gap: 24px;
}

.hud-button {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 26px;
  border: 1px solid rgba(89, 195, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  overflow: hidden;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(19, 83, 161, 0.82), rgba(4, 31, 78, 0.76)),
    radial-gradient(circle at 50% 100%, rgba(77, 216, 255, 0.35), transparent 60%);
  box-shadow: inset 0 0 24px rgba(43, 170, 255, 0.22), 0 0 16px rgba(43, 170, 255, 0.18);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.hud-button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transition: transform 300ms ease;
}

.hud-button:hover,
.hud-button:focus-visible {
  transform: translateY(-1px);
  border-color: #a9efff;
  box-shadow: inset 0 0 28px rgba(81, 206, 255, 0.34), 0 0 24px rgba(43, 170, 255, 0.36);
  outline: none;
}

.hud-button:hover::before,
.hud-button:focus-visible::before {
  transform: translateX(110%);
}

.hud-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.hud-button.large {
  min-height: 86px;
  justify-content: flex-start;
  padding-left: 72px;
  font-size: 30px;
  font-weight: 800;
}

.hud-button.wide {
  width: 100%;
}

.hud-button.primary {
  border-color: rgba(74, 227, 255, 0.95);
  background:
    linear-gradient(180deg, rgba(20, 111, 207, 0.95), rgba(5, 52, 117, 0.9)),
    radial-gradient(circle at 50% 100%, rgba(103, 245, 190, 0.22), transparent 58%);
}

.icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hud-button.large .icon {
  width: 42px;
  height: 42px;
  color: #b7f6ff;
}

.ship-hologram {
  width: 440px;
  max-width: 74%;
  margin-top: 28px;
  opacity: 0.78;
  filter: drop-shadow(0 0 16px rgba(56, 195, 255, 0.65));
}

.page-header {
  height: 82px;
  display: grid;
  grid-template-columns: 250px 1fr auto;
  align-items: center;
  gap: 20px;
  width: min(1420px, calc(100vw - 96px));
  margin: 0 auto 12px;
  padding: 14px 22px;
  border: 1px solid var(--line-soft);
  box-shadow: inset 0 0 34px rgba(32, 133, 229, 0.22);
  background: linear-gradient(180deg, rgba(4, 23, 59, 0.88), rgba(3, 18, 47, 0.66));
  clip-path: polygon(20px 0, calc(100% - 20px) 0, 100% 20px, 100% calc(100% - 20px), calc(100% - 20px) 100%, 20px 100%, 0 calc(100% - 20px), 0 20px);
}

.header-title {
  height: 52px;
  display: grid;
  place-items: center;
  color: #e9fbff;
  font-size: 28px;
  font-weight: 900;
  text-shadow: 0 0 14px rgba(77, 216, 255, 0.85);
  background: linear-gradient(90deg, transparent, rgba(36, 113, 202, 0.52), transparent);
  clip-path: polygon(14% 0, 86% 0, 100% 50%, 86% 100%, 14% 100%, 0 50%);
}

.header-actions {
  display: flex;
  gap: 14px;
}

.header-button {
  min-height: 46px;
  padding: 0 22px;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.header-button.compact {
  min-width: 110px;
}

.teaching-layout,
.fault-layout,
.exam-layout {
  width: min(1420px, calc(100vw - 96px));
  margin: 0 auto;
}

.scene-panel {
  position: relative;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow), inset 0 0 45px rgba(44, 140, 255, 0.24);
  background: var(--panel);
  clip-path: polygon(32px 0, calc(100% - 32px) 0, 100% 32px, 100% calc(100% - 32px), calc(100% - 32px) 100%, 32px 100%, 0 calc(100% - 32px), 0 32px);
  padding: 14px;
}

.scene-panel.tall {
  height: min(48vh, 455px);
  min-height: 360px;
}

.scene-media {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(72, 183, 255, 0.42);
  background: #03152f center / cover no-repeat;
  clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 24px, 100% calc(100% - 24px), calc(100% - 24px) 100%, 24px 100%, 0 calc(100% - 24px), 0 24px);
}

.scene-media::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(73, 180, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(73, 180, 255, 0.12) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, transparent, rgba(1, 8, 24, 0.42));
  background-size: 28px 28px, 28px 28px, 100% 100%;
}

.scene-teaching {
  background-image: url("assets/scene-teaching.jpg");
}

.scene-fault {
  background-image: url("assets/scene-fault.jpg");
}

.scene-exam {
  background-image: url("assets/scene-exam.jpg");
}

.scene-title {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d7fbff;
  font-size: 50px;
  font-weight: 900;
  text-shadow: 0 0 18px rgba(80, 220, 255, 0.86);
  pointer-events: none;
}

.scene-hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  min-width: 132px;
  display: grid;
  gap: 3px;
  justify-items: center;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border: 1px solid rgba(96, 220, 255, 0.72);
  color: #d9fbff;
  cursor: pointer;
  background: rgba(4, 32, 73, 0.7);
  box-shadow: 0 0 18px rgba(48, 190, 255, 0.36), inset 0 0 18px rgba(48, 190, 255, 0.18);
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
}

.scene-hotspot span {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 8px rgba(103, 245, 190, 0.14), 0 0 22px rgba(103, 245, 190, 0.9);
}

.scene-hotspot strong {
  font-size: 16px;
}

.scene-hotspot em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.scene-hotspot.warning {
  border-color: rgba(255, 190, 91, 0.9);
}

.scene-hotspot.warning span {
  background: var(--amber);
  box-shadow: 0 0 0 8px rgba(255, 190, 91, 0.16), 0 0 22px rgba(255, 190, 91, 0.9);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 12px;
}

.metric-strip div {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 10px 18px;
  border: 1px solid var(--line-soft);
  background: rgba(3, 22, 55, 0.66);
  box-shadow: inset 0 0 18px rgba(42, 165, 255, 0.12);
  border-radius: 6px;
}

.metric-strip span,
.metric-strip em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.metric-strip strong {
  color: #eaffff;
  font-size: 24px;
  line-height: 1;
}

.bottom-command {
  width: min(1040px, 88%);
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 12px auto 0;
  padding: 0 36px;
  color: #e7fbff;
  font-size: 22px;
  font-weight: 800;
  border: 1px solid var(--line-soft);
  background: rgba(4, 25, 61, 0.78);
  box-shadow: var(--shadow);
  clip-path: polygon(28px 0, calc(100% - 28px) 0, 100% 28px, 100% calc(100% - 28px), calc(100% - 28px) 100%, 28px 100%, 0 calc(100% - 28px), 0 28px);
}

.gesture-orb {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #b7f6ff;
  background: rgba(37, 146, 229, 0.22);
  border: 1px solid var(--line);
  box-shadow: 0 0 22px rgba(77, 216, 255, 0.48);
}

.content-frame.principle-frame {
  width: min(1420px, calc(100vw - 96px));
  min-height: 720px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 42px;
  padding: 48px;
}

.side-nav {
  display: grid;
  gap: 28px;
  align-content: start;
  padding: 100px 22px 22px;
  border-right: 1px solid var(--line-soft);
}

.side-tab {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid rgba(88, 190, 255, 0.66);
  color: var(--text);
  cursor: pointer;
  background: rgba(5, 35, 86, 0.8);
  font-size: 22px;
  font-weight: 800;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 16px, 100% calc(100% - 16px), calc(100% - 16px) 100%, 16px 100%, 0 calc(100% - 16px), 0 16px);
}

.side-tab.active,
.side-tab:hover {
  color: #f4feff;
  border-color: #a9efff;
  box-shadow: inset 0 0 28px rgba(77, 216, 255, 0.24), 0 0 18px rgba(77, 216, 255, 0.3);
}

.principle-content {
  align-self: center;
  min-height: 500px;
  display: grid;
  align-content: center;
  padding: 48px 58px;
  border: 1px solid rgba(76, 183, 255, 0.48);
  background: rgba(4, 25, 61, 0.68);
  box-shadow: inset 0 0 52px rgba(39, 143, 238, 0.18);
  border-radius: 8px;
}

.section-kicker {
  color: var(--cyan);
  font-size: 16px;
  font-weight: 800;
}

.principle-content h2,
.assessment-body h3,
.result-summary h3 {
  margin-bottom: 14px;
  font-size: 36px;
  line-height: 1.2;
}

.principle-content p,
.body-copy,
.result-summary p {
  color: #c7e7fb;
  font-size: 18px;
  line-height: 1.8;
}

.feature-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: #dbf5ff;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 8px;
  height: 8px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
}

.principle-visual {
  min-height: 110px;
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(4, 18, 44, 0.64);
}

.principle-visual img {
  width: 100%;
  filter: drop-shadow(0 0 12px rgba(77, 216, 255, 0.55));
}

.principle-visual strong {
  display: block;
  margin-bottom: 8px;
  color: #f4feff;
  font-size: 22px;
}

.principle-visual span {
  color: var(--muted);
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.inline-actions.right {
  justify-content: flex-end;
}

.fault-layout {
  display: grid;
  gap: 18px;
}

.fault-scene {
  min-height: 390px;
}

.fault-bottom {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
}

.fault-steps,
.diagnosis-card,
.info-panel,
.exam-headline {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(3, 22, 55, 0.72);
  box-shadow: inset 0 0 28px rgba(42, 165, 255, 0.14);
}

.fault-steps {
  min-height: 138px;
  padding: 16px 24px;
}

.fault-steps h3,
.operation-strip h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.step-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.step-arrow {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 28px;
}

.step-pill {
  min-width: 150px;
  min-height: 58px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 8px 16px;
  border: 1px solid rgba(88, 190, 255, 0.62);
  color: #def7ff;
  cursor: pointer;
  background: rgba(5, 37, 88, 0.78);
  clip-path: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
}

.step-pill span {
  font-size: 20px;
  font-weight: 800;
}

.step-pill small {
  color: var(--muted);
  font-size: 13px;
}

.step-pill.active,
.step-pill.done {
  border-color: #a9efff;
  box-shadow: inset 0 0 22px rgba(77, 216, 255, 0.24), 0 0 14px rgba(77, 216, 255, 0.2);
}

.step-pill.done small {
  color: var(--green);
}

.diagnosis-card {
  padding: 16px 22px;
}

.diagnosis-card h3 {
  margin: 12px 0 8px;
  font-size: 24px;
}

.diagnosis-card p {
  color: #c7e7fb;
  line-height: 1.7;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 12px;
  color: var(--green);
  border: 1px solid rgba(103, 245, 190, 0.5);
  border-radius: 6px;
  background: rgba(103, 245, 190, 0.1);
  font-size: 13px;
  font-weight: 800;
}

.status-chip.amber {
  color: var(--amber);
  border-color: rgba(255, 190, 91, 0.58);
  background: rgba(255, 190, 91, 0.12);
}

.centered-page {
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: center;
}

.assessment-panel,
.online-panel,
.extract-panel,
.results-panel {
  padding: 36px 50px;
}

.assessment-panel {
  min-height: 590px;
}

.section-title {
  margin: 0 auto 24px;
}

.assessment-grid {
  display: grid;
  grid-template-columns: 390px 1fr;
  gap: 36px;
  align-items: center;
}

.assessment-tabs {
  display: grid;
  gap: 24px;
}

.assessment-tab.active {
  border-color: #a9efff;
  box-shadow: inset 0 0 30px rgba(77, 216, 255, 0.26), 0 0 20px rgba(77, 216, 255, 0.24);
}

.assessment-body {
  min-height: 360px;
  padding: 34px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(3, 20, 50, 0.74);
}

.score-preview {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 32px;
  align-items: center;
}

.score-ring {
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  align-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(3, 20, 50, 1) 57%, transparent 58%),
    conic-gradient(var(--green) calc(var(--score) * 1%), rgba(73, 180, 255, 0.16) 0);
  box-shadow: 0 0 28px rgba(103, 245, 190, 0.2);
}

.score-ring strong {
  font-size: 54px;
  line-height: 1;
}

.score-ring span {
  color: var(--muted);
  font-size: 14px;
}

.score-bars {
  display: grid;
  gap: 22px;
}

.score-bars label {
  display: grid;
  gap: 8px;
  color: #d7f5ff;
  font-weight: 800;
}

.score-bars i {
  height: 12px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(87, 180, 255, 0.16);
}

.score-bars i::before {
  content: "";
  display: block;
  width: var(--value);
  height: 100%;
  background: linear-gradient(90deg, var(--cyan-strong), var(--green));
  box-shadow: 0 0 14px rgba(103, 245, 190, 0.5);
}

.table-like {
  display: grid;
  gap: 10px;
}

.table-like div {
  min-height: 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 0 18px;
  border: 1px solid rgba(72, 183, 255, 0.22);
  border-radius: 6px;
  background: rgba(4, 30, 72, 0.56);
}

.table-like span {
  color: var(--muted);
}

.recommend-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.recommend-list span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #daf7ff;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(29, 105, 190, 0.22);
}

.online-panel {
  width: min(1040px, 76vw);
  min-height: 650px;
}

.online-panel h1 {
  margin: 0 0 26px;
  font-size: 46px;
  text-align: center;
  text-shadow: 0 0 18px rgba(77, 216, 255, 0.75);
}

.student-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 22px;
}

.student-row label {
  min-height: 68px;
  display: grid;
  grid-template-columns: 28px 96px 1fr;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(3, 20, 50, 0.66);
}

.student-row span {
  color: #d7f6ff;
  font-weight: 800;
}

.student-row input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(77, 216, 255, 0.34);
  color: #fff;
  outline: none;
  background: transparent;
}

.question-display {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  margin: 22px 0;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 16, 43, 0.62);
}

.question-display .icon {
  width: 58px;
  height: 58px;
  color: #71ceff;
}

.question-display strong,
.question-display h3 {
  margin: 0;
  font-size: 28px;
}

.question-display span,
.question-display p {
  color: var(--muted);
}

.question-display.filled {
  justify-items: start;
  text-align: left;
  place-items: center start;
}

.extract-panel {
  width: min(1040px, 76vw);
}

.paper-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.paper-meta span {
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: #d7f5ff;
  background: rgba(4, 30, 72, 0.56);
}

.paper-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin-bottom: 28px;
}

.paper-card {
  min-height: 280px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 18px;
  padding: 30px;
  border: 1px solid rgba(88, 190, 255, 0.62);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  background: rgba(5, 35, 86, 0.72);
  box-shadow: inset 0 0 32px rgba(42, 165, 255, 0.16);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}

.paper-card .icon {
  width: 92px;
  height: 92px;
  color: #b9f4ff;
}

.paper-card strong {
  font-size: 30px;
}

.paper-card span {
  color: var(--muted);
  line-height: 1.6;
}

.paper-card.active,
.paper-card:hover {
  border-color: #a9efff;
  box-shadow: inset 0 0 42px rgba(77, 216, 255, 0.3), 0 0 24px rgba(77, 216, 255, 0.28);
}

.exam-layout {
  display: grid;
  gap: 16px;
}

.exam-headline {
  min-height: 62px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
}

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

.exam-headline span {
  color: var(--muted);
}

.exam-headline em {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #dffaff;
  font-style: normal;
}

.exam-scene {
  min-height: 315px;
}

.operation-strip {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 132px 1fr 190px;
  align-items: center;
  gap: 18px;
  padding: 14px 22px;
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 17, 42, 0.84);
}

.operation-strip h3 {
  margin: 0;
}

.info-panel {
  min-height: 245px;
  padding: 22px 28px 28px;
}

.tab-row {
  display: flex;
  gap: 0;
  margin-bottom: 18px;
}

.tab-row button {
  min-width: 150px;
  min-height: 48px;
  border: 1px solid var(--line-soft);
  color: var(--muted);
  cursor: pointer;
  background: rgba(5, 35, 86, 0.58);
}

.tab-row button.active {
  color: #fff;
  border-color: var(--line);
  background: rgba(23, 112, 202, 0.58);
}

.info-stack {
  display: grid;
  gap: 12px;
}

.info-stack div {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 12px 18px;
  border: 1px solid rgba(72, 183, 255, 0.22);
  border-radius: 6px;
  background: rgba(3, 18, 46, 0.6);
}

.info-stack .icon {
  width: 46px;
  height: 46px;
  color: #9eefff;
}

.info-stack p {
  margin: 0;
  color: #c8eafd;
  line-height: 1.7;
}

.results-panel {
  width: min(1040px, 76vw);
}

.results-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 38px;
  align-items: center;
}

.large-ring {
  width: 240px;
  height: 240px;
}

.large-ring strong {
  font-size: 68px;
}

.result-summary {
  min-height: 300px;
  padding: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(2, 16, 43, 0.62);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 5, 16, 0.72);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  width: min(560px, calc(100vw - 48px));
  padding: 38px;
  border: 1px solid var(--line);
  color: var(--text);
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 35, 86, 0.96), rgba(2, 18, 47, 0.96));
  box-shadow: var(--shadow), inset 0 0 40px rgba(77, 216, 255, 0.16);
  clip-path: polygon(22px 0, calc(100% - 22px) 0, 100% 22px, 100% calc(100% - 22px), calc(100% - 22px) 100%, 22px 100%, 0 calc(100% - 22px), 0 22px);
}

.modal-card h2 {
  margin: 12px 0 12px;
  font-size: 30px;
}

.modal-card p {
  color: #c8eafd;
  line-height: 1.8;
}

.modal-icon {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  color: var(--cyan);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(77, 216, 255, 0.1);
}

.modal-icon.amber {
  color: var(--amber);
}

.modal-icon .icon {
  width: 42px;
  height: 42px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  color: #d9f8ff;
  cursor: pointer;
  background: rgba(3, 22, 55, 0.76);
  border-radius: 6px;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 14px;
}

@media (max-width: 1180px) {
  body {
    overflow: auto;
  }

  .screen {
    padding: 18px;
  }

  .page-header,
  .teaching-layout,
  .fault-layout,
  .exam-layout,
  .content-frame.principle-frame {
    width: 100%;
  }

  .page-header {
    height: auto;
    grid-template-columns: 1fr;
  }

  .header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-panel,
  .assessment-panel,
  .online-panel,
  .extract-panel,
  .results-panel {
    width: 100%;
  }

  .home-panel h1 {
    font-size: 42px;
  }

  .content-frame.principle-frame,
  .assessment-grid,
  .fault-bottom,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: repeat(2, 1fr);
    padding: 0;
    border-right: 0;
  }

  .operation-strip {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .home-panel,
  .assessment-panel,
  .online-panel,
  .extract-panel,
  .results-panel,
  .content-frame.principle-frame {
    padding: 28px 18px;
    clip-path: none;
    border-radius: 8px;
  }

  .top-badge {
    min-width: 150px;
    height: 44px;
    font-size: 18px;
  }

  .home-actions,
  .student-row,
  .paper-grid,
  .metric-strip,
  .score-preview {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .hud-button.large {
    min-height: 72px;
    padding-left: 28px;
    font-size: 22px;
  }

  .scene-title {
    font-size: 38px;
  }

  .step-row {
    flex-wrap: wrap;
  }

  .step-arrow {
    display: none;
  }

  .principle-visual {
    grid-template-columns: 1fr;
  }

  .exam-headline {
    grid-template-columns: 1fr;
    padding: 14px;
  }
}
