/* ===========================
   设计变量（翡翠绿 + 琥珀橙 · 原创脚本）
=========================== */
:root {
  --bg: #07080a;
  --bg-soft: #0d0f12;
  --surface: #121418;
  --surface-2: #181b20;
  --line: #1f2228;
  --line-soft: #15171c;

  --text: #f5f6f7;
  --text-soft: #b9bcc4;
  --text-dim: #6c6f78;

  --emerald: #10b981;
  --emerald-deep: #059669;
  --amber: #f59e0b;
  --amber-deep: #d97706;
  --white: #ffffff;

  --grad-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-amber: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  --grad-mix: linear-gradient(120deg, #10b981 0%, #f59e0b 100%);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;

  --shadow-glow-emerald: 0 0 0 1px rgba(16,185,129,.18), 0 18px 60px -20px rgba(16,185,129,.45);
  --shadow-glow-amber: 0 0 0 1px rgba(245,158,11,.18), 0 18px 60px -20px rgba(245,158,11,.45);

  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

/* ===========================
   基础
=========================== */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
::selection { background: var(--emerald); color: #000; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   按钮
=========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 12px 22px;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 16px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--grad-mix);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(245,158,11,.5);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -10px rgba(16,185,129,.55), 0 14px 30px -12px rgba(245,158,11,.55);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255,255,255,.02);
}
.btn-ghost:hover {
  border-color: var(--emerald);
  color: var(--emerald);
  background: rgba(16,185,129,.06);
}

