.page-xs {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000000; /* Ensure this matches body background */
}

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

.page-xs__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #000000;
}

.page-xs__hero-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.page-xs__hero-content {
  position: relative;
  z-index: 10;
  padding: 0 20px 40px;
  max-width: 900px;
  box-sizing: border-box;
}

.page-xs__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-xs__hero-description {
  font-size: 1.2rem;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-xs__btn-primary,
.page-xs__btn-secondary,
.page-xs__btn-link {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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-xs__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-xs__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-xs__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-xs__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: 1px solid #26A9E0;
  padding: 10px 20px;
  font-size: 0.95rem;
}

.page-xs__btn-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-xs__section-title {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-xs__introduction-section,
.page-xs__guide-section,
.page-xs__promotions-section,
.page-xs__conclusion-section {
  background-color: #1a1a1a; /* Light background for sections, but still dark for overall body */
  color: #ffffff;
  padding: 60px 0;
}

.page-xs__lottery-types-section,
.page-xs__strategy-section,
.page-xs__faq-section {
  background-color: #0d0d0d; /* Darker background for contrast */
  color: #ffffff;
  padding: 60px 0;
}

.page-xs__lottery-types-section .page-xs__section-title,
.page-xs__strategy-section .page-xs__section-title,
.page-xs__faq-section .page-xs__section-title {
  color: #ffffff;
}

.page-xs__introduction-section .page-xs__section-title,
.page-xs__guide-section .page-xs__section-title,
.page-xs__promotions-section .page-xs__section-title,
.page-xs__conclusion-section .page-xs__section-title {
  color: #26A9E0;
}

.page-xs__text-block {
  font-size: 1.1rem;
  margin-top: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 15px;
}

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

.page-xs__type-card {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-xs__type-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-xs__type-title {
  font-size: 1.8rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-xs__type-card p {
  font-size: 1rem;
  color: #f0f0f0;
  flex-grow: 1;
}

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

.page-xs__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
}

.page-xs__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
  margin-bottom: 25px;
  border-radius: 8px;
  display: block;
}

.page-xs__step-title {
  font-size: 1.6rem;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-xs__step-item p {
  font-size: 1rem;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-xs__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-xs__strategy-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-xs__strategy-item h3 {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-xs__strategy-item p {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-xs__promo-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 10px;
}

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

.page-xs__promo-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  color: #f0f0f0;
  font-size: 1.05rem;
}

.page-xs__promo-item strong {
  color: #26A9E0;
}

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

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

.page-xs__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-xs__faq-item summary {
  list-style: none;
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.3rem;
  font-weight: bold;
  color: #26A9E0;
  position: relative;
  user-select: none;
}

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

.page-xs__faq-item summary:focus {
  outline: none;
}

.page-xs__faq-qtext {
  flex-grow: 1;
  margin-right: 15px;
}

.page-xs__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #ffffff;
  width: 24px;
  text-align: center;
}

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

.page-xs__faq-answer p {
  margin-bottom: 10px;
}

.page-xs__conclusion-cta {
  text-align: center;
  margin-top: 40px;
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* General image styling */
.page-xs img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsive styles */
@media (max-width: 1024px) {
  .page-xs__hero-title {
    font-size: clamp(2rem, 6vw, 3rem);
  }
  .page-xs__section-title {
    font-size: 2rem;
  }
  .page-xs__hero-content {
    padding: 0 15px 30px;
  }
  .page-xs__container {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .page-xs {
    font-size: 16px;
    line-height: 1.6;
  }
  
  /* HERO 主图区域 */
  .page-xs__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-xs__hero-image {
    margin-bottom: 15px;
  }
  .page-xs__hero-title {
    font-size: 1.8rem !important;
    margin-bottom: 10px;
  }
  .page-xs__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }
  .page-xs__hero-cta {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* 按钮与按钮容器 */
  .page-xs__btn-primary,
  .page-xs__btn-secondary,
  .page-xs__btn-link,
  .page-xs a[class*="button"],
  .page-xs 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-xs__hero-cta,
  .page-xs__conclusion-cta {
    flex-wrap: wrap !important;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* 产品展示图区域 */
  .page-xs__types-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-xs__type-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-xs__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* 通用图片与容器 */
  .page-xs img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-xs__container,
  .page-xs__section,
  .page-xs__card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 其他内容模块 */
  .page-xs__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }
  .page-xs__type-title {
    font-size: 1.5rem;
  }
  .page-xs__step-title {
    font-size: 1.4rem;
  }
  .page-xs__strategy-item h3 {
    font-size: 1.3rem;
  }
  .page-xs__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }
  .page-xs__faq-answer {
    padding: 0 20px 15px;
  }
  .page-xs__introduction-section,
  .page-xs__guide-section,
  .page-xs__promotions-section,
  .page-xs__conclusion-section,
  .page-xs__lottery-types-section,
  .page-xs__strategy-section,
  .page-xs__faq-section {
    padding: 40px 0;
  }
}