/* style/casino.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Root variables for consistent styling */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --border-color: #e0e0e0;
  --bg-light: #f9f9f9;
  --bg-dark: #26A9E0; /* Using primary color for dark sections */
  --btn-login-color: #EA7C07;
}

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

/* Fixed header spacing (Desktop) */
.page-casino__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

/* --- Hero Section --- */
.page-casino__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 60px; /* Add some bottom padding */
  background: linear-gradient(135deg, var(--primary-color) 0%, #3ebee7 100%); /* Gradient background for hero */
  color: var(--light-text-color);
}

.page-casino__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-casino__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-casino__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-casino__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--light-text-color);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-casino__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--light-text-color);
}

.page-casino__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-casino__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  box-sizing: border-box;
}

.page-casino__cta-button--primary {
  background: var(--btn-login-color); /* Custom login color */
  color: var(--light-text-color);
  border: 2px solid var(--btn-login-color);
  box-shadow: 0 4px 15px rgba(234, 124, 7, 0.4);
}

.page-casino__cta-button--primary:hover {
  background: #d46c06;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(234, 124, 7, 0.5);
}

.page-casino__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-casino__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* --- General Section Styling --- */
.page-casino__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  color: var(--primary-color);
}

.page-casino__text-block {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

.page-casino__light-bg {
  background-color: var(--bg-light);
  color: var(--dark-text-color);
}

.page-casino__dark-bg {
  background-color: var(--bg-dark);
  color: var(--light-text-color);
}

.page-casino__dark-bg .page-casino__section-title,
.page-casino__dark-bg .page-casino__text-block,
.page-casino__dark-bg .page-casino__feature-title,
.page-casino__dark-bg .page-casino__game-title,
.page-casino__dark-bg .page-casino__info-title,
.page-casino__dark-bg .page-casino__news-title a,
.page-casino__dark-bg .page-casino__news-excerpt,
.page-casino__dark-bg .page-casino__news-date,
.page-casino__dark-bg .page-casino p {
  color: var(--light-text-color);
}

/* --- Introduction Section --- */
.page-casino__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__feature-item {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-casino__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__feature-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain; /* Use contain for icons/logos */
  border-radius: 50%; /* Circular images */
  border: 3px solid var(--primary-color);
  padding: 5px;
  background-color: var(--secondary-color);
}

.page-casino__feature-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
}

/* --- Games Section --- */
.page-casino__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__game-card {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark bg */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-casino__game-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__game-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: var(--light-text-color);
  font-weight: 700;
}

.page-casino__game-card p {
  flex-grow: 1; /* Allow paragraph to take up available space */
  margin-bottom: 20px;
}

.page-casino__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--btn-login-color);
  color: var(--light-text-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--btn-login-color);
  margin-top: auto; /* Push button to bottom */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-primary:hover {
  background: #d46c06;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 124, 7, 0.3);
}

/* --- Promotions Section --- */
.page-casino__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-casino__promo-card {
  background: var(--secondary-color);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-casino__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.page-casino__promo-card img {
  width: 100%;
   /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-casino__promo-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--primary-color);
  font-weight: 700;
}

.page-casino__promo-card p {
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-casino__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  margin-top: auto; /* Push button to bottom */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button fits */
  white-space: normal;
  word-wrap: break-word;
}

.page-casino__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-casino__btn-centered {
  display: block;
  margin: 50px auto 0 auto;
  width: fit-content;
  min-width: 200px;
}

/* --- Security & Support Section --- */
.page-casino__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-casino__info-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-casino__info-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-casino__info-item img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid var(--light-text-color);
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.2);
}

.page-casino__info-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: var(--light-text-color);
  font-weight: 700;
}

/* --- FAQ Section --- */
.page-casino__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-casino__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.page-casino__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--secondary-color);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-casino__faq-question:hover {
  background: var(--bg-light);
}

.page-casino__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  color: var(--dark-text-color);
  pointer-events: none;
}

.page-casino__faq-toggle {
  font-size: 2em;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-casino__faq-item.active .page-casino__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
  color: var(--btn-login-color); /* Highlight color when active */
}

.page-casino__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: var(--bg-light);
  color: var(--dark-text-color);
}

.page-casino__faq-item.active .page-casino__faq-answer {
  max-height: 2000px !important; /* Sufficiently large */
  padding: 20px 25px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color);
  border-radius: 0 0 8px 8px;
}

/* --- News Section --- */
.page-casino__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-casino__news-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.page-casino__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.page-casino__news-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-casino__news-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-casino__news-title {
  font-size: 1.5em;
  margin-top: 0;
  margin-bottom: 10px;
  font-weight: 700;
}

.page-casino__news-title a {
  color: var(--light-text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-casino__news-title a:hover {
  color: var(--primary-color);
}

.page-casino__news-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-casino__news-date {
  font-size: 0.85em;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  margin-top: auto;
}

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

  /* Fixed header spacing (Mobile) */
  .page-casino__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-casino__container {
    padding: 30px 15px;
  }

  .page-casino__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-casino__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-casino__hero-image {
    border-radius: 8px;
    margin-bottom: 20px;
  }

  .page-casino__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-casino__cta-button {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 1em;
    min-width: unset;
  }

  .page-casino__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

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

  .page-casino__features,
  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__info-grid,
  .page-casino__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-casino__feature-item,
  .page-casino__game-card,
  .page-casino__promo-card,
  .page-casino__info-item,
  .page-casino__news-card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-casino__feature-item img,
  .page-casino__info-item img {
    
    
    margin-bottom: 15px;
  }

  .page-casino__feature-title,
  .page-casino__game-title,
  .page-casino__promo-title,
  .page-casino__info-title {
    font-size: 1.4em;
    margin-bottom: 10px;
  }

  .page-casino__game-card img,
  .page-casino__promo-card img,
  .page-casino__news-card img {
     /* Adjust image height for mobile cards */
    border-radius: 6px;
    margin-bottom: 15px;
  }

  .page-casino__btn-primary,
  .page-casino__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 10px 20px;
    font-size: 0.95em;
  }
  
  .page-casino__btn-centered {
    margin-top: 30px;
    min-width: unset;
    width: 100%;
  }

  /* FAQ Mobile Styles */
  .page-casino__faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
  }

  .page-casino__faq-question {
    padding: 15px 20px;
  }

  .page-casino__faq-question h3 {
    font-size: 1.1em;
  }

  .page-casino__faq-toggle {
    font-size: 1.8em;
    width: 25px;
    height: 25px;
  }

  .page-casino__faq-item.active .page-casino__faq-answer {
    padding: 15px 20px !important;
  }
  
  /* Ensure all images are responsive and do not overflow */
  .page-casino img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-casino__introduction-section,
  .page-casino__games-section,
  .page-casino__promotions-section,
  .page-casino__security-support-section,
  .page-casino__faq-section,
  .page-casino__news-section,
  .page-casino__container,
  .page-casino__hero-container,
  .page-casino__hero-content,
  .page-casino__hero-image,
  .page-casino__features,
  .page-casino__game-categories,
  .page-casino__promo-grid,
  .page-casino__info-grid,
  .page-casino__news-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  /* Specific padding for sections if needed, as container has padding already */
  .page-casino__introduction-section .page-casino__container,
  .page-casino__games-section .page-casino__container,
  .page-casino__promotions-section .page-casino__container,
  .page-casino__security-support-section .page-casino__container,
  .page-casino__faq-section .page-casino__container,
  .page-casino__news-section .page-casino__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure button containers allow wrapping */
  .page-casino__hero-cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
  }
}

/* Color Contrast Fixes (if needed) */
.page-casino__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-casino__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}