/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
}

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

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  position: relative;
  z-index: 1;
  max-height: 675px; /* Max height for hero image */
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 800px;
  margin-top: -100px; /* Pull content up over image slightly for design effect, but not fully overlay */
  background: linear-gradient(180deg, rgba(47, 107, 255, 0.8) 0%, rgba(47, 107, 255, 0.9) 100%);
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-blog__dark-section .page-blog__section-title,
.page-blog__dark-section .page-blog__section-description {
  color: #ffffff;
}

.page-blog__latest-articles,
.page-blog__popular-guides {
  padding: 60px 0;
}

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

.page-blog__article-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-blog__card-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.page-blog__card-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-meta {
  font-size: 0.9em;
  color: #6FA3FF;
  margin-bottom: 15px;
}

.page-blog__card-text {
  font-size: 1em;
  color: #1F2D3D;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__btn-outline {
  display: inline-block;
  padding: 10px 20px;
  border: 1px solid #2F6BFF;
  border-radius: 5px;
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  text-align: center;
  margin-top: auto;
  max-width: fit-content;
}

.page-blog__btn-outline:hover {
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  border: none;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

.page-blog__button-group {
  text-align: center;
}

.page-blog__cta-bottom-center {
  margin-top: 30px;
}

.page-blog__categories-section {
  background-color: #2F6BFF;
  padding: 60px 0;
}

.page-blog__categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.page-blog__category-card {
  background-color: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: #1F2D3D;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-blog__category-title {
  font-size: 1.8em;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2F6BFF;
}

.page-blog__category-text {
  font-size: 1em;
  color: #1F2D3D;
}

.page-blog__news-promotions {
  background-color: #1F2D3D;
  padding: 60px 0;
}

.page-blog__faq-section {
  padding: 60px 0;
}

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

.page-blog__faq-item {
  background-color: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #F4F7FB;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-blog__faq-item[open] .page-blog__faq-question {
  background-color: #E0E7F5;
}

.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

.page-blog__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #2F6BFF;
}

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #1F2D3D;
  border-top: 1px solid #D6E2FF;
}

.page-blog__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: #2F6BFF;
  color: #ffffff;
}

.page-blog__cta-bottom .page-blog__section-title,
.page-blog__cta-bottom .page-blog__section-description {
  color: #ffffff;
}

.page-blog__cta-content {
  max-width: 800px;
}

/* General image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 0 15px;
  }

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

  .page-blog__hero-content {
    margin-top: -80px;
    padding: 30px 15px;
  }

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

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

  .page-blog__card-image {
    height: 220px;
  }

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

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    min-height: 400px;
  }

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

  .page-blog__hero-content {
    margin-top: -60px;
    padding: 25px 15px;
  }

  .page-blog__main-title {
    font-size: clamp(1.5em, 6vw, 2.2em) !important;
  }

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

  /* General section padding */
  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__popular-guides,
  .page-blog__news-promotions,
  .page-blog__faq-section,
  .page-blog__cta-bottom {
    padding: 40px 0;
  }

  .page-blog__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  /* 博客卡片区 */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-blog__article-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }

  .page-blog__card-image {
    height: 200px;
  }

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

  .page-blog__card-text {
    font-size: 0.95em;
  }

  .page-blog__btn-outline {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  /* Categories Grid */
  .page-blog__categories-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__category-card {
    padding: 25px;
    min-height: 150px;
  }

  .page-blog__category-title {
    font-size: 1.5em;
  }

  /* FAQ section */
  .page-blog__faq-question {
    padding: 18px 20px;
    font-size: 1.1em;
  }

  .page-blog__faq-answer {
    padding: 12px 20px 15px;
    font-size: 0.95em;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-button,
  .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__button-group,
  .page-blog__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
  }

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Fixed styles for specific elements mentioned in common rules, if applicable for blog page */
/* The following are general templates, not all are directly used by this specific blog page */
/* Long text gold border area (not directly used on this blog page but included for completeness if structure changes) */
.page-blog__home-content { /* Placeholder if such a section were added to blog */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: auto;
  overflow-y: visible;
  padding: 20px;
  margin: 20px auto;
  max-width: 1000px;
}

@media (max-width: 768px) {
  .page-blog__home-content { /* Placeholder for mobile */
    height: auto;
    font-size: 1em;
    padding: 15px;
  }
  .page-blog__home-content h2 { /* Placeholder for mobile */
    font-size: 1.8em;
  }
}

/* Game carousel (not used on this blog page, but for completeness) */
.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop {
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
}
.page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title {
  color: #fff;
  text-align: center;
}
.page-blog__slider-wrapper {
  overflow: hidden;
}
.page-blog__slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
}
.page-blog__game-slide {
  flex: 0 0 200px;
  max-width: 200px;
}
@media (max-width: 768px) {
  .page-blog__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }
}

/* Banners Top Wrapper (not used on this blog page, but for completeness) */
.page-blog__banners-top-wrapper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto;
}
.page-blog__banner-item img {
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}
@media (max-width: 768px) {
  .page-blog__banners-top-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Blog Masonry (using grid for articles-grid) */
/* .page-blog__blog-masonry { /* Not directly used, replaced by articles-grid */
/*  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.page-blog__blog-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.page-blog__btn-outline {
  margin-top: auto;
}
@media (max-width: 768px) {
  .page-blog__blog-masonry {
    grid-template-columns: 1fr;
  }
}

/* Blog Slider (not used, using grid for articles) */
/* .page-blog__blog-slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}
.page-blog__blog-slide {
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
}
@media (max-width: 768px) {
  .page-blog__blog-slide {
    flex: 0 0 100%;
    max-width: 100%;
  }
}*/