/* ============ 基础变量 ============ */
:root {
  --primary: #e8546b;
  --primary-dark: #d13a54;
  --primary-light: #ff8fa3;
  --accent: #ffb3c1;
  --bg: #fff7f5;
  --bg-alt: #fdeef0;
  --text: #3d2c31;
  --text-light: #8a6f76;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 8px 30px rgba(232, 84, 107, 0.12);
  --shadow-lg: 0 16px 50px rgba(232, 84, 107, 0.18);
  --transition: all 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

/* ============ 按钮 ============ */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 12px 30px;
  transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white);
  box-shadow: 0 6px 20px rgba(232, 84, 107, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(232, 84, 107, 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--white); }
.btn-lg { padding: 15px 38px; font-size: 1.05rem; }
.btn-sm { padding: 8px 20px; font-size: 0.9rem; }
.btn-block { width: 100%; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  padding: 10px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
}
.logo-icon { font-size: 1.5rem; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: var(--transition);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: var(--white) !important;
  padding: 9px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(232, 84, 107, 0.35);
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============ Hero ============ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 120px 0 80px;
  background: linear-gradient(160deg, #fff0f3 0%, #ffe4ea 45%, #ffd9e2 100%);
  overflow: hidden;
}
.hero-bg .heart {
  position: absolute;
  color: rgba(232, 84, 107, 0.12);
  animation: floatHeart 8s ease-in-out infinite;
  user-select: none;
}
.heart.h1 { font-size: 4rem; top: 12%; left: 6%; animation-delay: 0s; }
.heart.h2 { font-size: 2.5rem; top: 65%; left: 10%; animation-delay: 1.5s; }
.heart.h3 { font-size: 3.5rem; top: 20%; right: 8%; animation-delay: 3s; }
.heart.h4 { font-size: 2rem; top: 75%; right: 14%; animation-delay: 4.5s; }
.heart.h5 { font-size: 5rem; top: 45%; left: 45%; animation-delay: 2.2s; }
@keyframes floatHeart {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-26px) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.75);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 20px;
  border-radius: 999px;
  margin-bottom: 22px;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero h1 .accent {
  color: var(--primary);
  position: relative;
}
.hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; bottom: 6px;
  width: 100%; height: 12px;
  background: rgba(232, 84, 107, 0.18);
  z-index: -1;
  border-radius: 6px;
}
.hero-sub {
  font-size: 1.12rem;
  color: var(--text-light);
  margin-bottom: 34px;
}
.hero-sub strong { color: var(--primary); }
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-badges {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  color: var(--text-light);
}

/* Hero 匹配卡片 */
.hero-card { display: flex; justify-content: center; }
.match-card {
  background: var(--white);
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  max-width: 360px;
  width: 100%;
  animation: cardFloat 5s ease-in-out infinite;
}
@keyframes cardFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}
.match-card-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 20px;
}
.avatar {
  width: 74px; height: 74px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--white);
}
.avatar-f { background: linear-gradient(135deg, #ff8fa3, #e8546b); }
.avatar-m { background: linear-gradient(135deg, #7aa7e8, #4a6fd1); }
.match-heart { font-size: 1.8rem; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}
.match-rate { text-align: center; color: var(--text-light); margin-bottom: 8px; }
.match-rate strong { color: var(--primary); font-size: 1.3rem; }
.match-bar {
  height: 10px;
  background: var(--bg-alt);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 20px;
}
.match-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 999px;
}
.match-desc {
  text-align: center;
  font-style: italic;
  color: var(--text);
  margin-bottom: 14px;
}
.match-names {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============ 数据统计 ============ */
.stats {
  background: var(--white);
  padding: 54px 0;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stat-num {
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}
.stat-label { color: var(--text-light); font-size: 0.98rem; }

/* ============ 通用版块 ============ */
.section { padding: 96px 0; }
.section-alt { background: var(--white); }
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.section-tag {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 0.85rem;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 12px;
}
.section-sub { color: var(--text-light); }

/* 滚动淡入动画 */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 会员风采 ============ */
.filter-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 42px;
  flex-wrap: wrap;
}
.filter-btn {
  border: 2px solid var(--accent);
  background: var(--white);
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 600;
  padding: 9px 28px;
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); }
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(232, 84, 107, 0.3);
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 26px;
}
.member-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 24px 26px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.member-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.member-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}
.member-avatar {
  width: 86px; height: 86px;
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--white);
  border: 4px solid var(--bg-alt);
}
.member-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.member-badge {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--primary);
  background: var(--bg-alt);
  border-radius: 999px;
  padding: 2px 12px;
  margin-left: 6px;
  vertical-align: middle;
}
.member-info {
  color: var(--text-light);
  font-size: 0.93rem;
  margin-bottom: 12px;
}
.member-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.member-tags span {
  font-size: 0.8rem;
  color: var(--text-light);
  background: var(--bg);
  border: 1px solid #f3dde1;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ============ 服务流程 ============ */
.process-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 18px;
  align-items: stretch;
}
.process-item {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}
.process-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.process-num {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 2rem;
  font-weight: 800;
  color: rgba(232, 84, 107, 0.12);
}
.process-icon {
  font-size: 2.6rem;
  margin-bottom: 14px;
}
.process-item h3 { margin-bottom: 10px; font-size: 1.15rem; }
.process-item p { color: var(--text-light); font-size: 0.93rem; }
.process-arrow {
  display: flex;
  align-items: center;
  color: var(--primary-light);
  font-size: 1.5rem;
  font-weight: 700;
}

