:root {
  --bg: #f4f2ec;
  --paper: #fffdf7;
  --paper-2: #f7f5ee;
  --ink: #111213;
  --muted: #63645f;
  --line: #111213;
  --yellow: #f7d313;
  --teal: #12d99a;
  --pink: #f06cc4;
  --blue: #4ab8e8;
  --red: #9c1f24;
  --orange: #f6a400;
  --green: #0d765a;
  --danger: #b84a3a;
  --shadow-hard: 7px 7px 0 #111213;
  --shadow-soft: 0 22px 60px rgba(17, 18, 19, 0.14);
  --font-body: "MiSans", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", system-ui, sans-serif;
  --font-display: "Alimama ShuHeiTi", "MiSans Heavy", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

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

.app-shell {
  min-height: 100vh;
}

.screen {
  display: none;
  min-height: 100vh;
}

.screen-active {
  display: block;
}

.landing-screen {
  background:
    linear-gradient(rgba(17, 18, 19, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 19, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
}

.landing-hero {
  min-height: 760px;
  padding: 28px clamp(18px, 4vw, 64px) 44px;
  background:
    radial-gradient(circle at 18% 20%, rgba(18, 217, 154, 0.36), transparent 28%),
    linear-gradient(180deg, #fff200 0%, var(--yellow) 100%);
  border-bottom: 4px solid var(--line);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto 72px;
}

.site-nav strong {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 13px;
  border: 3px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 rgba(17, 18, 19, 0.28);
}

.site-nav div {
  display: flex;
  gap: 8px;
}

.site-nav a {
  padding: 9px 12px;
  border: 3px solid var(--line);
  background: var(--paper);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 4px 4px 0 rgba(17, 18, 19, 0.18);
}

.hero-copy {
  width: min(980px, 100%);
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-bottom: 24px;
  padding: 0 14px;
  border: 3px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 930px;
  margin: 0 auto 22px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8.6vw, 116px);
  line-height: 0.92;
  font-weight: 900;
}

.hero-copy p {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(17, 18, 19, 0.75);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.6;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin: 44px auto 34px;
}

.hero-stats div {
  min-height: 88px;
  padding: 14px;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  text-align: center;
}

.hero-stats span,
.module-card span,
.level-card small,
.level-sector,
.topbar-label,
.case-kicker,
.node-label {
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-stats span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.hero-stats strong {
  font-size: 28px;
}

.module-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.module-card {
  min-height: 150px;
  padding: 18px;
  border: 4px solid var(--line);
  box-shadow: var(--shadow-hard);
  transform: rotate(-1deg);
}

.module-card:nth-child(even) {
  transform: rotate(1deg);
}

.module-card span {
  display: inline-block;
  margin-bottom: 28px;
}

.module-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: 19px;
}

.module-card p {
  margin-bottom: 0;
  color: rgba(17, 18, 19, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.module-teal {
  background: var(--teal);
}

.module-pink {
  background: var(--pink);
}

.module-yellow {
  background: #fff200;
}

.module-dark {
  background: #242424;
  color: #fff;
}

.module-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.ticker {
  display: flex;
  justify-content: center;
  gap: 34px;
  overflow: hidden;
  padding: 12px 18px;
  border-bottom: 4px solid var(--line);
  background: #242424;
  color: #fff;
  white-space: nowrap;
}

.ticker span {
  position: relative;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0.02em;
}

.ticker span::before {
  content: "//";
  margin-right: 34px;
  color: rgba(255, 255, 255, 0.28);
}

.ticker span:first-child::before {
  content: "";
  margin-right: 0;
}

.case-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  gap: 22px;
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: 28px clamp(14px, 3vw, 38px) 60px;
  align-items: start;
}

.filter-sidebar,
.action-rail,
.feature-panel,
.search-panel,
.level-card,
.briefing-card,
.decision-card,
.feedback-card,
.result-block,
.result-hero,
.share-card {
  border: 4px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}

.filter-sidebar,
.action-rail {
  position: sticky;
  top: 16px;
}

.side-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.sort-button,
.case-tab,
.action-tab,
.primary-action,
.secondary-action,
.ghost-button {
  border: 3px solid var(--line);
  background: var(--paper);
  font-weight: 1000;
  cursor: pointer;
}

.sort-button {
  min-height: 48px;
  text-align: left;
  padding: 0 14px;
  box-shadow: 3px 3px 0 #111213;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.sort-button-active {
  background: var(--yellow);
}

.filter-block {
  border-top: 4px solid var(--line);
  background: var(--paper);
}

.filter-block h2,
.action-rail h2 {
  margin: 0;
  padding: 14px;
  border-bottom: 3px solid var(--line);
  background: var(--orange);
  font-size: 16px;
}

.filter-block label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(17, 18, 19, 0.18);
  color: #272822;
  font-size: 14px;
}

.filter-groups {
  display: grid;
}

.filter-drawer-head,
.filter-toggle,
.filter-backdrop {
  display: none;
}

.filter-helper {
  margin: 0;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(17, 18, 19, 0.14);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.filter-block input {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}

.case-main {
  display: grid;
  gap: 18px;
}

.feature-panel {
  padding: 26px;
  background: #171717;
  color: #fff;
}

.feature-panel span {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 10px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 12px;
  font-weight: 1000;
}

.feature-panel h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.05;
}

.feature-panel p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.feature-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.feature-steps b {
  color: var(--yellow);
  font-size: 13px;
}

.search-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 78px;
  padding: 0 22px;
  background: #fff;
}

.search-panel strong {
  font-size: clamp(18px, 2vw, 25px);
}

.search-panel span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.case-search {
  display: grid;
  gap: 6px;
  min-width: min(100%, 420px);
}

.case-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 1000;
}

.case-search input {
  width: min(100%, 460px);
  min-height: 40px;
  padding: 0 12px;
  border: 3px solid var(--line);
  background: var(--paper);
  font-weight: 900;
  outline: none;
}

.case-search input:focus {
  background: #fff;
  box-shadow: 3px 3px 0 #111213;
}

.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.case-tab {
  min-height: 42px;
  padding: 0 14px;
  box-shadow: 4px 4px 0 #111213;
}

.case-tab-active {
  background: #171717;
  color: #fff;
}

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

.empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  min-height: 120px;
  padding: 22px;
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
  align-content: center;
  color: var(--muted);
  font-weight: 900;
}

