:root {
  --blue: #0F6CD4;
  --blue-dark: #0B57AC;
  --blue-soft: #EAF2FC;
  --ink: #1B1F24;
  --muted: #6A7480;
  --line: #E5E8EC;
  --soft: #F6F8FA;
  --white: #FFFFFF;
  --radius: 8px;
  --max: 1120px;
  --font: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", "Segoe UI", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, "Courier New", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
code { font-family: var(--mono); }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 780px; }

/* ---------- 顶栏 ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 160ms ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

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

.brand-name { font-size: 16px; }

.brand-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  border: 1px solid rgba(15, 108, 212, 0.28);
  border-radius: 999px;
  padding: 1px 8px;
  line-height: 1.6;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.nav a { transition: color 140ms ease; }
.nav a:hover,
.nav a.is-active { color: var(--ink); }

.nav a[href^="#"]:not(.nav-cta) { position: relative; }

.nav a[href^="#"]:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 1px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav a[href^="#"]:not(.nav-cta):hover::after,
.nav a[href^="#"]:not(.nav-cta).is-active::after { transform: scaleX(1); }

.nav-cta {
  color: var(--white) !important;
  background: var(--blue);
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 600;
}

.nav-cta:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span + span { margin-top: 5px; }

.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 {
  padding: 88px 0 84px;
  background: radial-gradient(900px 420px at 84% -12%, #F1F7FE 0%, rgba(241, 247, 254, 0) 62%);
}

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

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.22;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.lead {
  margin-top: 22px;
  max-width: 34em;
  color: var(--muted);
  font-size: 16.5px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-actions.center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--blue);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 8px 18px -10px rgba(15, 108, 212, 0.7);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero-meta li { position: relative; padding-left: 13px; }

.hero-meta li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
}

/* ---------- 终端 ---------- */

.terminal {
  min-width: 0;
  width: 100%;
  background: #0F1720;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 60px -28px rgba(15, 23, 32, 0.55);
  font-family: var(--mono);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  background: #151F2A;
  border-bottom: 1px solid #1E2A36;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2C3A47;
}

.terminal-title {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 11.5px;
  color: #6E7F90;
}

.terminal-body {
  margin: 0;
  padding: 22px 20px 20px;
  font-size: 12.6px;
  line-height: 1.95;
  color: #C6D2DE;
  overflow-x: auto;
  white-space: pre;
}

