:root {
  --bg: #07131f;
  --bg-2: #0d2030;
  --panel: #10283a;
  --panel-2: #f3fbf8;
  --ink: #10202b;
  --text: #edf8f7;
  --muted: #9fb7bd;
  --line: rgba(218, 255, 247, 0.16);
  --cyan: #31e6d1;
  --lime: #b9f46b;
  --orange: #ff9b54;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 12%, rgba(49, 230, 209, 0.16), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(185, 244, 107, 0.13), transparent 25%),
    linear-gradient(135deg, var(--bg), #06101a 58%, #0b1824);
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  line-height: 1.68;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}

a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 0 max(20px, calc((100vw - 1180px) / 2));
  background: rgba(7, 19, 31, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; white-space: nowrap; }
.logo img { width: 36px; height: 36px; }
.topbar nav { display: flex; justify-content: center; gap: 28px; color: var(--muted); font-size: 15px; }
.topbar nav a:hover { color: var(--cyan); }
.login-link, .primary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  color: #03131a;
  background: var(--cyan);
  border-radius: 12px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(49, 230, 209, 0.22);
}
.login-link:hover, .primary:hover { background: var(--lime); }

.hero { padding: 86px 0 66px; }
.hero-console { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: stretch; }
.terminal {
  min-height: 600px;
  background: rgba(16, 40, 58, 0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 54px;
  padding: 0 18px;
  background: rgba(3, 13, 20, 0.72);
  border-bottom: 1px solid var(--line);
}
.terminal-bar span { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.terminal-bar span:nth-child(2) { background: var(--lime); }
.terminal-bar span:nth-child(3) { background: var(--cyan); }
.terminal-bar b { margin-left: 8px; color: var(--muted); font-size: 13px; letter-spacing: 0.06em; }
.terminal-body { padding: clamp(34px, 7vw, 84px); }
.prompt, .label {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; }
.hero h1 { max-width: 860px; font-size: clamp(54px, 9vw, 124px); }
.terminal-body > p:not(.prompt) { max-width: 760px; color: var(--muted); font-size: 21px; }
.command-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  max-width: 820px;
  margin-top: 38px;
  padding: 12px;
  background: rgba(3, 13, 20, 0.76);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.command-line span { padding: 0 16px; color: var(--lime); font-weight: 900; }
.command-line a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  color: #06101a;
  background: var(--lime);
  border-radius: 12px;
  font-weight: 900;
}

.status-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: 30px;
  color: #06101a;
  background:
    linear-gradient(160deg, rgba(185, 244, 107, 0.95), rgba(49, 230, 209, 0.88)),
    var(--cyan);
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.status-card span { font-weight: 900; letter-spacing: 0.08em; }
.status-card strong { display: block; margin-top: 18px; font-size: 42px; line-height: 1.02; }
.status-card p { color: rgba(6, 16, 26, 0.72); font-weight: 700; }

section { padding: 78px 0; }
.flow { background: rgba(255, 255, 255, 0.035); border-block: 1px solid var(--line); }
h2 { font-size: clamp(34px, 5vw, 66px); }
.flow-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.flow-track article { min-height: 240px; padding: 24px; background: rgba(16, 40, 58, 0.86); }
.flow-track b { color: var(--cyan); }
.flow-track strong { display: block; margin-top: 54px; font-size: 26px; line-height: 1.1; }
.flow-track p { color: var(--muted); }

.lessons-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 40px;
  align-items: end;
}
.lessons-head > p { color: var(--muted); font-size: 20px; }
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
  margin-top: 34px;
}
.lesson-card {
  grid-column: span 4;
  position: relative;
  min-height: 260px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 24px;
  background: rgba(16, 40, 58, 0.82);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
}
.lesson-card:nth-child(4n + 1) { grid-column: span 5; background: rgba(49, 230, 209, 0.12); }
.lesson-card:nth-child(4n + 2) { grid-column: span 3; }
.lesson-card:nth-child(4n + 3) { grid-column: span 4; background: rgba(185, 244, 107, 0.11); }
.lesson-card:hover { transform: translateY(-4px); border-color: rgba(49, 230, 209, 0.55); }
.lesson-card span { color: var(--cyan); font-size: 13px; font-weight: 900; }
.lesson-card b {
  position: absolute;
  right: 20px;
  top: 12px;
  color: rgba(237, 248, 247, 0.08);
  font-size: 82px;
  line-height: 1;
}
.lesson-card strong { position: relative; z-index: 1; margin-top: 32px; font-size: 24px; line-height: 1.22; }
.lesson-card em { position: relative; z-index: 1; color: var(--muted); font-style: normal; }