.empty-state strong {
  color: var(--ink);
  font-size: 20px;
}

.case-load-more,
.case-load-complete {
  grid-column: 1 / -1;
}

.case-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 92px;
  padding: 18px;
  border: 3px dashed var(--line);
  background:
    linear-gradient(135deg, rgba(247, 211, 19, 0.2), transparent 42%),
    var(--paper);
  color: var(--ink);
  font-weight: 1000;
}

.case-load-more div {
  display: grid;
  gap: 4px;
}

.case-load-more b {
  font-size: 16px;
}

.case-load-more small {
  color: var(--muted);
  font-size: 12px;
}

.case-spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(17, 18, 19, 0.18);
  border-top-color: var(--line);
  border-right-color: var(--yellow);
  border-radius: 50%;
  animation: case-spin 820ms linear infinite;
}

.case-load-more-loading {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(18, 217, 154, 0.2), transparent 42%),
    var(--paper);
}

.case-load-complete {
  min-height: 56px;
  padding: 16px;
  border: 2px solid rgba(17, 18, 19, 0.2);
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

@keyframes case-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .case-spinner {
    animation: none;
  }
}

.level-card {
  position: relative;
  min-height: 250px;
  padding: 18px;
  text-align: left;
}

.level-card-active {
  background: #fffef2;
}

.level-card:disabled {
  color: rgba(17, 18, 19, 0.64);
  cursor: default;
  box-shadow: 5px 5px 0 rgba(17, 18, 19, 0.52);
}

.level-sector {
  display: inline-flex;
  padding: 6px 9px;
  border: 2px solid var(--line);
  background: var(--orange);
}

