/* ===============================
   Pricing Page – Modern Premium Style
   =============================== */

/* 页面背景 - 渐变优化 */
body {
  background-color: #f5f9ff;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(236, 72, 153, 0.08), transparent 50%);
  pointer-events: none;
}

/* ===============================
   顶部标题区
   =============================== */
.pricing__title {
  width: 100%;
  font-family: Alibaba PuHuiTi, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-top: 80px;
  color: #1f2937;
  position: relative;
  background: linear-gradient(135deg, #1f2937, #4b5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing__description {
  font-weight: 400;
  font-size: 20px;
  color: rgba(31, 41, 55, 0.65);
  text-align: center;
  margin-top: 20px;
  padding-bottom: 80px;
  position: relative;
}

/* ===============================
   套餐卡片整体布局
   =============================== */
.pricing__btns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 20px;
  position: relative;
}

/* ===============================
   套餐卡片主体 - 精美升级版
   =============================== */
.meal-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 
    0 4px 6px rgba(0, 0, 0, 0.02),
    0 10px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* 卡片装饰背景 */
.meal-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.meal-card:hover::before {
  opacity: 1;
}

.meal-card:hover {
  transform: translateY(-12px);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.04);
  border-color: rgba(99, 102, 241, 0.2);
}

/* 推荐套餐 - 精美渐变边框 */
.meal-card.is-popular {
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #6366f1, #ec4899) border-box;
  border: 2px solid transparent;
  box-shadow: 
    0 8px 16px rgba(99, 102, 241, 0.15),
    0 20px 40px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.meal-card.is-popular::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  opacity: 1;
}

.meal-card.is-popular::after {
  content: "⭐ 最受欢迎";
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #ffffff;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.1);
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  }
  50% { 
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
  }
}

/* ===============================
   卡片头部 - 图标美化
   =============================== */
.meal-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.meal-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #f0f4ff, #e0e7ff);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.1);
  transition: all 0.3s ease;
  object-fit: contain;
}

.meal-card:hover .meal-card__icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 
    0 6px 16px rgba(99, 102, 241, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.meal-card.is-popular .meal-card__icon {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: rgba(255, 255, 255, 0.2);
}

.meal-card__title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: -0.5px;
}

/* ===============================
   价格区域 - 视觉焦点
   =============================== */
.meal-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 32px;
  padding: 24px 0;
  border-top: 1px solid #f3f4f6;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.meal-card__price::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, transparent);
}

.meal-card__current-price {
  font-size: 52px;
  font-weight: 800;
  color: #111827;
  line-height: 1;
  letter-spacing: -2px;
}

.meal-card.is-popular .meal-card__current-price {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.meal-card__original-price {
  font-size: 16px;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: auto;
  opacity: 0.7;
}

/* ===============================
   功能列表 - 精致样式
   =============================== */
.meal-card__features {
  flex: 1;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.meal-card__features li {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.8;
  margin-bottom: 14px;
  padding-left: 32px;
  position: relative;
  transition: all 0.2s ease;
}

.meal-card__features li:hover {
  color: #1f2937;
  transform: translateX(4px);
}

.meal-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25);
}

.meal-card.is-popular .meal-card__features li::before {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3);
}

/* ===============================
   购买按钮 - 现代化交互
   =============================== */
.meal-card__action {
  text-align: center;
  position: relative;
}

.meal-card__buy-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 12px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

.meal-card__buy-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  transform: translate(-50%, -50%);
  transition: width 0.5s, height 0.5s;
}

.meal-card__buy-btn:hover::before {
  width: 300px;
  height: 300px;
}

.meal-card__buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 20px rgba(37, 99, 235, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.meal-card__buy-btn:active {
  transform: translateY(0);
  box-shadow: 
    0 2px 8px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* 推荐套餐的按钮样式 */
.meal-card.is-popular .meal-card__buy-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 
    0 4px 12px rgba(99, 102, 241, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.meal-card.is-popular .meal-card__buy-btn:hover {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 
    0 8px 20px rgba(99, 102, 241, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ===============================
   购买信息区
   =============================== */
.purchase-information {
  padding: 24px 0 80px;
  position: relative;
}

.purchase-information > img {
  width: 350px;
  height: 33px;
  margin: 0 auto;
  display: block;
}

.purchase-information__content {
  font-family: Alibaba PuHuiTi, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: rgba(51, 51, 51, 0.6);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 80px;
  margin: 40px auto 0;
  width: 1200px;
  max-width: 100%;
}

.purchase-information__content p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  transition: all 0.2s ease;
}

.purchase-information__content p:hover {
  color: rgba(51, 51, 51, 0.8);
}

.purchase-information__content p::before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border: 2px solid #6366f1;
  transform: rotate(45deg);
  transition: all 0.2s ease;
}

.purchase-information__content p:hover::before {
  border-color: #4f46e5;
  transform: rotate(45deg) scale(1.2);
}

/* ===============================
   CTA 区域
   =============================== */
.cta {
  width: 100%;
  height: 300px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-bottom: 20px;
  position: relative;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1), transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.08), transparent 50%);
}

.cta__title {
  font-size: 48px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 24px;
  position: relative;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.cta__btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  position: relative;
}

.cta__button {
  width: 143px;
  height: 56px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  font-size: 18px;
  line-height: 52px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.cta__button:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cta__button:last-child {
  width: 251px;
  height: 56px;
  background: #ffffff;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  line-height: 56px;
  text-align: center;
  color: #6366f1;
  border: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cta__button:last-child:hover {
  background: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===============================
   响应式优化
   =============================== */
@media (max-width: 768px) {
  .pricing__title {
    font-size: 36px;
    margin-top: 60px;
  }

  .pricing__description {
    font-size: 18px;
    padding-bottom: 60px;
  }

  .pricing__btns {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .meal-card {
    padding: 32px 24px;
  }

  .meal-card__current-price {
    font-size: 44px;
  }

  .cta__title {
    font-size: 36px;
  }

  .cta__btns {
    flex-direction: column;
    gap: 16px;
  }

  .cta__button,
  .cta__button:last-child {
    width: 220px;
  }
}