/* 强制链接格式要求 - 首页链接格式 */
.page-blog__logo a,
.page-blog__brand-logo a {
  text-decoration: none;
  color: inherit;
}

/* 强制链接格式要求 - 其他页面链接格式 */
.page-blog__nav-link,
.page-blog__footer-link {
  text-decoration: none;
  color: inherit;
}

/* 强制链接格式要求 - 品牌Logo链接格式 */
.page-blog__header-logo a {
  text-decoration: none;
  color: inherit;
}

/* 强制链接格式要求 - 首页「博客区块」与「新闻区块」链接 */
.page-blog__blog-archive-btn a[href="news.html"],
.page-blog__blog-section a[href="/news.html"] {
  /* 仅用于强制规范，实际不应出现 */
  /* display: none; */
}

/* 智能颜色对比度保障系统 */
/* Nếu body là nền sáng (mặc định cho hầu hết các trang web) */
.page-blog {
  color: #333333; /* Sử dụng văn bản màu tối */
  background-color: #f5f5f5; /* Nền màu xám nhạt để tạo sự dễ chịu */
}

.page-blog__dark-section {
  background: #017439; /* Màu chủ đạo */
  color: #ffffff; /* Văn bản màu trắng */
}

.page-blog__light-bg {
  background: #ffffff; /* Nền trắng */
  color: #333333; /* Văn bản màu tối */
}

.page-blog__main-title,
.page-blog__section-title {
  color: #017439;
}

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

.page-blog__article-card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-blog__article-link {
  color: #333333;
  text-decoration: none;
}

.page-blog__article-link:hover .page-blog__article-title {
  color: #017439;
}

.page-blog__btn-primary {
  background: #017439;
  color: #ffffff;
  border: 2px solid transparent;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-blog__btn-primary:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

.page-blog__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 5px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

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

/* 注册和登录按钮颜色 */
.page-blog__btn-primary.page-blog__btn-register,
.page-blog__btn-primary.page-blog__btn-login {
  background: #C30808;
  color: #FFFF00;
  border-color: #C30808;
}

.page-blog__btn-primary.page-blog__btn-register:hover,
.page-blog__btn-primary.page-blog__btn-login:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-blog__btn-secondary.page-blog__btn-register,
.page-blog__btn-secondary.page-blog__btn-login {
  background: #ffffff;
  color: #C30808;
  border-color: #C30808;
}

.page-blog__btn-secondary.page-blog__btn-register:hover,
.page-blog__btn-secondary.page-blog__btn-login:hover {
  background-color: #C30808;
  color: #FFFF00;
}

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

.page-blog__hero-image-container {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-blog__hero-content-wrapper {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-blog__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
}

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

.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

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

.page-blog__article-card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

.page-blog__article-title {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.4;
  font-weight: 600;
  color: #333333;
  transition: color 0.3s ease;
}

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

.page-blog__article-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-blog__read-more-btn {
  color: #017439;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: color 0.3s ease;
}

.page-blog__read-more-btn:hover {
  color: #005a2d;
}

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

.page-blog__sidebar {
  padding: 60px 0;
}

.page-blog__sidebar-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.page-blog__sidebar-title {
  font-size: 1.5rem;
  color: #017439;
  margin-bottom: 20px;
  font-weight: 600;
}

.page-blog__category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-blog__category-list li {
  margin-bottom: 10px;
}

.page-blog__category-link {
  display: block;
  padding: 10px 15px;
  background: #f9f9f9;
  border-radius: 5px;
  color: #333333;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__category-link:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-blog__tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-blog__tag-item {
  display: inline-block;
  padding: 8px 15px;
  background: #e0e0e0;
  border-radius: 20px;
  color: #333333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-blog__tag-item:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-blog__cta-sidebar {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
}

.page-blog__cta-sidebar p {
  margin-bottom: 25px;
  color: #555555;
}

.page-blog__btn-full-width {
  width: 100%;
  display: block;
  margin-bottom: 15px;
}

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

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

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: #f5f5f5;
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-blog__cta-section {
  padding: 60px 0;
  text-align: center;
}

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

.page-blog__cta-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: #ffffff;
}

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

/* 全局图片尺寸要求 */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 移动端强制适配 - 通用图片和容器 */
@media (max-width: 768px) {
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__hero-section,
  .page-blog__latest-articles,
  .page-blog__sidebar,
  .page-blog__faq-section,
  .page-blog__cta-section,
  .page-blog__article-card,
  .page-blog__container,
  .page-blog__cta-sidebar {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

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

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

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

  .page-blog__article-grid {
    grid-template-columns: 1fr;
  }

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

  .page-blog__article-title {
    font-size: 1.1rem;
  }

  .page-blog__article-excerpt {
    font-size: 0.9rem;
  }

  .page-blog__sidebar-content {
    grid-template-columns: 1fr;
  }

  .page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }

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

  .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-wrap: wrap !important;
    gap: 10px;
  }
}

/* 🚨🚨🚨 HOMEPAGE SPECIFIC CSS BLOCKS - FORCED INCLUSION 🚨🚨🚨 */
/* This section is included as per strict meta-instruction, even for a blog page. */
@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;
  }
}

/* 🚨🚨🚨 END HOMEPAGE SPECIFIC CSS BLOCKS 🚨🚨🚨 */

/* FAQ CSS for blog page */
@media (max-width: 768px) {
  details.page-blog__faq-item summary.page-blog__faq-question { padding: 15px; }
  .page-blog__faq-qtext { font-size: 15px; }
}

/* Default styles for game trial overlay and modal, included due to strict JS requirement */
.page-blog__game-trial-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: auto;
  color: #fff;
  text-align: center;
  transition: opacity 0.3s ease;
}
.page-blog__game-trial-overlay.is-hidden {
  opacity: 0;
  pointer-events: none !important;
  display: none !important;
}
.page-blog__game-trial-start {
  background: #017439;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
  border: none;
  transition: background-color 0.3s ease;
}
.page-blog__game-trial-start:hover {
  background-color: #005a2d;
}
.page-blog__game-trial-shell {
  border: 1px solid rgba(212, 175, 55, .45);
  border-radius: 10px;
  overflow: hidden;
}
.page-blog__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}
.page-blog__reward-modal-content {
  background: #fff;
  border-radius: 10px;
  padding: 30px;
  max-width: 500px;
  text-align: center;
  position: relative;
  color: #333;
}
.page-blog__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.page-blog__reward-modal h3 {
  color: #017439;
  margin-bottom: 20px;
}
.page-blog__reward-modal p {
  margin-bottom: 30px;
}
.page-blog--reward-open {
  overflow: hidden;
}