.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure this matches shared.css body background */
}

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

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

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Adjusted for shared header padding */
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for aesthetic */
  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: 20px;
  max-width: 900px;
  margin-top: -150px; /* Overlap slightly for visual effect, but not text on image */
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 10px;
}

.page-cockfighting__hero-title {
  font-weight: 700;
  color: #FFFF00; /* Register/Login font color for emphasis */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
}

.page-cockfighting__hero-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.3;
}

.page-cockfighting__intro-section .page-cockfighting__section-title,
.page-cockfighting__tips-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title {
  color: #017439;
}

.page-cockfighting__bet-types-section .page-cockfighting__section-title,
.page-cockfighting__download-section .page-cockfighting__section-title,
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: #FFFF00;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit;
}

.page-cockfighting__content-grid {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.page-cockfighting__text-block {
  flex: 2;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: inherit;
}

.page-cockfighting__image-block {
  flex: 1;
  min-width: 200px; /* Minimum size for content images */
}

.page-cockfighting__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-cockfighting__bet-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__bet-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__bet-card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-cockfighting__bet-card p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-cockfighting__cta-wrapper {
  text-align: center;
  margin-top: 30px;
}

.page-cockfighting__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__tip-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  text-align: center;
  color: #333333;
}

.page-cockfighting__tip-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  display: block;
}

.page-cockfighting__tip-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #017439;
}

.page-cockfighting__tip-item p {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
}

.page-cockfighting__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-cockfighting__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-cockfighting__step-item p {
  font-size: 1em;
  line-height: 1.5;
  color: #f0f0f0;
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: #017439;
  background-color: #e6ffe6; /* Lighter green for summary */
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  content: '−';
}

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

.page-cockfighting__conclusion-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
  color: #FFFF00;
}

/* --- General Image Sizing for Content Area --- */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* --- Mobile Responsive Styles --- */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-cockfighting__hero-image-wrapper {
    max-height: 400px;
  }
  .page-cockfighting__hero-content {
    margin-top: -80px !important;
    padding: 15px !important;
  }
  .page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
    margin-bottom: 10px !important;
  }
  .page-cockfighting__hero-description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }
  .page-cockfighting__hero-cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px; /* Add padding to container itself */
    box-sizing: border-box !important;
  }

  /* 产品展示图区域 (General content grid for images and text) */
  .page-cockfighting__content-grid {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .page-cockfighting__image-block {
    width: 100% !important;
  }
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__download-steps {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .page-cockfighting__bet-card,
  .page-cockfighting__tip-item,
  .page-cockfighting__step-item {
    padding: 20px !important;
  }
  .page-cockfighting__tip-image {
    height: auto !important;
  }

  /* 通用图片与容器 */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__text-block,
  .page-cockfighting__image-block,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__download-steps,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
  }
  .page-cockfighting__cta-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
  }

  /* 其他内容模块 */
  .page-cockfighting__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  .page-cockfighting__section-description {
    font-size: 0.95em !important;
    margin-bottom: 30px !important;
  }
  .page-cockfighting p,
  .page-cockfighting li {
    font-size: 15px !important;
  }
  .page-cockfighting__faq-question {
    font-size: 1em !important;
    padding: 15px 20px !important;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 20px 15px !important;
  }
  .page-cockfighting__tip-title,
  .page-cockfighting__bet-card-title,
  .page-cockfighting__step-title {
    font-size: 1.2em !important;
  }
}