/* style/blog.css */
.page-blog {
  color: #ffffff; /* Light text on dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  font-family: Arial, sans-serif;
}

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

.page-blog__dark-section {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter dark background for sections */
  padding: 60px 0;
  margin-bottom: 20px;
}

.page-blog__hero-section {
  padding-top: 10px; /* Small top padding for the first section in main */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #26A9E0, #1a7bb7);
  padding-bottom: 40px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  margin-bottom: 30px;
}

.page-blog__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-blog__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-blog__main-title {
  font-size: 2.8em;
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.page-blog__intro-text {
  font-size: 1.15em;
  line-height: 1.6;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-blog__section-title {
  font-size: 2.2em;
  font-weight: 600;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
}

.page-blog__section-description {
  font-size: 1.05em;
  line-height: 1.6;
  color: #cccccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

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

.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__btn-link {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-blog__btn-primary:hover {
  background-color: #d16b05;
  border-color: #d16b05;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-blog__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
  transform: translateY(-2px);
}

.page-blog__btn-link {
  background-color: transparent;
  color: #26A9E0;
  border: none;
  padding: 0;
  font-size: 1em;
  font-weight: 600;
  text-decoration: underline;
}

.page-blog__btn-link:hover {
  color: #1a7bb7;
}

/* Categories Section */
.page-blog__categories-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

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

.page-blog__category-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__category-card:hover {
  transform: translateY(-8px);
  background-color: rgba(38, 169, 224, 0.2);
}

.page-blog__category-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-blog__category-description {
  font-size: 0.95em;
  color: #cccccc;
  line-height: 1.5;
}

/* Articles Section */
.page-blog__articles-section {
  padding-top: 40px;
  padding-bottom: 60px;
}

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

.page-blog__article-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-blog__article-image {
  width: 100%;
  height: 225px;
  object-fit: cover;
  display: block;
  filter: none; /* Ensure no CSS filter changes image color */
}

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

.page-blog__article-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__article-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-title a:hover {
  color: #1a7bb7;
}

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

.page-blog__article-excerpt {
  font-size: 1em;
  color: #cccccc;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

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

/* CTA Bottom Section */
.page-blog__cta-bottom-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(90deg, #26A9E0, #1a7bb7);
}

.page-blog__cta-bottom-section .page-blog__section-title {
  color: #FFFFFF;
}

.page-blog__cta-bottom-section .page-blog__section-description {
  color: #f0f0f0;
  max-width: 900px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 2.5em;
  }

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

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

@media (max-width: 768px) {
  .page-blog {
    font-size: 16px;
    line-height: 1.6;
  }

  /* LOGO 轮播区域 - 必写清单 */
  /* This page does not have a logo carousel, but the media query block is required to be present as per instructions */
  .page-blog__logo-carousel-section {
    padding: 10px 15px 20px !important; /* Small top padding, not var(--header-offset) */
  }
  .page-blog__logo-carousel {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }
  .page-blog__logo-item {
    width: 80px !important;
    height: 80px !important;
    max-width: 80px !important;
    box-sizing: border-box;
    object-fit: contain;
  }

  /* HERO 主图区域 - 必写清单 */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__hero-image-wrapper,
  .page-blog__hero-content {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-blog__intro-text {
    font-size: 1em;
  }

  /* 游戏展示区域 - 必写清单 */
  /* This page does not have a dedicated 'games-section' as per the structure, but general article/category grids are present. */
  .page-blog__categories-grid,
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__category-card,
  .page-blog__article-card {
    padding: 20px;
  }
  .page-blog__category-title {
    font-size: 1.3em;
  }
  .page-blog__article-title {
    font-size: 1.2em;
  }

  /* 通用图片与容器 - 必写清单 */
  .page-blog img:not(.page-blog__logo-item) {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__hero-image-wrapper,
  .page-blog__category-card,
  .page-blog__article-card,
  .page-blog__view-all-button-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 按钮与按钮容器 - 必写清单 */
  .page-blog__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 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__dark-section {
    padding: 40px 0;
  }
  .page-blog__section-title {
    font-size: 1.8em;
    padding: 0 15px;
  }
  .page-blog__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-blog__cta-bottom-section {
    padding: 60px 0;
  }
  .page-blog__articles-grid {
    padding-left: 15px;
    padding-right: 15px;
  }
}