/* ===========================
   导航
=========================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(7,8,10,.6);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.nav.scrolled {
  background: rgba(7,8,10,.86);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: 15px;
}
.logo-mark {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-emerald);
  border-radius: 8px;
  color: #031a10;
}
.logo-text { color: #fff; }
.logo-accent { color: var(--emerald); margin-left: 2px; }

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13px;
  color: var(--text-soft);
  position: relative;
  padding: 6px 0;
  transition: color .2s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--grad-mix);
  transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }

.nav .btn-sm { margin-left: 4px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  transition: transform .25s var(--ease), opacity .25s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===========================
   Hero
=========================== */
.hero {
  position: relative;
  padding: 140px 0 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.blob {
  position: absolute;
  opacity: .25;
}
/* 角锚定径向渐变：亮心在屏幕角外，屏幕内只呈现单调向内的光衰减，
   任何边缘（视口左右、区块交界）都切在渐变最亮处，不会出现硬切线 */
.blob-emerald {
  width: 1300px; height: 1300px;
  background: radial-gradient(circle closest-side, #10b981, transparent 72%);
  filter: blur(60px);
  top: -700px; left: -700px;
}
.blob-amber {
  width: 1500px; height: 1500px;
  background: radial-gradient(circle closest-side, #f59e0b, transparent 72%);
  filter: blur(60px);
  bottom: -760px; right: -760px;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--text-soft);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 999px;
  animation: rise .7s var(--ease) both;
}
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title { animation: rise .8s var(--ease) .08s both; }
.hero-sub { animation: rise .8s var(--ease) .18s both; }
.hero-cta { animation: rise .8s var(--ease) .28s both; }
.hero-stats { animation: rise .8s var(--ease) .38s both; }
.hero-media { animation: rise 1s var(--ease) .2s both; }

.hero-title {
  font-size: clamp(36px, 5.4vw, 64px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.01em;
  margin: 22px 0 18px;
}
.hero-title .amp { color: var(--text-dim); font-weight: 300; }
.grad-emerald {
  background: var(--grad-emerald);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-amber {
  background: var(--grad-amber);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-stats strong {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.hero-stats span {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.hero-stats li:nth-child(1) strong { color: var(--emerald); }
.hero-stats li:nth-child(2) strong { color: var(--amber); }

/* Hero 终端 */
.hero-media {
  position: relative;
  justify-self: end;
}
.terminal {
  width: 340px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #0a0c0f;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(16,185,129,.12);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #121418;
  border-bottom: 1px solid var(--line);
}
.terminal-bar span[class^="dot-"] {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dot-r { background: #ff5f57; }
.dot-y { background: #febc2e; }
.dot-g { background: #28c840; }
.terminal-title {
  margin-left: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.terminal-body {
  padding: 18px 18px 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
}
.t-line .t-prompt { color: var(--emerald); margin-right: 8px; }
.t-comment { color: var(--text-dim); }
.t-ok { color: #6ee7b7; }
.t-ok::before { content: ""; }
.t-cursor {
  display: inline-block;
  width: 8px; height: 16px;
  background: var(--emerald);
  vertical-align: middle;
  margin-left: 2px;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.floating-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: rgba(18,20,24,.85);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
}
.floating-chip svg { color: var(--emerald); }
.chip-1 { top: 14%; left: -34px; }
.chip-2 { bottom: 18%; right: -28px; }
.chip-2 svg { color: var(--amber); }

.scroll-hint {
  position: absolute;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.scroll-hint:hover { color: var(--emerald); border-color: var(--emerald); }

/* ===========================
   跑马灯
=========================== */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
  overflow: hidden;
  padding: 14px 0;
}
.marquee-track {
  --marquee-duration: 45s;
  display: flex;
  white-space: nowrap;
  animation: marquee var(--marquee-duration) linear infinite;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-soft);
  width: max-content;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track .sep { color: var(--emerald); }
.marquee-group {
  display: flex;
  gap: 28px;
  padding-right: 28px;
  flex-shrink: 0;
}
@keyframes marquee {
  to { transform: translateX(calc(-100% / var(--marquee-copies, 2))); }
}

/* ===========================
   通用 Section
=========================== */
.section {
  padding: 2rem 0 ;
  position: relative;
}
.section + .section { border-top: 1px solid var(--line-soft); }

.section-head {
  margin-bottom: 1rem;
}
.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--emerald);
  text-transform: uppercase;
  margin-bottom: 14px;
  position: relative;
  padding-left: 24px;
}
.section-eyebrow::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 16px; height: 2px;
  background: var(--grad-mix);
}
.section-eyebrow.light { color: var(--emerald); }

.section-title {
   color: var(--text-soft);
 font-size: 2rem;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -.01em;
}
.section-title.light { 
 color: var(--text-soft);
}
.section-lead {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-soft);
}
.section-lead.light { color: var(--text-soft); }
.section-lead strong { font-weight: 700; }
.section-text {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-soft);
}
.hl-emerald { color: var(--emerald); }
.hl-amber { color: var(--amber); }

/* ===========================
   About - Split
=========================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-media {
  position: relative;
}
.media-illu {
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0f1318 0%, #0a0c0f 100%);
  border: 1px solid var(--line);
  padding: 28px;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}
.media-illu::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: var(--grad-mix);
  border-radius: var(--radius-lg);
  z-index: -1;
  opacity: .25;
  filter: blur(20px);
}
.illu-code {
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 2;
  padding-left: 8px;
  border-left: 2px solid var(--line);
}
.c-green { color: var(--emerald); }
.c-amber { color: var(--amber); }
.c-dim { color: var(--text-dim); }

.badge-num {
  position: absolute;
  right: -18px;
  bottom: -18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 22px;
  text-align: center;
  box-shadow: 0 20px 40px -16px rgba(0,0,0,.6);
}
.badge-num strong {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  color: var(--emerald);
  line-height: 1;
}
.badge-num span {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .06em;
}

.tick-list { margin-top: 22px; }
.tick-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 14px;
  color: var(--text-soft);
  border-bottom: 1px dashed var(--line);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 16px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--emerald);
  border-bottom: 2px solid var(--emerald);
  transform: rotate(-45deg);
}

/* ===========================
   Feature Grid
=========================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  padding: 28px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.015), transparent);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,.4);
  background: linear-gradient(180deg, rgba(16,185,129,.05), transparent);
}
.feature-icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 16px;
}
.icon-emerald { background: var(--grad-emerald); color: #031a10; }
.icon-amber { background: var(--grad-amber); color: #1a0f00; }
.feature h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 700;
}
.feature p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ===========================
   Originality Card
=========================== */
.originality {
  background:
    radial-gradient(ellipse at top right, rgba(16,185,129,.07), transparent 60%),
    radial-gradient(ellipse at bottom left, rgba(245,158,11,.07), transparent 60%),
    var(--bg-soft);
}
.orig-card {
  display: grid;
  grid-template-columns: 1fr .85fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent);
}
.kv-list {
  margin: 24px 0 28px;
  display: flex;
  flex-direction: column;
}
.kv-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.kv-list li span { color: var(--text-soft); }
.kv-list li strong {
  font-family: var(--mono);
  font-weight: 700;
  color: #fff;
}

.orig-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.ring {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.ring svg { filter: drop-shadow(0 0 24px rgba(16,185,129,.25)); }
.ring-center {
  position: absolute;
  text-align: center;
}
.ring-center strong {
  display: block;
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.ring-center strong span { font-size: 20px; color: var(--text-soft); }
.ring-center span {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .06em;
}
.ring-center em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--amber);
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 12px;
  color: var(--text-soft);
}
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.dot-emerald, .dot-amber {
  width: 10px; height: 10px;
  border-radius: 3px;
}
.dot-emerald { background: var(--emerald); }
.dot-amber { background: var(--amber); }

.callout {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--emerald);
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(16,185,129,.04), transparent 60%);
}
.callout-icon {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--grad-emerald);
  color: #031a10;
  display: inline-flex; align-items: center; justify-content: center;
}
.callout-text h4 {
  font-size: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}
.callout-text p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ===========================
   脚本目录
=========================== */
.catalog-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 9px 16px;
  border-radius: 999px;
  transition: all .25s var(--ease);
}
.tab-btn:hover {
  color: var(--text);
  border-color: rgba(16,185,129,.4);
}
.tab-btn.is-active {
  color: #031a10;
  background: var(--grad-emerald);
  border-color: transparent;
  box-shadow: 0 6px 18px -8px rgba(16,185,129,.6);
}
.os-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}
.os-dot.os-centos { background: var(--emerald); }
.os-dot.os-debian { background: #a855f7; }
.os-dot.os-ubuntu { background: #e95420; }
.os-dot.os-vpc { background: var(--amber); }
.tab-btn.is-active .os-dot { background: #031a10; }
.tab-count {
  font-size: 11px;
  color: var(--text-dim);
  background: rgba(255,255,255,.06);
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 2px;
}
.tab-btn.is-active .tab-count {
  color: #031a10;
  background: rgba(0,0,0,.15);
}

.catalog-group {
  display: none;
  animation: fadeDown .35s var(--ease);
}
.catalog-group.is-active { display: block; }
.catalog-head {
  margin-bottom: 16px;
}
.catalog-meta {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .04em;
}

.script-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.script-item {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.script-item:hover {
  border-color: rgba(16,185,129,.35);
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(16,185,129,.04), transparent);
}
.script-no {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--text-dim);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}
.script-body { flex: 1; min-width: 0; }
.script-body h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}
.script-body p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 10px;
}
.script-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: .02em;
}
.tag-emerald { color: #6ee7b7; border-color: rgba(16,185,129,.4); background: rgba(16,185,129,.08); }
.tag-amber { color: #fcd34d; border-color: rgba(245,158,11,.4); background: rgba(245,158,11,.08); }
.script-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #031a10;
  background: var(--grad-amber);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: .04em;
}

/* ===========================
   系统支持
=========================== */
.systems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.sys-item {
  position: relative;
  padding: 20px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .3s var(--ease);
}
.sys-item:hover {
  transform: translateY(-4px);
  border-color: rgba(16,185,129,.35);
}
.sys-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--grad-emerald);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.sys-item:hover::before { transform: scaleX(1); }
.sys-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--grad-emerald);
  color: #031a10;
  margin-bottom: 16px;
}
.sys-icon.sys-amber { background: var(--grad-amber); color: #1a0f00; }
.sys-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.sys-item p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
.sys-count {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--emerald);
  background: rgba(16,185,129,.1);
  border: 1px solid rgba(16,185,129,.25);
  padding: 3px 10px;
  border-radius: 4px;
}

