.site-shell {
  width: var(--container);
  margin: 0 auto;
  padding: 24px 0 96px;
  display: grid;
  row-gap: 8px;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 18px 16px 0;
  backdrop-filter: blur(10px);
}

.topbar {
  width: min(1200px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(8, 18, 33, 0.76);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 16px 40px rgba(2, 8, 18, 0.24);
}

.topbar.is-scrolled {
  background: rgba(8, 18, 33, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 10px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav a,
.nav-cta,
.lang-switch {
  padding: 10px 14px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

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

.nav a:hover,
.nav a.active {
  color: var(--text);
  background: rgba(47, 128, 237, 0.14);
}

.nav-cta {
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), #f59e0b);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  color: var(--muted-strong);
}

.lang-switch:hover {
  background: rgba(255, 255, 255, 0.05);
}

.nav-toggle {
  display: none;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.hero,
.section,
.cta {
  margin-top: 56px;
}

.hero {
  margin-top: 28px;
}

.hero--split {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 32px;
  align-items: stretch;
}

.hero-copy,
.hero-visual,
.hero.card:not(.hero--split) {
  padding: 40px 44px;
}

/*
 * Features 页专用更紧凑的 hero：减小垂直留白、缩小标题号，
 * 让右侧能力索引和下方内容能尽量出现在首屏。
 */
.features-hero {
  grid-template-columns: 1.05fr 0.95fr;
  margin-top: 20px;
}

.features-hero__copy {
  padding: 28px 32px;
}

.features-hero__copy h1 {
  font-size: clamp(1.9rem, 3.2vw, 2.75rem);
  margin: 8px 0 10px;
}

.features-hero__copy .hero-desc {
  font-size: 1rem;
  line-height: 1.6;
}

.features-hero__index {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.features-hero__index-label {
  margin: 0;
  color: #b9d6ff;
}

.features-hero__list {
  list-style: none;
  counter-reset: feature-index;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.features-hero__list li {
  counter-increment: feature-index;
}

.features-hero__link {
  display: grid;
  grid-template-columns: 28px auto 1fr;
  align-items: baseline;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(147, 197, 253, 0.10);
  background: rgba(8, 18, 33, 0.36);
  color: var(--text);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.features-hero__link::before {
  content: counter(feature-index, decimal-leading-zero);
  color: #9bc1ff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.features-hero__link:hover {
  background: rgba(47, 128, 237, 0.18);
  border-color: rgba(147, 197, 253, 0.36);
  transform: translateY(-1px);
}

.features-hero__badge {
  color: #9bc1ff;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.features-hero__title {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .features-hero {
    grid-template-columns: 1fr;
  }
  .features-hero__copy {
    padding: 26px 26px;
  }
  .features-hero__index {
    padding: 20px 22px;
  }
}

@media (max-width: 860px) {
  .features-hero__link {
    grid-template-columns: 22px 1fr;
    gap: 8px;
  }
  .features-hero__badge {
    grid-column: 2;
    margin-bottom: 2px;
  }
  .features-hero__title {
    grid-column: 2;
  }
}

@media (max-width: 1180px) {
  .hero-copy,
  .hero-visual,
  .hero.card:not(.hero--split) {
    padding: 32px 32px;
  }
  .hero,
  .section,
  .cta {
    margin-top: 44px;
  }
}

.hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text-strong);
}

.hero-desc,
.section-head p,
.card p,
.faq-prose p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.hero-actions,
.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 22px;
}

.hero-points {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(147, 197, 253, 0.14);
  color: #dbeafe;
  font-size: 0.88rem;
}

.hero-visual__frame {
  display: grid;
  gap: 14px;
}

.hero-visual__frame img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-visual__frame p {
  color: var(--muted);
}

.hero-visual__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.value-strip article,
.pain-card,
.pillar-card,
.scenario-card,
.download-card,
.summary-card {
  padding: 30px 28px;
}

.value-strip strong {
  display: block;
  margin-bottom: 14px;
  font-size: 1.28rem;
}

/*
 * value-strip 改为去卡片化分组 — 用横向分隔代替卡片堆，配合更大留白；
 * 但保留一层很轻的描边以维持视觉锚点。
 */
.value-strip article {
  background: transparent;
  border: 1px solid rgba(129, 167, 224, 0.1);
  box-shadow: none;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.5rem);
}

.pain-grid,
.pillar-grid,
.scenario-grid,
.download-grid,
.summary-grid,
.docs-related__grid {
  display: grid;
  gap: 32px;
}

.pain-grid,
.pillar-grid,
.download-grid,
.summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

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

.pain-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: rgba(47, 128, 237, 0.16);
  font-size: 1.5rem;
}

.pain-card h3,
.pillar-card h3,
.scenario-card h3,
.download-card h3,
.summary-card h3,
.feature-slice h2,
.scenario-story h2 {
  margin: 18px 0 12px;
  font-size: 1.3rem;
}

.pain-card,
.scenario-card,
.summary-card {
  background: transparent;
  border: 1px solid rgba(129, 167, 224, 0.12);
  box-shadow: none;
}

.pillar-card img {
  width: 100%;
  max-width: 168px;
  margin-bottom: 20px;
}

.pillar-card ul,
.feature-bullets,
.scenario-story ol {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--muted-strong);
  line-height: 1.8;
}

