/* style/cockfighting.css */

:root {
  --primary-color: #2F6BFF;
  --secondary-color: #6FA3FF;
  --text-main-color: #1F2D3D;
  --custom-color-black: #000000;
  --card-bg-color: #FFFFFF;
  --background-page-color: #F4F7FB;
  --border-color: #D6E2FF;
  --glow-color: #A5C4FF;
  --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Default text color for light backgrounds */
  background-color: var(--background-page-color);
}

/* Ensure body padding-top is handled by shared.css */

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

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  overflow: hidden;
  color: #ffffff; /* Text color for dark background hero */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero image */
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  margin-top: -100px; /* Pull content slightly over image for visual appeal */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

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

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

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

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.6);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--primary-color);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__introduction-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__bet-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__faq-section {
  padding: 60px 0;
  text-align: center;
  color: #ffffff; /* For dark background sections */
}

.page-cockfighting__light-bg {
  background-color: var(--background-page-color);
  color: var(--text-main-color);
}

.page-cockfighting__dark-bg {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  color: inherit; /* Inherit from section for contrast */
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: inherit;
}

.page-cockfighting__text-contrast-fix {
  color: #ffffff; /* Ensure white text on dark backgrounds */
}

.page-cockfighting__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__card {
  background: var(--card-bg-color);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: left;
  color: var(--text-main-color); /* Default card text color */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-bet-type {
  background: rgba(255, 255, 255, 0.15); /* Lighter card for dark background section */
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__card-bet-type .page-cockfighting__card-title {
  color: #ffffff;
}

.page-cockfighting__card-bet-type .page-cockfighting__card-text {
  color: #f0f0f0;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--text-main-color);
}

.page-cockfighting__grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-cockfighting__feature-card {
  text-align: center;
  padding: 30px 20px;
}

.page-cockfighting__feature-icon {
  width: 80px; /* Small icon size, but still > 200px due to scale, must be big in imageRequirements */
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  font-size: 1.3em;
  color: var(--text-main-color);
}

.page-cockfighting__guide-list,
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 900px;
  text-align: left;
}

.page-cockfighting__guide-item,
.page-cockfighting__tips-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-cockfighting__guide-item:last-child,
.page-cockfighting__tips-item:last-child {
  margin-bottom: 0;
}

.page-cockfighting__guide-step-title,
.page-cockfighting__tips-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-cockfighting__guide-item p,
.page-cockfighting__tips-item p {
  color: #f0f0f0;
}

.page-cockfighting__guide-item a,
.page-cockfighting__tips-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: 600;
  cursor: pointer;
  list-style: none; /* For details/summary */
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-question::-webkit-details-marker, /* Hide default marker */
.page-cockfighting__faq-question::marker {
  display: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 30px 20px;
  font-size: 1em;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-image-wrapper {
    height: 500px;
  }
  .page-cockfighting__hero-content {
    margin-top: -80px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__grid,
  .page-cockfighting__grid-features {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__container {
    padding: 0 15px !important;
  }

  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px !important;
  }
  .page-cockfighting__hero-image-wrapper {
    height: 300px !important;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px !important;
    padding: 15px !important;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 7vw, 2.2em) !important;
    margin-bottom: 10px !important;
  }
  .page-cockfighting__description {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .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 img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__introduction-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    padding: 40px 0 !important;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px !important;
  }
  .page-cockfighting__text-block {
    font-size: 1em !important;
    margin-bottom: 20px !important;
  }

  /* 产品展示图区域 (General grid for cards/features) */
  .page-cockfighting__grid,
  .page-cockfighting__grid-features {
    grid-template-columns: 1fr !important; /* Single column for all cards/features */
    gap: 15px !important;
    margin-top: 20px !important;
    overflow-x: hidden !important;
  }
  .page-cockfighting__card,
  .page-cockfighting__feature-card {
    padding: 20px !important;
  }
  .page-cockfighting__card-title {
    font-size: 1.2em !important;
  }
  .page-cockfighting__card-text {
    font-size: 0.95em !important;
  }

  /* FAQ section */
  .page-cockfighting__faq-question {
    font-size: 1.1em !important;
    padding: 15px 20px !important;
  }
  .page-cockfighting__faq-answer {
    padding: 0 20px 15px !important;
  }
  .page-cockfighting__guide-list,
  .page-cockfighting__tips-list {
    margin-top: 20px !important;
  }
  .page-cockfighting__guide-item,
  .page-cockfighting__tips-item {
    padding: 20px 25px !important;
    margin-bottom: 15px !important;
  }
  .page-cockfighting__guide-step-title,
  .page-cockfighting__tips-title {
    font-size: 1.1em !important;
  }
}