/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Base styles for the page-support container - assuming body has a dark background from shared.css */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Let body background from shared.css show through */
  padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff; /* Default for dark sections */
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

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

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

/* Hero Section */
.page-support__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

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

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

.page-support__hero-section .page-support__container {
  position: relative;
  z-index: 2;
  color: #ffffff;
}

.page-support__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  line-height: 1.2;
}

.page-support__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
  border: 2px solid #017439;
}

.page-support__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #017439;
  border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-support__btn-text-link {
  color: #017439;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
  display: block;
  margin-top: 10px;
}

.page-support__btn-text-link:hover {
  color: #005a2e;
}

/* Contact Methods Section */
.page-support__contact-methods {
  padding: 80px 0;
}

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

.page-support__method-card {
  background-color: #ffffff; /* Light background for card */
  color: #333333; /* Dark text for light background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-support__method-title {
  font-size: 1.8em;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__method-text {
  font-size: 1em;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-support__email-link,
.page-support__phone-number {
  color: #017439;
  font-weight: bold;
  text-decoration: none;
}

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

/* Common Issues Section */
.page-support__common-issues {
  padding: 80px 0;
}

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

.page-support__issue-card {
  background-color: #ffffff;
  color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.page-support__issue-title {
  font-size: 1.6em;
  color: #017439;
  margin-bottom: 15px;
}

.page-support__issue-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.page-support__faq-section .page-support__container {
    position: relative;
    z-index: 2;
}

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

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

.page-support__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #ffffff;
  color: #333333;
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #f8f8f8;
  transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
  background-color: #e0e0e0;
}

.page-support__faq-title {
  font-size: 1.2em;
  color: #017439;
  margin: 0;
}

.page-support__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #017439;
  transition: transform 0.3s ease;
}

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

.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-support__faq-item.active .page-support__faq-answer {
  max-height: 1000px !important;
  padding: 15px 25px 20px 25px;
}

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

.page-support__faq-more-btn {
  display: block;
  margin: 40px auto 0 auto;
  text-align: center;
  max-width: 300px;
}

/* Responsible Gambling Section */
.page-support__responsible-gambling {
  padding: 80px 0;
}

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

.page-support__feature-item {
  background-color: #ffffff;
  color: #333333;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
}

.page-support__feature-text {
  font-size: 0.95em;
  color: #555555;
}

.page-support__responsible-image {
    display: block;
    margin: 50px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Security & Privacy Section */
.page-support__security-privacy {
  padding: 80px 0;
}

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

.page-support__security-links {
  margin-top: 40px;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

/* CTA Section */
.page-support__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* --- Color Contrast Classes --- */
.page-support__dark-section {
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text for dark background */
}

.page-support__dark-section .page-support__section-title,
.page-support__dark-section .page-support__section-description,
.page-support__dark-section .page-support__main-title,
.page-support__dark-section .page-support__intro-text,
.page-support__dark-section .page-support__issue-title {
  color: #ffffff;
}

.page-support__dark-section .page-support__issue-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__dark-section .page-support__issue-card .page-support__issue-title,
.page-support__dark-section .page-support__feature-title {
    color: #ffffff;
}

.page-support__dark-section .page-support__btn-text-link {
    color: #FFFF00; /* Yellow for links on dark background, as per custom color */
}
.page-support__dark-section .page-support__btn-text-link:hover {
    color: #fff;
}

.page-support__light-bg {
  background-color: #ffffff; /* White background */
  color: #333333; /* Dark text for light background */
}

.page-support__light-bg .page-support__section-title,
.page-support__light-bg .page-support__method-title,
.page-support__light-bg .page-support__faq-title,
.page-support__light-bg .page-support__feature-title {
  color: #017439; /* Brand primary color for titles on light background */
}

/* Custom colors for Register/Login */
.page-support__btn-primary[href*="redirect"],
.page-support__cta-buttons .page-support__btn-primary {
  background-color: #C30808; /* Custom Register/Login button color */
  border-color: #C30808;
  color: #FFFF00; /* Custom Register/Login font color */
}

.page-support__btn-primary[href*="redirect"]:hover,
.page-support__cta-buttons .page-support__btn-primary:hover {
  background-color: #a30606;
  border-color: #a30606;
  color: #fff;
}

.page-support__cta-buttons .page-support__btn-secondary {
  background-color: transparent;
  color: #C30808;
  border: 2px solid #C30808;
}

.page-support__cta-buttons .page-support__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFF00;
}

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

@media (max-width: 768px) {
  .page-support {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-support__container {
    padding: 0 15px;
  }
  .page-support__hero-section,
  .page-support__contact-methods,
  .page-support__common-issues,
  .page-support__faq-section,
  .page-support__responsible-gambling,
  .page-support__security-privacy,
  .page-support__cta-section {
    padding: 60px 0;
  }

  .page-support__main-title {
    font-size: 2.2em;
  }
  .page-support__intro-text {
    font-size: 1em;
  }
  .page-support__section-title {
    font-size: 1.8em;
  }
  .page-support__section-description {
    font-size: 0.95em;
  }

  .page-support__hero-buttons,
  .page-support__cta-buttons,
  .page-support__security-links {
    flex-direction: column;
    gap: 15px;
  }

  .page-support__btn-primary,
  .page-support__btn-secondary {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Responsive images */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}