/* ============ 成功案例轮播 ============ */
.carousel {
  display: flex;
  align-items: center;
  gap: 18px;
}
.carousel-track-wrap {
  overflow: hidden;
  flex: 1;
  border-radius: var(--radius);
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.story-card {
  flex: 0 0 100%;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  box-shadow: var(--shadow);
  text-align: center;
}
.story-avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.story-quote {
  font-size: 1.12rem;
  line-height: 1.9;
  color: var(--text);
  max-width: 640px;
  margin: 0 auto 20px;
  font-style: italic;
}
.story-names {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.05rem;
}
.story-meta { color: var(--text-light); font-size: 0.9rem; margin-top: 4px; }
.carousel-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--primary);
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: var(--transition);
  flex-shrink: 0;
  line-height: 1;
}
.carousel-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.08);
}
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}
.carousel-dots button {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  cursor: pointer;
  transition: var(--transition);
}
.carousel-dots button.active {
  background: var(--primary);
  width: 28px;
  border-radius: 999px;
}

/* ============ 线下活动 ============ */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
  max-width: 760px;
  margin: 0 auto;
}
.event-card {
  display: flex;
  gap: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  transition: var(--transition);
}
.event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  background: var(--white);
}
.event-date {
  flex-shrink: 0;
  width: 76px; height: 84px;
  background: linear-gradient(160deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(232, 84, 107, 0.3);
}
.event-date .day { font-size: 1.7rem; font-weight: 800; line-height: 1.1; }
.event-date .month { font-size: 0.85rem; }
.event-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-alt);
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.event-tag.tag-green { color: #2e9e6b; background: #e4f6ee; }
.event-tag.tag-purple { color: #7c5cd6; background: #efebfb; }
.event-body h3 { font-size: 1.12rem; margin-bottom: 6px; }
.event-meta { color: var(--text-light); font-size: 0.88rem; margin-bottom: 8px; }
.event-desc { color: var(--text-light); font-size: 0.93rem; margin-bottom: 14px; }
.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.event-slots {
  font-size: 0.88rem;
  color: var(--primary);
  font-weight: 600;
}
.event-slots.hot { color: #e8842c; }

/* ============ 报名区 ============ */
.signup {
  background: linear-gradient(150deg, #fff0f3, #ffe0e8);
}
.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.signup-text h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 16px;
}
.signup-text > p { color: var(--text-light); margin-bottom: 24px; }
.signup-points { list-style: none; }
.signup-points li {
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text);
}
.signup-form {
  background: var(--white);
  border-radius: 22px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}
.signup-form h3 {
  font-size: 1.4rem;
  margin-bottom: 22px;
  text-align: center;
}
.form-row { margin-bottom: 16px; }
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row label {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-row input,
.form-row select {
  width: 100%;
  border: 2px solid #f0dfe3;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
.form-row input:focus,
.form-row select:focus {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232, 84, 107, 0.1);
}
.form-row input.invalid,
.form-row select.invalid { border-color: #e33; }
.form-err {
  color: #e33;
  font-size: 0.82rem;
  margin-top: 4px;
  min-height: 1.1em;
}
.form-tip {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 12px;
}

/* ============ 页脚 ============ */
.footer {
  background: #33222a;
  color: #d8c3c9;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer .logo { color: var(--primary-light); margin-bottom: 14px; }
.footer-brand p { font-size: 0.92rem; line-height: 1.8; }
.footer-col h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1.02rem;
}
.footer-col a {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--primary-light); }
.footer-col p { font-size: 0.92rem; margin-bottom: 10px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #a58e96;
}

/* ============ 弹窗 ============ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(40, 20, 28, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.show {
  opacity: 1;
  pointer-events: auto;
}
.modal-box {
  background: var(--white);
  border-radius: 22px;
  padding: 44px 40px;
  text-align: center;
  max-width: 380px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.show .modal-box { transform: scale(1); }
.modal-icon { font-size: 3rem; margin-bottom: 14px; }
.modal-box h3 { font-size: 1.4rem; margin-bottom: 10px; }
.modal-box p { color: var(--text-light); margin-bottom: 24px; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .process-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 80vw);
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.1);
    transition: right 0.35s ease;
    z-index: 99;
  }
  .nav-links.open { right: 0; }
  .nav-link { font-size: 1.15rem; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
    text-align: center;
  }
  .hero-actions, .hero-badges { justify-content: center; }
  .br-mobile { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 12px; }
  .signup-inner { grid-template-columns: 1fr; gap: 44px; }
  .carousel-btn { display: none; }
  .story-card { padding: 36px 26px; }
}

@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .event-card { flex-direction: column; }
  .event-date { width: 100%; height: auto; padding: 10px; flex-direction: row; gap: 8px; }
}
