/* ============================================================
   topofficer.cn — 科技感落地页样式
   设计基调：深空蓝黑背景 + 霓虹青/紫渐变 + 玻璃拟态 + 网格
   ============================================================ */

:root {
  --bg: #060911;
  --bg-alt: #080d18;
  --surface: rgba(17, 25, 43, 0.55);
  --surface-solid: #0e1424;
  --border: rgba(120, 160, 220, 0.14);
  --border-strong: rgba(120, 180, 255, 0.32);
  --text: #e8eef8;
  --text-dim: #9aa9c2;
  --text-faint: #64728d;
  --cyan: #3ee6ff;
  --violet: #8b6cff;
  --green: #38e8a0;
  --grad: linear-gradient(100deg, #48e9ff 0%, #7b8cff 52%, #b06cff 100%);
  --font-sans: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --shadow-glow: 0 0 0 1px rgba(62, 230, 255, 0.08), 0 18px 60px rgba(0, 0, 0, 0.45);
  --container: 1140px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
strong { color: var(--text); font-weight: 600; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* ---------------- 背景层 ---------------- */
.bg-layer { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(90, 130, 200, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(90, 130, 200, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 0%, transparent 85%);
}

#particle-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.bg-glow { position: absolute; border-radius: 50%; filter: blur(120px); opacity: 0.5; }
.bg-glow--cyan { width: 520px; height: 520px; top: -180px; left: -120px; background: rgba(30, 180, 220, 0.28); }
.bg-glow--violet { width: 560px; height: 560px; top: 120px; right: -180px; background: rgba(120, 80, 230, 0.26); }

/* ---------------- 导航 ---------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(6, 9, 17, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(6, 9, 17, 0.86); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: flex; gap: 3px; align-items: flex-end; height: 20px; }
.brand__dot { width: 5px; border-radius: 3px; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: brandPulse 1.6s ease-in-out infinite; }
.brand__dot:nth-child(1) { height: 10px; }
.brand__dot:nth-child(2) { height: 18px; background: var(--violet); box-shadow: 0 0 10px var(--violet); animation-delay: .2s; }
.brand__dot:nth-child(3) { height: 13px; animation-delay: .4s; }
@keyframes brandPulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

.brand__name { font-size: 19px; font-weight: 700; letter-spacing: -.4px; }
.brand__tld { color: var(--cyan); }

.nav__links { display: flex; align-items: center; gap: 30px; font-size: 14px; color: var(--text-dim); }
.nav__links a { transition: color .2s ease; }
.nav__links a:hover { color: var(--text); }
.nav__link { position: relative; }
.nav__link::after {
  content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: 0; height: 2px; border-radius: 2px; background: var(--grad);
  transition: width .28s ease;
}
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after { width: 20px; }
.nav__cta {
  padding: 8px 16px; border-radius: 9px; color: #04121a !important; font-weight: 600;
  background: var(--grad); box-shadow: 0 6px 22px rgba(62, 230, 255, 0.22);
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.nav__cta:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(62, 230, 255, 0.38); }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s ease; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 104px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, transparent, rgba(10, 16, 30, 0.6) 40%, transparent); }
.section__head { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section__kicker {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 2px;
  color: var(--cyan); margin-bottom: 16px; text-transform: uppercase;
}
.section__title { font-size: clamp(28px, 4vw, 42px); font-weight: 700; line-height: 1.28; letter-spacing: -1px; }
.section__desc { margin-top: 18px; color: var(--text-dim); font-size: 16px; }

.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 96px 0 80px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__copy { max-width: 640px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px;
  border: 1px solid var(--border-strong); border-radius: 100px;
  background: rgba(62, 230, 255, 0.06); color: var(--cyan);
  font-size: 13px; margin-bottom: 26px;
}
.eyebrow__pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); animation: brandPulse 1.4s infinite; }

.hero__title { font-size: clamp(38px, 5.4vw, 64px); line-height: 1.15; font-weight: 800; letter-spacing: -2px; }
.hero__subtitle { margin-top: 24px; color: var(--text-dim); font-size: 17px; max-width: 560px; }

.hero__typing { margin-top: 22px; font-family: var(--font-mono); font-size: 14px; color: var(--text-faint); }
.hero__typing-label { color: var(--text-dim); }
.typing { color: var(--cyan); }
.typing__cursor { display: inline-block; width: 8px; height: 16px; background: var(--cyan); margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: 11px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn--primary { color: #04121a; background: var(--grad); box-shadow: 0 10px 34px rgba(62, 230, 255, 0.24); }
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(62, 230, 255, 0.4); }
.btn--ghost { color: var(--text); background: rgba(255,255,255,.03); border-color: var(--border-strong); }
.btn--ghost:hover { transform: translateY(-3px); border-color: var(--cyan); background: rgba(62, 230, 255, 0.07); }
.btn--lg { padding: 16px 30px; font-size: 16px; }

.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; font-size: 13px; color: var(--text-faint); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.dot--green { background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero__meta-sep { width: 1px; height: 12px; background: var(--border-strong); }

/* 终端视觉 */
.hero__visual { position: relative; }
.terminal {
  position: relative; border-radius: 14px; overflow: hidden;
  background: linear-gradient(160deg, rgba(16, 24, 42, .95), rgba(9, 13, 24, .98));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow), 0 30px 80px rgba(0,0,0,.5);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero__visual:hover .terminal { transform: perspective(1200px) rotateY(0) rotateX(0); }
.terminal__bar {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  background: rgba(255,255,255,.035); border-bottom: 1px solid var(--border);
}
.terminal__lights { display: flex; gap: 6px; }
.terminal__lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.terminal__lights i:nth-child(2) { background: #febc2e; }
.terminal__lights i:nth-child(3) { background: #28c840; }
.terminal__title { font-family: var(--font-mono); font-size: 12px; color: var(--text-faint); }
.terminal__body { padding: 22px 20px 26px; font-family: var(--font-mono); font-size: 13px; line-height: 2; }
.terminal__body p { white-space: nowrap; }
.t-muted { color: var(--text-faint); }
.t-cmd { color: #cfe3ff; }
.t-ok { color: var(--green); }
.t-json { color: #ffd479; }
.t-success { color: var(--cyan); margin-top: 6px; }
.t-cursor { display: inline-block; width: 7px; height: 14px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.terminal__glow { position: absolute; inset: auto -20% -40% 20%; height: 120px; background: radial-gradient(ellipse, rgba(62,230,255,.18), transparent 70%); filter: blur(20px); pointer-events: none; }

.float-chip {
  position: absolute; padding: 9px 15px; border-radius: 10px; font-family: var(--font-mono); font-size: 12px;
  background: rgba(14, 20, 36, .9); border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow);
  backdrop-filter: blur(8px); animation: floaty 5s ease-in-out infinite;
}
.float-chip--1 { top: -22px; right: -10px; color: var(--cyan); }
.float-chip--2 { bottom: -20px; left: -18px; color: var(--green); animation-delay: 1.5s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 38px; border: 1px solid var(--border-strong); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 7px; left: 50%; width: 3px; height: 8px; border-radius: 2px; background: var(--cyan); transform: translateX(-50%); animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 14px); } }

/* ---------------- 痛点卡片 ---------------- */
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pain-card {
  padding: 30px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  backdrop-filter: blur(10px); transition: transform .3s ease, border-color .3s ease;
}
.pain-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.pain-card__icon {
  font-family: var(--font-mono); font-size: 14px; color: var(--violet);
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 11px;
  background: rgba(139, 108, 255, .12); border: 1px solid rgba(139, 108, 255, .28); margin-bottom: 20px;
}
.pain-card h3 { font-size: 18px; margin-bottom: 10px; }
.pain-card p { color: var(--text-dim); font-size: 14px; }

/* ---------------- 能力卡片 ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature-card {
  position: relative; padding: 34px; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(400px circle at 100% 0%, rgba(62,230,255,.1), transparent 60%);
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-strong); }
.feature-card:hover::before { opacity: 1; }
.feature-card__glyph {
  font-family: var(--font-mono); font-size: 20px; color: var(--cyan);
  width: 50px; height: 50px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(62, 230, 255, .1); border: 1px solid rgba(62, 230, 255, .26); margin-bottom: 20px;
}
.feature-card h3 { font-size: 20px; margin-bottom: 10px; }
.feature-card p { color: var(--text-dim); font-size: 15px; }

/* ---------------- 全流程时间线 ---------------- */
.steps { position: relative; max-width: 880px; margin: 0 auto; padding-left: 8px; }
.steps::before {
  content: ""; position: absolute; left: 27px; top: 24px; bottom: 24px; width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--violet), transparent);
}
.step { position: relative; display: flex; gap: 26px; padding-bottom: 26px; }
.step__node {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; color: #04121a;
  background: var(--grad); box-shadow: 0 0 0 6px var(--bg), 0 0 26px rgba(62,230,255,.45);
}
.step__card {
  flex: 1; padding: 22px 26px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: transform .3s ease, border-color .3s ease;
}
.step:hover .step__card { transform: translateX(6px); border-color: var(--border-strong); }
.step__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--cyan); margin-bottom: 7px; }
.step__card h3 { font-size: 19px; margin-bottom: 8px; }
.step__card p { color: var(--text-dim); font-size: 14px; }
.step__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.step__tags span {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid var(--border);
}

/* ---------------- 技术栈 ---------------- */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-item {
  display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(10px);
  transition: transform .25s ease, border-color .25s ease;
}
.stack-item:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.stack-item__logo {
  flex: 0 0 46px; height: 46px; display: grid; place-items: center; border-radius: 10px;
  font-family: var(--font-mono); font-weight: 700; font-size: 15px; color: var(--cyan);
  background: rgba(62,230,255,.08); border: 1px solid rgba(62,230,255,.22);
}
.stack-item b { display: block; font-size: 15px; }
.stack-item small { display: block; color: var(--text-faint); font-size: 12px; margin-top: 2px; }

/* ---------------- 需求征集 callout ---------------- */
.callout {
  position: relative; overflow: hidden; border-radius: 22px; padding: 60px 56px;
  background: linear-gradient(135deg, rgba(20,32,60,.9), rgba(12,18,34,.92));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-glow);
}
.callout__content { position: relative; z-index: 2; max-width: 680px; }
.callout__badge {
  display: inline-block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 1px;
  color: var(--green); padding: 5px 13px; border-radius: 100px;
  background: rgba(56,232,160,.08); border: 1px solid rgba(56,232,160,.28); margin-bottom: 20px;
}
.callout h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -1px; }
.callout p { color: var(--text-dim); margin-top: 16px; font-size: 16px; }
.callout__list { display: grid; gap: 10px; margin: 24px 0 32px; }
.callout__list li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 15px; }
.callout__list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 700;
}
.callout__scan {
  position: absolute; inset: 0; z-index: 1;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(62,230,255,.025) 3px 4px);
  mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 80% 50%, #000, transparent 70%);
}
.callout::after {
  content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -120px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,108,255,.28), transparent 65%);
}

