:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-accent: rgba(90, 164, 255, 0.2);
  --bg-accent-soft: rgba(125, 211, 252, 0.12);
  --surface: rgba(15, 19, 27, 0.8);
  --surface-strong: rgba(22, 27, 37, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f6f7fb;
  --muted: #a7b0be;
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --success: #86efac;
  --warning: #facc15;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --max-width: 1180px;
  --content-width: 860px;
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top left, var(--bg-accent), transparent 28%),
    radial-gradient(circle at top right, var(--bg-accent-soft), transparent 24%),
    linear-gradient(180deg, #05070b 0%, #070b12 48%, #05070b 100%);
}

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

img {
  max-width: 100%;
}

.page-shell {
  padding: 20px;
}

.site-frame {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.config-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(250, 204, 21, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(250, 204, 21, 0.08);
  color: #fef08a;
  font-size: 14px;
}

.config-banner[hidden] {
  display: none;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  background: rgba(6, 9, 14, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.22), rgba(56, 189, 248, 0.08));
  color: var(--accent);
  font-size: 19px;
  font-weight: 700;
}

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

.brand-copy strong {
  display: block;
  font-size: 15px;
  line-height: 1.2;
}

.brand-copy span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.95fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 32px;
}

.hero-card,
.panel,
.article-card,
.footer-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(15, 19, 27, 0.86), rgba(10, 13, 18, 0.92));
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.hero h1,
.article-card h1 {
  margin: 20px 0 14px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero p.lead,
.article-lead {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, #f8fafc, #dbeafe);
  color: #08111d;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.hero-metrics {
  display: grid;
  gap: 16px;
  align-content: start;
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  font-size: 32px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

.section {
  margin-bottom: 28px;
}

.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.section-header p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
}

.panel {
  padding: 26px;
}

.feature-grid,
.link-grid,
.footer-grid {
  display: grid;
  gap: 16px;
}

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

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

.footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.panel h3,
.link-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.panel p,
.link-card p,
.footer-card p,
.article-section p,
.article-section li {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: rgba(125, 211, 252, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-card {
  position: relative;
  padding: 24px;
}

.step-card::before {
  content: attr(data-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 10px;
  font-size: 17px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-card {
  padding: 26px;
  margin-bottom: 18px;
}

.footer-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 30px;
  color: var(--muted);
  font-size: 14px;
}

.page-hero {
  margin-bottom: 18px;
}

.article-wrap {
  width: min(100%, var(--content-width));
  margin: 0 auto 26px;
}

.article-card {
  padding: 36px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.article-divider {
  height: 1px;
  margin: 28px 0;
  background: var(--line);
}

.article-section {
  display: grid;
  gap: 14px;
}

.article-section + .article-section {
  margin-top: 26px;
}

.article-section h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.article-section ul,
.article-section ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.article-highlight {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inline-tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 13px;
}

.muted {
  color: var(--muted);
}

.accent {
  color: var(--accent);
}

.strong {
  color: var(--text);
}

@media (max-width: 980px) {
  .hero,
  .feature-grid,
  .steps,
  .footer-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    position: static;
    border-radius: 24px;
  }

  .hero-card,
  .article-card {
    padding: 28px;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 14px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero h1,
  .article-card h1 {
    font-size: clamp(30px, 9vw, 44px);
  }

  .hero p.lead,
  .article-lead {
    font-size: 16px;
  }

  .hero-card,
  .panel,
  .article-card,
  .footer-card {
    border-radius: 22px;
  }

  .article-card,
  .hero-card,
  .panel,
  .footer-card {
    padding: 22px;
  }
}