.check { padding-top: 28px; }
.check-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr auto;
  gap: 28px;
  align-items: center;
  padding: 30px;
  color: var(--ink);
  background: var(--panel-2);
  border-radius: 28px;
}
.check-panel .label { color: #078574; }
.check-panel h2 { color: var(--ink); }
.check-panel ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-panel li { display: grid; gap: 4px; }
.check-panel li span { color: #078574; font-weight: 900; }
.check-panel li strong { color: #2d4249; }

.faq { background: rgba(255, 255, 255, 0.035); border-top: 1px solid var(--line); }
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 46px; }
.faq-layout > div > p:not(.label) { color: var(--muted); font-size: 19px; }
.faq-list { display: grid; gap: 12px; }
details { padding: 20px 22px; background: rgba(16, 40, 58, 0.82); border: 1px solid var(--line); border-radius: 16px; }
summary { cursor: pointer; font-size: 19px; font-weight: 900; }
details p { margin: 12px 0 0; color: var(--muted); }

.footer { padding: 30px 0; background: #030d14; border-top: 1px solid var(--line); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 18px; }
.footer p { margin: 0; }
.footer nav { display: flex; gap: 18px; }

.article-hero { padding: 74px 0 58px; background: linear-gradient(135deg, #0b1c2b, #10283a 62%, #073a3e); border-bottom: 1px solid var(--line); }
.crumb { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; color: var(--muted); }
.article-hero h1 { max-width: 940px; font-size: clamp(38px, 6vw, 76px); }
.article-hero p:not(.prompt) { max-width: 760px; color: var(--muted); font-size: 20px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 56px 0 86px; }
.article-body { display: grid; gap: 22px; }
.article-body section { padding: 28px; background: rgba(16, 40, 58, 0.82); border: 1px solid var(--line); border-radius: 22px; }
.article-body h2 { font-size: 32px; }
.article-steps, .tips { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; }
.article-steps li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; }
.article-steps span { display: grid; place-items: center; width: 40px; height: 40px; color: #06101a; background: var(--cyan); border-radius: 50%; font-weight: 900; }
.article-steps strong { display: block; font-size: 20px; }
.article-steps p, .tips li { color: var(--muted); margin: 0; }
.tips li { padding: 16px; background: rgba(255, 255, 255, 0.035); border-radius: 12px; }
.article-aside { position: sticky; top: 100px; align-self: start; padding: 24px; background: var(--panel-2); color: var(--ink); border-radius: 22px; }
.article-aside strong { font-size: 26px; line-height: 1.1; }
.article-aside p { color: #50646b; }
.article-aside .primary, .back { width: 100%; margin-top: 12px; }
.back { display: inline-flex; justify-content: center; color: #078574; font-weight: 900; }
.related { display: grid; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid #d8e7e4; }
.related > span { color: #078574; font-weight: 900; }
.related a { display: grid; gap: 4px; padding: 14px; background: #e7f4f1; border-radius: 12px; }
.related a span { color: #607980; font-size: 13px; }
.related a strong { font-size: 16px; line-height: 1.3; }

@media (max-width: 980px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { grid-column: 1 / -1; justify-content: space-between; }
  .hero-console, .flow-track, .lessons-head, .check-panel, .faq-layout, .article-layout { grid-template-columns: 1fr; }
  .status-card { min-height: auto; }
  .lesson-card, .lesson-card:nth-child(n) { grid-column: span 6; }
  .article-aside { position: static; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1180px); }
  .topbar { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .login-link { width: 100%; grid-column: 1 / -1; }
  .hero { padding-top: 42px; }
  .terminal, .status-card { border-radius: 20px; min-height: auto; }
  .hero h1 { font-size: 46px; }
  .command-line { grid-template-columns: 1fr; }
  .command-line a { width: 100%; }
  .lesson-grid { grid-template-columns: 1fr; }
  .lesson-card, .lesson-card:nth-child(n) { grid-column: auto; min-height: auto; }
  .article-steps li { grid-template-columns: 1fr; }
  .footer nav { flex-wrap: wrap; }
}
