/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* 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.2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #2F6BFF;
}

.tieudevip {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 30px;
  color: #2F6BFF;
  text-align: center;
  position: relative;
  display: inline-block;
  padding: 0 20px 10px;
}

.tieudevip::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #2F6BFF;
  border-radius: 2px;
  box-shadow: 0 2px 5px rgba(47, 107, 255, 0.4);
}

/* Module 0: Hero Carousel */
.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;
  width: 100%;
  overflow: hidden;
}

.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;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index__hero-slider-prev,
.page-index__hero-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(47, 107, 255, 0.7);
  color: #ffffff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.5em;
  z-index: 10;
  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: 15px;
  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: #2F6BFF;
}

/* Module 1: Operation Guide */
.page-index__guide-section {
  padding-top: 20px;
  padding-bottom: 40px;
}

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3;
  border-radius: 4px;
  box-sizing: border-box;
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: nowrap;
  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 with gap */
  max-width: calc(20% - 12px);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* 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 {
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-index__home-content-row {
  display: flex;
  justify-content: center;
}

.page-index__home-content-box {
  max-width: 91%; /* Approx 1100px for 1200px container */
  width: 100%;
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #2F6BFF; /* Main color */
  border-radius: 15px;
  box-shadow: 0 0 20px #A5C4FF; /* Glow color */
  height: 700px; /* Fixed height for desktop */
  text-align: left;
  box-sizing: border-box;
  background-color: #ffffff; /* Card BG */
  color: #1F2D3D; /* Text Main */
}

.page-index__home-content-inner {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 8px; /* For scrollbar */
  box-sizing: border-box;
}

.page-index__home-content-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #000000; /* Custom Color_1776249996415 */
  text-align: center;
  line-height: 1.2;
}

.page-index__home-content-box h2 {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #2F6BFF;
}

.page-index__home-content-box h3 {
  font-size: 1.4em;
  font-weight: bold;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #1F2D3D;
}

.page-index__home-content-box p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-index__home-content-box ul,
.page-index__home-content-box ol {
  margin-bottom: 15px;
  padding-left: 25px;
  color: #1F2D3D;
}

.page-index__home-content-box ul li,
.page-index__home-content-box ol li {
  margin-bottom: 8px;
}

.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 4px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-index__blog-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
}

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

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

.page-index__blog-media {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.page-index__blog-media img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.page-index__blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #2F6BFF;
  color: #ffffff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-align: center;
  display: flex;
  flex-direction: column;
  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: #000000; /* Custom Color_1776249996415 */
  padding: 15px 15px 5px;
  margin: 0;
}

.page-index__blog-excerpt {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px 15px;
  margin: 0;
  min-height: 40px; /* Ensure consistent height */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Module 4: App Download */
.page-index__app-download-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  padding: 60px 0;
}

.page-index__app-download-section .page-index__section-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-index__app-download-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-index__app-download-title {
  font-size: 2.5em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-index__app-download-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

.page-index__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-index__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-index__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-index__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-index__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.page-index__app-download-image {
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  text-align: center;
}

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

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-index__hero-slide img {
    height: 300px;
    object-fit: cover;
  }
  .page-index__guide-grid {
    gap: 10px;
  }
  .page-index__guide-card {
    flex: 0 0 calc(20% - 8px);
    max-width: calc(20% - 8px);
  }
  .page-index__blog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  .page-index__app-download-section .page-index__section-content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-index__section {
    padding: 30px 0;
  }
  .page-index__section-title, .tieudevip {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  /* Module 0: Hero Carousel */
  .page-index__hero-carousel-section {
    padding-top: 10px !important;
  }
  .page-index__hero-slide img {
    height: 250px !important;
    object-fit: cover !important;
  }
  .page-index__hero-slider-prev, .page-index__hero-slider-next {
    width: 30px;
    height: 30px;
    padding: 5px 10px;
    font-size: 1.2em;
  }
  .page-index__hero-slider-dots {
    bottom: 10px;
    gap: 5px;
  }
  .page-index__hero-slider-dots .dot {
    width: 8px;
    height: 8px;
  }

  /* Module 1: Operation Guide */
  .page-index__guide-box {
    padding: 15px;
  }
  .page-index__guide-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    margin-top: 15px;
  }
  .page-index__guide-card {
    flex: none;
    max-width: none;
    padding-top: 0 !important; /* Reset PC specific padding */
  }
  .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; }

  /* Module 2: Home Content */
  .page-index__home-content-box {
    max-width: 100% !important;
    height: auto !important; /* Full content visible */
    padding: 20px 15px !important;
    border-width: 3px;
    box-shadow: 0 0 15px #A5C4FF;
  }
  .page-index__home-content-inner {
    height: auto !important;
    overflow: visible !important;
    padding-right: 0 !important;
  }
  .page-index__home-content-title {
    font-size: 1.8em;
  }
  .page-index__home-content-box h2 {
    font-size: 1.5em;
  }
  .page-index__home-content-box h3 {
    font-size: 1.2em;
  }

  /* Module 3: Latest Blog Posts */
  .page-index__blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px;
  }
  .page-index__blog-media img {
    
  }
  .page-index__blog-date {
    top: 10px;
    right: 10px;
    padding: 3px 7px;
    font-size: 0.8em;
  }
  .page-index__blog-title {
    font-size: 1em;
    padding: 10px 10px 5px;
  }
  .page-index__blog-excerpt {
    font-size: 0.85em;
    padding: 0 10px 10px;
    min-height: 35px;
  }

  /* Module 4: App Download */
  .page-index__app-download-section .page-index__section-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-index__app-download-content {
    text-align: center;
  }
  .page-index__app-download-title {
    font-size: 2em;
  }
  .page-index__app-download-description {
    font-size: 1em;
  }
  .page-index__app-download-buttons {
    justify-content: center;
    gap: 15px;
    flex-direction: column;
  }
  .page-index__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 0.95em;
  }
  .page-index__app-download-image {
    order: -1; /* Image above text on mobile */
  }

  /* General mobile image and button adaptations */
  .page-index img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }
  .page-index__section-content,
  .page-index__guide-box,
  .page-index__home-content-box,
  .page-index__blog-card,
  .page-index__app-download-section .page-index__section-content,
  .page-index__app-download-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-index__app-download-buttons {
    flex-wrap: wrap !important;
  }
}