/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for .page-support */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light body background */
  background-color: #f8f8f8; /* Light background for the page content */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-support__section-padding {
  padding: 60px 0;
}

.page-support__section-title {
  font-size: 36px;
  color: #8B0000; /* Dark red for main titles */
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700; /* Gold underline */
  border-radius: 2px;
}

.page-support__text-block {
  font-size: 18px;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-support a {
  color: #8B0000; /* Link color */
  text-decoration: none;
}

.page-support a:hover {
  text-decoration: underline;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure button responsiveness */
}

.page-support__btn-primary {
  background-color: #FFD700; /* Gold background */
  color: #8B0000; /* Dark red text */
  border: 2px solid #FFD700;
}

.page-support__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
}

.page-support__btn-secondary:hover {
  background-color: #FFD700;
  color: #8B0000;
}

.page-support__btn-link {
  background-color: transparent;
  color: #8B0000;
  border: none;
  padding: 0;
  font-size: 16px;
  font-weight: normal;
  text-decoration: underline;
}

.page-support__btn-link:hover {
  color: #FFD700;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-support__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-support__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-support__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-support__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  color: #FFD700; /* Gold title */
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

/* Overview Section */
.page-support__overview-section {
  background-color: #ffffff;
}

/* Channels Section */
.page-support__channels-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
}

.page-support__channels-section .page-support__section-title {
  color: #FFD700; /* Gold title on dark red background */
}

.page-support__channels-section .page-support__text-block {
  color: #f0f0f0;
}

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

.page-support__channel-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark red */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__channel-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.2);
}

.page-support__channel-icon {
  width: 100px;
  height: auto;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px; /* Added for image style */
}

.page-support__channel-title {
  font-size: 24px;
  color: #FFD700; /* Gold title */
  margin-bottom: 15px;
}

.page-support__channel-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-support__channel-card .page-support__btn-link {
  color: #FFD700;
}

.page-support__channel-card .page-support__btn-link:hover {
  color: #ffffff;
}

/* Guide Section */
.page-support__guide-section {
  background-color: #f8f8f8;
}

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

.page-support__guide-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
}

.page-support__guide-title {
  font-size: 22px;
  color: #8B0000;
  margin-bottom: 15px;
}

.page-support__guide-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
}

.page-support__faq-section .page-support__section-title {
  color: #FFD700; /* Gold title on dark red background */
}

.page-support__faq-section .page-support__text-block {
  color: #f0f0f0;
}

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.page-support__faq-item:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #FFD700; /* Gold question text */
}

.page-support__faq-question h3 {
  margin: 0;
  font-size: 20px;
  color: inherit;
}

.page-support__faq-toggle {
  font-size: 28px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFD700;
}

.page-support__faq-item.active .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Light text for answer */
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-support__faq-answer p {
  margin: 0;
  font-size: 16px;
  text-align: justify;
}

/* Notes Section */
.page-support__notes-section {
  background-color: #ffffff;
}

.page-support__notes-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-support__notes-item {
  background-color: #f8f8f8;
  border-left: 5px solid #FFD700; /* Gold accent */
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-support__notes-title {
  font-size: 20px;
  color: #8B0000;
  margin-bottom: 10px;
}

.page-support__notes-description {
  font-size: 16px;
  color: #555555;
}

/* Commitment Section */
.page-support__commitment-section {
  background-color: #8B0000; /* Dark red background */
  color: #ffffff;
}

.page-support__commitment-section .page-support__section-title {
  color: #FFD700; /* Gold title */
}

.page-support__commitment-section .page-support__text-block {
  color: #f0f0f0;
}

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

.page-support__commitment-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-support__commitment-card:hover {
  transform: translateY(-5px);
}

.page-support__commitment-title {
  font-size: 22px;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-support__commitment-description {
  font-size: 16px;
  color: #f0f0f0;
}

.page-support__commitment-image {
  display: block;
  margin: 40px auto 0;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Section */
.page-support__cta-section {
  background-color: #ffffff;
  text-align: center;
}

.page-support__cta-container {
  padding: 40px;
  border: 2px dashed #FFD700;
  border-radius: 10px;
}

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

/* Image responsive styles for all images */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents extra space below images */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 40px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
  .page-support__section-title {
    font-size: 30px;
  }
  .page-support__text-block {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile */
  .page-support__hero-section {
    height: 500px;
    padding-top: 0; /* Header offset is on main, not hero */
  }

  .page-support__hero-title {
    font-size: 32px;
  }
  .page-support__hero-description {
    font-size: 16px;
  }
  .page-support__hero-cta {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-support__channels-grid,
  .page-support__guide-grid,
  .page-support__notes-list,
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-support__faq-question {
    font-size: 18px;
    padding: 15px 20px;
  }
  .page-support__faq-question h3 {
    font-size: 18px;
  }
  .page-support__faq-answer {
    padding: 0 20px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 10px 20px;
  }

  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__cta-container {
    padding: 30px 20px;
  }

  /* Mobile image responsiveness */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/buttons/videos must be constrained */
  .page-support__section-padding > .page-support__container, /* Targets container within section-padding */
  .page-support__cta-container, /* Targets specific CTA container */
  .page-support__channels-grid, /* Grid containers */
  .page-support__guide-grid,
  .page-support__faq-list,
  .page-support__notes-list,
  .page-support__commitment-grid,
  .page-support__cta-buttons /* Flex/Grid containers for buttons */
  {
    padding-left: 15px !important; 
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden; /* Prevent horizontal scroll for content */
  }

  /* Override for general .page-support__container to ensure it doesn't get double padding */
  .page-support__container {
    padding-left: 0;
    padding-right: 0;
  }

  /* Ensure button text wraps */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support a[class*="btn"] {
    white-space: normal !important;
    word-wrap: break-word !important;
  }
}

@media (max-width: 480px) {
  .page-support__hero-title {
    font-size: 28px;
  }
  .page-support__hero-description {
    font-size: 15px;
  }
  .page-support__section-title {
    font-size: 24px;
  }
  .page-support__hero-section {
    height: 400px;
  }
}