/* Base styles for page-support */
.page-support {
  background: #0D0E12;
  color: #FFF3E6;
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

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

.page-support__dark-section {
  background: #17191F;
}

.page-support__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: #FF8C1A;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-support__hero-section {
  padding-top: 10px; /* Adjusted for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%);
}

.page-support__hero-image {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

.page-support__main-title {
  color: #FFB04D;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: 700;
}

.page-support__hero-description {
  font-size: 1.15em;
  margin-bottom: 30px;
  color: #FFF3E6;
}

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

.page-support__cta-buttons--center {
  margin-top: 40px;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(255, 132, 26, 0.4);
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-support__btn-secondary:hover {
  background: #2a2d36;
  color: #FFB04D;
}

/* FAQ Section */
.page-support__faq-overview {
  background: #0D0E12;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #A84F0C;
  overflow: hidden;
  background: #17191F;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

details.page-support__faq-item summary.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
}

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

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

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

details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #0D0E12;
  border-radius: 0 0 8px 8px;
  color: #FFF3E6;
  font-size: 16px;
  line-height: 1.8;
}

/* Guide Section */
.page-support__guide-section {
  background: #17191F;
}

.page-support__guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-support__guide-card {
  background: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__guide-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-support__guide-card .page-support__card-title {
  font-size: 22px;
  color: #FFB04D;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-support__guide-card p {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-support__guide-card .page-support__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto;
  max-width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-support__guide-card .page-support__card-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Contact Section */
.page-support__contact-section {
  background: #0D0E12;
}

.page-support__contact-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-support__contact-card {
  background: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__contact-card .page-support__contact-title {
  font-size: 24px;
  color: #FFB04D;
  margin-bottom: 15px;
}

.page-support__contact-card p {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__contact-card .page-support__btn-primary,
.page-support__contact-card .page-support__btn-secondary {
  max-width: calc(100% - 0px);
  margin-left: auto;
  margin-right: auto;
}

/* Commitment Section */
.page-support__commitment-section {
  background: #17191F;
}

.page-support__commitment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-support__commitment-card {
  background: #0D0E12;
  border: 1px solid #A84F0C;
  border-radius: 10px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__commitment-card img {
  width: 100%;
  
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-support__commitment-card .page-support__card-title {
  font-size: 22px;
  color: #FFB04D;
  margin-bottom: 15px;
  padding: 0 15px;
}

.page-support__commitment-card p {
  font-size: 16px;
  color: #FFF3E6;
  margin-bottom: 25px;
  padding: 0 15px;
  flex-grow: 1;
}

.page-support__commitment-card .page-support__card-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin-top: auto;
  max-width: calc(100% - 30px);
  margin-left: 15px;
  margin-right: 15px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-support__commitment-card .page-support__card-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Conclusion Section */
.page-support__conclusion-section {
  background: #0D0E12;
  padding-bottom: 80px;
}

/* Image global styles for content area */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__section {
    padding: 50px 0;
  }
  .page-support__section-title {
    font-size: clamp(26px, 3.5vw, 34px);
  }
  .page-support__section-description {
    font-size: 17px;
  }
  .page-support__hero-image img {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Reset aspect ratio for better fit */
  }
  .page-support__hero-content {
    padding: 30px 15px;
  }
  .page-support__faq-qtext {
    font-size: 17px;
  }
  .page-support__guide-card img,
  .page-support__commitment-card img {
    
  }
}

@media (max-width: 768px) {
  .page-support__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-support__section {
    padding: 40px 0;
  }

  .page-support__section-title {
    font-size: clamp(24px, 6vw, 30px);
    margin-bottom: 15px;
  }

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

  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Small top padding */
  }
  .page-support__hero-image {
    max-height: 400px;
  }
  .page-support__hero-image img {
    object-fit: contain !important; /* Force contain */
    aspect-ratio: unset !important; /* Reset aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__hero-content {
    padding: 25px 15px;
  }
  .page-support__main-title {
    font-size: clamp(28px, 8vw, 36px);
  }
  .page-support__hero-description {
    font-size: 1em;
  }

  /* 按钮与按钮容器 */
  .page-support__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }
  .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;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
    margin: 0 auto; /* Center buttons if not full width */
  }

  /* FAQ Section */
  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;
    width: 24px;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
    font-size: 15px;
  }

  /* Guide Section */
  .page-support__guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__guide-card img {
    
  }
  .page-support__guide-card .page-support__card-title {
    font-size: 20px;
  }
  .page-support__guide-card p {
    font-size: 15px;
  }
  .page-support__guide-card .page-support__card-button {
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    padding: 10px 15px;
  }

  /* Contact Section */
  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__contact-card .page-support__contact-title {
    font-size: 22px;
  }
  .page-support__contact-card p {
    font-size: 15px;
  }

  /* Commitment Section */
  .page-support__commitment-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__commitment-card img {
    
  }
  .page-support__commitment-card .page-support__card-title {
    font-size: 20px;
  }
  .page-support__commitment-card p {
    font-size: 15px;
  }
  .page-support__commitment-card .page-support__card-button {
    max-width: calc(100% - 30px) !important;
    width: calc(100% - 30px) !important;
    padding: 10px 15px;
  }

  /* General images and containers 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__hero-section,
  .page-support__faq-overview,
  .page-support__guide-section,
  .page-support__contact-section,
  .page-support__commitment-section,
  .page-support__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
}