/* style/support.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */
.page-support {
  background-color: #B71C1C; /* Custom background color */
  color: #FFF5E1; /* Custom main text color for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  text-align: center;
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1200px; /* Match container width */
  margin-bottom: 30px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__hero-content {
  max-width: 900px;
}

.page-support__main-title {
  color: #FFCC66; /* Glow color for main title */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 4vw, 3.2rem); /* Adjusted clamp for desktop H1 */
}

.page-support__hero-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #FFF5E1;
}

/* CTA Buttons */
.page-support__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure button doesn't overflow on mobile */
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button gradient */
  color: #7A0E0E; /* Deep Red for text on gold button */
  border: 2px solid #F4D34D; /* Gold border */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-support__btn-secondary:hover {
  background-color: #F4D34D;
  color: #7A0E0E; /* Deep Red text on hover */
}

.page-support__btn-small {
  padding: 8px 20px;
  font-size: 0.9em;
}

.page-support__text-link {
  color: #F4D34D; /* Gold color for text links */
  text-decoration: underline;
}

.page-support__text-link:hover {
  color: #FFCC66; /* Lighter gold on hover */
}

/* Section Titles & Descriptions */
.page-support__section-title {
  color: #FFCC66; /* Glow color for section titles */
  text-align: center;
  margin-top: 50px;
  margin-bottom: 20px;
  font-size: 2.2em;
  font-weight: bold;
}

.page-support__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #FFF5E1;
  font-size: 1.05em;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG color for dark section */
}

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

.page-support__faq-item {
  background-color: #C91F17; /* Main brand color for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #FFF5E1;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  color: #F4D34D; /* Gold for questions */
  background-color: #7A0E0E; /* Deep Red for question background */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-question:hover {
  background-color: #C91F17;
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #FFCC66; /* Glow color for toggle */
}

.page-support__faq-item[open] .page-support__faq-toggle {
  content: "−";
}

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  line-height: 1.7;
  color: #FFF5E1;
  background-color: #C91F17; /* Main brand color for answer background */
}

/* Guides Section */
.page-support__guides-section {
  padding: 60px 0;
}

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

.page-support__guide-card {
  background-color: #D32F2F; /* Card BG color */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__guide-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency, will be auto on mobile */
  object-fit: cover;
  margin-bottom: 20px;
  display: block; /* Ensure it behaves like a block element */
}

.page-support__guide-card-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow color for card titles */
  padding: 0 15px;
}

.page-support__guide-card-title a {
  color: inherit;
  text-decoration: none;
}

.page-support__guide-card-title a:hover {
  text-decoration: underline;
}

.page-support__guide-card-text {
  font-size: 0.95em;
  color: #FFF5E1;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Push button to bottom */
}

/* Contact Section */
.page-support__contact-section {
  padding: 60px 0;
  background-color: #D32F2F; /* Card BG color for dark section */
}

.page-support__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.page-support__contact-item {
  background-color: #C91F17; /* Main brand color for contact items */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 30px 20px;
  color: #FFF5E1;
}

.page-support__contact-icon {
  width: 200px; /* Min width 200px for display */
  height: 150px; /* Min height 200px, adjusted for aspect ratio */
  object-fit: contain;
  margin: 0 auto 20px auto; /* Center icon */
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  display: block;
}

.page-support__contact-item-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow color for titles */
}

.page-support__contact-item-text {
  font-size: 0.95em;
  margin-bottom: 25px;
}

/* Commitment Section */
.page-support__commitment-section {
  padding: 60px 0;
}

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

.page-support__commitment-item-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #FFCC66; /* Glow color for titles */
}

.page-support__commitment-item-text {
  color: #FFF5E1;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

  .page-support__main-title {
    font-size: clamp(2rem, 4.5vw, 2.8rem); /* Adjust clamp for tablet H1 */
  }

  .page-support__section-title {
    font-size: 1.8em;
  }

  .page-support__guide-card-image {
    height: 180px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Ensure small top padding */
  }

  .page-support__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem); /* Adjust clamp for mobile H1 */
  }

  .page-support__hero-description,
  .page-support__section-description,
  .page-support__guide-card-text,
  .page-support__contact-item-text,
  .page-support__commitment-item-text,
  .page-support p,
  .page-support li {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-support__faq-section,
  .page-support__guides-section,
  .page-support__contact-section,
  .page-support__commitment-section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px; /* Add padding to container on mobile */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__guide-cards,
  .page-support__contact-grid,
  .page-support__commitment-list {
    grid-template-columns: 1fr; /* Single column on mobile */
  }

  .page-support__guide-card-image,
  .page-support__contact-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important; /* Auto height for responsive images */
  }

  /* General image responsive rules */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos/buttons */
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__hero-image-wrapper,
  .page-support__guide-card,
  .page-support__contact-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent overflow */
  }

  /* Video responsive rules (if video were present) */
  .page-support video,
  .page-support__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-support__video-section,
  .page-support__video-container,
  .page-support__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-support__video-section {
    padding-top: 10px !important;
  }

  /* Ensure no filter on images */
  .page-support img {
    filter: none !important;
  }
}