/* 友派卡官网样式 - 温暖专业完整版 */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  /* 温暖专业配色 */
  --main: #8B1E3F;        /* 酒红色 - 权威温暖 */
  --main-light: #A52A4D;
  --accent: #F06A6A;      /* 珊瑚红 - 活力点缀 */
  --accent-warm: #FF6B8B; /* 新增粉色渐变 */
  --bg: #FDFCFB;          /* 暖白背景 */
  --bg-warm: #FFF8F5;
  --bg-section: #FFF5EE;
  --text: #2D2D2D;        /* 主要文字 */
  --text-light: #5A5A5A;
  --muted: #8A8A8A;
  --gold: #C49A6C;        /* 金色 - 品质感 */
  --gold-light: #E8C9A8;
  --success: #4CAF50;
  --border: #E8D6D0;
  --card-bg: #FFEFE6;
  
  /* 阴影系统 */
  --shadow-soft: 0 4px 20px rgba(139, 30, 63, 0.08);
  --shadow-medium: 0 8px 30px rgba(139, 30, 63, 0.12);
  --shadow-strong: 0 16px 40px rgba(139, 30, 63, 0.16);
  --shadow-card: 0 16px 40px rgba(139, 30, 63, 0.2);
  
  /* 渐变 */
  --gradient-main: linear-gradient(135deg, var(--main) 0%, var(--accent) 100%);
  --gradient-pink: linear-gradient(90deg, var(--main), var(--accent-warm)); /* Logo渐变 */
  --gradient-warm: linear-gradient(135deg, #FFF5EE 0%, #FFE4D6 100%);
  --gradient-card: linear-gradient(135deg, rgba(255,245,238,0.9) 0%, rgba(255,228,214,0.9) 100%);
  
  --container: 1200px;
}

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

html, body {
  height: 100%;
}

html {
  scroll-padding-top: 100px;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 容器布局 */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* 首页头图容器特殊处理 */
.hero .container {
  margin-left: 0;
}

/* 主内容区顶部间距调整 */
main {
  margin-top: 80px;
}

/* ============ 头部导航 ============ */
.site-header {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px 0;
  gap: 120px;
  flex-wrap: wrap;
}

.logo {
  font-weight: 800;
  color: var(--main);
  text-decoration: none;
  font-size: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo::before {
  content: '🐾';
  font-size: 24px;
}

.logo .en {
  font-weight: 600;
  font-size: 18px;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 10px;
  letter-spacing: 1px;
}

.site-nav {
  display: flex;
  gap: 32px;
  align-items: right;
  margin: 0;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--main);
}

.site-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-main);
  border-radius: 2px;
}

/* ============ 头部轮播区域 ============ */
.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 40px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.carousel {
  position: relative;
  height: 100%;
  min-height: 500px;
  overflow: hidden;
}

.carousel img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center center;
  transition: transform 0.1s ease;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: left;
  max-width: none;
  width: 100%;
  margin-left: 0px;
  margin-top: auto;
  margin-bottom: 40px;
  padding: 30px 40px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  border-radius: 20px;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.hero .lead {
  font-size: 0.85rem;
  margin-bottom: 20px;
  opacity: 0.95;
  line-height: 1.5;
}

.stats {
  display: flex;
  justify-content: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.stat {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  color: white;
}

.stat-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  padding: 16px 24px;
  border-radius: 12px;
  text-align: center;
  min-width: 140px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  color: white;
}

.stat-label {
  font-size: 13px;
  opacity: 0.9;
  font-weight: 500;
}

/* ============ 主要内容区域 ============ */
.section {
  padding: 80px 0;
  position: relative;
}

.section:nth-child(even) {
  background: var(--bg-section);
}

.section h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 24px;
  color: var(--main);
  font-weight: 700;
  line-height: 1.3;
}

.section .lead-text {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 48px;
  font-size: 1.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ============ 养宠焦虑卡片优化 ============ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* 增大最小宽度 */
  gap: 32px;
  max-width: 1200px; /* 增大最大宽度 */
  margin: 0 auto;
}