.level-card strong,
.level-card em,
.level-card small {
  display: block;
}

.level-card strong {
  margin: 28px 0 4px;
  font-family: var(--font-display);
  font-size: 30px;
}

.level-card em {
  margin-bottom: 16px;
  font-style: normal;
  font-size: 17px;
  font-weight: 1000;
}

.level-card p {
  color: #34342f;
  line-height: 1.65;
}

.level-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 32px;
}

.level-tags i {
  padding: 5px 7px;
  border: 2px solid rgba(17, 18, 19, 0.78);
  background: rgba(255, 255, 255, 0.72);
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}

.level-card small {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 9px;
  border: 2px solid var(--line);
  background: var(--yellow);
}

.level-card-library {
  background:
    linear-gradient(135deg, rgba(74, 184, 232, 0.12), transparent 42%),
    var(--paper);
}

.level-card-library small {
  background: #fff;
}

.case-preview {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 3px solid var(--line);
  background:
    linear-gradient(135deg, rgba(18, 217, 154, 0.13), transparent 38%),
    var(--paper);
  box-shadow: 5px 5px 0 #111213;
}

.case-preview-empty {
  background: var(--paper);
}

.case-preview > strong,
.case-preview-head strong {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.case-preview p {
  margin: 0;
  color: #34342f;
  line-height: 1.7;
}

.case-preview-head {
  display: grid;
  gap: 8px;
}

.case-preview-head span {
  color: var(--red);
  font-size: 12px;
  font-weight: 1000;
}

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

.preview-grid div {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
}

.preview-grid b {
  font-size: 14px;
}

.preview-grid span {
  color: #4b4c46;
  font-size: 13px;
  line-height: 1.6;
}

.preview-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preview-nodes i {
  padding: 7px 9px;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}

.action-rail {
  padding-bottom: 14px;
}

.action-tab {
  display: block;
  width: calc(100% - 28px);
  min-height: 52px;
  margin: 12px 14px 0;
  padding: 0 12px;
  text-align: left;
  box-shadow: 4px 4px 0 #111213;
}

.action-tab-active {
  background: var(--yellow);
}

.action-note {
  margin: 16px 14px 0;
  padding: 14px;
  border: 3px solid var(--line);
  background: #171717;
  color: #fff;
}

.action-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--yellow);
}

.action-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  line-height: 1.65;
}

.play-screen {
  padding: 18px;
  background:
    linear-gradient(rgba(17, 18, 19, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 18, 19, 0.03) 1px, transparent 1px),
    #e9eee9;
  background-size: 36px 36px;
}

.play-container,
.feedback-card {
  width: min(100%, 520px);
  margin: 0 auto;
}

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

.topbar > div {
  text-align: right;
}

.topbar-label {
  margin-bottom: 4px;
  color: var(--muted);
}

.topbar strong {
  font-size: 18px;
}

.ghost-button {
  min-width: 72px;
  min-height: 42px;
  padding: 0 12px;
  box-shadow: 4px 4px 0 #111213;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border: 3px solid var(--line);
  background: #fff;
}

.progress-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--yellow));
  transition: width 220ms ease;
}

.fact-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 3px solid rgba(156, 31, 36, 0.88);
  background: rgba(156, 31, 36, 0.08);
}

.fact-strip strong {
  color: var(--red);
  font-size: 13px;
}

.fact-strip span {
  color: #4d3e39;
  font-size: 13px;
  line-height: 1.55;
}

.metrics {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.metric {
  display: grid;
  grid-template-columns: 76px 1fr 34px;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  border: 3px solid var(--line);
  background: var(--paper);
}

.metric span {
  color: #30322d;
  font-size: 13px;
  font-weight: 900;
}

.metric div {
  height: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
}

.metric i {
  display: block;
  width: 50%;
  height: 100%;
  background: var(--green);
  transition: width 220ms ease, background 220ms ease;
}

.metric b {
  text-align: right;
  font-size: 13px;
}

.decision-card,
.feedback-card,
.briefing-card,
.result-block,
.result-hero,
.share-card {
  border-width: 4px;
}

.briefing-screen .play-container {
  max-width: 1080px;
}

.briefing-card {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: 0;
  overflow: hidden;
  margin-bottom: 14px;
}

.briefing-copy {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px);
}

