.page-lottery {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  padding-bottom: 50px;
}

.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  overflow: hidden;
  color: #FFF3E6;
}

.page-lottery__hero-image-wrapper {
  width: 100%;
  max-height: 700px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-lottery__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content slightly over the image for visual flow */
  background: linear-gradient(0deg, #0D0E12 0%, rgba(13, 14, 18, 0.8) 50%, rgba(13, 14, 18, 0) 100%);
  border-radius: 10px;
}

.page-lottery__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFB04D; /* Glow */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-lottery__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-lottery__section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
  position: relative;
}

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

.page-lottery__section-title {
  font-size: 2.5em;
  color: #FF8C1A; /* Main color */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-lottery__text-block {
  font-size: 1.1em;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
  color: #FFF3E6;
}

.page-lottery__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__image-centered {
  margin-left: auto;
  margin-right: auto;
}

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

.page-lottery__card {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFF3E6;
}

.page-lottery__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-lottery__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-lottery__card-title {
  font-size: 1.5em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF3E6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-lottery__card-link {
  display: inline-block;
  background-color: #FF8C1A; /* Main color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-lottery__card-link:hover {
  background-color: #D96800; /* Deep Orange */
}

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

.page-lottery__step-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-lottery__step-title {
  font-size: 1.4em;
  color: #FFB04D; /* Glow */
  margin-bottom: 15px;
  font-weight: 600;
}

.page-lottery__step-description {
  font-size: 1em;
  line-height: 1.6;
  color: #FFF3E6;
}

.page-lottery__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.page-lottery__benefit-item {
  background-color: #17191F; /* Card BG */
  border-left: 5px solid #FF8C1A; /* Main color */
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 1.1em;
  color: #FFF3E6;
}

.page-lottery__benefit-item strong {
  color: #FFB04D; /* Glow */
}

.page-lottery__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-lottery__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-lottery__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  border: none;
}

.page-lottery__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FF8C1A; /* Main color */
  border: 2px solid #FF8C1A;
}

.page-lottery__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #ffffff;
}

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

.page-lottery__faq-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: 600;
  color: #FFB04D; /* Glow */
  cursor: pointer;
  background-color: #17191F; /* Card BG */
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-lottery__faq-question:hover {
  background-color: rgba(255, 140, 26, 0.1);
}

.page-lottery__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FF8C1A; /* Main color */
}

.page-lottery__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: #FFF3E6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-lottery__faq-item[open] .page-lottery__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

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

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

@media (max-width: 1024px) {
  .page-lottery__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-lottery__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-lottery__section-title {
    font-size: 2em;
  }

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

  .page-lottery__benefits-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-lottery__hero-section {
    padding-top: 10px !important; /* Small top padding for mobile */
  }

  .page-lottery__hero-image-wrapper {
    max-height: 400px;
  }

  .page-lottery__hero-content {
    padding: 20px 15px;
    margin-top: -80px;
  }

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

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

  /* 产品展示图区域 (General card grid for lottery types) */
  .page-lottery__game-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .page-lottery__card {
    padding: 20px;
  }

  .page-lottery__card-image {
    height: 160px !important;
  }

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

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

  .page-lottery__container,
  .page-lottery__section,
  .page-lottery__card,
  .page-lottery__step-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 */
  .page-lottery__cta-button,
  .page-lottery__btn-primary,
  .page-lottery__btn-secondary,
  .page-lottery a[class*="button"],
  .page-lottery 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-lottery__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px;
  }

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

  .page-lottery__text-block,
  .page-lottery__step-description,
  .page-lottery__benefit-item,
  .page-lottery__faq-answer p {
    font-size: 15px;
    line-height: 1.6;
  }

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

  .page-lottery__benefits-list {
    gap: 15px;
  }

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

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