/* Base styles and common elements for game guides page */
.page-game-guides {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
}

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

/* Hero Section */
.page-game-guides__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming body has header offset */
  padding-bottom: 50px;
  text-align: center;
  background: linear-gradient(180deg, #C91F17 0%, #E53935 100%);
  overflow: hidden;
}

.page-game-guides__hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop hero */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-game-guides__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

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

.page-game-guides__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFF5E1;
  margin-bottom: 15px;
  line-height: 1.2;
}

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

.page-game-guides__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-game-guides__btn-primary,
.page-game-guides__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  max-width: 100%; /* Ensure button doesn't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-game-guides__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button custom color */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
}

.page-game-guides__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-game-guides__btn-secondary {
  background: transparent;
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border custom 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;
  overflow: hidden;
}

.page-game-guides__section--intro .page-game-guides__container,
.page-game-guides__section--register-login .page-game-guides__container,
.page-game-guides__section--optimize .page-game-guides__container,
.page-game-guides__section--faq .page-game-guides__container {
  background-color: #ffffff; /* Light background for readability */
  color: #333333;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-game-guides__section--transactions .page-game-guides__container,
.page-game-guides__section--tips .page-game-guides__container {
  background-color: #D32F2F; /* Card BG color */
  color: #FFF5E1;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-game-guides__section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #C91F17; /* Main color for titles on light bg */
}

.page-game-guides__section-title--white {
  color: #FFF5E1; /* Text Main for titles on dark bg */
}

.page-game-guides__section-subtitle {
  font-size: 1.2rem;
  text-align: center;
  color: #FFF5E1;
  margin-bottom: 50px;
}

.page-game-guides__article-body {
  max-width: 900px;
  margin: 0 auto;
}

.page-game-guides__article-body p {
  margin-bottom: 1.2em;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-game-guides__article-body--white p {
  color: #FFF5E1;
}

.page-game-guides__sub-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 35px;
  margin-bottom: 20px;
  color: #C91F17; /* Main color for subtitles on light bg */
}

.page-game-guides__sub-title--white {
  color: #F4D34D; /* Gold for subtitles on dark bg */
}

.page-game-guides__list {
  list-style: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  padding-left: 0;
}

.page-game-guides__list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-game-guides__list--white li {
  color: #FFF5E1;
}

/* Game Grid Section */
.page-game-guides__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-game-guides__game-card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-game-guides__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-game-guides__game-card .page-game-guides__card-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 20px 15px 10px;
  color: #FFF5E1; /* Text Main */
}

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

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

.page-game-guides__card-description {
  font-size: 0.95rem;
  color: #FFF5E1;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-game-guides__btn-text {
  display: inline-block;
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: 600;
  padding-bottom: 5px;
  border-bottom: 2px solid #F4D34D;
  margin-bottom: 20px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-game-guides__btn-text:hover {
  color: #FFCC66; /* Glow */
  border-color: #FFCC66;
}

/* App Download */
.page-game-guides__app-download {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-top: 40px;
  padding: 30px;
  background-color: #f8f8f8;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-game-guides__app-image {
  width: 200px;
  height: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

.page-game-guides__app-info p {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333333;
}

/* FAQ Section */
details.page-game-guides__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-game-guides__faq-item summary.page-game-guides__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-game-guides__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-game-guides__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #C91F17;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-game-guides__faq-item .page-game-guides__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-game-guides__hero-image-wrapper {
    height: 400px;
  }
  .page-game-guides__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-game-guides__hero-description {
    font-size: 1rem;
  }
  .page-game-guides__section-title {
    font-size: 2rem;
  }
  .page-game-guides__sub-title {
    font-size: 1.5rem;
  }
  .page-game-guides__container {
    padding: 15px;
  }
  .page-game-guides__section--intro .page-game-guides__container,
  .page-game-guides__section--register-login .page-game-guides__container,
  .page-game-guides__section--optimize .page-game-guides__container,
  .page-game-guides__section--faq .page-game-guides__container,
  .page-game-guides__section--transactions .page-game-guides__container,
  .page-game-guides__section--tips .page-game-guides__container {
    padding: 30px;
  }
  .page-game-guides__app-download {
    flex-direction: column;
    text-align: center;
  }
  .page-game-guides__app-info {
    text-align: center;
  }
  .page-game-guides__app-image {
    margin-bottom: 20px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-game-guides__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 30px;
  }
  .page-game-guides__hero-image-wrapper {
    height: 250px;
  }
  .page-game-guides__hero-image {
    object-fit: contain !important; /* Mobile: contain to prevent cropping */
    aspect-ratio: unset !important; /* Reset aspect ratio for contain */
  }
  .page-game-guides__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-game-guides__hero-description {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }
  .page-game-guides__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add padding to button container */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    padding: 12px 20px;
    font-size: 1rem;
    width: 100% !important; /* Force full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons if less than 100% width */
  }

  /* 产品展示图区域 */
  .page-game-guides__game-grid {
    grid-template-columns: 1fr; /* Single column for game cards */
    gap: 20px;
    padding: 0 15px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-game-guides__game-card {
    margin: 0 auto;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-game-guides__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
    padding: 0 15px; /* Add padding */
    box-sizing: border-box;
  }
  .page-game-guides__section-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-guides__sub-title {
    font-size: 1.3rem;
    margin-top: 30px;
    margin-bottom: 15px;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-game-guides__article-body {
    padding: 0 15px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
  }
  .page-game-guides__article-body p,
  .page-game-guides__list li {
    font-size: 0.95rem;
  }
  .page-game-guides__app-download {
    padding: 20px;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-game-guides__app-image {
    width: 150px;
    height: 150px;
  }
  .page-game-guides__app-info p {
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .page-game-guides img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-game-guides__section,
  .page-game-guides__card,
  .page-game-guides__container,
  .page-game-guides__app-download {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  /* FAQ */
  details.page-game-guides__faq-item summary.page-game-guides__faq-question { padding: 15px; }
  .page-game-guides__faq-qtext { font-size: 1rem; }
  details.page-game-guides__faq-item .page-game-guides__faq-answer { padding: 0 15px 15px; }
}

@media (max-width: 480px) {
  .page-game-guides__hero-title {
    font-size: clamp(1.5rem, 9vw, 2.2rem);
  }
  .page-game-guides__btn-primary,
  .page-game-guides__btn-secondary {
    font-size: 0.95rem;
    padding: 10px 15px;
  }
  .page-game-guides__section-title {
    font-size: 1.6rem;
  }
  .page-game-guides__sub-title {
    font-size: 1.2rem;
  }
}