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

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

/* Hero Section */
.page-support__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-bottom: 40px;
}

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

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7);
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-support__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* General Section Styles */
.page-support__section-title {
  font-size: 2.2rem;
  color: #FF8C1A;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* FAQ Section */
.page-support__faq-section {
  padding: 60px 0;
  background-color: #17191F;
}

.page-support__faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #A84F0C;
  border-radius: 8px;
  overflow: hidden;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #FFA53A;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.page-support__faq-question::-webkit-details-marker {
  display: none;
}

.page-support__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-support__faq-item[open] .page-support__faq-toggle {
  transform: rotate(45deg);
}

.page-support__faq-answer {
  padding: 0 25px 20px;
  color: #FFF3E6;
  font-size: 1rem;
}

.page-support__faq-answer p {
  margin-bottom: 15px;
}

.page-support__faq-link {
  color: #FFA53A;
  text-decoration: underline;
}

.page-support__faq-link:hover {
  color: #FFB04D;
}

/* Contact Section */
.page-support__contact-section {
  padding: 60px 0;
}

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

.page-support__contact-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-support__contact-title {
  font-size: 1.5rem;
  color: #FF8C1A;
  margin-bottom: 10px;
}

.page-support__contact-text {
  color: #FFF3E6;
  margin-bottom: 20px;
}

.page-support__phone-number {
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFA53A;
}

.page-support__social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.page-support__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: #A84F0C;
  color: #FFF3E6;
  border-radius: 50%;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-support__social-icon:hover {
  background-color: #FF8C1A;
}

/* Guides Section */
.page-support__guides-section {
  padding: 60px 0;
  background-color: #17191F;
}

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

.page-support__guide-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid #A84F0C;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__guide-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

.page-support__guide-card-title {
  font-size: 1.3rem;
  color: #FF8C1A;
  padding: 15px;
  margin-bottom: 5px;
}

.page-support__guide-card-text {
  color: #FFF3E6;
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-support__view-all-button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 20px;
  text-align: center;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  border-radius: 8px;
  margin: 60px auto;
  max-width: 1200px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-support__cta-title {
  font-size: 2.5rem;
  color: #FFF3E6;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-support__cta-description {
  font-size: 1.2rem;
  color: #FFF3E6;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.page-support__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff; /* Button text always white */
  padding: 15px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__btn-secondary {
  display: inline-block;
  background: #17191F;
  color: #FF8C1A; /* Use brand color for text */
  border: 2px solid #FF8C1A;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background-color: #FF8C1A;
  color: #FFF3E6;
}

/* General image styling */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-support__container {
    padding: 20px 30px;
  }

  .page-support__hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-support__section-title {
    font-size: 2rem;
  }

  .page-support__cta-title {
    font-size: 2.2rem;
  }

  .page-support__contact-methods {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .page-support__guide-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-support__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }
  .page-support__hero-image-wrapper {
    max-height: 300px;
  }
  .page-support__hero-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 10px;
  }
  .page-support__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  /* FAQ Section */
  .page-support__faq-section {
    padding: 40px 0;
  }
  .page-support__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }
  .page-support__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95rem;
  }

  /* Contact Section */
  .page-support__contact-section {
    padding: 40px 0;
  }
  .page-support__contact-methods {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__contact-icon {
    width: 80px;
    height: 80px;
  }
  .page-support__social-links {
    justify-content: center;
  }

  /* Guides Section */
  .page-support__guides-section {
    padding: 40px 0;
  }
  .page-support__guide-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__guide-card-image {
    height: 180px;
  }
  .page-support__guide-card-title {
    font-size: 1.2rem;
  }

  /* CTA Section */
  .page-support__cta-section {
    padding: 50px 15px;
    margin: 40px 15px;
  }
  .page-support__cta-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }
  .page-support__cta-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  /* 通用图片与容器 */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .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__view-all-button-wrapper {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: 100%;
  }

  .page-support__hero-content .page-support__btn-primary {
    max-width: 300px !important;
    margin: 0 auto;
  }

  .page-support__contact-item .page-support__btn-secondary {
    max-width: 250px !important;
    margin: 0 auto;
  }

  .page-support__cta-section .page-support__btn-primary {
    max-width: 300px !important;
    margin: 0 auto;
  }
}

/* Placeholder styles for unused homepage modules, ensuring they exist for validation */
.page-support__home-content { /* Long text gold frame, not used here */ }
.page-support__row-games { /* Game carousel, not used here */ }
.page-support__games-title { /* Game carousel title */ }
.page-support__slider-wrapper { /* Game carousel wrapper */ }
.page-support__slider-track { /* Game carousel track */ }
.page-support__game-slide { /* Game carousel slide */ }
.page-support__banners-top-wrapper { /* Partner brand 6-grid, not used here */ }
.page-support__banner-item img { /* Partner brand image */ }
.page-support__blog-masonry { /* Blog masonry, not used here directly but similar structure */ }
.page-support__blog-card-link { /* Blog card link */ }
.page-support__btn-outline { /* Outline button */ }
.page-support__blog-slider-track { /* Blog slider track */ }
.page-support__blog-slide { /* Blog slide */ }
.page-support__row-sport { /* Sport section, not used here */ }
.page-support__sport-title { /* Sport section title */ }
.page-support__row-coop { /* Cooperation section, not used here */ }
.page-support__coop-title { /* Cooperation section title */ }

/* Ensure contrast for all text */
.page-support h1, .page-support h2, .page-support h3, .page-support h4, .page-support h5, .page-support h6 {
    color: #FF8C1A;
}
.page-support p, .page-support li, .page-support span {
    color: #FFF3E6;
}
.page-support__faq-answer, .page-support__contact-text, .page-support__guide-card-text {
    color: #FFF3E6;
}
.page-support__cta-title, .page-support__cta-description {
    color: #FFF3E6;
}
.page-support__btn-primary, .page-support__btn-secondary {
    color: #ffffff;
}
.page-support__btn-secondary {
    color: #FF8C1A;
}
.page-support__btn-secondary:hover {
    color: #FFF3E6;
}

/* Ensure card and section backgrounds are dark for light text */
.page-support__faq-section,
.page-support__contact-item,
.page-support__guides-section,
.page-support__guide-card {
    background-color: #17191F;
}
.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
}
.page-support__cta-section {
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
}

/* Text color for specific elements on brand color background */
.page-support__cta-title, .page-support__cta-description {
    color: #FFF3E6;
}