.pillar-card ul li + li,
.feature-bullets li + li,
.scenario-story ol li + li {
  margin-top: 6px;
}

.scenario-card a {
  display: inline-flex;
  margin-top: 22px;
  padding: 8px 0;
  color: #dbeafe;
  font-weight: 700;
  border-bottom: 1px solid rgba(147, 197, 253, 0.36);
  transition: color 0.18s ease, border-color 0.18s ease;
}

.scenario-card a:hover {
  color: var(--text-strong);
  border-bottom-color: rgba(147, 197, 253, 0.85);
}

.scenario-story__meta strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
}

.scenario-story__meta p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.7;
}

.scenario-story__payoff {
  color: #dbeafe;
  font-style: italic;
  border-left: 3px solid rgba(147, 197, 253, 0.4);
  padding: 6px 0 6px 14px;
}

.matrix-card {
  padding: 18px 22px;
  background: transparent;
  border: 1px solid rgba(129, 167, 224, 0.12);
  box-shadow: none;
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
}

.matrix-table th,
.matrix-table td {
  padding: 18px 20px;
  border: 0;
  border-bottom: 1px solid rgba(128, 165, 221, 0.12);
  text-align: left;
}

.matrix-table tr:last-child td {
  border-bottom: 0;
}

.matrix-table th {
  color: #9bc1ff;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.terminal-card,
.code-pane {
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(7, 14, 24, 0.96), rgba(10, 18, 31, 0.96));
}

.terminal-card__tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.terminal-card__tabs span,
.card-label {
  color: #9cc4ff;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.terminal-card pre,
.code-pane pre,
.command-card pre {
  margin: 0;
  padding: 0;
  overflow: auto;
  color: #eff6ff;
  font-family: var(--font-mono);
  white-space: pre-wrap;
  line-height: 1.7;
}

.feature-stack,
.command-grid,
.scenario-story-grid {
  display: grid;
  gap: 36px;
}

.feature-slice {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  padding: 36px 40px;
  align-items: start;
}

.feature-slice__body {
  min-width: 0;
}

.feature-slice h2 {
  margin: 12px 0 14px;
}

.feature-slice p {
  margin: 0 0 14px;
}

/* 右侧「接下来该看」面板：去黑框 / 命令风格，改成清晰的链接列表 */
.feature-next {
  display: grid;
  gap: 14px;
  padding: 22px 22px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(47, 128, 237, 0.10), rgba(47, 128, 237, 0.02));
  border: 1px solid rgba(147, 197, 253, 0.18);
}

.feature-next__label {
  margin: 0 0 4px;
  color: #b9d6ff;
}

.feature-next__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.feature-next__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 14px;
  color: var(--text);
  background: rgba(8, 18, 33, 0.36);
  border: 1px solid rgba(147, 197, 253, 0.10);
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.feature-next__link:hover {
  background: rgba(47, 128, 237, 0.18);
  border-color: rgba(147, 197, 253, 0.36);
  transform: translateY(-1px);
}

.feature-next__title {
  display: block;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-strong);
  line-height: 1.4;
}

