/* style/game-guides.css */
:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --background-main: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--background-main);
  line-height: 1.6;
}

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

.page-game-guides__section-title {
  font-size: 2.5em;
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-game-guides__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-secondary);
}

.page-game-guides__text-block a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
}

.page-game-guides__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

.page-game-guides__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim image for text readability */
}

.page-game-guides__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  margin-top: -150px; /* Pull content up over the image a bit */
  background: rgba(8, 22, 15, 0.85); /* Semi-transparent background for text */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-game-guides__main-title {
  font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size */
  color: var(--gold-color);
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px var(--glow-color);
}

.page-game-guides__hero-description {
  font-size: 1.2em;
  color: var(--text-secondary);
  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;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
  box-sizing: border-box;
}

.page-game-guides__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--glow-color);
}

.page-game-guides__btn-secondary {
  background: var(--card-bg);
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-game-guides__btn-secondary:hover {
  transform: translateY(-3px);
  background: var(--secondary-color);
  color: var(--card-bg);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--secondary-color);
}

/* Intro Section */
.page-game-guides__intro-section {
  padding: 80px 0;
  background-color: var(--background-main);
}

.page-game-guides__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-game-guides__card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-game-guides__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-game-guides__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__card-title {
  font-size: 1.5em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__card-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-game-guides__card-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Game Strategy Section */
.page-game-guides__game-strategy-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-game-guides__game-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main);
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-game-guides__game-card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-game-guides__game-card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-game-guides__game-card-title a {
  color: var(--gold-color);
  text-decoration: none;
}

.page-game-guides__game-card-title a:hover {
  text-decoration: underline;
  color: var(--glow-color);
}

.page-game-guides__game-card-text {
  font-size: 0.95em;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* General Tips Section */
.page-game-guides__general-tips-section {
  padding: 80px 0;
  background-color: var(--background-main);
}

.page-game-guides__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-game-guides__tip-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main);
}

.page-game-guides__tip-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-game-guides__tip-text {
  font-size: 1em;
  color: var(--text-secondary);
}

.page-game-guides__tip-text a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-game-guides__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-game-guides__faq-section {
  padding: 80px 0;
  background-color: var(--deep-green-color);
}

.page-game-guides__faq-list {
  margin-top: 40px;
}

.page-game-guides__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--text-main);
  cursor: pointer;
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-game-guides__faq-qtext {
  flex-grow: 1;
  color: var(--gold-color);
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow-color);
}

.page-game-guides__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: var(--text-secondary);
}

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

.page-game-guides__faq-answer a {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Dark/Light Background Classes for Contrast (Intelligent Color Selection) */
.page-game-guides__dark-section {
  background-color: var(--deep-green-color);
  color: var(--text-main);
}

.page-game-guides__light-bg {
  background-color: var(--background-main);
  color: var(--text-main);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__hero-content {
    margin-top: -100px;
    padding: 30px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }

  .page-game-guides__hero-description {
    font-size: 1.1em;
  }

  .page-game-guides__intro-section,
  .page-game-guides__game-strategy-section,
  .page-game-guides__general-tips-section,
  .page-game-guides__faq-section {
    padding: 60px 0;
  }

  .page-game-guides__feature-cards,
  .page-game-guides__game-card-grid,
  .page-game-guides__tips-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-game-guides__container {
    padding: 0 15px;
  }

  .page-game-guides__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-game-guides__text-block {
    font-size: 1em;
  }

  .page-game-guides__hero-section {
    padding-bottom: 40px;
  }

  .page-game-guides__hero-image-wrapper {
    max-height: 400px;
  }

  .page-game-guides__hero-content {
    margin-top: -80px;
    padding: 25px 15px;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-game-guides__hero-description {
    font-size: 1em;
  }

  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-game-guides__card,
  .page-game-guides__game-card,
  .page-game-guides__tip-item,
  .page-game-guides__faq-item {
    padding: 20px;
  }

  .page-game-guides__card-image,
  .page-game-guides__game-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* All images */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__hero-section,
  .page-game-guides__intro-section,
  .page-game-guides__game-strategy-section,
  .page-game-guides__general-tips-section,
  .page-game-guides__faq-section,
  .page-game-guides__feature-cards,
  .page-game-guides__game-card-grid,
  .page-game-guides__tips-grid,
  .page-game-guides__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-game-guides__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

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

  .page-game-guides__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-game-guides__section-title {
    font-size: 1.5em;
  }

  .page-game-guides__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-game-guides__card-title,
  .page-game-guides__game-card-title,
  .page-game-guides__tip-title {
    font-size: 1.2em;
  }

  .page-game-guides__hero-content {
    margin-top: -60px;
  }

  .page-game-guides__intro-section,
  .page-game-guides__game-strategy-section,
  .page-game-guides__general-tips-section,
  .page-game-guides__faq-section {
    padding: 40px 0;
  }
}