.page-game-guides {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --card-bg: #111111;
  --main-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
  color: var(--text-main);
  background-color: var(--main-bg);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-game-guides__section {
  padding: 60px 0;
  text-align: center;
}

.page-game-guides__section-title {
  font-size: 38px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.5);
}

.page-game-guides__section-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 50px;
  color: var(--text-main);
}

.page-game-guides__hero-section {
  padding-top: 10px; /* Rely on body padding-top from shared.css, use small top padding here */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
}

.page-game-guides__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-game-guides__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

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

.page-game-guides__main-title {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
  font-size: clamp(32px, 5vw, 56px);
}

.page-game-guides__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-main);
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-game-guides__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  box-shadow: 0 4px 15px rgba(255, 211, 107, 0.2);
}

.page-game-guides__btn-secondary:hover {
  background: rgba(255, 211, 107, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 211, 107, 0.4);
}

.page-game-guides__card {
  background: 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);
  text-align: left;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-game-guides__card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-game-guides__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-game-guides__card-text {
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-main);
  flex-grow: 1;
}

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

.page-game-guides__category-card .page-game-guides__btn-secondary {
  margin-top: auto;
  align-self: flex-start;
  margin-left: 0;
}

.page-game-guides__two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  text-align: left;
}

.page-game-guides__content-block {
  padding: 30px;
  text-align: left;
}

.page-game-guides__block-title {
  font-size: 26px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-game-guides__ordered-list,
.page-game-guides__unordered-list {
  list-style-position: inside;
  padding-left: 0;
  margin-bottom: 20px;
  color: var(--text-main);
}

.page-game-guides__ordered-list li,
.page-game-guides__unordered-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

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

.page-game-guides__method-card img {
  
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
}

.page-game-guides__button-group {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* FAQ Styles */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--secondary-color);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question::-webkit-details-marker {
  display: none;
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question:hover {
  background: rgba(255, 211, 107, 0.05);
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-game-guides__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 25px 25px;
  background: rgba(17, 17, 17, 0.8);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  text-align: left;
}

.page-game-guides__cta-section {
  background: linear-gradient(135deg, #0A0A0A, #1a1a1a);
  padding: 80px 0;
  border-top: 1px solid var(--border-color);
}

.page-game-guides__cta-title {
  font-size: 42px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-shadow: 0 0 12px rgba(255, 211, 107, 0.6);
}

.page-game-guides__cta-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-main);
}

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* General image responsiveness for all content images */
.page-game-guides img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsive Design */
@media (max-width: 1024px) {
  .page-game-guides__section-title {
    font-size: 34px;
  }
  .page-game-guides__hero-description {
    font-size: 18px;
  }
  .page-game-guides__card-title {
    font-size: 22px;
  }
  .page-game-guides__block-title {
    font-size: 24px;
  }
  .page-game-guides__cta-title {
    font-size: 38px;
  }
  .page-game-guides__container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-guides__hero-section {
    padding-top: 10px; /* Small top padding */
    min-height: 400px;
  }
  .page-game-guides__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    height: auto !important;
    min-height: 200px;
  }
  .page-game-guides__main-title {
    font-size: clamp(28px, 8vw, 40px);
  }
  .page-game-guides__hero-description {
    font-size: 16px;
  }

  /* Section titles and descriptions */
  .page-game-guides__section {
    padding: 40px 0;
  }
  .page-game-guides__section-title {
    font-size: 28px;
    padding: 0 15px;
  }
  .page-game-guides__section-description {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
  }

  /* 卡片布局图片要求 */
  .page-game-guides__card img {
    
    object-fit: cover;
    max-width: 100% !important;
    width: 100% !important;
  }

  /* 通用图片与容器 */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-game-guides__container,
  .page-game-guides__game-categories,
  .page-game-guides__payment-methods,
  .page-game-guides__tips-grid,
  .page-game-guides__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 产品展示图区域 (General card grids) */
  .page-game-guides__game-categories,
  .page-game-guides__payment-methods,
  .page-game-guides__tips-grid {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Two-column layout */
  .page-game-guides__two-column-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-game-guides__content-block {
    padding: 20px;
  }
  .page-game-guides__block-title {
    font-size: 22px;
  }

  /* Buttons and button containers */
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 16px;
    margin: 5px 0;
  }
  .page-game-guides__button-group,
  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden;
  }

  /* FAQ */
  details.page-game-guides__faq-item summary.page-game-guides__faq-question {
    padding: 15px;
  }
  .page-game-guides__faq-qtext {
    font-size: 16px;
  }
  .page-game-guides__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-game-guides__faq-item .page-game-guides__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Section */
  .page-game-guides__cta-title {
    font-size: 32px;
    padding: 0 15px;
  }
  .page-game-guides__cta-description {
    font-size: 16px;
    padding: 0 15px;
  }
}