/* style/download.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General styles for the page */
.page-download {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Body background is default white */
}

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

.page-download__section-title {
  font-size: 36px;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__section-description {
  font-size: 18px;
  text-align: center;
  color: #555555;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #f0f8f0; /* Light green background */
  text-align: center;
}

.page-download__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-download__hero-title {
  font-size: 48px;
  color: #017439;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  line-height: 1.6;
}

.page-download__download-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  text-align: center;
  box-sizing: border-box; /* Crucial for max-width 100% on mobile */
}

.page-download__btn-primary {
  background-color: #017439; /* Main brand color */
  color: #ffffff; /* White text for contrast */
  border: 2px solid #017439;
}

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

.page-download__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Brand color text */
  border: 2px solid #017439;
}

.page-download__btn-secondary:hover {
  background-color: #e6f2e6;
  color: #017439;
}

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

.page-download__hero-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Benefits Section */
.page-download__benefits-section {
  padding: 80px 0;
}

.page-download__dark-section {
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for contrast */
}

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

.page-download__dark-section .page-download__section-description {
  color: #f0f0f0;
}

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

.page-download__benefit-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: #333333; /* Dark text for white card background */
}

.page-download__benefit-card:hover {
  transform: translateY(-10px);
}

.page-download__benefit-icon {
  width: 250px; /* Min size 200px */
  height: 187px; /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-download__benefit-title {
  font-size: 24px;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-download__benefit-text {
  font-size: 16px;
  line-height: 1.6;
  color: #555555;
}

.page-download__cta-buttons--center {
  margin-top: 50px;
  text-align: center;
}

/* How to Download Section */
.page-download__how-to-download-section {
  padding: 80px 0;
  background-color: #f9f9f9;
}

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

.page-download__download-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #333333;
}

.page-download__download-card-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 25px;
  font-weight: bold;
}

.page-download__download-steps {
  text-align: left;
  margin-bottom: 30px;
  font-size: 16px;
  line-height: 1.8;
  color: #555555;
  width: 100%;
}

.page-download__download-steps p {
  margin-bottom: 10px;
}

.page-download__download-image {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.page-download__qr-code-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background-color: #e6f2e6; /* Light green background */
  border-radius: 10px;
}

.page-download__qr-code-title {
  font-size: 28px;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-download__qr-image {
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
  border: 5px solid #017439;
  border-radius: 5px;
}

.page-download__qr-instructions {
  font-size: 18px;
  color: #555555;
  line-height: 1.6;
}

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

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  color: #ffffff; /* White text for dark section */
}

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

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

.page-download__features-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Video Section */
.page-download__video-section {
  padding: 80px 0;
  background-color: #f0f8f0;
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block; /* Ensure video is block level */
  cursor: pointer; /* Indicate it's clickable */
}

.page-download__video-cta {
  text-align: center;
  font-size: 18px;
  color: #017439;
  margin-top: 20px;
  font-weight: bold;
}

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

.page-download__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #f5f5f5;
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: #e0e0e0;
}

.page-download__faq-title {
  font-size: 18px;
  color: #017439;
  margin: 0;
  font-weight: bold;
}

.page-download__faq-toggle {
  font-size: 24px;
  color: #017439;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  font-size: 16px;
  line-height: 1.6;
}

.page-download__faq-answer p {
  margin: 0 0 15px 0;
}

.page-download__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar visually */
}

/* CTA Section */
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

.page-download__cta-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 60px auto 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 40px;
  }
  .page-download__section-title {
    font-size: 30px;
  }
  .page-download__download-guide-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  /* Ensure header offset is applied on mobile */
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile image responsiveness */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile video responsiveness */
  .page-download video,
  .page-download__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile button responsiveness */
  .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-left: 15px;
    padding-right: 15px;
    min-width: unset; /* Remove min-width for full flexibility */
  }
  
  .page-download__download-buttons,
  .page-download__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Content area containers for mobile */
  .page-download__container,
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__how-to-download-section,
  .page-download__features-section,
  .page-download__video-section,
  .page-download__faq-section,
  .page-download__cta-section,
  .page-download__hero-content,
  .page-download__download-card,
  .page-download__qr-code-section,
  .page-download__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-download__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__hero-title {
    font-size: 32px;
  }
  .page-download__hero-description {
    font-size: 16px;
  }
  .page-download__section-title {
    font-size: 28px;
  }
  .page-download__section-description {
    font-size: 15px;
  }
  .page-download__benefit-title,
  .page-download__download-card-title,
  .page-download__qr-code-title,
  .page-download__feature-title,
  .page-download__faq-title {
    font-size: 20px;
  }
  .page-download__benefit-text,
  .page-download__download-steps,
  .page-download__qr-instructions,
  .page-download__feature-text,
  .page-download__faq-answer p {
    font-size: 14px;
  }
  .page-download__benefit-icon {
    width: 200px; /* Minimum allowed size */
    height: 150px;
  }
}