/* -------------------------------------------------------------------------- */
/*                              Base & Utilities                              */
/* -------------------------------------------------------------------------- */
.page-support {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
}

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

.page-support__section {
  padding: 60px 0;
  text-align: center;
}

.page-support__dark-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-description,
.page-support__dark-section .page-support__card-title {
  color: #ffffff;
}

.page-support__section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-support__section-description {
  font-size: clamp(16px, 2vw, 18px);
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

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

/* -------------------------------------------------------------------------- */
/*                                 Hero Section                               */
/* -------------------------------------------------------------------------- */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 60px;
  background: #26A9E0;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-support__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
}

.page-support__hero-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  max-height: 600px;
}

.page-support__hero-content {
  max-width: 900px;
  padding: 40px 20px 0;
}

.page-support__hero-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-support__hero-description {
  font-size: clamp(18px, 2.5vw, 20px);
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-support__btn-primary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

/* -------------------------------------------------------------------------- */
/*                                 Card Styles                                */
/* -------------------------------------------------------------------------- */
.page-support__card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #333333;
  height: 100%;
  box-sizing: border-box;
}

.page-support__dark-section .page-support__card {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.page-support__dark-section .page-support__card-title {
  color: #ffffff;
}

.page-support__card img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure images take full width of card */
  min-height: 200px;
}

.page-support__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-support__card-text {
  font-size: 16px;
  color: #555555;
  flex-grow: 1;
}

.page-support__dark-section .page-support__card-text {
  color: #f0f0f0;
}

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

.page-support__service-item .page-support__btn-primary {
  margin-top: 20px;
  width: auto;
  align-self: flex-start;
}

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

.page-support__contact-item .page-support__btn-primary {
  margin-top: 20px;
  width: auto;
  align-self: flex-start;
  background: #ffffff;
  color: #26A9E0;
  border-color: #ffffff;
}

.page-support__contact-item .page-support__btn-primary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  border-color: #f0f8ff;
}

/* -------------------------------------------------------------------------- */
/*                                    FAQ Section                             */
/* -------------------------------------------------------------------------- */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  text-align: left;
}

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;
}

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

.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #26A9E0;
}

.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 25px;
  background: #f9f9f9;
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #555555;
}

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

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

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

.page-support__commitment-item .page-support__card-title {
  color: #ffffff;
}

.page-support__commitment-item .page-support__card-text {
  color: #f0f0f0;
}

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

/* -------------------------------------------------------------------------- */
/*                                Conclusion Section                          */
/* -------------------------------------------------------------------------- */
.page-support__conclusion-cta {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------------- */
/*                                 Responsive Design                          */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .page-support__section {
    padding: 40px 0;
  }

  .page-support__container {
    padding: 0 15px;
  }

  .page-support__hero-title {
    font-size: clamp(30px, 4.5vw, 42px);
  }

  .page-support__hero-description {
    font-size: clamp(16px, 2.2vw, 18px);
  }

  .page-support__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }

  .page-support__section-description {
    font-size: clamp(15px, 1.8vw, 17px);
  }

  .page-support__card-title {
    font-size: 20px;
  }

  .page-support__card-text {
    font-size: 15px;
  }

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

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

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

@media (max-width: 768px) {
  /* 1. HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-support__hero-image img {
    object-fit: contain !important; /* Prevent cropping */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-height: 400px; /* Adjust max height for mobile */
  }

  .page-support__hero-content {
    padding: 30px 15px 0;
  }

  .page-support__hero-title {
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-support__hero-description {
    font-size: clamp(15px, 4vw, 17px);
  }

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

  /* 2. 产品展示图区域 (General Grid Layouts) */
  .page-support__services-grid,
  .page-support__contact-grid,
  .page-support__commitment-grid,
  .page-support__tips-grid {
    grid-template-columns: 1fr; /* Single column for all grids */
    gap: 20px;
  }

  /* Ensure no horizontal overflow */
  .page-support__section {
    overflow-x: hidden;
    padding: 30px 0;
  }

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

  /* 3. 装饰主标题 + 长文 SEO 区 */
  .page-support__section-title {
    font-size: clamp(24px, 7vw, 30px);
    margin-bottom: 15px;
    line-height: 1.3;
  }

  .page-support__section-description {
    font-size: clamp(14px, 4vw, 16px);
    margin-bottom: 30px;
    padding: 0 10px; /* Add horizontal padding to description */
  }

  /* 4. 通用图片与容器 */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Ensure minimum size */
    object-fit: cover;
  }

  .page-support__card {
    padding: 20px;
    border-radius: 8px;
  }

  .page-support__card-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .page-support__card-text {
    font-size: 14px;
  }

  /* FAQ specific mobile styles */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }

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

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

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

  /* 5. 按钮与按钮容器 */
  .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 15px;
    font-size: 16px;
  }

  .page-support__hero-buttons,
  .page-support__conclusion-cta {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }

  .page-support__hero-buttons a, .page-support__conclusion-cta a {
    width: 100% !important;
  }
}