:root {
  --bg: #050508;
  --bg-2: #0a0a12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e8ecf4;
  --dim: #8b93a7;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --violet: #a78bfa;
  --green: #34d399;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue), var(--violet));
  --radius: 18px;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 8, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(5, 5, 8, 0.82); }
.nav-inner { max-width: 1120px; margin: 0 auto; padding: 0 22px; height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .2px; }
.brand-logo {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  object-fit: cover;
  /* 白色悬浮光晕：底部更亮、向上渐隐，无生硬描边 */
  box-shadow:
    0 8px 22px rgba(255, 255, 255, 0.26),
    0 2px 8px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(255, 255, 255, 0.14);
  transition: transform 0.3s ease;
  animation: breathe 3.6s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { box-shadow:
    0 8px 22px rgba(255, 255, 255, 0.26),
    0 2px 8px rgba(255, 255, 255, 0.18),
    0 0 40px rgba(255, 255, 255, 0.14); }
  50% { box-shadow:
    0 8px 28px rgba(255, 255, 255, 0.44),
    0 2px 10px rgba(255, 255, 255, 0.3),
    0 0 64px rgba(255, 255, 255, 0.28); }
}
.brand:hover .brand-logo { animation: none; transform: translateY(-1px); box-shadow:
    0 12px 30px rgba(255, 255, 255, 0.36),
    0 3px 10px rgba(255, 255, 255, 0.24),
    0 0 56px rgba(255, 255, 255, 0.2); }
.accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--dim); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .nav-cta { color: var(--cyan); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 120px 22px 60px; overflow: hidden; }
.hero-glow { position: absolute; width: 720px; height: 720px; top: 8%; left: 50%; transform: translateX(-50%); background: radial-gradient(circle, rgba(34,211,238,.16), rgba(96,165,250,.08) 40%, transparent 70%); filter: blur(40px); pointer-events: none; }
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 780px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-strong); border-radius: 99px; font-size: 13px; color: var(--dim); background: var(--panel); margin-bottom: 22px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }
.hero h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1.08; font-weight: 850; letter-spacing: -1px; margin-bottom: 22px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--dim); font-size: clamp(16px, 2.4vw, 20px); min-height: 1.6em; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 30px 0 22px; }
.hero-meta { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 12px; font-size: 15px; font-weight: 650; transition: transform .15s, box-shadow .25s, background .25s; }
.btn-primary { color: #041014; background: var(--grad); box-shadow: 0 8px 30px rgba(34,211,238,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 44px rgba(34,211,238,.4); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 24px rgba(34,211,238,.18); transform: translateY(-2px); }

/* Hero 实拍 */
.hero-shot { position: relative; z-index: 2; width: min(880px, 100%); margin-top: 44px; border: 1px solid var(--line-strong); border-radius: 16px; background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(34,211,238,.04); overflow: hidden; }
.hero-shot img { display: block; width: 100%; height: auto; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 1120px; margin: 0 auto; padding: 30px 22px 60px; }
.stat { text-align: center; padding: 26px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stat b { display: block; font-size: 40px; font-weight: 850; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--dim); font-size: 13px; }

/* ---------- 通用 section ---------- */
.section { max-width: 1120px; margin: 0 auto; padding: 70px 22px; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 3px; color: var(--cyan); }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 850; margin: 12px 0; }
.section-head p { color: var(--dim); font-size: 15px; }

/* 功能卡片 */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; transition: transform .2s, border-color .3s, box-shadow .3s; transform-style: preserve-3d; }
.card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(420px at var(--mx, 50%) var(--my, 0%), rgba(34,211,238,.1), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: var(--line-strong); box-shadow: 0 18px 50px rgba(0,0,0,.4); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; font-size: 24px; margin-bottom: 16px; border: 1px solid var(--line-strong); background: rgba(255,255,255,.03); }
.i-agent { color: var(--violet); box-shadow: 0 0 24px rgba(167,139,250,.25); }
.i-shield { color: var(--cyan); box-shadow: 0 0 24px rgba(34,211,238,.25); }
.i-lock { color: var(--green); box-shadow: 0 0 24px rgba(52,211,153,.25); }
.i-mcp { color: var(--blue); box-shadow: 0 0 24px rgba(96,165,250,.25); }
.i-inspect { color: #fbbf24; box-shadow: 0 0 24px rgba(251,191,36,.25); }
.i-monitor { color: #f472b6; box-shadow: 0 0 24px rgba(244,114,182,.25); }
.card h3 { font-size: 18px; font-weight: 750; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.card ul { list-style: none; }
.card li { position: relative; padding-left: 16px; color: var(--dim); font-size: 13px; line-height: 1.9; }
.card li::before { content: '›'; position: absolute; left: 2px; color: var(--cyan); }

/* 实拍 */
.showcase { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: stretch; }
.showcase-main { position: relative; display: grid; place-items: center; min-height: 440px; border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: radial-gradient(600px 400px at 50% 40%, rgba(34,211,238,.05), transparent 70%), #000; cursor: zoom-in; }
.showcase-main img { width: 100%; height: auto; max-height: 66vh; object-fit: contain; }
.showcase-main img.switching { animation: popIn .38s cubic-bezier(.2, .85, .3, 1); }
@keyframes popIn { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: scale(1); } }
.showcase-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 18px 14px; background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: 15px; font-weight: 700; }

/* 页码点 */
.showcase-dots { position: absolute; left: 50%; bottom: 52px; transform: translateX(-50%); display: flex; gap: 8px; }
.showcase-dots button { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,.15); cursor: pointer; padding: 0; transition: all .2s; }
.showcase-dots button.active { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px rgba(34,211,238,.6); }

/* 左右箭头（多图模块） */
.show-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(5,5,8,.55); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .2s, border-color .2s; }
.showcase-main:hover .show-arrow { opacity: 1; }
.show-arrow:hover { border-color: var(--cyan); box-shadow: 0 0 16px rgba(34,211,238,.35); }
.show-arrow.prev { left: 14px; }
.show-arrow.next { right: 14px; }

