:root {
  color-scheme: light;
  --ink: #14201e;
  --muted: #66716f;
  --paper: #f4f0e7;
  --paper-2: #fbfaf6;
  --panel: rgba(255, 255, 255, 0.88);
  --line: #d6ded8;
  --line-strong: #b9c8c1;
  --teal: #187a70;
  --red: #d75a3a;
  --blue: #315fb2;
  --gold: #9f731d;
  --violet: #7155a6;
  --shadow: 0 18px 48px rgba(29, 38, 35, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(20, 32, 30, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 32, 30, 0.045) 1px, transparent 1px),
    linear-gradient(120deg, rgba(215, 90, 58, 0.08), transparent 32%),
    linear-gradient(240deg, rgba(49, 95, 178, 0.1), transparent 34%),
    var(--paper);
  background-size:
    34px 34px,
    34px 34px,
    auto,
    auto,
    auto;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1480px, calc(100% - 32px));
  margin: 0 auto;
  padding: 12px 0 34px;
}

.site-top {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(24, 122, 112, 0.32);
  background: rgba(24, 122, 112, 0.1);
  color: var(--teal);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 850;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.quick-nav {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(20, 32, 30, 0.1);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(16px);
}

.quick-nav a {
  min-width: 62px;
  padding: 8px 12px;
  color: #34403e;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 760;
}

.quick-nav a:hover {
  background: rgba(24, 122, 112, 0.1);
  color: var(--teal);
}

.hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  align-items: start;
}

.hero-copy,
.transform-lab,
.concept-menu,
.learning-path {
  min-width: 0;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(18px, 2.2vw, 30px) clamp(24px, 3.2vw, 44px)
    clamp(24px, 3vw, 38px);
  position: relative;
  overflow: hidden;
}

.hero-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 5px solid var(--red);
  pointer-events: none;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--teal);
  font-size: 0.78rem;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  max-width: 730px;
  font-size: clamp(2.38rem, 3.55vw, 3.72rem);
  line-height: 1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin-bottom: 18px;
  color: #33413e;
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.72;
}

.launch-panel {
  display: grid;
  gap: 12px;
  margin-top: 0;
}

.panel-label {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--line);
}

.panel-label span {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.panel-label small {
  color: var(--muted);
  line-height: 1.4;
}

.action-link {
  min-height: 74px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-content: center;
  position: relative;
  padding: 13px 44px 13px 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
}

.action-link::after {
  content: "进入";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
}

.action-link:hover {
  transform: translateY(-2px);
  border-color: rgba(24, 122, 112, 0.42);
  background: #fff;
  box-shadow: 0 12px 28px rgba(29, 38, 35, 0.1);
}

.action-link b {
  grid-row: span 2;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(49, 95, 178, 0.26);
  background: rgba(49, 95, 178, 0.08);
  color: var(--blue);
  font-size: 0.86rem;
}

.action-link span {
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
}

.action-link small {
  min-width: 0;
  color: var(--muted);
  line-height: 1.45;
}

.action-link.strong {
  border-color: rgba(215, 90, 58, 0.34);
  background: rgba(215, 90, 58, 0.08);
}

.action-link.strong b {
  border-color: rgba(215, 90, 58, 0.32);
  background: rgba(215, 90, 58, 0.12);
  color: var(--red);
}

.transform-lab {
  padding: clamp(16px, 1.8vw, 22px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
}

.lab-head,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.lab-head h2,
.section-head h2,
.section-title h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0;
}

.formula-stack {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  padding: 8px 10px;
  border: 1px solid rgba(24, 122, 112, 0.2);
  background: rgba(255, 255, 255, 0.68);
}

.formula-label,
.formula-arrow {
  color: var(--muted);
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 760;
}

#conceptFormula {
  min-width: 86px;
  padding: 7px 12px;
  border: 1px solid rgba(24, 122, 112, 0.25);
  background: rgba(24, 122, 112, 0.08);
  color: var(--teal);
  text-align: center;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  font-size: 1.26rem;
  font-weight: 760;
}

#spaceCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 1px solid var(--line);
  background: #fbfaf6;
}

.concept-text {
  min-height: 0;
  margin: 0;
  color: #33413e;
  font-size: 0.92rem;
  line-height: 1.5;
}

.concept-board {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.concept-menu {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.section-title {
  margin-bottom: 4px;
}

.concept-tab {
  width: 100%;
  min-height: 74px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.64);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.concept-tab:hover,
.concept-tab.active {
  border-color: rgba(49, 95, 178, 0.38);
  background: rgba(49, 95, 178, 0.08);
  transform: translateX(2px);
}

.concept-tab span {
  display: block;
  margin-bottom: 5px;
  font-weight: 850;
}

.concept-tab small {
  color: var(--muted);
  line-height: 1.4;
}

.learning-path {
  padding: 20px;
}

.mini-matrix {
  display: grid;
  grid-template-columns: repeat(2, 42px);
  gap: 4px;
  padding: 7px;
  border-left: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
}

.mini-matrix span {
  height: 24px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.68);
  color: #35413f;
  font-size: 0.76rem;
  font-weight: 760;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.path-grid article {
  min-height: 154px;
  padding: 17px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.step {
  display: inline-flex;
  width: 40px;
  height: 30px;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(159, 115, 29, 0.24);
  background: rgba(159, 115, 29, 0.1);
  color: var(--gold);
  font-weight: 850;
}

.path-grid h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.path-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 1180px) {
  .hero,
  .concept-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1480px);
    padding-top: 10px;
  }

  .site-top,
  .panel-label,
  .lab-head,
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .quick-nav {
    width: 100%;
  }

  .quick-nav a {
    flex: 1;
  }

  .hero-copy,
  .transform-lab,
  .concept-menu,
  .learning-path {
    padding: 16px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  .action-link {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .action-link b {
    width: 36px;
    height: 36px;
  }

  #spaceCanvas {
    height: auto;
    aspect-ratio: 16 / 7.4;
  }

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