/* ===========================
   Steps
=========================== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.steps li {
  display: flex;
  gap: 18px;
  padding: 28px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.steps li:hover {
  border-color: rgba(245,158,11,.4);
  transform: translateY(-3px);
}
.step-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  text-stroke: 1px var(--amber);
  line-height: 1;
}
.steps h3 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
}
.steps p {
  font-size: 13px;
  color: var(--text-soft);
}

/* ===========================
   FAQ
=========================== */
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--emerald); }
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  position: relative;
  border-radius: 50%;
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: var(--text-soft);
  transition: transform .3s var(--ease), background .3s var(--ease);
}
.faq-icon::before { width: 10px; height: 1.5px; transform: translate(-50%, -50%); }
.faq-icon::after { width: 1.5px; height: 10px; transform: translate(-50%, -50%); }
.faq-item[open] .faq-icon { background: var(--emerald); border-color: var(--emerald); transform: rotate(180deg); }
.faq-item[open] .faq-icon::before, .faq-item[open] .faq-icon::after { background: #031a10; }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 4px 22px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  animation: fadeDown .3s var(--ease);
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================
   CTA
=========================== */
.cta {
  padding: 96px 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(245,158,11,.12), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(16,185,129,.12), transparent 50%),
    var(--bg-soft);
  border-top: 1px solid var(--line);
}
.cta-inner {
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 56px;
  align-items: center;
}
.cta-form {
  margin-top: 26px;
  max-width: 480px;
}
.cta-form .field {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.cta-form input,
.form-select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.cta-form input::placeholder { color: var(--text-dim); }
.form-select option { background: var(--surface); color: var(--text); }
.cta-form input:focus,
.form-select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,.12);
}
.form-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--emerald);
}
.cta-visual {
  position: relative;
  justify-self: end;
}
.cta-card {
  position: relative;
  width: 320px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #0f1318, #0a0c0f);
  border: 1px solid var(--line);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(16,185,129,.12);
}
.cta-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.cta-card-row:last-of-type { border-bottom: none; }
.cta-label {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: .04em;
}
.cta-val {
  font-family: var(--mono);
  font-size: 13px;
  color: #fff;
}
.cta-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: #6ee7b7;
}
.cta-status i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(16,185,129,.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(16,185,129,.18); }
  50% { box-shadow: 0 0 0 7px rgba(16,185,129,.08); }
}
.cta-tag {
  position: absolute;
  top: 18px; right: -16px;
  font-family: var(--mono);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .12em;
  line-height: 1.2;
  color: #031a10;
  background: var(--grad-emerald);
  padding: 10px 14px;
  border-radius: 8px;
  transform: rotate(6deg);
  box-shadow: 0 12px 30px -10px rgba(16,185,129,.5);
  text-align: center;
}

