:root {
  --bg: #050816;
  --panel: rgba(255,255,255,.075);
  --panel-strong: rgba(255,255,255,.12);
  --line: rgba(255,255,255,.14);
  --text: #f7f9ff;
  --muted: #aeb9df;
  --cyan: #00e5ff;
  --blue: #4d7cff;
  --purple: #8a5cff;
  --pink: #ff4ecd;
  --green: #35f2a6;
  --orange: #ffb454;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(0,229,255,.28), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(138,92,255,.28), transparent 26%),
    radial-gradient(circle at 72% 86%, rgba(255,78,205,.18), transparent 30%),
    linear-gradient(135deg, #050816 0%, #081126 54%, #030511 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 999px;
  filter: blur(70px);
  opacity: .22;
  pointer-events: none;
  z-index: 0;
}

.orb.one { background: var(--cyan); left: -180px; top: 180px; }
.orb.two { background: var(--purple); right: -180px; top: 420px; }

header, main, section, footer {
  position: relative;
  z-index: 1;
}

header {
  max-width: 1200px;
  margin: auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo, .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .5px;
}

.logo-mark, .brand-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 28px rgba(0,229,255,.35);
}

.logo span, .brand span {
  color: var(--cyan);
}

nav a {
  margin-left: 22px;
  text-decoration: none;
  color: #c1ccf3;
  font-size: 14px;
  transition: .2s;
}

nav a:hover {
  color: var(--cyan);
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero {
  max-width: 1200px;
  margin: auto;
  padding: 72px 24px 60px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 46px;
  align-items: center;
}

.hero.hero-single {
  grid-template-columns: 1fr;
}

.hero.hero-single > * {
  grid-column: 1;
  max-width: 900px;
}

.kicker, .section-kicker {
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: .08em;
  font-size: 13px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border: 1px solid rgba(0,229,255,.45);
  border-radius: 999px;
  color: #95f7ff;
  background: rgba(0,229,255,.08);
  font-size: 14px;
  margin-bottom: 22px;
  backdrop-filter: blur(12px);
}

h1 {
  font-size: clamp(38px, 5.8vw, 72px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  max-width: 100%;
}

h1 strong {
  background: linear-gradient(90deg, var(--cyan), var(--purple), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.desc, .lead {
  max-width: 900px;
  color: #bec8eb;
  font-size: 18px;
  line-height: 1.85;
  margin-bottom: 32px;
}

.buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.btn {
  padding: 14px 21px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 800;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
  backdrop-filter: blur(14px);
  transition: .22s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  box-shadow: 0 0 32px rgba(0,229,255,.33);
  border-color: transparent;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(0,229,255,.18);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 14px;
  max-width: 610px;
}

.stat {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}

.stat b {
  display: block;
  font-size: 22px;
  color: var(--cyan);
  margin-bottom: 5px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.terminal-card {
  border-radius: 28px;
  padding: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.14), rgba(255,255,255,.045));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 30px 90px rgba(0,0,0,.42);
  backdrop-filter: blur(20px);
  animation: float 4.5s ease-in-out infinite;
}

.terminal {
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background: #070b18;
  border: 1px solid rgba(255,255,255,.12);
}

.terminal-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 15px;
  background: rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.dot { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #ff5f57; }
.yellow { background: #ffbd2e; }
.green { background: #28c840; }

.terminal-body {
  padding: 22px;
  font-family: Consolas, Monaco, monospace;
  font-size: 14px;
  line-height: 1.85;
  color: #d8e2ff;
}

.cmd { color: var(--green); }
.path { color: var(--cyan); }
.comment { color: #7f8db8; }
.warn { color: var(--orange); }

section {
  max-width: 1200px;
  margin: auto;
  padding: 72px 24px;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 18px;
  letter-spacing: -.6px;
}

.section-desc {
  color: var(--muted);
  line-height: 1.85;
  max-width: 830px;
  margin-bottom: 34px;
  font-size: 16px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  margin-bottom: 26px;
  padding: 26px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  transition: .24s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(0,229,255,.16), transparent 38%);
  opacity: 0;
  transition: .24s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,.55);
  box-shadow: 0 20px 60px rgba(0,0,0,.28), 0 0 28px rgba(0,229,255,.12);
}

.card:hover::before {
  opacity: 1;
}

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

.icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: rgba(0,229,255,.12);
  border: 1px solid rgba(0,229,255,.25);
  font-size: 25px;
  margin-bottom: 18px;
}

.card h3 {
  font-size: 20px;
  margin-bottom: 11px;
}

.card p, .card li {
  color: #bac5e7;
  line-height: 1.78;
  font-size: 15px;
}

.card ul {
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.article-card {
  display: block;
  padding: 30px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255,255,255,.11), rgba(255,255,255,.055));
  border: 1px solid rgba(255,255,255,.14);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 12px 30px rgba(0,0,0,.14);
}

.article-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,229,255,.55);
  box-shadow: 0 26px 70px rgba(0,0,0,.22), 0 0 30px rgba(0,229,255,.12);
}

.article-card.featured {
  border-color: rgba(0,229,255,.5);
  box-shadow: 0 0 48px rgba(0,229,255,.1);
}

.article-num {
  font-size: 13px;
  font-weight: 900;
  color: var(--cyan);
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 25px;
  line-height: 1.35;
  margin-bottom: 14px;
}

.article-card p {
  color: #bdc7e8;
  line-height: 1.8;
  margin-bottom: 18px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.chip {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #dbe3ff;
  font-size: 13px;
}

.flow {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.flow-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 13px;
  align-items: center;
}

.flow-box {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.13);
}

.flow-box b {
  display: block;
  color: #fff;
  margin-bottom: 7px;
  font-size: 18px;
}

.flow-box span {
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

.arrow {
  color: var(--cyan);
  font-size: 24px;
  font-weight: 900;
}

.timeline {
  display: grid;
  gap: 16px;
  counter-reset: step;
}

.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
}

.step::before {
  content: "0" counter(step);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(0,229,255,.9), rgba(138,92,255,.9));
  font-weight: 900;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.step p {
  color: #bac5e7;
  line-height: 1.75;
  font-size: 15px;
}

.code-panel, .toc, .side, .next, .check, .article-card, .card {
  box-sizing: border-box;
}

.code-panel {
  padding: 24px;
  border-radius: 24px;
  background: #070b18;
  border: 1px solid rgba(255,255,255,.13);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.04);
  overflow-x: auto;
}

