/* ============================================================
   密鸽AI 官网 · style.css
   主题：明亮 AI 蓝紫渐变 · 移动优先 · 静态展示
   ============================================================ */

/* ---------- 设计令牌 ---------- */
:root {
  --blue: #2E5BFF;
  --blue-deep: #1E3FD8;
  --cyan: #12B5FF;
  --violet: #7B5CFF;
  --ink: #10203F;
  --ink-2: #5A6B8C;
  --ink-3: #8A99B8;
  --line: #E6EDF9;
  --bg-soft: #F4F8FF;
  --bg-lav: #F8F6FF;
  --amber: #FFB020;
  --grad: linear-gradient(120deg, #2E5BFF 0%, #12B5FF 100%);
  --grad-cta: linear-gradient(135deg, #1E3FD8 0%, #2E5BFF 52%, #7B5CFF 135%);
  --shadow-sm: 0 8px 24px rgba(30, 63, 216, .08);
  --shadow-md: 0 18px 44px rgba(30, 63, 216, .13);
  --radius: 20px;
  --nav-h: 68px;
}

/* ---------- 基础 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: auto; /* 打开页面不自动滚动 */
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; line-height: 1.25; }

section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(46, 91, 255, .18); }

.wrap {
  width: min(1160px, 92%);
  margin-inline: auto;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 26px rgba(46, 91, 255, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(46, 91, 255, .42);
}

.btn-ghost {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 12px 30px rgba(10, 20, 60, .22);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(10, 20, 60, .28); }

.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease;
}
.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(16, 32, 63, .06);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--ink);
}
.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 4px 12px rgba(46, 91, 255, .25);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  text-decoration: none;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--blue); }

.nav-cta { display: none; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* 移动端菜单面板 */
.nav-panel {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  z-index: 99;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 34px rgba(16, 32, 63, .1);
  padding: 10px 4% 18px;
  display: none;
}
.nav-panel.open { display: block; }
.nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid #F1F5FD;
}
.nav-panel a:last-of-type { border-bottom: 0; }
.nav-panel .btn {
  margin-top: 14px;
  width: 100%;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 44px) 0 64px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: .45;
}
.blob-1 { width: 460px; height: 460px; top: -140px; left: -120px; background: #BFD4FF; }
.blob-2 { width: 400px; height: 400px; top: 12%; right: -140px; background: #E2DBFF; }
.blob-3 { width: 420px; height: 420px; bottom: -180px; left: 42%; background: #C9EBFF; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(46, 91, 255, .1), rgba(123, 92, 255, .1));
  border: 1px solid rgba(46, 91, 255, .22);
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
}
.hero-badge svg { width: 15px; height: 15px; }

.hero-title {
  margin-top: 20px;
  font-size: clamp(2.5rem, 7.5vw, 4rem);
  letter-spacing: .01em;
  color: var(--ink);
}

.hero-sub {
  margin-top: 14px;
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-desc {
  margin-top: 14px;
  max-width: 34em;
  color: var(--ink-2);
  font-size: 16px;
}

.hero-ctas {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-stats {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 0;
}
.stat {
  padding: 0 28px;
  border-left: 1px solid var(--line);
}
.stat:first-child { padding-left: 0; border-left: 0; }
.stat-num {
  display: block;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--blue);
}
.stat-label {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-2);
}

/* 手机展示台 */
.hero-visual {
  position: relative;
}
.phone-stage { position: relative; }

.phone {
  position: relative;
  width: min(330px, 84%);
  margin-inline: auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, #16264C, #10203F);
  box-shadow: 0 34px 80px rgba(16, 32, 63, .3);
}
.phone img {
  width: 100%;
  border-radius: 33px;
  aspect-ratio: 686 / 552;
  object-fit: cover;
  object-position: center top;
}

.chip {
  position: absolute;
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  z-index: 2;
}
.chip svg { width: 16px; height: 16px; color: var(--blue); flex: none; }
.chip-1 { top: 6%; left: -16%; }
.chip-2 { top: 30%; right: -14%; }
.chip-3 { bottom: 20%; left: -18%; }
.chip-4 { bottom: 2%; right: -10%; }

/* hero 入场编排动画（仅加载时一次） */
.hero-badge, .hero-title, .hero-sub, .hero-desc,
.hero-ctas, .hero-stats, .hero-visual {
  animation: rise .75s cubic-bezier(.2, .7, .2, 1) both;
}
.hero-title { animation-delay: .05s; }
.hero-sub { animation-delay: .12s; }
.hero-desc { animation-delay: .18s; }
.hero-ctas { animation-delay: .24s; }
.hero-stats { animation-delay: .3s; }
.hero-visual { animation-delay: .14s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- 区块通用 ---------- */
.section { padding: 72px 0; }
.sec-head { max-width: 640px; }
.sec-head.center { margin-inline: auto; text-align: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .14em;
  color: var(--blue);
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad);
}

.sec-title {
  margin-top: 12px;
  font-size: clamp(1.7rem, 4.6vw, 2.5rem);
  color: var(--ink);
}
.sec-desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 16px;
}

/* ---------- 功能亮点 ---------- */
.features { background: #fff; }

.feat-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 91, 255, .35);
}