.briefing-copy h2 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.02;
}

.briefing-subtitle,
.briefing-copy > p {
  margin: 0;
  color: #3e4039;
  font-size: 16px;
  line-height: 1.72;
}

.briefing-subtitle {
  color: var(--red);
  font-weight: 1000;
}

.briefing-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 2px solid rgba(17, 18, 19, 0.14);
}

.briefing-section h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.briefing-section p,
.briefing-section li {
  margin: 0;
  color: #3e4039;
  line-height: 1.75;
}

.briefing-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.briefing-section li {
  position: relative;
  padding-left: 20px;
}

.briefing-section li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 9px;
  height: 9px;
  border: 2px solid var(--line);
  background: var(--yellow);
}

.briefing-focus {
  padding: 14px;
  border: 3px solid var(--line);
  background: rgba(247, 211, 19, 0.18);
}

.briefing-visual {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 520px;
  margin: 0;
  border-left: 4px solid var(--line);
  background:
    radial-gradient(circle at 28% 28%, rgba(18, 217, 154, 0.45), transparent 30%),
    linear-gradient(135deg, #fff200 0%, #f7d313 48%, #fffdf7 100%);
}

.briefing-visual img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.briefing-visual img[src=""] {
  display: none;
}

.briefing-visual figcaption {
  min-height: 62px;
  padding: 12px 14px;
  border-top: 4px solid var(--line);
  background: #242424;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
}

.decision-card {
  padding: 20px;
}

.node-label {
  margin-bottom: 10px;
  color: var(--red);
}

.decision-card h2 {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.16;
}

.decision-card p {
  color: #3e4039;
  font-size: 15px;
  line-height: 1.75;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.choice-button {
  width: 100%;
  min-height: 78px;
  padding: 14px;
  border: 3px solid var(--line);
  background: #fff;
  text-align: left;
  box-shadow: 4px 4px 0 rgba(17, 18, 19, 0.78);
  cursor: pointer;
}

.choice-button strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.choice-button span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.choice-button:hover,
.level-card-active:hover,
.action-tab:hover,
.case-tab:hover,
.sort-button:hover {
  transform: translate(-1px, -1px);
}

.primary-action,
.secondary-action {
  width: 100%;
  min-height: 54px;
  box-shadow: 4px 4px 0 #111213;
}

.primary-action {
  background: var(--yellow);
}

.secondary-action {
  background: #fff;
}

.primary-action:active,
.secondary-action:active,
.choice-button:active,
.ghost-button:active,
.action-tab:active,
.level-card-active:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #111213;
}

.feedback-screen.screen-active {
  display: flex;
  align-items: center;
}

.feedback-card {
  padding: 24px;
}

.case-kicker {
  color: var(--red);
}

.feedback-card h2 {
  margin: 10px 0;
  font-size: 28px;
}

.feedback-card p {
  color: #3e4039;
  font-size: 15px;
  line-height: 1.75;
}

.delta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.delta-pill {
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 1000;
}

.delta-pill.positive {
  background: rgba(18, 217, 154, 0.28);
  color: var(--green);
}

.delta-pill.negative {
  background: rgba(184, 74, 58, 0.16);
  color: var(--danger);
}

.result-hero {
  position: relative;
  overflow: hidden;
  padding: 26px;
  margin-bottom: 16px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(247, 211, 19, 0.42), transparent 38%),
    var(--paper);
}

.result-hero h2 {
  margin: 12px 0;
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 58px);
  line-height: 1.1;
}

.result-hero p {
  max-width: 760px;
  margin-bottom: 0;
  color: #242722;
  font-size: 18px;
  line-height: 1.8;
  font-weight: 800;
}

.result-hero .case-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: var(--red);
  color: #fff;
}

