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

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

.page-support__section-title {
  font-size: 32px;
  font-weight: bold;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
}

.page-support__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: #2F6BFF; /* Primary */
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-support__text-block {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #1F2D3D; /* Text Main */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding-top: 10px; /* Fixed header offset handled by body, this is for internal spacing */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #F4F7FB;
}

.page-support__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Desktop default */
}

.page-support__hero-content {
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-top: -100px; /* Overlap with image */
  position: relative;
  z-index: 1;
}

.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: #2F6BFF; /* Primary */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

.page-support__btn-secondary {
  background: #FFFFFF; /* Card BG */
  color: #2F6BFF; /* Primary */
  border: 2px solid #2F6BFF; /* Primary */
}

.page-support__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.4);
}

/* Intro Section */
.page-support__intro-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D; /* Text Main */
}

/* Channels Section */
.page-support__dark-section {
  background-color: #2F6BFF; /* Primary */
  color: #ffffff;
  padding: 60px 0;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__text-block {
  color: #ffffff;
}

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

.page-support__channel-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F2D3D;
}

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

.page-support__channel-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.page-support__card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #2F6BFF; /* Primary */
}

.page-support__card-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Guide Section */
.page-support__guide-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

.page-support__guide-item {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-support__guide-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  display: block;
  margin: 20px auto;
  border-radius: 8px;
}

/* FAQ Section */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}
details.page-support__faq-item summary.page-support__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-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: #f5f5f5;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Primary */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}

/* Resources Section */
.page-support__resources-section {
  padding: 60px 0;
  background-color: #F4F7FB;
}

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

.page-support__resource-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #1F2D3D;
}

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

.page-support__resource-card img {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

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

.page-support__cta-section .page-support__section-title,
.page-support__cta-section .page-support__text-block {
  color: #ffffff;
}

.page-support__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.page-support__cta-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-support__cta-content {
  max-width: 800px;
}

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

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

.page-support__section,
.page-support__card,
.page-support__container,
.page-support__hero-buttons,
.page-support__cta-buttons {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Media Queries for Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__container {
    padding: 15px;
  }

  .page-support__section-title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .page-support__sub-title {
    font-size: 20px;
    margin-top: 30px;
  }

  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Consistent small top padding */
  }

  .page-support__hero-image img {
    object-fit: contain !important; /* Prevent cropping on mobile */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__hero-content {
    margin-top: 0; /* No overlap on mobile */
    padding: 30px 15px;
    box-shadow: none;
    border-radius: 0;
  }

  .page-support__main-title {
    font-size: clamp(24px, 7vw, 36px); /* Adjust clamp for smaller screens */
    line-height: 1.3;
  }

  .page-support__hero-description {
    font-size: 16px;
  }

  .page-support__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Buttons */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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-left: 15px;
    padding-right: 15px;
  }

  .page-support__hero-buttons,
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }

  /* Channels Section */
  .page-support__channels-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__channel-card {
    padding: 20px;
  }

  .page-support__card-title {
    font-size: 20px;
  }

  /* Guide Section */
  .page-support__guide-item {
    padding: 25px;
  }

  .page-support__guide-image {
    margin: 15px auto;
  }

  /* FAQ Section */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }

  /* Resources Section */
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__resource-card {
    padding: 20px;
  }

  /* CTA Section */
  .page-support__cta-section {
    padding: 40px 0;
  }

  .page-support__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__cta-container {
    gap: 20px;
  }

  /* General Image Responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-support__section,
  .page-support__card,
  .page-support__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Additional mobile adjustments for products-grid if present (not explicitly for this page but required in checklist) */
/* This page does not have a products-grid, but for completeness as per checklist: */
/* @media (max-width: 768px) {
  .page-support__products-grid {
    grid-template-columns: repeat(2, 1fr) !important; 
    overflow-x: hidden !important;
  }
  .page-support__products-grid > *:nth-last-child(-n+2):nth-child(odd) {
    grid-column: span 1 !important;
  }
} */

/* No specific article-body or products-grid on this support page, but for checklist compliance: */
.page-support__article-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

@media (max-width: 768px) {
  .page-support__article-body {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-support__article-figure {
    text-align: center;
  }
  .page-support__article-figure img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
}