/* =========================================================
   桃桃聊天官方网站 - style.css
   主题：桃粉 / 紫 / 浅蓝 三色社交体系
   ========================================================= */
:root {
  --pink: #FF5C8A;
  --pink-deep: #F03E7B;
  --pink-soft: #FFE3EC;
  --purple: #8B5CF6;
  --purple-soft: #EFE8FE;
  --blue: #5BC8F5;
  --blue-soft: #E1F4FE;
  --ink: #33243F;
  --muted: #7A6E88;
  --bg: #FFF7FA;
  --card: #FFFFFF;
  --line: #F6E6EE;
  --grad: linear-gradient(120deg, #FF5C8A 10%, #8B5CF6 60%, #5BC8F5 105%);
  --grad-btn: linear-gradient(120deg, #FF5C8A 0%, #F03E7B 60%, #8B5CF6 120%);
  --shadow-card: 0 14px 34px rgba(255, 92, 138, .12);
  --shadow-float: 0 18px 44px rgba(139, 92, 246, .18);
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: 999px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn svg { flex: none; }
.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  padding: 13px 30px;
  box-shadow: 0 10px 24px rgba(240, 62, 123, .32);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(240, 62, 123, .42); }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  padding: 13px 26px;
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 16px rgba(51, 36, 63, .05);
}
.btn-ghost:hover { border-color: var(--pink); color: var(--pink-deep); transform: translateY(-2px); }
.btn-lg { padding: 15px 34px; font-size: 17px; }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-download {
  background: var(--grad-btn);
  color: #fff;
  padding: 18px 46px;
  font-size: 18px;
  box-shadow: 0 14px 34px rgba(240, 62, 123, .4);
}
.btn-download:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(240, 62, 123, .5); }
.arrow { font-size: 15px; }

/* ---------- 顶部导航 ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background .3s ease, box-shadow .3s ease;
}
.header.scrolled {
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(51, 36, 63, .07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: .5px; padding: 5px 2px; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; }
.brand-name { color: var(--ink); }
.nav-links { display: flex; gap: 34px; }
.nav-links a { font-size: 15.5px; font-weight: 500; color: var(--muted); position: relative; padding: 6px 0; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2.5px;
  background: var(--grad); border-radius: 2px; transition: width .25s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.menu-btn { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 44px; padding: 8px; }
.menu-btn span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-btn.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(560px 420px at 88% 18%, rgba(91, 200, 245, .16), transparent 65%),
    radial-gradient(620px 480px at 8% 30%, rgba(255, 92, 138, .14), transparent 62%),
    radial-gradient(520px 420px at 55% 108%, rgba(139, 92, 246, .12), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid var(--line); color: var(--pink-deep);
  font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 6px 16px rgba(255, 92, 138, .1);
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 5.4vw, 62px); line-height: 1.18; font-weight: 900; letter-spacing: 1px; }
.hero-sub { margin: 20px 0 22px; font-size: 17.5px; color: var(--muted); max-width: 520px; }
.hot-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hot-tags span {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  font-size: 13.5px; font-weight: 500; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(51, 36, 63, .05);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 42px; margin-bottom: 14px; }
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 26px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-stats span { font-size: 13px; color: var(--muted); }
.hero-note { font-size: 12.5px; color: #A99BB5; }

/* 手机样机 */
.hero-visual { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(300px, 74vw);
  background: #1C1630;
  border-radius: 42px;
  padding: 11px;
  box-shadow: 0 30px 70px rgba(139, 92, 246, .28), 0 8px 24px rgba(51, 36, 63, .12);
  border: 1px solid rgba(255, 255, 255, .28);
}
.phone-notch {
  position: absolute; top: 21px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 22px; background: #1C1630; border-radius: 999px; z-index: 2;
}
.phone-screen {
  width: 100%;
  aspect-ratio: 281 / 500;
  object-fit: cover;
  border-radius: 32px;
  background: #fff;
}
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border-radius: 999px; padding: 9px 16px;
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  box-shadow: var(--shadow-float);
  border: 1px solid rgba(255, 255, 255, .6);
  animation: floatY 5s ease-in-out infinite;
}
.fc-1 { top: 14%; left: -6%; animation-delay: 0s; }
.fc-2 { top: 48%; right: -8%; animation-delay: 1.2s; }
.fc-3 { bottom: 10%; left: 2%; animation-delay: 2.2s; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.dot-pink { background: var(--pink); box-shadow: 0 0 0 4px rgba(255, 92, 138, .18); }
.dot-blue { background: var(--blue); box-shadow: 0 0 0 4px rgba(91, 200, 245, .18); }
.dot-purple { background: var(--purple); box-shadow: 0 0 0 4px rgba(139, 92, 246, .18); }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ---------- 数据统计 ---------- */
.stats { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-card { padding: 34px 20px; text-align: center; position: relative; }
.stat-card + .stat-card::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 44px; background: var(--line);
}
.stat-card strong { font-size: 34px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat-card em { font-style: normal; font-size: 18px; }
.stat-card span { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

/* ---------- 通用板块 ---------- */
.section { padding: 92px 0; }
.sec-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.sec-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 3px;
  color: var(--pink-deep); margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; letter-spacing: .5px; }
.sec-head p { margin-top: 12px; color: var(--muted); font-size: 16px; }

/* ---------- 功能卡片 ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.f-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 20px;
}
.f-icon svg { width: 27px; height: 27px; }
.fi-pink { background: var(--pink-soft); color: var(--pink-deep); }
.fi-purple { background: var(--purple-soft); color: var(--purple); }
.fi-blue { background: var(--blue-soft); color: #2FA8E0; }
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 分栏板块 ---------- */
.split { background: #fff; border-top: 1px solid var(--line); }
.split-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.split-media { display: flex; justify-content: center; }
.phone-frame { width: min(272px, 60vw); }
.split-copy .sec-tag { margin-bottom: 14px; }
.split-copy h2 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 900; line-height: 1.25; }
.split-desc { margin: 18px 0 26px; color: var(--muted); font-size: 16.5px; max-width: 500px; }
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px; font-weight: 500; padding: 10px 0;
}
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 3px; color: var(--pink-deep); }
.split-copy .btn { margin-top: 18px; }
.split-rev { background: var(--bg); border-top: none; }

