/* ==========================================================================
   RuiyuMaaS 首页样式
   Token 体系 1:1 映射自 ../DESIGN.md 的 colors / typography / spacing / rounded
   ========================================================================== */

:root {
  /* Colors */
  --color-primary: #181d26;
  --color-primary-active: #0d1218;
  --color-ink: #181d26;
  --color-body: #333840;
  --color-muted: #41454d;
  --color-hairline: #dddddd;
  --color-border-strong: #9297a0;
  --color-canvas: #ffffff;
  --color-surface-soft: #f8fafc;
  --color-surface-strong: #e0e2e6;
  --color-surface-dark: #181d26;
  --color-surface-dark-elevated: #1d1f25;
  --color-signature-coral: #aa2d00;
  --color-signature-forest: #0a2e0e;
  --color-signature-cream: #f5e9d4;
  --color-signature-peach: #fcab79;
  --color-signature-mint: #a8d8c4;
  --color-signature-yellow: #f4d35e;
  --color-signature-mustard: #d9a441;
  --color-on-primary: #ffffff;
  --color-on-dark: #ffffff;
  --color-link: #1b61c9;
  --color-link-active: #1a3866;
  --color-info-border: #458fff;

  /* Typography */
  --font-stack: "Haas", "Haas Groot Disp", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;

  --display-lg-size: 40px;
  --display-lg-weight: 400;
  --display-lg-lh: 1.2;

  --display-md-size: 32px;
  --display-md-weight: 400;
  --display-md-lh: 1.2;

  --title-lg-size: 24px;
  --title-lg-weight: 400;
  --title-lg-lh: 1.35;
  --title-lg-ls: 0.12px;

  --title-md-size: 20px;
  --title-md-weight: 400;
  --title-md-lh: 1.5;

  --title-sm-size: 18px;
  --title-sm-weight: 500;
  --title-sm-lh: 1.4;

  --label-md-size: 16px;
  --label-md-weight: 500;
  --label-md-lh: 1.4;

  --button-size: 16px;
  --button-weight: 500;
  --button-lh: 1.4;

  --body-md-size: 14px;
  --body-md-weight: 400;
  --body-md-lh: 1.25;

  --caption-size: 14px;
  --caption-weight: 500;
  --caption-lh: 1.35;
  --caption-ls: 0.16px;

  /* Spacing */
  --space-xxs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 24px;

  /* Rounded */
  --rounded-xs: 2px;
  --rounded-sm: 6px;
  --rounded-md: 10px;
  --rounded-lg: 12px;
  --rounded-full: 9999px;

  /* Layout */
  --content-max: 1280px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-stack);
  font-size: var(--body-md-size);
  font-weight: var(--body-md-weight);
  line-height: var(--body-md-lh);
  color: var(--color-body);
  background: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-xxl);
}

.eyebrow {
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  line-height: var(--caption-lh);
  letter-spacing: var(--caption-ls);
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  font-family: var(--font-stack);
  font-size: var(--button-size);
  font-weight: var(--button-weight);
  line-height: var(--button-lh);
  border-radius: var(--rounded-lg);
  padding: 16px 24px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(135deg, #38c6f4 0%, #0ea5e9 55%, #0284c7 100%);
  color: var(--color-on-primary);
}

.btn-primary:active {
  background: linear-gradient(135deg, #2bb4e2 0%, #0b93d1 55%, #0273af 100%);
}

.btn-secondary {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: 1px solid var(--color-hairline);
}

.btn-secondary:active {
  background: var(--color-surface-soft);
}

.btn-secondary-on-dark {
  background: var(--color-canvas);
  color: var(--color-ink);
  border: none;
}

.btn-secondary-on-dark:active {
  background: var(--color-surface-soft);
}

/* ==========================================================================
   Top Nav
   ========================================================================== */

.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: var(--color-canvas);
  border-bottom: 1px solid var(--color-hairline);
  transition: box-shadow 0.25s ease;
}

.top-nav.is-scrolled {
  box-shadow: 0 4px 20px rgba(24, 29, 38, 0.06);
}

.top-nav .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--title-sm-size);
  font-weight: var(--title-sm-weight);
  color: var(--color-ink);
}

