/* Base styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #F5F7FA; /* Default background */
}

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

.page-download__section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #E53935;
}

.page-download__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

.page-download__highlight {
  color: #E53935;
  font-weight: bold;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F5F7FA;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}

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

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

.page-download__hero-content {
  padding: 40px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -80px; /* Adjust to slightly overlap the image for visual effect */
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.page-download__dark-section {
  background-color: #E53935;
  color: #ffffff;
}

.page-download__dark-section .page-download__section-title,
.page-download__dark-section .page-download__hero-title {
  color: #ffffff;
}

.page-download__dark-section .page-download__highlight {
  color: #FF5A4F;
}

.page-download__hero-title {
  font-weight: bold;
  margin-bottom: 15px;
  color: #ffffff;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.2;
}

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

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

.page-download__cta-buttons--centered {
  margin-top: 40px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-download__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-download__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.4);
}

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

.page-download__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(229, 57, 53, 0.2);
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-download__feature-item.page-download__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  border: 1px solid #E0E0E0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-download__feature-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

.page-download__feature-text {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
}

/* How To Download Section */
.page-download__how-to-download-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-title {
  color: #ffffff;
}

.page-download__how-to-download-section .page-download__section-intro {
  color: #f0f0f0;
}

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

.page-download__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.page-download__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-download__step-text {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-download__text-link {
  color: #FF5A4F;
  text-decoration: underline;
}

.page-download__text-link:hover {
  text-decoration: none;
}

/* Features App Section */
.page-download__features-app-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-download__feature-card.page-download__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid #E0E0E0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-download__feature-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

.page-download__feature-card-text {
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
}

/* Important Notes Section */
.page-download__important-notes-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-download__important-notes-section .page-download__section-title {
  color: #ffffff;
}

.page-download__important-notes-section .page-download__section-intro {
  color: #f0f0f0;
}

.page-download__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-download__note-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-download__note-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-download__note-text {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.7;
}

/* FAQ Section */
.page-download__faq-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-download__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #ffffff;
  user-select: none;
  list-style: none;
}

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

.page-download__faq-item[open] .page-download__faq-question {
  background-color: #E53935;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__faq-item[open] .page-download__faq-qtext {
  color: #ffffff;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-download__faq-qtext {
  flex-grow: 1;
  color: #333333;
}

.page-download__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #E53935;
  margin-left: 15px;
}

.page-download__faq-answer {
  padding: 15px 25px 20px;
  font-size: 16px;
  color: #333333;
  line-height: 1.7;
  background-color: #f9f9f9;
}

/* Related Articles Section */
.page-download__related-articles-section {
  padding: 60px 0;
  background-color: #E53935;
  color: #ffffff;
}

.page-download__related-articles-section .page-download__section-title {
  color: #ffffff;
}

.page-download__related-articles-section .page-download__section-intro {
  color: #f0f0f0;
}

.page-download__blog-masonry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
  margin-top: 40px;
}

.page-download__blog-card.page-download__card {
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid #E0E0E0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-download__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-download__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin: 20px 20px 10px;
  color: #E53935;
}

.page-download__blog-card-excerpt {
  font-size: 16px;
  color: #333333;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-download__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px;
  border: 2px solid #E53935;
  color: #E53935;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  align-self: flex-start;
}

.page-download__btn-outline:hover {
  background-color: #E53935;
  color: #ffffff;
}

.page-download__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Conclusion Section */
.page-download__conclusion-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

.page-download__conclusion-content {
  text-align: center;
  max-width: 900px;
}