/* ---------- 界面预览 ---------- */
.preview-sec { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.preview-stage { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.phone-lg { width: min(330px, 78vw); }
.pv-tabs {
  display: inline-flex; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 6px; box-shadow: 0 8px 22px rgba(51, 36, 63, .06); gap: 4px;
}
.pv-tab {
  padding: 12px 26px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--muted);
  transition: all .25s ease;
}
.pv-tab:hover { color: var(--ink); }
.pv-tab.active { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 16px rgba(240, 62, 123, .3); }
.pv-cap { font-size: 15px; color: var(--muted); min-height: 26px; }

/* ---------- 热门圈子 ---------- */
.circles-sec { background: #fff; }
.circle-group { margin-bottom: 30px; display: flex; align-items: baseline; gap: 26px; justify-content: center; flex-wrap: wrap; }
.circle-label { font-size: 15px; font-weight: 800; color: var(--pink-deep); white-space: nowrap; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tag {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink);
  padding: 8px 22px; border-radius: 999px; font-size: 14.5px; font-weight: 500;
  transition: all .2s ease;
}
.tag:hover { background: var(--grad-btn); color: #fff; border-color: transparent; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(240, 62, 123, .28); }

/* ---------- 三步开启 ---------- */
.steps-sec { background: linear-gradient(180deg, var(--bg) 0%, #fff 100%); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; text-align: center; position: relative; overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.step-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad); color: #fff; font-size: 17px; font-weight: 800; margin-bottom: 18px;
  box-shadow: 0 10px 22px rgba(255, 92, 138, .3);
}
.step-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.step-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq-sec { background: #fff; }
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: 14px; overflow: hidden; transition: box-shadow .25s ease; }
.faq-item.open { box-shadow: var(--shadow-card); border-color: transparent; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; font-size: 16.5px; font-weight: 600; color: var(--ink); text-align: left;
}
.faq-icon { position: relative; width: 18px; height: 18px; flex: none; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--pink-deep); border-radius: 2px;
  transition: transform .3s ease;
}
.faq-icon::before { top: 8px; left: 0; width: 18px; height: 2.5px; }
.faq-icon::after { top: 0; left: 8px; width: 2.5px; height: 18px; }
.faq-item.open .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); font-size: 15px; }

/* ---------- 下载区 ---------- */
.download-sec { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); padding-bottom: 110px; }
.download-panel {
  position: relative; text-align: center;
  background: linear-gradient(150deg, #FFE9F1 0%, #F3ECFF 50%, #E4F6FE 100%);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 34px; padding: 70px 30px 64px;
  box-shadow: 0 24px 60px rgba(255, 92, 138, .14);
  overflow: hidden;
}
.download-panel::before {
  content: ""; position: absolute; top: -140px; right: -140px; width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(139, 92, 246, .16), transparent 70%);
  border-radius: 50%;
}
.download-panel::after {
  content: ""; position: absolute; bottom: -160px; left: -120px; width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(91, 200, 245, .18), transparent 70%);
  border-radius: 50%;
}
.download-icon {
  width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 26px;
  box-shadow: 0 16px 34px rgba(255, 92, 138, .3);
  position: relative; z-index: 1;
}
.download-panel h2 { font-size: clamp(28px, 3.8vw, 42px); font-weight: 900; line-height: 1.3; position: relative; z-index: 1; }
.download-panel > p { margin: 14px auto 30px; color: var(--muted); font-size: 16px; max-width: 460px; position: relative; z-index: 1; }
.download-panel .btn { position: relative; z-index: 1; }
.download-note { margin-top: 18px !important; margin-bottom: 0 !important; font-size: 13.5px !important; color: #A99BB5 !important; }

/* ---------- 页脚 ---------- */
.footer { background: #2A1F38; color: #CBBEDB; padding: 64px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer .brand-name { color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; color: #A596B8; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15.5px; font-weight: 700; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: #A596B8; padding: 10px 0; transition: color .2s; }
.footer-col a:hover { color: var(--pink); }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 13px; color: #8E7FA3; }
.footer-friend { color: #8E7FA3; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 24px);
  background: var(--ink); color: #fff; padding: 12px 26px; border-radius: 999px;
  font-size: 14.5px; opacity: 0; pointer-events: none; transition: all .3s ease; z-index: 200;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero { padding: 140px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-visual { order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 44px; }
  .split-rev .split-media { order: -1; }
  .steps-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .menu-btn { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    padding: 18px 5%; box-shadow: 0 18px 34px rgba(51, 36, 63, .1);
    border-top: 1px solid var(--line);
  }
  .nav-links.open a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(3)::before, .stat-card:nth-child(2)::before { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .float-chip { font-size: 12px; padding: 7px 13px; }
  .fc-1 { left: -2%; } .fc-2 { right: -2%; }
  .section { padding: 66px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
  .pv-tabs { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .hot-tags span { font-size: 14px; }
  .stat-card span { font-size: 14px; }
  .hero-note { font-size: 13.5px; }
  .float-chip { font-size: 13px; }
  .sec-tag { font-size: 13px; }
  .download-note { font-size: 14px !important; }
}

/* ---------- 动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
