.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Custom background color */
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-cockfighting__section-spacing {
  padding: 60px 0;
}

.page-cockfighting__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  background-color: #E53935;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Adjust as needed */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  max-width: 900px;
  color: #ffffff;
  background: linear-gradient(180deg, rgba(229, 57, 53, 0.8) 0%, rgba(255, 90, 79, 0.8) 100%);
  margin-top: -150px; /* Overlap with image slightly for visual effect */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-cockfighting__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-cockfighting__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
  border-color: #FF5A4F;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-cockfighting__section-title--light {
  color: #ffffff;
}

.page-cockfighting__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-cockfighting__section-description--light {
  color: #f0f0f0;
}

.page-cockfighting__dark-section {
  background-color: #E53935;
}

.page-cockfighting__light-bg {
  background-color: #ffffff;
}

.page-cockfighting__info-grid,
.page-cockfighting__type-grid,
.page-cockfighting__live-features,
.page-cockfighting__steps-grid,
.page-cockfighting__promotion-grid,
.page-cockfighting__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting__info-card,
.page-cockfighting__type-card,
.page-cockfighting__feature-item,
.page-cockfighting__step-item,
.page-cockfighting__promotion-card,
.page-cockfighting__advantage-item {
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #E0E0E0; /* Border */
  height: 100%;
  box-sizing: border-box;
}

.page-cockfighting__info-card:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__feature-item:hover,
.page-cockfighting__step-item:hover,
.page-cockfighting__promotion-card:hover,
.page-cockfighting__advantage-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__info-card-title,
.page-cockfighting__type-card-title,
.page-cockfighting__feature-title,
.page-cockfighting__promotion-title,
.page-cockfighting__advantage-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #E53935;
  margin-bottom: 15px;
}

.page-cockfighting__info-card-text,
.page-cockfighting__type-card-text,
.page-cockfighting__feature-text,
.page-cockfighting__step-description,
.page-cockfighting__promotion-details,
.page-cockfighting__advantage-text {
  font-size: 1rem;
  color: #333333;
}

.page-cockfighting__type-card-image,
.page-cockfighting__feature-icon,
.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting__step-item {
  position: relative;
  padding-top: 50px;
}

.page-cockfighting__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 45px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(229, 57, 53, 0.3);
}

.page-cockfighting__step-title {
  margin-top: 15px;
}

.page-cockfighting__promotion-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 25px;
  background: #E53935;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__promotion-button:hover {
  background-color: #FF5A4F;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
}

.page-cockfighting__tips-item {
  background-color: #ffffff;
  border-left: 5px solid #E53935;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
  font-size: 1rem;
}

.page-cockfighting__tips-item strong {
  color: #E53935;
}

.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #E53935;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #E0E0E0;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  border-bottom: 1px solid #E0E0E0;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  color: #E53935;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(180deg);
}

.page-cockfighting__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1rem;
  color: #333333;
  line-height: 1.6;
}

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

/* General image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==================================================================
   Responsive Styles (Desktop to Tablet/Mobile) - @media (max-width: 768px)
   ================================================================== */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 30px 20px;
  }

  .page-cockfighting__main-title {
    font-size: 2.5rem;
  }

  .page-cockfighting__hero-description {
    font-size: 1.05rem;
  }

  .page-cockfighting__section-spacing {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: 2.2rem;
  }

  .page-cockfighting__info-grid,
  .page-cockfighting__live-features,
  .page-cockfighting__steps-grid,
  .page-cockfighting__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-cockfighting__type-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-cockfighting__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Approx 10px top padding */
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }

  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust overlap for smaller screens */
    padding: 25px 15px;
    border-radius: 10px;
    max-width: 100%;
    box-sizing: border-box;
    margin-left: 15px;
    margin-right: 15px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

  .page-cockfighting__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-cockfighting__hero-cta-buttons,
  .page-cockfighting__cta-buttons--center {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__promotion-button,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 */
  .page-cockfighting__type-grid {
    grid-template-columns: 1fr; /* Single column for mobile */
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-cockfighting__type-card {
    padding: 20px;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__container,
  .page-cockfighting__section-spacing {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-cockfighting__info-grid,
  .page-cockfighting__live-features,
  .page-cockfighting__steps-grid,
  .page-cockfighting__promotion-grid,
  .page-cockfighting__advantages-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-cockfighting__info-card,
  .page-cockfighting__type-card,
  .page-cockfighting__feature-item,
  .page-cockfighting__step-item,
  .page-cockfighting__promotion-card,
  .page-cockfighting__advantage-item {
    padding: 20px;
  }

  .page-cockfighting__info-card-title,
  .page-cockfighting__type-card-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__promotion-title,
  .page-cockfighting__advantage-title {
    font-size: 1.25rem;
  }

  .page-cockfighting__step-number {
    width: 40px;
    height: 40px;
    font-size: 1.3rem;
  }

  .page-cockfighting__tips-list {
    padding: 0 15px;
  }

  .page-cockfighting__tips-item {
    padding: 15px;
    font-size: 0.95rem;
  }

  .page-cockfighting__faq-list {
    padding: 0 15px;
  }

  .page-cockfighting__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px 20px;
    font-size: 0.95rem;
  }

  /* Mobile specific padding for all sections */
  .page-cockfighting__introduction,
  .page-cockfighting__game-types,
  .page-cockfighting__live-experience,
  .page-cockfighting__how-to-play,
  .page-cockfighting__promotions,
  .page-cockfighting__tips,
  .page-cockfighting__faq-section,
  .page-cockfighting__why-choose {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}