:root {
  --primary-color: #FF8C1A;
  --secondary-color: #FFA53A;
  --bg-dark: #0D0E12;
  --card-bg-dark: #17191F;
  --text-light: #FFF3E6;
  --border-orange: #A84F0C;
  --glow-color: #FFB04D;
  --deep-orange: #D96800;
  --button-gradient: linear-gradient(180deg, var(--secondary-color) 0%, var(--deep-orange) 100%);
  --text-dark: #333333; /* For light backgrounds */
  --text-darker: #000000; /* For light backgrounds */
}

/* Base styles for the page content */
.page-support {
  background-color: var(--bg-dark); /* Assuming body background is dark */
  color: var(--text-light); /* Light text for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

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

.page-support__dark-section {
  background-color: var(--card-bg-dark); /* Slightly lighter dark for sections */
}

.page-support__section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 0 0 8px rgba(255, 140, 26, 0.5); /* Glow effect */
}

.page-support__sub-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text-light);
}

.page-support__section-intro {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 243, 230, 0.8);
}

.page-support__text-center {
  text-align: center;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Subtle background */
}

.page-support__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 100px 20px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Responsive font size */
  font-weight: 800;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 15px rgba(255, 140, 26, 0.7);
}

.page-support__hero-description {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255, 243, 230, 0.9);
  margin-bottom: 30px;
  max-width: 700px;
}

.page-support__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  width: 100%; /* Ensure container takes full width for responsive */
  max-width: 600px;
  box-sizing: border-box;
}

.page-support__btn-primary,
.page-support__btn-secondary {
  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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary {
  background: var(--button-gradient);
  color: var(--text-light);
  border: none;
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

.page-support__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.6);
  opacity: 0.9;
}

.page-support__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 10px rgba(255, 140, 26, 0.2);
}

.page-support__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-light);
  box-shadow: 0 5px 15px rgba(255, 140, 26, 0.4);
}

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

/* About Support Section */
.page-support__about-support {
  background-color: var(--bg-dark);
  padding-bottom: 0;
}

.page-support__image-text-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
}

.page-support__image-wrapper {
  flex: 1;
  min-width: 0; /* Allow flex item to shrink */
}

.page-support__content-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-support__text-block {
  flex: 1;
}

.page-support__feature-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-support__feature-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 17px;
  color: rgba(255, 243, 230, 0.9);
}

.page-support__feature-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Common Issues Section */
.page-support__common-issues {
  background-color: var(--card-bg-dark);
}

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

.page-support__issue-card {
  background-color: var(--card-bg-dark); /* Consistent dark background */
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-orange);
}

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

.page-support__issue-card .page-support__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-support__issue-card p {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 243, 230, 0.7);
}

.page-support__card-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.page-support__card-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Contact Methods Section */
.page-support__contact-methods {
  background-color: var(--bg-dark);
}

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

.page-support__contact-card {
  background-color: var(--card-bg-dark); /* Consistent dark background */
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border-orange);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-support__contact-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(255, 140, 26, 0.3);
}

.page-support__contact-card .page-support__card-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.page-support__contact-card p {
  font-size: 16px;
  margin-bottom: 25px;
  color: rgba(255, 243, 230, 0.7);
  flex-grow: 1; /* Push button to bottom */
}

/* FAQ Section */
.page-support__faq-section {
  background-color: var(--card-bg-dark);
}

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

details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-dark);
  border: 1px solid var(--border-orange);
  box-shadow: 0 3px 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 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-light);
}
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: rgba(255, 140, 26, 0.1);
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-light);
}
.page-support__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 20px;
  background: rgba(255, 140, 26, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 10px 10px;
  color: rgba(255, 243, 230, 0.8);
  font-size: 16px;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming {
  background-color: var(--bg-dark);
}

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

.page-support__feature-box {
  background-color: var(--card-bg-dark);
  color: var(--text-light);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
  text-align: center;
  border: 1px solid var(--border-orange);
}

.page-support__box-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-support__gaming-note {
  margin-top: 40px;
  font-style: italic;
  color: rgba(255, 243, 230, 0.7);
}

/* Final CTA Section */
.page-support__final-cta {
  padding-bottom: 80px;
}

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

.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__cta-buttons,
.page-support__button-group,
.page-support__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* For larger screens, ensure hero content is centered and readable */
@media (min-width: 769px) {
  .page-support__hero-content {
    padding-top: 150px; /* More padding on desktop */
  }
}

/* --- Specific breakpoint for hero image object-fit --- */
@media (max-width: 849px) {
  .page-support__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Remove fixed aspect ratio */
  }
}

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

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

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

  /* HERO 主图区域 */
  .page-support__hero-section {
    padding-top: 10px; /* Consistent small top padding */
    padding-bottom: 40px;
  }

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

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

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

  .page-support__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    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: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 通用图片与容器 */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__cta-buttons,
  .page-support__button-group,
  .page-support__btn-container,
  .page-support__issue-card,
  .page-support__contact-card,
  .page-support__feature-box {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* About Support Section */
  .page-support__image-text-grid {
    flex-direction: column; /* Stack image and text vertically */
    gap: 30px;
  }

  .page-support__text-block {
    text-align: center;
  }

  /* Common Issues Section */
  .page-support__issues-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-support__issue-card {
    padding: 25px;
  }

  /* Contact Methods Section */
  .page-support__contact-grid {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-support__contact-card {
    padding: 25px;
  }

  /* FAQ Section */
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px 20px;
  }
  .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 20px 15px;
    font-size: 15px;
  }

  /* Responsible Gaming Section */
  .page-support__gaming-features {
    grid-template-columns: 1fr; /* Single column */
    gap: 20px;
  }
  .page-support__feature-box {
    padding: 25px;
  }

  /* 装饰主标题 + 长文 SEO 区 */
  .page-support__section-title,
  .page-support__sub-title {
    font-size: 28px;
    line-height: 1.3;
  }
  .page-support__section-intro {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-support__article-body, /* Placeholder for potential long article body */
  .page-support__article-figure { /* Placeholder for potential figures in articles */
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
    padding: 0 15px !important; /* Add padding for content within full width containers */
  }
}

/* For smaller mobile screens to ensure titles and descriptions are readable */
@media (max-width: 480px) {
  .page-support__main-title {
    font-size: 26px;
  }
  .page-support__hero-description {
    font-size: 14px;
  }
  .page-support__btn-primary,
  .page-support__btn-secondary {
    font-size: 15px;
  }
}