.share-card {
  display: grid;
  grid-template-columns: 1fr minmax(128px, 180px);
  gap: 18px;
  align-items: center;
  min-height: 210px;
  margin-bottom: 14px;
  padding: 18px;
}

.share-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 9px;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-size: 12px;
  font-weight: 1000;
}

.share-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 42px);
  line-height: 0.96;
}

.share-card p {
  margin-bottom: 0;
  color: #3e4039;
  font-size: 15px;
  line-height: 1.65;
  font-weight: 900;
}

.profile-visual {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  border: 3px solid var(--line);
  background-color: var(--yellow);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: 6px 6px 0 #111213;
}

.profile-visual span {
  display: none;
}

.result-block {
  padding: 18px;
  margin-bottom: 14px;
}

.result-block h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.result-block p {
  color: #3e4039;
  font-size: 14px;
  line-height: 1.75;
}

.result-metrics {
  display: grid;
  gap: 8px;
}

.result-row {
  display: grid;
  grid-template-columns: 78px 1fr 34px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 900;
}

.result-row div {
  height: 10px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #fff;
}

.result-row i {
  display: block;
  height: 100%;
  background: var(--green);
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.source-links a {
  padding: 8px 10px;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-size: 13px;
  font-weight: 1000;
  text-decoration: none;
}

.result-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-bottom: 12px;
}

