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

/* General styles for the page content, ensuring light text on dark body background */
.page-download {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background #121212 */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-download__dark-bg {
  background-color: #0A2463; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-download__hero-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-download__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.3; /* Subtle background */
  overflow: hidden;
}

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

.page-download__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Auxiliary color for emphasis */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-download__download-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width */
  max-width: 100%; /* Ensure responsiveness */
}

.page-download__btn-primary {
  background-color: #FFD700; /* Auxiliary color */
  color: #0A2463; /* Main color for text on auxiliary background */
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
}

.page-download__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Auxiliary color for text */
  border: 2px solid #FFD700;
}

.page-download__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2463;
  transform: translateY(-2px);
}

/* Sections common styles */
.page-download__why-app-section,
.page-download__how-to-download-section,
.page-download__app-features-section,
.page-download__faq-section,
.page-download__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-download__why-app-section,
.page-download__app-features-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
}

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-download__section-description {
  font-size: 1.1em;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-download__feature-icon {
  width: 200px; /* Enforcing min size */
  height: 200px; /* Enforcing min size */
  object-fit: contain;
  margin: 0 auto 20px auto;
  filter: brightness(1.2); /* Enhance visibility on dark background, NOT changing color */
}

.page-download__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-download__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* How to download section */
.page-download__download-steps-wrapper {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__download-steps-android,
.page-download__download-steps-ios {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 40px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}

.page-download__step-platform-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #FFD700;
  text-align: center;
}

.page-download__step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 1.1em;
}

.page-download__step-number {
  background-color: #FFD700;
  color: #0A2463;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2em;
  margin-right: 15px;
  flex-shrink: 0;
}

.page-download__step-text {
  margin: 0;
  color: #e0e0e0;
}

.page-download__btn-download-android,
.page-download__btn-download-ios {
  width: 100%;
  margin-top: 20px;
}

.page-download__qr-code-section {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.page-download__qr-code {
  width: 250px; /* Display size, not generation size */
  height: 250px;
  object-fit: contain;
  background-color: #ffffff;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforcing min size */
  min-height: 200px; /* Enforcing min size */
}

/* App features section */
.page-download__feature-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 40px;
}

.page-download__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-download__feature-item--reverse {
  flex-direction: row-reverse;
}

.page-download__feature-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforcing min size */
  min-height: 200px; /* Enforcing min size */
}

.page-download__feature-content {
  flex: 1;
  max-width: 50%;
}

.page-download__feature-title {
  font-size: 2em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-download__feature-text {
  font-size: 1.1em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-download__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
  text-align: left;
}

.page-download__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  color: #ffffff;
}

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
  color: #FFD700; /* Question text color */
}

.page-download__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__faq-title {
  margin: 0;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD700;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg);
}

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #e0e0e0; /* Answer text color */
}

.page-download__faq-item.active .page-download__faq-answer {
  max-height: 1000px !important;
  padding: 20px 25px;
}

.page-download__faq-text {
  margin: 0;
  font-size: 1em;
}

/* CTA Section */
.page-download__cta-section {
  padding: 100px 0;
  background-color: #0A2463; /* Main brand color */
  color: #ffffff;
}

.page-download__cta-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFD700;
}

.page-download__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }
  .page-download__section-title {
    font-size: 2em;
  }
  .page-download__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__feature-item--reverse {
    flex-direction: column;
  }
  .page-download__feature-image,
  .page-download__feature-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }
  .page-download__hero-title {
    font-size: 2.2em;
  }
  .page-download__hero-description {
    font-size: 1em;
  }
  .page-download__download-buttons {
    flex-direction: column;
    align-items: center;
  }
  .page-download__btn-primary,
  .page-download__btn-secondary {
    width: 90%; /* Adjust width for mobile buttons */
    max-width: 300px; /* Max width for consistency */
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important; /* Force responsive */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__why-app-section,
  .page-download__how-to-download-section,
  .page-download__app-features-section,
  .page-download__faq-section,
  .page-download__cta-section {
    padding: 50px 0;
  }
  .page-download__section-title {
    font-size: 1.8em;
  }
  .page-download__section-description {
    font-size: 0.95em;
    margin-bottom: 40px;
  }
  .page-download__feature-card {
    padding: 20px;
  }
}