/* style/download.css */
/* 页面内容区域样式 */
.page-download {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Default light text for dark body background */
  background-color: transparent; /* body background is handled by shared.css */
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background: linear-gradient(135deg, #8B0000, #FFD700); /* Blend brand colors */
  color: #ffffff;
}

.page-download__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-download__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-download__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-download__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

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

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

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

.page-download__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width */
}

.page-download__btn-primary {
  background: #FFD700;
  color: #8B0000; /* Dark red text on gold */
  border: 2px solid #FFD700;
}

.page-download__btn-primary:hover {
  background: #e6c200;
  border-color: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-download__btn-secondary {
  background: #8B0000;
  color: #FFD700; /* Gold text on dark red */
  border: 2px solid #8B0000;
}

.page-download__btn-secondary:hover {
  background: #6a0000;
  border-color: #6a0000;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-download__section {
  padding: 80px 20px;
  text-align: center;
}

.page-download__light-bg {
  background-color: #f8f9fa; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-download__dark-section {
  background-color: #1a1a1a; /* Dark background */
  color: #f0f0f0; /* Light text for dark background */
}

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

.page-download__section-title {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: #FFD700; /* Gold for titles */
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-download__light-bg .page-download__section-title {
  color: #8B0000; /* Dark red for titles on light background */
  text-shadow: none;
}

.page-download__section-intro {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

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

.page-download__feature-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  text-align: left;
}

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

.page-download__feature-title {
  font-size: 1.5em;
  color: #8B0000; /* Dark red for feature titles */
  margin-bottom: 15px;
}

.page-download__feature-item p {
  font-size: 1em;
  line-height: 1.7;
}

/* Download Guide */
.page-download__download-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  margin-top: 50px;
  text-align: left;
}

.page-download__guide-item {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-download__guide-title {
  font-size: 2em;
  color: #FFD700; /* Gold for guide titles */
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-download__guide-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 30px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__guide-list li {
  margin-bottom: 10px;
}

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

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

.page-download__feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  text-align: left;
}

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

.page-download__feature-card-title {
  font-size: 1.5em;
  color: #8B0000; /* Dark red for card titles */
  margin-bottom: 15px;
}

/* Benefits List */
.page-download__benefit-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-download__benefit-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-left: 5px solid #FFD700;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Security Info */
.page-download__security-info {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background-color: #ffffff; /* White background for security info */
  color: #333333; /* Dark text */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-download__security-subtitle {
  font-size: 1.8em;
  color: #8B0000; /* Dark red for subtitles */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-download__security-info p {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

/* FAQ容器样式 */
.page-download__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-download__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-download__faq-item.active .page-download__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9; /* Light background for answer */
  color: #333333; /* Dark text for answer */
  border-radius: 0 0 5px 5px;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.05);
}

/* 问题样式 */
.page-download__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #2a2a2a; /* Dark background for question */
  border: 1px solid #3a3a3a;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #f0f0f0; /* Light text for question */
}

.page-download__faq-question:hover {
  background: #3a3a3a;
  border-color: #4a4a4a;
}

.page-download__faq-question:active {
  background: #4a4a4a;
}

/* 问题标题样式 */
.page-download__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #FFD700; /* Gold for FAQ question title */
}

/* 切换图标 */
.page-download__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-download__faq-item.active .page-download__faq-toggle {
  color: #8B0000; /* Dark red when active */
  transform: rotate(45deg); /* Rotate for minus sign */
}

/* Final CTA Section */
.page-download__cta-final {
  padding-bottom: 100px;
}

/* Image styling */
.page-download__image-wrapper {
  margin: 40px auto;
  text-align: center;
  width: 100%;
  max-width: 900px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-download__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 10px;
}

.page-download__image-wrapper--full-width {
  max-width: 100%;
  border-radius: 0;
  box-shadow: none;
}

.page-download__image-wrapper--full-width img {
  border-radius: 0;
}

/* Global Image Responsiveness for content area */
.page-download img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space nicely */
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-download__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-download__cta-button,
  .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;
  }

  .page-download__section {
    padding: 40px 15px;
  }

  .page-download__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-download__section-intro {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-download__feature-grid,
  .page-download__feature-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-download__feature-item,
  .page-download__feature-card,
  .page-download__security-info {
    padding: 25px;
  }

  .page-download__feature-title,
  .page-download__feature-card-title {
    font-size: 1.3em;
  }

  .page-download__download-guide {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-download__guide-item {
    padding: 30px;
  }

  .page-download__guide-title {
    font-size: 1.6em;
    margin-bottom: 20px;
  }

  .page-download__guide-list {
    font-size: 1em;
    padding-left: 20px;
  }

  .page-download__benefit-list li {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-download__security-subtitle {
    font-size: 1.5em;
  }

  /* FAQ */
  .page-download__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-download__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-download__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-download__faq-answer {
    padding: 0 15px;
  }
  
  .page-download__faq-item.active .page-download__faq-answer {
    padding: 15px !important;
  }

  /* Global image responsiveness for content area */
  .page-download img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-download__section,
  .page-download__card,
  .page-download__container,
  .page-download__feature-item,
  .page-download__guide-item,
  .page-download__faq-list,
  .page-download__security-info {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-download__image-wrapper {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}