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

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

/* Header offset to prevent content from being hidden by fixed header */
.page-download__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Section styling */
.page-download__hero-section,
.page-download__benefits-section,
.page-download__guide-section,
.page-download__video-section,
.page-download__security-section,
.page-download__faq-section,
.page-download__cta-bottom-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-download__section-title {
  color: #FFD700; /* Brand primary color for titles */
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  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-color: #000080; /* Brand secondary color for accent */
  border-radius: 2px;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  text-align: left;
  background: linear-gradient(135deg, rgba(0,0,128,0.8), rgba(255,215,0,0.2)); /* Blend brand colors */
  border-radius: 10px;
  margin-bottom: 40px;
}

.page-download__hero-content {
  flex: 1;
}

.page-download__hero-title {
  font-size: 3.2em;
  color: #FFD700; /* Primary brand color */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-download__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-download__hero-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* CTA Buttons */
.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box; /* Crucial for button responsiveness */
}

.page-download__btn-primary {
  background-color: #FFD700; /* Primary brand color */
  color: #000080; /* Secondary brand color for contrast */
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background-color: #e6c200;
  color: #000066;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.page-download__btn-secondary {
  background-color: #000080; /* Secondary brand color */
  color: #FFD700; /* Primary brand color for contrast */
  border: 2px solid #000080;
}

.page-download__btn-secondary:hover {
  background-color: #000066;
  color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 128, 0.3);
}

.page-download__btn-block {
  width: 100%; /* For buttons that should take full width */
  margin-top: 20px;
}

/* Benefits Section */
.page-download__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-download__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__benefit-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-download__benefit-icon {
  width: 200px; /* Ensure minimum display size */
  height: 200px; /* Ensure minimum display size */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px; 
}

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

.page-download__card-description {
  color: #cccccc;
  font-size: 0.95em;
}

/* Guide Section */
.page-download__guide-platform {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__guide-subtitle {
  color: #FFD700;
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__guide-content-wrapper {
  display: flex;
  gap: 30px;
  align-items: center;
}

.page-download__guide-content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-download__qr-code-wrapper {
  flex: 0 0 200px; /* Fixed width for QR code, matching HTML width */
  text-align: center;
}

.page-download__qr-code {
  width: 200px;
  height: 200px;
  border: 5px solid #000080;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  object-fit: contain;
}

.page-download__qr-text {
  color: #cccccc;
  margin-top: 15px;
  font-size: 1.1em;
  font-weight: bold;
}

.page-download__steps-list {
  flex: 1;
}

.page-download__steps-list ol {
  list-style-type: decimal;
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 30px;
}

.page-download__steps-list li {
  margin-bottom: 15px;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-download__steps-list li strong {
  color: #FFD700;
}

/* Video Section */
.page-download__video-section {
  text-align: center;
  background-color: rgba(0, 0, 128, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 10px;
  background-color: #000;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-download__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3); /* Slightly darken to make button pop */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to video */
}

.page-download__video-wrapper:hover .page-download__video-overlay {
  opacity: 1;
  pointer-events: auto; /* Enable clicks on overlay when hovered */
}

.page-download__video-cta-button {
  background-color: #FFD700;
  color: #000080;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  pointer-events: auto; /* Ensure button is clickable */
}

.page-download__video-cta-button:hover {
  background-color: #e6c200;
  transform: scale(1.05);
}


.page-download__video-description {
  color: #cccccc;
  font-size: 1.05em;
  margin-top: 20px;
}

/* Security Section */
.page-download__security-section {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  background-color: rgba(255, 215, 0, 0.05); /* Light gold tint */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__security-content {
  flex: 1;
}

.page-download__security-content p {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
}

.page-download__security-list li {
  margin-bottom: 10px;
  color: #cccccc;
  position: relative;
  padding-left: 25px;
}

.page-download__security-list li::before {
  content: '✓';
  color: #FFD700; /* Primary brand color checkmark */
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-download__security-list li strong {
  color: #FFD700;
}

.page-download__security-image {
  flex: 0 0 400px; /* Fixed width for the image */
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-download__faq-section {
  background-color: rgba(0, 0, 128, 0.08); /* Light navy blue tint */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 215, 0, 0.1); /* Light gold tint for question background */
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-download__faq-question h3 {
  margin: 0;
  color: inherit;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #cccccc;
  background-color: rgba(255, 255, 255, 0.03); /* Lighter background for answer */
}

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

.page-download__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Bottom CTA Section */
.page-download__cta-bottom-section {
  text-align: center;
  background-color: rgba(255, 215, 0, 0.1);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-download__cta-bottom-section .page-download__cta-buttons {
  justify-content: center; /* Center buttons */
  margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-download__hero-section {
    flex-direction: column;
    text-align: center;
  }

  .page-download__hero-content {
    order: 2; /* Move content below image on smaller screens */
  }

  .page-download__hero-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-download__hero-title {
    font-size: 2.5em;
  }

  .page-download__guide-content-wrapper,
  .page-download__guide-content-wrapper--reverse,
  .page-download__security-section {
    flex-direction: column;
  }

  .page-download__guide-content-wrapper--reverse .page-download__qr-code-wrapper {
    order: 1;
  }
  .page-download__guide-content-wrapper--reverse .page-download__steps-list {
    order: 2;
  }
  .page-download__security-image {
    order: 1;
    margin-bottom: 30px;
  }
  .page-download__security-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-download__hero-section,
  .page-download__benefits-section,
  .page-download__guide-section,
  .page-download__video-section,
  .page-download__security-section,
  .page-download__faq-section,
  .page-download__cta-bottom-section {
    padding: 30px 15px;
  }

  .page-download__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-download__hero-title {
    font-size: 2em;
  }

  .page-download__hero-description {
    font-size: 1em;
  }

  .page-download__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-download__btn-primary,
  .page-download__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-download__benefit-icon,
  .page-download__qr-code,
  .page-download__hero-image,
  .page-download__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px; /* Enforce minimum display size for content images */
    min-height: 200px;
    object-fit: contain; /* or cover depending on context */
  }

  .page-download__video,
  .page-download__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-download__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-download__faq-answer {
    padding: 15px !important;
  }
  
  /* Ensure video section padding-top for mobile */
  .page-download__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}