.feat-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}
.feat-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.feat-card:hover .feat-art img { transform: scale(1.04); }

.feat-body { padding: 22px 24px 26px; }
.feat-body h3 { font-size: 19px; color: var(--ink); }
.feat-body p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* ---------- 智能体广场 ---------- */
.agents { background: var(--bg-soft); }

.agent-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.agent-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.agent-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(46, 91, 255, .35);
}

.agent-icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E8F0FF, #F1EDFF);
  color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(46, 91, 255, .12);
}
.agent-icon svg { width: 26px; height: 26px; }

.agent-card h3 { font-size: 17px; color: var(--ink); }
.agent-card p {
  margin-top: 5px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
}
.agent-tags { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  background: rgba(46, 91, 255, .08);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 玩法步骤 ---------- */
.steps { background: #fff; }

.steps-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  position: relative;
}

.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 18px rgba(46, 91, 255, .3);
}
.step h3 { margin-top: 18px; font-size: 18px; color: var(--ink); }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 用户评价 ---------- */
.reviews { background: var(--bg-lav); }

.review-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-stars { display: flex; gap: 3px; }
.review-stars svg { width: 16px; height: 16px; color: var(--amber); }
.review-text {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.75;
  flex: 1;
}
.review-person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  flex: none;
}
.avatar-1 { background: linear-gradient(135deg, #2E5BFF, #12B5FF); }
.avatar-2 { background: linear-gradient(135deg, #7B5CFF, #B36CFF); }
.avatar-3 { background: linear-gradient(135deg, #12B5FF, #2BD4C8); }
.review-person strong { display: block; font-size: 15px; color: var(--ink); }
.review-person span { display: block; font-size: 13px; color: var(--ink-3); }

/* 用户寄语横幅 */
.quote-banner {
  margin-top: 40px;
  border-radius: calc(var(--radius) + 6px);
  background: var(--grad-cta);
  color: #fff;
  padding: 40px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-banner::before,
.quote-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
}
.quote-banner::before { width: 220px; height: 220px; top: -110px; right: -60px; }
.quote-banner::after { width: 180px; height: 180px; bottom: -90px; left: -40px; }

.quote-text {
  position: relative;
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 800;
  line-height: 1.5;
  max-width: 22em;
  margin-inline: auto;
}
.quote-from {
  position: relative;
  margin-top: 14px;
  font-size: 13.5px;
  opacity: .85;
}

/* ---------- 常见问题 ---------- */
.faq { background: #fff; }

.faq-list {
  margin-top: 40px;
  max-width: 780px;
  margin-inline: auto;
  display: grid;
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.faq-item.open { border-color: rgba(46, 91, 255, .4); box-shadow: var(--shadow-sm); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.faq-q .icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 91, 255, .1);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease, background .3s ease;
}
.faq-q .icon svg { width: 13px; height: 13px; }
.faq-item.open .faq-q .icon { transform: rotate(135deg); background: var(--grad); color: #fff; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s ease;
}
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p {
  padding: 0 0 18px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ---------- 下载 CTA ---------- */
.download { padding: 48px 0 72px; background: #fff; }

.download-banner {
  border-radius: calc(var(--radius) + 6px);
  background: var(--grad-cta);
  color: #fff;
  padding: 54px 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-banner::before,
.download-banner::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.download-banner::before { width: 300px; height: 300px; top: -150px; left: -90px; }
.download-banner::after { width: 240px; height: 240px; bottom: -120px; right: -70px; }

.download-app {
  position: relative;
  margin: 0 auto 22px;
  width: 84px;
  height: 84px;
  border-radius: 22px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(10, 20, 60, .3);
}
.download-app img { width: 100%; height: 100%; border-radius: 15px; }

.download-title {
  position: relative;
  font-size: clamp(1.7rem, 4.6vw, 2.4rem);
  font-weight: 800;
}
.download-desc {
  position: relative;
  margin-top: 12px;
  font-size: 15.5px;
  opacity: .92;
}
.download-btn-row {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.download-note { font-size: 13px; opacity: .8; }

/* ---------- 页脚 ---------- */
.footer {
  background: #0C1A38;
  color: #C6D2EC;
  padding: 56px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
.footer-brand .nav-logo { color: #fff; }
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  color: #8EA0C4;
  max-width: 26em;
  line-height: 1.75;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 14px;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: #8EA0C4;
  text-decoration: none;
  transition: color .2s ease;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: #6E80A6;
}

/* ---------- 无障碍：减少动效 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ============================================================
   响应式
   ============================================================ */

@media (min-width: 560px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .download-btn-row { flex-direction: row; justify-content: center; }
}

@media (min-width: 768px) {
  .section { padding: 88px 0; }

  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }

  .hero { padding: calc(var(--nav-h) + 72px) 0 88px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 24px; }

  .chip { display: inline-flex; }

  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  .step { padding: 30px 26px 34px; }

  .agent-grid { grid-template-columns: repeat(3, 1fr); }
  .review-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .feat-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-grid { gap: 48px; }
}
