/* -------------------------------------------------------------------------- */
/*                              Base & Layout                               */
/* -------------------------------------------------------------------------- */
.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Main text color for dark body background */
  background-color: #0D0E12; /* Page background */
}

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFB04D; /* Glow color for titles */
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto 40px;
  padding: 20px;
  background: #17191F; /* Card BG */
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__article-subtitle {
  font-size: 1.8em;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: #FFA53A;
}

.page-blog__text-block {
  font-size: 1em;
  margin-bottom: 15px;
  color: #FFF3E6;
}

.page-blog__article-figure {
  margin: 20px 0;
  text-align: center;
}

.page-blog__article-figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-blog__article-figure figcaption {
  font-style: italic;
  font-size: 0.9em;
  color: #A84F0C;
  margin-top: 10px;
}

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                             */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 50px;
  overflow: hidden;
  text-align: center;
}

.page-blog__hero-image {
  position: relative;
  width: 100%;
  height: 500px; /* Fixed height for desktop hero */
  overflow: hidden;
}

.page-blog__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  position: relative; /* Ensure content is below image in normal flow */
  padding: 40px 20px;
  max-width: 900px;
  margin: -80px auto 0; /* Pull up content to overlap slightly with image bottom */
  background: rgba(13, 14, 18, 0.9); /* Dark background for text contrast */
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.page-blog__main-title {
  font-size: clamp(2.2em, 4vw, 3.2em); /* Responsive font size for H1 */
  font-weight: 800;
  color: #FFF3E6;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__description {
  font-size: 1.1em;
  color: #FFB04D;
  margin-bottom: 30px;
}

/* -------------------------------------------------------------------------- */
/*                                 Buttons                                  */
/* -------------------------------------------------------------------------- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #FFA53A;
  border: 2px solid #FFA53A;
  box-shadow: none;
}

.page-blog__btn-secondary:hover {
  background: rgba(255, 165, 58, 0.1);
  color: #FFF3E6;
  border-color: #FFF3E6;
}

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

/* -------------------------------------------------------------------------- */
/*                             Featured Posts                               */
/* -------------------------------------------------------------------------- */
.page-blog__featured-posts {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-blog__post-card {
  background: #17191F;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-blog__post-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-blog__post-card img {
  width: 100%;
  height: 225px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

.page-blog__card-content {
  padding: 20px;
}

.page-blog__card-title {
  font-size: 1.4em;
  font-weight: 600;
  color: #FFF3E6;
  margin-bottom: 10px;
}

.page-blog__card-date {
  font-size: 0.9em;
  color: #FFA53A;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 0.95em;
  color: #A84F0C;
}

/* -------------------------------------------------------------------------- */
/*                             Game Guides                                  */
/* -------------------------------------------------------------------------- */
.page-blog__game-guides {
  padding: 60px 0;
  background-color: #FFF3E6;
  color: #333333; /* Dark text for light background */
}

.page-blog__game-guides .page-blog__section-title {
  color: #D96800; /* Deep Orange for titles on light bg */
}

.page-blog__game-guides .page-blog__article-body {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-blog__game-guides .page-blog__article-subtitle {
  color: #FF8C1A;
}

.page-blog__game-guides .page-blog__text-block {
  color: #333333;
}

.page-blog__game-guides .page-blog__article-figure figcaption {
  color: #666;
}

/* -------------------------------------------------------------------------- */
/*                               News & Updates                             */
/* -------------------------------------------------------------------------- */
.page-blog__news-updates {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-blog__news-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-blog__news-item {
  background: #17191F;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #FFF3E6;
}

.page-blog__news-item strong {
  color: #FFA53A;
  font-size: 1.2em;
  display: block;
  margin-bottom: 10px;
}

.page-blog__news-item em {
  font-style: normal;
  color: #A84F0C;
  display: block;
  margin-bottom: 10px;
}

/* -------------------------------------------------------------------------- */
/*                            Promotions Exclusive                          */
/* -------------------------------------------------------------------------- */
.page-blog__promotions-exclusive {
  padding: 60px 0;
  background-color: #FFF3E6;
  color: #333333;
}

.page-blog__promotions-exclusive .page-blog__section-title {
  color: #D96800;
}

.page-blog__promotions-exclusive .page-blog__text-block {
  color: #333333;
}

.page-blog__promotions-exclusive .page-blog__article-figure figcaption {
  color: #666;
}

/* -------------------------------------------------------------------------- */
/*                                   FAQ Section                            */
/* -------------------------------------------------------------------------- */
.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

.page-blog__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #A84F0C; /* Border color */
  overflow: hidden;
  background: #17191F; /* Card BG */
  color: #FFF3E6;
}

details.page-blog__faq-item summary.page-blog__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-blog__faq-item summary.page-blog__faq-question::-webkit-details-marker {
  display: none;
}

details.page-blog__faq-item summary.page-blog__faq-question:hover {
  background: rgba(255, 140, 26, 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: #17191F;
  border-radius: 0 0 5px 5px;
  color: #A84F0C;
}

/* -------------------------------------------------------------------------- */
/*                             Conclusion CTA                               */
/* -------------------------------------------------------------------------- */
.page-blog__conclusion-cta {
  padding: 60px 0;
  background-color: #FFF3E6;
  color: #333333;
  text-align: center;
}

.page-blog__conclusion-cta .page-blog__section-title {
  color: #D96800;
}

.page-blog__conclusion-cta .page-blog__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #333333;
}

/* -------------------------------------------------------------------------- */
/*                            Color Contrast Fixes                          */
/* -------------------------------------------------------------------------- */
.page-blog__dark-section {
  background: #0D0E12;
  color: #FFF3E6;
}

.page-blog__light-bg {
  background: #FFF3E6;
  color: #333333;
}

.page-blog__text-contrast-fix {
  color: #FFF3E6 !important;
}

.page-blog__card {
  background: #17191F;
  color: #FFF3E6;
}

/* -------------------------------------------------------------------------- */
/*                                 Media Queries                            */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

  .page-blog__hero-image {
    height: 400px;
  }

  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-blog__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

  .page-blog__description {
    font-size: 1em;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-blog__post-card img {
    height: 200px;
  }

  .page-blog__card-title {
    font-size: 1.3em;
  }

  .page-blog__article-subtitle {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px;
    margin-bottom: 30px;
  }
  .page-blog__hero-image {
    height: 250px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hero-content {
    margin-top: -40px;
    padding: 20px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-blog__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-blog__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__article-body {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .page-blog__btn-secondary,
  .page-blog a[class*="button"],
  .page-blog a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Force vertical stacking for buttons */
    gap: 10px;
  }

  /* 产品展示图区域 (Featured Posts) */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
    overflow-x: hidden;
  }
  .page-blog__post-card img {
    height: auto;
  }
  .page-blog__card-content {
    padding: 15px;
  }
  .page-blog__card-title {
    font-size: 1.2em;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__article-body {
    padding: 15px;
    margin-bottom: 30px;
    text-align: left; /* Reset text align */
  }
  .page-blog__article-subtitle {
    font-size: 1.4em;
    margin-top: 25px;
    margin-bottom: 15px;
  }
  .page-blog__text-block {
    font-size: 0.95em;
  }
  .page-blog__article-figure {
    margin: 15px 0;
  }
  .page-blog__article-figure figcaption {
    font-size: 0.85em;
  }

  /* News & Updates */
  .page-blog__news-item {
    padding: 20px;
  }
  .page-blog__news-item strong {
    font-size: 1.1em;
  }

  /* FAQ Section */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 1em;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}