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

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

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

.page-download__section {
  padding: 80px 0;
  text-align: center;
}

.page-download__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for titles */
}

.page-download__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-download__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Use variable for desktop and mobile */
  padding-bottom: 80px;
  background-color: #26A9E0; /* Brand blue background */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-download__hero-section .page-download__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  text-align: left;
}

.page-download__hero-content {
  flex: 1;
  max-width: 600px;
}

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

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

.page-download__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.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;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-download__btn-primary {
  background-color: #EA7C07; /* Login orange for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

.page-download__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-download__btn-secondary:hover {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-download__btn-small {
  padding: 10px 20px;
  font-size: 0.95em;
}

.page-download__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Hero Image */
.page-download__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.page-download__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  max-width: 100%; /* Responsive image */
}

/* Why Download Section */
.page-download__why-download {
  background-color: #0d0d0d; /* Slightly lighter dark background */
  color: #ffffff;
}

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

.page-download__feature-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for cards */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-download__feature-card:hover {
  transform: translateY(-10px);
  background-color: rgba(38, 169, 224, 0.2); /* Hover with brand color tint */
}

.page-download__feature-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 8px; /* Added border-radius for consistency */
  display: block; /* Ensure block behavior */
  max-width: 100%; /* Responsive image */
}

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

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

/* How to Download Section */
.page-download__how-to-download {
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

.page-download__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-download__step-card .page-download__card-title {
  color: #ffffff;
  font-size: 1.6em;
  margin-bottom: 20px;
}

.page-download__step-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
  flex-grow: 1;
}

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

.page-download__step-list li::before {
  content: '✓'; /* Custom bullet point */
  color: #26A9E0;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* App Features Section */
.page-download__app-features {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-download__features-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}

.page-download__feature-item {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

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

.page-download__feature-text {
  flex: 1;
}

.page-download__feature-heading {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-download__feature-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-download__feature-image {
  flex-shrink: 0;
  width: 400px; /* Fixed width for desktop */
  height: 300px; /* Fixed height for desktop */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: block; /* Ensure it behaves as a block element */
  max-width: 100%; /* Responsive image */
}

/* CEO Vision Section */
.page-download__ceo-vision {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-download__vision-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  color: #ffffff;
  height: 100%;
}

.page-download__vision-item .page-download__card-title {
  color: #ffffff;
  font-size: 1.6em;
}

/* Video Section */
.page-download__video-section {
  position: relative;
  width: 100%;
  max-width: 900px; /* Max width for video container */
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
}

.page-download__video-link {
  display: block;
  text-decoration: none; /* Remove underline from anchor */
  position: relative;
  border-radius: 10px; /* Apply border-radius to the link/wrapper */
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.page-download__video-link:hover .page-download__video {
    opacity: 0.9; /* Subtle hover effect */
}

.page-download__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
}

.page-download__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-download__video-caption {
    margin-top: 20px;
    font-size: 0.95em;
    color: #f0f0f0;
    text-align: center;
}

/* FAQ Section */
.page-download__faq {
  background-color: #0d0d0d;
  color: #ffffff;
}

.page-download__faq-list {
  max-width: 800px;
  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;
  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.05);
  transition: background-color 0.3s ease;
}

.page-download__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.1);
}

.page-download__faq-heading {
  font-size: 1.25em;
  margin: 0;
  color: #ffffff;
}

.page-download__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-download__faq-item.active .page-download__faq-toggle {
  transform: rotate(45deg); /* Plus sign to X or minus */
}

.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: #f0f0f0;
}

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

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

/* Conclusion Section */
.page-download__conclusion {
  background-color: #26A9E0; /* Brand blue background */
  color: #ffffff;
  padding-bottom: 80px;
}

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

.page-download__conclusion .page-download__section-intro {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-download__hero-title {
    font-size: 3em;
  }

  .page-download__section-title {
    font-size: 2.2em;
  }

  .page-download__feature-item {
    flex-direction: column;
    text-align: center;
  }

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

  .page-download__feature-image {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* Global mobile content padding */
  .page-download__container {
    padding: 0 15px;
  }

  .page-download__section {
    padding: 60px 0;
  }

  /* Fixed header offset for mobile */
  .page-download__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 60px;
  }

  .page-download__hero-section .page-download__container {
    flex-direction: column;
    text-align: center;
  }

  .page-download__hero-content {
    max-width: 100%;
  }

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

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