/* style/game-guides.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Color contrast variables - from custom color list */
:root {
  --background-color: #08160F;
  --card-bg-color: #11271B;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

.page-game-guides {
  background-color: var(--background-color); /* Fallback to custom BG color if shared doesn't define */
  color: var(--text-main-color); /* Main text color */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  margin-bottom: 30px; /* Space between image and content */
  min-height: 200px; /* Min size for all images */
}

.page-game-guides__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-game-guides__main-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem); /* Responsive font size */
  font-weight: 700;
  color: var(--text-main-color);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.page-game-guides__intro-text {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 500px; /* Limit button group width */
  margin: 0 auto;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box; /* Include padding in width calculation */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--text-main-color);
  border: 2px solid var(--border-color);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* General Section Styling */
.page-game-guides__section {
  padding: 60px 0;
  background-color: var(--background-color);
}

.page-game-guides__introduction,
.page-game-guides__optimization,
.page-game-guides__cta-bottom {
  background-color: var(--background-color);
}

.page-game-guides__game-types,
.page-game-guides__faq {
  background-color: var(--card-bg-color); /* Slightly darker background for contrast */
}


.page-game-guides__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-game-guides__section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.3;
}

.page-game-guides__text-block {
  font-size: 1rem;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

/* Guide Grid */
.page-game-guides__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-guides__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  color: var(--text-secondary-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--divider-color);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-game-guides__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Min size for all images */
}

.page-game-guides__card-title {
  font-size: 1.4rem;
  color: var(--text-main-color);
  padding: 20px 20px 10px;
  font-weight: 600;
}

.page-game-guides__card-description {
  font-size: 0.95rem;
  padding: 0 20px 15px;
  flex-grow: 1; /* Push button to bottom */
}

.page-game-guides__btn-text {
  display: inline-block;
  color: var(--glow-color);
  text-decoration: none;
  font-weight: 600;
  padding: 10px 20px 20px;
  transition: color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  text-decoration: underline;
  color: var(--gold-color);
}

/* Feature List */
.page-game-guides__feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.page-game-guides__feature-item {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--divider-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-game-guides__feature-title {
  font-size: 1.3rem;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-game-guides__feature-description {
  font-size: 0.95rem;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

/* FAQ Section */
.page-game-guides__faq-list {
  margin-top: 30px;
}

.page-game-guides__faq-item {
  background-color: var(--background-color); /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  color: var(--text-secondary-color);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-main-color);
  transition: background-color 0.3s ease;
}

.page-game-guides__faq-question:hover {
  background-color: var(--deep-green-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item[open] .page-game-guides__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-game-guides__faq-answer {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary-color);
}

.page-game-guides__faq-answer p {
  margin-bottom: 10px;
}

/* Cta Bottom */
.page-game-guides__cta-bottom {
  text-align: center;
}

.page-game-guides__cta-container {
  padding-top: 40px;
  padding-bottom: 40px;
  background-color: var(--card-bg-color);
  border-radius: 12px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__hero-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
  }

  .page-game-guides__hero-image {
    height: 300px;
    margin-bottom: 20px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-game-guides__intro-text {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to prevent overflow */
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__section {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-bottom: 30px;
  }

  .page-game-guides__text-block {
    font-size: 0.95rem;
  }

  .page-game-guides__card-image {
    height: 200px;
  }

  .page-game-guides__card-title {
    font-size: 1.2rem;
  }

  .page-game-guides__feature-title {
    font-size: 1.15rem;
  }

  .page-game-guides__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

  .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image, video, button adaptations */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides video,
  .page-game-guides__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__video-section,
  .page-game-guides__video-container,
  .page-game-guides__video-wrapper,
  .page-game-guides__cta-buttons,
  .page-game-guides__button-group,
  .page-game-guides__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent overflow for containers */
  }

  .page-game-guides__video-section {
    padding-top: 10px !important;
  }

  .page-game-guides__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Ensure no filter on images */
.page-game-guides img {
  filter: none !important;
}