/* style/promotions-latest-details.css */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --main-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

.page-promotions-latest-details {
  background-color: var(--main-bg);
  color: var(--text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom for overall spacing */
}

.page-promotions-latest-details__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content */
  overflow: hidden;
}

.page-promotions-latest-details__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
}

.page-promotions-latest-details__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-promotions-latest-details__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: 10; /* Ensure content is above image */
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-latest-details__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
}

.page-promotions-latest-details__hero-description {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-promotions-latest-details__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-promotions-latest-details__cta-button:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-promotions-latest-details__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-promotions-latest-details__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-promotions-latest-details__section-intro {
  font-size: 1.1rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: var(--text-main);
}

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

.page-promotions-latest-details__card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  color: var(--text-main);
}

.page-promotions-latest-details__card:hover {
  transform: translateY(-5px);
}

.page-promotions-latest-details__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-promotions-latest-details__card-title {
  font-size: 1.5rem;
  color: var(--secondary-color);
  padding: 20px 20px 10px 20px;
  font-weight: 600;
}

.page-promotions-latest-details__card-text {
  font-size: 1rem;
  color: var(--text-main);
  padding: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-promotions-latest-details__card-button {
  display: block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 20px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background 0.3s ease;
}

.page-promotions-latest-details__card-button:hover {
  background: linear-gradient(180deg, var(--deep-orange) 0%, var(--secondary-color) 100%);
}

.page-promotions-latest-details__how-to-join .page-promotions-latest-details__section-title,
.page-promotions-latest-details__benefits .page-promotions-latest-details__section-title,
.page-promotions-latest-details__faq-section .page-promotions-latest-details__section-title,
.page-promotions-latest-details__call-to-action .page-promotions-latest-details__section-title {
  margin-top: 60px;
}

.page-promotions-latest-details__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-promotions-latest-details__step-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-promotions-latest-details__step-icon {
  background-color: var(--primary-color);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
  margin: 0 auto 20px auto;
}

.page-promotions-latest-details__step-title {
  font-size: 1.4rem;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-promotions-latest-details__step-text {
  font-size: 1rem;
  color: var(--text-main);
}

.page-promotions-latest-details__cta-wrapper {
  text-align: center;
  margin-top: 60px;
}

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

.page-promotions-latest-details__benefit-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
}

.page-promotions-latest-details__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-promotions-latest-details__benefit-heading {
  font-size: 1.3rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-promotions-latest-details__benefit-text {
  font-size: 1rem;
  color: var(--text-main);
}

.page-promotions-latest-details__faq-section {
  padding-bottom: 60px;
}

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

.page-promotions-latest-details__faq-item {
  background-color: var(--card-bg);
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.page-promotions-latest-details__faq-item summary {
  list-style: none;
}

.page-promotions-latest-details__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-promotions-latest-details__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--secondary-color);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid transparent; /* default */
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-promotions-latest-details__faq-item[open] .page-promotions-latest-details__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  border-bottom-color: var(--border-color);
}

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

.page-promotions-latest-details__faq-toggle {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  line-height: 1;
  margin-left: 15px;
}

.page-promotions-latest-details__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: var(--text-main);
}

/* HERO area text overlap fix */
.page-promotions-latest-details__hero-section {
  /* Removed position: relative on .page-promotions-latest-details__hero-section to make hero-content position absolute relative to main */
  /* Re-evaluating: position: relative is needed for hero-content positioning. The issue was with the instruction to make image-wrapper above content. */
  /* The instructions say "强制上图下文、禁止在主图上叠字". This means the image and text should be siblings and stacked vertically, not absolutely positioned on top of each other. */
  /* Adjusting hero section to stack image and content vertically */
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-promotions-latest-details__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  order: 1; /* Image first */
}

.page-promotions-latest-details__hero-content {
  position: static; /* Remove absolute positioning */
  transform: none; /* Remove transform */
  text-align: center;
  max-width: 900px;
  padding: 20px;
  z-index: auto;
  background: transparent; /* No background on text block if not overlapping */
  border-radius: 0;
  box-shadow: none;
  order: 2; /* Content second */
  margin-top: 20px; /* Space between image and text */
}

.page-promotions-latest-details__hero-image {
  filter: none; /* No need to darken if text is not on top */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-promotions-latest-details__content-area {
    padding: 30px 15px;
  }
  .page-promotions-latest-details__section-intro {
    margin-bottom: 30px;
  }
  .page-promotions-latest-details__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
  .page-promotions-latest-details__hero-description {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
  }
}

@media (max-width: 768px) {
  .page-promotions-latest-details__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-promotions-latest-details__hero-image-wrapper {
    max-height: 300px;
  }
  .page-promotions-latest-details__hero-content {
    padding: 15px;
    margin-top: 15px;
  }
  .page-promotions-latest-details__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.3;
  }
  .page-promotions-latest-details__hero-description {
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin-bottom: 20px;
  }
  .page-promotions-latest-details__cta-button {
    padding: 12px 25px;
    font-size: 1rem;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-promotions-latest-details__section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }
  .page-promotions-latest-details__section-intro {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }
  .page-promotions-latest-details__cards-grid,
  .page-promotions-latest-details__steps,
  .page-promotions-latest-details__benefit-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-promotions-latest-details__card-image {
    height: 180px;
  }
  .page-promotions-latest-details__card-title {
    font-size: 1.3rem;
  }
  .page-promotions-latest-details__card-text {
    font-size: 0.9rem;
  }
  .page-promotions-latest-details__step-icon {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .page-promotions-latest-details__step-title {
    font-size: 1.2rem;
  }
  .page-promotions-latest-details__benefit-icon {
    width: 80px;
    height: 80px;
  }
  .page-promotions-latest-details__benefit-heading {
    font-size: 1.1rem;
  }
  .page-promotions-latest-details__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
  .page-promotions-latest-details__faq-toggle {
    font-size: 1.5rem;
  }
  .page-promotions-latest-details__faq-answer {
    padding: 0 15px 15px 15px;
    font-size: 0.9rem;
  }

  /* Mobile image responsiveness */
  .page-promotions-latest-details img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-promotions-latest-details__section,
  .page-promotions-latest-details__card,
  .page-promotions-latest-details__container,
  .page-promotions-latest-details__hero-section,
  .page-promotions-latest-details__hero-image-wrapper,
  .page-promotions-latest-details__hero-content,
  .page-promotions-latest-details__how-to-join,
  .page-promotions-latest-details__benefits,
  .page-promotions-latest-details__faq-section,
  .page-promotions-latest-details__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-promotions-latest-details__faq-list {
    padding-left: 0;
    padding-right: 0;
  }
  .page-promotions-latest-details__cta-buttons,
  .page-promotions-latest-details__button-group,
  .page-promotions-latest-details__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-promotions-latest-details__cta-buttons {
    display: flex;
    flex-direction: column; /* Mobile vertical stacking */
  }
}