/* ============================================
   CSS 变量定义 - 紫色主题
   ============================================ */
:root {
  --primary: #d43f50;
  --primary-dark: #c0392b;
  --primary-light: #fce0e4;
  --primary-soft: #fce0e4;
  --bg: #fdf0f2;
  --card: #ffffff;
  --text: #4a4a4a;
  --text-light: #777777;
  --text-muted: #aaaaaa;
  --border: #fce0e4;
  --border-light: #fce0e4;
  --pink-50: #fdf0f2;
  --pink-100: #fce0e4;
  --pink-200: #fdf0f2;
  --shadow-sm: 0 2px 8px rgba(212, 63, 80, 0.06);
  --shadow: 0 4px 16px rgba(212, 63, 80, 0.08);
  --shadow-lg: 0 8px 32px rgba(212, 63, 80, 0.12);
  --shadow-hover: 0 12px 40px rgba(212, 63, 80, 0.18);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
}

/* ============================================
   全局样式重置
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   顶部通栏
   ============================================ */
.top-bar {
  background: #d43f50;
  border-bottom: none;
  font-size: 13px;
  color: #fff;
  box-shadow: 0 2px 20px rgba(212, 63, 80, 0.3);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 38px;
}

.top-bar a {
  color: rgba(255, 255, 255, 0.9);
  margin-left: 18px;
  transition: all 0.3s ease;
  font-size: 13px;
}

.top-bar a:hover {
  color: #fff;
  text-decoration: underline;
}

.top-bar .slogan {
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  font-size: 14px;
}

/* ============================================
   主导航栏
   ============================================ */
.main-nav {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(212, 63, 80, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-light);
}

.main-nav .container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 0;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  background: #d43f50;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 48px;
  white-space: nowrap;
  letter-spacing: 3px;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.02);
}

.logo i {
  font-style: normal;
  background: #d43f50;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-list {
  display: flex;
  gap: 0;
  flex: 1;
}

.nav-list a {
  display: inline-block;
  padding: 0 20px;
  height: 64px;
  line-height: 64px;
  font-size: 15px;
  color: var(--text);
  transition: all 0.3s ease;
  position: relative;
  border-radius: var(--radius-sm);
  margin: 0 4px;
}

.nav-list a:hover {
  color: var(--primary);
  background: var(--pink-50);
}

.nav-list a.active {
  color: var(--primary);
  font-weight: 600;
}

.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background: #d43f50;
  border-radius: 2px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.btn-register {
  padding: 8px 24px;
  background: #d43f50;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(212, 63, 80, 0.3);
}

.btn-register:hover {
  background: #d43f50;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(212, 63, 80, 0.4);
}

/* ============================================
   页面头部横幅
   ============================================ */
.page-header {
  position: relative;
  background: #d43f50;
  color: #fff;
  padding: 100px 0 80px;
  text-align: center;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 0;
}

.page-header h1 {
  font-size: 42px;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  position: relative;
}

.page-header p {
  font-size: 18px;
  opacity: .92;
  letter-spacing: 2px;
  position: relative;
}

.page-header .stats-row {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 48px;
  position: relative;
}

.page-header .stats-row .stat-item {
  text-align: center;
}

.page-header .stats-row .stat-num {
  font-size: 42px;
  font-weight: 700;
  display: block;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-header .stats-row .stat-label {
  font-size: 14px;
  opacity: .85;
  margin-top: 4px;
}

/* ============================================
   区块标题
   ============================================ */
.section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  padding-left: 16px;
  border-left: 4px solid var(--primary);
  letter-spacing: 2px;
}

.section-header .sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
  padding-left: 20px;
}

/* ============================================
   成功案例卡片
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.case-card {
  background: var(--card);
  border: 2px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.case-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-light);
}

.case-photo {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.case-photo.male-bg {
  background: #d43f50;
}

.case-photo.female-bg {
  background: #d43f50;
}

.case-photo .couple-icon {
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 1;
}

.case-photo .couple-icon span {
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.case-photo .heart-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px;
  z-index: 2;
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
}

.case-photo::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
}

.case-body {
  padding: 28px;
}

.case-body h3 {
  font-size: 20px;
  color: var(--primary);
  margin-bottom: 16px;
  text-align: center;
  font-weight: 600;
  letter-spacing: 2px;
}

.case-body .story {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 20px;
  text-indent: 2em;
}

.case-body .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.case-body .meta .tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--pink-50);
  color: var(--primary);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================
   会员感言区域
   ============================================ */
.testimonial-section {
  background: #fff;
  padding: 80px 0;
  margin: 40px 0 0;
  border-top: 1px solid var(--border-light);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.testimonial-card {
  background: var(--bg);
  padding: 32px;
  border-radius: var(--radius);
  position: relative;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.testimonial-card::before {
  content: "\201C";
  font-size: 72px;
  color: var(--primary);
  position: absolute;
  top: 8px;
  left: 20px;
  opacity: .15;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card .content {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  margin-bottom: 24px;
  padding-top: 20px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-card .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #d43f50;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
  flex-shrink: 0;
}

.testimonial-card .author-info .name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.testimonial-card .author-info .desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================
   CTA 行动号召区域
   ============================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: #d43f50;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.cta-section h2 {
  font-size: 36px;
  margin-bottom: 16px;
  letter-spacing: 4px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: .95;
  letter-spacing: 2px;
  position: relative;
}

.btn-cta {
  display: inline-block;
  padding: 16px 56px;
  background: #fff;
  color: var(--primary);
  border-radius: 32px;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  letter-spacing: 3px;
  position: relative;
}

.btn-cta:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  background: var(--pink-50);
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
  color: #ccc;
  padding: 60px 0 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid #444;
}

.footer-col h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  font-weight: 600;
  letter-spacing: 2px;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #aaa;
  line-height: 2.2;
  transition: all 0.3s ease;
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

.footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 13px;
  color: #666;
  letter-spacing: 1px;
}