.nav-logo-img {
  display: block;
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: var(--body-md-size);
  color: var(--color-body);
}

.nav-links a:active {
  color: var(--color-ink);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-cta {
  padding: 12px 20px;
}

.nav-sheet {
  display: none;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-full);
  background: var(--color-canvas);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 16px;
  height: 2px;
  background: var(--color-ink);
  position: relative;
}

.nav-toggle span::before {
  position: absolute;
  top: -5px;
}

.nav-toggle span::after {
  position: absolute;
  top: 5px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero-band {
  background: var(--color-canvas);
  padding: 72px 0 64px;
}

.hero-title {
  font-size: var(--display-lg-size);
  font-weight: var(--display-lg-weight);
  line-height: var(--display-lg-lh);
  color: var(--color-ink);
  margin-bottom: var(--space-lg);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.5;
  color: var(--color-body);
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   Section rhythm
   ========================================================================== */

.section {
  padding: var(--space-section) 0;
}

.section-canvas { background: var(--color-canvas); }
.section-soft { background: var(--color-surface-soft); }
.section-strong { background: var(--color-surface-strong); }

.section-head {
  max-width: 640px;
  margin: 0 auto var(--space-xxl);
  text-align: center;
}

.section-head .eyebrow {
  margin-bottom: var(--space-sm);
}

.section-title {
  font-size: var(--title-lg-size);
  font-weight: var(--title-lg-weight);
  line-height: var(--title-lg-lh);
  letter-spacing: var(--title-lg-ls);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.section-desc {
  color: var(--color-body);
  font-size: 16px;
  line-height: 1.5;
}

/* ==========================================================================
   Signature cards (coral / forest / dark)
   ========================================================================== */

.signature-card {
  border-radius: var(--rounded-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.signature-fresh-card {
  background: linear-gradient(135deg, #ecfdf5 0%, #dcf4fb 52%, #d3e9fc 100%);
  border: 1px solid rgba(24, 29, 38, 0.06);
  color: var(--color-ink);
}

.signature-blue-card {
  background: linear-gradient(135deg, #f0f8fe 0%, #ddeefb 52%, #c9e3f8 100%);
  border: 1px solid rgba(24, 29, 38, 0.06);
  color: var(--color-ink);
}

.signature-card h2 {
  font-size: var(--display-md-size);
  font-weight: var(--display-md-weight);
  line-height: var(--display-md-lh);
  margin-bottom: var(--space-md);
}

.signature-card p {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.92;
  margin-bottom: var(--space-lg);
}

.signature-card-visual {
  border-radius: var(--rounded-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: var(--space-lg);
  min-height: 180px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  justify-content: center;
}

/* 浅色渐变卡上的状态面板 */
.signature-fresh-card .signature-card-visual {
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(24, 29, 38, 0.08);
}

.signature-fresh-card .visual-row {
  background: rgba(255, 255, 255, 0.75);
  color: var(--color-body);
}

.signature-fresh-card .visual-row.is-down .visual-dot { color: #f87171; }
.signature-fresh-card .visual-row.is-up .visual-dot { color: #10b981; }

.signature-card-visual .visual-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--rounded-sm);
  background: rgba(255, 255, 255, 0.1);
  font-size: var(--caption-size);
}

.visual-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--rounded-full);
  background: currentColor;
  flex-shrink: 0;
  position: relative;
}

.visual-row.is-down .visual-dot { color: #f87171; }
.visual-row.is-up .visual-dot { color: #10b981; animation: dot-pulse 1.8s ease-in-out infinite; }

.visual-row.is-up .visual-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: var(--rounded-full);
  background: currentColor;
  opacity: 0.35;
  animation: dot-ring 1.8s ease-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}

@keyframes dot-ring {
  0% { transform: scale(0.6); opacity: 0.35; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   Demo grid
   ========================================================================== */

.demo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.demo-grid-card {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.demo-grid-card.is-tall {
  padding-bottom: var(--space-xxl);
}

.demo-grid-card[data-surface="peach"] {
  background: #dbeffd;
  border-color: transparent;
  color: var(--color-ink);
}

.demo-grid-card[data-surface="mint"] {
  background: #d5f5e8;
  border-color: transparent;
  color: var(--color-ink);
}

.demo-grid-card[data-surface="cream"] {
  background: #e2f8fb;
  border-color: transparent;
  color: var(--color-ink);
}

.demo-grid-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background: linear-gradient(135deg, #38c6f4, #0284c7);
  color: var(--color-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--label-md-size);
  font-weight: var(--label-md-weight);
}

.demo-grid-card[data-surface] .demo-grid-card-icon {
  background: rgba(255, 255, 255, 0.82);
  color: #0284c7;
}

.demo-grid-card h3 {
  font-size: var(--label-md-size);
  font-weight: var(--label-md-weight);
  line-height: var(--label-md-lh);
  color: inherit;
}

.demo-grid-card p {
  font-size: var(--body-md-size);
  line-height: 1.5;
  color: var(--color-body);
}

.demo-grid-card[data-surface] p {
  color: var(--color-body);
}

/* ==========================================================================
   Cream callout
   ========================================================================== */

.cream-callout-card {
  background: linear-gradient(135deg, #f0fbf7 0%, #e2f3fd 100%);
  border: 1px solid rgba(24, 29, 38, 0.06);
  border-radius: var(--rounded-md);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.cream-callout-card h2 {
  font-size: var(--title-lg-size);
  font-weight: var(--title-lg-weight);
  line-height: var(--title-lg-lh);
  letter-spacing: var(--title-lg-ls);
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.cream-callout-card p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-body);
}

.cream-callout-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.cream-stat {
  background: rgba(255, 255, 255, 0.6);
  border-radius: var(--rounded-sm);
  padding: var(--space-md);
}

.cream-stat .cream-stat-label {
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  letter-spacing: var(--caption-ls);
  color: var(--color-muted);
  margin-bottom: var(--space-xxs);
}

.cream-stat .cream-stat-value {
  font-size: var(--title-md-size);
  color: var(--color-ink);
}

/* ==========================================================================
   Channel strip (text-only badges, no logo images)
   ========================================================================== */

.channel-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-full);
  color: var(--color-muted);
  font-size: var(--body-md-size);
}

.chip-icon {
  display: inline-flex;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: currentColor;
  opacity: 0.85;
}

.chip-icon svg {
  width: 100%;
  height: 100%;
}

/* ==========================================================================
   Model matrix
   ========================================================================== */

.model-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.model-group {
  border-radius: var(--rounded-md);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  color: var(--color-ink);
}

.model-group[data-tone="cream"] { background: #e2f8fb; }
.model-group[data-tone="mint"] { background: #d5f5e8; }
.model-group[data-tone="peach"] { background: #dbeffd; }

.model-group-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background: rgba(255, 255, 255, 0.82);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.model-group-icon svg {
  width: 20px;
  height: 20px;
}

.model-group h3 {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--title-md-size);
  font-weight: var(--title-md-weight);
  color: var(--color-ink);
}

.model-group p {
  font-size: var(--body-md-size);
  line-height: 1.5;
  color: var(--color-body);
}

.model-tags {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
}

.model-tags .channel-chip {
  padding: var(--space-xxs) var(--space-md);
  font-size: var(--caption-size);
  background: rgba(255, 255, 255, 0.55);
  border-color: rgba(24, 29, 38, 0.14);
  color: var(--color-ink);
  justify-content: center;
  white-space: nowrap;
}

/* ==========================================================================
   Pricing
   ========================================================================== */

.pricing-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xxl);
}

.pricing-point {
  background: var(--color-surface-soft);
  border-radius: var(--rounded-md);
  padding: var(--space-xl);
  border-top: 3px solid #38bdf8;
}

.pricing-point:nth-child(2) {
  border-top-color: #34d399;
}

.pricing-point:nth-child(3) {
  border-top-color: #22d3ee;
}

.pricing-point-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--rounded-full);
  background: linear-gradient(135deg, #38c6f4, #0284c7);
  color: var(--color-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.pricing-point-icon svg {
  width: 20px;
  height: 20px;
}

.pricing-point h3 {
  font-size: var(--title-md-size);
  font-weight: var(--title-md-weight);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.pricing-point p {
  color: var(--color-body);
  font-size: var(--body-md-size);
  line-height: 1.5;
}

/* ==========================================================================
   CTA band light
   ========================================================================== */

/* ==========================================================================
   页脚中栏 CTA
   ========================================================================== */

.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
  justify-self: center;
  align-self: center;
}

.footer-cta h3 {
  font-size: var(--title-lg-size);
  font-weight: var(--title-lg-weight);
  line-height: var(--title-lg-lh);
  letter-spacing: var(--title-lg-ls);
  color: var(--color-ink);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--color-canvas);
  padding: var(--space-section) 0 var(--space-xl);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-xl);
  padding-bottom: var(--space-xxl);
  border-bottom: 1px solid var(--color-hairline);
  margin-bottom: var(--space-lg);
}

.footer-brand .nav-logo {
  display: block;
  font-size: var(--label-md-size);
  line-height: var(--title-lg-lh);
  margin-bottom: var(--space-md);
}

.footer-brand p {
  color: var(--color-muted);
  font-size: var(--body-md-size);
  line-height: 1.6;
  max-width: 320px;
}

.footer-links {
  display: flex;
  gap: var(--space-xxl);
  justify-self: end;
}

.footer-col h4 {
  font-size: var(--caption-size);
  font-weight: var(--caption-weight);
  letter-spacing: var(--caption-ls);
  color: var(--color-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: var(--color-body);
  font-size: var(--body-md-size);
}

.footer-col a:active {
  color: var(--color-ink);
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  color: var(--color-muted);
  font-size: 13px;
}

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

.footer-legal a:active {
  color: var(--color-ink);
}

.footer-beian {
  display: flex;
  gap: var(--space-xxs);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.demo-grid .reveal:nth-child(2),
.model-groups .reveal:nth-child(2),
.pricing-points .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.demo-grid .reveal:nth-child(3),
.model-groups .reveal:nth-child(3),
.pricing-points .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.demo-grid .reveal:nth-child(4) {
  transition-delay: 0.3s;
}

.hero-title.reveal,
.hero-sub.reveal,
.hero-actions.reveal {
  transform: translateY(20px);
  transition-duration: 0.6s;
}

.hero-sub.reveal { transition-delay: 0.1s; }
.hero-actions.reveal { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .visual-row.is-up .visual-dot,
  .visual-row.is-up .visual-dot::after {
    animation: none;
  }

  .btn:active {
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .demo-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .model-groups,
  .pricing-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .nav-links,
  .nav-right .nav-cta-desktop {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-sheet {
    position: fixed;
    inset: 64px 0 0 0;
    background: var(--color-canvas);
    padding: var(--space-xl) var(--space-lg);
    display: none;
    flex-direction: column;
    gap: var(--space-lg);
    z-index: 99;
  }

  .nav-sheet.is-open {
    display: flex;
  }

  .nav-sheet a {
    font-size: var(--title-md-size);
    color: var(--color-ink);
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .signature-card,
  .cream-callout-card {
    grid-template-columns: 1fr;
  }

  .demo-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: var(--space-xxl) 0;
  }

  .signature-card,
  .cream-callout-card {
    padding: var(--space-xl);
  }

  .footer-cta {
    align-items: flex-start;
    text-align: left;
    justify-self: start;
    align-self: start;
  }

  .footer-top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer-links {
    justify-self: start;
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Hero 2.0 — 左文案 + 右终端演示
   ========================================================================== */

:root {
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", "Cascadia Code", Consolas, "Liberation Mono", Menlo, monospace;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 64px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--color-hairline);
  border-radius: var(--rounded-full);
  background: var(--color-surface-soft);
  font-size: 13px;
  font-weight: var(--caption-weight);
  letter-spacing: var(--caption-ls);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
}

.hero-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--rounded-full);
  background: #0ea5e9;
}

.hero-title {
  font-size: clamp(34px, 4.3vw, 48px);
  font-weight: 500;
  line-height: 1.14;
}

.hero-title .hl {
  background: linear-gradient(transparent 64%, rgba(125, 211, 252, 0.55) 64%);
}

.hero-sub {
  font-size: 17px;
}

.hero-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: var(--space-lg) 0 0;
  color: var(--color-body);
  font-size: var(--body-md-size);
}

.hero-checks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-checks li::before {
  content: "✓";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: var(--rounded-full);
  background: #a7f3d0;
  color: #065f46;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ---------- 终端窗口 ---------- */

.hero-demo {
  min-width: 0;
}

.terminal {
  background: var(--color-canvas);
  border: 1px solid var(--color-hairline);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 28px 70px -30px rgba(24, 29, 38, 0.28),
    0 8px 24px -14px rgba(24, 29, 38, 0.14);
}

.terminal-chrome {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: 10px 14px;
  background: var(--color-surface-soft);
  border-bottom: 1px solid var(--color-hairline);
}

.terminal-dots {
  display: flex;
  gap: 7px;
  flex-shrink: 0;
}

.terminal-dots span {
  width: 11px;
  height: 11px;
  border-radius: var(--rounded-full);
}

.terminal-dots span:nth-child(1) { background: #ff5f57; }
.terminal-dots span:nth-child(2) { background: #febc2e; }
.terminal-dots span:nth-child(3) { background: #28c840; }

.terminal-tabs {
  display: flex;
  gap: 4px;
}

.terminal-tab {
  font-family: var(--font-stack);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1;
  color: var(--color-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.terminal-tab.is-active {
  color: var(--color-ink);
  background: var(--color-canvas);
  border-color: var(--color-hairline);
  box-shadow: 0 1px 3px rgba(24, 29, 38, 0.08);
}

.terminal-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-muted);
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: var(--rounded-full);
  background: #34d399;
  animation: dot-pulse 1.8s ease-in-out infinite;
}

.terminal-body {
  height: 440px;
  overflow: auto;
  padding: 18px 20px 22px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--color-body);
  white-space: pre;
  -webkit-overflow-scrolling: touch;
}

.terminal-body::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.terminal-body::-webkit-scrollbar-thumb {
  background: rgba(24, 29, 38, 0.18);
  border-radius: var(--rounded-full);
}

.terminal-body::-webkit-scrollbar-track {
  background: transparent;
}

.term-line {
  min-height: 1.7em;
}

.term-line.is-out {
  animation: line-in 0.28s ease;
}

@keyframes line-in {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: none; }
}

/* 语法配色：浅底清新色系（终端与代码卡通用） */
.t-plain { color: #333840; }
.t-punc  { color: #7c828d; }
.t-cmd   { color: #0d9488; }
.t-flag  { color: #6b7280; }
.t-str   { color: #059669; }
.t-num   { color: #7c3aed; }
.t-key   { color: #1b61c9; }
.t-ok    { color: #059669; }
.t-dim   { color: #9aa1ab; }

.term-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  vertical-align: -0.18em;
  margin-left: 1px;
  background: var(--color-ink);
  animation: cursor-blink 1s steps(1) infinite;
}

@keyframes cursor-blink {
  50% { opacity: 0; }
}

/* ---------- 模型跑马灯 ---------- */

.hero-marquee {
  position: relative;
  margin-top: 52px;
}

.hero-marquee-viewport {
  overflow: hidden;
  padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.hero-marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}

.hero-marquee-group {
  display: flex;
  gap: var(--space-sm);
  padding-right: var(--space-sm);
  flex-shrink: 0;
}

.hero-marquee .channel-chip {
  flex-shrink: 0;
  background: var(--color-canvas);
}

/* 中央放大镜 */
.marquee-lens {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 86px;
  height: 86px;
  border: 3px solid #0ea5e9;
  border-radius: var(--rounded-full);
  box-shadow:
    0 10px 28px -10px rgba(14, 165, 233, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
  pointer-events: none;
  z-index: 2;
}

/* 圆形裁切区：镜片内只显示放大副本 */
.lens-viewport {
  position: absolute;
  inset: 0;
  border-radius: var(--rounded-full);
  overflow: hidden;
  background: var(--color-canvas);
}

/* 镜面玻璃质感覆层 */
.lens-viewport::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--rounded-full);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.04) 55%, rgba(56, 198, 244, 0.14));
}

/* 放大副本轨道：JS 每帧同步位移与缩放 */
.lens-track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  width: max-content;
  transform-origin: 0 0;
  will-change: transform;
}

/* 镜面高光 */
.marquee-lens::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 16px;
  width: 20px;
  height: 10px;
  border-radius: var(--rounded-full);
  background: rgba(255, 255, 255, 0.85);
  filter: blur(1px);
  transform: rotate(-28deg);
  z-index: 1;
}

/* 镜柄 */
.marquee-lens::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -12px;
  width: 30px;
  height: 8px;
  border-radius: var(--rounded-full);
  background: linear-gradient(135deg, #38c6f4, #0284c7);
  transform: rotate(45deg);
  box-shadow: 0 4px 10px -4px rgba(14, 165, 233, 0.5);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- 深色 CTA 内嵌代码卡 ---------- */

.signature-card-visual.code-card {
  display: block;
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(24, 29, 38, 0.08);
  padding: 20px 22px;
}

.code-card pre {
  margin: 0;
  overflow-x: auto;
}

.code-card code {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: var(--color-body);
  white-space: pre;
}

/* ==========================================================================
   全页外观与动效润色
   ========================================================================== */

/* 吸顶导航：毛玻璃 */
.top-nav {
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}

/* 锚点定位为吸顶导航让位 */
#features,
#scenarios,
#models,
#pricing {
  scroll-margin-top: 88px;
}

/* 入场动画：更柔和的缓动 */
.reveal {
  transition:
    opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hero-copy .hero-title { transition-delay: 0.05s; }
.hero-copy .hero-sub { transition-delay: 0.12s; }
.hero-copy .hero-actions { transition-delay: 0.18s; }
.hero-copy .hero-checks { transition-delay: 0.24s; }
.hero-demo.reveal { transition-delay: 0.2s; }
.hero-marquee.reveal { transition-delay: 0.35s; }

/* 卡片悬停轻微上浮 */
.demo-grid-card,
.model-group,
.pricing-point,
.cream-stat {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

@media (hover: hover) {
  .btn-primary:hover {
    background: linear-gradient(135deg, #2bb4e2 0%, #0b93d1 55%, #0273af 100%);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(14, 165, 233, 0.6);
  }

  .btn-secondary:hover {
    border-color: var(--color-border-strong);
    background: var(--color-surface-soft);
  }

  .btn-secondary-on-dark:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.35);
  }

  .demo-grid-card:hover,
  .model-group:hover,
  .pricing-point:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(24, 29, 38, 0.25);
  }

  .nav-links a:hover,
  .footer-col a:hover,
  .footer-legal a:hover {
    color: var(--color-ink);
  }

  .terminal-tab:hover {
    color: var(--color-ink);
  }
}

/* ==========================================================================
   Hero / 终端响应式
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: var(--space-xxl);
  }

  .hero-demo {
    max-width: 680px;
  }
}

@media (max-width: 768px) {
  .hero-band {
    padding: var(--space-xxl) 0;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-marquee {
    margin-top: var(--space-xxl);
  }

  .marquee-lens {
    width: 64px;
    height: 64px;
    border-width: 2px;
  }

  .terminal-body {
    height: 380px;
    font-size: 11.5px;
    padding: 14px 16px 18px;
  }

  .terminal-status {
    display: none;
  }
}

/* ==========================================================================
   降级动效
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero-marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }

  .hero-marquee-viewport {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .marquee-lens {
    display: none;
  }

  .hero-marquee-group:last-child {
    display: none;
  }

  .term-cursor,
  .status-dot,
  .term-line.is-out {
    animation: none;
  }

  .btn-primary:hover,
  .btn-secondary-on-dark:hover,
  .demo-grid-card:hover,
  .model-group:hover,
  .pricing-point:hover {
    transform: none;
  }
}
