/* 强制模板 CSS - 从公用片段复制 */
@media (max-width: 1023px) {
  .page-blog__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot {
    display: none !important;
  }
  .page-blog__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-blog__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-topbar,
  .page-blog__game-trial-bottombar {
    display: none !important;
  }
  .page-blog__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-blog__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-blog__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-blog__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-blog__hero-brand,
  .page-blog__hero-jackpot,
  .page-blog__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-blog__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-blog__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-blog__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-blog__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-blog__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

@media (max-width: 768px) {
  /* 优惠 `__promo-strip` */
  .page-blog__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    gap: 10px;
    padding: 0 15px;
  }
  .page-blog__promo-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .page-blog__promo-card-image-wrapper {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
  }
  .page-blog__promo-card-content {
    padding: 0 10px;
  }

  /* 热门 `__hot-games` */
  .page-blog__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-blog__hot-games-card {
    text-align: center;
  }
  .page-blog__hot-games-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__hot-games-name,
  .page-blog__hot-games-rtp,
  .page-blog__hot-games-desc {
    display: none;
  }

  /* 品牌 `__brand-intro` */
  .page-blog__brand-intro {
    padding: 20px 15px;
  }
  .page-blog__brand-intro-content {
    text-align: center;
  }
  .page-blog__brand-intro-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 中奖条 `__winner-ticker` */
  .page-blog__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 15px;
  }
  body {
    padding-bottom: 50px; /* Adjust based on ticker height */
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__section,
  .page-blog__card,
  .page-blog__post-card,
  .page-blog__about-content,
  .page-blog__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 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;
    padding-left: 15px;
    padding-right: 15px;
    text-align: center;
  }
  .page-blog__hero-actions,
  .page-blog__view-all {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 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-wrap: wrap !important;
    gap: 10px;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
  details.page-blog__faq-item .page-blog__faq-answer { padding: 0 15px 15px; }
  .page-blog__section-title { font-size: 24px; }
}

/* Blog Page Specific Styles */
.page-blog {
  background: #0A0A0A; /* Body background from custom palette */
  color: #FFF6D6; /* Main text color for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD36B; /* Glow color for titles */
  text-shadow: 0 0 8px rgba(255, 211, 107, 0.5);
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  margin-bottom: 60px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  margin-bottom: 40px;
}

.page-blog__hero-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.page-blog__hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

.page-blog__hero-title {
  font-size: 48px;
  font-weight: 800;
  color: #F2C14E; /* Main brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-blog__hero-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for golden button for contrast */
  border: none;
}

.page-blog__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__btn-secondary {
  background: transparent;
  color: #F2C14E;
  border: 2px solid #F2C14E; /* Border color from brand color */
}

.page-blog__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.page-blog__post-card {
  background: #111111; /* Card BG from custom palette */
  border: 1px solid #3A2A12; /* Border from custom palette */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-blog__post-image-wrapper {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.page-blog__post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-blog__post-card:hover .page-blog__post-image {
  transform: scale(1.05);
}

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

.page-blog__post-title {
  font-size: 22px;
  font-weight: 700;
  color: #F2C14E; /* Brand color for titles */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__post-excerpt {
  font-size: 15px;
  color: #FFF6D6; /* Main text color */
  margin-bottom: 15px;
}

.page-blog__post-date {
  font-size: 13px;
  color: #FFD36B; /* Glow color for date */
  display: block;
}

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

.page-blog__about-yoo88-section {
  padding: 60px 0;
  background: #111111; /* Card BG for section background */
  border-top: 1px solid #3A2A12;
  border-bottom: 1px solid #3A2A12;
  margin-bottom: 60px;
}

.page-blog__about-content {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
  color: #FFF6D6;
}

.page-blog__about-content p {
  margin-bottom: 1em;
}

.page-blog__about-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-blog__about-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

.page-blog__cta-section {
  padding: 80px 0;
  text-align: center;
  background: #0A0A0A;
}

.page-blog__cta-content {
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-blog__cta-title {
  font-size: 40px;
  font-weight: 700;
  color: #F2C14E;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-blog__cta-description {
  font-size: 18px;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-blog__btn-large {
  padding: 16px 40px;
  font-size: 20px;
}

.page-blog__cta-image-wrapper {
  margin-top: 40px;
}

.page-blog__cta-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border from custom palette */
  overflow: hidden;
  background: #111111; /* Card BG from custom palette */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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(242, 193, 78, 0.05); /* Slight hover effect */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E; /* Brand color for FAQ questions */
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow color for toggle icon */
  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: #0A0A0A; /* Body BG for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1023px) {
  .page-blog__hero-title { font-size: 40px; }
  .page-blog__cta-title { font-size: 36px; }
}

@media (max-width: 768px) {
  .page-blog__section-title { font-size: 28px; margin-bottom: 30px; }
  .page-blog__hero-title { font-size: 32px; }
  .page-blog__hero-description { font-size: 16px; }
  .page-blog__hero-actions { flex-direction: column; gap: 15px; }
  .page-blog__btn-primary, .page-blog__btn-secondary { width: 100%; }
  .page-blog__posts-grid { grid-template-columns: 1fr; }
  .page-blog__post-image-wrapper { height: 180px; }
  .page-blog__post-title { font-size: 18px; }
  .page-blog__post-excerpt { font-size: 14px; }
  .page-blog__about-content { font-size: 15px; }
  .page-blog__cta-title { font-size: 28px; }
  .page-blog__cta-description { font-size: 16px; }
  .page-blog__btn-large { padding: 14px 25px; font-size: 18px; }
  .page-blog__faq-qtext { font-size: 16px; }
}

@media (max-width: 480px) {
  .page-blog__hero-title { font-size: 28px; }
  .page-blog__cta-title { font-size: 24px; }
  .page-blog__section-title { font-size: 24px; }
}