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

.page-index__section {
  padding: 40px 0;
  text-align: center;
}

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

.page-index__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: #FFF6D6;
}

.page-index__tieudevip {
  display: inline-block;
  font-size: 2em;
  font-weight: bold;
  color: #3477c9;
  border: 2px solid #3477c9;
  padding: 10px 20px;
  border-radius: 8px;
  margin-bottom: 40px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(52, 119, 201, 0.4);
}

/* Hero Carousel Section */
.page-index__hero-carousel-section {
  padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
  padding-bottom: 0;
  overflow: hidden;
}

.page-index__hero-slider {
  position: relative;
  max-width: 1020px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.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: rgba(0, 0, 0, 0.5);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 10;
  font-size: 1.5em;
  border-radius: 5px;
}

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

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

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

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

.page-index__hero-slider-dot.is-active {
  background: #F2C14E;
}

/* Guide Section */
.page-index__guide-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #111111; /* Card BG */
  border-radius: 4px;
  box-sizing: border-box;
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.3); /* Glow effect */
}

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

.page-index__guide-card {
  display: block;
  flex: 0 0 calc(20% - 12px); /* 5 cards with gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  transition: transform 0.3s ease-in-out;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* 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; }

/* Home Content Section */
.page-index__home-content-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__home-content-box {
  max-width: 91%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3477c9;
  border-radius: 15px;
  box-shadow: 0 0 20px #3477c9;
  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 space */
}

.page-index__home-content-inner::-webkit-scrollbar {
  width: 8px;
}

.page-index__home-content-inner::-webkit-scrollbar-track {
  background: #3A2A12; /* Border */
  border-radius: 4px;
}

.page-index__home-content-inner::-webkit-scrollbar-thumb {
  background: #F2C14E; /* Main color */
  border-radius: 4px;
}

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

.page-index__home-content-subtitle {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E; /* Main color */
}

.page-index__home-content-subheading {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #FFD86A; /* Brighter yellow */
}

.page-index__home-content-box p,
.page-index__home-content-box li {
  font-size: 1em;
  margin-bottom: 10px;
  color: #FFF6D6;
  text-align: justify;
}

.page-index__home-content-box ul,
.page-index__home-content-box ol {
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-index__wp-caption {
  margin: 20px auto;
  max-width: 100%;
  text-align: center;
}

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

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

/* Blog Section */
.page-index__blog-section {
  padding-top: 40px;
  padding-bottom: 40px;
}

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

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

.page-index__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4); /* Glow on hover */
}

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

.page-index__blog-media {
  position: relative;
  height: 225px; /* Fixed height for image container */
  overflow: hidden;
}

.page-index__blog-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
  transition: transform 0.3s ease-in-out;
}

.page-index__blog-card:hover .page-index__blog-media img {
  transform: scale(1.05);
}

.page-index__blog-date {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #0A0A0A;
  padding: 5px 8px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.8em;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

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

.page-index__blog-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  padding: 15px;
  margin-bottom: 5px;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #FFF6D6;
  padding: 0 15px 15px;
  line-height: 1.4;
}

.page-index__view-all-button-container {
  margin-top: 40px;
}

/* App Download Section */
.page-index__app-download-section {
  background-color: #111111; /* Card BG */
  padding: 60px 0;
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
}

.page-index__app-download-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px;
  background-color: #0A0A0A; /* Background */
  border-radius: 15px;
  box-shadow: 0 0 25px rgba(242, 193, 78, 0.5);
  border: 2px solid #F2C14E;
}

.page-index__app-info {
  flex: 1;
  min-width: 300px;
  text-align: left;
}

.page-index__app-title {
  font-size: 2.5em;
  color: #FFD36B; /* Glow */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index__app-description {
  font-size: 1.1em;
  color: #FFF6D6; /* Text Main */
  margin-bottom: 30px;
  line-height: 1.5;
}

.page-index__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-index__app-image {
  flex-shrink: 0;
  width: 400px;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-index__app-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Buttons */
.page-index__btn-primary,
.page-index__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text breaking */
  box-sizing: border-box;
  max-width: 100%;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #0A0A0A; /* Dark text for light button */
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
  box-shadow: 0 0 15px #FFD36B;
}

.page-index__btn-secondary {
  background: #111111; /* Card BG */
  color: #FFD36B; /* Glow */
  border: 2px solid #FFD36B;
}

.page-index__btn-secondary:hover {
  background: #FFD36B;
  color: #0A0A0A;
  box-shadow: 0 0 15px #FFD36B;
}

/* Universal image rules for content area */
.page-index img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Mobile Styles (max-width: 768px) --- */
@media (max-width: 768px) {
  .page-index {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-index__section-content {
    padding: 0 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-index__section-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-index__tieudevip {
    font-size: 1.5em;
    padding: 8px 15px;
    margin-bottom: 30px;
  }

  /* Hero Carousel Section Mobile */
  .page-index__hero-carousel-section {
    padding-top: 10px !important;
  }

  .page-index__hero-slider-prev,
  .page-index__hero-slider-next {
    padding: 8px 12px;
    font-size: 1.2em;
  }

  /* Guide Section Mobile */
  .page-index__guide-box {
    padding: 15px;
  }

  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
  }

  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset PC specific padding */
  }

  /* 上二下三 layout */
  .page-index__guide-card--pos-1,
  .page-index__guide-card--pos-2 { grid-column: span 3; }
  .page-index__guide-card--pos-3,
  .page-index__guide-card--pos-4,
  .page-index__guide-card--pos-5 { grid-column: span 2; }

  .page-index__guide-card img {
    border-radius: 5px;
  }

  /* Home Content Section Mobile */
  .page-index__home-content-box {
    max-width: 100%;
    height: auto; /* Allow content to expand */
    padding: 20px 15px;
    border-radius: 10px;
  }

  .page-index__home-content-inner {
    height: auto; /* Allow content to expand */
    overflow: visible; /* Disable scrolling within box */
    padding-right: 0;
  }

  .page-index__home-content-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-index__home-content-subtitle {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 10px;
  }

  .page-index__home-content-subheading {
    font-size: 1.2em;
    margin-top: 20px;
    margin-bottom: 8px;
  }

  .page-index__home-content-box p,
  .page-index__home-content-box li {
    font-size: 0.95em;
    margin-bottom: 8px;
  }

  /* Blog Section Mobile */
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile */
    gap: 15px;
  }

  .page-index__blog-card {
    border-radius: 8px;
  }

  .page-index__blog-media {
    height: 150px; /* Adjust height for mobile */
  }

  .page-index__blog-title {
    font-size: 1.1em;
    padding: 10px;
  }

  .page-index__blog-excerpt {
    font-size: 0.85em;
    padding: 0 10px 10px;
  }

  /* App Download Section Mobile */
  .page-index__app-download-box {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    border-radius: 10px;
  }

  .page-index__app-info {
    min-width: unset;
    text-align: center;
  }

  .page-index__app-title {
    font-size: 1.8em;
    margin-bottom: 10px;
  }

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

  .page-index__app-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-index__app-image {
    width: 100%;
    height: auto;
  }

  .page-index__app-image img {
    max-width: 80%;
  }

  /* Universal Mobile Image & Button Adaptation */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index__cta-button,
  .page-index__btn-primary,
  .page-index__btn-secondary,
  .page-index a[class*="button"],
  .page-index 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-index__cta-buttons,
  .page-index__button-group,
  .page-index__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }
}