.modern-card {
  background: var(--gradient-card);
  padding: 40px 32px;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 2px solid white; /* 添加白色边框与背景形成色差 */
  transition: all 0.4s ease;
  position: relative;
  min-height: 280px;
}

.modern-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.modern-card:hover::before {
  transform: scaleX(1);
}

.modern-card h3 {
  font-size: 1.5rem;    /* 增大标题字号 */
  color: var(--main);
  margin-bottom: 16px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;    /* 标题居中 */
  white-space: nowrap;   /* 单行显示 */
  overflow: hidden;
  text-overflow: ellipsis;
}

.modern-card p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
  text-align: center;    /* 文案居中 */
}

/* 卡片背景图片 */
.card-bg {
  display: none;  /* 临时移除背景图片 */
}

.modern-card h3,
.modern-card p {
  position: relative;
  z-index: 10;
}

/* ============ 让权威教授走出象牙塔部分 ============ */
.professor-section {
  background: #ffffff !important;
}

.professor-section h2 {
  color: var(--main) !important;
  background: none !important;
  padding: 0;
  border-radius: 0;
  border: none;
  text-shadow: none;
}

.who .modern-card {
  height: auto;
  min-height: 180px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* ============ 我们≠普通兽医平台部分 - 淡粉色背景 ============ */
.who-list li {
  background: linear-gradient(135deg, #ffefef 0%, #ffe6e6 100%);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.1);
  border: none;
}

.who-list li::before,
.who-list li::after {
  display: none;
}

/* ============ 毛玻璃标题效果 ============ */
.glass-title {
  display: inline-block;
  padding: 16px 32px;
  background: rgba(255, 107, 139, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(228, 108, 108, 0.3);
  border: 1px solid rgba(243, 148, 148, 0.1);
}

/* 专家团队部分背景图 */
.expert-section {
  position: relative;
  padding: 100px 0;
}

.expert-section .container {
  position: relative;
  z-index: 2;
}

/* ============ 我们≠普通兽医平台部分 ============ */
.who-list {
  list-style: none;
  margin: 40px 0;
  padding: 0;
}

.who-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.who-list li {
  position: relative;
  padding: 40px 30px;
  margin-bottom: 0;
  border-radius: 20px;
  font-size: 1.1rem;
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  min-height: 200px;
  overflow: hidden;
  background: white;
}

.who-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-warm);
  z-index: 1;
}

.who-list li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  z-index: 2;
}

.who-list li > * {
  position: relative;
  z-index: 3;
}

.who-list li h3 {
  font-size: 1.5rem;
  color: var(--main);
  margin-bottom: 15px;
  font-weight: 700;
}

.who-list li p {
  color: var(--text-light);
}

.who-list li:hover {
  transform: translateX(10px);
  box-shadow: var(--shadow-medium);
}

.who-list li:nth-child(2) {
  animation-delay: 0.2s;
}

.who-list li:nth-child(3) {
  animation-delay: 0.4s;
}

.who-list strong {
  color: var(--main);
  font-weight: 700;
}

.avatars {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.avatars img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.avatars img:hover {
  transform: scale(1.1);
  border-color: var(--main);
  box-shadow: var(--shadow-medium);
}

/* ============ 权威数字部分 ============ */
.num-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.num-card {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out forwards;
}

.num-card:nth-child(2) {
  animation-delay: 0.2s;
}

.num-card:nth-child(3) {
  animation-delay: 0.4s;
}

.num-card:nth-child(4) {
  animation-delay: 0.6s;
}

.num-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.num-card .big {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--main);
  line-height: 1;
  margin-bottom: 15px;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.num-card p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}

.trust {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin-top: 40px;
  padding: 20px;
  background: var(--bg-warm);
  border-radius: 10px;
  font-weight: 500;
}

/* ============ 套餐部分 ============ */
.package-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 40px auto;
  max-width: 1200px;
}

.package-card {
  flex: 1;
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  min-width: 280px;
  border: 1px solid rgba(255,182,193,0.3);
}

.package-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, #ff6b6b, #ff9e9e, #ffb6c1);
}