/* ---------------- 公众号关注 ---------------- */
.section--follow { background: linear-gradient(180deg, transparent, rgba(10, 16, 30, 0.55)); }
.follow {
  display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center;
  padding: 48px 56px; border-radius: 20px;
  background: var(--surface); border: 1px solid var(--border); backdrop-filter: blur(12px);
}
.follow__qr { text-align: center; }
.follow__qr-inner {
  display: inline-grid; place-items: center; padding: 10px; border-radius: 14px; background: #fff;
  box-shadow: 0 0 0 1px rgba(62,230,255,.4), 0 12px 40px rgba(0,0,0,.5);
}
.follow__qr-inner img { display: block; width: 200px; height: auto; border-radius: 6px; }
.follow__qr-cap { display: block; margin-top: 14px; font-size: 13px; color: var(--cyan); letter-spacing: .5px; }
.follow__copy h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -1px; margin: 12px 0 16px; }
.follow__copy p { color: var(--text-dim); font-size: 16px; max-width: 640px; }
.follow__actions { display: flex; align-items: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.follow__hint { color: var(--green); font-size: 14px; }

/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--border); padding: 54px 0 30px; background: rgba(5,8,15,.7); }
.footer__inner { display: grid; grid-template-columns: 1fr auto; gap: 30px; }
.footer__brand p { color: var(--text-faint); font-size: 14px; margin-top: 10px; }
.footer__links { display: flex; gap: 26px; align-items: flex-start; font-size: 14px; color: var(--text-dim); }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom {
  grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  border-top: 1px solid var(--border); padding-top: 22px; margin-top: 10px;
  font-size: 13px; color: var(--text-faint);
}
.footer__note { font-family: var(--font-mono); }

/* ---------------- 滚动渐显 ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- 响应式 ---------------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__copy { max-width: 100%; }
  .hero__visual { max-width: 560px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .nav__links { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: rgba(8,12,22,.98); border-bottom: 1px solid var(--border); padding: 12px 24px 20px; }
  .nav__links.is-open { display: flex; }
  .nav__links a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--border); }
  .nav__toggle { display: flex; }
  .section { padding: 80px 0; }
}

@media (max-width: 640px) {
  .container { width: min(100% - 32px, var(--container)); }
  .pain-grid, .feature-grid, .stack-grid { grid-template-columns: 1fr; }
  .follow { grid-template-columns: 1fr; gap: 28px; padding: 36px 26px; text-align: center; }
  .follow__actions { justify-content: center; }
  .callout { padding: 40px 26px; }
  .terminal { transform: none; }
  .step { gap: 16px; }
  .steps::before { left: 19px; }
  .step__node { width: 34px; height: 34px; flex-basis: 34px; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 64px; }
  .float-chip { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
