.page-blog {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: transparent; /* Body background is handled by shared.css var(--bg-color) */
}

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

.page-blog__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  color: #FF8C1A; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-blog__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #0D0E12 0%, rgba(13, 14, 18, 0.8) 100%);
}

.page-blog__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

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

.page-blog__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-blog__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-blog__hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: #FFF3E6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-blog__hero-content p {
  font-size: clamp(16px, 2vw, 20px);
  color: #FFF3E6; /* Text Main */
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FFA53A 100%); /* Glow on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__latest-posts-section {
  padding: 60px 0;
  background-color: #0D0E12; /* Background */
}

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

.page-blog__post-card {
  background-color: #17191F; /* Card BG */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

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

.page-blog__post-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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

.page-blog__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__card-title a {
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__card-title a:hover {
  color: #FFA53A; /* Auxiliary color on hover */
}

.page-blog__post-meta {
  font-size: 14px;
  color: #FFA53A; /* Auxiliary color */
  margin-bottom: 15px;
}

.page-blog__card-description {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more {
  display: inline-block;
  color: #FF8C1A; /* Primary color */
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-blog__read-more:hover {
  color: #FFA53A;
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-blog__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FFA53A 100%); /* Glow on hover */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-blog__categories-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

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

.page-blog__category-item {
  display: inline-block;
  padding: 10px 20px;
  background-color: #17191F; /* Card BG */
  color: #FFF3E6; /* Text Main */
  text-decoration: none;
  border-radius: 20px;
  font-size: 15px;
  border: 1px solid #A84F0C; /* Border */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-blog__category-item:hover,
.page-blog__category-item.active {
  background-color: #FF8C1A; /* Primary color */
  color: #ffffff;
  border-color: #FF8C1A;
}

.page-blog__faq-section {
  padding: 60px 0;
  background-color: #0D0E12;
}

details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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;
}

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, 139, 26, 0.1); /* Slight hover effect with primary color */
}

.page-blog__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #FFF3E6; /* Text Main */
  text-align: left;
}

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: rgba(23, 25, 31, 0.8); /* Slightly transparent Card BG */
  border-top: 1px solid #A84F0C;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 16px;
}

.page-blog__newsletter-section {
  padding: 80px 0;
  background: linear-gradient(90deg, #D96800 0%, #FF8C1A 100%); /* Primary color gradient */
  text-align: center;
}

.page-blog__newsletter-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-blog__newsletter-content .page-blog__section-title {
  color: #ffffff;
  margin-bottom: 20px;
}

.page-blog__newsletter-content p {
  color: #ffffff;
  font-size: 18px;
  margin-bottom: 30px;
}

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

.page-blog__newsletter-input {
  flex-grow: 1;
  max-width: 400px;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333;
}

.page-blog__newsletter-input::placeholder {
  color: #888;
}

.page-blog__newsletter-form .page-blog__btn-primary {
  padding: 15px 30px;
  font-size: 16px;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%); /* Dark button on bright background */
  color: #FFF3E6;
}

.page-blog__newsletter-form .page-blog__btn-primary:hover {
  background: #17191F;
  color: #FF8C1A;
}

/* 🚨 移动端响应式设计（必须严格遵守） */
@media (max-width: 768px) {
  .page-blog__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-blog__hero-image img {
    border-radius: 4px;
  }
  
  .page-blog__hero-content h1 {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-blog__hero-content p {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-blog__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-blog__latest-posts-section,
  .page-blog__categories-section,
  .page-blog__faq-section,
  .page-blog__newsletter-section {
    padding: 40px 0;
  }

  .page-blog__post-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-blog__post-card {
    margin: 0 15px;
  }

  .page-blog__post-card img {
    
  }

  .page-blog__card-title {
    font-size: 18px;
  }

  .page-blog__card-description {
    font-size: 14px;
  }

  .page-blog__read-more {
    font-size: 14px;
  }

  .page-blog__view-all-posts .page-blog__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 15px;
  }

  .page-blog__category-item {
    font-size: 14px;
    padding: 8px 15px;
  }

  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;
  }

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

  .page-blog__newsletter-content {
    padding: 0 15px;
  }

  .page-blog__newsletter-content p {
    font-size: 16px;
  }

  .page-blog__newsletter-form {
    flex-direction: column;
    align-items: center;
  }

  .page-blog__newsletter-input {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-blog__newsletter-form .page-blog__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Mobile image responsiveness */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .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;
  }
  .page-blog__hero-section {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-blog__newsletter-section .page-blog__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-blog__newsletter-form {
    padding: 0 15px;
  }
}