.package-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.package-title {
  font-size: 1.6rem;
  color: #d63384;
  margin-bottom: 15px;
  font-weight: 600;
}

.package-desc {
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 25px;
  font-weight: 500;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.package-features li {
  padding: 12px 0;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
  padding-left: 28px;
  color: #475569;
}

.package-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #20c997;
  font-weight: bold;
  font-size: 1.2rem;
}

/* ============ 会员流程部分 ============ */
.steps-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.step {
  text-align: center;
  padding: 40px 30px;
  background: white;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(2) {
  animation-delay: 0.3s;
}

.step:nth-child(3) {
  animation-delay: 0.6s;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: var(--main-light);
}

.step-no {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: var(--shadow-medium);
}

.step h3 {
  color: var(--main);
  font-size: 1.4rem;
  margin: 25px 0 15px;
  font-weight: 700;
}

.step p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

.center {
  text-align: center;
  margin-top: 40px;
}

.btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--gradient-main);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-medium);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

/* 继续添加其他样式... */

/* ============ 痛点部分 ============ */
.pain {
  background: linear-gradient(135deg, var(--bg-warm) 0%, #FFEFE6 100%);
}

.pain h2 {
  position: relative;
  margin-bottom: 48px;
}

.pain h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-main);
  margin: 20px auto 0;
  border-radius: 2px;
}

.center-note {
  font-size: 2rem;       /* 增大字号 */
  color: var(--main);
  font-weight: 700;
  margin-top: 48px;
  font-style: italic;
  position: relative;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 6px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #FFF5F5 0%, #FFE8E8 100%);
  border-radius: 15px;
  display: block;
  animation: pulse 2s ease-in-out infinite;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.center-note::before {
  content: '"';
  margin-right: 8px;
  font-weight: 800;
}

.center-note::after {
  content: '"';
  margin-left: 8px;
  font-weight: 800;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ============ 页脚 ============ */
.site-footer {
  background: linear-gradient(135deg, #2D2D2D 0%, #1A1A1A 100%);
  color: white;
  padding: 24px 0;
  margin-top: 80px;
  height: auto;
  min-height: 80px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer-left .logo {
  color: white;
  margin-bottom: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-left .logo .en {
  color: white;
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

.footer-nav a:hover {
  color: white;
}

.footer-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.footer-right {
  text-align: right;
  white-space: nowrap;
}

.footer-right p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-left .logo {
  color: white;
  margin-bottom: 0;
  font-size: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.footer-left .logo .en {
  color: white; /* 底部英文部分不使用渐变 */
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: nowrap;
  align-items: center;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}

.footer-nav a:hover {
  color: white;
}

.footer-nav a:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: white;
  border-radius: 2px;
}

.footer-right {
  text-align: right;
  white-space: nowrap;
}

.footer-right p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0;
  font-size: 16px;
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  justify-content: flex-end;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

/* ============ 响应式设计 ============ */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .site-nav {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .hero .lead {
    font-size: 0.95rem;
  }
  
  .hero-content {
    margin-left: 5%;
    padding: 20px;
    max-width: 90%;
  }
  
  .stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .cards-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .modern-card h3 {
    font-size: 1.3rem;
  }
  
  .center-note {
    font-size: 1.6rem;
  }
  
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-left {
    flex-direction: column;
    gap: 16px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-right {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero .lead {
    font-size: 0.9rem;
  }
  
  .stat {
    min-width: 120px;
    padding: 16px;
  }
  
  .stat .num {
    font-size: 1.6rem;
  }
}

/* ============ 动画效果 ============ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes rotateIn {
  from {
    transform: rotate(-10deg) scale(0.5);
    opacity: 0;
  }
  to {
    transform: rotate(0) scale(1);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 动态效果应用 */
.fade-in-up {
  animation: fadeInUp 1.8s ease-out forwards;
  opacity: 0;
}

.stagger-item {
  opacity: 1; /* 强制显示内容 */
  animation: none !important; /* 禁用动画 */
}

/* 不同的延迟时间 */
.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.3s; }
.stagger-item:nth-child(3) { animation-delay: 0.5s; }
.stagger-item:nth-child(4) { animation-delay: 0.7s; }

/* 不同的动画类型 */
.rotate-in {
  animation: rotateIn 1s ease-out forwards;
  opacity: 0;
}

.slide-in-right {
  animation: slideInRight 0.8s ease-out forwards;
  opacity: 0;
}

.bounce-in {
  animation: bounceIn 1s ease-out forwards;
  opacity: 0;
}

/* 滚动触发动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============ 使用者评价部分 ============ */
.testimonials {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEFEF 100%);
}

.test-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  margin: 50px 0;
}

.test {
  background: white;
  padding: 40px 30px;
  border-radius: 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  position: relative;
  transition: all 0.4s ease;
  animation: fadeInUp 0.6s ease-out forwards;
}

.test:nth-child(2) {
  animation-delay: 0.3s;
}

.test:nth-child(3) {
  animation-delay: 0.6s;
}

.test:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-strong);
  border-color: var(--main-light);
}

.test::before {
  content: '"';
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 4rem;
  color: var(--main-light);
  opacity: 0.2;
  font-weight: 800;
  line-height: 1;
}

.test p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

.test cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 500;
  border-left: 3px solid var(--accent);
  padding-left: 15px;
  margin-top: 20px;
}

/* ============ FAQ部分 ============ */
.faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow-medium);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 24px 30px;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--main);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-q::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  transition: all 0.3s ease;
  color: var(--main);
}

