/* ============================================================
   触控精灵 官网样式 · 深空科技风
   纯 CSS 实现：渐变 / 网格 / 发光 / 玻璃拟态，零图片依赖
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --bg-base: #0A0B14;
  --bg-elevated: #12131F;
  --bg-card: rgba(255, 255, 255, 0.03);
  --brand-cyan: #00E5FF;
  --brand-purple: #7C3AED;
  --brand-grad: linear-gradient(135deg, #00E5FF 0%, #7C3AED 100%);
  --brand-grad-soft: linear-gradient(135deg, rgba(0, 229, 255, .12), rgba(124, 58, 237, .12));
  --text-primary: #F5F7FA;
  --text-muted: #8B90A6;
  --text-dim: #5A5F73;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 229, 255, 0.35);
  --glow-cyan: rgba(0, 229, 255, 0.15);
  --glow-purple: rgba(124, 58, 237, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  word-break: break-word;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
section { position: relative; }

/* ---------- 全局背景层：网格 + 光晕 ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(600px 400px at 15% 5%, var(--glow-cyan), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, var(--glow-purple), transparent 60%);
}

/* ---------- 布局工具 ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-cyan);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
  margin-bottom: 20px;
}
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
.section-head p { color: var(--text-muted); font-size: 17px; }
.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 通用卡片（玻璃拟态） ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 50px -20px var(--glow-cyan);
}
.card .ic {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--brand-grad-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
  color: var(--brand-cyan);
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px;
  display: flex; align-items: center;
  background: rgba(10, 11, 20, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav .container { 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: -0.3px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 15px; color: var(--text-muted); transition: color .25s; position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--brand-grad); border-radius: 2px;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-switch { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); border: 1px solid var(--border); border-radius: 8px; padding: 5px 10px; transition: border-color .25s, color .25s; }
.lang-switch:hover { color: var(--brand-cyan); border-color: var(--border-hover); }

/* 按钮 */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 11px 22px; border-radius: 100px; transition: transform .25s var(--ease), box-shadow .3s, background .3s; }
.btn-primary { background: var(--brand-grad); color: #06070E; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -8px var(--glow-cyan); }
.btn-ghost { border: 1px solid var(--border); color: var(--text-primary); background: var(--bg-card); }
.btn-ghost:hover { border-color: var(--border-hover); color: var(--brand-cyan); }
.btn-sm { padding: 8px 16px; font-size: 14px; }

/* 汉堡菜单 */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: .3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero 首屏 ---------- */
.hero { padding: 150px 0 90px; text-align: center; position: relative; }
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(30px, 7vw, 76px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}
.hero .sub { max-width: 640px; margin: 0 auto 38px; font-size: clamp(16px, 2.2vw, 20px); color: var(--text-muted); }
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }
.hero-cta .btn { padding: 14px 30px; font-size: 16px; }

/* 平台徽标 */
.platforms { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 60px; }
.platforms .plat {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 14px; color: var(--text-muted);
  padding: 8px 16px; border: 1px solid var(--border); border-radius: 100px; background: var(--bg-card);
}
.platforms .plat svg { width: 16px; height: 16px; color: var(--brand-cyan); }

/* 数据条 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: 820px; margin: 0 auto; }
.stat { text-align: center; padding: 24px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
.stat .num { font-family: var(--font-mono); font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1; }
.stat .label { margin-top: 8px; font-size: 13px; color: var(--text-muted); }

/* ---------- 生态四象限 ---------- */
.eco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eco-card { position: relative; overflow: hidden; }
.eco-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--brand-grad); opacity: .8;
}

/* ---------- 运行模式 ---------- */
.mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mode-card .tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--brand-cyan); margin-bottom: 8px; }

/* ---------- 流程步骤（分组） ---------- */
.steps-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-group h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.step-group h3 .ic { width: 34px; height: 34px; margin-bottom: 0; }
.step-group h3 .ic svg { width: 18px; height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono); font-size: 13px; color: var(--text-muted);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 8px;
  background: rgba(255, 255, 255, 0.02); transition: color .25s, border-color .25s, background .25s;
}
.chip:hover { color: var(--brand-cyan); border-color: var(--border-hover); background: var(--brand-grad-soft); }

/* AI 智能创建横幅 */
.ai-create-banner {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin-bottom: 24px; padding: 26px 30px;
  background: var(--brand-grad-soft); border-color: var(--border-hover);
}
.ai-create-banner .ic { margin-bottom: 0; flex-shrink: 0; width: 54px; height: 54px; }
.ai-create-banner .ic svg { width: 28px; height: 28px; }
.ai-create-banner .txt { flex: 1; min-width: 240px; }
.ai-create-banner h3 { font-size: 20px; margin-bottom: 6px; }
.ai-create-banner p { color: var(--text-muted); font-size: 15px; }

/* ---------- 定时调度 ---------- */
.schedule-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.schedule-item { text-align: center; padding: 26px 16px; }
.schedule-item .ic { margin: 0 auto 14px; }

