.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--background);
}

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

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

.page-cockfighting__dark-section {
  background-color: var(--background);
  color: var(--text-main);
  padding: 60px 0;
}

.page-cockfighting__text-main {
  color: var(--text-main);
}

.page-cockfighting__text-secondary {
  color: var(--text-secondary);
}

.page-cockfighting__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__section-title {
  font-size: 2.2em;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-main);
}

.page-cockfighting__subtitle {
  font-size: 1.2em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-cockfighting__hero-section {
  padding-top: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 40px 20px;
  text-align: center;
  background: var(--background);
  width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 200px; /* Limit button width for desktop */
  white-space: nowrap;
}

.page-cockfighting__btn-primary {
  background: var(--button);
  color: var(--text-main);
  border: none;
}

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: none;
  color: var(--main-color);
  border: 2px solid var(--border);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--main-color);
  color: var(--text-main);
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
  max-width: 150px;
}

.page-cockfighting__logo-carousel-section {
  padding: 50px 0 30px;
  background-color: var(--background);
}

.page-cockfighting__logo-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
}

.page-cockfighting__logo-item {
  width: 80px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-cockfighting__logo-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__logo-item img {
  max-width: 60px;
  max-height: 60px;
  object-fit: contain;
}

.page-cockfighting__games-section {
  padding: 60px 0;
}

.page-cockfighting__games-layout {
  display: flex;
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__featured-game-card {
  flex: 2;
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__featured-game-image {
  width: 100%;
  height: 400px;
  aspect-ratio: 7/4;
  overflow: hidden;
}

.page-cockfighting__featured-game-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-cockfighting__featured-game-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-cockfighting__game-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__game-card-image {
  width: 100%;
  height: 180px;
  aspect-ratio: 3/2;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.page-cockfighting__game-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-cockfighting__game-card-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
}

.page-cockfighting__bonuses-section {
  padding: 60px 0;
}

.page-cockfighting__bonuses-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-cockfighting__bonuses-text {
  flex: 1;
}

.page-cockfighting__bonuses-image {
  flex: 1;
  text-align: center;
}

.page-cockfighting__bonuses-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__bonus-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-cockfighting__bonus-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.page-cockfighting__bonus-list li::before {
  content: '✓';
  color: var(--glow);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-cockfighting__security-section {
  padding: 60px 0;
}

.page-cockfighting__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__security-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__security-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-main);
}

.page-cockfighting__security-image-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__mobile-section {
  padding: 60px 0;
}

.page-cockfighting__mobile-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-cockfighting__mobile-image {
  flex: 1;
  text-align: center;
}

.page-cockfighting__mobile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__mobile-text {
  flex: 1;
}

.page-cockfighting__mobile-features-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-cockfighting__mobile-features-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: var(--text-secondary);
}

.page-cockfighting__mobile-features-list li::before {
  content: '📱';
  position: absolute;
  left: 0;
}

.page-cockfighting__faq-section {
  padding: 60px 0;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-secondary);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  color: var(--text-main);
  position: relative;
  list-style: none;
}

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

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

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary);
}

.page-cockfighting__faq-answer p {
  margin-top: 0;
  margin-bottom: 0;
}

.page-cockfighting__cta-final-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__cta-final-section .page-cockfighting__cta-buttons {
  margin-top: 40px;
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 2.5em;
  }

  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__games-layout {
    flex-direction: column;
  }

  .page-cockfighting__featured-game-image {
    height: 300px;
  }

  .page-cockfighting__bonuses-content,
  .page-cockfighting__mobile-content {
    flex-direction: column;
  }

  .page-cockfighting__bonuses-image,
  .page-cockfighting__mobile-image {
    order: -1; /* Image first on mobile */
    margin-bottom: 30px;
  }

  .page-cockfighting__mobile-image img {
    max-width: 80%;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 15px;
    line-height: 1.5;
  }

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

  .page-cockfighting__main-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-cockfighting__section-title {
    font-size: 1.6em;
    margin-bottom: 30px;
  }

  .page-cockfighting__subtitle {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  /* LOGO 轮播区域 */
  .page-cockfighting__logo-carousel-section {
    padding: 50px 15px 20px;
  }

  .page-cockfighting__logo-carousel {
    gap: 15px;
  }

  .page-cockfighting__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
  }

  /* HERO 主图区域 */
  .page-cockfighting__hero-section {
    padding-top: 0 !important;
    min-height: auto;
  }

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

  .page-cockfighting__hero-content {
    padding: 25px 15px;
  }

  /* 游戏展示区域 */
  .page-cockfighting__games-section {
    padding: 40px 0;
  }

  .page-cockfighting__games-layout {
    gap: 20px;
  }

  .page-cockfighting__featured-game-card {
    padding: 0;
  }

  .page-cockfighting__featured-game-image {
    height: 200px;
  }

  .page-cockfighting__featured-game-content {
    padding: 20px;
  }

  .page-cockfighting__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__game-card {
    padding: 15px;
  }

  .page-cockfighting__game-card-image {
    height: 150px;
  }

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

  /* 🚨 游戏大图/卡片缩略图：须覆盖上一段，禁止被 height:auto 破坏裁切（父级为 aspect-ratio 或固定高） */
  .page-cockfighting__game-card-image img,
  .page-cockfighting__featured-game-image img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  /* 🚨 注意：必须排除 .page-cockfighting__logo-item，保持其80x80固定尺寸 */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 按钮与按钮容器 */
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 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__bonuses-content,
  .page-cockfighting__mobile-content {
    gap: 30px;
  }

  .page-cockfighting__bonuses-section,
  .page-cockfighting__security-section,
  .page-cockfighting__mobile-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

  .page-cockfighting__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__security-item {
    padding: 25px;
  }

  .page-cockfighting__faq-question {
    padding: 18px 20px;
    font-size: 1em;
  }

  .page-cockfighting__faq-answer {
    padding: 0 20px 18px;
  }
}

/* Custom Colors */
:root {
  --main-color: #11A84E;
  --accent-color: #22C768;
  --button: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border: #2E7A4E;
  --glow: #57E38D;
  --gold: #F2C14E;
  --divider: #1E3A2A;
  --deep-green: #0A4B2C;
}