/* ============================================================
   ainlove 官网样式
   主题：浪漫粉 · 柔和圆角 · 轻拟物证书
   ============================================================ */

:root {
  --pink: #ff5c8a;
  --pink-deep: #e8446f;
  --pink-soft: #ffd9e4;
  --pink-bg: #fff7f9;
  --rose-grad: linear-gradient(135deg, #ff7eb3 0%, #ff5c8a 100%);
  --ink: #2d2a32;
  --ink-2: #6b6570;
  --card: #ffffff;
  --line: #ffe3ec;
  --shadow: 0 10px 30px rgba(232, 68, 111, 0.10);
  --shadow-lg: 0 24px 60px rgba(232, 68, 111, 0.16);
  --radius: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--pink-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  cursor: pointer;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary {
  background: var(--rose-grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 92, 138, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 92, 138, .45); }
.btn-ghost {
  background: #fff;
  color: var(--pink-deep);
  border: 1.5px solid var(--pink-soft);
}
.btn-ghost:hover { border-color: var(--pink); transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 16px; }

/* ---------- 导航栏 ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 247, 249, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .25s ease;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(232, 68, 111, .10); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-heart {
  width: 30px; height: 30px;
  fill: var(--pink);
  filter: drop-shadow(0 3px 6px rgba(255, 92, 138, .4));
}
.brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .5px;
  color: var(--pink-deep);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand-sub {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 2px;
}
.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--pink-deep); }
.btn-nav { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  width: 22px; height: 2.5px;
  background: var(--pink-deep);
  border-radius: 2px;
  transition: transform .25s, opacity .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); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 96px;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .5;
  pointer-events: none;
}
.hero-blob-1 {
  width: 480px; height: 480px;
  background: #ffd0de;
  top: -140px; right: -120px;
}
.hero-blob-2 {
  width: 380px; height: 380px;
  background: #ffe8f0;
  bottom: -160px; left: -100px;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--pink-deep);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--pink);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 138, .5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 92, 138, 0); }
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero h1 em {
  font-style: normal;
  background: var(--rose-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-desc {
  margin: 20px 0 32px;
  font-size: 17px;
  color: var(--ink-2);
  max-width: 520px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 22px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--pink);
}

/* 手机样机 */
.hero-phone {
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  position: relative;
  width: 290px;
  border-radius: 44px;
  background: #1f1c22;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 24px;
  background: #1f1c22;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  border-radius: 34px;
  background: linear-gradient(180deg, #fff5f7 0%, #ffe9f0 100%);
  padding: 44px 16px 22px;
  min-height: 520px;
}
.phone-glow {
  position: absolute;
  inset: auto 0 -30px 0;
  margin: 0 auto;
  width: 70%;
  height: 60px;
  background: rgba(255, 92, 138, .35);
  filter: blur(40px);
  border-radius: 50%;
}

/* 样机内：迷你证书 */
.mini-cert {
  background: #fff;
  border-radius: 18px;
  border: 1.5px dashed var(--pink-soft);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(232, 68, 111, .08);
}
.mini-cert-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 16px;
  color: var(--pink-deep);
  letter-spacing: 4px;
}
.mini-heart { width: 18px; height: 18px; fill: var(--pink); }
.mini-cert-no {
  font-size: 10px;
  color: #b9aeb4;
  letter-spacing: 1px;
  margin: 6px 0 14px;
}
.mini-cert-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.mini-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffb8cd, #ff8fae);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 4px 10px rgba(255, 92, 138, .3);
}
.mini-avatar-b { background: linear-gradient(135deg, #ffc9a3, #ff9e6d); }
.mini-heart-sm {
  width: 16px; height: 16px;
  fill: var(--pink);
  animation: beat 1.4s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.25); }
  40% { transform: scale(1); }
}
.mini-cert-line { margin-top: 12px; font-size: 12px; color: var(--ink-2); }
.mini-cert-date {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-deep);
  letter-spacing: 2px;
}

