:root {
  --bg: #07110f;
  --panel: rgba(10, 24, 22, 0.78);
  --panel-strong: rgba(14, 35, 31, 0.92);
  --line: rgba(126, 231, 211, 0.24);
  --text: #eafffb;
  --muted: #a9c4bd;
  --ink: #102a43;
  --paper: #f7fcfa;
  --paper-muted: #52606d;
  --cyan: #48f2d2;
  --teal: #0f766e;
  --green: #8ff05a;
  --orange: #ffb454;
  --pink: #ff6ea9;
  --blue: #8ab4ff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

.topic-page-dark {
  background:
    linear-gradient(90deg, rgba(72, 242, 210, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(143, 240, 90, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 50% 0%, rgba(72, 242, 210, 0.16), transparent 42%),
    radial-gradient(circle at 86% 18%, rgba(255, 110, 169, 0.1), transparent 24%),
    var(--bg);
  background-size: 56px 56px, 56px 56px, auto, auto, auto;
}

.topic-page-light {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 212, 191, 0.2), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.16), transparent 24%),
    linear-gradient(180deg, #f8fcfb 0%, #eef8f5 42%, #fff 100%);
}

canvas[data-topic-canvas] {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

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

main,
.topic-nav,
.topic-footer {
  position: relative;
  z-index: 1;
}

.topic-nav {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 17, 15, 0.78);
  backdrop-filter: blur(18px);
}

.topic-page-light .topic-nav {
  border-bottom-color: rgba(15, 118, 110, 0.14);
  background: rgba(248, 252, 251, 0.86);
}

.brand,
.topic-nav nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 900;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(72, 242, 210, 0.65);
  border-radius: 8px;
  color: var(--cyan);
  box-shadow: 0 0 28px rgba(72, 242, 210, 0.18);
}

.topic-page-light .brand-mark {
  border-color: rgba(15, 118, 110, 0.3);
  background: #0f766e;
  color: #fff;
}

