:root {
  --bg: #0A0E1A;
  --bg2: #1A1F2E;
  --bg3: #232A3D;
  --ink: #FFFFFF;
  --muted: #8B95A7;
  --weak: #4A5468;
  --rule: #2A3142;
  --accent: #00C853;
  --accent2: #7FDD4C;
  --deep: #0A6B33;
  --green-grad: linear-gradient(135deg, #0A6B33 0%, #00C853 50%, #7FDD4C 100%);
  --silver-grad: linear-gradient(180deg, #FFFFFF 0%, #8B95A7 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  overflow-x: hidden;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ===== 顶部导航栏 ===== */
.navbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; z-index: 100;
  height: 56px;
  background: rgba(10,14,26,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.navbar.scrolled { height: 44px; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.nav-logo { font-size: 18px; font-weight: 800; letter-spacing: 0.02em; transition: font-size 0.3s; }
.navbar.scrolled .nav-logo { font-size: 16px; }
.nav-logo .dot { color: var(--accent); }
.nav-burger { width: 24px; height: 18px; position: relative; cursor: pointer; }
.nav-burger span { position: absolute; left: 0; right: 0; height: 2px; background: var(--ink); border-radius: 1px; transition: all 0.3s; }
.nav-burger span:nth-child(1) { top: 0; }
.nav-burger span:nth-child(2) { top: 8px; }
.nav-burger span:nth-child(3) { top: 16px; }

/* 菜单展开层 */
.nav-menu {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 100vh;
  background: var(--bg);
  z-index: 99;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: 8px;
  opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(-20px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
}
.nav-menu.open { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-menu a { font-size: 20px; font-weight: 700; padding: 14px 32px; color: var(--ink); border-radius: 8px; transition: color 0.2s, background 0.2s; }
.nav-menu a:hover { color: var(--accent2); background: rgba(0,200,83,0.08); }
.nav-menu .menu-close { position: absolute; top: 20px; right: 20px; font-size: 28px; color: var(--muted); cursor: pointer; }

/* ===== 通用屏幕 ===== */
.screen { position: relative; padding: 0; overflow: hidden; }
.sec-pad { padding: 56px 16px; }
.sec-title { font-size: 26px; font-weight: 800; text-align: center; }
.sec-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 28px; border-radius: 2px; }

/* ===== 第1屏 品牌印象 ===== */
.s1 {
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: relative;
  padding-top: 56px;
}
.s1::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0,200,83,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,83,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
.s1::after {
  content: ''; position: absolute; top: 10%; left: -30%;
  width: 120%; height: 70%;
  background: linear-gradient(135deg, transparent 40%, rgba(0,200,83,0.10) 50%, transparent 60%);
  transform: rotate(15deg);
  pointer-events: none;
}
.s1-main {
  position: relative; z-index: 2;
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
}
.s1-tagline { font-size: 22px; font-weight: 800; letter-spacing: 0.1em; }
.s1-sub { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.7; max-width: 280px; }
.s1-device-card { width: 260px; height: 170px; margin-top: 24px; }
.s1-cta { position: relative; z-index: 2; padding: 0 24px 40px; text-align: center; }
.s1-btn {
  display: inline-block; width: 240px; height: 48px; line-height: 48px;
  background: var(--green-grad); color: #fff; font-size: 15px; font-weight: 700;
  border-radius: 24px; border: none; cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,200,83,0.3);
  transition: transform 0.2s;
}
.s1-btn:active { transform: scale(0.97); }
.s1-scroll { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.s1-scroll svg { animation: bounce 2s infinite; }
.s1-scroll span { font-size: 10px; color: var(--weak); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ===== 第2屏 核心数据 ===== */
.s2 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.s2-title { font-size: 26px; font-weight: 800; text-align: center; }
.s2-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 40px; border-radius: 2px; }
.s2-data { padding: 0 24px; }
.s2-item { margin-bottom: 36px; }
.s2-num {
  font-size: 56px; font-weight: 800; line-height: 1;
  background: var(--silver-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.s2-label { font-size: 14px; color: var(--muted); margin-top: 6px; }
.s2-foot { font-size: 12px; color: var(--weak); text-align: center; margin-top: 8px; }

/* ===== 第3屏 技术演进 ===== */
.s3 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.s3-title { font-size: 26px; font-weight: 800; text-align: center; }
.s3-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 32px; border-radius: 2px; }
.s3-timeline { padding: 0 24px 0 40px; position: relative; }
.s3-timeline::before {
  content: ''; position: absolute; left: 20px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--deep), var(--accent), var(--accent2));
  border-radius: 1px;
}
.s3-node { position: relative; margin-bottom: 32px; }
.s3-node:last-child { margin-bottom: 0; }
.s3-node::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(0,200,83,0.2);
}
.s3-node.last::before { background: var(--accent2); box-shadow: 0 0 0 5px rgba(127,221,76,0.3); }
.s3-gen { font-size: 14px; font-weight: 700; color: var(--accent2); }
.s3-ntitle { font-size: 15px; font-weight: 600; margin-top: 2px; }
.s3-desc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.s3-tag { display: inline-block; font-size: 10px; padding: 3px 10px; background: var(--bg2); color: var(--weak); border-radius: 4px; margin-top: 8px; }
.s3-tag.active { background: var(--accent); color: var(--bg); font-weight: 600; }
.s3-detail { font-size: 12px; color: var(--accent); margin-top: 8px; font-weight: 600; display: inline-block; }

/* ===== 第4屏 核心能力 ===== */
.s4 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.s4-title { font-size: 26px; font-weight: 800; text-align: center; }
.s4-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 24px; border-radius: 2px; }
.s4-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 16px; }
.s4-card {
  background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px;
  padding: 18px 16px; position: relative;
}
.s4-card .corner { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-top: 2px solid var(--rule); border-right: 2px solid var(--rule); }
.s4-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }
.s4-ctitle { font-size: 16px; font-weight: 700; }
.s4-cdesc { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.6; }

/* ===== 第5屏 产品矩阵 ===== */
.s5 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.s5-title { font-size: 26px; font-weight: 800; text-align: center; }
.s5-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 6px; border-radius: 2px; }
.s5-sub { font-size: 12px; color: var(--muted); text-align: center; margin-bottom: 20px; }
.s5-scroll { display: flex; gap: 12px; padding: 0 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.s5-scroll::-webkit-scrollbar { display: none; }
.s5-card {
  width: 280px; flex-shrink: 0; scroll-snap-align: center;
  background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden;
}
.s5-img-area {
  width: 100%; height: 160px; background: var(--bg); border-bottom: 1px solid var(--rule);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; position: relative;
}
.s5-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 10px; font-weight: 600; padding: 3px 8px;
  background: var(--accent); color: var(--bg); border-radius: 4px;
}
.s5-card-body { padding: 16px; }
.s5-ctitle { font-size: 18px; font-weight: 700; }
.s5-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-top: 8px; }
.s5-feat .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.s5-link { font-size: 13px; color: var(--accent); margin-top: 14px; font-weight: 600; }
.s5-dots { display: flex; justify-content: center; gap: 6px; margin-top: 18px; }
.s5-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background 0.3s; }
.s5-dots span.on { background: var(--accent); }