/* 右侧文字导航 */
.showcase-nav { display: flex; flex-direction: column; gap: 10px; }
.show-item, .show-arrow, .showcase-dots button { -webkit-appearance: none; appearance: none; }
.show-item { position: relative; text-align: left; padding: 14px 18px 14px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--dim); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: all .22s; overflow: hidden; }
.show-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--grad); opacity: 0; transition: opacity .22s; }
.show-item:hover { color: var(--text); border-color: var(--line-strong); transform: translateX(3px); }
.show-item.active { color: var(--text); border-color: rgba(34,211,238,.35); background: linear-gradient(90deg, rgba(34,211,238,.1), var(--panel)); box-shadow: 0 0 22px rgba(34,211,238,.12); }
.show-item.active::before { opacity: 1; }
.show-item .show-idx { margin-right: 10px; font-family: var(--mono); font-size: 11px; color: var(--cyan); opacity: .8; }
.show-item .show-multi { float: right; font-family: var(--mono); font-size: 10.5px; color: var(--dim); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; }

/* 技术栈 */
.stack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stack-item { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .25s, transform .2s; }
.stack-item:hover { border-color: var(--cyan); transform: translateY(-3px); }
.stack-item b { display: block; font-size: 17px; margin-bottom: 4px; }
.stack-item span { color: var(--dim); font-size: 13px; }

/* CTA */
.cta { text-align: center; padding: 70px 30px; border: 1px solid var(--line-strong); border-radius: 24px; background: radial-gradient(600px 300px at 50% 0%, rgba(34,211,238,.08), transparent 70%), var(--panel); }
.cta h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 850; margin-bottom: 12px; }
.cta p { color: var(--dim); margin-bottom: 24px; }
.cta-note { font-size: 12.5px; margin-top: 16px; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 40px 22px; }
.footer-inner { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 22px; color: var(--dim); font-size: 14px; }
.footer-links a:hover { color: var(--cyan); }
.copy { font-size: 13px; }

/* 灯箱 */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0,0,0,.86); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox img { max-width: 98vw; max-height: 96vh; border-radius: 14px; object-fit: contain; box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 24px 70px rgba(255,255,255,.14), 0 0 140px rgba(255,255,255,.1); }
.lightbox[hidden] { display: none; }

/* 滚动渐现 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 响应式 */
@media (max-width: 920px) {
  .grid, .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  /* 标题导航：横向滚动胶囊，不再两列挤压 */
  .showcase-nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .showcase-nav::-webkit-scrollbar { display: none; }
  .show-item { flex: none; white-space: nowrap; padding: 10px 16px; font-size: 13px; }
  .show-item:hover { transform: none; }
  .show-item .show-idx { display: none; }
  .show-item .show-multi { float: none; margin-left: 6px; }
  .showcase-main { min-height: 240px; }
  /* 左右箭头：触屏始终可见、垂直居中、更大点击区 */
  .show-arrow { opacity: 1; width: 44px; height: 44px; font-size: 24px; }
  .showcase-dots { bottom: 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 620px) {
  .grid, .stack-grid { grid-template-columns: 1fr; }
  .nav-links { position: fixed; inset: 76px 0 auto 0; flex-direction: column; gap: 18px; padding: 26px; background: rgba(5,5,8,.96); border-bottom: 1px solid var(--line); display: none; }
  .nav-links.open { display: flex; }
  .nav-burger { display: flex; }
  .stats { grid-template-columns: 1fr 1fr; }
}
