/* style/index.css */
.page-index {
  font-family: Arial, sans-serif;
  color: #FFF6D6; /* Main text color for dark background */
  background-color: #0A0A0A; /* Overall background */
}

/* Module 0: Hero Carousel */
.page-index__hero-carousel-section {
  position: relative;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  background-color: #0A0A0A;
}

.page-index__hero-slider {
  position: relative;
  width: 100%;
  max-width: 1200px; /* Example max width */
  margin: 0 auto;
  overflow: hidden;
  border-radius: 10px;
}

.page-index__hero-slide {
  display: none;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
}

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

.page-index__hero-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 200px; /* Minimum size requirement */
}

.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 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 5px;
  font-size: 1.5em;
  line-height: 1;
}

.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;
  z-index: 10;
}

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

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

/* Module 1: Guide Section */
.page-index__guide-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

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

.page-index__guide-box {
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px 24px;
  background: #f5e6d3; /* Specific background for guide box */
  border-radius: 4px;
  box-sizing: border-box;
  text-align: center;
}

.page-index__section-title.tieudevip {
  font-size: 2em;
  font-weight: bold;
  color: #3477c9; /* Blue color for title */
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid #3477c9; /* Thin blue border */
  box-shadow: 0 2px 5px rgba(52, 119, 201, 0.3); /* Light shadow */
  display: inline-block;
  max-width: 90%;
}

.page-index__guide-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start; /* For mountain layout */
  justify-content: center;
  gap: 15px; /* Adjust gap as needed */
}

.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;
  transition: transform 0.3s ease-in-out;
  border-radius: 8px;
  overflow: hidden;
}

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

.page-index__guide-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 250 / 350; /* Fixed aspect ratio for vertical images */
  object-fit: contain; /* Ensure image fits without cropping */
  display: block;
  min-height: 200px; /* Minimum size requirement */
}

/* PC specific mountain layout */
.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 Long Text Area */
.page-index__home-content-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

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

.page-index__home-content-box {
  max-width: 91%; /* As per prompt */
  margin: 0 auto;
  padding: 10px 16px;
  border: 5px solid #3477c9; /* Blue border */
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(52, 119, 201, 0.6); /* Blue shadow */
  height: 700px; /* Fixed height for desktop */
  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 */
}

.page-index__home-content-inner h1 {
  font-size: 2.5em; /* Use relative font size */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFD36B; /* Glow color for main title */
}

.page-index__home-content-inner h2 {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2C14E; /* Main brand color for H2 */
}

.page-index__home-content-inner h3 {
  font-size: 1.4em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #FFD36B; /* Auxiliary color for H3 */
}

.page-index__home-content-inner p {
  font-size: 1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

.page-index__home-content-inner ul {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 15px;
}

.page-index__home-content-inner li {
  margin-bottom: 5px;
  line-height: 1.5;
}

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

.page-index__wp-caption img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
  min-height: 200px; /* Minimum size requirement */
}

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

.page-index__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping for mobile */
}

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

.page-index__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
  color: #111111; /* Dark text on light button for contrast */
}

.page-index__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

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

/* FAQ styles for inline H3 Q&A (no JS needed) */
.page-index__faq-question {
  cursor: default; /* No pointer for non-interactive FAQ */
  color: #FFD36B; /* H3 color */
}
.page-index__faq-answer {
  margin-bottom: 20px;
  padding-left: 20px;
  color: #FFF6D6;
}


/* Module 3: Latest Blog Posts Section */
.page-index__blog-section {
  padding: 40px 0;
  background-color: #0A0A0A;
}

.page-index__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 columns for desktop */
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-index__blog-card {
  background-color: #111111; /* Card BG */
  border-radius: 15px; /* Rounded corners */
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5); /* Shadow for card */
  transition: transform 0.3s ease-in-out;
}

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

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

.page-index__blog-media {
  position: relative;
  overflow: hidden;
  border-radius: 15% 15% 0 0; /* Rounded top corners for image as per demo气质 */
}

.page-index__blog-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 9; /* Typical blog image aspect ratio */
  min-height: 200px; /* Minimum size requirement */
}