.page-download {
  background-color: #0A0A0A; /* Background color */
  color: #FFF6D6; /* Main text color */
  font-family: Arial, sans-serif; /* Roboto气质，这里用Arial作为通用无衬线 */
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column; /* Default to column for mobile first, then adjust for desktop */
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Minimal top padding, then adjust */
  position: relative;
  overflow: hidden;
  min-height: 500px; /* Minimum height for hero */
}

.page-download__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  order: 1; /* Image first */
  margin-bottom: 20px;
}

.page-download__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
}

.page-download__hero-content {
  order: 2; /* Content after image */
  max-width: 900px;
  width: 100%;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-download__main-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); /* Use clamp for h1 font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color for important titles */
}

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

.page-download__hero-cta-group {
  display: flex;
  flex-direction: column; /* Stack buttons on mobile */
  gap: 15px;
  margin-top: 20px;
}

/* Buttons */
.page-download__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  min-height: 44px; /* Touch target size */
  width: 100%; /* Full width on mobile */
  max-width: 300px; /* Max width for buttons */
  margin: 0 auto; /* Center buttons */
  transition: all 0.3s ease;
  box-sizing: border-box;
  color: #100224; /* Dark text for light buttons */
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  border: none;
  cursor: pointer;
}

.page-download__btn:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-download__btn--secondary {
  background: transparent;
  border: 2px solid #F2C14E; /* Border color */
  color: #F2C14E;
}

.page-download__btn--secondary:hover {
  background: #F2C14E;
  color: #100224;
}

/* Section Titles */
.page-download__section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  text-align: center;
  margin: 60px 0 40px;
  color: #F2C14E; /* Main color for section titles */
  position: relative;
  padding-bottom: 10px;
}

.page-download__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #F2C14E, #FFD36B); /* Gradient underline */
  border-radius: 2px;
}

/* Options Section */
.page-download__options-section {
  padding: 20px;
  background-color: #0A0A0A;
}

.page-download__options-grid {
  display: grid;
  grid-template-columns: 1fr; /* Single column on mobile */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__option-card {
  background-color: #111111; /* Card BG color */
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #3A2A12; /* Border color */
}

.page-download__card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD36B; /* Auxiliary color for card titles */
}

.page-download__card-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: contain; /* Ensure image fits without cropping */
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__card-description {
  font-size: 1rem;
  margin-bottom: 20px;
  color: #FFF6D6;
}

.page-download__qr-section {
  margin-top: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #F2C14E; /* Border for QR code */
  border-radius: 8px;
  object-fit: contain;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__qr-text {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #FFF6D6;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 20px;
  background-color: #0A0A0A;
}

.page-download__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive grid */
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-download__benefit-item {
  background-color: #111111; /* Card BG color */
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #3A2A12; /* Border color */
}

.page-download__benefit-icon {
  width: 200px;
  height: 200px;
  object-fit: contain;
  margin-bottom: 15px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-download__benefit-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFD36B;
}

.page-download__benefit-description {
  font-size: 0.95rem;
  color: #FFF6D6;
}

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

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

.page-download__faq-item {
  background-color: #111111; /* Card BG color */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: #1a1a1a;
  color: #F2C14E; /* Main color for FAQ questions */
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.3s ease;
  min-height: 44px; /* Touch target size */
}

.page-download__faq-question::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.page-download__faq-question.is-active {
  background-color: #222222;
}

.page-download__faq-question.is-active::after {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  padding: 0 25px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #FFF6D6;
}

.page-download__faq-answer.is-active {
  max-height: 200px; /* Adjust based on max content, or use JS to calculate */
  padding: 15px 25px 25px;
}

.page-download__faq-answer p {
  margin: 0;
  font-size: 0.95rem;
}

/* Responsive Adjustments */
@media (min-width: 768px) {
  .page-download__hero-section {
    flex-direction: row; /* Desktop: image and content side-by-side */
    text-align: left;
    padding: 60px 40px;
    min-height: 600px;
  }

  .page-download__hero-image-wrapper {
    width: 50%;
    order: 2;
    margin-bottom: 0;
    padding-left: 30px;
  }

  .page-download__hero-content {
    width: 50%;
    order: 1;
    padding-right: 30px;
  }

  .page-download__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Larger h1 for desktop */
  }

  .page-download__hero-description {
    font-size: 1.2rem;
  }

  .page-download__hero-cta-group {
    flex-direction: row; /* Buttons side-by-side on desktop */
    width: auto;
    max-width: none;
    margin: 0;
  }

  .page-download__btn {
    width: auto;
    max-width: none;
    margin: 0;
    min-width: 200px;
  }

  .page-download__options-grid {
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
  }
}

@media (max-width: 849px) { /* Mobile specific rules for Hero as per §0.5 */
  .page-download__hero-section {
    flex-direction: column; /* Stack image and content */
    text-align: center;
    padding: 10px 15px 30px;
    min-height: auto;
  }

  .page-download__hero-image-wrapper {
    order: 1;
    margin-bottom: 20px;
    padding-left: 0;
    width: 100%; /* Ensure full width */
    aspect-ratio: 16/10; /* Recommended aspect ratio for mobile hero visual */
  }

  .page-download__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .page-download__hero-content {
    order: 2;
    padding-right: 0;
    width: 100%;
  }

  .page-download__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem); /* Adjust clamp for mobile h1 */
  }

  .page-download__hero-cta-group {
    flex-direction: column;
    gap: 10px;
  }

  .page-download__btn {
    max-width: 280px; /* Slightly smaller max-width for mobile buttons */
  }

  .page-download__options-grid {
    grid-template-columns: 1fr; /* Single column for options */
  }

  .page-download__benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Ensure 2 columns on narrow mobile */
  }
}

@media (max-width: 549px) { /* Smaller mobile screens */
  .page-download__options-grid {
    grid-template-columns: 1fr; /* Still single column */
  }

  .page-download__benefits-grid {
    grid-template-columns: 1fr; /* Single column for benefits on very small screens */
  }

  .page-download__qr-code {
    width: 150px;
    height: 150px;
    min-width: 150px; /* Enforce min size */
    min-height: 150px; /* Enforce min size */
  }

  .page-download__card-image,
  .page-download__benefit-icon {
    min-width: 200px;
    min-height: 200px;
    width: 100%; /* Ensure images fill space but respect min size */
    height: auto;
  }
}

/* Global image rules for content area to prevent overflow and small icons */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  /* Enforce minimum size for all content images, excluding those in shared header/footer */
  /* This rule applies to all img elements within .page-download content areas */
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* Default to contain to avoid cropping important content like QR codes */
}

/* Overriding for specific cases where object-fit: cover is desired, e.g., hero */
.page-download__hero-image {
  object-fit: cover;
}

/* Ensure no filter is used on images */
.page-download img {
  filter: none !important;
}

/* CSS for image width/height consistency as per rules */
/* HTML width/height attributes are for display area. CSS should not make it smaller than its container. */
.page-download__hero-image {
  width: 100%; /* HTML width=1200, CSS should not make it smaller than its container */
  height: auto; /* HTML height=675, CSS should not make it smaller than its container */
}
.page-download__card-image {
  width: 100%; /* HTML width=400, CSS should not make it smaller than its container */
  height: auto; /* HTML height=300, CSS should not make it smaller than its container */
}
.page-download__qr-code {
  width: 200px; /* HTML width=200, CSS should match or be larger */
  height: 200px; /* HTML height=200, CSS should match or be larger */
}
.page-download__benefit-icon {
  width: 200px; /* HTML width=200, CSS should match or be larger */
  height: 200px; /* HTML height=200, CSS should match or be larger */
}