/* ═══════════════════════════════════════════
   闪蓝AI（CylandAI）官网样式
   主题：梦幻蓝紫 × 樱粉 · 治愈系情感陪伴
   ═══════════════════════════════════════════ */

:root {
  --iris-700: #4f5bd5;
  --iris-600: #6372f0;
  --iris-500: #8195ff;
  --sky-400: #7ec8f5;
  --rose-500: #f27fb9;
  --rose-400: #f9a8d4;
  --lilac-300: #cdc4ff;
  --bg: #fdfcff;
  --bg-soft: #f5f3ff;
  --bg-pink: #fdf2f9;
  --text-strong: #2e2a4a;
  --text-body: #6f6b8f;
  --text-soft: #9d99b8;
  --card-border: rgba(129, 149, 255, 0.22);
  --shadow-soft: 0 14px 40px -12px rgba(99, 114, 240, 0.16);
  --shadow-lift: 0 20px 48px -12px rgba(99, 114, 240, 0.28);
  --radius: 20px;
  --grad-brand: linear-gradient(120deg, var(--iris-600), var(--rose-500));
  --font: "PingFang SC", "HarmonyOS Sans SC", "Noto Sans SC",
          "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── 按钮 ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  padding: 12px 28px;
  box-shadow: 0 10px 26px -8px rgba(127, 127, 246, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -8px rgba(242, 127, 185, 0.55);
}
.btn-lg { padding: 14px 34px; font-size: 16px; }

/* ── 顶部导航 ─────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(253, 252, 255, 0.78);
  border-bottom: 1px solid rgba(129, 149, 255, 0.12);
}
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  box-shadow: 0 6px 16px -4px rgba(127, 127, 246, 0.5);
}
.brand-text {
  color: var(--text-strong);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-text em {
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--iris-600);
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  color: var(--text-body);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--iris-700); }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 78% 12%, rgba(242, 127, 185, 0.14), transparent),
    radial-gradient(ellipse 60% 50% at 15% 8%, rgba(129, 149, 255, 0.18), transparent),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  animation: float 9s ease-in-out infinite alternate;
}
.hero-glow--a {
  top: -140px; right: -80px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(129, 149, 255, 0.4), transparent 70%);
}
.hero-glow--b {
  bottom: -160px; left: 34%;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(249, 168, 212, 0.38), transparent 70%);
  animation-delay: -4s;
}
@keyframes float {
  from { transform: translateY(-18px) scale(1); }
  to   { transform: translateY(18px) scale(1.06); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid var(--lilac-300);
  background: rgba(255, 255, 255, 0.7);
  color: var(--iris-600);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.28;
  color: var(--text-strong);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero-title .hl {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin-top: 22px;
  font-size: 20px;
  color: var(--iris-700);
  font-weight: 600;
}
.hero-desc { margin-top: 14px; max-width: 560px; font-size: 16px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.hero-stats > div {
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}
.hero-stats dt { font-size: 13px; color: var(--text-soft); }
.hero-stats dd {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 800;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 对话演示卡片 */
.hero-chat { position: relative; }
.chat-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-lift);
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: float 7s ease-in-out infinite alternate;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px dashed rgba(129, 149, 255, 0.25);
}
.chat-avatar {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-weight: 700;
}
.chat-name { color: var(--text-strong); font-weight: 700; font-size: 15px; line-height: 1.3; }
.chat-status { font-size: 12px; color: var(--rose-500); }
.bubble {
  max-width: 86%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14.5px;
  line-height: 1.6;
}
.bubble--them {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--text-strong);
  border-bottom-left-radius: 6px;
}
.bubble--me {
  align-self: flex-end;
  background: var(--grad-brand);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble--voice {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-pink);
  border: 1px solid rgba(242, 127, 185, 0.3);
  color: var(--text-strong);
}
.voice-play {
  width: 26px; height: 26px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  font-size: 11px;
  padding-left: 2px;
}
.voice-wave { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; }
.voice-wave i {
  width: 3px;
  border-radius: 3px;
  background: var(--rose-400);
  animation: wave 1.1s ease-in-out infinite;
}
.voice-wave i:nth-child(1) { height: 8px; }
.voice-wave i:nth-child(2) { height: 14px; animation-delay: 0.15s; }
.voice-wave i:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.voice-wave i:nth-child(4) { height: 11px; animation-delay: 0.45s; }
.voice-wave i:nth-child(5) { height: 6px; animation-delay: 0.6s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); }
  50% { transform: scaleY(1); }
}
.voice-time { font-size: 12px; color: var(--text-soft); }

/* ── 通用 Section ─────────────────────── */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }
.section-pink {
  background:
    radial-gradient(ellipse 50% 40% at 50% 0%, rgba(242, 127, 185, 0.12), transparent),
    var(--bg-pink);
}
.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 800;
  color: var(--text-strong);
}
.section-sub {
  text-align: center;
  margin: 12px 0 56px;
  font-size: 16px;
  color: var(--text-soft);
}

/* ── 能力卡片 ─────────────────────────── */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.cap-card {
  padding: 30px 28px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cap-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
}
.cap-icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 24px;
  background: var(--bg-soft);
  margin-bottom: 16px;
}
.cap-card--pink .cap-icon { background: #fce7f3; }
.cap-card h3 { color: var(--text-strong); font-size: 18px; margin-bottom: 8px; }
.cap-card p { font-size: 14.5px; }

/* ── 陪伴场景 ─────────────────────────── */
.scene-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.scene-item {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-soft);
  border-left: 4px solid var(--iris-500);
}
.scene-item h3 { color: var(--text-strong); font-size: 18px; margin-bottom: 8px; }
.scene-item p { font-size: 15px; }

/* ── 用户心声 ─────────────────────────── */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.quote-card {
  padding: 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.quote-card blockquote {
  font-size: 15px;
  color: var(--text-strong);
  line-height: 1.85;
}
.quote-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
  margin-top: auto;
}
.quote-avatar {
  width: 38px; height: 38px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--grad-brand);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

/* ── 底部栏 ───────────────────────────── */
.site-footer {
  border-top: 1px solid rgba(129, 149, 255, 0.12);
  background: var(--bg-soft);
  padding: 56px 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(129, 149, 255, 0.12);
}
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 280px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  color: var(--text-strong);
  font-size: 15px;
  margin-bottom: 6px;
}
.footer-col a, .footer-col span { font-size: 14px; color: var(--text-body); }
.footer-col a:hover { color: var(--iris-600); }
.footer-beian {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-soft);
  text-align: center;
}
.beian-links { display: inline-flex; flex-wrap: wrap; gap: 20px; }
.beian-links a { display: inline-flex; align-items: center; gap: 6px; }
.beian-links a:hover { color: var(--iris-600); }
.beian-links img { opacity: 0.7; }

/* ── 动效偏好 ─────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .chat-card, .voice-wave i { animation: none; }
}

/* ── 响应式 ───────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-chat { max-width: 440px; }
  .cap-grid, .quote-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .scene-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .cap-grid, .quote-grid,
  .hero-stats, .footer-top { grid-template-columns: 1fr; }
}
