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

/* General styles for the promotions page content */
.page-promotions {
  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-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-promotions__section-description {
  font-size: 1.1em;
  color: #f0f0f0; /* Slightly off-white for description */
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 600px;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure header offset for the first section */
}

.page-promotions__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability, but NOT changing color */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  color: #ffffff;
}

.page-promotions__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  font-weight: bold;
}

.page-promotions__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-promotions__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Buttons */
.page-promotions__btn-primary,
.page-promotions__btn-secondary,
.page-promotions__btn-tertiary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-promotions__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-promotions__btn-primary:hover {
  background-color: #1e87b7;
  border-color: #1e87b7;
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-promotions__btn-tertiary {
  background-color: #EA7C07; /* Login color for a distinct CTA */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-promotions__btn-tertiary:hover {
  background-color: #c06506;
  border-color: #c06506;
}

/* Current Promotions Section */
.page-promotions__current-promotions-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

.page-promotions__promotion-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-promotions__card-title {
  font-size: 1.5em;
  margin: 20px 20px 10px 20px;
  color: #26A9E0;
  flex-grow: 1; /* Allow title to take available space */
}

.page-promotions__card-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-promotions__card-title a:hover {
  color: #ffffff;
}

.page-promotions__card-text {
  font-size: 0.95em;
  margin: 0 20px 20px 20px;
  color: #f0f0f0;
}

.page-promotions__promotion-card .page-promotions__btn-tertiary {
  margin: 0 20px 20px 20px;
  align-self: flex-start; /* Align button to start */
}


/* How to Claim Section */
.page-promotions__how-to-claim-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-promotions__step-icon {
  width: 60px;
  height: 60px;
  background-color: #26A9E0;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

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

.page-promotions__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions__step-text a {
  color: #EA7C07; /* Login color for text links */
  text-decoration: underline;
}

.page-promotions__step-text a:hover {
  color: #26A9E0;
}

.page-promotions__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Terms and Conditions Section */
.page-promotions__terms-conditions-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

.page-promotions__terms-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
}

.page-promotions__terms-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #26A9E0;
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-promotions__terms-item a {
  color: #26A9E0;
  text-decoration: underline;
}

.page-promotions__terms-item a:hover {
  color: #ffffff;
}

/* FAQ Section */
.page-promotions__faq-section {
  padding: 60px 0;
  background-color: #0a0a0a; /* Dark background from body */
  color: #ffffff;
}

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

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-promotions__faq-qtext {
  flex-grow: 1;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-promotions__faq-answer {
  padding: 15px 25px 25px 25px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

.page-promotions__faq-answer p {
  margin: 0;
}

.page-promotions__faq-answer a {
  color: #EA7C07; /* Login color for text links */
  text-decoration: underline;
}

.page-promotions__faq-answer a:hover {
  color: #26A9E0;
}

/* Hide default details marker */
.page-promotions__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-promotions__faq-item summary {
  list-style: none;
}


/* Final CTA Section */
.page-promotions__final-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: #26A9E0; /* Brand primary color for a strong CTA */
  color: #ffffff;
}

.page-promotions__final-cta-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__final-cta-section .page-promotions__section-description {
  color: #ffffff;
  margin-bottom: 50px;
}

.page-promotions__final-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 3em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-promotions__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for mobile */
  }

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

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

  .page-promotions__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

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

  .page-promotions__current-promotions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__faq-section,
  .page-promotions__final-cta-section {
    padding: 40px 0;
  }

  .page-promotions__container {
    padding: 0 15px;
  }

  .page-promotions__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-promotions__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

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

  .page-promotions__promotion-card .page-promotions__btn-tertiary {
    width: calc(100% - 40px); /* Adjust for padding in card */
  }

  .page-promotions__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* Image responsive adaptations */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsive adaptations (if any, though none currently in HTML) */
  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-promotions__video-section,
  .page-promotions__video-container,
  .page-promotions__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Ensure containers with images/videos/buttons also adapt */
  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container,
  .page-promotions__cta-buttons,
  .page-promotions__final-cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add padding to prevent content from touching screen edges */
    padding-left: 15px;
    padding-right: 15px;
  }
  /* Remove padding from page-promotions__container if it already has it */
  .page-promotions__container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  /* Re-add padding to direct children of container */
  .page-promotions__promotions-grid,
  .page-promotions__steps-grid,
  .page-promotions__terms-list,
  .page-promotions__faq-list {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions__hero-content,
  .page-promotions__hero-cta-buttons,
  .page-promotions__cta-bottom,
  .page-promotions__final-cta-buttons {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Color Contrast Fixes (if needed, based on dynamic analysis) */
.page-promotions__dark-bg {
  color: #ffffff; /* Deep dark background */
  background: #0a0a0a;
}
.page-promotions__light-bg {
  color: #333333; /* Light background */
  background: #ffffff;
}
.page-promotions__medium-bg {
  color: #000000; /* Medium background, default to dark text */
  background: #FFFFFF;
}
/* Ensure text within general paragraphs is light on dark body background */
.page-promotions p,
.page-promotions li {
  color: #f0f0f0;
}
/* Stronger contrast for specific elements if needed */
.page-promotions__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-promotions__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}