/* style/promotions.css */

/* --- Base Styles --- */
.page-promotions {
  font-family: 'Arial', sans-serif;
  color: var(--text-main, #333333); /* Default text color, assuming light body background */
  background-color: var(--background, #F5F7FA); /* Main background color */
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

/* --- Container for content centering --- */
.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* --- Headings --- */
.page-promotions__section-title {
  font-size: 2.5em; /* Using em for relative sizing, will adjust for mobile */
  color: var(--primary-color, #E53935);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-promotions__hero-title {
  font-size: 3.2em; /* No hardcoded large font-size, using relative em */
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions__card-title {
  font-size: 1.5em;
  color: var(--text-main, #333333);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

/* --- Paragraphs --- */
.page-promotions__section-description,
.page-promotions__card-text {
  font-size: 1.1em;
  color: var(--text-main, #333333);
  margin-bottom: 20px;
}

/* --- Buttons --- */
.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%; /* Ensure button fits container */
}

.page-promotions__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
}

.page-promotions__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
  transform: translateY(-2px);
}

.page-promotions__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #E53935);
  border: 2px solid var(--primary-color, #E53935);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-promotions__btn-secondary:hover {
  background: var(--primary-color, #E53935);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-2px);
}

.page-promotions__hero-cta-buttons,
.page-promotions__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 30px;
  width: 100%; /* Ensure button container fits */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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


/* --- Hero Section --- */
.page-promotions__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, not --header-offset */
  padding-bottom: 60px;
  background-color: var(--primary-color, #E53935); /* Fallback background for hero */
  overflow: hidden;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 40px; /* Space between image and content */
  max-height: 500px; /* Limit height for hero image */
}

.page-promotions__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 0 20px;
}

.page-promotions__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* --- Overview Section --- */
.page-promotions__overview-section {
  padding: 80px 0;
  background-color: var(--background, #F5F7FA);
}

/* --- Promotion Types Section --- */
.page-promotions__types-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-promotions__promotion-card {
  background-color: var(--card-bg, #FFFFFF);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color, #E0E0E0);
}

.page-promotions__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

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

.page-promotions__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-promotions__promotion-card .page-promotions__btn-primary {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-start; /* Align button to start */
}


/* --- Terms and Conditions Section --- */
.page-promotions__terms-conditions-section {
  padding: 80px 0;
  background-color: var(--background, #F5F7FA);
}

.page-promotions__terms-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-promotions__terms-list li {
  background-color: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--primary-color, #E53935);
  font-size: 1.1em;
  color: var(--text-main, #333333);
}

.page-promotions__terms-list li strong {
  color: var(--primary-color, #E53935);
}

/* --- How to Claim Section --- */
.page-promotions__how-to-claim-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-promotions__steps-list {
  list-style: none;
  padding-left: 0;
  margin-top: 30px;
}

.page-promotions__steps-list li {
  background-color: var(--card-bg, #FFFFFF);
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  font-size: 1.15em;
  color: var(--text-main, #333333);
  display: flex;
  align-items: center;
}

.page-promotions__steps-list li strong {
  color: var(--primary-color, #E53935);
  font-size: 1.1em;
  margin-right: 15px;
  flex-shrink: 0;
}

/* --- FAQ Section --- */
.page-promotions__faq-section {
  padding: 80px 0;
  background-color: var(--background, #F5F7FA);
}

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

.page-promotions__faq-item {
  background-color: var(--card-bg, #FFFFFF);
  margin-bottom: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color, #E0E0E0);
  overflow: hidden;
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: 600;
  color: var(--text-main, #333333);
  background-color: var(--card-bg, #FFFFFF);
  transition: background-color 0.3s ease;
  list-style: none; /* For details summary */
}

.page-promotions__faq-item[open] .page-promotions__faq-question {
  background-color: #f9f9f9;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none;
}

.page-promotions__faq-question::marker {
  display: none;
}

.page-promotions__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--primary-color, #E53935);
  margin-left: 15px;
  flex-shrink: 0;
  pointer-events: none; /* Ensure click on summary opens/closes, not just the toggle */
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1.05em;
  color: var(--text-main, #333333);
  line-height: 1.6;
}

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


/* --- Conclusion CTA Section --- */
.page-promotions__conclusion-cta-section {
  padding: 80px 0;
  background-color: var(--primary-color, #E53935);
  text-align: center;
  color: #ffffff;
}

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

.page-promotions__conclusion-cta-section .page-promotions__section-description {
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
}


/* --- Image Responsive & General Image Styles --- */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-promotions__hero-title {
    font-size: 2.8em;
  }
  .page-promotions__section-title {
    font-size: 2em;
  }
  .page-promotions__hero-description {
    font-size: 1.1em;
  }
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary {
    padding: 12px 24px;
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-promotions__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }
  .page-promotions__hero-image {
    max-height: 300px; /* Adjust hero image height for mobile */
    margin-bottom: 20px;
  }
  .page-promotions__hero-content {
    padding: 0 15px;
  }
  .page-promotions__hero-title {
    font-size: 2em !important; /* Forced smaller H1 for mobile */
    line-height: 1.2 !important;
    letter-spacing: -0.2px !important;
    margin-bottom: 15px;
  }
  .page-promotions__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-promotions__hero-cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px !important;
  }
  .page-promotions__hero-cta-buttons .page-promotions__btn-primary,
  .page-promotions__hero-cta-buttons .page-promotions__btn-secondary {
    width: 100% !important;
  }

  /* 2. 产品展示图区域 (Promotion cards act similarly) */
  .page-promotions__promotion-grid {
    grid-template-columns: 1fr !important; /* Single column for promotion cards */
    gap: 20px;
  }
  .page-promotions__promotion-card {
    margin: 0 15px !important; /* Add horizontal padding to cards */
  }
  .page-promotions__promotion-image {
    height: 200px !important; /* Adjust card image height */
  }

  /* 3. 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-promotions__container,
  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-cta-section,
  .page-promotions__card,
  .page-promotions__text-block,
  .page-promotions__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  .page-promotions__terms-list,
  .page-promotions__steps-list {
    padding-left: 0 !important; /* Ensure list items are contained */
  }
  .page-promotions__terms-list li,
  .page-promotions__steps-list li {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 4. 按钮与按钮容器 */
  .page-promotions__btn-primary,
  .page-promotions__btn-secondary,
  .page-promotions a[class*="button"],
  .page-promotions 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;
  }
  .page-promotions__cta-buttons,
  .page-promotions__button-group,
  .page-promotions__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column !important; /* Ensure buttons stack */
  }

  /* 5. 其他内容模块 */
  .page-promotions__section-title {
    font-size: 1.8em !important;
    margin-bottom: 20px;
    padding: 0 15px !important;
  }
  .page-promotions__section-description,
  .page-promotions__card-text,
  .page-promotions p,
  .page-promotions li {
    font-size: 1em;
    padding: 0 15px !important; /* Add padding to text for readability */
  }
  .page-promotions__overview-section,
  .page-promotions__types-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__how-to-claim-section,
  .page-promotions__faq-section,
  .page-promotions__conclusion-cta-section {
    padding: 40px 0 !important; /* Adjust section padding */
  }
  .page-promotions__terms-list li,
  .page-promotions__steps-list li {
    font-size: 1em;
    padding: 15px !important;
  }
  .page-promotions__faq-question {
    font-size: 1.05em;
    padding: 15px !important;
  }
  .page-promotions__faq-answer {
    font-size: 0.95em;
    padding: 0 15px 15px 15px !important;
  }
}