@media (max-width: 1180px) {
  .case-workbench {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .action-rail {
    position: static;
    grid-column: 1 / -1;
  }

  .action-rail {
    display: grid;
    grid-template-columns: 160px repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
    padding: 14px;
  }

  .action-rail h2 {
    border: 3px solid var(--line);
  }

  .action-tab,
  .action-note {
    width: auto;
    margin: 0;
  }

  .action-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .landing-hero {
    min-height: auto;
    padding: 18px 14px 32px;
  }

  .site-nav {
    margin-bottom: 48px;
  }

  .site-nav div {
    display: none;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-copy h1 {
    font-size: clamp(42px, 14vw, 70px);
  }

  .hero-copy p {
    margin-left: 0;
  }

  .hero-stats,
  .module-board,
  .level-board,
  .feature-steps {
    grid-template-columns: 1fr;
  }

  .module-card {
    min-height: 126px;
    transform: none;
  }

  .module-card:nth-child(even) {
    transform: none;
  }

  .case-workbench {
    grid-template-columns: 1fr;
    padding: 18px 12px 46px;
  }

  .filter-sidebar,
  .action-rail {
    position: static;
  }

  .filter-sidebar {
    display: grid;
    gap: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .side-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .sort-button {
    min-height: 42px;
    padding: 0 10px;
    font-size: 13px;
  }

  .filter-block label {
    min-height: 38px;
  }

  .feature-panel {
    padding: 20px;
  }

  .search-panel {
    display: grid;
    min-height: auto;
    padding: 18px;
  }

  .action-rail {
    display: grid;
    grid-template-columns: 1fr;
    padding: 0 0 14px;
  }

  .action-rail h2 {
    border-width: 0 0 3px;
  }

  .action-tab,
  .action-note {
    width: calc(100% - 28px);
    margin: 0 14px;
  }

  .play-screen {
    padding: 14px;
  }
}

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-stats div {
    min-height: 76px;
    padding: 10px 6px;
  }

  .hero-stats strong {
    font-size: 20px;
  }

  .hero-stats span,
  .module-card span,
  .level-sector,
  .topbar-label,
  .case-kicker,
  .node-label {
    font-size: 11px;
  }

  .level-card {
    min-height: 232px;
  }

  .level-card strong {
    font-size: 26px;
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .profile-visual {
    width: min(100%, 220px);
    justify-self: center;
  }
}

/* Landing refresh */
.landing-hero {
  min-height: auto;
  padding: 24px clamp(16px, 4vw, 56px) 30px;
}

.site-nav {
  margin-bottom: 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(22px, 4vw, 54px);
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  width: auto;
  margin: 0;
  text-align: left;
}

.hero-badge {
  min-height: 34px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  max-width: 620px;
  margin: 0 0 14px;
  font-size: clamp(52px, 8vw, 104px);
  line-height: 0.95;
}

.hero-copy p {
  max-width: 520px;
  margin: 0 0 24px;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.45;
}

.hero-cta {
  min-height: 58px;
  padding: 0 22px;
  border: 4px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-weight: 1000;
  box-shadow: var(--shadow-hard);
  cursor: pointer;
}

.hero-cta:hover {
  transform: translate(-1px, -1px);
}

.hero-cta:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 #111213;
}

.module-board {
  grid-template-columns: 1fr;
  gap: 12px;
  width: auto;
  margin: 0;
}

.module-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px 16px;
  min-height: auto;
  padding: 20px;
  transform: none;
}

.module-card:nth-child(even) {
  transform: none;
}

.module-card span {
  grid-row: span 2;
  margin: 0;
  font-size: 18px;
}

.module-card strong {
  margin: 0;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.12;
}

.module-card p {
  font-size: 16px;
  line-height: 1.55;
}

.ticker {
  padding: 10px 18px;
}

.case-workbench {
  grid-template-columns: 260px minmax(420px, 1fr) 260px;
  gap: 18px;
  padding-top: 22px;
}

.feature-panel {
  padding: 20px;
}

.feature-panel h2 {
  max-width: 640px;
  font-size: clamp(25px, 3vw, 38px);
}

.feature-panel p {
  margin-bottom: 0;
}

.feature-steps {
  margin-top: 16px;
  padding-top: 14px;
}

.search-panel {
  min-height: 60px;
  padding: 12px 18px;
}

.level-board {
  gap: 14px;
}

.level-card {
  min-height: 218px;
  padding: 16px;
}

.level-card strong {
  margin-top: 22px;
  font-size: 27px;
}

.level-card em {
  margin-bottom: 12px;
}

.level-card p {
  margin-bottom: 30px;
}

@media (max-width: 1180px) and (min-width: 981px) {
  .case-workbench {
    grid-template-columns: 230px minmax(360px, 1fr) 230px;
  }

  .action-rail {
    display: block;
    position: sticky;
    top: 16px;
    grid-column: auto;
    padding: 0 0 14px;
  }

  .action-rail h2 {
    border-width: 0 0 3px;
  }

  .action-tab {
    width: calc(100% - 28px);
    margin: 12px 14px 0;
  }

  .action-note {
    width: auto;
    margin: 16px 14px 0;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .case-workbench {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 18px 14px 48px;
  }

  .filter-sidebar,
  .action-rail {
    position: static;
  }

  .filter-sidebar {
    display: grid;
    gap: 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .side-stack {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 0;
  }

  .action-rail {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 0 14px;
  }

  .action-tab,
  .action-note {
    width: calc(100% - 28px);
    margin: 0 14px;
  }
}

@media (max-width: 640px) {
  .landing-hero {
    padding: 16px 14px 24px;
  }

  .site-nav {
    margin-bottom: 30px;
  }

  .hero-copy h1 {
    font-size: clamp(44px, 17vw, 68px);
  }

  .hero-copy p {
    font-size: 17px;
  }

  .hero-cta {
    width: 100%;
  }

  .module-card {
    grid-template-columns: 36px 1fr;
    padding: 14px;
  }

  .case-workbench {
    padding-inline: 12px;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }

  .sort-button {
    min-height: 44px;
  }

  .filter-block h2,
  .action-rail h2 {
    padding: 12px 14px;
  }

  .feature-panel,
  .search-panel,
  .level-card,
  .briefing-card,
  .decision-card,
  .feedback-card,
  .result-block,
  .result-hero,
  .share-card {
    box-shadow: 5px 5px 0 #111213;
  }

  .feature-steps,
  .level-board,
  .briefing-card {
    grid-template-columns: 1fr;
  }

  .briefing-visual {
    min-height: auto;
    border-top: 4px solid var(--line);
    border-left: 0;
  }

  .briefing-visual img {
    min-height: 280px;
  }

  .feature-panel {
    padding: 18px;
  }

  .feature-panel h2 {
    font-size: 25px;
  }

  .search-panel {
    display: grid;
    gap: 6px;
  }

  .case-tabs {
    gap: 8px;
  }

  .case-tab {
    flex: 1 1 calc(50% - 8px);
  }

  .level-card {
    min-height: 210px;
  }

  .level-card strong {
    font-size: 25px;
  }
}

/* Focused polish pass */
.site-nav {
  justify-content: center;
  margin-bottom: 28px;
}

.site-nav strong {
  min-height: 42px;
  padding: 0 16px;
}

.landing-hero {
  padding-bottom: 34px;
}

.hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(64px, 8vw, 118px);
  line-height: 0.96;
  white-space: nowrap;
}

.hero-copy p {
  max-width: 780px;
  margin-bottom: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 32px);
}

.hero-copy {
  min-width: 0;
}

.hero-cta {
  display: none;
}

.module-board {
  max-width: 420px;
}

.module-card {
  border-width: 3px;
  box-shadow: 5px 5px 0 #111213;
}

.case-workbench {
  grid-template-columns: 248px minmax(0, 980px);
  justify-content: center;
  gap: 24px;
  padding-top: 30px;
}

.case-main {
  gap: 14px;
}

.case-main .search-panel {
  margin-top: 0;
}

.filter-sidebar,
.feature-panel,
.search-panel,
.level-card {
  border-width: 3px;
  box-shadow: 5px 5px 0 #111213;
}

.filter-sidebar {
  box-shadow: 5px 5px 0 #111213;
}

.side-stack {
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(17, 18, 19, 0.12);
  background: rgba(255, 253, 247, 0.5);
}

.side-stack .sort-button {
  min-height: 44px;
  border-width: 1px;
  border-color: rgba(17, 18, 19, 0.18);
  background: rgba(255, 253, 247, 0.78);
  box-shadow: none;
  font-size: 14px;
  border-radius: 0;
}

.side-stack .sort-button:hover {
  transform: none;
  border-color: rgba(17, 18, 19, 0.36);
  background: #fff;
  box-shadow: none;
}

.side-stack .sort-button-active {
  border-color: var(--line);
  background: var(--yellow);
  box-shadow: inset 4px 0 0 var(--line);
}

.feature-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  padding: 24px;
}

