/* style/support.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-light: #f8f9fa;
  --background-dark-card: rgba(38, 169, 224, 0.1); /* Slightly transparent primary color for cards on light bg */
  --btn-login-color: #EA7C07;
  --border-color: #e0e0e0;
}

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark); /* Default text color for light background */
  background-color: var(--secondary-color); /* Default white background */
}

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

.page-support__section {
  padding: 60px 0;
  background-color: var(--secondary-color); /* Default to white for sections */
}

.page-support__section:nth-of-type(even) {
  background-color: var(--background-light); /* Alternate background for better visual separation */
}

.page-support__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__section-intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background: linear-gradient(135deg, var(--primary-color), #5cc3f0); /* Gradient with primary color */
  color: var(--text-light);
}

.page-support__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  max-width: 800px; /* Constrain image width for better layout */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  filter: none; /* Ensure no CSS filter is used */
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

.page-support__hero-title {
  font-size: 48px;
  margin-bottom: 15px;
  line-height: 1.2;
  color: var(--text-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: var(--text-light);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.page-support__hero-cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-support__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 180px; /* Ensure buttons have a minimum width */
  text-align: center;
  max-width: 100%; /* Ensure buttons are responsive */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--btn-login-color); /* Use login color for primary action */
  color: var(--text-light);
  border: 2px solid var(--btn-login-color);
}

.page-support__btn-primary:hover {
  background: #d46f00; /* Darker version of #EA7C07 */
  border-color: #d46f00;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

.page-support__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* FAQ Section */
.page-support__faq-area {
  padding-bottom: 80px;
}

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

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

/* FAQ默认状态 - 答案隐藏 */
.page-support__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.3s ease;
  padding: 0 20px; /* Adjusted padding */
  opacity: 0;
  color: #444;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important; /* Adjusted padding */
  opacity: 1;
  background: var(--background-light);
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: var(--background-light);
  border-color: var(--primary-color);
}

.page-support__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--primary-color);
}

/* 切换图标 */
.page-support__faq-toggle {
  font-size: 28px; /* Slightly larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color); /* Use primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger toggle area */
  height: 32px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--btn-login-color); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-support__btn-link {
  display: inline-block;
  margin-top: 15px;
  padding: 8px 15px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.page-support__btn-link:hover {
  background-color: #1f8ec4; /* Darker version of #26A9E0 */
}

/* Quick Guides Section */
.page-support__quick-guides {
  background-color: var(--background-light);
}

.page-support__guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  justify-content: center;
}

.page-support__guide-card {
  background-color: var(--secondary-color);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: center;
  padding-bottom: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__guide-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__guide-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter is used */
}

.page-support__guide-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 0 20px 10px;
  min-height: 60px; /* Ensure consistent title height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-support__guide-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
  color: var(--btn-login-color);
}

.page-support__guide-description {
  font-size: 15px;
  color: #666;
  margin: 0 20px 20px;
  min-height: 80px; /* Ensure consistent description height */
}

.page-support__btn-small {
  display: inline-block;
  padding: 10px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-small:hover {
  background-color: #1f8ec4; /* Darker version of #26A9E0 */
}

/* Contact Info Section */
.page-support__contact-info {
  background-color: var(--secondary-color);
}

.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  justify-content: center;
}

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

.page-support__contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-support__contact-card img {
  
  
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: none; /* Ensure no CSS filter is used */
}

.page-support__contact-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-support__contact-description {
  font-size: 16px;
  color: #666;
  margin-bottom: 25px;
  min-height: 70px; /* Ensure consistent height */
}

/* Policies Section */
.page-support__policies {
  background-color: var(--background-light);
  padding-bottom: 80px;
}

.page-support__policy-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-support__policy-link {
  display: inline-block;
  padding: 12px 25px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__policy-link:hover {
  background-color: #1f8ec4; /* Darker version of #26A9E0 */
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__section-title {
    font-size: 32px;
  }
  .page-support__hero-title {
    font-size: 42px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile offset */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-support__hero-title {
    font-size: 36px;
  }
  .page-support__hero-description {
    font-size: 16px;
  }
  .page-support__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%;
  }
  .page-support__cta-button,
  .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-left: 15px;
    padding-right: 15px;
  }

  .page-support__section {
    padding: 40px 0;
  }
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* FAQ Mobile */
  .page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px);
  }
  .page-support__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }

  /* Guide Cards Mobile */
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__guide-card img {
    
  }
  .page-support__guide-title {
    font-size: 20px;
  }
  .page-support__guide-description {
    font-size: 14px;
  }
  .page-support__btn-small {
    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;
  }

  /* Contact Cards Mobile */
  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__contact-card {
    padding: 25px;
  }
  .page-support__contact-title {
    font-size: 22px;
  }
  .page-support__contact-description {
    font-size: 15px;
  }
  .page-support__contact-card .page-support__btn-primary {
    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;
  }

  /* Policy Links Mobile */
  .page-support__policy-links {
    flex-direction: column;
    gap: 10px;
  }
  .page-support__policy-link {
    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;
  }

  /* Global image responsive styles for mobile */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__faq-list,
  .page-support__guides-grid,
  .page-support__contact-methods,
  .page-support__policy-links {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Ensure all images are responsive by default */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Ensure no CSS filter is used */
.page-support img {
  filter: none !important;
}