/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Page Styling */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background: var(--secondary-color, #FFFFFF); /* Body background is light */
}

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

.page-support__section-title {
  font-size: 36px;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-support__item-title {
  font-size: 22px;
  color: #26A9E0;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 600;
}

.page-support__item-text {
  font-size: 16px;
  color: #333333;
  margin-bottom: 15px;
}

.page-support__card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.page-support__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 17px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap; /* Prevent text wrapping by default */
}

.page-support__btn-primary {
  background: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-support__btn-primary:hover {
  background: #1e87b6;
  border-color: #1e87b6;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87b6;
  border-color: #1e87b6;
  transform: translateY(-2px);
}

/* 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, #26A9E0 0%, #30baf2 100%); /* Blue gradient */
  color: #ffffff; /* White text for dark background */
  overflow: hidden; /* Ensure image doesn't overflow */
}

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

.page-support__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative; /* For image overlay effects if any */
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-support__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-support__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-support__hero-cta-buttons .page-support__cta-button {
  min-width: 180px;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
  background: var(--secondary-color, #FFFFFF); /* Light background */
}

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

.page-support__contact-item img {
  width: 100%;
  height: auto;
  max-width: 250px; /* Small icon size constraint */
  object-fit: contain;
  margin: 0 auto 15px;
  display: block;
}

.page-support__contact-item .page-support__item-title {
  color: #26A9E0;
  text-align: center;
}

.page-support__contact-item .page-support__item-text {
  text-align: center;
  flex-grow: 1; /* Make text take available space */
}

.page-support__contact-item .page-support__btn-primary,
.page-support__contact-item .page-support__btn-secondary {
  margin-top: auto; /* Push button to bottom */
  align-self: center;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0 0%, #1e87b6 100%); /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-support__faq-section .page-support__section-title {
  color: #ffffff;
}

.page-support__faq-section .page-support__section-description {
  color: #f0f0f0;
}

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

.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.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.4s ease;
  padding: 0 15px;
  opacity: 0;
  color: #333333; /* Dark text for answer content */
}

/* FAQ expanded state - 🚨 Use!important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* 🚨 Use!important to ensure priority, value large enough for any content */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

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

/* Question title style */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: #333333; /* Dark text for question title */
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-support__cta-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Guides Section */
.page-support__guides-section {
  padding: 80px 0;
  background: var(--secondary-color, #FFFFFF); /* Light background */
}

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

.page-support__guide-card .page-support__item-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__guide-card .page-support__item-title a:hover {
  color: #1e87b6;
  text-decoration: underline;
}

.page-support__guide-card .page-support__item-text {
  flex-grow: 1;
}

.page-support__guide-card .page-support__btn-secondary {
  align-self: flex-start;
  margin-top: auto;
}

/* Security Section */
.page-support__security-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #26A9E0 0%, #1e87b6 100%); /* Dark background */
  color: #ffffff;
}

.page-support__security-section .page-support__section-title {
  color: #ffffff;
}

.page-support__security-section .page-support__section-description {
  color: #f0f0f0;
}

.page-support__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-top: 40px;
}

.page-support__security-image {
  flex: 1;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__security-text {
  flex: 2;
}

.page-support__security-text .page-support__item-title {
  color: #ffffff;
}

.page-support__security-text .page-support__item-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-support__security-text .page-support__btn-primary,
.page-support__security-text .page-support__btn-secondary {
  margin-right: 15px;
  margin-bottom: 15px; /* For mobile stacking */
}

/* Latest News Section */
.page-support__latest-news-section {
  padding: 80px 0;
  background: var(--secondary-color, #FFFFFF); /* Light background */
}

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

.page-support__news-card .page-support__item-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__news-card .page-support__item-title a:hover {
  color: #1e87b6;
  text-decoration: underline;
}

.page-support__news-card .page-support__item-text {
  flex-grow: 1;
}

.page-support__news-date {
  font-size: 14px;
  color: #888888;
  margin-top: auto; /* Push date to bottom */
  display: block;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-support__hero-title {
    font-size: 38px;
  }
  .page-support__hero-description {
    font-size: 18px;
  }
  .page-support__section-title {
    font-size: 30px;
  }
  .page-support__item-title {
    font-size: 20px;
  }
  .page-support__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-support__security-image {
    max-width: 100%;
  }
  .page-support__security-text .page-support__btn-primary,
  .page-support__security-text .page-support__btn-secondary {
    margin-right: 10px;
  }
}

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

  /* Image responsiveness for all images in content area */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }
  /* Containers for images */
  .page-support__hero-image,
  .page-support__contact-item,
  .page-support__guide-card,
  .page-support__security-content,
  .page-support__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-support__contact-item img {
     /* Adjust max-width for smaller contact icons in mobile */
    margin-left: auto;
    margin-right: auto;
  }

  /* Button responsiveness */
  .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__hero-cta-buttons,
  .page-support__button-group,
  .page-support__btn-container,
  .page-support__security-text {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Adjust padding for containers */
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 15px;
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
  }
  .page-support__security-text .page-support__btn-primary,
  .page-support__security-text .page-support__btn-secondary {
    margin-right: 0;
    margin-bottom: 15px;
  }

  /* FAQ mobile */
  .page-support__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-support__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-support__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-support__faq-answer {
    padding: 0 15px;
  }
  .page-support__faq-item.active .page-support__faq-answer {
    padding: 15px !important;
  }
}