/* landing.css — 团宠官网落地页样式
   午夜霓光深色风：视觉基调参照 zhuochong/src/renderer 的 design-system.css / theme.css
   变量体系（rgba(13,9,30) 底色 + 玻璃态 blur/inset 高光 + 紫蓝渐变强调色），
   但本文件自成一套变量，不 @import 那两个文件，避免 website/ 与 Electron 渲染层耦合。 */

:root {
  --bg-0: #0b0818;
  --bg-1: rgba(13, 9, 30, 0.94);
  --bg-2: rgba(20, 15, 45, 0.9);
  --bg-3: rgba(30, 22, 60, 0.85);

  --accent-1: #7c6ef5;
  --accent-2: #4f7dff;
  --accent-3: #ff6ba8;
  --accent-gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));

  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.68);
  --text-muted: rgba(255, 255, 255, 0.4);

  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
  --container-w: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse 900px 500px at 15% -10%, rgba(124, 110, 245, 0.25), transparent 60%),
    radial-gradient(ellipse 800px 600px at 100% 10%, rgba(79, 125, 255, 0.18), transparent 55%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(255, 107, 168, 0.12), transparent 55%),
    var(--bg-0);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; }
button { font-family: inherit; }

/* ---------- 通用 ---------- */

.section-title {
  font-size: clamp(24px, 3.4vw, 34px);
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.02em;
}

.section-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 10px;
  margin-bottom: 48px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-icon { font-size: 16px; }

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(124, 110, 245, 0.35);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(124, 110, 245, 0.5); }

.btn-ghost {
  background: var(--glass-bg);
  border-color: var(--glass-border);
  color: var(--text-primary);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.2); }

.btn-block { width: 100%; justify-content: center; }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

main > section {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 96px 24px;
}

/* ---------- 导航 ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 8, 24, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-inner {
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 17px;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  box-shadow: 0 0 12px var(--accent-1);
}
.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--text-secondary);
}
.nav-links a:hover { color: var(--text-primary); }
.nav-cta {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
}
.nav-cta:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 72px !important;
  padding-bottom: 60px !important;
}
.hero-glow {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 500px;
  background: radial-gradient(ellipse at 50% 0%, rgba(124, 110, 245, 0.3), transparent 65%);
  pointer-events: none;
  z-index: -1;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.hero .lead {
  margin: 20px 0 30px;
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 480px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-hint { margin-top: 16px; font-size: 13px; color: var(--text-muted); }

.hero-stage-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-stage {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 420px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
  touch-action: none;
}
.hero-stage canvas { display: block; cursor: pointer; }
.hero-stage-hint { font-size: 13px; color: var(--text-muted); }

/* ---------- 三卖点 ---------- */

