.page-game-guides {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
}

.page-game-guides__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-game-guides__light-bg {
  background-color: #ffffff;
  color: #333333;
}

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

.page-game-guides__text-center {
  text-align: center;
}

.page-game-guides__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 0;
  padding-top: 0; /* Handled by shared.css padding-top on body, or will be set by JS if not */
  position: relative;
  overflow: hidden;
}

.page-game-guides__hero-content {
  flex: 1;
  padding: 0 40px;
  max-width: 60%;
  z-index: 1;
}

.page-game-guides__hero-image-container {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  padding-right: 40px;
  z-index: 1;
}

.page-game-guides__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-game-guides__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #ffffff;
}

.page-game-guides__cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-game-guides__btn-primary:hover {
  background-color: #9c0606;
  border-color: #9c0606;
}

.page-game-guides__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-game-guides__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2d;
  border-color: #005a2d;
}

.page-game-guides__content-area,
.page-game-guides__advanced-strategies,
.page-game-guides__cta-bottom {
  padding: 60px 0;
}

.page-game-guides__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-game-guides__dark-section .page-game-guides__section-title {
  color: #ffffff;
}

.page-game-guides__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-game-guides__dark-section .page-game-guides__paragraph {
  color: #f0f0f0;
}

.page-game-guides__benefit-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.page-game-guides__benefit-item {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  font-size: 1.05em;
  color: #333333;
  display: flex;
  align-items: center;
  gap: 15px;
}

.page-game-guides__benefit-item::before {
  content: '✅';
  font-size: 1.2em;
}

.page-game-guides__games-section {
  padding: 80px 0;
}

.page-game-guides__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.page-game-guides__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

.page-game-guides__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-game-guides__game-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__game-title {
  font-size: 1.6em;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-game-guides__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-game-guides__game-title a:hover {
  text-decoration: underline;
}

.page-game-guides__game-description {
  font-size: 1em;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-game-guides__card-link {
  display: block;
  background-color: #017439;
  color: #ffffff;
  padding: 12px 15px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto; /* Push to bottom */
}

.page-game-guides__card-link:hover {
  background-color: #005a2d;
}

.page-game-guides__advanced-strategies .page-game-guides__container {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.page-game-guides__strategy-item {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-game-guides__strategy-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.page-game-guides__strategy-item:nth-child(even) {
  flex-direction: row;
}

.page-game-guides__strategy-item > div {
  flex: 1;
}

.page-game-guides__strategy-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Enforce minimum size */
  min-height: 200px; /* Enforce minimum size */
}

.page-game-guides__strategy-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}

.page-game-guides__strategy-description {
  font-size: 1.1em;
  text-align: left;
}

.page-game-guides__faq-section {
  padding: 80px 0;
}

.page-game-guides__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-game-guides__faq-item {
  background-color: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #f0fdf0;
  border-bottom: 1px solid #e0e0e0;
}

.page-game-guides__faq-question:hover {
  background-color: #e6ffe6;
}

.page-game-guides__faq-toggle {
  font-size: 1.5em;
  transition: transform 0.3s ease;
}

.page-game-guides__faq-item.active .page-game-guides__faq-toggle {
  transform: rotate(45deg);
}

.page-game-guides__faq-answer {
  max-height: 0; /* Initial state */
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #333333;
}

.page-game-guides__faq-item.active .page-game-guides__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-game-guides__faq-answer p {
  margin: 0;
  font-size: 1.05em;
  text-align: left;
}

.page-game-guides__cta-bottom {
  padding: 80px 0;
}

.page-game-guides__cta-bottom .page-game-guides__cta-buttons {
  justify-content: center;
}

/* General image responsiveness */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-game-guides__hero-content {
    max-width: 55%;
    padding: 0 20px;
  }

  .page-game-guides__hero-image-container {
    padding-right: 20px;
  }

  .page-game-guides__main-title {
    font-size: 2.8em;
  }

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

  .page-game-guides__section-title {
    font-size: 2em;
  }

  .page-game-guides__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 15px;
  }

  .page-game-guides__game-image {
    height: 220px;
  }

  .page-game-guides__strategy-item {
    flex-direction: column !important; /* Override odd/even for mobile */
    gap: 20px;
  }

  .page-game-guides__strategy-image {
    max-width: 100%;
    width: 100%;
  }

  .page-game-guides__strategy-title {
    font-size: 1.8em;
    text-align: center;
  }

  .page-game-guides__strategy-description {
    text-align: center;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-guides__hero-section {
    flex-direction: column;
    padding: 40px 0;
    padding-top: 0; /* Ensures no double padding if shared.css handles body padding */
  }

  .page-game-guides__hero-content {
    max-width: 100%;
    padding: 0 15px;
    text-align: center;
    order: 2; /* Content after image on mobile */
  }

  .page-game-guides__hero-image-container {
    padding: 0 15px;
    margin-bottom: 30px;
    order: 1; /* Image first on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }

  .page-game-guides__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

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

  /* 按钮与按钮容器 */
  .page-game-guides__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
    overflow: hidden;
  }

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

  /* 其他内容模块 */
  .page-game-guides__content-area,
  .page-game-guides__games-section,
  .page-game-guides__advanced-strategies,
  .page-game-guides__faq-section,
  .page-game-guides__cta-bottom {
    padding: 40px 0;
  }

  .page-game-guides__container {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }

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

  .page-game-guides__paragraph {
    font-size: 0.95em;
    padding: 0 10px;
  }

  .page-game-guides__benefit-list {
    grid-template-columns: 1fr;
    margin: 30px auto;
    padding: 0 10px;
  }

  .page-game-guides__benefit-item {
    padding: 15px;
    font-size: 1em;
  }

  /* 产品展示图区域 */
  .page-game-guides__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .page-game-guides__game-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .page-game-guides__game-image {
    height: 200px !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__game-title {
    font-size: 1.4em;
    margin: 15px 10px 8px;
  }

  .page-game-guides__game-description {
    padding: 0 10px 15px;
  }

  .page-game-guides__card-link {
    padding: 10px 15px;
  }

  .page-game-guides__strategy-item {
    flex-direction: column !important;
    gap: 20px;
  }

  .page-game-guides__strategy-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-game-guides__strategy-title {
    font-size: 1.6em;
    text-align: center;
  }

  .page-game-guides__strategy-description {
    font-size: 1em;
    text-align: center;
  }

  .page-game-guides__faq-list {
    margin: 30px auto;
    padding: 0 10px;
  }

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

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

  .page-game-guides__faq-item.active .page-game-guides__faq-answer {
    padding: 10px 20px;
  }

  .page-game-guides__faq-answer p {
    font-size: 1em;
  }

  /* 通用图片与容器 */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}