/* ==========================================================================
   Quasar — 独立采集能力平台 · 站点设计系统
   苹果风：大标题、留白、毛玻璃导航、滚动渐显；品牌色：深空 + 类星体青
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #0a0f1e;
  --bg-dark-2: #10182e;
  --surface: #ffffff;
  --card-dark: #131c33;
  --text: #1d1d1f;
  --text-muted: #6e6e73;
  --text-dim: #86868b;
  --on-dark: #f5f5f7;
  --on-dark-muted: #a1adc9;
  --accent: #0a84ff;
  --cyan: #3dd6f5;
  --indigo: #8fa0ff;
  --green: #4ade80;
  --amber: #f5c04e;
  --red: #ff5f57;
  --yellow: #febc2e;
  --hairline: rgba(0, 0, 0, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.1);
  --radius: 18px;
  --radius-lg: 28px;
  --nav-h: 52px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Segoe UI", Roboto, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, "Liberation Mono",
    monospace;
  --shadow-soft: 0 8px 30px rgba(10, 15, 30, 0.08);
  --shadow-lift: 0 22px 60px rgba(10, 15, 30, 0.16);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: clip; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; border: 0; cursor: pointer; background: none; }
::selection { background: rgba(61, 214, 245, 0.35); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------------- typography ---------------- */
.eyebrow {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.h1, .h2, .h3 { font-weight: 700; letter-spacing: -0.015em; line-height: 1.12; }
.h1 { font-size: clamp(40px, 6.4vw, 76px); }
.h2 { font-size: clamp(30px, 4.4vw, 52px); }
.h3 { font-size: clamp(21px, 2.6vw, 28px); }
.lead {
  font-size: clamp(18px, 2.2vw, 23px);
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 500;
}
.on-dark .lead, .dark .lead { color: var(--on-dark-muted); }
.grad-text {
  background: linear-gradient(96deg, var(--cyan) 6%, var(--indigo) 60%, #b48fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------------- nav ---------------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 34px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16.5px; letter-spacing: 0.02em;
}
.nav-logo svg { width: 21px; height: 21px; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-links a {
  font-size: 13.5px; color: rgba(29, 29, 31, 0.78);
  transition: color 0.25s; position: relative; padding: 6px 0;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta {
  font-size: 13px; font-weight: 600; color: #fff;
  background: var(--accent); padding: 7px 15px; border-radius: 999px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(10, 132, 255, 0.35); }
.nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; position: relative; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; position: absolute; left: 9px; width: 22px; height: 1.8px;
  background: var(--text); border-radius: 2px; transition: 0.3s var(--ease);
}
.nav-burger span { top: 19px; }
.nav-burger span::before { top: -7px; left: 0; }
.nav-burger span::after { top: 7px; left: 0; }
.nav.open .nav-burger span { background: transparent; }
.nav.open .nav-burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--hairline);
    padding: 8px 24px 18px;
  }
  .nav.open .nav-links a { padding: 13px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .nav.open .nav-links a:last-child { border-bottom: 0; }
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 16px; font-weight: 600; padding: 13px 26px;
  border-radius: 999px; transition: 0.3s var(--ease);
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 132, 255, 0.4); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); color: var(--on-dark); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.btn-dark { background: var(--bg-dark); color: var(--on-dark); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(10, 15, 30, 0.3); }
.btn .arrow { transition: transform 0.3s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------------- hero (dark) ---------------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: calc(var(--nav-h) + 88px) 0 110px;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(42% 55% at 78% 18%, rgba(143, 160, 255, 0.20), transparent 70%),
    radial-gradient(38% 48% at 16% 8%, rgba(61, 214, 245, 0.13), transparent 70%),
    radial-gradient(60% 70% at 50% 120%, rgba(143, 160, 255, 0.12), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 980px; margin: 0 auto; padding: 0 24px; }
.hero .eyebrow { color: var(--cyan); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12.5px; color: var(--on-dark-muted);
  border: 1px solid var(--hairline-dark); border-radius: 999px;
  padding: 7px 16px; background: rgba(255, 255, 255, 0.04);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* quasar glow visual */
.glow-wrap { position: absolute; right: -140px; top: -120px; width: 560px; height: 560px; pointer-events: none; }
.glow-wrap .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(143, 160, 255, 0.22); inset: 0; }
.glow-wrap .ring.r2 { inset: 70px; border-color: rgba(61, 214, 245, 0.25); }
.glow-wrap .core {
  position: absolute; inset: 215px; border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #bfeaff, var(--cyan) 55%, #2a9fd4);
  box-shadow: 0 0 90px rgba(61, 214, 245, 0.55);
  animation: corePulse 5s var(--ease) infinite;
}
@keyframes corePulse { 50% { box-shadow: 0 0 140px rgba(61, 214, 245, 0.8); } }
.glow-wrap .sat { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------------- terminal mock ---------------- */
.term {
  background: var(--bg-dark-2);
  border: 1px solid var(--hairline-dark);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  text-align: left;
}
.term-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px; background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--hairline-dark);
}
.term-bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.term-bar i:nth-child(1) { background: var(--red); }
.term-bar i:nth-child(2) { background: var(--yellow); }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar em {
  font-style: normal; margin: 0 auto; font-family: var(--mono);
  font-size: 11.5px; color: #6b779c;
}
.term-body {
  padding: 18px 20px; font-family: var(--mono); font-size: 13.5px;
  line-height: 1.75; color: #b9c3de; min-height: 220px; white-space: pre-wrap;
}
.term-body .prompt { color: var(--green); font-weight: 600; }
.term-body .cmd { color: #e9eefa; }
.term-body .ok { color: var(--cyan); }
.term-body .dim { color: #5e6a8c; }
.term-body .caret {
  display: inline-block; width: 8px; height: 17px; background: var(--cyan);
  vertical-align: -3px; animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------------- sections ---------------- */
.section { padding: 110px 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* metric strip */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.metric { text-align: center; }
.metric b { display: block; font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; letter-spacing: -0.02em; }
.metric span { font-size: 14px; color: var(--text-muted); }
.on-dark .metric b { color: var(--on-dark); }
.on-dark .metric span { color: var(--on-dark-muted); }

/* feature cards */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 34px 30px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(61, 214, 245, 0.16), rgba(143, 160, 255, 0.2));
}
.card .icon svg { width: 24px; height: 24px; stroke: var(--accent); }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.card p { font-size: 15px; color: var(--text-muted); }
.card code { font-family: var(--mono); font-size: 13px; background: var(--bg-alt); padding: 2px 7px; border-radius: 6px; color: var(--text); }

/* feature rows (image + text) */
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.frow + .frow { margin-top: 110px; }
.frow.rev .fmedia { order: 2; }
.frow .ftext .eyebrow { margin-bottom: 12px; }
.frow .ftext h2 { margin-bottom: 14px; }
.frow .ftext p.lead { font-size: 17.5px; margin-bottom: 22px; }
.frow ul.feat { display: grid; gap: 13px; }
.frow ul.feat li { display: flex; gap: 12px; font-size: 15.5px; color: var(--text-muted); }
.frow ul.feat li::before {
  content: ""; flex: 0 0 18px; height: 18px; margin-top: 4px;
  background: center/contain no-repeat url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="none"><circle cx="10" cy="10" r="9" fill="%23e8f4ff"/><path d="M6 10.2l2.6 2.6L14 7.4" stroke="%230a84ff" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}
.shot {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lift); border: 1px solid var(--hairline);
  background: #fff;
}
.shot img { width: 100%; }

/* ---------------- dark band ---------------- */
.dark {
  background: var(--bg-dark); color: var(--on-dark);
  padding: 110px 0; position: relative; overflow: hidden;
}
.dark::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(45% 60% at 85% 0%, rgba(143, 160, 255, 0.14), transparent 70%);
}
.dark .h2 { color: var(--on-dark); }
.dark-card {
  background: var(--card-dark); border: 1px solid var(--hairline-dark);
  border-radius: var(--radius); padding: 30px;
  transition: transform 0.45s var(--ease), border-color 0.45s;
}
.dark-card:hover { transform: translateY(-5px); border-color: rgba(61, 214, 245, 0.4); }
.dark-card h3 { color: var(--on-dark); font-size: 19px; margin: 16px 0 10px; }
.dark-card p { color: var(--on-dark-muted); font-size: 14.5px; }
.dark-card .icon {
  width: 42px; height: 42px; border-radius: 11px; display: flex; align-items: center;
  justify-content: center; background: rgba(61, 214, 245, 0.12);
}
.dark-card .icon svg { width: 22px; height: 22px; stroke: var(--cyan); }
.dark-card code { font-family: var(--mono); font-size: 12.5px; color: var(--cyan); }

