/* style/support-faq.css */
.page-support-faq {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #f0f0f0; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css (#000) */
}

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

/* Fixed header spacing for first content section */
.page-support-faq__hero-intro {
  padding-top: 120px; /* Desktop spacing for fixed header */
  padding-bottom: 60px;
  background: linear-gradient(135deg, #0A2463, #1A3A7A); /* Dark blue gradient */
  color: #ffffff;
  text-align: center;
}

.page-support-faq__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold color for main title */
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support-faq__intro-text {
  font-size: 1.15em;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

.page-support-faq__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05em;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.page-support-faq__btn--primary {
  background-color: #FFD700; /* Gold background */
  color: #0A2463; /* Dark blue text */
  border-color: #FFD700;
}

.page-support-faq__btn--primary:hover {
  background-color: #e6c200;
  border-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

.page-support-faq__btn--secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border-color: #FFD700;
}

.page-support-faq__btn--secondary:hover {
  background-color: rgba(255, 215, 0, 0.1);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.2);
}

.page-support-faq__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold color for section titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-support-faq__section-description {
  font-size: 1.05em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: -20px auto 50px auto;
}

.page-support-faq__faq-categories {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.4); /* Slightly transparent dark background */
}

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

.page-support-faq__category-card {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background */
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #f0f0f0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.page-support-faq__category-card:hover {
  background: rgba(255, 215, 0, 0.15);
  border-color: #FFD700;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.page-support-faq__category-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-support-faq__category-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-support-faq__category-text {
  font-size: 0.95em;
  color: #cccccc;
}

.page-support-faq__faq-list {
  padding: 60px 0;
  background-color: rgba(0, 0, 0, 0.6); /* Darker transparent background */
}

.page-support-faq__group-title {
  font-size: 2em;
  color: #FFD700;
  margin-top: 50px;
  margin-bottom: 30px;
  border-bottom: 2px solid rgba(255, 215, 0, 0.5);
  padding-bottom: 15px;
  text-align: left;
}

/* FAQ容器样式 */
.page-support-faq__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* 问题样式 */
.page-support-faq__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #0A2463; /* Dark blue background for question */
  border: 1px solid #1A3A7A;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support-faq__faq-question:hover {
  background: #1A3A7A;
  border-color: #FFD700;
}

.page-support-faq__faq-question:active {
  background: #2A4A8A;
}

/* 问题标题样式 */
.page-support-faq__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff; /* White text for question */
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-support-faq__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold color for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 20px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-support-faq__faq-item.active .page-support-faq__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg); /* Change to X or rotate */
}

/* FAQ默认状态 - 答案隐藏 */
.page-support-faq__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 25px;
  opacity: 0;
  background: #1A3A7A; /* Darker background for answer */
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-support-faq__faq-item.active .page-support-faq__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px 25px !important;
  opacity: 1;
  border-radius: 0 0 8px 8px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-support-faq__faq-answer p {
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-support-faq__faq-answer ol,
.page-support-faq__faq-answer ul {
  margin-left: 25px;
  margin-bottom: 1em;
  color: #f0f0f0;
}

.page-support-faq__faq-answer li {
  margin-bottom: 0.5em;
  color: #f0f0f0;
}

.page-support-faq__faq-answer a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-support-faq__contact-cta {
  padding: 80px 0;
  text-align: center;
  background-color: #0A2463; /* Main brand color for CTA */
  color: #ffffff;
}

.page-support-faq__dark-section .page-support-faq__section-title {
  color: #FFD700;
  text-shadow: none;
}

.page-support-faq__dark-section .page-support-faq__section-description {
  color: #f0f0f0;
}

.page-support-faq .text-highlight {
  color: #FFD700;
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support-faq__main-title {
    font-size: 2.8em;
  }

  .page-support-faq__section-title {
    font-size: 2em;
  }

  .page-support-faq__category-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
  }

  .page-support-faq__category-card {
    padding: 25px;
    min-height: 200px;
  }

  .page-support-faq__category-icon {
    width: 70px;
    height: 70px;
  }

  .page-support-faq__faq-question h3 {
    font-size: 1.1em;
  }

  .page-support-faq__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
    margin-left: 15px;
  }
}

@media (max-width: 768px) {
  .page-support-faq__hero-intro {
    padding-top: 100px; /* Mobile spacing for fixed header */
    padding-bottom: 40px;
  }

  .page-support-faq__main-title {
    font-size: 2.2em;
  }

  .page-support-faq__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  .page-support-faq__btn {
    padding: 12px 25px;
    font-size: 1em;
    width: 100%;
    max-width: 300px;
  }

  .page-support-faq__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }

  .page-support-faq__section-description {
    font-size: 0.95em;
    margin: -15px auto 30px auto;
  }

  .page-support-faq__category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .page-support-faq__category-card {
    padding: 20px;
    min-height: 180px;
  }

  .page-support-faq__category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .page-support-faq__category-title {
    font-size: 1.3em;
  }

  .page-support-faq__group-title {
    font-size: 1.6em;
    margin-top: 40px;
    margin-bottom: 20px;
    padding-bottom: 10px;
  }

  .page-support-faq__faq-question {
    padding: 15px 20px;
  }

  .page-support-faq__faq-question h3 {
    font-size: 1em;
  }

  .page-support-faq__faq-toggle {
    font-size: 22px;
    width: 26px;
    height: 26px;
    margin-left: 10px;
  }

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

  .page-support-faq__faq-item.active .page-support-faq__faq-answer {
    padding: 15px 20px !important;
  }

  .page-support-faq__faq-answer ol,
  .page-support-faq__faq-answer ul {
    margin-left: 20px;
  }

  .page-support-faq__contact-cta {
    padding: 60px 0;
  }

  /* Force responsive images */
  .page-support-faq img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support-faq__hero-intro .page-support-faq__container,
  .page-support-faq__faq-categories .page-support-faq__container,
  .page-support-faq__faq-list .page-support-faq__container,
  .page-support-faq__contact-cta .page-support-faq__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-support-faq__main-title {
    font-size: 1.8em;
  }

  .page-support-faq__section-title {
    font-size: 1.6em;
  }

  .page-support-faq__btn {
    font-size: 0.95em;
    padding: 10px 20px;
  }

  .page-support-faq__group-title {
    font-size: 1.4em;
  }

  .page-support-faq__faq-question h3 {
    font-size: 0.9em;
  }
}