/* style/blog.css */

:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --card-bg: #17191F;
  --background-color: #0D0E12;
  --text-main-color: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange-color: #D96800;
  --light-text-color: #ffffff;
  --dark-text-color: #333333;
  --light-bg-color: #ffffff;
}

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

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

.page-blog__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.page-blog__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.page-blog__section-description {
  font-size: 1.1em;
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-blog__hero-section {
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  background: var(--background-color);
  color: var(--light-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 50px;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  margin-bottom: 30px;
}

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

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

.page-blog__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.page-blog__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-main-color);
}

/* Buttons */
.page-blog__btn-primary, .page-blog__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange-color) 100%);
  color: var(--light-text-color);
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(255, 165, 58, 0.4);
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, var(--deep-orange-color) 0%, var(--secondary-color) 100%);
  box-shadow: 0 6px 20px rgba(255, 165, 58, 0.6);
}

.page-blog__btn-secondary {
  background: var(--light-bg-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--light-text-color);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

/* Content Sections */
.page-blog__intro-section, .page-blog__advantages-section,
.page-blog__access-guide-section, .page-blog__news-types-section,
.page-blog__benefits-section, .page-blog__warnings-section,
.page-blog__latest-news-grid-section, .page-blog__cta-section {
  padding: 60px 0;
}

.page-blog__dark-section {
  background-color: var(--card-bg);
  color: var(--text-main-color);
}

.page-blog__light-bg {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
}

.page-blog__light-bg .page-blog__section-title,
.page-blog__light-bg .page-blog__section-description,
.page-blog__light-bg .page-blog__advantage-list li,
.page-blog__light-bg .page-blog__access-steps li,
.page-blog__light-bg .page-blog__news-type-list li,
.page-blog__light-bg .page-blog__benefit-list li,
.page-blog__light-bg .page-blog__warning-list li,
.page-blog__light-bg p {
  color: var(--dark-text-color);
}

.page-blog__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

.page-blog__content-image {
  flex: 0 0 50%;
  max-width: 50%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-blog__text-block {
  flex: 1;
}

.page-blog__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

.page-blog__advantage-list, .page-blog__access-steps, 
.page-blog__news-type-list, .page-blog__benefit-list, 
.page-blog__warning-list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-blog__advantage-list li, .page-blog__access-steps li, 
.page-blog__news-type-list li, .page-blog__benefit-list li, 
.page-blog__warning-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-blog__advantage-list li::before, .page-blog__access-steps li::before, 
.page-blog__news-type-list li::before, .page-blog__benefit-list li::before, 
.page-blog__warning-list li::before {
  content: '✔'; /* Checkmark icon */
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

.page-blog__access-steps li::before {
  content: counter(item) '. '; /* Numbering for ordered list */
  counter-increment: item;
  color: var(--secondary-color);
  font-weight: bold;
  left: 0;
}

.page-blog__access-steps {
  counter-reset: item;
}

/* Latest News Grid */
.page-blog__latest-news-grid-section {
  padding-bottom: 80px;
}

.page-blog__blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-blog__blog-card {
  background-color: var(--card-bg);
  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__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

.page-blog__blog-card-content {
  padding: 20px;
  color: var(--text-main-color);
}

.page-blog__light-bg .page-blog__blog-card {
  background-color: var(--light-bg-color);
  color: var(--dark-text-color);
  border: 1px solid #e0e0e0;
}

.page-blog__light-bg .page-blog__blog-card-content {
  color: var(--dark-text-color);
}

.page-blog__blog-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-blog__blog-card-date {
  font-size: 0.9em;
  color: #aaa;
  margin-bottom: 15px;
}

.page-blog__blog-card-excerpt {
  font-size: 1em;
  margin-bottom: 15px;
  line-height: 1.5;
}

.page-blog__blog-card-read-more {
  color: var(--primary-color);
  font-weight: bold;
  display: inline-block;
}

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

/* CTA Section */
.page-blog__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--deep-orange-color);
  color: var(--light-text-color);
}

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

.page-blog__cta-section .page-blog__section-title::after {
  background-color: var(--light-text-color);
}

.page-blog__cta-section .page-blog__section-description {
  color: var(--light-text-color);
  margin-bottom: 40px;
}

.page-blog__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__container {
    padding: 20px 30px;
  }

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

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

  .page-blog__content-image {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .page-blog__blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .page-blog__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__section-title {
    font-size: 2em;
    margin-bottom: 20px;
  }

  .page-blog__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  /* Hero Section */
  .page-blog__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 30px;
  }

  .page-blog__hero-image-wrapper {
    max-height: 300px;
  }

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

  .page-blog__hero-description {
    font-size: 1em;
  }

  /* Content Sections */
  .page-blog__intro-section, .page-blog__advantages-section,
  .page-blog__access-guide-section, .page-blog__news-types-section,
  .page-blog__benefits-section, .page-blog__warnings-section,
  .page-blog__latest-news-grid-section, .page-blog__cta-section {
    padding: 40px 0;
  }

  .page-blog__content-wrapper {
    gap: 20px;
  }

  .page-blog__content-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-blog__text-block p {
    font-size: 0.95em;
  }

  .page-blog__advantage-list li, .page-blog__access-steps li, 
  .page-blog__news-type-list li, .page-blog__benefit-list li, 
  .page-blog__warning-list li {
    font-size: 0.95em;
    padding-left: 25px;
  }

  /* Blog Grid */
  .page-blog__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-blog__blog-card-title {
    font-size: 1.1em;
  }

  /* CTA Buttons */
  .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;
  }

  /* Image responsive fallback (general) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__hero-section,
  .page-blog__intro-section,
  .page-blog__advantages-section,
  .page-blog__access-guide-section,
  .page-blog__news-types-section,
  .page-blog__benefits-section,
  .page-blog__warnings-section,
  .page-blog__latest-news-grid-section,
  .page-blog__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }

  /* --- REQUIRED MEDIA QUERIES FOR OTHER SECTIONS (EVEN IF NOT IN THIS HTML) --- */
  /* This section is included to meet the strict requirement for the '必写清单' */
  /* These styles are for BEM classes that *might* appear on other pages but are explicitly requested */

  /* 1. Top Carousel (if present in .page-blog) */
  .page-blog__hero-carousel-section { /* Assuming this is an alternative hero section */
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-blog__hero-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
  }
  .page-blog__hero-slide {
    flex: 0 0 100%;
    max-width: 100%;
    height: auto;
  }
  .page-blog__hero-slider-prev, .page-blog__hero-slider-next {
    display: none; /* Hide arrows on mobile for simplicity */
  }

  /* 2. Operation Guide Box + Five Team Vertical Cards (if present in .page-blog) */
  .page-blog__guide-box {
    padding: 15px;
  }
  .page-blog__guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Forces 2 columns */
    gap: 15px;
    justify-content: center;
  }
  .page-blog__guide-card {
    padding-top: 0 !important; /* Reset specific padding */
    flex: 0 0 100%; /* Take full width for 1-column layout */
    max-width: 100%;
    text-align: center;
  }
  /* Specific positioning for 2x3 layout if needed, but 1-column is safer */
  .page-blog__guide-card--pos-1, .page-blog__guide-card--pos-2, .page-blog__guide-card--pos-3,
  .page-blog__guide-card--pos-4, .page-blog__guide-card--pos-5 {
    grid-column: span 1 !important; /* Each card takes 1 column */
  }
  .page-blog__guide-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 250 / 350 !important; /* Maintain aspect ratio */
    object-fit: cover;
    margin: 0 auto;
  }

  /* 3. home_content Box (if present in .page-blog) */
  .page-blog__home-content-box {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Full height on mobile */
    box-shadow: none !important;
    border: none !important;
    padding: 0;
  }
  .page-blog__home-content-inner {
    height: auto !important;
    overflow: visible !important; /* Show all content */
  }

  /* 4. Blog Card Section (already handled above, but reiterating for checklist) */
  .page-blog__blog-grid {
    grid-template-columns: 1fr !important;
  }

  /* 5. Generic Images and Buttons (already handled above, but reiterating for checklist) */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__btn-primary, .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
  }
}