/* code blocks */
.codeblock {
  position: relative; background: var(--bg-dark-2); color: #b9c3de;
  border: 1px solid var(--hairline-dark); border-radius: 14px;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.7;
  padding: 18px 20px; overflow-x: auto; white-space: pre;
}
.codeblock .c { color: #5e6a8c; }
.codeblock .k { color: var(--cyan); }
.codeblock .g { color: var(--green); }
.codeblock .y { color: var(--amber); }
.copy-btn {
  position: absolute; top: 10px; right: 10px; font-size: 12px;
  color: var(--on-dark-muted); border: 1px solid var(--hairline-dark);
  padding: 4px 11px; border-radius: 8px; transition: 0.25s;
}
.copy-btn:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.tbl th, .tbl td { text-align: left; padding: 13px 18px; border-bottom: 1px solid var(--hairline); }
.tbl th { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); background: var(--bg-alt); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td code, .tbl th code { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.tbl .muted { color: var(--text-dim); font-size: 13px; }

/* pills */
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.pill.green { background: rgba(74, 222, 128, 0.15); color: #15803d; }
.pill.blue { background: rgba(10, 132, 255, 0.12); color: var(--accent); }
.pill.amber { background: rgba(245, 192, 78, 0.18); color: #b45309; }
.pill.gray { background: rgba(0, 0, 0, 0.06); color: var(--text-muted); }
.pill.dark-green { background: rgba(74, 222, 128, 0.14); color: var(--green); }
.pill.dark-blue { background: rgba(61, 214, 245, 0.14); color: var(--cyan); }
.pill.dark-gray { background: rgba(255, 255, 255, 0.08); color: var(--on-dark-muted); }

/* timeline */
.timeline { position: relative; max-width: 780px; margin: 0 auto; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(var(--cyan), var(--indigo), rgba(143, 160, 255, 0.1));
}
.tl-item { position: relative; padding: 0 0 40px 46px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--accent);
  box-shadow: 0 0 0 5px rgba(10, 132, 255, 0.12);
}
.tl-item .tag { font-family: var(--mono); font-size: 13px; color: var(--accent); font-weight: 700; }
.tl-item h3 { font-size: 20px; margin: 4px 0 8px; }
.tl-item p { color: var(--text-muted); font-size: 15px; max-width: 620px; }

/* steps (quickstart) */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 54px 0 40px; }
.step { position: relative; background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-soft); }
.step .num {
  font-family: var(--mono); font-size: 15px; font-weight: 700; color: var(--accent);
  width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; background: rgba(10, 132, 255, 0.09); margin-bottom: 16px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; }
.step .codeblock { font-size: 12.5px; padding: 14px 16px; }

/* interactive terminal chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.chip {
  font-family: var(--mono); font-size: 12.5px; color: var(--text);
  background: var(--surface); border: 1px solid var(--hairline);
  padding: 8px 15px; border-radius: 999px; transition: 0.25s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* CTA band */
.cta-band { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.cta-band .h2 { margin-bottom: 16px; }
.cta-band .lead { margin-bottom: 34px; }
.cta-band .hero-cta { margin-bottom: 0; }

/* footer */
footer { background: var(--bg-dark); color: var(--on-dark-muted); padding: 64px 0 40px; font-size: 13.5px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { margin-top: 14px; max-width: 300px; line-height: 1.7; }
footer h4 { color: var(--on-dark); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
footer li { margin-bottom: 10px; }
footer a { transition: color 0.25s; }
footer a:hover { color: var(--on-dark); }
.foot-bottom { border-top: 1px solid var(--hairline-dark); padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: #5e6a8c; }

/* ---------------- reveal animations ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

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

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 34px; }
  .cards-3, .cards-2, .steps { grid-template-columns: 1fr; }
  .frow { grid-template-columns: 1fr; gap: 36px; }
  .frow.rev .fmedia { order: 0; }
  .section { padding: 78px 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
