/* -------------------------------------------------------------------------- */
/*                            Base & Layout Styles                            */
/* -------------------------------------------------------------------------- */
.page-blog {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF6D6; /* Text Main from custom colors */
  background-color: #0A0A0A; /* Background from custom colors */
  padding-bottom: 40px;
}

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

.page-blog__section {
  padding: 40px 0;
}

/* -------------------------------------------------------------------------- */
/*                                Hero Section                                */
/* -------------------------------------------------------------------------- */
.page-blog__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 40px;
  overflow: hidden;
}

.page-blog__hero-image-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.page-blog__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Cover for desktop, will change for mobile */
  border-radius: 8px;
}

.page-blog__hero-content {
  position: relative;
  text-align: center;
  padding: 40px 20px;
  background: rgba(17, 17, 17, 0.8); /* Card BG from custom colors with transparency */
  border-radius: 8px;
  margin-top: -80px; /* Overlap with image slightly for visual appeal */
  z-index: 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-blog__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #FFD36B; /* Glow color */
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-blog__description {
  font-size: 1.1rem;
  color: #FFF6D6;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

/* -------------------------------------------------------------------------- */
/*                               General Content                              */
/* -------------------------------------------------------------------------- */
.page-blog__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: #F2C14E; /* Main color */
  text-align: center;
  margin-bottom: 30px;
  font-weight: 700;
  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: #FFD36B; /* Glow color */
  border-radius: 2px;
}

.page-blog__article-body {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.7;
  color: #FFF6D6;
}

.page-blog__article-body p {
  margin-bottom: 1.2em;
}

.page-blog__article-body h3 {
  font-size: 1.5rem;
  color: #F2C14E;
  margin-top: 2.5em;
  margin-bottom: 1em;
  font-weight: 600;
}

.page-blog__article-body h4 {
  font-size: 1.3rem;
  color: #FFD36B;
  margin-top: 2em;
  margin-bottom: 1em;
  font-weight: 500;
}

.page-blog__article-body a {
  color: #FFD36B;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-blog__article-body a:hover {
  color: #F2C14E;
  text-decoration: underline;
}

.page-blog__article-figure {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 30px auto;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-blog__list {
  list-style-type: disc;
  margin-left: 25px;
  padding-left: 0;
  margin-bottom: 1.5em;
}

.page-blog__list li {
  margin-bottom: 0.8em;
  color: #FFF6D6;
}

.page-blog__list li strong {
  color: #FFD36B;
}

/* -------------------------------------------------------------------------- */
/*                              Guide Section                                 */
/* -------------------------------------------------------------------------- */
.page-blog__guide-step {
  background: #111111; /* Card BG from custom colors */
  border: 1px solid #3A2A12; /* Border from custom colors */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.page-blog__guide-step .page-blog__article-figure {
  max-width: 80%;
  margin-top: 0;
  margin-bottom: 25px;
}

.page-blog__step-title {
  font-size: 1.8rem;
  color: #F2C14E;
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-blog__guide-step p {
  font-size: 1.05rem;
  color: #FFF6D6;
}

/* -------------------------------------------------------------------------- */
/*                                 FAQ Section                                */
/* -------------------------------------------------------------------------- */
details.page-blog__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #3A2A12; /* Border from custom colors */
  overflow: hidden;
  background: #111111; /* Card BG from custom colors */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
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: #FFF6D6;
}
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(242, 193, 78, 0.1);
}
.page-blog__faq-qtext {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}
.page-blog__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-blog__faq-item .page-blog__faq-answer {
  padding: 0 25px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 8px 8px;
  color: #FFF6D6;
}

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

/* -------------------------------------------------------------------------- */
/*                                  Buttons                                   */
/* -------------------------------------------------------------------------- */
.page-blog__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button color from custom colors */
  color: #111111; /* Dark text for contrast */
  text-decoration: none;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-blog__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-blog__btn-register {
  margin-top: 20px;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive                                 */
/* -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .page-blog__hero-content {
    margin-top: -60px;
    padding: 30px 20px;
  }

  .page-blog__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-blog__description {
    font-size: 1rem;
  }

  .page-blog__section-title {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  }

  .page-blog__article-body {
    font-size: 0.95rem;
  }

  .page-blog__guide-step {
    padding: 25px;
  }

  .page-blog__step-title {
    font-size: 1.6rem;
  }

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

/* Mobile specific styles */
@media (max-width: 849px) {
  .page-blog__hero-image {
    object-fit: contain !important; /* Prevent cropping sides */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    position: relative !important;
    height: auto !important;
    width: 100% !important;
  }
  .page-blog__hero-image-wrapper {
    padding-bottom: 0 !important; /* Remove fixed aspect ratio for mobile */
    height: auto !important;
  }
}

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

  .page-blog__section {
    padding: 30px 0 !important;
  }

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

  .page-blog__hero-content {
    margin-top: -40px !important;
    padding: 25px 15px !important;
  }

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

  .page-blog__description {
    font-size: 0.95rem !important;
    margin-bottom: 20px !important;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-blog__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem) !important;
    margin-bottom: 25px !important;
    padding-bottom: 10px !important;
  }
  .page-blog__section-title::after {
    width: 60px !important;
  }

  .page-blog__article-body {
    font-size: 0.9rem !important;
    max-width: 100% !important; /* Ensure content fits screen */
  }

  .page-blog__article-body p {
    margin-bottom: 1em !important;
  }

  .page-blog__article-body h3 {
    font-size: 1.3rem !important;
    margin-top: 2em !important;
    margin-bottom: 0.8em !important;
  }

  .page-blog__article-body h4 {
    font-size: 1.1rem !important;
    margin-top: 1.5em !important;
    margin-bottom: 0.8em !important;
  }

  .page-blog__article-figure {
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-blog__list {
    margin-left: 20px !important;
  }

  /* 通用图片与容器 */
  .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__guide-step {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* 按钮与按钮容器 */
  .page-blog__btn-primary,
  .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 20px !important;
    font-size: 1rem !important;
  }

  .page-blog__guide-step {
    padding: 20px !important;
  }

  .page-blog__guide-step .page-blog__article-figure {
    max-width: 100% !important;
  }

  .page-blog__step-title {
    font-size: 1.4rem !important;
  }

  details.page-blog__faq-item summary.page-blog__faq-question {
    padding: 15px 18px !important;
  }

  .page-blog__faq-qtext {
    font-size: 0.95rem !important;
  }

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

  details.page-blog__faq-item .page-blog__faq-answer {
    padding: 0 18px 18px !important;
  }

  /* Product display grid rules (not applicable for blog, but including general image grid safety) */
  .page-blog__products-grid { /* Placeholder if a grid of articles or products were to be here */
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    overflow-x: hidden;
  }
  .page-blog__products-grid > * {
    flex: 1 1 calc(50% - 15px); /* 2 columns for mobile */
    max-width: calc(50% - 15px);
    box-sizing: border-box;
  }
  .page-blog__products-grid img {
    max-width: 100% !important;
    height: auto !important;
  }
}