.topic-nav nav {
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.topic-page-light .topic-nav nav {
  color: var(--paper-muted);
}

.topic-nav nav a {
  border-radius: 999px;
  padding: 7px 10px;
}

.topic-nav nav a:hover {
  background: rgba(72, 242, 210, 0.1);
  color: var(--cyan);
}

.topic-page-light .topic-nav nav a:hover {
  background: rgba(15, 118, 110, 0.09);
  color: var(--teal);
}

.topic-hero,
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  min-height: 86vh;
  padding: 74px 0 48px;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(44px, 8vw, 96px);
  line-height: 0.98;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

.topic-page-light .hero-lead,
.topic-page-light .section-title p,
.topic-page-light .glass-card p,
.topic-page-light .timeline-item p,
.topic-page-light .qa-card p,
.topic-page-light .warning-card p,
.topic-page-light .story-step span {
  color: var(--paper-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(72, 242, 210, 0.56);
  border-radius: 999px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(72, 242, 210, 0.2), rgba(143, 240, 90, 0.08));
  color: var(--text);
  font-weight: 900;
  box-shadow: 0 16px 42px rgba(72, 242, 210, 0.12);
}

.topic-page-light .button {
  border-color: rgba(15, 118, 110, 0.28);
  background: linear-gradient(135deg, #0f766e, #14b8a6);
  color: #fff;
}

.button.ghost {
  border-color: rgba(255, 180, 84, 0.52);
  background: rgba(255, 180, 84, 0.1);
  box-shadow: none;
}

.topic-page-light .button.ghost {
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
}

.hero-visual {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(72, 242, 210, 0.12), transparent 42%),
    linear-gradient(315deg, rgba(255, 110, 169, 0.12), transparent 46%),
    var(--panel);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
}

.topic-page-light .hero-visual {
  border-color: rgba(15, 118, 110, 0.16);
  background:
    radial-gradient(circle at 80% 18%, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at 18% 78%, rgba(45, 212, 191, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(15, 118, 110, 0.1), transparent 46%),
    rgba(255, 255, 255, 0.86);
  box-shadow: 0 28px 80px rgba(15, 118, 110, 0.14);
}

.matrix-grid,
.orbit,
.beam {
  position: absolute;
  pointer-events: none;
}

.matrix-grid {
  inset: 34px;
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(72, 242, 210, 0.18) 25%, transparent 26% 49%, rgba(72, 242, 210, 0.18) 50%, transparent 51% 74%, rgba(72, 242, 210, 0.18) 75%, transparent 76%),
    linear-gradient(0deg, transparent 0 24%, rgba(72, 242, 210, 0.14) 25%, transparent 26% 49%, rgba(72, 242, 210, 0.14) 50%, transparent 51% 74%, rgba(72, 242, 210, 0.14) 75%, transparent 76%);
  mask-image: radial-gradient(circle at center, #000 0 74%, transparent 92%);
}

.orbit {
  border: 1px solid rgba(72, 242, 210, 0.24);
  border-radius: 50%;
}

.topic-page-light .orbit {
  border-color: rgba(15, 118, 110, 0.2);
}

.orbit-one {
  inset: 74px;
  animation: pulseRing 4.8s ease-in-out infinite;
}

.orbit-two {
  inset: 34px;
  border-style: dashed;
  animation: rotate 18s linear infinite;
}

.beam {
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 45%;
  height: 2px;
  background: linear-gradient(90deg, rgba(72, 242, 210, 0.95), transparent);
  transform-origin: left center;
}

.beam-one {
  animation: rotate 6.4s linear infinite;
}

.beam-two {
  width: 38%;
  background: linear-gradient(90deg, rgba(255, 180, 84, 0.88), transparent);
  animation: rotateBack 8.6s linear infinite;
}

.center-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  display: grid;
  width: 168px;
  height: 168px;
  place-items: center;
  border: 1px solid rgba(72, 242, 210, 0.3);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, rgba(72, 242, 210, 0.32), rgba(255, 255, 255, 0.08) 64%);
  box-shadow: 0 0 52px rgba(72, 242, 210, 0.28), inset 0 0 30px rgba(72, 242, 210, 0.1);
  transform: translate(-50%, -50%);
}

.topic-page-light .center-core {
  border-color: rgba(15, 118, 110, 0.24);
  background: radial-gradient(circle at 50% 42%, rgba(45, 212, 191, 0.28), #fff 66%);
  box-shadow: 0 0 42px rgba(45, 212, 191, 0.28);
}

.center-core strong {
  align-self: end;
  color: var(--cyan);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}

.topic-page-light .center-core strong {
  color: var(--teal);
}

.center-core span {
  align-self: start;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.float-card {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 2px;
  min-width: 130px;
  border: 1px solid rgba(72, 242, 210, 0.24);
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
  padding: 13px 15px;
  background: rgba(10, 24, 22, 0.78);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.topic-page-light .float-card {
  border-color: rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(16, 42, 67, 0.12);
}

.float-card strong {
  color: var(--cyan);
  font-size: 20px;
}

.topic-page-light .float-card strong {
  color: var(--teal);
}

.float-card span {
  color: var(--muted);
  font-size: 13px;
}

.card-a {
  left: 28px;
  top: 36px;
}

.card-b {
  right: 30px;
  top: 116px;
  border-left-color: var(--orange);
}

.card-b strong {
  color: var(--orange);
}

.card-c {
  left: 44px;
  bottom: 46px;
  border-left-color: var(--green);
}

.card-c strong {
  color: var(--green);
}

.card-d {
  right: 44px;
  bottom: 52px;
  border-left-color: var(--pink);
}

.card-d strong {
  color: var(--pink);
}

.section {
  padding: 72px 0;
}

.band {
  width: 100%;
  max-width: none;
  padding-inline: max(16px, calc((100vw - 1180px) / 2));
  background:
    linear-gradient(90deg, rgba(72, 242, 210, 0.08), transparent 38%, rgba(255, 180, 84, 0.08)),
    rgba(255, 255, 255, 0.02);
}

.topic-page-light .band {
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.07), transparent 38%, rgba(245, 158, 11, 0.09)),
    rgba(255, 255, 255, 0.56);
}

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

.section-title span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topic-page-light .section-title span {
  color: var(--teal);
}

.section-title h2 {
  max-width: 860px;
  margin-bottom: 12px;
  font-size: clamp(30px, 5vw, 58px);
  line-height: 1.08;
}

.section-title p {
  max-width: 820px;
  color: var(--muted);
  font-size: 18px;
}

.feature-grid,
.prompt-grid,
.check-grid,
.accordion-grid,
.story-board {
  display: grid;
  gap: 18px;
}

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

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

.feature-grid.four,
.check-grid,
.accordion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glass-card,
.prompt-card,
.warning-card,
.qa-card,
.timeline-item,
.story-step {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(10, 24, 22, 0.72);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.22);
}

