/* ========================================
   首页专用样式
   ======================================== */

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, #003DA5 0%, #002B5C 50%, #001A3A 100%);
  color: #fff;
  padding: 80px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero .btn-outline {
  border-color: #fff;
  color: #fff;
}

.hero .btn-outline:hover {
  background-color: #fff;
  color: #003DA5;
}

/* 核心卖点 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  text-align: center;
  padding: 32px 24px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #1f2937;
}

.feature-card p {
  font-size: 0.9375rem;
  color: #6b7280;
}

/* 套餐网格 */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.package-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.package-card-featured {
  border: 2px solid #003DA5;
  background: linear-gradient(180deg, #f0f5ff 0%, #fff 100%);
}

.package-badge {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-hot {
  background: #fff3cd;
  color: #856404;
}

.badge-new {
  background: #d4edda;
  color: #155724;
}

.badge-primary {
  background: rgba(0, 61, 165, 0.1);
  color: #003DA5;
}

.package-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
  margin-top: 8px;
}

.package-price {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.package-price .price {
  font-size: 2.5rem;
  font-weight: 800;
  color: #003DA5;
}

.package-price .price-unit {
  font-size: 1rem;
  font-weight: 400;
  color: #6b7280;
}

.package-features {
  flex: 1;
  margin-bottom: 24px;
}

.package-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9375rem;
  color: #4b5563;
}

.package-features .check {
  color: #22c55e;
  font-weight: 700;
}

.package-card .btn {
  width: 100%;
  margin-bottom: 12px;
}

.package-detail-link {
  display: block;
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  transition: color 0.2s ease;
}

.package-detail-link:hover {
  color: #003DA5;
}

/* 快速服务入口 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, #fff5f5 0%, #fff 100%);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

.service-card p {
  font-size: 0.8125rem;
  color: #6b7280;
}

/* 新闻列表 */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.news-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.news-item {
  background: #fff;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease;
}

.news-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.news-date {
  display: inline-block;
  font-size: 0.8125rem;
  color: #9ca3af;
  margin-bottom: 8px;
}

.news-item h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
}

.news-item h3 a {
  color: #1f2937;
  transition: color 0.2s ease;
}

.news-item h3 a:hover {
  color: #003DA5;
}

/* FAQ手风琴 */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.2s ease;
}

.faq-item summary:hover {
  background-color: #f9fafb;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: #9ca3af;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 24px 20px;
  color: #6b7280;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.faq-answer a {
  color: #003DA5;
  text-decoration: underline;
}

/* 区域入口 */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.area-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.area-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.area-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
}

/* 辅助类 */
.mt-4 { margin-top: 32px; }

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .areas-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }

  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  :root {
    --container-padding: 16px;
  }

  .hero-title {
    font-size: 1.875rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero .btn-lg {
    width: 100%;
    max-width: 280px;
  }

  .section {
    padding: 48px 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .text-4xl { font-size: 1.875rem; }
  .text-3xl { font-size: 1.5rem; }
  .text-2xl { font-size: 1.25rem; }

  /* 卖点 */
  .features-grid,
  .packages-grid,
  .services-grid,
  .areas-grid {
    grid-template-columns: 1fr !important;
  }

  /* 数据背书 */
  .proof-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .stat-number {
    font-size: 1.75rem;
  }

  .trust-badges {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  /* 客户评价 */
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  /* 新闻 */
  .news-list {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* FAQ */
  .faq-item summary {
    padding: 16px 18px;
    font-size: 0.9375rem;
  }

  .faq-answer {
    padding: 0 18px 18px;
    font-size: 0.875rem;
  }

  /* 手机端显示底部悬浮CTA条 */
  .mobile-cta-bar {
    display: flex;
  }

  body.has-mobile-cta {
    padding-bottom: 72px;
  }

  .card {
    padding: 16px;
  }

  .btn-lg {
    padding: 12px 24px;
    font-size: 1rem;
  }

  /* 套餐卡片推荐样式增强（手机端） */
  .package-card-featured {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 61, 165, 0.15);
  }
}

/* ========================================
   信任感 / 数据背书区块
   ======================================== */

/* 数据统计 */
.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.stat-item {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.08);
  border-bottom: 3px solid #003DA5;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #003DA5;
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.9375rem;
  color: #6b7280;
  font-weight: 500;
}

/* 信任标签 */
.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 32px;
  margin-bottom: 48px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: #4b5563;
  white-space: nowrap;
}

.trust-badge svg {
  flex-shrink: 0;
}

/* 客户评价标题 */
.proof-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: #1f2937;
}

/* 客户评价卡片 */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003DA5 0%, #1E5AA8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-meta strong {
  display: block;
  font-size: 0.9375rem;
  color: #1f2937;
}

.review-location {
  font-size: 0.8125rem;
  color: #9ca3af;
}

.review-stars {
  color: #f59e0b;
  font-size: 0.875rem;
  letter-spacing: 1px;
}

.review-text {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 16px;
}

.review-package {
  display: inline-block;
  font-size: 0.8125rem;
  color: #003DA5;
  background: #eff6ff;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 500;
  margin-right: 10px;
}

.review-time {
  font-size: 0.8125rem;
  color: #9ca3af;
}

/* ========================================
   实时预约滚动条（社会证明）
   ======================================== */

.live-ticker-wrapper {
  background: linear-gradient(90deg, #fffbeb 0%, #fef3c7 50%, #fffbeb 100%);
  border-top: 2px solid #f59e0b;
  border-bottom: 2px solid #f59e0b;
  overflow: hidden;
  position: relative;
}

.live-ticker-bar {
  display: flex;
  animation: tickerScroll 55s linear infinite;
  width: max-content;
  will-change: transform;
}

.live-ticker-bar:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 40px;
  white-space: nowrap;
  font-size: 0.875rem;
  color: #92400e;
  border-right: 1px solid #fcd34d;
}

.ticker-item .ticker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: dotPulse 1.5s ease infinite;
  flex-shrink: 0;
}

.ticker-item .ticker-area {
  font-weight: 600;
  color: #d97706;
}

.ticker-item .ticker-pkg {
  color: #059669;
  font-weight: 500;
}

.ticker-item .ticker-time {
  color: #b45309;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ========================================
   手机端底部悬浮 CTA 条
   ======================================== */

.mobile-cta-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  padding: 12px 16px;
  display: none; /* 默认隐藏，仅移动端显示 */
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mobile-cta-text {
  flex: 1;
  min-width: 0;
}

.mobile-cta-label {
  font-size: 0.6875rem;
  color: #ef4444;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-cta-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: #dc2626;
}

.mobile-cta-price small {
  font-size: 0.75rem;
  font-weight: 400;
  color: #9ca3af;
}

.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: linear-gradient(135deg, #003DA5 0%, #1E5AA8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(0, 61, 165, 0.35);
  flex-shrink: 0;
}

.mobile-cta-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0, 61, 165, 0.45);
}

.mobile-cta-close {
  position: absolute;
  top: -10px;
  right: 8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #e5e7eb;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #6b7280;
  z-index: 1000;
}

/* ===== 静态社会证明数据条（SEO可抓取） ===== */
.static-proof-bar {
  background: linear-gradient(90deg, #f0fdf4 0%, #eff6ff 50%, #fefce8 100%);
  border-top: 1px solid #bbf7d0;
  border-bottom: 1px solid #bfdbfe;
}