/* ═══════════════════════════════════════════
   伴小萌官方网站样式
   品牌规范：bg #FFF8F0 · primary #FF6B6B→#FF8E53
   辅色 #4ECDC4 · 文字 #2D3436 · 圆角 20px · 药丸按钮 999px
   ═══════════════════════════════════════════ */

/* ─── 基础 ─── */
:root {
  --bg: #FFF8F0;
  --surface: #FFFFFF;
  --fg: #2D3436;
  --muted: #636E72;
  --primary: #FF6B6B;
  --primary-end: #FF8E53;
  --secondary: #4ECDC4;
  --secondary-end: #6BCB77;
  --accent: #9C27B0;
  --border: #F0E6D8;
  --radius: 20px;
  --shadow: 0 8px 30px rgba(45, 52, 54, 0.08);
  --shadow-lg: 0 16px 48px rgba(45, 52, 54, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─── 按钮 ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-end));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 107, 107, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(255, 107, 107, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 34px; font-size: 17px; }

/* ─── 顶部导航 ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; }
.brand-logo { font-size: 24px; }

.site-nav { display: flex; gap: 28px; }
.site-nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.site-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--fg);
  padding: 4px 8px;
}

/* ─── Hero ─── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 85% 20%, rgba(78, 205, 196, 0.12), transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 107, 107, 0.10), transparent 60%),
    linear-gradient(180deg, #FFF8F0 0%, #FFFDF9 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding-top: 88px;
  padding-bottom: 120px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--secondary);
  background: rgba(78, 205, 196, 0.12);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 44px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}

.hero-sub { font-size: 17px; color: var(--muted); max-width: 480px; margin-bottom: 32px; }

.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }

.hero-tags {
  list-style: none;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-pet {
  width: 300px;
  height: 300px;
  border-radius: 40px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.hero-float {
  position: absolute;
  font-size: 30px;
  animation: float 4s ease-in-out infinite;
}
.hero-float-1 { top: 6%; left: 8%; animation-delay: 0.8s; }
.hero-float-2 { bottom: 18%; right: 4%; animation-delay: 1.6s; }

.hero-bubble {
  position: absolute;
  bottom: 6%;
  left: -6%;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  animation: float 5s ease-in-out infinite;
  animation-delay: 1.2s;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 60px;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255, 255, 255, 0.9), transparent 70%);
}

/* ─── 通用区块 ─── */
.section { padding: 88px 0; }

.section-alt { background: linear-gradient(180deg, #FFFDF9 0%, #FFF8F0 100%); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }

.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-head h2 { font-size: 34px; font-weight: 800; margin-bottom: 14px; }

.section-desc { font-size: 16px; color: var(--muted); }

/* ─── 卡片 ─── */
.card-grid {
  display: grid;
  gap: 24px;
}

.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.12), rgba(255, 142, 83, 0.12));
  margin-bottom: 18px;
}

.card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 15px; color: var(--muted); }

.card-feature .card-icon { background: linear-gradient(135deg, rgba(78, 205, 196, 0.14), rgba(107, 203, 119, 0.14)); }
.card-parent .card-icon { background: linear-gradient(135deg, rgba(156, 39, 176, 0.10), rgba(78, 205, 196, 0.12)); }

/* ─── 提示横幅 ─── */
.notice-banner {
  margin-top: 36px;
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.10), rgba(107, 203, 119, 0.10));
  border: 1px solid rgba(78, 205, 196, 0.35);
  border-radius: var(--radius);
  padding: 18px 24px;
  font-size: 15px;
  color: var(--muted);
  text-align: center;
}

/* ─── CTA 区块 ─── */
.section-cta { padding-top: 40px; padding-bottom: 96px; }

.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
  background: linear-gradient(135deg, #FF6B6B, #FF8E53);
  border-radius: 28px;
  padding: 56px 56px;
  color: #fff;
  box-shadow: 0 20px 50px rgba(255, 107, 107, 0.35);
}

.cta-copy h2 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.cta-copy > p { font-size: 16px; opacity: 0.92; margin-bottom: 24px; }

.cta-steps {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
}

.cta-steps li { display: flex; align-items: center; gap: 12px; }
.cta-steps span {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.cta-card .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.cta-card .btn-primary:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25); }

.cta-hint { margin-top: 16px; font-size: 13px; opacity: 0.85; }
.cta-hint code {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 13px;
}

.cta-visual { display: flex; justify-content: center; }
.cta-visual img {
  border-radius: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  animation: float 5s ease-in-out infinite;
  animation-delay: 0.6s;
}

/* ─── 页脚 ─── */
.site-footer {
  background: #2D3436;
  color: rgba(255, 255, 255, 0.85);
  padding: 56px 0 32px;
}

.footer-inner { display: grid; gap: 28px; }

.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-brand .brand-name { color: #fff; }
.footer-slogan { font-size: 14px; color: rgba(255, 255, 255, 0.6); }

.footer-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

.footer-beian {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
}

.beian-link { color: rgba(255, 255, 255, 0.75); transition: color 0.2s; }
.beian-link:hover { color: #fff; }

/* ─── 响应式 ─── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 56px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-tags { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-pet { width: 220px; height: 220px; }
  .hero-bubble { left: auto; right: 2%; }
  .cta-card { grid-template-columns: 1fr; text-align: center; padding: 40px 28px; }
  .cta-steps { align-items: center; }
  .cta-visual img { width: 180px; height: 180px; }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 16px 24px; border-top: 1px solid var(--border); }
  .nav-toggle { display: block; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 28px; }
  .hero h1 { font-size: 34px; }
  .hero-cta { justify-content: center; }
  .footer-beian { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-pet, .hero-float, .hero-bubble, .cta-visual img { animation: none; }
}
