.page-download {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background-color: #FFFFFF;
  padding-bottom: 30px; /* Ensure space above footer */
}

.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 40px; /* Small top padding, more bottom padding */
  color: #FFFFFF;
  text-align: center;
  overflow: hidden;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/5; /* 1920x600 */
  object-fit: cover;
  object-position: center;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-download__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  z-index: 2;
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
  border-radius: 8px;
}

/* Adjust hero content for "上图下文, 禁止叠字" rule */
/* The previous CSS for hero-content would cause text to overlap the image. */
/* Re-structuring to follow the "上图下文" rule. */
/* The image and content blocks must be siblings in normal flow. */
/* The current HTML structure has .page-download__hero-image and .page-download__hero-content as siblings within .page-download__hero-section. */
/* The 'position: absolute' on .page-download__hero-content is violating the "禁止叠字" rule. */
/* Let's remove absolute positioning for the content and place it below the image within the hero section. */

.page-download__hero-section {
  display: flex;
  flex-direction: column; /* Stacks image and content vertically */
  align-items: center;
  padding: 10px 0 40px;
  color: #333; /* Default text color, adjust for contrast if needed */
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Example background for hero section */
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  aspect-ratio: 16/5; /* 1920x600 */
  object-fit: cover;
  object-position: center;
  display: block;
  /* filter: brightness(0.7); /* Removed filter as per rule to keep original image colors */
}

.page-download__hero-content {
  position: relative; /* Remove absolute positioning */
  max-width: 1200px; /* Constrain width */
  margin-top: 20px; /* Space between image and text */
  padding: 20px;
  color: #FFFFFF; /* Text color for hero content */
  /* background-color: rgba(0, 0, 0, 0.4); /* Removed background as per rule, text on solid background */
  border-radius: 8px;
}

.page-download__main-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem); /* Adjusted H1 font size with clamp */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Register and Login font color for H1 */
}

.page-download__hero-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

.page-download__hero-buttons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.page-download__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.page-download__btn--download {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-download__btn--download:hover {
  background-color: #e02a2a;
  border-color: #e02a2a;
}

.page-download__section {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
  text-align: center;
}

.page-download__section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem); /* Adjusted H2 font size */
  font-weight: bold;
  margin-bottom: 15px;
  color: #017439;
}

.page-download__section-description {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #555;
}

.page-download__download-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: left;
}

.page-download__step-item {
  background-color: #f9f9f9;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-download__step-title {
  font-size: 1.3rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__platform-images {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-download__platform-image {
  width: 100%; /* Default to full width on small screens */
  max-width: 400px; /* Max width for images */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-download__app-features {
  background-color: #f0f8f0;
  padding: 60px 20px;
}

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

.page-download__feature-card {
  background-color: #FFFFFF;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.page-download__feature-icon {
  width: 100%;
  max-width: 300px; /* Ensure images are not too small */
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-download__feature-heading {
  font-size: 1.2rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__faq-list {
  text-align: left;
  max-width: 800px;
  margin: 30px auto 0;
}

.page-download__faq-item {
  background-color: #f9f9f9;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.page-download__faq-question {
  font-size: 1.1rem;
  color: #017439;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-download__faq-answer {
  font-size: 1rem;
  color: #555;
}

.page-download__cta-section {
  background-color: #017439;
  color: #FFFFFF;
  padding: 60px 20px;
  text-align: center;
}

.page-download__cta-title {
  font-size: clamp(1.6rem, 4.5vw, 2.5rem); /* Adjusted H2 font size */
  font-weight: bold;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-download__cta-description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFFFFF;
}

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

/* Responsive adjustments */
@media (max-width: 849px) {
  .page-download__main-title {
    font-size: clamp(1.5rem, 6vw, 2.5rem);
  }
  .page-download__section-title,
  .page-download__cta-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }
  .page-download__hero-buttons,
  .page-download__cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-download__btn {
    width: 80%;
    max-width: 300px;
  }
  .page-download__download-steps,
  .page-download__features-grid {
    grid-template-columns: 1fr;
  }
  .page-download__platform-images {
    flex-direction: column;
    align-items: center;
  }
  .page-download__platform-image {
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-download__hero-image,
  .page-download__platform-image,
  .page-download__feature-icon {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 549px) {
  .page-download__main-title {
    font-size: clamp(1.2rem, 7vw, 2rem);
  }
  .page-download__hero-description,
  .page-download__section-description,
  .page-download__cta-description {
    font-size: 0.95rem;
  }
  .page-download__btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  .page-download__section,
  .page-download__app-features,
  .page-download__cta-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-download__hero-content {
    padding: 15px;
  }
}

/* Ensure all images in content area are at least 200px wide */
.page-download img:not(.page-download__hero-image) {
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* Use contain for icons/logos, cover for content images */
}

/* Override specific images for better display */
.page-download__platform-image,
.page-download__feature-icon {
  object-fit: cover;
}

/* Mobile content area overflow prevention */
@media (max-width: 768px) {
  .page-download img {
    max-width: 100%;
    height: auto;
  }
  .page-download {
    overflow-x: hidden;
  }
}