/* Base styles for the page */
.page-index-gioi-thieu-nen-tang {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* #FFF3E6 */
  background-color: var(--background); /* #0D0E12 */
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

.page-index-gioi-thieu-nen-tang__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-index-gioi-thieu-nen-tang__section {
  padding: 60px 0;
}

.page-index-gioi-thieu-nen-tang__section--intro,
.page-index-gioi-thieu-nen-tang__section--login-process,
.page-index-gioi-thieu-nen-tang__section--user-experience,
.page-index-gioi-thieu-nen-tang__section--games,
.page-index-gioi-thieu-nen-tang__section--promotions,
.page-index-gioi-thieu-nen-tang__section--support,
.page-index-gioi-thieu-nen-tang__section--commitment,
.page-index-gioi-thieu-nen-tang__section--cta {
  background-color: var(--background); /* Consistent dark background */
}

.page-index-gioi-thieu-nen-tang__section-title {
  font-size: 38px;
  font-weight: 700;
  color: var(--primary-color); /* #FF8C1A */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-index-gioi-thieu-nen-tang__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-main); /* #FFF3E6 */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-index-gioi-thieu-nen-tang__text-block p {
  margin-bottom: 15px;
  color: var(--text-main); /* #FFF3E6 */
}

.page-index-gioi-thieu-nen-tang__highlight {
  color: var(--secondary-color); /* #FFA53A */
  font-weight: bold;
}

/* Hero Section */
.page-index-gioi-thieu-nen-tang__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, header offset handled by body */
  background-color: var(--background); /* #0D0E12 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Ensure hero section has a minimum height */
}

.page-index-gioi-thieu-nen-tang__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.page-index-gioi-thieu-nen-tang__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly dim the image for text readability */
}

.page-index-gioi-thieu-nen-tang__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
}

.page-index-gioi-thieu-nen-tang__hero-title {
  font-size: clamp(32px, 5vw, 56px); /* Responsive font size */
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-index-gioi-thieu-nen-tang__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-gioi-thieu-nen-tang__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.page-index-gioi-thieu-nen-tang__btn-primary,
.page-index-gioi-thieu-nen-tang__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  text-align: center;
  max-width: 100%; /* Ensure buttons adapt to container width */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-index-gioi-thieu-nen-tang__btn-primary {
  background: linear-gradient(180deg, var(--auxiliary-color) 0%, var(--deep-orange) 100%); /* #FFA53A to #D96800 */
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-index-gioi-thieu-nen-tang__btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--deep-orange) 100%); /* #FF8C1A to #D96800 */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-index-gioi-thieu-nen-tang__btn-secondary {
  background: transparent;
  color: var(--primary-color); /* #FF8C1A */
  border: 2px solid var(--border-color); /* #A84F0C */
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.2);
}

.page-index-gioi-thieu-nen-tang__btn-secondary:hover {
  background: rgba(255, 140, 26, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.4);
}

.page-index-gioi-thieu-nen-tang__btn--small {
  padding: 10px 20px;
  font-size: 16px;
}

/* Content Blocks */
.page-index-gioi-thieu-nen-tang__container--reverse {
  display: flex;
  flex-direction: row-reverse; /* For image-left, text-right layout */
  gap: 40px;
  align-items: center;
}

.page-index-gioi-thieu-nen-tang__content-area,
.page-index-gioi-thieu-nen-tang__content-block {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.page-index-gioi-thieu-nen-tang__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0; /* Allow flex item to shrink */
}

.page-index-gioi-thieu-nen-tang__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Lists */
.page-index-gioi-thieu-nen-tang__list,
.page-index-gioi-thieu-nen-tang__list-ordered {
  list-style-position: inside;
  margin-bottom: 15px;
  padding-left: 20px;
  color: var(--text-main); /* #FFF3E6 */
}

.page-index-gioi-thieu-nen-tang__list li,
.page-index-gioi-thieu-nen-tang__list-ordered li {
  margin-bottom: 8px;
  color: var(--text-main); /* #FFF3E6 */
}

.page-index-gioi-thieu-nen-tang__list li strong,
.page-index-gioi-thieu-nen-tang__list-ordered li strong {
  color: var(--primary-color); /* #FF8C1A */
}

/* Game Showcase */
.page-index-gioi-thieu-nen-tang__game-showcase {
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
}

.page-index-gioi-thieu-nen-tang__game-showcase img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-index-gioi-thieu-nen-tang__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* App Download Section */
.page-index-gioi-thieu-nen-tang__app-download {
  text-align: center;
  margin-top: 30px;
}