.feature-next__hint {
  display: block;
  margin-top: 4px;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.feature-next__arrow {
  color: var(--muted);
  font-size: 1.1rem;
  align-self: start;
  margin-top: 2px;
}

.feature-next__link:hover .feature-next__arrow {
  color: var(--text);
}

.scenario-story-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.scenario-story {
  padding: 32px 32px 28px;
}

.scenario-story__meta,
.scenario-story__payoff {
  margin-top: 18px;
}

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

.command-card {
  padding: 26px;
}

.command-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.copy-btn {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.copy-btn.is-done {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
}

.cta {
  margin-top: 72px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer {
  width: var(--container);
  margin: 0 auto 40px;
  padding: 16px 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr);
  gap: 24px;
  padding: 26px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: rgba(8, 18, 33, 0.76);
}

.site-footer__grid section {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer__grid h2 {
  margin: 0;
  font-size: 1.5rem;
}

.site-footer__grid a {
  color: var(--muted);
}

.site-footer__grid a:hover {
  color: var(--text);
}

.site-footer__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: space-between;
  color: var(--muted);
  padding: 16px 4px 0;
  font-size: 0.9rem;
}

.site-footer__meta a {
  color: var(--muted-strong);
}

.site-footer__meta a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 32px 0 12px;
  color: var(--text-strong);
}

.prose p + p,
.prose ul + p,
.prose ol + p,
.prose table + p {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  color: var(--muted-strong);
  line-height: 1.76;
}

.prose code:not(pre code) {
  padding: 2px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: #dbeafe;
}

/*
 * 「Prose 卡片」是 FAQ / 安全 / 任何长文页用的主容器。
 * 之前没设置内边距，导致文字几乎贴在卡片描边上。
 * 这里把卡片内的左右与上下空隙都放大，并限制阅读宽度避免行长过长。
 */
.section > .card.prose,
.section > .card.prose--wide,
.section > .card.faq-prose {
  padding: 48px 56px;
}

.prose--wide {
  max-width: none;
}

.prose--wide > * {
  max-width: 78ch;
}

.prose--wide > h1,
.prose--wide > h2,
.prose--wide > h3 {
  max-width: none;
}

.prose--wide > .data-flow,
.prose--wide > table,
.prose--wide > figure,
.prose--wide > pre {
  max-width: none;
}

.faq-prose details {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.faq-prose details:first-of-type {
  border-top: none;
}

.faq-prose h2 {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(129, 167, 224, 0.18);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9bc1ff;
}

.faq-prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.faq-prose h3 {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--text-strong);
}

.faq-prose h3 + p {
  margin-top: 8px;
}

@media (max-width: 1180px) {
  .section > .card.prose,
  .section > .card.prose--wide,
  .section > .card.faq-prose {
    padding: 40px 40px;
  }
}

@media (max-width: 860px) {
  .section > .card.prose,
  .section > .card.prose--wide,
  .section > .card.faq-prose {
    padding: 28px 22px;
  }
}

@media (max-width: 1180px) {
  .value-strip,
  .pain-grid,
  .pillar-grid,
  .download-grid,
  .summary-grid,
  .scenario-grid,
  .command-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
  }

  .feature-slice,
  .hero--split,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .feature-slice {
    padding: 30px 30px;
    gap: 26px;
  }

  .scenario-story-grid {
    grid-template-columns: 1fr;
  }

  .cta {
    padding: 32px 32px;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: rgba(8, 18, 33, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .value-strip,
  .pain-grid,
  .pillar-grid,
  .download-grid,
  .summary-grid,
  .scenario-grid,
  .command-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .cta {
    flex-direction: column;
    align-items: stretch;
    padding: 26px 22px;
  }

  .hero-copy,
  .hero-visual,
  .hero.card:not(.hero--split) {
    padding: 26px 22px;
  }

  .feature-slice {
    padding: 26px 22px;
  }

  .scenario-story {
    padding: 26px 22px;
  }

  .site-footer__meta {
    justify-content: flex-start;
  }
}

/* data-flow figure caption block (kept available for any future inline architecture diagrams) */
.data-flow {
  margin: 28px 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--panel-strong), rgba(10, 20, 37, 0.94));
  box-shadow: var(--shadow);
}

.data-flow img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.data-flow figcaption {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}