pre, .code {
  font-family: Consolas, Monaco, monospace;
  color: #d8e2ff;
  line-height: 1.8;
  font-size: 14px;
}

pre {
  overflow-x: auto;
}

.code {
  margin: 18px 0;
  padding: 20px;
  border-radius: 18px;
  background: #070b16;
  border: 1px solid rgba(255,255,255,.12);
  color: #9ff7ff;
  overflow: auto;
  white-space: pre;
}

.series {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.series-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(255,255,255,.065);
}

.series-card h3 {
  margin-bottom: 14px;
  font-size: 20px;
}

.series-card ol {
  padding-left: 20px;
  color: #bdc7e8;
  line-height: 1.9;
  font-size: 14px;
}

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

.pill {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: #dce5ff;
  font-size: 13px;
}

.toc {
  margin: 28px 0 70px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.12), rgba(255,255,255,.045));
  border: 1px solid rgba(0,229,255,.35);
  box-shadow: 0 22px 70px rgba(0,0,0,.32);
}

.toc-title {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1.2px;
  margin-bottom: 16px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.toc a {
  display: block;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.09);
  color: #e5ebff;
  text-decoration: none;
  font-weight: 700;
}

.article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 34px;
  align-items: start;
}

.content {
  padding-bottom: 90px;
}

.card.highlight {
  border-color: rgba(0,229,255,.55);
  box-shadow: 0 0 0 1px rgba(0,229,255,.08), 0 28px 80px rgba(0,229,255,.12);
}

h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 18px;
}

h3 {
  font-size: 21px;
  margin: 28px 0 12px;
  color: #ffffff;
}

.content p {
  font-size: 16px;
  line-height: 2;
  color: #c7d1ef;
  margin: 12px 0;
}

.content ul {
  padding-left: 22px;
  margin: 14px 0;
}

.content li {
  color: #c7d1ef;
  line-height: 2;
  margin: 4px 0;
}

.quote {
  margin: 20px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--cyan);
  background: rgba(0,229,255,.07);
  border-radius: 16px;
  color: #eaf7ff;
  font-size: 17px;
  line-height: 1.9;
}

.flow-step {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.flow-step b {
  color: #7ff5ff;
}

.side {
  position: sticky;
  top: 24px;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255,255,255,.075);
  border: 1px solid rgba(255,255,255,.12);
}

.side h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.side a {
  display: block;
  text-decoration: none;
  color: #bdc8ec;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 14px;
}

.side a:hover {
  color: var(--cyan);
}

.next {
  margin-top: 28px;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(0,229,255,.16), rgba(124,60,255,.18));
  border: 1px solid rgba(0,229,255,.35);
}

.next b {
  color: #7ff5ff;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.check {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.065);
  border: 1px solid rgba(255,255,255,.1);
  color: #dce5ff;
}

.check b {
  color: #7ff5ff;
}

footer {
  text-align: center;
  padding: 42px 20px;
  color: #8995bd;
  border-top: 1px solid rgba(255,255,255,.09);
}

.footer-meta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.beian-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #8995bd;
  text-decoration: none;
  font-size: inherit;
  line-height: inherit;
}

.beian-link:hover {
  color: #c1d1ff;
}

.icp-number {
  color: #8995bd;
  font-size: inherit;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
}

.beian-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

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

@media (max-width: 920px) {
  nav { display: none; }
  .hero, .split { grid-template-columns: 1fr; }
  .grid, .series, .stats { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); text-align: center; }
  .terminal { min-height: auto; }
  .hero { padding-top: 38px; }
}

@media (max-width: 900px) {
  .toc-grid { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; }
  .side { position: static; }
  .card { padding: 24px; }
  .checklist { grid-template-columns: 1fr; }
  h1 { letter-spacing: -1px; }
  .hero { padding-top: 42px; }
}
