.pricing-detail-hero {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.pricing-detail-gallery {
  width: 100%;
  min-width: 0; /* Fix flex/grid overflow issue */
}

.pricing-detail-gallery .mySwiper2 {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.pricing-detail-gallery .mySwiper {
  width: 100%;
  height: 90px;
  box-sizing: border-box;
  padding: 0;
}

.pricing-detail-gallery .mySwiper .swiper-slide {
  width: 25%;
  height: 100%;
  opacity: 0.6;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: opacity 0.3s;
}

.pricing-detail-gallery .mySwiper .swiper-slide:hover {
  opacity: 1;
}

.pricing-detail-gallery .mySwiper .swiper-slide-thumb-active {
  opacity: 1;
  border: 2px solid #bd134f;
}

.pricing-detail-gallery .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pricing-detail-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
}

.pricing-detail-actions {
  margin-top: 1.5rem;
}

.pricing-pay-now-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 2rem;
  border-radius: 999px;
  background-color: #bd134f;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(189, 19, 79, 0.25);
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.pricing-pay-now-btn:hover {
  background-color: #a01144;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px rgba(189, 19, 79, 0.3), 0 4px 6px -2px rgba(189, 19, 79, 0.1);
  color: #fff;
}

.pricing-pay-now-btn:active {
  transform: translateY(0);
}

.pricing-detail-tabs-section {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 1.5rem;
}

.pricing-tabs-nav {
  display: flex;
  gap: 2rem;
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 2rem;
}

.pricing-tab-btn {
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: #6b7280;
  padding: 0.75rem 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

.pricing-tab-btn::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #bd134f;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.pricing-tab-btn.active {
  color: #bd134f;
}

.pricing-tab-btn.active::after {
  transform: scaleX(1);
}

.pricing-tab-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.pricing-tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .pricing-detail-hero {
    grid-template-columns: 1fr;
    margin: 1rem auto;
    padding: 0 1rem;
    gap: 1.5rem;
  }
  
  .pricing-detail-title {
    font-size: 1.75rem;
    text-align: center;
    margin-top: 1rem;
    line-height: 1.2;
  }

  .pricing-detail-actions {
    margin-top: 1.5rem;
    text-align: center;
  }

  .pricing-pay-now-btn {
    width: auto;
    max-width: 100%;
    min-width: 200px;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    font-size: 0.95rem;
    box-sizing: border-box; /* Ensure padding doesn't increase width */
  }

  .pricing-detail-tabs-section {
    margin: 2.5rem auto;
    padding: 0 1rem;
  }

  .pricing-tabs-nav {
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px; /* Prevent scrollbar hiding bottom border */
  }

  .pricing-tab-btn {
    font-size: 1rem;
    padding: 0.6rem 0;
    flex-shrink: 0;
  }
  
  /* 轮播图移动端优化 */
  .pricing-detail-gallery .mySwiper2 {
    height: 300px;
    margin-bottom: 8px;
  }
  
  .pricing-detail-gallery .mySwiper {
    height: 60px;
  }
  
  .pricing-detail-gallery .mySwiper .swiper-slide {
    width: 22%;
  }
}

@media (max-width: 480px) {
  .pricing-detail-gallery .mySwiper2 {
    height: 240px;
  }
}

/* Case Grid Styles */
.fly-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.fly-case-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e5e7eb;
}

.fly-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.fly-case-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.fly-case-thumbnail {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f3f4f6;
}

.fly-case-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.fly-case-card:hover .fly-case-thumbnail img {
  transform: scale(1.05);
}

.fly-case-placeholder {
  width: 100%;
  height: 100%;
  background: #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fly-case-placeholder::after {
  content: '\f128'; /* Dashicon image-filter */
  font-family: dashicons;
  font-size: 32px;
  color: #9ca3af;
}

.fly-case-info {
  padding: 15px;
}

.fly-case-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fly-case-excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}

@media (max-width: 992px) {
  .fly-cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .fly-cases-grid {
    grid-template-columns: 1fr;
  }
}
