.page-promotions {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Default to white if shared doesn't provide */
}

.page-promotions__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
}

.page-promotions__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Fixed height for desktop hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-promotions__hero-content {
  max-width: 960px;
  margin: 40px auto 60px auto;
  padding: 0 20px;
  text-align: center;
  color: #333333;
}

.page-promotions__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: #017439;
  margin-bottom: 20px;
}

.page-promotions__description {
  font-size: 1.15rem;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-promotions__btn-primary,
.page-promotions__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

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

.page-promotions__btn-primary:hover {
  background-color: #005f2c;
  border-color: #005f2c;
}

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

.page-promotions__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2c;
  border-color: #005f2c;
}

/* Specific colors for Register/Login buttons if they were standalone */
.page-promotions__btn-register {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}
.page-promotions__btn-register:hover {
  background-color: #a00606;
  border-color: #a00606;
}
.page-promotions__btn-login {
  background-color: #C30808;
  color: #FFFF00;
  border: 2px solid #C30808;
}
.page-promotions__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

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

.page-promotions__section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-promotions__section-description {
  font-size: 1.05rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-promotions__featured-promos-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-promotions__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-promotions__promo-card:hover {
  transform: translateY(-5px);
}

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

.page-promotions__card-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-promotions__card-text {
  font-size: 1rem;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-promotions__how-to-join-section {
  background-color: #017439;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__how-to-join-section .page-promotions__section-title,
.page-promotions__how-to-join-section .page-promotions__section-description {
  color: #ffffff;
}

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

.page-promotions__step-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__step-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 15px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-promotions__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-promotions__step-text {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-promotions__terms-conditions-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__terms-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

.page-promotions__term-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 25px;
  border: 1px solid #e0e0e0;
}

.page-promotions__term-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__term-text {
  font-size: 1rem;
  color: #555555;
}

.page-promotions__faq-section {
  background-color: #017439;
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

.page-promotions__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-promotions__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  cursor: pointer;
  list-style: none; /* For <summary> tag */
  transition: background-color 0.3s ease;
}

.page-promotions__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <summary> */
}

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

.page-promotions__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #FFFF00; /* Register/Login font color */
}

.page-promotions__faq-item[open] .page-promotions__faq-toggle {
  content: '−';
}

.page-promotions__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.page-promotions__faq-item[open] .page-promotions__faq-answer {
  max-height: 500px; /* Sufficiently large for content */
  padding-top: 10px;
}

.page-promotions__benefits-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-promotions__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-promotions__benefit-item {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid #e0e0e0;
  transition: transform 0.3s ease;
}

.page-promotions__benefit-item:hover {
  transform: translateY(-5px);
}

.page-promotions__benefit-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-promotions__benefit-text {
  font-size: 1rem;
  color: #555555;
  flex-grow: 1;
}

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

.page-promotions__copyright-info {
  background-color: #017439;
  color: #ffffff;
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
}

.page-promotions__copyright-text {
  margin: 0;
  color: #f0f0f0;
}

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-promotions__hero-image-wrapper {
    height: 500px;
  }

  .page-promotions__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .page-promotions__description {
    font-size: 1rem;
  }

  .page-promotions__section-title {
    font-size: clamp(1.8rem, 4.5vw, 2.5rem);
  }

  .page-promotions__promo-grid,
  .page-promotions__steps-grid,
  .page-promotions__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

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

/* Mobile specific styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-promotions__hero-section {
    padding-top: 10px !important;
    padding-bottom: 0 !important;
  }

  .page-promotions__hero-image-wrapper {
    height: 300px !important;
  }

  .page-promotions__hero-content {
    margin: 20px auto 40px auto;
    padding: 0 15px;
  }

  .page-promotions__main-title {
    font-size: 2rem !important;
    margin-bottom: 15px !important;
  }

  .page-promotions__description {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

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

  .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: 12px 20px !important;
    font-size: 0.95rem !important;
  }

  /* 产品展示图区域 (General promo cards are treated as content cards) */
  .page-promotions__promo-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

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

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

  .page-promotions__card-title {
    font-size: 1.3rem !important;
  }

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

  .page-promotions__container,
  .page-promotions__featured-promos-section,
  .page-promotions__how-to-join-section,
  .page-promotions__terms-conditions-section,
  .page-promotions__faq-section,
  .page-promotions__benefits-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden;
  }

  /* 其他内容模块 */
  .page-promotions__section-title {
    font-size: 1.8rem !important;
    margin-bottom: 15px !important;
  }

  .page-promotions__section-description {
    font-size: 0.9rem !important;
    margin-bottom: 25px !important;
  }

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

  .page-promotions__step-card {
    padding: 25px !important;
  }

  .page-promotions__step-number {
    font-size: 2rem !important;
    width: 60px !important;
    height: 60px !important;
  }

  .page-promotions__step-title {
    font-size: 1.4rem !important;
  }

  .page-promotions__term-item {
    padding: 20px !important;
  }

  .page-promotions__term-title {
    font-size: 1.2rem !important;
  }

  .page-promotions__faq-question {
    font-size: 1rem !important;
    padding: 15px 20px !important;
  }

  .page-promotions__faq-answer {
    padding: 0 20px 15px 20px !important;
  }

  .page-promotions__benefits-list {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-promotions__benefit-item {
    padding: 25px !important;
  }

  .page-promotions__benefit-title {
    font-size: 1.3rem !important;
  }

  .page-promotions__cta-bottom {
    margin-top: 40px !important;
  }

  .page-promotions__copyright-info {
    padding: 15px !important;
    font-size: 0.85rem !important;
  }
}

/* Dark background sections */
.page-promotions__dark-section {
  background-color: #017439;
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__main-title,
.page-promotions__dark-section .page-promotions__section-title {
  color: #ffffff;
}

.page-promotions__dark-section .page-promotions__description,
.page-promotions__dark-section .page-promotions__section-description {
  color: #f0f0f0;
}

/* Light background sections */
.page-promotions__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-promotions__light-bg .page-promotions__main-title,
.page-promotions__light-bg .page-promotions__section-title,
.page-promotions__light-bg .page-promotions__card-title,
.page-promotions__light-bg .page-promotions__term-title,
.page-promotions__light-bg .page-promotions__benefit-title {
  color: #017439;
}

.page-promotions__light-bg .page-promotions__description,
.page-promotions__light-bg .page-promotions__section-description,
.page-promotions__light-bg .page-promotions__card-text,
.page-promotions__light-bg .page-promotions__term-text,
.page-promotions__light-bg .page-promotions__benefit-text {
  color: #555555;
}