.highlights { padding-top: 40px !important; padding-bottom: 40px !important; }
.highlights-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.highlight-item {
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  text-align: center;
  transition: transform 0.25s ease;
}
.highlight-item:hover { transform: translateY(-4px); }
.highlight-icon { font-size: 30px; margin-bottom: 12px; }
.highlight-item h3 { font-size: 17px; margin-bottom: 8px; }
.highlight-item p { color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ---------- 宠物核心 ---------- */

.core-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  padding: 36px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.core-row:last-child { border-bottom: none; }
.core-row-rev { grid-template-columns: 0.9fr 1.1fr; }
.core-row-rev .core-text { order: 2; }
.core-row-rev .core-visual { order: 1; }

.core-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-2);
  background: rgba(79, 125, 255, 0.12);
  border: 1px solid rgba(79, 125, 255, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.core-text h3 { font-size: 22px; margin-bottom: 12px; line-height: 1.4; }
.core-text p { color: var(--text-secondary); font-size: 15px; margin: 0; }

.core-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.pose-canvas {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 40%, rgba(124, 110, 245, 0.18), transparent 70%),
    var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

/* ---------- AI 陪伴 ---------- */

.ai-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.ai-copy .section-title, .ai-copy .section-sub { text-align: left; }
.ai-copy .section-sub { margin-bottom: 28px; }
.ai-feature-list { display: flex; flex-direction: column; gap: 16px; }
.ai-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.ai-feature-icon { font-size: 18px; flex-shrink: 0; }

.chat-demo {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-xl);
  min-height: 220px;
}
.chat-bubble {
  max-width: 82%;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.chat-bubble.show { opacity: 1; transform: translateY(0); }
.bubble-pet {
  align-self: flex-start;
  background: rgba(124, 110, 245, 0.18);
  border: 1px solid rgba(124, 110, 245, 0.3);
  border-bottom-left-radius: 4px;
}
.bubble-user {
  align-self: flex-end;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom-right-radius: 4px;
}

.intimacy-bar {
  margin-top: 20px;
  padding: 18px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.intimacy-head {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.intimacy-level { color: var(--accent-3); font-weight: 600; }
.intimacy-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.intimacy-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  transition: width 1.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.intimacy-levels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* ---------- 工具墙 ---------- */

.tool-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.tool-tab {
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 13.5px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-tab:hover { color: var(--text-primary); }
.tool-tab.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}
.tool-card {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}
.tool-card:hover { transform: translateY(-3px); border-color: rgba(124, 110, 245, 0.4); }
.tool-card.dim { opacity: 0.25; filter: grayscale(0.6); }
.tool-emoji { font-size: 22px; margin-bottom: 8px; }
.tool-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tool-desc { font-size: 11.5px; color: var(--text-muted); line-height: 1.4; }

/* ---------- 定价 ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  display: flex;
  flex-direction: column;
}
.price-card h3 { font-size: 18px; margin-bottom: 14px; }
.price-card-featured {
  border-color: rgba(124, 110, 245, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 110, 245, 0.2), 0 20px 50px rgba(124, 110, 245, 0.2);
  transform: scale(1.03);
}
.price-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.price-tag { display: flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.price-num { font-size: 34px; font-weight: 800; }
.price-unit { font-size: 13px; color: var(--text-muted); }
.price-list { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.price-list li { font-size: 13.5px; color: var(--text-secondary); }
.pricing-footnote {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 13.5px;
}

/* ---------- 共创社区 ---------- */

.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 64px;
}
.community-card {
  padding: 26px 22px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  text-align: center;
}
.community-icon { font-size: 26px; margin-bottom: 10px; }
.community-card h3 { font-size: 16px; margin-bottom: 8px; }
.community-card p { font-size: 13.5px; color: var(--text-secondary); margin: 0; }

/* ---------- FAQ ---------- */

.faq { max-width: 720px; margin: 0 auto 64px; }
.faq-title { text-align: center; font-size: 20px; margin-bottom: 24px; }
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  padding: 18px 4px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.25s ease;
  margin-left: 12px;
  flex-shrink: 0;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 4px 18px; color: var(--text-secondary); font-size: 14px; margin: 0; }

/* ---------- 结尾 CTA ---------- */

.final-cta {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
}
.final-cta h2 { font-size: clamp(22px, 3vw, 30px); margin-bottom: 12px; }
.final-cta p { color: var(--text-secondary); margin: 0 0 26px; }
.final-cta-actions { justify-content: center; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid rgba(255, 255, 255, 0.06); padding: 40px 24px; }
.footer-inner { max-width: var(--container-w); margin: 0 auto; text-align: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-copy { color: var(--text-secondary); font-size: 13.5px; margin: 0 0 6px; }
.footer-meta { color: var(--text-muted); font-size: 12px; margin: 0; }

/* ---------- 响应式 ---------- */

@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-stage-wrap { order: -1; }
  .hero-stage { max-width: 320px; }
  .highlights-inner { grid-template-columns: 1fr; }
  .core-row, .core-row-rev {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .core-row-rev .core-text, .core-row-rev .core-visual { order: initial; }
  .ai-inner { grid-template-columns: 1fr; }
  .ai-copy .section-title, .ai-copy .section-sub { text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { transform: none; }
  .community-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
