/* style/promotions.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-register: #C30808;
  --button-login: #C30808;
  --background-white: #FFFFFF;
  --font-register-login: #FFFF00;
}

.page-promotions {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default to light text for dark body background */
  background-color: transparent; /* Body background handled by shared.css */
}

.page-promotions__hero-section {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  box-sizing: border-box;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  position: relative;
  z-index: 1;
}

.page-promotions__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-promotions__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but not text on image */
  padding: 0 20px;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  border-radius: 10px;
  padding: 30px;
  box-sizing: border-box;
}

.page-promotions__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
  line-height: 1.2;
  letter-spacing: 1px;
}

.page-promotions__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--secondary-color);
}

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

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  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;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-promotions__btn-primary {
  background-color: var(--button-register);
  color: var(--font-register-login);
  border: 2px solid var(--button-register);
}

.page-promotions__btn-primary:hover {
  background-color: darken(var(--button-register), 10%);
  border-color: darken(var(--button-register), 10%);
}

.page-promotions__btn-secondary {
  background-color: transparent;
  color: var(--font-register-login);
  border: 2px solid var(--font-register-login);
}

.page-promotions__btn-secondary:hover {
  background-color: var(--font-register-login);
  color: var(--button-login);
}

.page-promotions__section {
  padding: 60px 20px;
  text-align: center;
  box-sizing: border-box;
}

.page-promotions__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-promotions__light-bg {
  background-color: var(--background-white);
  color: var(--text-dark);
}

.page-promotions__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-promotions__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  margin-bottom: 25px;
  font-weight: bold;
  color: inherit;
}

.page-promotions__section-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-promotions__promo-types .page-promotions__section-title,
.page-promotions__terms-conditions .page-promotions__section-title,
.page-promotions__faq-section .page-promotions__section-title {
  color: var(--text-dark);
}

.page-promotions__promo-types .page-promotions__section-text,
.page-promotions__terms-conditions .page-promotions__section-text {
  color: var(--text-dark);
}

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

.page-promotions__promo-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: var(--text-dark);
}

.page-promotions__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-promotions__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-promotions__card-description {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__steps-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto;
  text-align: left;
}

.page-promotions__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-left: 5px solid var(--secondary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  font-size: 1.1em;
}

.page-promotions__step-item strong {
  color: var(--secondary-color);
}

.page-promotions__terms-list {
  list-style: disc;
  text-align: left;
  max-width: 900px;
  margin: 40px auto;
  padding-left: 20px;
  color: var(--text-dark);
}

.page-promotions__terms-item {
  margin-bottom: 10px;
  font-size: 1em;
}

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

.page-promotions__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  color: var(--text-light);
}

.page-promotions__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-promotions__feature-description {
  font-size: 0.95em;
}

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

.page-promotions__faq-item {
  background-color: var(--secondary-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--text-dark);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--text-light);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-item.active .page-promotions__faq-question {
  border-bottom: 1px solid var(--text-dark);
}

.page-promotions__faq-item summary {
  list-style: none;
}

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

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

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

.page-promotions__faq-answer {
  padding: 20px;
  font-size: 1em;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--background-white);
}

.page-promotions__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-promotions__final-cta {
  padding-bottom: 80px;
}

/* General image responsiveness */
.page-promotions img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-promotions__section,
.page-promotions__card,
.page-promotions__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-promotions__hero-content {
    margin-top: -80px;
    padding: 25px;
  }

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

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

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

  .page-promotions__promo-card {
    padding: 25px;
  }

  .page-promotions__card-title {
    font-size: 1.4em;
  }

  .page-promotions__feature-item {
    padding: 20px;
  }

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

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

  /* HERO 主图区域 */
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-promotions__hero-image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
  }

  .page-promotions__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__hero-content {
    margin-top: -60px;
    padding: 20px;
    border-radius: 8px;
  }

  .page-promotions__main-title {
    font-size: 2em !important;
    line-height: 1.3;
  }

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

  /* 按钮与按钮容器 */
  .page-promotions__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .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;
    padding-right: 15px;
  }

  /* 通用图片与容器 */
  .page-promotions img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-promotions__section,
  .page-promotions__card,
  .page-promotions__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* 产品展示图区域 (promo-types grid) */
  .page-promotions__grid-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__promo-card {
    padding: 20px;
  }

  .page-promotions__card-image {
    height: 180px;
  }

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

  .page-promotions__card-description {
    font-size: 0.95em;
  }

  /* Other content modules */
  .page-promotions__section {
    padding: 40px 0;
  }

  .page-promotions__section-title {
    font-size: 1.8em !important;
  }

  .page-promotions__section-text {
    font-size: 1em !important;
  }

  .page-promotions__steps-list,
  .page-promotions__terms-list {
    margin: 30px auto;
    padding-left: 0;
  }

  .page-promotions__step-item,
  .page-promotions__terms-item {
    font-size: 1em;
    padding: 15px;
  }

  .page-promotions__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-promotions__feature-item {
    padding: 20px;
  }

  .page-promotions__feature-title {
    font-size: 1.2em;
  }

  .page-promotions__faq-list {
    margin: 30px auto;
  }

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

  .page-promotions__faq-answer {
    padding: 15px;
  }

  .page-promotions__final-cta {
    padding-bottom: 60px;
  }
}