.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: transparent; /* Rely on shared.css body background */
}

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

.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Minimal padding-top as body handles header offset */
  padding-bottom: 60px;
  background-color: #017439; /* Brand color as background for dark-bg */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  margin-bottom: 40px;
}

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

.page-download__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-download__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

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

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

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

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

.page-download__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.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);
  border-color: #f0f0f0;
}

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

.page-download__btn-tertiary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-download__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 40px;
  text-align: center;
  color: #ffffff; /* Default for dark sections */
}

.page-download__light-bg .page-download__section-title {
  color: #000000; /* For light background sections */
}

.page-download__why-download-section,
.page-download__features-section,
.page-download__faq-section {
  padding: 80px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text for light background */
}

.page-download__dark-bg {
  background-color: #017439; /* Brand color as background */
  color: #ffffff;
  padding: 80px 0;
}

.page-download__benefits-grid,
.page-download__features-grid,
.page-download__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__benefit-card,
.page-download__feature-card,
.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__light-bg .page-download__benefit-card,
.page-download__light-bg .page-download__feature-card,
.page-download__light-bg .page-download__security-item {
  background-color: #f8f8f8;
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.page-download__card-title,
.page-download__method-title,
.page-download__item-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-download__light-bg .page-download__card-title,
.page-download__light-bg .page-download__method-title,
.page-download__light-bg .page-download__item-title {
  color: #017439; /* Brand color for titles on light background */
}

.page-download__card-description,
.page-download__item-description {
  font-size: 1em;
  color: #e0e0e0;
}

.page-download__light-bg .page-download__card-description,
.page-download__light-bg .page-download__item-description {
  color: #555555;
}

.page-download__download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: flex-start;
}

.page-download__download-method {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  color: #ffffff;
}

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

.page-download__steps-list li {
  margin-bottom: 15px;
  font-size: 1.05em;
  line-height: 1.5;
}

.page-download__qr-image,
.page-download__app-screenshot,
.page-download__feature-image,
.page-download__security-icon {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto 0 auto;
  border-radius: 8px;
}

.page-download__security-intro {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #e0e0e0;
}

.page-download__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-download__faq-item {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  background-color: #e8e8e8;
  color: #017439;
  border-bottom: 1px solid #e0e0e0;
  list-style: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-download__faq-item[open] > .page-download__faq-question {
  border-bottom: none;
}

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

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

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

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

.page-download__cta-final-section {
  padding: 80px 0;
  text-align: center;
  background-image: url('[GALLERY:cta_download_final:1200x675:oxbetin,final_call_to_action,app_download,gaming_experience]');
  background-size: cover;
  background-position: center;
  background-color: #017439; /* Fallback color */
  position: relative;
  z-index: 0;
}

.page-download__cta-final-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 116, 57, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-download__cta-final-section .page-download__section-title {
  color: #ffffff;
}

.page-download__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

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

  .page-download__download-grid {
    grid-template-columns: 1fr;
  }

  .page-download__qr-image,
  .page-download__app-screenshot {
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .page-download__benefits-grid,
  .page-download__features-grid,
  .page-download__security-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-download__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

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

  .page-download__hero-description {
    font-size: 1em;
  }

  /* 其他内容模块 */
  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-download__why-download-section,
  .page-download__features-section,
  .page-download__faq-section,
  .page-download__dark-bg {
    padding: 60px 0;
  }

  .page-download__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  
  .page-download__hero-image-wrapper,
  .page-download__download-method,
  .page-download__benefit-card,
  .page-download__feature-card,
  .page-download__security-item,
  .page-download__faq-item,
  .page-download__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__qr-image,
  .page-download__app-screenshot {
    max-width: 80%;
  }

  /* 按钮与按钮容器 */
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download__btn-tertiary {
    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-download__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-download__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  .page-download__cta-description {
    font-size: 1em;
  }

  /* 产品展示图区域 - 此页面无 gameshow, 只有普通 grid */
  .page-download__benefits-grid,
  .page-download__features-grid,
  .page-download__security-grid {
    grid-template-columns: 1fr;
  }

  .page-download__benefit-card,
  .page-download__feature-card,
  .page-download__security-item {
    padding: 20px;
  }

  .page-download__card-title,
  .page-download__method-title,
  .page-download__item-title {
    font-size: 1.3em;
  }
}