/* ============================================
   浮动工具按钮
   ============================================ */
.float-tools {
  position: fixed;
  right: 20px;
  bottom: 120px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.float-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.float-btn .tip {
  position: absolute;
  right: 64px;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  white-space: nowrap;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border: 1px solid var(--border-light);
}

.float-btn:hover .tip {
  opacity: 1;
}

/* ============================================
   客服二维码区域
   ============================================ */
.qrcode-section {
  padding: 60px 20px;
  background: #d43f50;
  position: relative;
}

.qrcode-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #d43f50;
}

.qrcode-section-header {
  text-align: center;
  margin-bottom: 36px;
}

.qrcode-section-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.qrcode-section-header p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  letter-spacing: 1px;
}

.qrcode-card {
  max-width: 920px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #fce0e4;
  border-radius: 24px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  gap: 52px;
  box-shadow: 0 4px 24px rgba(212, 63, 80, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
}

.qrcode-card::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(212, 63, 80, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.qrcode-left {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.qrcode-title {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 14px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qrcode-title::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 24px;
  background: #d43f50;
  border-radius: 2px;
  flex-shrink: 0;
}

.qrcode-desc {
  font-size: 15px;
  color: #777;
  margin-bottom: 6px;
  line-height: 1.8;
  padding-left: 12px;
}

.qrcode-contact {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  padding-left: 12px;
}

.qrcode-phone,
.qrcode-wechat {
  background: #fff;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #d43f50;
  border: 1px solid #fce0e4;
  transition: all 0.3s ease;
}

.qrcode-phone:hover,
.qrcode-wechat:hover {
  background: #d43f50;
  color: #fff;
  border-color: #d43f50;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 63, 80, 0.25);
}

.qrcode-right {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.qrcode-img-wrapper {
  background: #fff;
  padding: 16px;
  border-radius: 20px;
  box-shadow: 0 6px 28px rgba(212, 63, 80, 0.15);
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
  border: 1px solid #fce0e4;
  position: relative;
}

.qrcode-img-wrapper:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 12px 40px rgba(212, 63, 80, 0.25);
}

.qrcode-img-wrapper img {
  display: block;
  border-radius: 12px;
}

.qrcode-tip {
  margin-top: 14px;
  font-size: 13px;
  color: #aaa;
  letter-spacing: 1px;
  text-align: center;
  font-weight: 500;
}

/* ============================================
   响应式布局
   ============================================ */
@media (max-width: 768px) {
  .qrcode-section { padding: 40px 16px; }
  .qrcode-card {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    gap: 28px;
  }
  .qrcode-contact { justify-content: center; padding-left: 0; }
  .qrcode-title { font-size: 20px; justify-content: center; }
  .qrcode-desc { padding-left: 0; }
  .qrcode-section-header h2 { font-size: 22px; }

  .top-bar {
    display: none;
  }

  .nav-list {
    display: none;
  }

  .page-header {
    padding: 60px 0 50px;
  }

  .page-header h1 {
    font-size: 28px;
  }

  .page-header .stats-row {
    gap: 24px;
    flex-wrap: wrap;
  }

  .page-header .stats-row .stat-num {
    font-size: 32px;
  }

  .case-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 40px 0;
  }

  .section-header h2 {
    font-size: 22px;
  }

  .cta-section h2 {
    font-size: 28px;
  }

  .cta-section p {
    font-size: 16px;
  }

  .main-nav .container {
    height: 56px;
  }

  .logo {
    font-size: 22px;
    margin-right: 16px;
  }

  .mobile-menu-btn {
    display: block !important;
  }
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--text);
  transition: all 0.3s ease;
}

@media (max-width: 480px) {
  .qrcode-section { padding: 28px 12px; }
  .qrcode-card { padding: 24px 18px; }
  .qrcode-img-wrapper img { width: 140px; height: 140px; }
  .qrcode-title { font-size: 18px; }

  .page-header {
    padding: 40px 0 30px;
  }

  .page-header h1 {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .page-header p {
    font-size: 14px;
  }

  .page-header .stats-row {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .page-header .stats-row .stat-num {
    font-size: 28px;
  }

  .page-header .stats-row .stat-label {
    font-size: 12px;
  }

  .section-header h2 {
    font-size: 18px;
  }

  .case-photo {
    height: 160px;
    font-size: 48px;
  }

  .case-body {
    padding: 20px 16px;
  }

  .case-body h3 {
    font-size: 18px;
  }

  .case-body .story {
    font-size: 13px;
  }

  .testimonial-card {
    padding: 20px 16px;
  }

  .testimonial-card .content {
    font-size: 13px;
  }

  .cta-section h2 {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .cta-section p {
    font-size: 14px;
  }

  .btn-cta {
    padding: 12px 36px;
    font-size: 15px;
  }

  .footer-inner {
    gap: 24px;
  }
}

.mobile-menu-btn:hover {
  color: var(--primary);
}
