/* style/lottery.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-lottery {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

.page-lottery__dark-section {
  background-color: #0d0d0d; /* Assuming --black-color is dark */
  color: #ffffff;
}

.page-lottery__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-lottery__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Slightly darken image for text readability */
}

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.2em);
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-lottery__hero-description {
  font-size: clamp(1em, 1.5vw, 1.25em);
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-lottery__btn-primary,
.page-lottery__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-lottery__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-lottery__btn-primary:hover {
  background-color: #1a8cc4;
  border-color: #1a8cc4;
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-lottery__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-lottery__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-lottery__section-title {
  font-size: clamp(1.8em, 3vw, 2.5em);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherits from parent section */
}

.page-lottery__text-block {
  font-size: 1.05em;
  margin-bottom: 20px;
  line-height: 1.7;
  color: inherit;
}

.page-lottery__text-link {
  color: #26A9E0;
  text-decoration: underline;
}

.page-lottery__text-link:hover {
  color: #1a8cc4;
}

.page-lottery__intro-section,
.page-lottery__guide-section,
.page-lottery__promotions-section,
.page-lottery__conclusion-section {
  padding: 80px 0;
}

.page-lottery__types-section,
.page-lottery__benefits-section,
.page-lottery__faq-section {
  padding: 80px 0;
}

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

.page-lottery__type-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.page-lottery__type-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-lottery__type-title {
  font-size: 1.4em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-lottery__type-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-lottery__step-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
  color: #333333;
}

.page-lottery__step-number {
  width: 50px;
  height: 50px;
  line-height: 50px;
  background-color: #26A9E0;
  color: #FFFFFF;
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: 700;
  margin: 0 auto 20px auto;
}

.page-lottery__step-title {
  font-size: 1.3em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #26A9E0;
}

.page-lottery__step-description {
  font-size: 0.95em;
  color: #555555;
}

.page-lottery__cta-center {
  text-align: center;
  margin-top: 40px;
}

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

.page-lottery__benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  color: #FFFFFF;
}

.page-lottery__benefit-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.page-lottery__benefit-title {
  font-size: 1.2em;
  font-weight: 600;
  margin-bottom: 5px;
  color: #26A9E0;
}

.page-lottery__benefit-content p {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-lottery__promo-card {
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  color: #333333;
}

.page-lottery__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.page-lottery__promo-title {
  font-size: 1.3em;
  font-weight: 600;
  margin: 20px 15px 10px 15px;
  color: #26A9E0;
}

.page-lottery__promo-description {
  font-size: 0.95em;
  padding: 0 15px 20px 15px;
  color: #555555;
}

.page-lottery__faq-list {
  margin-top: 40px;
}

.page-lottery__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFFFFF;
}

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

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  color: #FFFFFF;
  background-color: #26A9E0;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

.page-lottery__faq-question:hover {
  background-color: #1a8cc4;
}

.page-lottery__faq-qtext {
  flex-grow: 1;
  color: #FFFFFF;
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFFFF;
}

.page-lottery__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-lottery__faq-item[open] .page-lottery__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

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

.highlight {
  color: #26A9E0;
  font-weight: 600;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-lottery {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-lottery__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important;
  }

  .page-lottery__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-lottery__hero-description {
    font-size: clamp(0.9em, 4vw, 1.1em);
  }

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-lottery__container {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-lottery__section-title {
    font-size: clamp(1.5em, 6vw, 2em);
    margin-bottom: 25px;
  }

  .page-lottery__text-block {
    font-size: 0.95em;
  }

  .page-lottery__type-grid,
  .page-lottery__guide-steps,
  .page-lottery__benefit-list,
  .page-lottery__promo-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-lottery__type-image,
  .page-lottery__promo-image {
    height: 180px;
  }

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

  .page-lottery__faq-answer {
    padding: 10px 20px 15px 20px;
  }

  /* Mobile image responsiveness */
  .page-lottery img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__container,
  .page-lottery__hero-section,
  .page-lottery__intro-section,
  .page-lottery__types-section,
  .page-lottery__guide-section,
  .page-lottery__benefits-section,
  .page-lottery__promotions-section,
  .page-lottery__faq-section,
  .page-lottery__conclusion-section,
  .page-lottery__type-card,
  .page-lottery__step-card,
  .page-lottery__benefit-item,
  .page-lottery__promo-card,
  .page-lottery__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  /* Ensure no double padding on sections already handled by container */
  .page-lottery__intro-section .page-lottery__container,
  .page-lottery__types-section .page-lottery__container,
  .page-lottery__guide-section .page-lottery__container,
  .page-lottery__benefits-section .page-lottery__container,
  .page-lottery__promotions-section .page-lottery__container,
  .page-lottery__faq-section .page-lottery__container,
  .page-lottery__conclusion-section .page-lottery__container {
    padding-left: 0;
    padding-right: 0;
  }

  .page-lottery__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Desktop video width for hero is not applicable as hero is an image */
/* However, if there was a video container, it would need width: 100% */