/* ============ 同频恋爱官网 ============ */
/* 视觉延续 App 空灵渐变主题：雾紫 → 瓷白 → 冰蓝，珊瑚粉 CTA */
/* 参考：潮汐官网的呼吸感 × Apple 产品页分段叙事 */

:root {
  --pink: #E85D75;
  --pink-soft: rgba(232, 93, 117, .08);
  --purple: #8B7CF6;
  --ink: #1F2430;
  --ink-2: #5B6172;
  --ink-3: #9AA0B0;
  --bg-1: #F2EFFA;
  --bg-2: #FAF6F4;
  --bg-3: #F0F6FB;
  --glass: rgba(255, 255, 255, .72);
  --glass-border: rgba(255, 255, 255, .9);
  --radius: 24px;
  --shadow: 0 20px 60px -20px rgba(139, 124, 246, .25);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-2);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(250, 246, 244, .72);
  border-bottom: 1px solid rgba(31, 36, 48, .06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.nav-links { display: flex; align-items: center; gap: 32px; font-size: 14px; color: var(--ink-2); }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--pink); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--ink); color: #fff !important;
  padding: 9px 18px; border-radius: 100px; font-size: 13px; font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(31,36,48,.4); }
@media (max-width: 720px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 48%, var(--bg-3) 100%);
  overflow: hidden;
}
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.aurora-1 { width: 520px; height: 520px; top: -160px; right: -80px; background: radial-gradient(circle, rgba(232,93,117,.35), transparent 65%); animation: drift 14s ease-in-out infinite alternate; }
.aurora-2 { width: 460px; height: 460px; bottom: -140px; left: -100px; background: radial-gradient(circle, rgba(139,124,246,.32), transparent 65%); animation: drift 18s ease-in-out infinite alternate-reverse; }
.aurora-3 { width: 380px; height: 380px; top: 30%; left: 42%; background: radial-gradient(circle, rgba(96,165,250,.22), transparent 65%); animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(40px, -30px) scale(1.08); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  padding: 7px 14px; border-radius: 100px; font-size: 12.5px; color: var(--ink-2);
  box-shadow: 0 4px 16px -6px rgba(139,124,246,.2); margin-bottom: 26px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); box-shadow: 0 0 0 4px var(--pink-soft); }
