/* ============================================================
   Clickfluence — Dark Tech Redesign
   Style reference: gonnaclick.com × Linear × Stripe × Vercel
   ============================================================ */

:root {
  --bg: #04060c;
  --bg-2: #070b14;
  --panel: rgba(148, 163, 184, 0.04);
  --panel-solid: #0a101d;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #e8eefb;
  --text-2: #9aa8bf;
  --text-3: #5d6b84;
  --blue: #4f7cff;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --grad: linear-gradient(100deg, #4f7cff 0%, #8b5cf6 55%, #22d3ee 100%);
  --font-display: "Space Grotesk", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 18px;
  --nav-h: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(79, 124, 255, 0.35); }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- 背景：网格 + 光晕 ---------- */
.bg-stage {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 480px at 12% -6%, rgba(79, 124, 255, 0.14), transparent 60%),
    radial-gradient(800px 420px at 88% 4%, rgba(139, 92, 246, 0.12), transparent 60%),
    radial-gradient(700px 500px at 55% 108%, rgba(34, 211, 238, 0.07), transparent 60%),
    var(--bg);
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}

/* ---------- 通用 ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 1px;
  background: var(--grad);
  display: inline-block;
}
.sec-title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 18px 0 16px;
}
.sec-title .hl {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.sec-sub { color: var(--text-2); max-width: 640px; font-size: 17px; }
.section { padding: 110px 0; position: relative; }

/* 滚动显现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.on { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { font-weight: 700; font-size: 19px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.logo .dot {
  width: 10px; height: 10px; border-radius: 3px;
  background: var(--grad);
  box-shadow: 0 0 14px rgba(79, 124, 255, 0.8);
  transform: rotate(45deg);
}
.logo em { font-style: normal; color: var(--text-3); font-weight: 500; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { color: var(--text-2); font-size: 14.5px; transition: color 0.2s; position: relative; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch {
  display: flex; border: 1px solid var(--border); border-radius: 99px; overflow: hidden;
  font-family: var(--font-mono); font-size: 12px;
}
.lang-switch a { padding: 6px 13px; color: var(--text-3); transition: all 0.2s; }
.lang-switch a.active { background: rgba(79, 124, 255, 0.16); color: #bcd0ff; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  position: relative;
}
.btn-primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 4px 24px rgba(79, 124, 255, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(79, 124, 255, 0.5); }
.btn-ghost {
  background: rgba(148, 163, 184, 0.06); color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); background: rgba(148, 163, 184, 0.1); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn .arr { transition: transform 0.2s; font-family: var(--font-mono); }
.btn:hover .arr { transform: translate(2px, -2px); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--nav-h) + 84px) 0 90px; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.03em;
  margin: 22px 0 22px;
}
.hero h1 .hl {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { color: var(--text-2); font-size: 17.5px; max-width: 520px; }
.hero-cta { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 56px; border-top: 1px solid var(--border);
  padding-top: 28px;
}
.hstat { padding-right: 20px; }
.hstat + .hstat { border-left: 1px solid var(--border); padding-left: 22px; }
.hstat .num {
  font-family: var(--font-mono); font-size: 30px; font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hstat .num small { font-size: 17px; }
.hstat .lbl { color: var(--text-3); font-size: 13px; margin-top: 4px; }

/* 终端卡片 */
.term {
  background: rgba(10, 16, 29, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(79, 124, 255, 0.06) inset;
  overflow: hidden;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s ease;
}
.term:hover { transform: perspective(1200px) rotateY(0) rotateX(0); }
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--text-3);
}
.term-bar .dots { display: flex; gap: 6px; margin-right: 8px; }
.term-bar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.term-bar .dots i:nth-child(1) { background: #ff5f57; }
.term-bar .dots i:nth-child(2) { background: #febc2e; }
.term-bar .dots i:nth-child(3) { background: #28c840; }
.term-live {
  margin-left: auto; color: #34d399; display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; letter-spacing: 0.14em;
}
.term-live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: pulse 1.6s infinite;
}
@keyframes pulse { 50% { opacity: 0.35; } }
.term-body { padding: 22px 22px 26px; font-family: var(--font-mono); font-size: 13px; line-height: 2.05; }
.term-body .row { display: flex; justify-content: space-between; gap: 18px; white-space: nowrap; }
.term-body .k { color: var(--text-3); }
.term-body .v { color: var(--text); text-align: right; }
.term-body .v.ok { color: #34d399; }
.term-body .v.hot { color: var(--cyan); }
.term-body .v.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.term-body .caret { display: inline-block; width: 8px; height: 15px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.term-foot {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.term-foot div { padding: 13px 10px; text-align: center; border-left: 1px solid var(--border); }
.term-foot div:first-child { border-left: none; }
.term-foot .n { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: var(--text); }
.term-foot .n em { font-style: normal; color: var(--cyan); }
.term-foot .t { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- 跑马灯 ---------- */
.marquee {
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 20px 0; overflow: hidden; position: relative;
  background: rgba(148, 163, 184, 0.02);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; gap: 0; width: max-content; animation: scrollx 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.14em;
  color: var(--text-3); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 26px; padding: 0 26px; white-space: nowrap;
}
.marquee-track span::after { content: "✦"; color: var(--blue); font-size: 11px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- 服务卡片 ---------- */
.sec-head { margin-bottom: 56px; }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 28px 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s, background 0.3s;
}
.svc::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(79, 124, 255, 0.12), transparent 70%);
  opacity: 0; transition: opacity 0.35s; pointer-events: none;
}
.svc:hover { transform: translateY(-5px); border-color: rgba(79, 124, 255, 0.4); background: rgba(148, 163, 184, 0.06); }
.svc:hover::before { opacity: 1; }
.svc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 40px; }
.svc-no { font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.svc-no b { color: var(--blue); font-weight: 700; }
.svc-tag {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.3);
  padding: 4px 10px; border-radius: 99px; text-transform: uppercase;
}
.svc h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.svc p { color: var(--text-2); font-size: 14.5px; margin-bottom: 22px; }
.svc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li {
  font-size: 12px; color: var(--text-3);
  border: 1px solid var(--border); border-radius: 8px; padding: 4px 10px;
  font-family: var(--font-mono);
}
.svc-link {
  margin-top: 24px; display: inline-flex; align-items: center; gap: 8px;
  color: #bcd0ff; font-size: 13.5px; font-weight: 600;
}
.svc-link .arr { font-family: var(--font-mono); transition: transform 0.2s; }
.svc:hover .svc-link .arr { transform: translate(3px, -3px); }

/* ---------- 生态连接 ---------- */
.eco-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch;
  margin-top: 52px;
}
.eco-node {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center;
  transition: border-color 0.3s, transform 0.3s;
}
.eco-node:hover { border-color: rgba(139, 92, 246, 0.45); transform: translateY(-4px); }
.eco-node .ic {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  background: rgba(79, 124, 255, 0.1); border: 1px solid rgba(79, 124, 255, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue); font-family: var(--font-mono); font-size: 20px; font-weight: 700;
}
.eco-node:nth-child(3) .ic { background: rgba(139, 92, 246, 0.1); border-color: rgba(139, 92, 246, 0.3); color: var(--violet); }
.eco-node:nth-child(5) .ic { background: rgba(34, 211, 238, 0.08); border-color: rgba(34, 211, 238, 0.28); color: var(--cyan); }
.eco-node h4 { font-size: 17px; margin-bottom: 8px; }
.eco-node p { color: var(--text-2); font-size: 13.5px; }
.eco-arrow { display: flex; align-items: center; justify-content: center; color: var(--text-3); font-family: var(--font-mono); font-size: 22px; }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.pillar {
  display: flex; align-items: center; gap: 12px;
  border: 1px dashed var(--border-strong); border-radius: 14px; padding: 16px 20px;
  color: var(--text-2); font-size: 14.5px;
}
.pillar i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none;
  box-shadow: 0 0 10px rgba(79, 124, 255, 0.7);
}

/* ---------- 流程 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; margin-top: 52px; }
.step {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--panel); padding: 28px 24px;
  transition: border-color 0.3s, transform 0.3s;
}
.step:hover { border-color: rgba(34, 211, 238, 0.4); transform: translateY(-4px); }
.step .n {
  font-family: var(--font-mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.1em;
  display: block; margin-bottom: 40px;
}
.step h4 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 13.5px; }
.step::after {
  content: "→"; position: absolute; right: -15px; top: 32px;
  color: var(--text-3); font-family: var(--font-mono); z-index: 2;
}
.step:last-child::after { display: none; }
.step-notes { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.step-notes span {
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--border); border-radius: 99px; padding: 7px 16px;
}
.step-notes span b { color: #34d399; font-family: var(--font-mono); margin-right: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-top: 44px; }
.faq { border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; background: var(--panel); overflow: hidden; transition: border-color 0.3s; }
.faq.open { border-color: rgba(79, 124, 255, 0.4); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 22px 26px; font-size: 16.5px; font-weight: 600; text-align: left;
  font-family: var(--font-display);
}
.faq-q .pm {
  font-family: var(--font-mono); color: var(--blue); font-size: 20px; flex: none;
  transition: transform 0.3s;
}
.faq.open .faq-q .pm { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 26px 24px; color: var(--text-2); font-size: 14.5px; max-width: 92%; }

/* ---------- CTA ---------- */
.cta { padding: 120px 0; position: relative; overflow: hidden; }
.cta-box {
  position: relative; border: 1px solid var(--border); border-radius: 28px;
  background:
    radial-gradient(700px 340px at 20% 0%, rgba(79, 124, 255, 0.16), transparent 65%),
    radial-gradient(600px 300px at 85% 100%, rgba(139, 92, 246, 0.14), transparent 65%),
    var(--panel-solid);
  padding: 84px 60px; text-align: center; overflow: hidden;
}
.cta-box .eyebrow { justify-content: center; }
.cta-box .eyebrow::before { display: none; }
.cta-box h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; margin: 18px 0; }
.cta-box h2 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-box p { color: var(--text-2); max-width: 560px; margin: 0 auto 38px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-mail {
  font-family: var(--font-mono); color: var(--cyan); font-size: 14px; margin-top: 26px; display: block;
}
.cta-roles { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.cta-roles span {
  font-size: 12.5px; color: var(--text-3); font-family: var(--font-mono);
  border: 1px solid var(--border); padding: 5px 14px; border-radius: 99px;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand p { color: var(--text-3); font-size: 14px; margin-top: 12px; max-width: 300px; }
.footer-mail { font-family: var(--font-mono); color: var(--text-2); font-size: 13.5px; margin-top: 16px; display: inline-block; }
.footer-mail:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 60px; }
.footer-links h5 { font-size: 12px; font-family: var(--font-mono); letter-spacing: 0.18em; color: var(--text-3); text-transform: uppercase; margin-bottom: 16px; }
.footer-links a { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-base {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--border); margin-top: 44px; padding-top: 24px;
  color: var(--text-3); font-size: 13px; font-family: var(--font-mono);
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .term { transform: none; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .eco-flow { grid-template-columns: 1fr; }
  .eco-arrow { transform: rotate(90deg); padding: 2px 0; }
  .nav-links { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .svc-grid, .steps, .pillars { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px 0; }
  .hstat:nth-child(3) { border-left: none; padding-left: 0; }
  .cta-box { padding: 56px 26px; }
  .footer-links { gap: 36px; flex-wrap: wrap; }
  .term-body .row { white-space: normal; }
}
