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

/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Matches body background from shared.css */
}

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

/* Section styling */
.page-download__hero-section,
.page-download__advantages-section,
.page-download__guide-section,
.page-download__app-features-section,
.page-download__promotions-section,
.page-download__responsible-gaming-section,
.page-download__faq-section,
.page-download__final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark for sections */
  color: #ffffff;
}

.page-download__light-bg {
  background-color: #2a2a2a; /* Another shade for contrast */
  color: #ffffff;
}

/* Hero Section */
.page-download__hero-section {
  padding-top: calc(var(--header-offset, 120px) + 80px); /* Ensure space for fixed header */
  background-image: url('[GALLERY:hero_bg:1920x1080:bj66 casino,app download,hero background,abstract green,dark theme]');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.page-download__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay */
    z-index: 1;
}

.page-download__hero-section > .page-download__container {
    position: relative;
    z-index: 2;
}

.page-download__main-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #C30808; /* Red for primary action */
  color: #FFFF00; /* Yellow font for register/login */
  border: 2px solid #C30808;
}

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

.page-download__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-download__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-download__hero-image {
  max-width: 800px;
  height: auto;
  margin-top: 30px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: block; /* Ensure it behaves as a block element */
  margin-left: auto;
  margin-right: auto;
}

/* General section titles and text blocks */
.page-download__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand green for titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__text-block {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-download__feature-card {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
}

.page-download__feature-icon {
  width: 200px; /* Adjusted to meet minimum size requirement */
  height: 200px; /* Adjusted to meet minimum size requirement */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-download__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-download__card-text {
  font-size: 1em;
  color: #cccccc;
}

/* Download Guide Section */
.page-download__download-platforms {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__platform-card {
  background-color: #1a1a1a;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

.page-download__qr-code-wrapper {
  margin: 20px auto;
  width: 250px;
  height: 250px;
  border: 5px solid #017439;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-download__steps-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  text-align: left;
  color: #cccccc;
}

.page-download__steps-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
  position: relative;
  padding-left: 30px;
}

.page-download__steps-list li::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  background-color: #017439;
  color: #ffffff;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 0.9em;
}

/* App Features List Grid */
.page-download__features-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-download__feature-item {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-download__feature-list-icon {
  width: 200px; /* Minimum size requirement */
  height: 200px; /* Minimum size requirement */
  object-fit: contain;
  margin-bottom: 15px;
  border-radius: 8px;
  align-self: center; /* Center the icon */
}

.page-download__item-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  align-self: center; /* Center the title */
}

.page-download__item-text {
  font-size: 1em;
  color: #cccccc;
  text-align: center; /* Center the text */
}

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

.page-download__promo-card {
  background-color: #1a1a1a;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-download__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistent card look */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-download__promo-card .page-download__btn-primary {
    margin-top: 20px;
    align-self: center;
}

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

/* Responsible Gaming Section */
.page-download__responsible-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

/* FAQ Section */
.page-download__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-download__faq-item {
  background-color: #1a1a1a;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  color: #ffffff;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #2a2a2a;
  border-bottom: 1px solid #3a3a3a;
  list-style: none; /* For details/summary */
}

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

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

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg); /* Rotate + to X when open */
}

.page-download__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #cccccc;
  background-color: #1a1a1a;
}

/* Final CTA Section */
.page-download__final-cta-section .page-download__cta-buttons {
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__main-title {
    font-size: 3em;
  }

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

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

  .page-download__hero-section {
    padding-top: calc(var(--header-offset, 120px) + 40px);
    padding-bottom: 40px;
  }

  .page-download__main-title {
    font-size: 2.2em;
  }

  .page-download__description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }

  .page-download__hero-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
  }

  .page-download__section-title {
    font-size: 1.8em;
  }

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

  .page-download__features-grid,
  .page-download__download-platforms,
  .page-download__features-list-grid,
  .page-download__promo-grid,
  .page-download__responsible-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-card,
  .page-download__platform-card,
  .page-download__feature-item,
  .page-download__promo-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__feature-icon,
  .page-download__feature-list-icon {
    width: 200px !important;
    height: 200px !important;
    max-width: 100% !important;
    height: auto !important;
  }

  .page-download__promo-image {
    height: auto !important; /* Allow height to adjust for smaller screens */
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-download__qr-code-wrapper {
    width: 200px;
    height: 200px;
  }

  .page-download__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    font-size: 1em;
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-download__main-title {
    font-size: 1.8em;
  }

  .page-download__section-title {
    font-size: 1.5em;
  }
  .page-download__hero-section,
  .page-download__advantages-section,
  .page-download__guide-section,
  .page-download__app-features-section,
  .page-download__promotions-section,
  .page-download__responsible-gaming-section,
  .page-download__faq-section,
  .page-download__final-cta-section {
    padding: 50px 0;
  }
}