.hero h1 {
  font-size: clamp(44px, 6.4vw, 76px); line-height: 1.08; letter-spacing: -.02em; font-weight: 800;
  background: linear-gradient(120deg, var(--ink) 30%, var(--purple) 75%, var(--pink));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .slogan { font-size: clamp(20px, 2.6vw, 30px); font-weight: 700; margin-top: 18px; letter-spacing: .01em; }
.hero .sub { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin-top: 16px; max-width: 480px; }
.hero-download { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 13px 24px; border-radius: 16px; font-weight: 600; cursor: pointer; border: none;
  transition: transform .2s, box-shadow .2s; font-family: var(--font);
}
.store-btn:active { transform: scale(.97); }
.store-btn .small { display: block; font-size: 11px; font-weight: 400; opacity: .75; }
.store-btn .big { display: block; font-size: 16px; text-align: left; line-height: 1.25; }
.store-btn.ios { background: var(--ink); color: #fff; box-shadow: 0 14px 34px -12px rgba(31,36,48,.45); }
.store-btn.ios:hover { transform: translateY(-2px); }
.store-btn.and { background: var(--glass); color: var(--ink); border: 1px solid rgba(31,36,48,.1); cursor: default; }
.store-btn svg { flex: none; }
.hero-meta { display: flex; gap: 22px; margin-top: 30px; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ---------- 手机 Mockup ---------- */
.phone-stage { display: flex; justify-content: center; perspective: 1200px; }
.phone {
  width: 300px; aspect-ratio: 300/620;
  background: #0d0d17; border-radius: 46px; padding: 12px;
  box-shadow: 0 50px 100px -30px rgba(31,36,48,.5), inset 0 0 0 2px rgba(255,255,255,.14);
  position: relative; transform: rotateY(-8deg) rotateX(2deg);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.phone:hover { transform: rotateY(-2deg) rotateX(0deg) scale(1.02); }
.phone::before { /* 灵动岛 */
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 88px; height: 24px; background: #0d0d17; border-radius: 20px; z-index: 3;
}
.screen {
  width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative;
  background: linear-gradient(170deg, #F2EFFA 0%, #FAF6F4 50%, #F0F6FB 100%);
  display: flex; flex-direction: column;
}
.statusbar { display: flex; justify-content: space-between; padding: 14px 26px 4px; font-size: 11px; font-weight: 600; color: var(--ink); flex: none; }
.screen-body { flex: 1; padding: 10px 14px; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.screen-title { font-size: 15px; font-weight: 800; padding: 2px 4px; }
.screen-sub { font-size: 10px; color: var(--ink-3); padding: 0 4px; margin-top: -6px; }

.glass-card { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.95); border-radius: 16px; box-shadow: 0 8px 20px -10px rgba(139,124,246,.22); }
.survey-card { padding: 12px; display: flex; gap: 10px; align-items: center; }
.survey-ic { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--pink), var(--purple)); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; flex: none; }
.survey-txt .t1 { font-size: 12px; font-weight: 700; }
.survey-txt .t2 { font-size: 10px; color: var(--ink-3); margin-top: 2px; }
.survey-bar { height: 5px; border-radius: 4px; background: rgba(139,124,246,.14); margin-top: 6px; overflow: hidden; width: 130px; }
.survey-bar i { display: block; height: 100%; width: 68%; border-radius: 4px; background: linear-gradient(90deg, var(--pink), var(--purple)); }

.person-row { display: flex; gap: 8px; }
.person { flex: 1; padding: 9px 6px; text-align: center; }
.avatar { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 5px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; font-weight: 700; }
.person .nm { font-size: 10.5px; font-weight: 600; }
.person .mbti { font-size: 8.5px; color: var(--pink); font-weight: 600; margin-top: 1px; }

.feed-card { padding: 10px 12px; }
.feed-head { display: flex; align-items: center; gap: 7px; }
.feed-head .avatar { width: 24px; height: 24px; font-size: 10px; margin: 0; }
.feed-head .nm { font-size: 11px; font-weight: 700; }
.feed-head .tm { font-size: 9px; color: var(--ink-3); margin-left: auto; }
.feed-text { font-size: 10.5px; line-height: 1.6; color: var(--ink-2); margin-top: 6px; }
.feed-acts { display: flex; gap: 14px; margin-top: 7px; font-size: 9.5px; color: var(--ink-3); }

.tabbar { flex: none; display: flex; padding: 8px 10px 16px; background: rgba(255,255,255,.86); border-top: 1px solid rgba(31,36,48,.05); }
.tabbar .tab { flex: 1; text-align: center; font-size: 9px; color: var(--ink-3); }
.tabbar .tab b { display: block; font-size: 16px; margin-bottom: 2px; font-weight: 400; }
.tabbar .tab.on { color: var(--pink); font-weight: 700; }

/* 匹配卡片堆 */
.card-stack { position: relative; width: 260px; height: 380px; margin: 0 auto; }
.stack-card { position: absolute; inset: 0; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(31,36,48,.35); }
.stack-card.c2 { transform: scale(.94) translateY(-14px); filter: brightness(.94); }
.stack-card.c3 { transform: scale(.88) translateY(-26px); filter: brightness(.88); }
.stack-photo { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; color: #fff; position: relative; }
.stack-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(13,13,23,.78)); }
.stack-photo > * { position: relative; }
.stack-name { font-size: 22px; font-weight: 800; }
.stack-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.stack-tags i { font-style: normal; font-size: 10px; background: rgba(255,255,255,.22); backdrop-filter: blur(6px); padding: 4px 9px; border-radius: 100px; }
.match-score { position: absolute; top: 16px; left: 16px; background: linear-gradient(120deg, var(--pink), var(--purple)); font-size: 11px; font-weight: 700; padding: 5px 11px; border-radius: 100px; }

/* 聊天气泡 */
.chat-screen { background: #EDEFF5; }
.chat-hd { flex: none; text-align: center; padding: 8px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.9); }
.chat-msgs { flex: 1; padding: 12px 12px; display: flex; flex-direction: column; gap: 9px; min-height: 0; }
.bubble { max-width: 72%; padding: 8px 12px; border-radius: 16px; font-size: 11px; line-height: 1.55; box-shadow: 0 2px 8px -4px rgba(31,36,48,.12); }
.bubble.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: linear-gradient(120deg, var(--pink), #F0708C); color: #fff; border-bottom-right-radius: 4px; }
.chat-input { flex: none; display: flex; gap: 8px; padding: 8px 12px 18px; background: rgba(255,255,255,.92); }
.chat-input .field { flex: 1; height: 32px; border-radius: 100px; background: #F1F2F7; font-size: 10.5px; color: var(--ink-3); display: flex; align-items: center; padding: 0 14px; }
.chat-input .send { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section:nth-of-type(even) { background: linear-gradient(180deg, var(--bg-2), var(--bg-3)); }
.kicker { font-size: 13px; font-weight: 700; color: var(--pink); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.lead { font-size: 16px; line-height: 1.9; color: var(--ink-2); margin-top: 16px; max-width: 460px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > .split-media { order: 2; }

.mbti-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.mbti-cloud i { font-style: normal; font-size: 12.5px; font-weight: 600; padding: 8px 15px; border-radius: 100px; background: #fff; border: 1px solid rgba(139,124,246,.18); color: var(--ink-2); box-shadow: 0 4px 12px -6px rgba(139,124,246,.18); transition: all .2s; cursor: default; }
.mbti-cloud i:hover { transform: translateY(-2px); border-color: var(--pink); color: var(--pink); }

.check-list { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; }
.check-item .ck { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.check-item .tt { font-weight: 700; font-size: 15px; }
.check-item .dd { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; line-height: 1.7; }

/* 广场+活动双卡 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 54px; }
.duo-card { background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); transition: transform .3s; }
.duo-card:hover { transform: translateY(-4px); }
.duo-card h3 { font-size: 20px; font-weight: 800; margin-top: 16px; }
.duo-card p { font-size: 14px; color: var(--ink-2); line-height: 1.8; margin-top: 8px; }
.ic-box { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.ic-box.pink { background: var(--pink-soft); color: var(--pink); }
.ic-box.purple { background: rgba(139,124,246,.1); color: var(--purple); }

/* 安全四宫格 */
.safety-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.safety-item { background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); transition: transform .3s; }
.safety-item:hover { transform: translateY(-4px); }
.safety-item h3 { font-size: 16.5px; font-weight: 800; margin-top: 16px; }
.safety-item p { font-size: 13.5px; color: var(--ink-2); line-height: 1.75; margin-top: 8px; }
@media (max-width: 960px) { .safety-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .safety-grid { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: center; background: linear-gradient(150deg, #2A2440 0%, #3D3358 55%, #553A5E 100%); color: #fff; overflow: hidden; position: relative; }
.cta .aurora-1 { background: radial-gradient(circle, rgba(232,93,117,.4), transparent 65%); opacity: .5; }
.cta .aurora-2 { background: radial-gradient(circle, rgba(139,124,246,.4), transparent 65%); opacity: .5; }
.cta h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; letter-spacing: -.015em; position: relative; }
.cta p { color: rgba(255,255,255,.72); margin-top: 14px; font-size: 16px; position: relative; }
.cta .hero-download { justify-content: center; position: relative; }
.cta .store-btn.and { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }

/* ---------- Footer ---------- */
.footer { background: #17141F; color: rgba(255,255,255,.6); font-size: 13px; padding: 44px 0; }
.footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer a { color: rgba(255,255,255,.75); }
.footer a:hover { color: #fff; }
.footer .flinks { display: flex; gap: 22px; }
.footer .brand { color: #fff; }
.footer .beian { margin-top: 6px; font-size: 12px; color: rgba(255,255,255,.38); }
@media (max-width: 720px) { .footer .wrap { flex-direction: column; text-align: center; } }

/* ---------- 滚动淡入 ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .aurora { animation: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .hero-download, .hero-meta { justify-content: center; }
  .phone-stage { margin-top: 20px; }
  .phone { transform: none; }
  .split { grid-template-columns: 1fr; gap: 44px; }
  .split.rev > .split-media { order: 0; }
  .split .lead { margin-left: auto; margin-right: auto; }
  .split-media { text-align: center; }
  .check-list { max-width: 480px; margin-left: auto; margin-right: auto; }
  .duo { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
}

/* ---------- 法律页 ---------- */
body.legal { background: var(--bg-2); }
.legal-nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 28px; background: rgba(250,246,244,.85);
  backdrop-filter: blur(14px); border-bottom: 1px solid rgba(31,36,48,.06);
}
.legal-doc { max-width: 760px; margin: 0 auto; padding: 64px 28px 90px; }
.legal-doc h1 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.legal-doc .doc-meta { color: var(--ink-3); font-size: 13px; margin-top: 10px; padding-bottom: 26px; border-bottom: 1px solid rgba(31,36,48,.08); }
.legal-doc h2 { font-size: 20px; font-weight: 800; margin: 42px 0 14px; padding-left: 14px; border-left: 4px solid var(--pink); }
.legal-doc p, .legal-doc li { font-size: 14.5px; line-height: 1.95; color: var(--ink-2); margin-top: 10px; }
.legal-doc .clause strong { color: var(--ink); margin-right: 4px; }
.legal-doc ul { padding-left: 4px; list-style: none; margin-top: 8px; }
.legal-doc li { padding-left: 18px; position: relative; }
.legal-doc li::before { content: ""; position: absolute; left: 2px; top: 12px; width: 6px; height: 6px; border-radius: 50%; background: var(--purple); opacity: .6; }
.legal-footer { background: #17141F; color: rgba(255,255,255,.55); font-size: 13px; padding: 30px 0; text-align: center; }
.legal-footer a { color: rgba(255,255,255,.75); }
.legal-footer .dim { color: rgba(255,255,255,.35); font-size: 12px; margin-top: 6px; }

/* ===== 关于页 ===== */
.about-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(31,36,48,.06); }
.about-nav .inner { max-width: 1120px; margin: 0 auto; padding: 0 28px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.about-nav .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; color: var(--ink); }
.about-nav .brand svg { width: 30px; height: 30px; border-radius: 8px; display: block; }
.about-nav .links { display: flex; gap: 24px; font-size: 14px; }
.about-nav .links a { color: var(--ink-2); transition: color .2s; }
.about-nav .links a:hover, .about-nav .links a.on { color: var(--pink); }
.about-hero { padding: 90px 28px 62px; text-align: center; background: linear-gradient(160deg, #F2EFFA 0%, #FAF6F4 60%, #F0F6FB 100%); border-bottom: 1px solid rgba(31,36,48,.05); }
.about-hero h1 { font-size: clamp(30px, 4.4vw, 44px); font-weight: 800; letter-spacing: -.02em; }
.about-hero .sub { margin-top: 14px; color: var(--ink-2); font-size: 16px; }
.about-body { max-width: 800px; margin: 0 auto; padding: 54px 28px 84px; }
.about-body h2 { font-size: 21px; font-weight: 800; margin: 46px 0 14px; padding-left: 14px; border-left: 4px solid var(--pink); }
.about-body h2:first-child { margin-top: 0; }
.about-body p { font-size: 15px; line-height: 2.05; color: var(--ink-2); margin-top: 12px; }
.about-body strong { color: var(--ink); }

/* 协议/隐私页：返回首页链接 */
.legal-doc .back-home { display: inline-block; margin-top: 30px; font-size: 14px; font-weight: 600; color: var(--pink); }
.legal-doc .back-home:hover { text-decoration: underline; }
