/* General styles for the download page */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
}

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

.page-download__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #E53935; /* Primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

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

/* Hero Section */
.page-download__hero-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top margin, as body handles header offset */
  background-color: #F5F7FA; /* Background */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-download__hero-image {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16/9; /* Maintain aspect ratio for desktop */
}

.page-download__hero-content {
  text-align: center;
  padding: 40px 15px;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-top: -80px; /* Overlap with image for visual effect */
  position: relative;
  z-index: 10;
}

.page-download__main-title {
  font-size: clamp(28px, 4vw, 48px); /* H1 font size with clamp */
  font-weight: 800;
  color: #E53935; /* Primary color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #333333;
}

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Ensure wrap on smaller screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

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

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

.page-download__btn-secondary:hover {
  background: #E53935;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(229, 57, 53, 0.2);
}

/* Intro Section */
.page-download__intro-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-download__intro-section p {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

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

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

.page-download__step-card {
  background: #F5F7FA; /* Background */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #E0E0E0; /* Border */
}

.page-download__step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-download__step-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min- /* Enforce minimum size */
  object-fit: cover;
}

.page-download__step-title {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
}

.page-download__step-card ol {
  list-style: decimal;
  padding-left: 20px;
  text-align: left;
  color: #333333;
}

.page-download__step-card ol li {
  margin-bottom: 10px;
  font-size: 16px;
}

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

/* Features Section */
.page-download__features-section {
  padding: 60px 0;
  background-color: #E53935; /* Dark BG for this section */
  color: #ffffff; /* White text for dark background */
}

.page-download__features-section .page-download__section-title,
.page-download__features-section .page-download__section-description {
  color: #ffffff; /* White text */
}

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

.page-download__feature-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-download__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__feature-card img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 5px;
  min-width: 200px; /* Enforce minimum size */
  min- /* Enforce minimum size */
  object-fit: cover;
}

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

.page-download__feature-card p {
  font-size: 16px;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 60px 0;
  background-color: #F5F7FA; /* Background */
}

.page-download__benefits-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0;
  color: #333333;
}

.page-download__benefits-list li {
  background: #ffffff; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 8px;
  padding: 20px 25px;
  margin-bottom: 15px;
  font-size: 17px;
  line-height: 1.6;
  position: relative;
  padding-left: 45px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.05);
}

.page-download__benefits-list li:before {
  content: '✓';
  color: #E53935;
  font-size: 20px;
  font-weight: bold;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
}

.page-download__benefits-list li strong {
  color: #E53935;
}

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

details.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #E0E0E0; /* Border */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
details.page-download__faq-item summary.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-download__faq-item summary.page-download__faq-question::-webkit-details-marker {
  display: none;
}
details.page-download__faq-item summary.page-download__faq-question:hover {
  background: #f5f5f5;
}
.page-download__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-download__faq-item .page-download__faq-answer {
  padding: 0 20px 20px;
  background: #F5F7FA; /* Background */
  border-radius: 0 0 5px 5px;
  color: #333333;
}
.page-download__faq-answer p {
  margin-bottom: 0;
  font-size: 16px;
}

/* Final CTA Section */
.page-download__cta-final {
  padding: 80px 0;
  background-color: #E53935; /* Dark BG */
  color: #ffffff; /* White text */
  text-align: center;
}

.page-download__cta-final-content {
  max-width: 900px;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-download__hero-image img {
    height: 500px; /* Adjust height for larger tablets */
  }
  .page-download__hero-content {
    margin-top: -60px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-download__hero-section {
    padding-top: 10px; /* Small top margin, no var(--header-offset) */
  }
  .page-download__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    height: auto !important; /* Allow height to adjust */
    max-height: 300px;
  }
  .page-download__hero-content {
    margin-top: -40px; /* Less overlap on mobile */
    padding: 25px 15px;
    border-radius: 0;
    box-shadow: none;
  }
  .page-download__main-title {
    font-size: clamp(24px, 7vw, 36px);
    margin-bottom: 15px;
  }
  .page-download__description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-download__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 通用内容区容器 */
  .page-download__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* section-title, article-body (general text blocks) */
  .page-download__section-title {
    font-size: 26px;
    margin-bottom: 15px;
    line-height: 1.3;
  }
  .page-download__section-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-download__intro-section p,
  .page-download__how-to-download-section ol li,
  .page-download__feature-card p,
  .page-download__benefits-list li p,
  .page-download__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
  }

  /* 产品展示图区域 (General grid items) */
  .page-download__download-steps,
  .page-download__feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
  }
  .page-download__step-card,
  .page-download__feature-card {
    padding: 20px;
  }
  .page-download__step-card img,
  .page-download__feature-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-
  }

  /* 通用图片与容器 */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* FAQ */
  details.page-download__faq-item summary.page-download__faq-question {
    padding: 15px;
  }
  .page-download__faq-qtext {
    font-size: 15px;
  }
  details.page-download__faq-item .page-download__faq-answer {
    padding: 0 15px 15px;
  }

  /* Sections padding */
  .page-download__intro-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__benefits-section,
  .page-download__faq-section,
  .page-download__cta-final {
    padding: 40px 0;
  }
}