/* FAQ Section */
.page-index-gioi-thieu-nen-tang__faq-section {
  margin-top: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-index-gioi-thieu-nen-tang__faq-main-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color); /* #FF8C1A */
  text-align: center;
  margin-bottom: 30px;
}

details.page-index-gioi-thieu-nen-tang__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color); /* #A84F0C */
  overflow: hidden;
  background: var(--card-bg); /* #17191F */
}
details.page-index-gioi-thieu-nen-tang__faq-item summary.page-index-gioi-thieu-nen-tang__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-index-gioi-thieu-nen-tang__faq-item summary.page-index-gioi-thieu-nen-tang__faq-question::-webkit-details-marker {
  display: none;
}
details.page-index-gioi-thieu-nen-tang__faq-item summary.page-index-gioi-thieu-nen-tang__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}
.page-index-gioi-thieu-nen-tang__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* #FFF3E6 */
}
.page-index-gioi-thieu-nen-tang__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color); /* #FFA53A */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-index-gioi-thieu-nen-tang__faq-item .page-index-gioi-thieu-nen-tang__faq-answer {
  padding: 0 20px 20px;
  background: var(--background); /* #0D0E12 */
  border-radius: 0 0 8px 8px;
  color: var(--text-main); /* #FFF3E6 */
}
details.page-index-gioi-thieu-nen-tang__faq-item .page-index-gioi-thieu-nen-tang__faq-answer p {
  margin-top: 10px;
}
details.page-index-gioi-thieu-nen-tang__faq-item[open] summary.page-index-gioi-thieu-nen-tang__faq-question {
  background: rgba(255, 140, 26, 0.05); /* Slightly different background when open */
  border-bottom: 1px solid var(--border-color);
  border-radius: 8px 8px 0 0;
}


/* Responsive styles */
@media (max-width: 1024px) {
  .page-index-gioi-thieu-nen-tang__hero-title {
    font-size: clamp(30px, 6vw, 50px);
  }

  .page-index-gioi-thieu-nen-tang__section-title {
    font-size: 32px;
  }

  .page-index-gioi-thieu-nen-tang__sub-title {
    font-size: 22px;
  }

  .page-index-gioi-thieu-nen-tang__container--reverse {
    flex-direction: column; /* Stack image and text vertically */
    gap: 30px;
  }

  .page-index-gioi-thieu-nen-tang__content-area {
    flex-direction: column; /* Ensure content also stacks */
  }

  .page-index-gioi-thieu-nen-tang__image-block {
    order: -1; /* Image appears first when stacked */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-index-gioi-thieu-nen-tang__hero-section {
    min-height: 450px;
    padding-top: 10px; /* Small top padding for mobile */
  }

  .page-index-gioi-thieu-nen-tang__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    opacity: 0.2 !important; /* Dimm more for better text contrast */
  }

  .page-index-gioi-thieu-nen-tang__hero-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-index-gioi-thieu-nen-tang__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-index-gioi-thieu-nen-tang__hero-actions {
    flex-direction: column;
    gap: 15px;
  }

  .page-index-gioi-thieu-nen-tang__btn-primary,
  .page-index-gioi-thieu-nen-tang__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
  }

  /* 通用图片与容器 */
  .page-index-gioi-thieu-nen-tang img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-gioi-thieu-nen-tang__container,
  .page-index-gioi-thieu-nen-tang__content-block,
  .page-index-gioi-thieu-nen-tang__image-block,
  .page-index-gioi-thieu-nen-tang__app-download,
  .page-index-gioi-thieu-nen-tang__game-showcase,
  .page-index-gioi-thieu-nen-tang__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-index-gioi-thieu-nen-tang__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-index-gioi-thieu-nen-tang__sub-title {
    font-size: 20px;
    padding: 0 10px;
  }

  .page-index-gioi-thieu-nen-tang__text-block,
  .page-index-gioi-thieu-nen-tang__list,
  .page-index-gioi-thieu-nen-tang__list-ordered {
    padding-left: 15px;
    padding-right: 15px;
  }

  /* FAQ Section */
  details.page-index-gioi-thieu-nen-tang__faq-item summary.page-index-gioi-thieu-nen-tang__faq-question {
    padding: 15px;
  }
  .page-index-gioi-thieu-nen-tang__faq-qtext {
    font-size: 16px;
  }
}