/* Generic Banners Section CSS as required for '首页模块 3–6 必出 CSS 模板' */
/* This section is included to meet the strict CSS output requirement, even if these specific HTML elements are not used on this non-homepage. */
.page-download__row-games, .page-download__row-sport, .page-download__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}
.page-download__games-title, .page-download__sport-title, .page-download__coop-title {
  color: #fff;
  text-align: center;
}
.page-download__slider-wrapper {
  overflow: hidden;
}
.page-download__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}
.page-download__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
}
.page-download__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.page-download__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
.page-download__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}
.page-download__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__container {
    padding: 15px;
  }

  .page-download__hero-title {
    font-size: clamp(28px, 4.5vw, 42px);
  }

  .page-download__hero-description {
    font-size: 16px;
  }

  .page-download__download-steps {
    gap: 30px;
  }

  .page-download__features-grid,
  .page-download__features-list,
  .page-download__notes-list,
  .page-download__blog-masonry {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
  }

  .page-download__blog-card-image {
    height: 180px;
  }
}

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

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

  .page-download__section-title {
    font-size: 24px;
    margin-bottom: 15px;
  }

  .page-download__section-intro {
    font-size: 15px;
    margin-bottom: 25px;
  }

  /* HERO 主图区域 */
  .page-download__hero-section {
    padding-top: 10px; /* Specific padding-top for mobile hero */
    padding-bottom: 20px;
  }

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

  .page-download__hero-content {
    margin-top: -40px;
    padding: 25px 15px;
    border-radius: 10px;
  }

  .page-download__hero-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-download__hero-description {
    font-size: 15px;
    margin-bottom: 20px;
  }

  /* Buttons mobile adaptation */
  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary,
  .page-download a[class*="button"],
  .page-download 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: 12px 20px;
    font-size: 16px;
  }

  /* Why Download Section */
  .page-download__why-download-section {
    padding: 40px 0;
  }

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

  .page-download__feature-item.page-download__card {
    padding: 25px;
  }

  .page-download__feature-title {
    font-size: 20px;
  }

  /* How To Download Section */
  .page-download__how-to-download-section {
    padding: 40px 0;
  }

  .page-download__download-steps {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .page-download__step-title {
    font-size: 18px;
  }

  /* Features App Section */
  .page-download__features-app-section {
    padding: 40px 0;
  }

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

  .page-download__feature-card.page-download__card {
    padding: 25px;
  }

  .page-download__feature-card-title {
    font-size: 20px;
  }

  /* Important Notes Section */
  .page-download__important-notes-section {
    padding: 40px 0;
  }

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

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

  .page-download__note-title {
    font-size: 18px;
  }

  /* FAQ Section */
  .page-download__faq-section {
    padding: 40px 0;
  }

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

  .page-download__faq-toggle {
    font-size: 20px;
  }

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

  /* Related Articles Section */
  .page-download__related-articles-section {
    padding: 40px 0;
  }

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

  .page-download__blog-card-image {
    height: 180px;
  }

  .page-download__blog-card-title {
    font-size: 18px;
    margin: 15px 15px 8px;
  }

  .page-download__blog-card-excerpt {
    font-size: 15px;
    padding: 0 15px;
    margin-bottom: 15px;
  }

  .page-download__btn-outline {
    margin: 0 15px 15px;
    font-size: 15px;
    padding: 8px 15px;
  }

  .page-download__view-all-button-wrapper {
    margin-top: 30px;
  }

  /* Conclusion Section */
  .page-download__conclusion-section {
    padding: 40px 0;
  }

  /* General image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  /* Generic Banners Section CSS as required for '首页模块 3–6 必出 CSS 模板' */
  /* This section is included to meet the strict CSS output requirement, even if these specific HTML elements are not used on this non-homepage. */
  .page-download__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-download__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
  .page-download__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .page-download__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .page-download__hero-title {
    font-size: 24px;
  }

  .page-download__cta-buttons {
    gap: 10px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    font-size: 15px;
    padding: 10px 15px;
  }

  .page-download__section-title {
    font-size: 22px;
  }

  .page-download__feature-title,
  .page-download__feature-card-title {
    font-size: 18px;
  }

  .page-download__step-title,
  .page-download__note-title {
    font-size: 16px;
  }

  .page-download__faq-question {
    font-size: 15px;
    padding: 12px 15px;
  }

  .page-download__blog-card-title {
    font-size: 16px;
  }
}