/* ============================================================
   泡泡短视频官网 · 全站样式
   风格：现代 · 可爱大气 · 专业
   ============================================================ */

:root {
  --pink: #ff6b9d;
  --pink-soft: #ffd6e5;
  --violet: #8b5cf6;
  --violet-soft: #e6dcff;
  --cyan: #4cc9f0;
  --ink: #241b2f;
  --muted: #6f6a7d;
  --bg: #fff9fc;
  --card: #ffffff;
  --line: #f0e4ef;
  --grad: linear-gradient(135deg, #ff6b9d 0%, #a06bff 55%, #5ec8f8 100%);
  --radius-lg: 26px;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(160, 90, 180, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: min(1120px, 92%); margin: 0 auto; }

:focus-visible { outline: 3px solid rgba(139, 92, 246, .5); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--pink-soft); }

/* 无障碍跳转链接 */
.skip { position: absolute; left: 12px; top: -70px; background: #fff; padding: 10px 18px; border-radius: 12px; z-index: 100; transition: .2s; font-weight: 700; color: var(--violet); box-shadow: var(--shadow); }
.skip:focus { top: 12px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 249, 252, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 26px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .02em; }
.logo-mark {
  width: 38px; height: 38px; flex: none;
  border-radius: 50% 50% 50% 12px;
  background: var(--grad);
  display: grid; place-items: center;
  color: #fff; font-size: 17px;
  box-shadow: 0 6px 16px rgba(255, 107, 157, .4);
}
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--muted); transition: .2s; white-space: nowrap; }
.nav a:hover { color: var(--ink); background: #fff; }
.nav a.active { color: #fff; background: var(--grad); box-shadow: 0 6px 14px rgba(160, 107, 255, .35); }
.header-cta { margin-left: 4px; }
.nav-toggle { display: none; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 16px; border: none; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(160, 107, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(160, 107, 255, .45); }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid #eee2ec; }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet); transform: translateY(-2px); }
.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-white { background: #fff; color: var(--violet); box-shadow: 0 12px 26px rgba(36, 27, 47, .18); }
.btn-white:hover { transform: translateY(-2px); }
.link-more { display: inline-block; margin-top: 34px; font-weight: 800; color: var(--violet); transition: .2s; }
.link-more:hover { letter-spacing: .06em; }
.center { text-align: center; }

/* ---------- 首页 Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.hero-eyebrow {
  display: inline-flex; gap: 8px; align-items: center;
  background: #fff; border: 1px solid var(--line);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 600; color: var(--violet); font-size: 14px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.28; margin: 20px 0 16px; font-weight: 900; letter-spacing: .01em; }
.hero h1 .hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 14px; flex-wrap: wrap; }
.hero-note { font-size: 13.5px; color: var(--muted); }
.hero-visual { position: relative; }

/* 漂浮泡泡装饰 */
.bubble {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, .95), rgba(255, 107, 157, .22) 58%, rgba(139, 92, 246, .14));
  opacity: .75; pointer-events: none;
  animation: float 8s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(6deg); }
}
.b1 { width: 120px; height: 120px; top: 8%;  left: -34px; }
.b2 { width: 54px;  height: 54px;  top: 16%; left: 46%; animation-delay: 1.2s; }
.b3 { width: 82px;  height: 82px;  bottom: 5%; left: 6%; animation-delay: 2s; }
.b4 { width: 36px;  height: 36px;  top: 12%; right: 10%; animation-delay: .6s; }
.b5 { width: 72px;  height: 72px;  bottom: 8%; right: 4%; animation-delay: 1.6s; }
.b6 { width: 26px;  height: 26px;  top: 42%; right: 38%; animation-delay: 2.4s; }

/* ---------- 手机模型 ---------- */
.phone {
  position: relative; width: 270px; margin: 0 auto;
  background: var(--ink); border-radius: 42px; padding: 12px;
  box-shadow: 0 30px 60px rgba(36, 27, 47, .28);
  animation: float 7s ease-in-out infinite;
}
.phone-notch { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 110px; height: 22px; background: var(--ink); border-radius: 0 0 14px 14px; z-index: 2; }
.phone-screen {
  background: linear-gradient(160deg, #1d1430, #3a1e4e 55%, #12304a);
  border-radius: 32px; padding: 34px 14px 18px;
  position: relative; overflow: hidden;
}
.pv-card { background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); border-radius: 16px; overflow: hidden; margin-bottom: 12px; border: 1px solid rgba(255, 255, 255, .18); }
.pv-thumb { height: 108px; display: grid; place-items: center; font-size: 34px; }
.g1 { background: linear-gradient(135deg, #ff9ac2, #ff6b9d); }
.g2 { background: linear-gradient(135deg, #a18cff, #8b5cf6); }
.g3 { background: linear-gradient(135deg, #7ee0ff, #4cc9f0); }
.g4 { background: linear-gradient(135deg, #ffd79a, #ffab5e); }
.g5 { background: linear-gradient(135deg, #a7f3c9, #34d399); }
.g6 { background: linear-gradient(135deg, #c4b5fd, #f0abfc); }
.pv-meta { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; color: #fff; font-size: 12.5px; }
.pv-likes { color: var(--pink-soft); font-weight: 700; }

/* ---------- 区块 ---------- */
.section { padding: 80px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, #ffffff, #fdf3f8); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.kicker {
  display: inline-block; font-weight: 800; font-size: 13px;
  letter-spacing: .18em; color: var(--violet);
  background: var(--violet-soft); padding: 6px 16px; border-radius: 999px;
  text-transform: uppercase;
}
.section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 14px 0 10px; font-weight: 900; }
.section-sub { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- 网格与卡片 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card { background: var(--card); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); border: 1px solid var(--line); transition: .25s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(160, 90, 180, .2); }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card-icon { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; background: var(--pink-soft); margin-bottom: 16px; }
.icon-v { background: var(--violet-soft); }
.icon-c { background: #dcf3ff; }
.icon-g { background: #dff5e8; }
.icon-o { background: #ffedd6; }

/* ---------- 数据带 ---------- */
.stats-band {
  background: var(--grad); border-radius: var(--radius-lg);
  padding: 38px 26px; display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 18px; color: #fff; box-shadow: 0 20px 44px rgba(160, 107, 255, .35);
}
.stat { text-align: center; }
.stat-num { font-size: clamp(26px, 3vw, 38px); font-weight: 900; letter-spacing: .01em; }
.stat-label { font-size: 14px; opacity: .92; }

/* ---------- 内容分类卡 ---------- */
.cat-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s; display: block; }
a.cat-card:hover, .cat-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(160, 90, 180, .2); }
.cat-thumb { height: 118px; display: grid; place-items: center; font-size: 40px; }
.cat-body { padding: 16px 18px; }
.cat-body h3 { margin: 0 0 4px; font-size: 17px; }
.cat-body p { margin: 0; color: var(--muted); font-size: 13.5px; }

/* ---------- 用户评价 ---------- */
.quote-card { background: #fff; border-radius: var(--radius-lg); padding: 26px; border: 1px solid var(--line); box-shadow: var(--shadow); transition: .25s; }
.quote-card:hover { transform: translateY(-6px); }
.stars { color: #ffb400; letter-spacing: 3px; margin-bottom: 10px; }
.quote-card p { margin: 0 0 16px; color: #4a4457; font-size: 15px; }
.quote-user { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.quote-user strong { display: block; }
.quote-user span { color: var(--muted); font-size: 12.5px; }
.quote-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--pink-soft); flex: none; }

/* ---------- 安全承诺 ---------- */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-2col { grid-template-columns: repeat(2, 1fr); }
.trust-item { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); transition: .25s; }
.trust-item:hover { transform: translateY(-4px); }
.trust-item .emoji { font-size: 26px; flex: none; }
.trust-item h3 { margin: 0 0 6px; font-size: 16.5px; }
.trust-item p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- CTA 横幅 ---------- */
.band { background: var(--grad); border-radius: 30px; padding: 56px 34px; text-align: center; color: #fff; position: relative; overflow: hidden; box-shadow: 0 24px 54px rgba(160, 107, 255, .4); }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 0 0 12px; font-weight: 900; }
.band p { opacity: .94; margin: 0 0 26px; }
.band .btn { background: #fff; color: var(--violet); }
.band .band-note { font-size: 13px; opacity: .85; margin: 16px 0 0; }

/* ---------- 子页 Hero ---------- */
.page-hero { position: relative; overflow: hidden; padding: 68px 0 52px; text-align: center; }
.breadcrumb { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--violet); font-weight: 600; }
.page-hero h1 { font-size: clamp(30px, 4.4vw, 46px); margin: 10px 0 12px; font-weight: 900; }
.page-hero p { color: var(--muted); max-width: 580px; margin: 0 auto; font-size: 16.5px; }

/* ---------- 步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 26px; box-shadow: var(--shadow); transition: .25s; }
.step:hover { transform: translateY(-6px); }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 900; display: grid; place-items: center; font-size: 19px; margin-bottom: 14px; box-shadow: 0 8px 18px rgba(160, 107, 255, .35); }
.step h3 { margin: 0 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td { padding: 14px 18px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--line); }
th { background: #fdf3f8; font-weight: 800; }
tr:last-child td { border-bottom: none; }

/* ---------- 更新日志 ---------- */
.log { display: grid; gap: 16px; max-width: 820px; margin: 0 auto; }
.log-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); }
.log-head { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.log-version { background: var(--grad); color: #fff; font-weight: 800; font-size: 13px; padding: 4px 14px; border-radius: 999px; }
.log-date { color: var(--muted); font-size: 13px; }
.log-list { margin: 0; padding-left: 20px; color: #4a4457; font-size: 14.5px; }

/* ---------- 下载区 ---------- */
.dl-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 30px 0 8px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 14px;
  background: var(--ink); color: #fff; padding: 14px 28px;
  border-radius: 16px; font-weight: 700; transition: .2s; border: none;
  font-size: 15px; cursor: pointer; font-family: inherit;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(36, 27, 47, .3); }
.store-btn .ico { font-size: 26px; }
.store-btn small { display: block; font-weight: 500; font-size: 11px; opacity: .75; letter-spacing: .06em; }

.qr-wrap { text-align: center; }
.qr { width: 172px; height: 172px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.qr-inner { width: 100%; height: 100%; border-radius: 8px; background-image: repeating-conic-gradient(#2b2338 0% 25%, #fff 0% 50%); background-size: 16px 16px; border: 7px solid #2b2338; }
.qr-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--violet); font-weight: 800; transition: .2s; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-a { color: var(--muted); font-size: 15px; padding: 0 0 16px; margin: 0; }

/* ---------- 联系我们 ---------- */
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 28px; box-shadow: var(--shadow); }
.contact-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .emoji { font-size: 22px; flex: none; }
.contact-row h4 { margin: 0 0 2px; font-size: 15px; }
.contact-row p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--ink); color: #cfc6da; padding: 60px 0 26px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 34px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.footer-brand .logo { color: #fff; }
.footer-brand p { font-size: 14px; color: #a99ab8; margin: 14px 0 0; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.footer-col a { display: block; color: #b9adc9; font-size: 14px; padding: 5px 0; transition: .2s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: 13px; color: #8f83a0; flex-wrap: wrap; }

/* ---------- Toast / 回到顶部 ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink); color: #fff; padding: 13px 24px;
  border-radius: 999px; font-size: 14.5px; opacity: 0;
  pointer-events: none; transition: .3s; z-index: 99;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
  max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 46px; height: 46px;
  border-radius: 50%; background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow); font-size: 19px; display: grid; place-items: center;
  cursor: pointer; opacity: 0; visibility: hidden; transition: .25s; z-index: 60; color: var(--violet);
}
.to-top.show { opacity: 1; visibility: visible; }
.to-top:hover { transform: translateY(-3px); }

/* ---------- 滚动进场动画 ---------- */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 920px) {
  .hero { padding: 64px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero-sub { margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .grid-3, .grid-4, .steps, .trust { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-band { grid-template-columns: repeat(2, 1fr); padding: 30px 20px; }
  .b2, .b6 { display: none; }

  .nav {
    position: fixed; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 16px; gap: 4px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .25s;
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 12px 16px; }
  .nav a.active { box-shadow: none; }

  .nav-toggle {
    display: inline-flex; flex-direction: column; gap: 5px;
    margin-left: auto; background: none; border: none; cursor: pointer; padding: 8px;
  }
  .nav-toggle span { width: 22px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .header-cta { display: none; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .steps, .trust, .trust-2col { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .phone { width: 232px; }
  .phone-screen { min-height: 440px; }
  .pv-thumb { height: 92px; font-size: 28px; }
  .band { padding: 44px 22px; border-radius: 24px; }
  .to-top { right: 14px; bottom: 18px; }
}
