:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --body-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

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

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__section-subtitle {
  font-size: 18px;
  color: rgba(255, 243, 230, 0.8);
  text-align: center;
  margin-bottom: 40px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--button-gradient);
  color: #ffffff; /* Explicitly white for contrast */
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #D96800 0%, #FFA53A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-blog__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  background: transparent;
  color: var(--primary-color);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.page-blog__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px 20px;
  background: rgba(13, 14, 18, 0.7);
  border-radius: 15px;
  margin-top: 60px; /* Push content down slightly over image */
}

.page-blog__main-title {
  font-size: 48px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 140, 26, 0.6);
}

.page-blog__hero-description {
  font-size: 20px;
  color: rgba(255, 243, 230, 0.9);
  margin-bottom: 30px;
}

/* Latest Articles Section */
.page-blog__latest-articles {
  padding: 60px 0;
  background: var(--body-bg);
}

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

.page-blog__article-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
}

.page-blog__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(255, 140, 26, 0.5);
}

.page-blog__card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-excerpt {
  font-size: 15px;
  color: rgba(255, 243, 230, 0.7);
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-blog__article-date {
  font-size: 14px;
  color: rgba(255, 243, 230, 0.5);
  margin-top: auto; /* Push date to bottom */
}

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

/* Categories Section */
.page-blog__categories-section {
  padding: 60px 0;
  background: var(--card-bg);
}

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

.page-blog__category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--body-bg);
  border-radius: 10px;
  padding: 20px;
  text-decoration: none;
  color: var(--text-main);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-blog__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(255, 140, 26, 0.4);
}

.page-blog__category-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
  border: 3px solid var(--primary-color);
}

.page-blog__category-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  margin: 0;
}

/* Featured Article Section */
.page-blog__featured-article {
  padding: 60px 0;
  background: var(--body-bg);
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.8;
}

.page-blog__article-body p {
  margin-bottom: 25px;
  color: rgba(255, 243, 230, 0.9);
}

.page-blog__article-body h2, .page-blog__article-body h3 {
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__article-figure {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

/* FAQ Section */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 4px 15px 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(255, 140, 26, 0.1);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main);
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--primary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05);
  border-radius: 0 0 10px 10px;
  color: rgba(255, 243, 230, 0.8);
  font-size: 16px;
}

/* Global image responsiveness */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__main-title {
    font-size: 42px;
  }
  .page-blog__hero-description {
    font-size: 18px;
  }
  .page-blog__section-title {
    font-size: 32px;
  }
  .page-blog__section-subtitle {
    font-size: 16px;
  }
  .page-blog__articles-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-blog__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    min-height: 400px;
  }
  .page-blog__hero-image img {
    object-fit: contain !important;
    aspect-ratio: unset !important;
  }
  .page-blog__hero-content {
    padding: 25px 15px;
    margin-top: 30px;
  }
  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 36px); /* Use clamp for H1 */
    margin-bottom: 15px;
  }
  .page-blog__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-blog__cta-button, .page-blog__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-blog__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding: 0 15px;
  }

  /* 产品展示图区域 (Not applicable for this blog page, but if it were, rules would apply) */
  /* Placeholder for products-grid if it existed on a blog page */
  /* .page-blog__products-grid { grid-template-columns: repeat(2, 1fr); overflow-x: hidden; } */

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 10px;
    padding: 0 15px;
  }
  .page-blog__section-subtitle {
    font-size: 15px;
    margin-bottom: 30px;
    padding: 0 15px;
  }
  .page-blog__article-body {
    max-width: 100% !important;
    padding: 0 15px;
    font-size: 16px;
  }
  .page-blog__article-body p {
    margin-bottom: 20px;
  }
  .page-blog__article-figure {
    border-radius: 8px;
    margin-bottom: 25px;
  }

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-blog__container,
  .page-blog__latest-articles,
  .page-blog__categories-section,
  .page-blog__featured-article,
  .page-blog__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons and button containers (already covered above with .page-blog__cta-button) */

  /* Article cards */
  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-blog__article-card {
    border-radius: 8px;
  }
  .page-blog__article-image {
    height: 180px;
  }
  .page-blog__card-title {
    font-size: 20px;
  }
  .page-blog__card-excerpt {
    font-size: 14px;
  }
  .page-blog__category-card {
    padding: 15px;
  }
  .page-blog__category-image {
    width: 80px;
    height: 80px;
  }
  .page-blog__category-title {
    font-size: 16px;
  }
  .page-blog__categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
  }

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