/* ===== 第6屏 信任背书 ===== */
.s6 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.s6-title { font-size: 26px; font-weight: 800; text-align: center; }
.s6-line { width: 48px; height: 2px; background: var(--green-grad); margin: 10px auto 24px; border-radius: 2px; }
.s6-cards { padding: 0 16px; }
.s6-card {
  background: var(--bg2); border-radius: 12px; padding: 18px 16px;
  display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.s6-icon { width: 32px; height: 32px; color: var(--accent); flex-shrink: 0; }
.s6-ctitle { font-size: 16px; font-weight: 700; }
.s6-cdesc { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ===== 第7屏 转化入口 ===== */
.s7 { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.s7-title { font-size: 24px; font-weight: 800; line-height: 1.4; padding: 0 24px; }
.s7-sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.s7-line { width: 48px; height: 2px; background: var(--green-grad); margin: 14px auto 28px; border-radius: 2px; }
.s7-btns { padding: 0 24px; }
.s7-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border-radius: 26px;
  font-size: 16px; font-weight: 700; margin-bottom: 12px;
  border: none; cursor: pointer; transition: transform 0.2s;
}
.s7-btn:active { transform: scale(0.97); }
.s7-btn.phone { background: var(--green-grad); color: #fff; box-shadow: 0 4px 20px rgba(0,200,83,0.3); animation: breathe 2.5s infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
.s7-btn.wx { background: var(--bg2); border: 1px solid var(--accent); color: var(--accent); }
.s7-wx {
  margin: 20px auto 0; padding: 20px 32px;
  background: var(--bg2); border: 1px solid var(--accent); border-radius: 12px;
  text-align: center; max-width: 220px;
}
.s7-wx-label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.s7-wx-id { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: 1px; }
.s7-wx-tip { font-size: 11px; color: var(--weak); margin-top: 8px; }
.s7-company { font-size: 14px; font-weight: 700; margin-top: 28px; }
.s7-brand { font-size: 11px; color: var(--muted); margin-top: 6px; }
.s7-icp { font-size: 10px; color: var(--weak); margin-top: 8px; padding-bottom: 24px; }

/* ===== 底部Tab栏 ===== */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px; height: 60px;
  background: rgba(10,14,26,0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
  display: flex; justify-content: space-around; align-items: center;
  z-index: 90;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar .tab { text-align: center; color: var(--weak); font-size: 10px; padding: 6px 12px; cursor: pointer; transition: color 0.2s; }
.tabbar .tab.on { color: var(--accent); }
.tabbar .tab svg { width: 22px; height: 22px; margin: 0 auto 2px; }

/* ===== 悬浮咨询按钮 ===== */
.fab {
  position: fixed; bottom: 76px; right: 16px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--green-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; z-index: 91;
  box-shadow: 0 4px 20px rgba(0,200,83,0.4);
  border: none;
  transition: transform 0.2s;
}
.fab:active { transform: scale(0.92); }
.fab svg { width: 24px; height: 24px; }

/* 悬浮展开面板 */
.fab-panel {
  position: fixed; bottom: 140px; right: 16px;
  background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px;
  padding: 8px; z-index: 91; min-width: 160px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}
.fab-panel.open { opacity: 1; visibility: visible; transform: translateY(0); }
.fab-panel a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--ink);
  border-radius: 8px; transition: background 0.2s;
}
.fab-panel a:hover { background: rgba(0,200,83,0.08); }
.fab-panel a svg { width: 20px; height: 20px; color: var(--accent); }

/* ===== 占位卡组件 ===== */
.ph {
  background: var(--bg2); border: 1px dashed var(--rule); border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%;
}
.ph svg { width: 28px; height: 28px; color: var(--rule); }
.ph-main { font-size: 12px; color: var(--weak); text-align: center; padding: 0 12px; }
.ph-sub { font-size: 11px; color: #3A4258; }

/* ===== 视频与图片素材 ===== */
.s1-video-wrap {
  position: relative; width: 260px; height: 170px;
  margin: 24px auto 0;
}
.s1-video {
  width: 100%; height: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 24px rgba(0,200,83,0.15);
  border: 1px solid var(--rule);
}
.s5-media {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.s5-img-area img.s5-media { object-fit: contain; background: var(--bg); }
.s5-video-wrap { position: relative; width: 100%; height: 100%; }
.s5-video-wrap .s5-media { object-fit: cover; }
.s5-play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(0,200,83,0.9); display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 5; transition: transform 0.2s, opacity 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.s5-play-btn:active { transform: translate(-50%, -50%) scale(0.9); }
.s5-play-btn svg { width: 26px; height: 26px; color: #fff; margin-left: 2px; }
.s5-play-btn.hidden { opacity: 0; pointer-events: none; }
.video-spinner {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  z-index: 6;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.video-spinner.hidden { display: none; }

/* ===== 动效：滚动渐显 ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.12s; }
.reveal-delay-2 { transition-delay: 0.24s; }
.reveal-delay-3 { transition-delay: 0.36s; }

/* 低动效偏好降级 */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .s1-scroll svg, .s7-btn.phone { animation: none; }
  html { scroll-behavior: auto; }
}

/* PC端两侧填充背景 */
@media (min-width: 481px) {
  body { box-shadow: 0 0 60px rgba(0,0,0,0.5); }
  body::before {
    content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    z-index: -1;
  }
}
