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

/* General Page Styles */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Body background from shared.css */
}

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

.page-support__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-support__sub-section-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-support__sub-section-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Hero Section */
.page-support__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  overflow: hidden;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  background-color: #017439; /* Brand primary color for hero background */
}

.page-support__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.4); /* Overlay for readability */
}

.page-support__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* Slightly transparent to let background color show */
}

.page-support__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: #ffffff;
}

.page-support__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff;
}

.page-support__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__link-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, border-color 0.3s ease;
  white-space: nowrap; /* Prevent button text from wrapping on desktop */
  box-sizing: border-box;
}

.page-support__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
  background-color: #e02020;
  border-color: #e02020;
}

.page-support__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-support__btn-secondary:hover {
  background-color: #C30808;
  color: #ffffff;
}

.page-support__link-button {
  background-color: #017439;
  color: #ffffff;
  border: 2px solid #017439;
}

.page-support__link-button:hover {
  background-color: #005a2d;
  border-color: #005a2d;
}

/* Main Topics Section */
.page-support__main-topics-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-support__topic-card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__topic-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-support__topic-card-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-support__topic-card-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Account Management & Technical Support Sections */
.page-support__account-section,
.page-support__technical-section,
.page-support__game-rules-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

.page-support__dark-section {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

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

.page-support__sub-section {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__sub-section--with-image {
  display: flex;
  align-items: center;
  gap: 30px;
  background-color: rgba(255, 255, 255, 0.05); /* Card background */
}

.page-support__sub-section--reverse-order {
  flex-direction: row-reverse;
}

.page-support__sub-section-text-content {
  flex: 1;
}

.page-support__sub-section-image-wrapper {
  flex: 1;
  min-width: 200px; /* Ensure image wrapper has a minimum size */
}

.page-support__sub-section-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block; /* Ensures image does not have extra space below it */
  min-width: 200px; /* Enforce min image size */
  min-height: 200px; /* Enforce min image size */
}

/* FAQ Section */
.page-support__faq-section {
  padding: 80px 0;
  background-color: #017439; /* Primary brand color for FAQ section */
  color: #ffffff;
}

.page-support__faq-list {
  margin-top: 40px;
}

.page-support__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-support__faq-item[open] .page-support__faq-question {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-support__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  pointer-events: none; /* Important for details/summary native behavior */
}

.page-support__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.02);
}

.page-support__faq-answer p {
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-support__faq-answer a {
  color: #FFFF00; /* Accent color for links */
  text-decoration: underline;
}

.page-support__faq-answer a:hover {
  color: #ffd700;
}

/* Remove default details marker */
.page-support__faq-item summary {
  list-style: none;
}
.page-support__faq-item summary::-webkit-details-marker {
  display: none;
}

/* Video Wrapper in FAQ Section */
.page-support__video-wrapper {
  margin-top: 50px;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 800px; /* Constrain video wrapper width */
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  overflow: hidden;
}

.page-support__video-title {
  font-size: 2em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-support__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}