/* Base styles for the page-support module */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main);
  background: var(--color-deep-navy);
}

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

.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  color: var(--color-text-main);
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-support__section-description {
  font-size: 18px;
  color: var(--color-text-secondary);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 10px; /* Minimal top padding, rely on body for header offset */
  padding-bottom: 60px;
}

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

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 20px;
  box-sizing: border-box;
}

.page-support__main-title {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-support__description {
  font-size: clamp(16px, 1.5vw, 20px);
  color: var(--color-text-secondary);
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* CTA Buttons */
.page-support__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-support__btn-secondary {
  background: var(--color-card-bg);
  color: var(--color-text-main);
  border: 2px solid var(--color-border);
  margin-left: 20px;
}

.page-support__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--color-deep-navy);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background: var(--color-deep-navy);
}

.page-support__faq-category {
  margin-bottom: 40px;
  background: var(--color-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.page-support__category-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-gold);
  text-align: left;
  margin-bottom: 25px;
  border-bottom: 2px solid var(--color-divider);
  padding-bottom: 15px;
}

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  overflow: hidden;
  background: var(--color-deep-navy);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

details.page-support__faq-item[open] {
  background: #0d203f;
  border-color: var(--color-primary);
}

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;
  background: var(--color-card-bg);
}

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: #152d50;
}

.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--color-text-main);
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--color-glow);
  flex-shrink: 0;
  margin-left: 20px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 25px;
  background: #0d203f;
  border-top: 1px solid var(--color-divider);
  border-radius: 0 0 8px 8px;
  color: var(--color-text-secondary);
  font-size: 16px;
}

.page-support__faq-answer p {
  margin: 15px 0 0;
}

/* Contact CTA Section */
.page-support__contact-cta-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(90deg, #113B7A 0%, #1D5FD1 100%);
}

.page-support__contact-cta-section .page-support__section-title,
.page-support__contact-cta-section .page-support__section-description {
  color: #ffffff;
}

/* General image styles */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
  border: none; /* Ensure no default borders */
  filter: none; /* Ensure no CSS filters are applied */
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__hero-section {
    min-height: 400px;
    padding-bottom: 40px;
  }

  .page-support__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }

  .page-support__description {
    font-size: clamp(15px, 1.4vw, 18px);
  }

  .page-support__section-title {
    font-size: 32px;
  }

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

  .page-support__faq-category {
    padding: 25px;
  }

  .page-support__category-title {
    font-size: 24px;
  }

  .page-support__faq-qtext {
    font-size: 17px;
  }

  .page-support__faq-toggle {
    font-size: 26px;
    margin-left: 15px;
  }

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px 20px;
  }

  .page-support__faq-answer {
    padding: 0 20px 20px;
  }

  .page-support__cta-button {
    padding: 12px 25px;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    min-height: 350px;
    padding-top: 10px; /* Consistent minimal top padding */
    padding-bottom: 30px;
  }

  .page-support__hero-image {
    object-fit: contain; /* Ensure image is fully visible on smaller screens */
  }

  .page-support__main-title {
    font-size: clamp(26px, 7vw, 40px);
    margin-bottom: 15px;
  }

  .page-support__description {
    font-size: 15px;
    margin-bottom: 30px;
  }

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

  .page-support__section-description {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .page-support__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__faq-section {
    padding: 40px 0;
  }

  .page-support__faq-category {
    padding: 20px;
    margin-bottom: 30px;
  }

  .page-support__category-title {
    font-size: 22px;
    padding-bottom: 10px;
    margin-bottom: 20px;
  }

  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }

  .page-support__faq-qtext {
    font-size: 16px;
  }

  .page-support__faq-toggle {
    font-size: 24px;
    margin-left: 10px;
    width: 24px;
    height: 24px;
  }

  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
    font-size: 14px;
  }

  /* Buttons responsive */
  .page-support__cta-button,
  .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__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }

  .page-support__button-group {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Placeholder media queries for other sections as per strict instructions, even if not present on this specific page */
  /* Banner __hero-section: 849px object-fit:contain;顶距约 10px，禁止 var(--header-offset) 双倍 */
  .page-support__hero-section .page-support__hero-image {
    object-fit: contain !important; /* Already covered by general img rule for max-width, but explicit for clarity */
  }

  /* Three-link buttons __access-links: 768px 单列、max-width:100% */
  /* This page does not have a dedicated __access-links section, but general button group rules apply */

  /* Five-entry __category-lobby: aspect-ratio:1/1;无 border/box-shadow;禁止图外可见文字 */
  /* This page does not have a dedicated __category-lobby section. */
  /* If it did, styles would be like: */
  /* .page-support__category-lobby__grid { grid-template-columns: repeat(2, 1fr); } */
  /* .page-support__category-card-link img { aspect-ratio: 1/1; width: 100%; object-fit: contain; border: none; box-shadow: none; } */

  /* Blog slider __blog-slider: 768px 单卡可见、箭头可点 */
  /* This page does not have a dedicated __blog-slider section. */
  /* If it did, styles would be like: */
  /* .page-support__blog-slider-track { scroll-snap-type: x mandatory; } */
  /* .page-support__post-item { flex: 0 0 100%; scroll-snap-align: start; } */
}