.page-index {
  background-color: #0A0A0A;
  color: #FFF6D6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-index__section {
  padding: 20px 0;
  margin-bottom: 20px;
}

.page-index__section-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-index__section-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.tieudevip {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #000000; /* Black for contrast on gold gradient */
  border: 1px solid #3A2A12;
  box-shadow: 0 0 5px #FFD36B;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  max-width: fit-content;
  margin: 20px auto;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Module 0: Hero Carousel */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Assuming body handles --header-offset */
  margin-bottom: 0; /* Remove extra margin */
}

.page-index__hero-slider {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-index__hero-slide {
  display: none;
  width: 100%;
}

.page-index__hero-slide.is-active {
  display: block;
}

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: #FFF6D6;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__hero-slider-prev {
  left: 10px;
}

.page-index__hero-slider-next {
  right: 10px;
}

.page-index__hero-slider-prev::before {
  content: '‹';
}

.page-index__hero-slider-next::before {
  content: '›';
}

.page-index__hero-slider-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.page-index__hero-slider-dots .dot {
  width: 10px;
  height: 10px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.page-index__hero-slider-dots .dot.is-active {
  background-color: #FFD36B;
}

/* Module 1: Guide Section */
.page-index__guide-section {
  margin-top: 40px;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3; /* Light background for guide box */
  border-radius: 8px;
  box-sizing: border-box;
  color: #333333; /* Dark text on light background */
}

.page-index__guide-box .tieudevip {
  color: #000000;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 12px); /* 5 cards per row, accounting for gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed portrait aspect ratio */
  object-fit: cover;
  display: block;
}

/* PC 错落：中间高、两边平行 */
.page-index__guide-card--pos-1,
.page-index__guide-card--pos-5 {
  padding-top: 50px;
}

.page-index__guide-card--pos-2,
.page-index__guide-card--pos-4 {
  padding-top: 25px;
}

.page-index__guide-card--pos-3 {
  padding-top: 0;
}

/* Module 2: Home Content */
.page-index__home-content-section {
  margin-top: 40px;
}

.page-index__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3477c9; /* Blue border */
  border-radius: 15px;
  box-shadow: 0 0 20px #3477c9; /* Blue shadow */
  height: 700px;
  text-align: left;
  box-sizing: border-box;
  background-color: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px; /* For scrollbar */
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #FFD36B #111111; /* thumb and track color */
}

/* Webkit scrollbar styles */
.page-index__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-index__home-content-inner::-webkit-scrollbar-track {
  background: #111111;
  border-radius: 10px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background-color: #FFD36B;
  border-radius: 10px;
  border: 2px solid #111111;
}

.page-index__home-content-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #FFD36B; /* Highlight with auxiliary color */
  text-align: center;
}

.page-index__sub-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E; /* Highlight with main color */
}

.page-index__home-content-box p,
.page-index__home-content-box li {
  margin-bottom: 10px;
  color: #FFF6D6;
}

.page-index__home-content-box strong {
  color: #FFD36B;
}

.page-index__wp-caption {
  text-align: center;
  margin: 20px 0;
}

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-index__wp-caption figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #FFD36B;
  margin-top: 10px;
}

.page-index__home-content-box ul,
.page-index__home-content-box ol {
  list-style-position: inside;
  padding-left: 20px;
}

.page-index__faq-question {
  font-size: 1.2em;
  font-weight: bold;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #F2C14E; /* Main color for questions */
  cursor: pointer;
  position: relative;
  padding-left: 25px;
}

.page-index__faq-question::before {
  content: '+';
  position: absolute;
  left: 0;
  color: #FFD36B;
}

.page-index__faq-answer {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #FFF6D6;
}

/* Module 3: Latest Blog Posts */
.page-index__blog-section {
  margin-top: 40px;
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page-index__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-index__blog-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index__blog-media {
  position: relative;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
}

.page-index__blog-media img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0; /* Rounded top corners */
}

.page-index__blog-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #F2C14E;
  color: #000000;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 0.8em;
  font-weight: bold;
  text-align: center;
  line-height: 1.2;
}

.page-index__blog-date span:first-child {
  display: block;
  font-size: 1.2em;
}

.page-index__blog-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 15px;
  color: #FFD36B;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  margin: 0 15px 15px;
  color: #FFF6D6;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Module 4: App Download Section */
.page-index__app-download-section {
  text-align: center;
  padding: 50px 0;
  background-color: #111111; /* Card BG */
  border-radius: 10px;
  margin-top: 40px;
}

.page-index__app-download-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF6D6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}