/* ---------- 截图方案对比表 ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); }
table { width: 100%; border-collapse: collapse; min-width: 620px; }
th, td { padding: 16px 20px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
th { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--brand-cyan); background: rgba(0, 229, 255, 0.03); }
tbody tr:last-child td { border-bottom: none; }
tbody tr { transition: background .25s; }
tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
td .hl { color: var(--text-primary); font-weight: 600; }
td .fast { color: var(--brand-cyan); font-family: var(--font-mono); font-weight: 700; }

/* ---------- AI 视觉流程（闭环步骤） ---------- */
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.pipe-step { text-align: center; padding: 24px 12px; position: relative; }
.pipe-step .n { font-family: var(--font-mono); font-size: 12px; color: var(--brand-cyan); }
.pipe-step h4 { font-size: 15px; margin: 8px 0 6px; }
.pipe-step p { font-size: 13px; color: var(--text-muted); }
.pipe-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -6px; top: 46px; color: var(--brand-purple); font-size: 18px;
}
.ai-highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }

/* ---------- 群控投屏 ---------- */
.control-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.feature-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.feature-list li:last-child { border-bottom: none; }
.feature-list .dot { flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; background: var(--brand-grad-soft); display: grid; place-items: center; color: var(--brand-cyan); margin-top: 2px; }
.feature-list .dot svg { width: 12px; height: 12px; }
.feature-list b { color: var(--text-primary); font-weight: 600; }
.feature-list span { color: var(--text-muted); font-size: 15px; }

/* ---------- 下载区 ---------- */
.download { background: linear-gradient(180deg, transparent, rgba(124, 58, 237, 0.04)); }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dl-card { text-align: center; padding: 40px 24px; position: relative; overflow: hidden; display: flex; flex-direction: column; }
.dl-card .dl-note { color: var(--text-muted); font-size: 13.5px; line-height: 1.6; margin-bottom: 22px; text-align: left; }
.dl-card .dl-note b { color: var(--text-primary); font-weight: 600; }
.dl-card .os-ic { width: 64px; height: 64px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 18px; background: var(--brand-grad-soft); border: 1px solid var(--border); color: var(--text-primary); }
.dl-card .os-ic svg { width: 34px; height: 34px; }
.dl-card h3 { font-size: 22px; margin-bottom: 6px; }
.dl-card .os-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 24px; font-family: var(--font-mono); }
.dl-card .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---------- 社区 / 联系 ---------- */
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.comm-card { text-align: center; padding: 30px 20px; display: flex; flex-direction: column; }
.comm-card .ic { margin: 0 auto 16px; width: 52px; height: 52px; }
.comm-card .ic svg { width: 26px; height: 26px; }
.comm-card h3 { font-size: 17px; margin-bottom: 6px; }
.comm-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; }
.comm-card .btn { margin-top: auto; align-self: center; }
/* 二维码占位方块 */
.qr-ph {
  width: 120px; height: 120px; margin: 0 auto 14px;
  border: 1px dashed var(--border-hover); border-radius: 12px;
  display: grid; place-items: center; text-align: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--text-dim);
  background:
    repeating-linear-gradient(45deg, rgba(0,229,255,.04) 0 8px, transparent 8px 16px);
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 32px; background: var(--bg-elevated); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--text-muted); font-size: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 14px; margin-bottom: 16px; color: var(--text-primary); }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; margin-bottom: 10px; transition: color .25s; }
.footer-col a:hover { color: var(--brand-cyan); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--text-dim); }
.footer-bottom .keywords { max-width: 720px; line-height: 1.8; }
.footer-bottom a { color: var(--text-dim); }
.footer-bottom a:hover { color: var(--text-muted); }

/* ---------- 滚动进入动效 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .eco-grid, .schedule-grid, .community-grid { grid-template-columns: repeat(2, 1fr); }
  .mode-grid, .steps-wrap, .ai-highlights { grid-template-columns: repeat(2, 1fr); }
  .ai-create-banner { text-align: left; }
  .pipeline { grid-template-columns: repeat(3, 1fr); }
  .pipe-step:nth-child(3)::after { display: none; }
  .dl-grid { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
}
@media (max-width: 768px) {
  .section-pad { padding: 72px 0; }
  .hero { padding: 116px 0 56px; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: rgba(10, 11, 20, 0.97); backdrop-filter: blur(16px);
    padding: 12px 24px; border-bottom: 1px solid var(--border);
    transform: translateY(-120%); transition: transform .4s var(--ease); z-index: 90;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a.active::after { display: none; }
  .hamburger { display: flex; }
  .nav .btn-primary { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .control-layout { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .pipe-step::after { display: none !important; }
  .dl-grid { grid-template-columns: 1fr; max-width: 420px; }
  .section-head { margin-bottom: 40px; }
  .section-head p { font-size: 15.5px; }
  .ai-create-banner { padding: 22px 20px; gap: 16px; }
  .ai-create-banner .txt { min-width: 0; }
  .card { padding: 22px; }
  /* 触摸设备：保证按钮与导航链接有足够点击高度 */
  .btn { padding: 13px 24px; }
  .btn-sm { padding: 11px 18px; }
  .comm-card .btn, .dl-card .btn { min-height: 44px; }
  .footer-cols { gap: 40px; }
  table { min-width: 520px; }
}
@media (max-width: 480px) {
  .eco-grid, .schedule-grid, .community-grid, .mode-grid, .steps-wrap, .ai-highlights { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
  .hero-cta { gap: 12px; }
  .hero-cta .btn { width: 100%; }
  .platforms { gap: 10px; }
  .platforms .plat { font-size: 13px; padding: 7px 12px; }
  .brand span { font-size: 16px; }
}