/* 样机内：小组件 */
.mini-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.mini-widget {
  background: #fff;
  border-radius: 14px;
  padding: 12px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(232, 68, 111, .07);
}
.mini-widget-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.mini-widget-icon.spark { background: #fff1e6; }
.mini-widget-icon.days { background: #ffeaf1; }
.mini-widget-title { font-size: 11px; color: var(--ink-2); }
.mini-widget-sub { font-size: 12.5px; font-weight: 600; }
.mini-widget-sub b { color: var(--pink-deep); font-size: 15px; }

/* ---------- 通用 Section ---------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; }
.section-head {
  text-align: center;
  margin-bottom: 56px;
}
.section-tag {
  display: inline-block;
  background: var(--pink-soft);
  color: var(--pink-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  border-radius: 999px;
  padding: 5px 16px;
  margin-bottom: 16px;
}
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 800;
  line-height: 1.4;
}

/* ---------- 功能亮点 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 30px 26px;
  transition: transform .25s ease, box-shadow .25s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--pink-bg);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--ink-2); }
.feature-card-wide {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 22px;
}
.feature-card-wide .feature-icon { margin-bottom: 0; flex-shrink: 0; }

/* ---------- 使用流程 ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.flow-step {
  position: relative;
  background: var(--pink-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 24px;
}
.flow-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--rose-grad);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  box-shadow: 0 6px 14px rgba(255, 92, 138, .35);
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { font-size: 14px; color: var(--ink-2); }

/* ---------- 证书展示 ---------- */
.cert-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.cert-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  margin: 14px 0 16px;
}
.cert-copy > p { color: var(--ink-2); margin-bottom: 22px; }
.cert-points li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 12px;
  color: var(--ink-2);
  font-size: 15px;
}
.cert-points li::before {
  content: "♥";
  position: absolute;
  left: 0;
  color: var(--pink);
}
.cert-points b { color: var(--ink); }

.cert-card {
  background: linear-gradient(160deg, #fff 60%, #fff0f5 100%);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: transform .3s ease;
}
.cert-card:hover { transform: rotate(0deg) scale(1.02); }
.cert-border {
  border: 2px solid var(--pink-soft);
  border-radius: 16px;
  padding: 34px 28px;
  text-align: center;
  position: relative;
}
.cert-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 10px;
  color: var(--pink-deep);
}
.cert-no {
  font-size: 11px;
  color: #b9aeb4;
  letter-spacing: 1.5px;
  margin: 10px 0 24px;
}
.cert-body {
  font-size: 15.5px;
  line-height: 2.1;
  color: var(--ink);
}
.cert-body b { color: var(--pink-deep); }
.cert-foot {
  margin-top: 26px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.cert-date {
  font-size: 13px;
  color: var(--ink-2);
  letter-spacing: 2px;
}
.cert-seal {
  width: 74px; height: 74px;
  border: 2.5px solid rgba(232, 68, 111, .55);
  color: rgba(232, 68, 111, .75);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transform: rotate(-12deg);
}

/* ---------- 安全隐私 ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.privacy-card {
  background: var(--pink-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: center;
}
.privacy-icon { font-size: 34px; margin-bottom: 14px; }
.privacy-card h3 { font-size: 17px; margin-bottom: 10px; }
.privacy-card p { font-size: 14px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 15.5px;
  position: relative;
  padding-right: 48px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  font-weight: 400;
  color: var(--pink);
  transition: transform .25s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 22px 18px;
  font-size: 14.5px;
  color: var(--ink-2);
}

/* ---------- 底部 CTA ---------- */
.cta {
  background: var(--rose-grad);
  color: #fff;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-copy h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-copy p { opacity: .92; font-size: 16px; }
.qr-box {
  background: #fff;
  border-radius: 22px;
  padding: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
}
.qr-placeholder {
  width: 190px; height: 190px;
  border: 2px dashed var(--pink-soft);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--pink-deep);
}
.qr-placeholder svg { width: 56px; height: 56px; }
.qr-placeholder span { font-weight: 700; font-size: 15px; }
.qr-placeholder small { font-size: 11px; color: #b9aeb4; }

/* ---------- 页脚 ---------- */
.footer {
  background: #2b2028;
  color: #cfc3c9;
  padding: 48px 0 40px;
  font-size: 14px;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
}
.footer-brand .brand-heart { width: 24px; height: 24px; }
.footer-links {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.footer-links a:hover { color: #fff; }
.footer-meta p { margin-bottom: 6px; opacity: .8; }
.footer-meta a { color: #ff9cb8; }
.footer-meta a.icp-link { color: inherit; opacity: .7; }
.footer-meta a.icp-link:hover { color: #fff; opacity: 1; }

/* ---------- 进场动画 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- 响应式 ---------- */
.br-m { display: none; }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-phone { margin-top: 24px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .privacy-grid { grid-template-columns: 1fr; }
  .cert-inner { grid-template-columns: 1fr; gap: 40px; }
  .cert-card { max-width: 440px; margin: 0 auto; }
  .cta-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .br-m { display: inline; }
  .section { padding: 64px 0; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: rgba(255, 247, 249, .98);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    box-shadow: 0 16px 30px rgba(232, 68, 111, .12);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 6vw; }
  .btn-nav { display: none; }
  .nav-toggle { display: flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .flow-grid { grid-template-columns: 1fr; }
  .feature-card-wide { flex-direction: column; align-items: flex-start; }
  .hero { padding: 48px 0 72px; }
}
