/* ===== 偶恋官网 styles ===== */
:root {
  --grad: linear-gradient(135deg, #C28AFC 0%, #8881F7 100%);
  --grad-rev: linear-gradient(315deg, #C28AFC 0%, #8881F7 100%);
  --purple: #8881F7;
  --purple-lt: #C28AFC;
  --pink: #FF6B9D;
  --ink: #1a1a1a;
  --t1: #333;
  --t2: #666;
  --t3: #999;
  --bg: #ffffff;
  --bg-soft: #f8f8fb;
  --line: #eceaf6;
  --radius: 18px;
  --shadow: 0 10px 40px rgba(136, 129, 247, 0.12);
  --maxw: 1160px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Source Han Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--t1);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--grad); color: #fff; border: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(136, 129, 247, 0.35);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(136, 129, 247, 0.45); }
.btn-sm { padding: 9px 20px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--purple); box-shadow: none; border: 1.5px solid var(--purple-lt); }
.btn-ghost:hover { background: rgba(136,129,247,.06); box-shadow: none; }

/* 导航 */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { border-radius: 10px; }
.brand-name { font-size: 20px; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--t1); font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--purple); }
.nav-links a.btn { color: #fff; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(194,138,252,.28), transparent 60%),
    radial-gradient(800px 500px at 0% 110%, rgba(136,129,247,.18), transparent 55%),
    var(--bg-soft);
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding: 80px 24px 90px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  color: var(--purple); background: rgba(136,129,247,.1); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: 52px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.hero-sub { margin: 22px 0 32px; font-size: 17px; color: var(--t2); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; align-items: center; gap: 28px; margin-top: 46px; list-style: none; }
.hero-stats li { display: flex; flex-direction: column; align-items: flex-start; }
.hero-stats .stat-value { display: flex; align-items: baseline; gap: 4px; }
.hero-stats .stat-divider { width: 1px; align-self: stretch; min-height: 44px; background: linear-gradient(180deg, transparent, rgba(136,129,247,.35), transparent); }
.hero-stats strong { font-size: 38px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.hero-stats em { font-style: normal; font-size: 16px; font-weight: 700; color: var(--purple); }
.hero-stats span { font-size: 13px; color: var(--t3); margin-top: 6px; }

/* 手机占位框 */
.hero-visual { display: flex; justify-content: center; }
.phone {
  position: relative; width: 280px; height: 580px; border-radius: 42px;
  background: #fff; padding: 14px; box-shadow: 0 30px 70px rgba(136,129,247,.30);
  border: 1px solid var(--line);
}
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 120px; height: 26px; background: #1a1a1a; border-radius: 0 0 16px 16px; }
.phone-screen {
  height: 100%; border-radius: 30px; overflow: hidden;
  background: linear-gradient(180deg, #f3f0ff 0%, #ffffff 40%);
  padding: 46px 18px 18px; display: flex; flex-direction: column; gap: 16px;
}
.ps-top { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--purple); }
.ps-top img { border-radius: 8px; }
.ps-card { background: #fff; border-radius: 18px; padding: 18px; box-shadow: var(--shadow); flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ps-avatar { width: 100%; height: 180px; border-radius: 14px; background: var(--grad-rev); }
.ps-line { height: 12px; border-radius: 6px; background: #ece9fb; }
.ps-line.w70 { width: 70%; } .ps-line.w40 { width: 40%; }
.ps-tags { display: flex; gap: 8px; margin-top: 4px; }
.ps-tags i { width: 46px; height: 22px; border-radius: 999px; background: rgba(136,129,247,.14); }
.ps-match { margin-top: auto; align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--purple); background: rgba(136,129,247,.12); padding: 6px 12px; border-radius: 999px; }
.ps-btn { text-align: center; padding: 14px; border-radius: 16px; background: var(--grad); color: #fff; font-weight: 700; }

/* 通用 section */
.section { padding: 86px 0; }
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head h2 { font-size: 36px; font-weight: 800; letter-spacing: -0.01em; }
.section-head p { margin-top: 14px; color: var(--t2); font-size: 17px; }

/* 特点 */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-icon {
  width: 58px; height: 58px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  color: var(--purple);
  background: linear-gradient(135deg, rgba(194,138,252,.14) 0%, rgba(136,129,247,.14) 100%);
  margin-bottom: 18px; transition: background .3s ease, color .3s ease, transform .3s ease;
}
.feature-icon svg { width: 28px; height: 28px; }
.feature-card:hover .feature-icon { background: var(--grad); color: #fff; transform: translateY(-2px) rotate(-3deg); }
.feature-card h3 { font-size: 19px; margin-bottom: 10px; }
.feature-card p { color: var(--t2); font-size: 15px; }

/* 嘉宾 */
.guest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.guest-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease;
}
.guest-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.guest-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--bg-soft); }
.guest-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.guest-card:hover .guest-photo img { transform: scale(1.05); }
.guest-match {
  position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(0,0,0,.35); backdrop-filter: blur(6px); padding: 5px 10px; border-radius: 999px;
}
.guest-cert {
  position: absolute; bottom: 12px; left: 12px; font-size: 11px; font-weight: 600; color: #fff;
  background: var(--grad); padding: 4px 10px; border-radius: 999px;
}
.guest-body { padding: 16px 16px 18px; }
.guest-name { font-size: 17px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.guest-name span { font-size: 13px; font-weight: 500; color: var(--t3); }
.guest-bio { margin-top: 8px; font-size: 13px; color: var(--t2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 38px; }
.guest-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.guest-tags i { font-style: normal; font-size: 12px; color: var(--purple); background: rgba(136,129,247,.1); padding: 4px 10px; border-radius: 999px; }

/* 下载 */
.download { background: var(--bg-soft); }
.download-inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  background: var(--grad); border-radius: 28px; padding: 56px; color: #fff;
  box-shadow: 0 24px 60px rgba(136,129,247,.35);
}
.download-copy h2 { font-size: 32px; font-weight: 800; color: #fff; }
.download-copy p { margin: 16px 0 22px; font-size: 17px; color: rgba(255,255,255,.9); }
.download-points { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.download-points li { position: relative; padding-left: 26px; font-size: 15px; color: rgba(255,255,255,.95); }
.download-points li::before { content: "✓"; position: absolute; left: 0; font-weight: 800; }
.qr-wrap { background: #fff; border-radius: 20px; padding: 22px; text-align: center; }
.qr-wrap img { width: 100%; max-width: 220px; margin: 0 auto; border-radius: 12px; }
.qr-tip { margin-top: 12px; font-size: 14px; color: var(--t2); }

/* 页脚 */
.site-footer { background: #14121f; color: #cfcbe6; padding: 56px 0 28px; }
.footer-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 32px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand-top { display: flex; align-items: center; gap: 12px; }
.footer-brand-top img { border-radius: 10px; }
.footer-brand-top strong { color: #fff; font-size: 22px; }
.footer-slogan { font-size: 14px; color: #8d88a8; letter-spacing: .04em; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.footer-col p { font-size: 13px; line-height: 2; color: #8d88a8; }
.footer-col a { color: #8d88a8; transition: color .2s; }
.footer-col a:hover { color: var(--purple-lt); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px;
}
.footer-bottom p { font-size: 13px; color: #75718f; }
.footer-bottom a { color: #75718f; transition: color .2s; }
.footer-bottom a:hover { color: var(--purple-lt); }

/* 进场动画（仅在 JS 可用时隐藏，保证无 JS 时内容可见，利于 SEO） */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.js .reveal.in { opacity: 1; transform: none; }
/* 同组元素依次进场（由 JS 设置 --i） */
.js .reveal { transition-delay: calc(var(--i, 0) * 80ms); }

/* ===== 动效 ===== */
/* Hero 背景渐变缓慢流动 */
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 420px at 20% 30%, rgba(194,138,252,.20), transparent 60%),
    radial-gradient(480px 480px at 80% 70%, rgba(136,129,247,.18), transparent 60%);
  animation: heroFloat 14s ease-in-out infinite alternate;
}
.hero-inner { position: relative; z-index: 1; }
@keyframes heroFloat {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(0,-24px,0) scale(1.06); }
}

/* Hero 文案载入逐项上浮 */
.js .hero-copy > * { opacity: 0; transform: translateY(22px); animation: fadeUp .8s cubic-bezier(.22,.61,.36,1) forwards; }
.js .hero-copy > *:nth-child(1) { animation-delay: .05s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .15s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .25s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .35s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .45s; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* 手机进场 + 悬浮 */
.js .phone { opacity: 0; animation: phoneIn 1s cubic-bezier(.22,.61,.36,1) .4s forwards; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } to { opacity: 1; transform: none; } }
.hero-visual .phone { will-change: transform; }
.js .hero-visual { animation: phoneBob 5s ease-in-out 1.4s infinite alternate; }
@keyframes phoneBob { from { transform: translateY(0); } to { transform: translateY(-14px); } }

/* 手机内匹配徽标轻微脉动 */
.ps-match { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }

/* 按钮光泽掠过 */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
}
.btn:hover::after { animation: shine .8s ease; }
@keyframes shine { to { left: 130%; } }

/* 嘉宾认证标签呼吸光 */
.guest-cert { box-shadow: 0 0 0 0 rgba(136,129,247,.5); animation: certGlow 2.8s ease-in-out infinite; }
@keyframes certGlow { 0%,100% { box-shadow: 0 0 0 0 rgba(136,129,247,.0); } 50% { box-shadow: 0 0 14px 1px rgba(136,129,247,.45); } }

/* 尊重无障碍：减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .hero-copy > *, .js .phone { opacity: 1 !important; transform: none !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 44px; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.btn { margin-top: 14px; border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero-inner { grid-template-columns: 1fr; padding: 56px 24px 64px; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: 38px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; gap: 32px; }

  .guest-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 60px 0; }
  .section-head h2 { font-size: 28px; }
  .download-inner { grid-template-columns: 1fr; padding: 36px 24px; text-align: center; }
  .download-points { align-items: center; }
  .download-points li { text-align: left; }
  .footer-main { flex-direction: column; align-items: center; gap: 28px; text-align: center; padding-bottom: 28px; }
  .footer-brand { align-items: center; }
  .footer-cols { flex-direction: column; gap: 24px; align-items: center; width: 100%; }
  .footer-col h4 { margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
}
@media (max-width: 420px) {
  .hero h1 { font-size: 32px; }
  .hero-stats { gap: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
}
