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

/* General Styles for the page content */
.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #121212; /* Matches body background */
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-promotions__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-promotions__main-title,
.page-promotions__section-title,
.page-promotions__category-title,
.page-promotions__card-title,
.page-promotions__sub-title,
.page-promotions__faq-title {
  color: #FFD700; /* Gold for titles */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-promotions__main-title {
  font-size: 3.5em;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.page-promotions__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
}

.page-promotions__category-title {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  border-bottom: 2px solid #000080;
  padding-bottom: 10px;
}

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

.page-promotions__description,
.page-promotions__text-block,
.page-promotions__list li {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-promotions__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-promotions__list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 10px;
}

.page-promotions__list li::before {
  content: '★'; /* Star bullet point */
  color: #FFD700;
  position: absolute;
  left: 0;
  top: 0;
}

/* Buttons */
.page-promotions__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

.page-promotions__cta-buttons--center {
  justify-content: center;
}

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%; /* Important for responsiveness */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
}

.page-promotions__btn-primary {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
  border: 2px solid #FFD700;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-promotions__btn-primary:hover {
  background-color: #e6c200;
  color: #000050;
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.6);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-promotions__btn-secondary:hover {
  background-color: #FFD700;
  color: #000080; /* Dark blue text on gold button */
}

.page-promotions__btn-primary--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

.page-promotions__btn-primary--large,
.page-promotions__btn-secondary--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Hero Section */
.page-promotions__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #000080; /* Dark blue background for hero */
}

.page-promotions__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,128,0.7), rgba(0,0,128,0.7)); /* Dark overlay */
  z-index: 1;
}

.page-promotions__hero-section > .page-promotions__container {
  position: relative;
  z-index: 2;
}

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

.page-promotions__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* Section Spacing */
.page-promotions__overview-section,
.page-promotions__categories-section,
.page-promotions__how-to-claim-section,
.page-promotions__faq-section,
.page-promotions__cta-section {
  padding: 80px 0;
  background-color: #121212; /* Default dark background */
}

.page-promotions__categories-section {
  background-color: #000080; /* Dark blue background for categories */
}

.page-promotions__category-block {
  margin-bottom: 60px;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.page-promotions__category-block:last-of-type {
  border-bottom: none;
}

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

.page-promotions__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-promotions__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Card Styling */
.page-promotions__card {
  background-color: #1a1a1a; /* Dark background for cards */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff; /* Light text on dark card background */
}

.page-promotions__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-promotions__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-promotions__card-title,
.page-promotions__card .page-promotions__sub-title {
  padding: 20px;
  margin-bottom: 0;
  font-size: 1.3em;
  color: #FFD700;
}

.page-promotions__card .page-promotions__text-block,
.page-promotions__card .page-promotions__list {
  padding: 0 20px 20px;
  margin-bottom: 0;
  flex-grow: 1; /* Make text block grow to fill space */
}

.page-promotions__card .page-promotions__btn-primary,
.page-promotions__card .page-promotions__btn-secondary {
  margin: 20px;
  align-self: flex-start; /* Align button to start within card */
  width: auto; /* Override max-width for smaller buttons in cards */
}

/* How to Claim Section */
.page-promotions__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions__step-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
}

.page-promotions__step-number {
  background-color: #FFD700;
  color: #000080;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

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

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

.page-promotions__step-description a {
  color: #FFD700;
  text-decoration: underline;
}

.page-promotions__step-description a:hover {
  color: #e6c200;
}

.page-promotions__terms-section {
  margin-top: 60px;
  padding: 40px;
  background-color: #000080; /* Dark blue background for terms */
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-promotions__terms-section .page-promotions__sub-title {
  color: #FFD700;
}

.page-promotions__terms-section .page-promotions__text-block {
  margin-bottom: 30px;
}

/* FAQ Section */
.page-promotions__faq-list {
  margin-top: 40px;
}

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

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #000080; /* Dark blue for question header */
  color: #FFD700; /* Gold text for question */
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question:hover {
  background-color: #0000a0;
}

.page-promotions__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700; /* Gold text */
}

.page-promotions__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s ease;
  color: #FFD700;
}

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

.page-promotions__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #1a1a1a; /* Dark background for answer */
  color: #f0f0f0;
}

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

.page-promotions__faq-answer p {
  margin: 0;
  font-size: 1em;
  color: #f0f0f0;
}

/* Call to Action Section */
.page-promotions__cta-section {
  text-align: center;
  padding: 100px 0;
  background-color: #000080; /* Dark blue background */
  box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-promotions__cta-container {
  max-width: 900px;
}

/* Image styling for responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  filter: none; /* Ensure no CSS filters are applied to change image color */
}

/* Global image size constraint for content area */
.page-promotions__card-image,
.page-promotions__hero-image,
.page-promotions__feature-image,
.page-promotions__step-item img,
.page-promotions__grid img {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-promotions__main-title {
    font-size: 2.8em;
  }

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

  .page-promotions__category-title {
    font-size: 1.8em;
  }

  .page-promotions__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-promotions {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-promotions__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing on mobile */
  }

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

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

  .page-promotions__category-title {
    font-size: 1.5em;
  }

  .page-promotions__sub-title {
    font-size: 1.3em;
  }

  .page-promotions__description,
  .page-promotions__text-block,
  .page-promotions__list li {
    font-size: 1em;
  }

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

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

  .page-promotions__btn-primary--large,
  .page-promotions__btn-secondary--large {
    padding: 15px 30px;
    font-size: 1.1em;
  }

  .page-promotions__grid,
  .page-promotions__grid--2-col,
  .page-promotions__grid--3-col {
    grid-template-columns: 1fr; /* Single column layout for cards */
  }

  .page-promotions__card {
    margin: 0 auto;
    max-width: 400px; /* Constrain card width on mobile if it gets too wide */
  }

  .page-promotions__card-image {
    height: 200px; /* Adjust card image height for mobile */
  }

  .page-promotions__steps {
    grid-template-columns: 1fr;
  }

  .page-promotions__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
  }

  .page-promotions__terms-section {
    padding: 30px 20px;
  }

  .page-promotions__faq-question {
    padding: 15px;
    font-size: 0.95em;
  }

  .page-promotions__faq-title {
    font-size: 1.1em;
  }

  .page-promotions__faq-answer p {
    font-size: 0.95em;
  }

  /* Mobile image and video responsiveness (explicitly for content area) */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-promotions video,
  .page-promotions__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}