/* 戴黛 AI 官网样式（2026-10-17 纯黑 + 品牌紫版）
   设计原则：
   - **纯黑底**（#000），只用品牌紫（#8B5CF6，与小程序 --brand-color 一致）+ 紫罗兰 + 白；
     ⛔ 不做「紫→粉」渐变那种 AI 模板套路，只走同一色系的深浅变化；
   - 首屏：品牌标记的**粒子星河居中超大**展示（canvas 见 app.js），文案在下方居中；
   - 不用 emoji 图标（全部内联 SVG）、不用重量级阴影、颜色统一走变量；
   - 尊重 prefers-reduced-motion：关掉漂浮/过渡动画。 */

:root {
  --bg: #000000;
  --bg-alt: #050508;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-hover: rgba(139, 92, 246, 0.08);
  --ink: #f2f0fa;
  --ink-2: #a9a4be;
  --ink-3: #726d86;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #8b5cf6;
  --brand-strong: #a78bfa;
  --brand-soft: #c4b5fd;
  --brand-dim: rgba(139, 92, 246, 0.16);
  --radius: 16px;
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-strong); text-decoration: none; }
a:hover { color: var(--brand-soft); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 顶部导航 ─────────────────────────────── */
/* 2026-10-17 大雄：
   ① 只有滚动条在**最顶部**时导航才透明；一旦滚动就加实底（否则正文从导航下穿过很乱）
   ② 页面滚动条**隐藏**（仍可滚动） */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.site-header.is-scrolled {
  background: rgba(6, 8, 14, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom-color: var(--line);
}

html,
body {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* 旧 Edge/IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16.5px;
  /* 2026-10-17 大雄：logo 与文字要**共用一条水平中线**
     ⇒ 行高收到 1（去掉字体行盒的上下留白，否则文字视觉上偏下），图片改 block 去掉基线空隙 */
  line-height: 1;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.brand img {
  display: block; /* 去掉 inline 图片的基线空隙，否则图标会比文字低几个像素 */
  border-radius: 8px;
  flex-shrink: 0;
}

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav a { color: var(--ink-2); }
.nav a:hover { color: var(--brand-strong); }

/* ── 按钮 ─────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-strong); color: #1b0b33; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-strong); }

.btn-lg { height: 48px; padding: 0 26px; font-size: 15.5px; }

/* ── 首屏（品牌标记居中超大 + 文案居中在下方）────────────── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  /* 背景交给 fixed 的全屏粒子画布，这里保持透明 */
  background: transparent;
}

.hero-canvas {
  /* 2026-10-17 大雄：固定在屏幕正中、不随滚动走 ⇒ fixed 全屏，内容在它上方滚动 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none;
}

/* 首屏底部不再压黑（2026-10-17：内容全部透明，标记要整屏全亮）；文案靠 .hero-copy 的暗晕保证可读 */
.hero-glow {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  /* 2026-10-17 大雄撤回"靠右"改动 ⇒ 恢复为**靠左**（左对齐） */
  align-items: flex-start;
  text-align: left;
  padding-top: 80px;
  padding-bottom: 64px;
  gap: 0;
}

/* 留白给粒子（视觉上在文案上方 ⇒ order:-1） */
.hero-stage {
  order: -1;
  width: 100%;
  height: 44vh;
  min-height: 280px;
}

.hero-copy {
  position: relative;
  max-width: 720px;
  margin: 0;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.9), 0 1px 3px rgba(0, 0, 0, 0.75);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.eyebrow-line {
  display: inline-block;
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand));
}

h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

/* 2026-10-17 大雄：这一行要用**纯品牌色**，不要渐变（渐变在深底上会显得发暗、发灰） */
h1 .accent {
  color: var(--brand); /* #8B5CF6 */
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
  text-shadow: 0 2px 26px rgba(139, 92, 246, 0.35), 0 1px 3px rgba(0, 0, 0, 0.75);
}

.lead {
  margin: 0 0 26px;
  max-width: 620px;
  font-size: 16px;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-3);
  font-size: 13.5px;
}
.hero-points li { position: relative; padding-left: 16px; }
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.7;
}

/* 首屏两侧的能力气泡（窄屏隐藏，避免挤到中央的标记） */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-2);
  background: rgba(10, 8, 18, 0.66);
  border: 1px solid var(--line);
  backdrop-filter: blur(6px);
  white-space: nowrap;
  animation: float 7s ease-in-out infinite;
}
.chip .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 10px var(--brand);
}
/* 7 个能力浮标：**刻意打散**（2026-10-17 大雄：排得太齐，想要"乱"一点的效果）
   · 纵向间距不等（12/27/45 vs 9/24/47/63），横向缩进也不等
   · 每个各带一点角度（rotate 独立属性，不会和 float 动画的 transform 冲突）
   · 字号略有差异，避免"一排放置"的整齐感
   同时避开左下角文案区与顶部导航。 */
