.page-lottery {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Inherited from body via shared.css */
}

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

/* Hero Section */
.page-lottery__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top for header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

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

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

.page-lottery__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly with image for visual flow, but not on text */
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent dark background for text readability */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-lottery__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #FFFF00; /* Custom font color for login/register text */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.page-lottery__hero-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.6;
}

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

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

.page-lottery__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-lottery__btn-primary:hover {
  background-color: #e01010;
  transform: translateY(-2px);
}

.page-lottery__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

.page-lottery__btn-secondary:hover {
  background-color: #C30808;
  transform: translateY(-2px);
}

/* General Section Styles */
.page-lottery__section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: #FFFF00; /* Custom font color for titles */
  line-height: 1.3;
}

.page-lottery__section-description {
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0;
}

.page-lottery__text-block {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-lottery__light-bg {
  background-color: #ffffff; /* White background for light sections */
  color: #333333; /* Dark text for light sections */
}

.page-lottery__light-bg .page-lottery__section-title,
.page-lottery__light-bg .page-lottery__section-description,
.page-lottery__light-bg .page-lottery__text-block,
.page-lottery__light-bg .page-lottery__guide-item p,
.page-lottery__light-bg .page-lottery__tips-item p {
  color: #333333; /* Ensure dark text on light background */
}

.page-lottery__dark-section {
  background-color: #017439; /* Brand main color for dark sections */
  color: #ffffff; /* White text on dark sections */
}

.page-lottery__dark-bg .page-lottery__section-title,
.page-lottery__dark-section .page-lottery__section-title {
  color: #FFFF00; /* Custom font color for titles */
}

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

.page-lottery__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

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

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

.page-lottery__game-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFF00;
  padding: 15px 20px 10px;
}

.page-lottery__game-description {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 20px;
}

/* Guide Section */
.page-lottery__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-lottery__guide-item {
  background: #f9f9f9;
  border-left: 5px solid #017439;
  padding: 25px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__guide-step-title {
  font-size: 1.3rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-lottery__guide-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

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

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

.page-lottery__promo-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #f0f0f0;
}

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

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

.page-lottery__promo-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFF00;
  padding: 15px 20px 10px;
}

.page-lottery__promo-description {
  font-size: 0.95rem;
  line-height: 1.6;
  padding: 0 20px 15px;
}

.page-lottery__read-more {
  display: inline-block;
  color: #C30808;
  text-decoration: none;
  font-weight: 600;
  padding: 0 20px 20px;
  transition: color 0.3s ease;
}

.page-lottery__read-more:hover {
  color: #e01010;
  text-decoration: underline;
}

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

.page-lottery__tips-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-lottery__tips-title {
  font-size: 1.3rem;
  color: #017439;
  margin-bottom: 10px;
}

.page-lottery__tips-item p {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

/* FAQ Section */
.page-lottery__faq-list {
  margin-top: 40px;
}

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

.page-lottery__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #FFFF00;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
}

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

.page-lottery__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-lottery__faq-item[open] .page-lottery__faq-toggle {
  transform: rotate(45deg);
}

.page-lottery__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  line-height: 1.7;
  color: #f0f0f0;
}

/* Conclusion Section */
.page-lottery__conclusion-section {
  padding-bottom: 60px;
}

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

/* Tablet styles */
@media (max-width: 1024px) {
  .page-lottery__hero-content {
    margin-top: -80px;
    padding: 30px 20px;
  }

  .page-lottery__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  }

  .page-lottery__hero-description {
    font-size: 1.1rem;
  }

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    padding: 12px 25px;
    font-size: 1rem;
  }

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

  .page-lottery__games-grid,
  .page-lottery__promotions-grid,
  .page-lottery__tips-list {
    gap: 20px;
  }

  .page-lottery__game-title,
  .page-lottery__promo-title {
    font-size: 1.3rem;
  }

  .page-lottery__guide-step-title,
  .page-lottery__tips-title {
    font-size: 1.2rem;
  }

  .page-lottery__faq-question {
    font-size: 1.1rem;
  }
}

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

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

  .page-lottery__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-lottery__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-lottery__hero-description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

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

  .page-lottery__btn-primary,
  .page-lottery__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    font-size: 1rem;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-lottery__container,
  .page-lottery__games-grid,
  .page-lottery__promotions-grid,
  .page-lottery__tips-list {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-lottery__section-title {
    font-size: clamp(1.5rem, 5.5vw, 2.2rem);
    margin-bottom: 20px;
  }

  .page-lottery__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  /* 产品展示图区域 */
  .page-lottery__games-grid {
    grid-template-columns: 1fr;
  }

  .page-lottery__game-card {
    margin-bottom: 20px;
  }

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

  .page-lottery__game-title {
    font-size: 1.2rem;
    padding: 12px 15px 8px;
  }

  .page-lottery__game-description {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  /* 其他内容模块 */
  .page-lottery__guide-item,
  .page-lottery__tips-item {
    padding: 20px;
  }

  .page-lottery__guide-step-title,
  .page-lottery__tips-title {
    font-size: 1.1rem;
  }

  .page-lottery__guide-item p,
  .page-lottery__tips-item p {
    font-size: 0.95rem;
  }

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

  .page-lottery__promo-image {
    height: 160px;
  }

  .page-lottery__promo-title {
    font-size: 1.2rem;
    padding: 12px 15px 8px;
  }

  .page-lottery__promo-description {
    font-size: 0.9rem;
    padding: 0 15px 15px;
  }

  .page-lottery__read-more {
    padding: 0 15px 15px;
  }

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

  .page-lottery__faq-answer {
    font-size: 0.95rem;
    padding: 0 20px 15px;
  }
}