/* Base Styles for Blog Page */
.page-blog {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-blog__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 40px;
  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: linear-gradient(90deg, #4A8BFF 0%, #2F6BFF 100%);
  border-radius: 2px;
}

.page-blog__section-title--light {
  color: #ffffff;
}

.page-blog__section-title--light::after {
  background: #ffffff;
}

.page-blog__description {
  font-size: 18px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #1F2D3D;
}

.page-blog__description--light {
  color: #f0f0f0;
}

/* Hero Section */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding */
  margin-bottom: 50px;
  overflow: hidden;
}

.page-blog__hero-image {
  width: 100%;
  height: 600px;
  position: relative;
}

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

.page-blog__hero-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.5);
  padding: 20px;
  box-sizing: border-box;
}

.page-blog__main-title {
  font-size: clamp(32px, 5vw, 56px);
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
  max-width: 900px;
}

.page-blog__hero-content .page-blog__description {
  color: #f0f0f0;
  font-size: clamp(16px, 2.5vw, 20px);
  margin-bottom: 40px;
  max-width: 800px;
}

.page-blog__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-blog__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-blog__cta-button--outline {
  background: transparent;
  border: 2px solid #ffffff;
  color: #ffffff;
  box-shadow: none;
}

.page-blog__cta-button--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(255, 255, 255, 0.2);
}

/* Articles Section */
.page-blog__articles-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.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: #FFFFFF; /* Card BG */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

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

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

.page-blog__article-title {
  font-size: 22px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-blog__article-excerpt {
  font-size: 15px;
  color: #4A5B6A;
  margin-bottom: 15px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-blog__read-more {
  color: #2F6BFF; /* Primary Color */
  font-weight: 600;
  font-size: 15px;
  display: inline-block;
}

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

.page-blog__view-all-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(47, 107, 255, 0.3);
}

.page-blog__view-all-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(47, 107, 255, 0.4);
}

/* About taigo88 Section */
.page-blog__about-taigo88 {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff;
}

.page-blog__about-taigo88 .page-blog__description {
  color: #f0f0f0;
}

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

.page-blog__text-content {
  flex: 2;
  font-size: 17px;
  line-height: 1.7;
}

.page-blog__text-content p {
  margin-bottom: 20px;
  color: #ffffff;
}

.page-blog__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-blog__side-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Featured Posts Section */
.page-blog__featured-posts {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-blog__article-card--featured {
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.15);
  border: 1px solid #D6E2FF; /* Border */
}

.page-blog__article-card--featured:hover {
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.25);
}

/* CTA Section */
.page-blog__cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Primary Color */
  color: #ffffff;
  text-align: center;
}

.page-blog__cta-section .page-blog__description {
  margin-bottom: 40px;
}

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

.page-blog__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
  border: none;
}

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

.page-blog__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary Color */
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

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

/* FAQ Section */
.page-blog__faq-section {
  padding: 60px 0 80px;
  background-color: #F4F7FB; /* Background */
}

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

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

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;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* 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: #F4F7FB;
}

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

.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary Color */
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
}

details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
  line-height: 1.7;
}

.page-blog__faq-answer p {
  margin: 0;
}

/* All images responsive base */
.page-blog img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* All buttons responsive base */
.page-blog__cta-button,
.page-blog__btn-primary,
.page-blog__btn-secondary,
.page-blog__view-all-button,
.page-blog a[class*="button"],
.page-blog a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__cta-buttons,
.page-blog__button-group,
.page-blog__btn-container,
.page-blog__view-all-button-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* --- Media Queries --- */

/* Mobile Adaptation (max-width: 768px) */
@media (max-width: 768px) {
  .page-blog__container {
    padding: 15px;
  }

  .page-blog__section-title {
    font-size: 28px;
    margin-bottom: 30px;
    padding-bottom: 10px;
  }

  .page-blog__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

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

  .page-blog__hero-image {
    height: 400px;
  }

  .page-blog__hero-image img {
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important;
  }

  .page-blog__main-title {
    font-size: clamp(28px, 8vw, 40px);
    margin-bottom: 15px;
  }

  .page-blog__hero-content .page-blog__description {
    font-size: clamp(14px, 3vw, 18px);
    margin-bottom: 30px;
  }

  .page-blog__cta-button {
    padding: 12px 25px;
    font-size: 16px;
  }

  /* 产品展示图区域 (Articles Grid) */
  .page-blog__articles-section {
    padding: 40px 0;
  }

  .page-blog__articles-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    overflow-x: hidden;
  }

  .page-blog__article-image {
    height: 180px;
  }

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

  .page-blog__article-excerpt {
    font-size: 14px;
  }

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

  .page-blog__view-all-button {
    padding: 10px 20px;
    font-size: 15px;
  }

  /* 关于taigo88 Section */
  .page-blog__about-taigo88 {
    padding: 50px 0;
  }

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

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

  .page-blog__side-image {
    width: 100%;
    height: auto;
  }

  /* Featured Posts Section */
  .page-blog__featured-posts {
    padding: 40px 0;
  }

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

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

  .page-blog__cta-buttons {
    flex-direction: column; /* 移动端垂直排列 */
    gap: 15px;
    padding: 0 15px;
  }

  .page-blog__btn-primary,
  .page-blog__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
  }

  /* FAQ Section */
  .page-blog__faq-section {
    padding: 40px 0 60px;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }

  .page-blog__faq-qtext {
    font-size: 15px;
  }

  .page-blog__faq-toggle {
    font-size: 24px;
    margin-left: 15px;
    width: 25px;
  }

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

  /* 通用图片与容器 */
  .page-blog img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-blog__section,
  .page-blog__card,
  .page-blog__container,
  .page-blog__content-wrapper,
  .page-blog__articles-grid,
  .page-blog__featured-grid,
  .page-blog__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-blog__articles-grid, .page-blog__featured-grid {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Tablet Adaptation (max-width: 1024px) - for broader tablet support if needed, but 768px is primary mobile focus */
@media (max-width: 1024px) and (min-width: 769px) {
  .page-blog__container {
    padding: 25px;
  }

  .page-blog__hero-image {
    height: 500px;
  }

  .page-blog__main-title {
    font-size: clamp(40px, 6vw, 50px);
  }

  .page-blog__hero-content .page-blog__description {
    font-size: clamp(18px, 2.5vw, 20px);
  }

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

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

  .page-blog__featured-grid {
    grid-template-columns: 1fr;
  }
}