.page-support {
  color: #FFF1E8; /* Text Main */
  background-color: #140C0C; /* Body background color from shared.css */
  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-color: #2A1212; /* Card BG, used for sections to provide contrast */
}

.page-support__section-title {
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 30px;
  color: #F3C54D; /* Gold */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-support__text-block {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 20px;
  line-height: 1.8;
  color: #FFF1E8; /* Text Main */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #140C0C;
}

.page-support__hero-image-wrapper {
    width: 100%;
    height: 500px; /* Fixed height for desktop hero image */
    overflow: hidden;
    position: relative;
    margin-bottom: 30px;
}

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

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

.page-support__main-title {
  font-size: clamp(32px, 4vw, 56px); /* Responsive H1 font size */
  font-weight: 800;
  color: #FFB04A; /* Gold gradient start */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.7);
}

.page-support__description {
  font-size: clamp(16px, 1.8vw, 20px);
  margin-bottom: 40px;
  color: #FFF1E8;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-support__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
}

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link,
.page-support__btn-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-support__btn-primary {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%); /* Button gradient */
  color: #140C0C; /* Dark text for light button */
  border: none;
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.4);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.6);
}

.page-support__btn-secondary {
  background: transparent;
  color: #FFB04A; /* Gold text */
  border: 2px solid #FFB04A; /* Gold border */
  box-shadow: 0 4px 15px rgba(255, 176, 74, 0.2);
}

.page-support__btn-secondary:hover {
  background: #FFB04A;
  color: #140C0C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 176, 74, 0.4);
}

.page-support__btn-link {
  background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  color: #140C0C;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  border-radius: 5px;
  margin-top: 15px;
  box-shadow: 0 2px 8px rgba(255, 176, 74, 0.3);
}

.page-support__btn-link:hover {
  background: linear-gradient(180deg, #D86A14 0%, #FFB04A 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(255, 176, 74, 0.5);
}

.page-support__btn-large {
    padding: 18px 40px;
    font-size: 20px;
    margin-top: 40px;
}

/* Intro Section */
.page-support__intro-section {
  background-color: #140C0C;
}
.page-support__intro-section .page-support__text-block {
    color: #FFF1E8;
}

/* FAQ Section */
.page-support__faq-section {
  background-color: #2A1212; /* Card BG */
  position: relative;
  padding-bottom: 100px; /* Space for image */
}
.page-support__faq-section .page-support__text-block {
    color: #FFF1E8;
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #6A1E1E; /* Border color */
  overflow: hidden;
  background: #2A1212; /* Card BG */
  color: #FFF1E8; /* Text Main */
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
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;
  background-color: #C61F1F; /* Main color for question background */
  color: #FFF1E8;
}
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-color: #E53030; /* Auxiliary color on hover */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF1E8;
}
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F3C54D; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #2A1212; /* Card BG */
  border-radius: 0 0 5px 5px;
  color: #FFF1E8;
  font-size: 16px;
  line-height: 1.7;
}
.page-support__faq-image {
    position: absolute;
    bottom: -50px;
    right: 0;
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}

/* Guide Section */
.page-support__guide-section {
  background-color: #140C0C;
}
.page-support__guide-section .page-support__text-block {
    color: #FFF1E8;
}

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

.page-support__guide-card {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF1E8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-support__guide-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-support__guide-card-text {
  font-size: 16px;
  color: #FFF1E8;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}
.page-support__guide-image {
    width: 600px;
    height: 450px;
    object-fit: contain;
    margin-top: 60px;
    opacity: 0.3;
}

/* Contact Section */
.page-support__contact-section {
  background-color: #2A1212; /* Card BG */
  position: relative;
  padding-bottom: 100px;
}
.page-support__contact-section .page-support__text-block {
    color: #FFF1E8;
}

.page-support__contact-channels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}

.page-support__channel-item {
  background-color: #C61F1F; /* Main color */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.4);
  color: #FFF1E8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-support__channel-title {
  font-size: 24px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 15px;
}

.page-support__channel-description {
  font-size: 16px;
  color: #FFF1E8;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}
.page-support__contact-image {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 400px;
    height: 300px;
    object-fit: contain;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}


/* Security Section */
.page-support__security-section {
  background-color: #140C0C;
}
.page-support__security-section .page-support__text-block {
    color: #FFF1E8;
}

.page-support__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 40px auto;
}

.page-support__feature-item {
  background-color: #2A1212; /* Card BG */
  border: 1px solid #6A1E1E;
  border-radius: 10px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 3px 15px rgba(0,0,0,0.3);
  color: #FFF1E8;
}

.page-support__feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #F3C54D; /* Gold */
  margin-bottom: 10px;
}

.page-support__feature-description {
  font-size: 15px;
  color: #FFF1E8;
  line-height: 1.6;
}

/* Explore Games Section */
.page-support__explore-games-section {
  background-color: #2A1212; /* Card BG */
}
.page-support__explore-games-section .page-support__text-block {
    color: #FFF1E8;
}

.page-support__game-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 40px auto;
  max-width: 1000px;
}

.page-support__category-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background-color: #C61F1F; /* Main color */
  border-radius: 10px;
  text-decoration: none;
  color: #FFF1E8;
  font-weight: 600;
  font-size: 16px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.3);
}

.page-support__category-link:hover {
  transform: translateY(-5px);
  background-color: #E53030; /* Auxiliary color */
}

.page-support__category-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-support__container {
    padding: 15px;
  }
  .page-support__section-title {
    font-size: 34px;
  }
  .page-support__text-block {
    font-size: 17px;
  }
  .page-support__hero-image-wrapper {
    height: 400px;
  }
  .page-support__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-support__description {
    font-size: clamp(15px, 1.8vw, 18px);
  }
  .page-support__faq-image,
  .page-support__contact-image {
      width: 300px;
      height: 225px;
      bottom: -30px;
  }
  .page-support__faq-section,
  .page-support__contact-section {
      padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
  }
  .page-support__hero-image-wrapper {
    height: auto !important;
    margin-bottom: 20px;
  }
  .page-support__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
    width: 100% !important;
    height: auto !important;
  }
  .page-support__main-title {
    font-size: clamp(24px, 8vw, 38px);
  }
  .page-support__description {
    font-size: clamp(14px, 4vw, 16px);
  }
  .page-support__cta-buttons {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
    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__btn-primary,
  .page-support__btn-secondary,
  .page-support__btn-link,
  .page-support__btn-large,
  .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__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  /* 如果按钮使用flex布局，确保在移动端换行 */
  .page-support__cta-buttons {
    display: flex;
    flex-direction: column !important; /* Mobile vertical stacking */
  }

  .page-support__section-title {
    font-size: 28px;
    margin-bottom: 20px;
  }
  .page-support__text-block {
    font-size: 15px;
    padding: 0 15px;
  }
}