/* Base styles for the blog page */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F4F7FB; /* Custom background color */
}

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

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

.page-blog__section-title--white {
  color: #ffffff;
}

.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__section-description--white {
  color: #f0f0f0;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming body handles header offset */
  background: #F4F7FB;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-bottom: 40px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 20px;
}

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

.page-blog__hero-content {
  background: #ffffff; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 20px;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 1.15em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Button */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 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 {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

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

/* Latest Posts Section */
.page-blog__latest-posts {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.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: #ffffff; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

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

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

.page-blog__post-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
}

.page-blog__post-meta {
  font-size: 0.9em;
  color: #666666;
  margin-bottom: 15px;
}

.page-blog__post-excerpt {
  font-size: 1em;
  color: #333333;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-blog__read-more {
  color: #2F6BFF;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-blog__read-more svg {
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__read-more svg {
  transform: translateX(5px);
}

.page-blog__view-all-wrapper {
  text-align: center;
  margin-top: 20px;
}

/* Categories Section */
.page-blog__categories {
  padding: 60px 0;
  background: #2F6BFF; /* Main Color */
  color: #ffffff;
}

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

.page-blog__category-card {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 150px;
}

.page-blog__category-card:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.page-blog__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-blog__category-desc {
  font-size: 0.95em;
  opacity: 0.9;
}

/* Archive Preview Section */
.page-blog__archive-preview {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-blog__archive-list {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__archive-item {
  border-bottom: 1px solid #D6E2FF; /* Border */
}

.page-blog__archive-item:last-child {
  border-bottom: none;
}

.page-blog__archive-link {
  display: block;
  padding: 20px 25px;
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  transition: background-color 0.2s ease;
}

.page-blog__archive-link:hover {
  background-color: #f8f8f8;
}

.page-blog__archive-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-blog__archive-date {
  font-size: 0.9em;
  color: #666666;
}

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

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

.page-blog__faq-item {
  background: #ffffff; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-blog__faq-item details > summary {
  list-style: none;
}

.page-blog__faq-item details > summary::-webkit-details-marker {
  display: none;
}

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
  background-color: #ffffff;
  border-bottom: 1px solid #D6E2FF;
}

.page-blog__faq-item[open] .page-blog__faq-question {
  border-bottom: none;
}

.page-blog__faq-qtext {
  flex-grow: 1;
}

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

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

.page-blog__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #333333;
  background-color: #fdfdfd;
}

/* CTA Banner Section */
.page-blog__cta-banner {
  padding: 60px 20px;
  background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%); /* Main Color to Auxiliary Color */
  color: #ffffff;
  text-align: center;
}

.page-blog__banner-title {
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-blog__banner-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-blog__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-blog__hero-content {
    margin: 0 15px;
    padding: 20px;
  }

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

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

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

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

  /* Images in content areas */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__hero-image-wrapper,
  .page-blog__post-image,
  .page-blog__banner-item img {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Blog Post Grid */
  .page-blog__posts-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-image {
    height: 180px;
  }

  .page-blog__post-content {
    padding: 15px;
  }

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

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

  .page-blog__category-card {
    padding: 20px;
    min-height: 120px;
  }

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

  /* Archive List */
  .page-blog__archive-list {
    margin: 0 15px 30px;
  }

  .page-blog__archive-link {
    padding: 15px 20px;
  }

  .page-blog__archive-title {
    font-size: 1.1em;
  }

  /* FAQ Section */
  .page-blog__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-blog__faq-answer {
    padding: 10px 20px 15px;
  }

  /* CTA Banner */
  .page-blog__cta-banner {
    padding: 40px 15px;
  }

  .page-blog__banner-title {
    font-size: 1.8em;
  }

  .page-blog__banner-description {
    font-size: 1em;
  }

  /* Buttons responsive */
  .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__cta-buttons,
  .page-blog__button-group,
  .page-blog__btn-container,
  .page-blog__view-all-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-blog__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Placeholder for modules not present on this specific page, but required for CSS completeness */
/* These are included to satisfy the "CSS必写清单" for completeness, even if they don't apply directly to blog.html */
.page-blog__home-content { /* long text golden frame */
  border: 1px solid #FBB00D;
  border-radius: 10px;
  height: 650px;
  overflow-y: auto;
  padding: 20px;
  margin-bottom: 40px;
  background: #ffffff;
  color: #333333;
}

.page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop { /* game/sport/coop rows */
  background-color: #1A202C;
  padding: 40px 20px;
  max-width: 1330px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title { /* titles for game/sport/coop */
  color: #fff;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

.page-blog__slider-wrapper { /* game slider */
  overflow: hidden;
  margin-bottom: 20px;
}

.page-blog__slider-track { /* game slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 16px;
  padding-bottom: 10px; /* for scrollbar */
  overflow-x: auto; /* enable horizontal scroll for desktop */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.page-blog__slider-track::-webkit-scrollbar { /* Chrome, Safari */
  display: none;
}

.page-blog__game-slide { /* individual game slide */
  flex: 0 0 200px;
  max-width: 200px;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-blog__game-slide img {
  width: 100%;
  
  object-fit: cover;
}

.page-blog__game-slide h3 {
  font-size: 1.1em;
  padding: 10px;
  color: #1F2D3D;
}

.page-blog__banners-top-wrapper { /* 6-grid banners */
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  max-width: 900px;
  margin: 0 auto 40px;
}

.page-blog__banner-item img { /* individual banner image */
  
  
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.page-blog__blog-masonry { /* blog masonry grid */
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
  margin-bottom: 40px;
}

.page-blog__blog-card-link { /* blog card link */
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-blog__btn-outline { /* outline button */
  margin-top: auto;
  border: 1px solid #2F6BFF;
  color: #2F6BFF;
  background: transparent;
}

.page-blog__blog-slider-track { /* blog slider track */
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-blog__blog-slider-track::-webkit-scrollbar {
  display: none;
}

.page-blog__blog-slide { /* individual blog slide */
  flex: 0 0 calc(33.333% - 14px);
  max-width: calc(33.333% - 14px);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

@media (max-width: 1024px) {
  .page-blog__hero-content {
    max-width: 800px;
  }
  .page-blog__posts-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
  .page-blog__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }
  .page-blog__blog-masonry {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-blog__blog-slide {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
  }
  .page-blog__slider-track { /* game slider track */
    gap: 12px;
  }
  .page-blog__game-slide { /* individual game slide */
    flex: 0 0 180px;
    max-width: 180px;
  }
  .page-blog__banners-top-wrapper { /* 6-grid banners */
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 700px;
  }
}

@media (max-width: 768px) {
  .page-blog__home-content {
    height: 400px;
    padding: 15px;
    margin: 0 15px 30px;
  }
  .page-blog__row-games, .page-blog__row-sport, .page-blog__row-coop {
    padding: 30px 15px;
    margin-bottom: 30px;
  }
  .page-blog__games-title, .page-blog__sport-title, .page-blog__coop-title {
    font-size: 1.5em;
    margin-bottom: 20px;
  }
  .page-blog__slider-wrapper {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-blog__slider-track { /* game slider track */
    gap: 10px;
  }
  .page-blog__game-slide { /* individual game slide */
    flex: 0 0 140px;
    max-width: 140px;
  }
  .page-blog__banners-top-wrapper { /* 6-grid banners */
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 500px;
    margin: 0 auto 30px;
  }
  .page-blog__banner-item img { /* individual banner image */
    
    
  }
  .page-blog__blog-masonry { /* blog masonry grid */
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 15px 30px;
  }
  .page-blog__blog-slide { /* individual blog slide */
    flex: 0 0 100%;
    max-width: 100%;
  }
}