.faq-q.active::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-a {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  color: var(--text-light);
  line-height: 0;
  background: var(--bg-warm);
  opacity: 0;
  visibility: hidden;
  display: none;
}

.faq-a.active {
  display: block;
  padding: 20px 30px;
  max-height: 300px;
  line-height: 1.6;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

/* ============ CTA部分 ============ */
.cta {
  background: linear-gradient(135deg, #FFF5F5 0%, #FFEFE6 100%);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-pink);
  opacity: 0.1;
}

.cta h2 {
  margin-bottom: 0;
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  z-index: 2;
  animation: smoothBreathing 6s ease-in-out infinite;
}

@keyframes smoothBreathing {
  0% {
    transform: scale(0.9);
  }
  20% {
    transform: scale(1.05);
  }
  40% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.15);
  }
  65% {
    transform: scale(1.15); /* 停顿保持放大状态 */
  }
  85% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(0.9);
  }
}

.cta .container {
  position: relative;
  z-index: 2;
}

/* ============ 数字红粉渐变样式 ============ */
.stat .num {
  font-size: 1.8rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
  background: var(--gradient-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 新增的简化版呼吸动画 */
@keyframes smoothBreathing {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1); /* 缓慢放大到最大 */
  }
  100% {
    transform: scale(1); /* 缓慢缩小回到原始大小 */
  }
}

/* 更新CTA动画为简化版 */
.cta h2 {
  animation: smoothBreathing 4s ease-in-out infinite;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: rgba(139, 30, 63, 0.5);
  pointer-events: none;
}

.who-list li {
  position: relative;
  padding: 24px 30px;
  margin-bottom: 20px;
  border-radius: 15px;
  font-size: 1.1rem;
  line-height: 1.7;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  animation: slideInLeft 0.6s ease-out forwards;
  min-height: 150px;
  overflow: hidden;
}

.who-list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
   z-index: 1;
  background-size: cover;
}

.who-list li::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgb(251, 251, 251);
  z-index: 2;
}

.who-list li > * {
  position: relative;
  z-index: 3;
}

/* 新增的简化版呼吸动画 - 周期6秒，停顿5秒 */
@keyframes smoothBreathing {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.1); /* 缓慢放大到最大 */
  }
  50% {
    transform: scale(1.1); /* 停顿5秒 */
  }
  100% {
    transform: scale(1); /* 缓慢缩小回到原始大小 */
  }
}

/* 更新CTA动画为6秒周期 */
.cta h2 {
  animation: smoothBreathing 6s ease-in-out infinite;
}
