/* Biến màu sắc */
:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --button-gradient: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  --card-bg: #17191F;
  --page-bg: #0D0E12;
  --text-main: #FFF3E6;
  --border-color: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
}

.page-blog {
  background-color: var(--page-bg);
  color: var(--text-main);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Minimal top padding, relies on body padding-top for header offset */
  margin-bottom: 40px;
  overflow: hidden;
}

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

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

.page-blog__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 15px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4), transparent);
  color: var(--text-main);
  text-align: center;
}

.page-blog__main-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-main);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__subtitle {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  margin-bottom: 25px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-main);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* General Section Titles */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  line-height: 1.3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Text Blocks */
.page-blog__intro-section .page-blog__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-main);
}

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

.page-blog__article-card {
  background: 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;
  border: 1px solid var(--border-color);
}

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

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

.page-blog__article-card img {
  width: 100%;
  height: 220px; /* Fixed height for card images */
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-blog__card-date {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 15px;
}

.page-blog__card-excerpt {
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-blog__read-more-btn {
  display: inline-block;
  background: var(--button-gradient);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 600;
  text-transform: uppercase;
  transition: opacity 0.3s ease;
}

.page-blog__read-more-btn:hover {
  opacity: 0.9;
}

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

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

.page-blog__category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-blog__category-item {
  background: var(--deep-orange);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-blog__category-item:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

/* CTA Banner Section */
.page-blog__cta-banner-section {
  margin-bottom: 60px;
}

.page-blog__cta-banner-content {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-banner-content img {
  width: 100%;
  height: 600px; /* Fixed height for desktop */
  object-fit: cover;
  display: block;
}

.page-blog__cta-text-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 30px;
  color: var(--text-main);
}

.page-blog__cta-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  color: var(--secondary-color);
  margin-bottom: 15px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__cta-description {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  max-width: 700px;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.4);
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.6);
}

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

.page-blog__btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.4);
}

/* FAQ Section */
.page-blog__faq-section {
  margin-bottom: 60px;
}

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 2px 8px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main);
}

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(var(--primary-color), 0.1);
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--secondary-color);
}

.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;
  transition: transform 0.3s ease;
}

details.page-blog__faq-item[open] .page-blog__faq-toggle {
  transform: rotate(45deg);
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(var(--card-bg), 0.5);
  border-radius: 0 0 10px 10px;
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-blog__hero-image img {
    height: 500px;
  }

  .page-blog__cta-banner-content img {
    height: 450px;
  }

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

  .page-blog__card-title {
    font-size: 1.2rem;
  }

  .page-blog__faq-qtext {
    font-size: 1rem;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px 10px;
  }

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

  .page-blog__hero-image img {
    height: auto !important;
    object-fit: contain !important; /* Mobile: object-fit: contain */
    aspect-ratio: unset !important; /* Mobile: aspect-ratio:unset */
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__hero-content {
    position: static;
    background: var(--page-bg);
    padding: 20px 10px;
    text-shadow: none;
  }

  .page-blog__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }

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

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

  .page-blog__section,
  .page-blog__card,
  .page-blog__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* 产品展示图区域 (if any, not directly applicable to blog but for completeness) */
  /* If there were a products grid, it would be 2 columns and ensure no overflow */
  .page-blog__articles-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
    overflow-x: hidden;
  }

  .page-blog__article-card {
    margin: 0 auto;
    width: 100%;
  }

  .page-blog__article-card img {
    
  }

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

  .page-blog__card-excerpt {
    font-size: 0.95rem;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 25px;
    padding: 0 5px;
    text-align: center;
  }

  .page-blog__intro-section .page-blog__text-block {
    font-size: 1rem;
    text-align: left;
  }

  .page-blog__category-list {
    gap: 10px;
    flex-direction: column; /* Stack categories vertically */
    align-items: center;
  }

  .page-blog__category-item {
    width: 100%;
    max-width: 250px;
    text-align: center;
    padding: 10px 15px;
  }

  .page-blog__cta-banner-content img {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-blog__cta-text-overlay {
    padding: 20px;
  }

  .page-blog__cta-title {
    font-size: clamp(1.5rem, 7vw, 2.2rem);
  }

  .page-blog__cta-description {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-blog__cta-button,
  .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: 12px 15px;
    font-size: 1rem;
  }

  .page-blog__cta-buttons-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 10px;
    padding-right: 10px;
  }

  /* FAQ */
  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 15px;
  }

  .page-blog__faq-qtext {
    font-size: 1rem;
  }

  .page-blog__faq-toggle {
    font-size: 22px;
    width: 24px;
  }

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 15px 15px;
  }
}