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

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

.page-blog__section {
  padding: 40px 0;
  background-color: #B71C1C; /* Background */
  text-align: center;
}

.page-blog__section-title {
  font-size: 2.5em;
  color: #FFD86A; /* Gold-like from button gradient */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-blog__subsection-title {
  font-size: 1.8em;
  color: #F4D34D; /* Gold */
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-blog__content-text {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #FFF5E1;
}

.page-blog__link {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Minimal top padding, rely on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: #B71C1C; /* Deep Red */
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

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

.page-blog__hero-content {
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  color: #FFF5E1;
}

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

.page-blog__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  border: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-blog__btn-secondary {
  background: #D32F2F; /* Card BG */
  color: #FFD86A; /* Gold-like */
  border: 2px solid #F2B544; /* Border */
  margin-left: 20px;
}

.page-blog__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  color: #FFD86A;
  border-color: #FFCC66; /* Glow */
  transform: translateY(-2px);
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

/* Blog Article / Content Blocks */
.page-blog__blog-article {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  margin-top: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.page-blog__blog-article-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

/* Blog Grid for News/Promotions */
.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 30px;
}

.page-blog__blog-card {
  background-color: #D32F2F; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: left;
}

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

.page-blog__blog-card-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-blog__blog-card-title {
  font-size: 1.4em;
  color: #FFD86A; /* Gold-like */
  padding: 15px 20px 10px;
  font-weight: 600;
}

.page-blog__blog-card-excerpt {
  font-size: 0.95em;
  color: #FFF5E1;
  padding: 0 20px 15px;
  flex-grow: 1;
}

.page-blog__blog-card-date {
  font-size: 0.85em;
  color: #F4D34D; /* Gold */
  padding: 0 20px 20px;
  margin-top: auto;
}

/* FAQ Section */
.page-blog__faq-list {
  margin-top: 30px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-blog__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFD86A; /* Gold-like */
  cursor: pointer;
  list-style: none; /* For <summary> */
  outline: none;
  -webkit-touch-callout: none; /* Disable callout on iOS */
  -webkit-user-select: none; /* Disable text selection on iOS */
  -moz-user-select: none; /* Disable text selection on Firefox */
  -ms-user-select: none; /* Disable text selection on IE/Edge */
  user-select: none; /* Standard property */
}

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

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

.page-blog__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

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

.page-blog__faq-answer {
  padding: 0 25px 20px;
  color: #FFF5E1;
  font-size: 1.05em;
}

/* Final CTA Section */
.page-blog__cta-final {
  padding: 40px 20px;
  text-align: center;
}

/* --- Required Mobile Styles (@media max-width: 768px) --- */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px; /* As per requirement, minimal top padding */
    min-height: auto;
  }

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

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

  .page-blog__intro-text {
    font-size: 1em;
  }

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

  .page-blog__subsection-title {
    font-size: 1.4em;
  }

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

  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .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;
    margin: 0 !important; /* Override potential desktop margins */
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-blog__blog-card-image {
    height: 180px;
  }

  .page-blog__faq-list {
    padding: 0 15px;
  }

  /* Universal image and container rules */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__section,
  .page-blog__container,
  .page-blog__blog-card,
  .page-blog__blog-article,
  .page-blog__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right might be handled by parent .page-blog__container */
  }

  /* Placeholder for homepage-specific sections, as required by the prompt */
  /* HERO 主图区域 - Covered by .page-blog__hero-section */

  /* 长文金框区 (Placeholder for __home-content) */
  .page-blog__home-content {
    height: auto;
    overflow-y: visible;
    padding: 20px 15px;
  }

  /* 游戏轮播 (Placeholder for __slider-wrapper) */
  .page-blog__row-games .page-blog__slider-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
  }
  .page-blog__row-games .page-blog__slider-track {
    display: flex;
    flex-wrap: nowrap;
  }
  .page-blog__row-games .page-blog__game-slide {
    flex: 0 0 160px;
    max-width: 160px;
  }

  /* 合作品牌六宫格 (Placeholder for __banners-top-wrapper) */
  .page-blog__banners-top-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 15px;
  }
  .page-blog__banner-item img {
    
    
  }

  /* 博客卡片区 - Covered by .page-blog__blog-grid */
  .page-blog__blog-masonry {
    grid-template-columns: 1fr;
  }
  .page-blog__blog-slider-track {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page-blog__blog-slide {
    flex: 0 0 80%; /* Adjust as needed for single slide view */
    max-width: 80%;
  }

  /* 通用图片与容器 - Covered by general .page-blog img and .page-blog__section, .page-blog__container, etc. */
  /* 按钮与按钮容器 - Covered by .page-blog__cta-button and .page-blog__cta-buttons */

  /* Additional mobile specific padding for main content containers */
  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }
}