.t-prompt { color: #4E9BE8; }
.t-cmd { color: #E7EDF4; }
.t-dim { color: #74879A; }
.t-strong { color: #E7EDF4; }
.t-cyan { color: #4FC1E9; }
.t-green { color: #57C98B; }
.t-sel { color: #7BC0FF; }
.t-cursor { color: #57C98B; animation: blink 1.1s steps(1) infinite; }

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

/* ---------- 通用区块 ---------- */

.section { padding: 96px 0; }
.section-soft { background: var(--soft); }

section[id] { scroll-margin-top: 82px; }

.section-kicker {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}

.section-sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 44em;
}

.prose { margin-top: 30px; }
.prose p { color: #3A424B; margin-bottom: 18px; }
.prose p:last-child { margin-bottom: 0; }

.quote {
  margin-top: 34px;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  background: var(--white);
  font-size: 18px;
  color: var(--ink);
}

.compliance {
  margin-top: 26px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.95;
}

.compliance-title {
  margin-bottom: 8px !important;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.compliance p + p { margin-top: 6px; }

.compliance-contact {
  color: #3A424B;
  font-weight: 500;
}

/* ---------- 功能 ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px;
  background: var(--white);
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.feature:hover {
  border-color: rgba(15, 108, 212, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -26px rgba(20, 44, 74, 0.45);
}

.feature-index {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--blue);
  margin-bottom: 14px;
}

.feature h3 { font-size: 17px; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14px; }

/* ---------- 步骤 ---------- */

.steps {
  margin-top: 46px;
  display: grid;
  gap: 0;
}

.steps li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 20px;
  padding-bottom: 34px;
  position: relative;
}

.steps li:last-child { padding-bottom: 0; }

.steps li::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 44px;
  bottom: 0;
  width: 1px;
  background: var(--line);
}

.steps li:last-child::before { display: none; }

.step-no {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
  font-family: var(--mono);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.step-body h3 { font-size: 17px; margin: 9px 0 6px; }
.step-body p { color: var(--muted); font-size: 14.5px; max-width: 46em; }

/* ---------- 运行 ---------- */

.run-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 44px;
}

.run-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  background: var(--white);
}

.run-card h3 { font-size: 18px; margin-bottom: 10px; }
.run-card p { color: var(--muted); font-size: 14.5px; }
.run-card code,
.faq-body code,
.run-note code {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  font-size: 0.9em;
}

.run-list { margin-top: 16px; display: grid; gap: 8px; }

.run-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: #3A424B;
}

.run-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border: 1px solid var(--blue);
  border-radius: 50%;
}

.code-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  background: #0F1720;
  border-radius: 6px;
  overflow: hidden;
}

.code-box code {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  white-space: nowrap;
  color: #C6D2DE;
  font-size: 12.4px;
  scrollbar-width: thin;
}

.copy-btn {
  flex: none;
  border: 1px solid #2A3948;
  background: #17222E;
  color: #9FB3C6;
  border-radius: 4px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: color 140ms ease, border-color 140ms ease;
}

.copy-btn:hover { color: #E7EDF4; border-color: #3C4E62; }
.copy-btn.is-copied { color: #57C98B; border-color: rgba(87, 201, 139, 0.5); }

.run-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

.download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 22px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.download-row h3 { font-size: 17px; margin-bottom: 4px; }
.download-row p { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { margin-top: 34px; border-top: 1px solid var(--line); }

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-size: 16px;
  font-weight: 600;
  transition: color 140ms ease;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 160ms ease, color 160ms ease;
}

.faq-item[open] summary::after { content: "−"; color: var(--blue); }

.faq-body { padding: 0 40px 22px 0; color: var(--muted); font-size: 14.5px; }
.faq-body p { margin: 0; }
.faq-item[open] .faq-body { animation: faqIn 220ms ease both; }

/* ---------- CTA / 页脚 ---------- */

.cta { background: var(--blue); color: var(--white); text-align: center; }
.cta h2 { font-size: clamp(24px, 2.8vw, 32px); letter-spacing: -0.015em; }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, 0.78); }

.cta .btn-primary { background: var(--white); color: var(--blue); }
.cta .btn-primary:hover { background: #EAF2FC; }

.cta .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.4); color: var(--white); }
.cta .btn-ghost:hover { border-color: var(--white); color: var(--white); }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); }

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-version { margin-left: 10px; font-size: 12px; color: var(--muted); }

.footer-right { display: grid; gap: 6px; max-width: 46em; }

.footer-contact { font-size: 12.5px; color: var(--muted); }

.footer-contact a {
  color: var(--blue);
  text-decoration: underline;
  text-decoration-color: rgba(15, 108, 212, 0.35);
  text-underline-offset: 3px;
}

.footer-contact a:hover { text-decoration-color: var(--blue); }

.footer-note {
  max-width: 46em;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------- 动画 ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

.js .hero-copy { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.js .terminal { animation: rise 800ms 90ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */

@media (max-width: 960px) {
  .hero { padding: 64px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .terminal { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 76px 0; }
}

@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .nav {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--soft); }
  .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0 !important; }
  .nav-toggle { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .run-grid { grid-template-columns: 1fr; }
  .download-row { flex-direction: column; align-items: flex-start; }
  .hero-meta { gap: 6px 18px; }
  .footer-inner { flex-direction: column; }
  .steps li { grid-template-columns: 38px 1fr; gap: 16px; }
  .step-no { width: 38px; height: 38px; }
  .steps li::before { left: 18px; top: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-copy,
  .js .terminal { animation: none; }
  .faq-item[open] .faq-body { animation: none; }
  .t-cursor { animation: none; }
  .feature, .btn, .copy-btn { transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}
