/* General Styling for the Support Page */
.page-support {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main, #FFF3E6); /* Default text color for dark background */
  background-color: var(--bg-color, #0D0E12); /* Default background color */
}

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

.page-support__dark-bg {
  background-color: var(--bg-color, #0D0E12);
  color: var(--text-main, #FFF3E6);
}

.page-support__light-bg {
  background-color: #f9f9f9; /* A light background for contrast */
  color: #333333;
}

.page-support__dark-section {
  background-color: var(--card-bg, #17191F); /* Using card background for dark sections */
  color: var(--text-main, #FFF3E6);
  padding: 60px 0;
}

/* Hero Section */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding as body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  display: flex;
  flex-direction: column; /* Image above text block */
  align-items: center;
  background-color: var(--bg-color, #0D0E12); /* Ensure background for the whole section */
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
  margin-bottom: 30px; /* Space between image and text */
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-support__hero-content {
  max-width: 900px;
  padding-top: 0;
  color: #ffffff; /* Ensure text is white on the dark background */
}

.page-support__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff; /* White text for contrast on darkened hero image */
  line-height: 1.2;
}

.page-support__intro-text {
  font-size: 18px;
  margin-bottom: 30px;
  color: #f0f0f0; /* Slightly off-white */
}

/* Section Titles and Descriptions */
.page-support__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 15px;
  text-align: center;
  color: inherit; /* Inherit from parent for contrast */
}

.page-support__section-description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: inherit; /* Inherit from parent for contrast */
}

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

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

.page-support__btn-primary {
  background: linear-gradient(180deg, var(--aux-color, #FFA53A) 0%, var(--deep-orange, #D96800) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--main-color, #FF8C1A);
  border: 2px solid var(--main-color, #FF8C1A);
  box-shadow: 0 4px 10px rgba(255, 140, 26, 0.2);
}

.page-support__btn-secondary:hover {
  background: var(--main-color, #FF8C1A);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(255, 140, 26, 0.4);
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 60px 0;
}

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

/* Cards (general style for contact methods, solutions, resources) */
.page-support__card {
  background: var(--card-bg, #17191F);
  color: var(--text-main, #FFF3E6);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.page-support__card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  display: block; /* Ensure no extra space below image */
}

.page-support__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--glow, #FFB04D); /* Use a distinct color for card titles */
}

.page-support__card-text {
  font-size: 16px;
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to take available space */
}

.page-support__card .page-support__btn-primary {
  width: 100%;
  margin-top: auto; /* Push button to bottom */
}

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

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #A84F0C);
  overflow: hidden;
  background: var(--card-bg, #17191F);
  color: var(--text-main, #FFF3E6);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
details.page-support__faq-item summary.page-support__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-weight: bold;
}
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: rgba(255, 140, 26, 0.1); /* Light hover effect */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main, #FFF3E6);
}
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow, #FFB04D);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 140, 26, 0.05); /* Slightly lighter background for answer */
  border-top: 1px solid rgba(255, 140, 26, 0.2);
  border-radius: 0 0 8px 8px;
}
.page-support__faq-answer p {
  font-size: 16px;
  color: #e0e0e0; /* Lighter text for answer */
}

.page-support__faq-cta {
  margin-top: 50px;
}

/* Problem Solving Section */
.page-support__problem-solving {
  padding: 60px 0;
}

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

.page-support__solution-card {
  /* Inherits from .page-support__card */
  background: #ffffff; /* White card background for light section */
  color: #333333;
  border: 1px solid #e0e0e0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__solution-card .page-support__card-title {
  color: var(--main-color, #FF8C1A); /* Brand color for titles in light cards */
}

.page-support__solution-card .page-support__card-text {
  color: #555555;
}

/* Additional Resources Section */
.page-support__additional-resources {
  padding: 60px 0;
}

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

.page-support__resource-item {
  /* Inherits from .page-support__card */
}

.page-support__resource-item .page-support__btn-secondary {
  width: 100%;
}

/* Call to Action Section */
.page-support__call-to-action {
  padding: 80px 0;
  text-align: center;
}

/* Responsive Design */
/* Tablet and smaller desktops */
@media (max-width: 1024px) {
  .page-support__main-title {
    font-size: 40px;
  }
  .page-support__intro-text {
    font-size: 17px;
  }
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__section-description {
    font-size: 16px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
  }
}

/* Mobile Devices (max-width: 768px) - MUST include all required blocks */
@media (max-width: 768px) {
  /* General containers for mobile */
  .page-support__container,
  .page-support__hero-content,
  .page-support__contact-methods,
  .page-support__faq-section,
  .page-support__problem-solving,
  .page-support__additional-resources,
  .page-support__call-to-action {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-support__hero-image-wrapper {
    max-height: 300px;
    margin-bottom: 20px;
  }
  .page-support__hero-image {
    object-fit: contain !important;
    aspect-ratio: unset !important;
    height: auto !important;
    filter: brightness(0.8);
  }
  .page-support__main-title {
    font-size: clamp(28px, 8vw, 36px);
    margin-bottom: 15px;
  }
  .page-support__intro-text {
    font-size: 15px;
    margin-bottom: 25px;
  }

  /* 通用图片与容器 */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  .page-support__card img {
    
    object-fit: contain;
  }

  /* 按钮与按钮容器 */
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    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: 16px !important;
  }

  /* 产品展示图区域 (General grids for cards) */
  .page-support__methods-grid,
  .page-support__solution-grid,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    overflow-x: hidden;
  }
  .page-support__card {
    padding: 25px;
  }
  .page-support__card-title {
    font-size: 20px;
  }
  .page-support__card-text {
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 (Section titles and descriptions) */
  .page-support__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 10px;
  }
  .page-support__section-description {
    font-size: 15px;
    margin: 0 auto 30px auto;
  }

  /* FAQ Section */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px 20px;
  }
  .page-support__faq-qtext {
    font-size: 15px;
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 20px 15px;
  }
  .page-support__faq-answer p {
    font-size: 14px;
  }
  .page-support__faq-cta {
    margin-top: 30px;
  }
}