.topic-page-light .glass-card,
.topic-page-light .prompt-card,
.topic-page-light .warning-card,
.topic-page-light .qa-card,
.topic-page-light .timeline-item,
.topic-page-light .story-step {
  border-color: rgba(15, 118, 110, 0.14);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 44px rgba(16, 42, 67, 0.08);
}

.glass-card,
.warning-card,
.qa-card,
.timeline-item,
.story-step {
  padding: 22px;
}

.glass-card {
  min-height: 240px;
}

.glass-card b,
.timeline-item strong,
.story-step b {
  color: var(--orange);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.glass-card h3,
.warning-card h3,
.qa-card h3,
.timeline-item h3 {
  margin: 8px 0 10px;
  font-size: 23px;
  line-height: 1.22;
}

.glass-card p,
.warning-card p,
.qa-card p,
.timeline-item p {
  margin-bottom: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.timeline-item h3 {
  margin-top: 0;
}

.prompt-card {
  overflow: hidden;
}

.prompt-card h3 {
  margin: 0;
  padding: 18px 20px 0;
}

.prompt-card pre {
  min-height: 280px;
  margin: 0;
  overflow: auto;
  padding: 18px 20px 22px;
  color: #d8fff8;
  font-family: "JetBrains Mono", Consolas, monospace;
  font-size: 13px;
  line-height: 1.68;
  white-space: pre-wrap;
}

.topic-page-light .prompt-card pre {
  color: #17324d;
}

.warning-card {
  border-color: rgba(255, 180, 84, 0.26);
}

.warning-card h3 {
  color: var(--orange);
}

.story-board {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.story-step {
  min-height: 190px;
}

.story-step span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.topic-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 58px;
  color: var(--muted);
}

.topic-page-light .topic-footer {
  color: var(--paper-muted);
}

.topic-footer a {
  color: var(--cyan);
  font-weight: 900;
}

.topic-page-light .topic-footer a {
  color: var(--teal);
}

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

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

@keyframes pulseRing {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 1060px) {
  .topic-hero,
  .feature-grid.three,
  .feature-grid.five,
  .feature-grid.four,
  .prompt-grid,
  .check-grid,
  .accordion-grid,
  .story-board {
    grid-template-columns: 1fr 1fr;
  }

  .topic-hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .topic-nav,
  .topic-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topic-hero,
  .feature-grid.three,
  .feature-grid.four,
  .prompt-grid,
  .check-grid,
  .accordion-grid,
  .story-board,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .topic-hero {
    padding-top: 44px;
  }

  .hero-visual {
    min-height: 390px;
  }

  .float-card {
    min-width: 110px;
    padding: 10px 12px;
  }

  .card-b,
  .card-d {
    right: 18px;
  }

  .card-a,
  .card-c {
    left: 18px;
  }
}
