:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --button-login: #EA7C07;
}

.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Assuming body background is light */
}

/* --- General Layout & Container --- */
.page-blog__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

.page-blog__container--center {
  text-align: center;
}

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.2;
}

.page-blog__section-title--white {
  color: var(--text-light);
}

.page-blog__sub-title {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 25px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-blog__sub-title--white {
  color: var(--text-light);
}

.page-blog__text-block p {
  margin-bottom: 15px;
}

.page-blog__text-block--white p {
  color: var(--text-light);
}

.page-blog__warning-text {
  font-weight: bold;
  color: #dc3545; /* Red for warning */
}

.page-blog__warning-text--white {
  color: #ffc107; /* Yellow for warning on dark background */
}

.page-blog__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

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

.page-blog__list--white li {
  color: var(--text-light);
}

/* --- Hero Section --- */
.page-blog__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  margin-bottom: 40px;
  background-color: #1a1a1a; /* Dark background for hero section to make text visible */
}

.page-blog__hero-image {
  width: 100%;
  max-width: 1920px;
  overflow: hidden;
  margin-bottom: 20px; /* Spacing between image and content */
}

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-height: 600px; /* Max height for desktop */
  object-fit: cover;
  display: block;
}

.page-blog__hero-content {
  text-align: center;
  color: var(--text-light);
  max-width: 900px;
  padding: 0 15px 40px;
}

.page-blog__main-title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-blog__subtitle {
  font-size: clamp(18px, 2.5vw, 22px);
  line-height: 1.5;
  margin-bottom: 30px;
  color: var(--text-light);
}

/* --- Content Wrapper for Text and Image Blocks --- */
.page-blog__content-wrapper {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-blog__content-wrapper--reverse {
  flex-direction: row-reverse;
}

.page-blog__text-block {
  flex: 1;
  font-size: 16px;
}

.page-blog__text-block--white {
  color: var(--text-light);
}

.page-blog__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 8px;
}

.page-blog__image-block img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* --- Buttons --- */
.page-blog__btn-primary,
.page-blog__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-blog__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-primary:hover {
  background-color: #1e87b7; /* Slightly darker primary */
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-blog__btn-secondary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-blog__btn-secondary:hover {
  background-color: #e0e0e0; /* Slightly darker secondary */
  color: #1e87b7;
  border-color: #1e87b7;
  transform: translateY(-2px);
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
}

/* --- Section Specific Backgrounds --- */
.page-blog__light-bg {
  background-color: var(--secondary-color); /* White background */
  color: var(--text-dark);
}

.page-blog__dark-bg {
  background-color: var(--primary-color); /* Primary color background */
  color: var(--text-light);
}

/* --- Introduction Section --- */
.page-blog__introduction-section {
  padding: 60px 0;
}

/* --- Download Guide Section --- */
.page-blog__download-guide-section {
  padding: 60px 0;
}

/* --- Game Experience Section --- */
.page-blog__game-experience-section {
  padding: 60px 0;
}

/* --- Promotions Section --- */
.page-blog__promotions-section {
  padding: 60px 0;
}

/* --- Security & Support Section --- */
.page-blog__security-support-section {
  padding: 60px 0;
}

/* --- FAQ Section (details/summary) --- */
.page-blog__faq-section {
  padding: 60px 0;
}

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

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;
  color: var(--text-dark); /* Ensure text color contrast */
}
.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;
  color: var(--text-dark); /* Ensure text color contrast */
}

/* --- CTA Section --- */
.page-blog__cta-section {
  padding: 80px 0;
}

.page-blog__cta-description {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.page-blog__cta-description--white {
  color: var(--text-light);
}

/* --- Responsive Styles (Tablet) --- */
@media (max-width: 1024px) {
  .page-blog__hero-image img {
    max-height: 500px;
  }
  .page-blog__content-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }
  .page-blog__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-blog__image-block {
    order: -1; /* Image appears first in column flow */
  }
  .page-blog__text-block, .page-blog__image-block {
    flex: none;
    width: 100%;
    max-width: 700px; /* Constrain width for tablet */
  }
}

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

  .page-blog__section-title {
    font-size: clamp(24px, 6vw, 32px);
    margin-bottom: 25px;
  }

  .page-blog__sub-title {
    font-size: clamp(18px, 4vw, 24px);
    margin-top: 20px;
    margin-bottom: 10px;
  }

  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }

  .page-blog__hero-image img {
    height: auto !important;
    object-fit: contain !important; /* Mobile hero image: contain */
    aspect-ratio: unset !important; /* Reset aspect ratio for contain */
    max-height: 300px; /* Limit max height on mobile */
  }

  .page-blog__main-title {
    font-size: clamp(28px, 7vw, 38px);
    margin-bottom: 10px;
  }

  .page-blog__subtitle {
    font-size: clamp(16px, 4vw, 18px);
    margin-bottom: 20px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__content-wrapper {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
  }

  .page-blog__content-wrapper--reverse {
    flex-direction: column; /* Still column on mobile */
  }

  .page-blog__text-block {
    font-size: 15px;
  }

  .page-blog__image-block {
    order: -1; /* Image appears first in column flow */
  }

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 10px 15px !important;
    font-size: 15px !important;
    min-width: unset !important;
  }

  .page-blog__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    margin-top: 25px;
    padding: 0 15px; /* Add padding to button container */
  }

  .page-blog__introduction-section,
  .page-blog__download-guide-section,
  .page-blog__game-experience-section,
  .page-blog__promotions-section,
  .page-blog__security-support-section,
  .page-blog__faq-section,
  .page-blog__cta-section {
    padding: 40px 0;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px;
  }
  .page-blog__faq-qtext {
    font-size: 15px;
  }
  .page-blog__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }

  .page-blog__cta-description {
    font-size: 16px;
    margin-bottom: 25px;
    padding: 0 15px;
  }

  /* Ensure all content containers are responsive */
  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}