/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接）；HERO 主图须用 img 显示，禁止用 background-image */

.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Ensure content background is white */
  padding-top: var(--header-offset, 120px); /* Fixed header offset for PC and mobile */
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  color: #FFFFFF; /* White text for hero overlay */
  text-align: center;
}

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

.page-support__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: 2;
}

.page-support__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-support__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  line-height: 1.2;
}

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

.page-support__hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.page-support__hero-cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  min-width: 180px; /* Ensure buttons are not too small */
  text-align: center;
}

.page-support__hero-cta-button--primary {
  background-color: #FCBC45; /* Login button color */
  color: #000000;
  border: 2px solid #FCBC45;
}

.page-support__hero-cta-button--primary:hover {
  background-color: #E0A030;
  border-color: #E0A030;
}

.page-support__hero-cta-button--secondary {
  background-color: transparent;
  color: #FFFFFF; /* Register button text color, but for secondary action */
  border: 2px solid #FFFFFF;
}

.page-support__hero-cta-button--secondary:hover {
  background-color: #FFFFFF;
  color: #000000;
}

/* General Section Styling */
.page-support__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-support__section-title {
  font-size: 2.5em;
  color: #000000;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.page-support__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FCBC45; /* Accent color */
  border-radius: 2px;
}

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

.page-support__section-image {
  display: block;
  margin: 40px auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Ensure min image size */
  min-height: 200px; /* Ensure min image size */
}

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

.page-support__faq-item {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__faq-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__faq-answer {
  color: #444444;
  font-size: 1em;
}

.page-support__inline-link {
  color: #FCBC45;
  text-decoration: none;
  font-weight: bold;
}

.page-support__inline-link:hover {
  text-decoration: underline;
}

/* Technical Support Section */
.page-support__tech-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
}

.page-support__tech-item {
  background-color: #F8F8F8;
  border-left: 5px solid #FCBC45;
  padding: 20px 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.1em;
  color: #333333;
}

.page-support__tech-item strong {
  color: #000000;
}

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

.page-support__contact-card {
  background-color: #000000; /* Main color as background */
  color: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
}

.page-support__contact-card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FCBC45; /* Accent for titles */
}

.page-support__contact-card-description {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__contact-button {
  display: inline-block;
  background-color: #FCBC45;
  color: #000000;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FCBC45;
}

.page-support__contact-button:hover {
  background-color: #E0A030;
  transform: translateY(-2px);
  border-color: #E0A030;
}

/* Responsible Gaming Section */
.page-support__responsible-gaming-list {
  list-style: none;
  padding: 0;
  margin: 40px auto;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

.page-support__responsible-gaming-item {
  background-color: #F8F8F8;
  border-radius: 8px;
  padding: 20px 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  font-size: 1.1em;
  color: #333333;
  position: relative;
  padding-left: 45px;
}

.page-support__responsible-gaming-item::before {
  content: '✓';
  color: #FCBC45;
  font-size: 1.4em;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: bold;
}

.page-support__responsible-gaming-item strong {
  color: #000000;
}

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

.page-support__resource-card {
  background-color: #F8F8F8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.page-support__resource-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-support__resource-card-title {
  font-size: 1.3em;
  color: #000000;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-support__resource-card-description {
  font-size: 0.95em;
  color: #555555;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-support__hero-title {
    font-size: 2.8em;
  }
  .page-support__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-support {
    padding-top: var(--header-offset, 120px); /* Ensure mobile also has header offset */
  }

  .page-support__hero-title {
    font-size: 2.2em;
  }
  .page-support__hero-description {
    font-size: 1em;
  }
  .page-support__hero-cta-group {
    flex-direction: column;
    gap: 15px;
  }
  .page-support__hero-cta-button {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__faq-grid,
  .page-support__contact-options,
  .page-support__resources-grid {
    grid-template-columns: 1fr;
  }
  .page-support__faq-item,
  .page-support__tech-item,
  .page-support__contact-card,
  .page-support__responsible-gaming-item,
  .page-support__resource-card {
    padding: 20px;
  }
  .page-support__faq-question,
  .page-support__contact-card-title,
  .page-support__resource-card-title {
    font-size: 1.2em;
  }

  /* Ensure content area images do not overflow on mobile */
  .page-support img {
    max-width: 100%;
    height: auto;
  }
}

/* Ensure content area images are never smaller than 200px (desktop) */
.page-support__hero-image,
.page-support__faq-section .page-support__section-image,
.page-support__tech-section .page-support__section-image,
.page-support__contact-section .page-support__section-image,
.page-support__responsible-gaming-section .page-support__section-image,
.page-support__resources-section .page-support__section-image {
    min-width: 200px;
    min-height: 200px;
}

/* Mobile responsive image constraint for content area */
@media (max-width: 768px) {
  .page-support img { /* Selects all img tags within .page-support */
    max-width: 100%;
    height: auto;
  }
}