/* ===========================
   Footer
=========================== */
.footer {
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: start;
}
.footer-brand .logo { margin-bottom: 10px; }
.footer-tag {
  font-size: 12px;
  color: var(--text-dim);
}
.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--text-soft);
  transition: color .2s var(--ease);
}
.footer-links a:hover { color: var(--emerald); }
.footer-copy {
  grid-column: 1 / -1;

 text-align: right;

  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: .02em;
}

/* ===========================
   滚入动画
   （候选元素在首帧即由 CSS 预隐藏，避免 JS 初始化前的闪烁；
     :where() 保持零特异性增量：.in 可覆盖预隐藏，又不会压掉 :hover 的上浮效果；
     无 JS 时 .js 类不存在、内容照常显示）
=========================== */
:where(.js) :where(.section-head, .split > *, .feature, .steps li, .callout, .sys-item, .script-item, .faq-item, .orig-card, .cta-text > *, .cta-visual) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
:where(.js) :where(.section-head, .split > *, .feature, .steps li, .callout, .sys-item, .script-item, .faq-item, .orig-card, .cta-text > *, .cta-visual).in {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   响应式
=========================== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .systems-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { justify-self: center; order: -1; }
  .terminal { width: 300px; }
  .split, .orig-card, .cta-inner { grid-template-columns: 1fr; gap: 36px; }
  .split-media { max-width: 520px; }
  .badge-num { right: 0; }
  .script-list { grid-template-columns: 1fr; }
  .cta-visual { justify-self: center; }
  .cta-card { width: 300px; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    padding: 20px 24px;
  }
  .nav .btn-sm { padding: 8px 12px; font-size: 11px; }
  .hero { padding: 110px 0 60px; min-height: auto; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 20px; }
  .feature-grid, .steps, .systems-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .orig-card { padding: 28px; }
  .cta-form .field { grid-template-columns: 1fr; }
  .floating-chip { display: none; }
  .terminal { width: 280px; }
  .terminal-body { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .js :where(.section-head, .split > *, .feature, .steps li, .callout, .sys-item, .script-item, .faq-item, .orig-card, .cta-text > *, .cta-visual) { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation-duration: var(--marquee-duration, 45s) !important; }
}