.chip-a { top: 12%; left: 9%;    rotate: -3deg;   font-size: 12px; }
.chip-b { top: 27%; left: 2.5%;  rotate: 2.5deg;  font-size: 13px;  animation-delay: -2.6s; }
.chip-c { top: 45%; left: 11%;   rotate: -1.5deg; font-size: 12.5px; animation-delay: -1.1s; }
.chip-d { top: 9%;  right: 13%;  rotate: 3deg;    font-size: 12.5px; animation-delay: -3.4s; }
.chip-e { top: 24%; right: 3%;   rotate: -2.5deg; font-size: 12px;  animation-delay: -0.7s; }
.chip-f { top: 47%; right: 12%;  rotate: 1.5deg;  font-size: 13px;  animation-delay: -4.2s; }
.chip-g { top: 63%; right: 4.5%; rotate: -3.5deg; font-size: 12px;  animation-delay: -1.9s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ── 通用区块 ─────────────────────────────── */
/* 内容直接铺在黑底上（2026-10-17 大雄：不要蒙版、不要盒子）⇒ 固定标记永远全亮度。
   ⚠️ position: relative 必须保留：画布是 z-index:0 的定位元素，静态区块会被它盖住。 */
.section {
  position: relative;
  padding: 92px 0;
  background: transparent;
}
.section-alt { background: transparent; }

/* 直接压在粒子上的文字：靠阴影保证可读 */
.section h2,
.section-lead,
.check-list li,
.faq dt,
.faq dd,
.card h3,
.card p,
.scene h3,
.scene p {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.92), 0 0 6px rgba(0, 0, 0, 0.7);
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.section-lead {
  margin: 0 0 38px;
  max-width: 720px;
  color: var(--ink-2);
  font-size: 15.5px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* 功能卡改成"无盒子"：只有图标 + 标题 + 描述，直接铺在页面上 */
.card {
  padding: 8px 0 24px;
  border: 0;
  background: transparent;
  transition: transform 0.2s ease;
}
.card:hover { transform: translateY(-2px); }
.card:hover h3 { color: var(--brand-soft); }

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--brand-dim);
  color: var(--brand-strong);
}
.icon svg { width: 22px; height: 22px; }

.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.scene {
  padding: 8px 0 20px;
  background: transparent;
  border: 0;
}
.scene h3 { margin: 0 0 8px; font-size: 16px; }
.scene p { margin: 0; color: var(--ink-2); font-size: 14.5px; }

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
  max-width: 760px;
}
.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-2);
  font-size: 15px;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--brand-dim);
  box-shadow: inset 0 0 0 1.5px var(--brand);
}

/* ── FAQ ──────────────────────────────────── */
.faq { margin: 0; max-width: 780px; }
.faq dt { font-weight: 600; margin-top: 22px; color: var(--ink); }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }

/* ── 小程序入口（2026-10-17）──────────────────── */
.mp {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.mp-card {
  flex: 0 0 auto;
  padding: 14px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}
.mp-card img {
  display: block;
  width: 200px;
  height: 200px;
}
.mp-copy {
  flex: 1 1 320px;
  min-width: 0;
}
.mp-copy h2 { margin-bottom: 10px; }
.mp-copy .check-list { margin-top: 18px; }

/* ── 结尾 CTA ─────────────────────────────── */
.cta {
  padding: 84px 0;
  background: transparent;
  border-top: 1px solid var(--line);
}
.cta-inner { text-align: center; }
.cta h2 { color: var(--ink); }
.cta p { margin: 0 0 26px; color: var(--ink-2); }

/* ── 页脚 ─────────────────────────────────── */
.site-footer {
  padding: 36px 0 28px;
  border-top: 1px solid var(--line);
  background: transparent;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 20px;
}
.footer-brand { margin: 0; font-weight: 700; }
.footer-desc { margin: 4px 0 0; color: var(--ink-3); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 14px; }
.footer-links a { color: var(--ink-2); }
.footer-legal {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.footer-legal p { margin: 4px 0; }
/* 备案号做成指向工信部备案系统的链接（合规要求可查），颜色跟随正文、悬浮时高亮 */
.footer-legal a {
  color: inherit;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: color 0.18s ease, border-color 0.18s ease;
}
.footer-legal a:hover {
  color: var(--brand-strong);
  border-bottom-color: var(--brand-strong);
}

/* ── 移动端 ───────────────────────────────── */
@media (max-width: 1000px) {
  .chip { display: none; }
}

@media (max-width: 760px) {
  .hero-inner { padding-top: 72px; padding-bottom: 48px; }
  .hero-stage { height: 34vh; min-height: 220px; }
  .nav { display: none; }
  .header-inner { height: 58px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .btn-lg { width: 100%; }
  .section { padding: 60px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chip { animation: none; }
  .btn, .card { transition: none; }
}
