.page-download {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #ffffff; /* Default body background */
  line-height: 1.6;
}

/* Hero Section */
.page-download__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #f5f5f5;
  position: relative;
  overflow: hidden;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px; /* Space between image and text */
}

.page-download__hero-content {
  max-width: 800px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-download__main-title {
  font-size: clamp(2em, 3.5vw, 2.8em);
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 15px;
}

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

.page-download__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.page-download__btn-primary,
.page-download__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-download__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

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

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

.page-download__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

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

.page-download__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  padding-top: 40px;
}

.page-download__section-intro {
  font-size: 1.1em;
  line-height: 1.6;
  color: #555555;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-download__sub-title {
  font-size: 1.6em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 25px;
  text-align: center;
}

.page-download__card-title {
  font-size: 1.3em;
  font-weight: 600;
  color: #017439;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-download__card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: #666666;
}

.page-download__link-text {
  color: #017439;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-download__link-text:hover {
  color: #005a2e;
  text-decoration: underline;
}

/* Why Download Section */
.page-download__why-download-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.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: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-download__feature-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

/* App Features Section (dark background) */
.page-download__app-features-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* Light text */
}

.page-download__app-features-section .page-download__section-title,
.page-download__app-features-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 40px;
}

.page-download__feature-item {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__feature-item:nth-child(even) {
  flex-direction: row-reverse; /* Alternate image and text */
}

.page-download__feature-item img {
  max-width: 45%;
  height: auto;
  border-radius: 8px;
  margin-right: 30px;
  flex-shrink: 0;
}

.page-download__feature-item:nth-child(even) img {
  margin-right: 0;
  margin-left: 30px;
}

.page-download__feature-content {
  flex-grow: 1;
}

.page-download__feature-content .page-download__item-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-download__feature-content .page-download__item-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
  margin-bottom: 20px;
}

.page-download__feature-content .page-download__link-text {
  color: #FFFF00; /* Yellow for links on dark background */
}

.page-download__feature-content .page-download__link-text:hover {
  color: #fff;
}

/* Installation Guide Section */
.page-download__installation-guide-section {
  padding: 60px 0;
  background-color: #ffffff;
}

.page-download__guide-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  gap: 15px;
  flex-wrap: wrap;
}

.page-download__tab-button {
  background-color: #f0f0f0;
  color: #017439;
  border: 1px solid #e0e0e0;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1em;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-download__tab-button--active {
  background-color: #017439;
  color: #ffffff;
  border-color: #017439;
}

.page-download__tab-button:hover:not(.page-download__tab-button--active) {
  background-color: #e0e0e0;
}

.page-download__tab-content {
  display: none;
  animation: fadeIn 0.5s ease-in-out forwards;
}

.page-download__tab-content--active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.page-download__step-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-download__step-item img {
  max-width: 250px; /* Smaller image for steps */
  height: auto;
  border-radius: 8px;
  margin-left: 20px; /* Image on the right of text */
  flex-shrink: 0;
}

.page-download__step-number {
  font-size: 2.2em;
  font-weight: 700;
  color: #017439;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-download__step-details {
  flex-grow: 1;
}

.page-download__step-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-download__step-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

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

/* Security Section (dark background) */
.page-download__security-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
}

.page-download__security-section .page-download__section-title,
.page-download__security-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-download__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-download__security-item .page-download__item-title {
  color: #ffffff;
  font-size: 1.3em;
  margin-bottom: 10px;
}

.page-download__security-item .page-download__item-text {
  color: #e0e0e0;
  font-size: 0.95em;
  line-height: 1.6;
}

.page-download__security-item .page-download__link-text {
  color: #FFFF00;
}

.page-download__security-item .page-download__link-text:hover {
  color: #fff;
}

/* Exclusive Bonuses Section */
.page-download__exclusive-bonuses-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-download__bonus-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-download__bonus-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

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

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

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

.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: 600;
  color: #017439;
  background-color: #ffffff;
  border-bottom: 1px solid #eee;
  list-style: none; /* For <summary> */
}

.page-download__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

.page-download__faq-item[open] .page-download__faq-question {
  border-bottom: 1px solid #ddd;
}

.page-download__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #017439;
}

.page-download__faq-item[open] .page-download__faq-toggle {
  content: "−";
}

.page-download__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

.page-download__faq-answer p {
  margin-top: 10px;
  margin-bottom: 0;
}

/* Final CTA Section (dark background) */
.page-download__final-cta-section {
  padding: 60px 0;
  background-color: #017439;
  color: #ffffff;
  text-align: center;
}

.page-download__final-cta-section .page-download__section-title,
.page-download__final-cta-section .page-download__section-intro {
  color: #ffffff;
}

.page-download__final-cta-section .page-download__cta-buttons {
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-image {
    width: 100%;
    height: auto;
  }
  .page-download__feature-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__feature-item:nth-child(even) {
    flex-direction: column;
  }
  .page-download__feature-item img,
  .page-download__feature-item:nth-child(even) img {
    margin: 0 auto 20px auto;
    max-width: 80%;
  }
  .page-download__step-item {
    flex-direction: column;
    text-align: center;
  }
  .page-download__step-item img {
    margin: 20px auto 0 auto;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-download__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
    padding-bottom: 30px !important;
  }
  .page-download__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em) !important;
  }
  .page-download__hero-description {
    font-size: 1em !important;
  }
  .page-download__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .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 !important;
    padding-right: 15px !important;
  }

  /* 深色导语区 & 通用 Section */
  .page-download__section-title {
    font-size: clamp(1.5em, 6vw, 2em) !important;
    padding-top: 30px !important;
  }
  .page-download__section-intro {
    font-size: 0.95em !important;
    margin-bottom: 30px !important;
  }
  .page-download__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-download__section,
  .page-download__card,
  .page-download__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Why Download Section */
  .page-download__features-grid {
    grid-template-columns: 1fr !important;
  }

  /* App Features Section */
  .page-download__feature-item,
  .page-download__feature-item:nth-child(even) {
    flex-direction: column !important;
    padding: 20px !important;
  }
  .page-download__feature-item img,
  .page-download__feature-item:nth-child(even) img {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 0 20px 0 !important;
  }
  .page-download__feature-content .page-download__item-title {
    font-size: 1.3em !important;
  }
}