.feature-panel span {
  width: max-content;
}

.feature-panel h2 {
  max-width: 620px;
  margin-bottom: 10px;
}

.feature-panel p {
  max-width: 620px;
}

.feature-steps {
  grid-template-columns: 1fr;
  min-width: 150px;
  margin: 0;
  padding: 0 0 0 18px;
  border-top: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.search-panel {
  background: var(--paper);
}

.level-board {
  grid-template-columns: repeat(2, minmax(260px, 1fr));
}

.level-card {
  min-height: 205px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.level-card-active {
  background:
    linear-gradient(135deg, rgba(247, 211, 19, 0.22), transparent 44%),
    var(--paper);
}

.level-card-active::after {
  content: "开始测试";
  position: absolute;
  right: 14px;
  top: 14px;
  padding: 7px 9px;
  border: 2px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 1000;
}

.level-card-active small {
  background: var(--teal);
}

.result-block:has(#resultMetrics) {
  background:
    linear-gradient(135deg, rgba(18, 217, 154, 0.08), transparent 36%),
    var(--paper);
}

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

.result-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 132px;
  padding: 14px;
  border: 3px solid var(--line);
  background: #fff;
  box-shadow: 4px 4px 0 rgba(17, 18, 19, 0.18);
  font-size: 13px;
  font-weight: 900;
}

.result-row-head,
.result-row-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.result-row .result-row-head,
.result-row .result-row-foot {
  height: auto;
  overflow: visible;
  border: 0;
  background: transparent;
}

.result-row-head span {
  font-size: 15px;
  font-weight: 1000;
}

.result-row-head b {
  font-size: 32px;
  line-height: 1;
}

.result-row .result-row-bar {
  height: 12px;
  overflow: hidden;
  border: 2px solid var(--line);
  background: #f2f0e8;
}

.result-row .result-row-bar i {
  display: block;
  height: 100%;
}

.result-row-foot small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.result-row-foot em {
  padding: 5px 8px;
  border: 2px solid var(--line);
  background: var(--yellow);
  font-style: normal;
  font-size: 12px;
  font-weight: 1000;
}

.result-row.metric-strong .result-row-foot em,
.result-row.metric-stable .result-row-foot em {
  background: var(--teal);
}

.result-row.metric-danger .result-row-foot em {
  background: #ff6b6b;
}

@media (max-width: 980px) {
  .site-nav {
    justify-content: flex-start;
  }

  .case-workbench {
    grid-template-columns: 1fr;
  }

  .feature-panel {
    grid-template-columns: 1fr;
  }

  .feature-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 14px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }
}

@media (max-width: 700px) {
  .hero-grid,
  .level-board,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .result-actions {
    grid-template-columns: 1fr;
  }

  .module-board {
    max-width: none;
  }

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

@media (max-width: 760px) {
  .hero-copy h1,
  .hero-copy p {
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  body.filter-drawer-open {
    overflow: hidden;
  }

  .case-workbench {
    grid-template-columns: minmax(0, 1fr);
    max-width: 980px;
    padding-top: 18px;
  }

  .filter-toggle {
    position: sticky;
    top: 10px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 3px solid var(--line);
    background: var(--yellow);
    box-shadow: 5px 5px 0 #111213;
    font-weight: 1000;
    cursor: pointer;
  }

  .filter-toggle span {
    font-family: var(--font-display);
    font-size: 18px;
  }

  .filter-toggle b {
    min-width: 0;
    color: rgba(17, 18, 19, 0.68);
    font-size: 13px;
    overflow: hidden;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .filter-backdrop {
    position: fixed;
    inset: 0;
    z-index: 60;
    border: 0;
    background: rgba(17, 18, 19, 0.34);
    cursor: pointer;
  }

  body.filter-drawer-open .filter-backdrop {
    display: block;
  }

  .filter-sidebar,
  .filter-sidebar[aria-label] {
    position: fixed;
    top: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 70;
    display: block;
    width: min(360px, calc(100vw - 28px));
    overflow-y: auto;
    border: 3px solid var(--line);
    background: var(--paper);
    box-shadow: 7px 7px 0 #111213;
    transform: translateX(calc(-100% - 30px));
    transition: transform 180ms ease;
  }

  .filter-sidebar.filter-sidebar-open {
    transform: translateX(0);
  }

  .filter-drawer-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border-bottom: 3px solid var(--line);
    background: var(--yellow);
  }

  .filter-drawer-head strong {
    font-family: var(--font-display);
    font-size: 18px;
  }

  .filter-drawer-head button {
    min-height: 34px;
    padding: 0 10px;
    border: 2px solid var(--line);
    background: var(--paper);
    font-size: 13px;
    font-weight: 1000;
    cursor: pointer;
  }

  .side-stack {
    grid-template-columns: 1fr;
    margin: 0;
    padding: 10px;
    border: 0;
    border-bottom: 3px solid var(--line);
    background: var(--paper);
  }

  .side-stack .sort-button {
    min-height: 44px;
    border: 2px solid rgba(17, 18, 19, 0.18);
    font-size: 15px;
  }

  .side-stack .sort-button-active {
    border-color: var(--line);
    background: var(--yellow);
  }

  .filter-block {
    border-top: 0;
    border-bottom: 3px solid var(--line);
  }

  .filter-block:last-child {
    border-bottom: 0;
  }

  .case-main {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .filter-toggle {
    min-height: 48px;
    box-shadow: 4px 4px 0 #111213;
  }

  .filter-toggle span {
    font-size: 16px;
  }

  .filter-toggle b {
    max-width: 58%;
    font-size: 12px;
  }

  .filter-sidebar,
  .filter-sidebar[aria-label] {
    inset: 10px;
    width: auto;
    transform: translateX(calc(-100% - 22px));
  }
}
