:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #8B0000; /* Dark Red */
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --background-dark: #000000;
  --background-light: #f8f8f8;
  --border-color: #e0e0e0;
}

/* Base styles for the page content area */
.page-about {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-on-dark); /* Default text color for dark body background */
  background-color: var(--background-dark); /* Inherits from shared.css body #000 */
  padding-top: 100px; /* Adjust for fixed header on desktop */
}

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

.page-about__section-title {
  font-size: 38px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.page-about__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  margin-top: 25px;
  margin-bottom: 15px;
}

.page-about__section-description {
  font-size: 18px;
  color: var(--text-on-dark);
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-about__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  position: relative;
  overflow: hidden;
  padding-top: calc(100px + 60px); /* Adjust for fixed header + hero specific padding */
}

.page-about__main-title {
  font-size: 52px;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-about__hero-description {
  font-size: 20px;
  color: var(--text-on-dark);
  max-width: 900px;
  margin: 0 auto 40px auto;
}

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

.page-about__cta-button {
  display: inline-block;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  border: 2px solid transparent;
  text-align: center;
}

.page-about__btn-primary {
  background: var(--primary-color);
  color: var(--background-dark);
  border-color: var(--primary-color);
}

.page-about__btn-primary:hover {
  background: #ffdb4d;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-about__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--background-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-about__video-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 60px; /* Adjust for fixed header on desktop, no extra needed if hero already has it */
  background-color: var(--background-dark);
}

.page-about__video-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-about__video-link {
  display: block;
  text-decoration: none;
  position: relative;
  width: 100%;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-about__video-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.page-about__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 宽高比 - PageSpeed优化：固定宽高比避免布局偏移（CLS） */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-about__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  object-fit: cover;
  pointer-events: none; /* 防止视频控件阻止点击事件 */
}

.page-about__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.page-about__video-link:hover .page-about__video-overlay {
  opacity: 1;
}

.page-about__video-click-hint {
  color: #ffffff;
  font-size: 18px;
  font-weight: bold;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  background: rgba(0, 123, 255, 0.8);
  border-radius: 5px;
  white-space: nowrap;
}

.page-about__video-cta {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 30px;
}

.page-about__play-now-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--primary-color);
  color: var(--background-dark);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
}

.page-about__play-now-button:hover {
  background: #ffdb4d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-about__play-now-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Story and Mission Section */
.page-about__story-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-on-light);
}

.page-about__story-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__story-section .page-about__section-description {
  color: var(--text-on-light);
}

.page-about__content-grid {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__story-content {
  flex: 1;
}

.page-about__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-about__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Advantages Section */
.page-about__advantages-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #0d0d0d 0%, #333333 100%);
  color: var(--text-on-dark);
}

.page-about__advantages-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__advantages-section .page-about__section-description {
  color: var(--text-on-dark);
}

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

.page-about__advantage-card {
  background: var(--background-light);
  color: var(--text-on-light);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-about__card-icon {
  width: 120px; /* Increased size for content image, not small icon */
  height: 120px; /* Increased size for content image, not small icon */
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-about__advantage-card p {
  font-size: 16px;
  color: var(--text-on-light);
}

.page-about__cta-center {
  text-align: center;
  margin-top: 60px;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  padding: 80px 0;
  background-color: var(--background-light);
  color: var(--text-on-light);
}

.page-about__responsible-gaming-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.page-about__image-wrapper--left {
  flex: 1;
  min-width: 300px;
}

.page-about__text-content--right {
  flex: 2;
  min-width: 300px;
}

.page-about__text-content--right p {
  margin-bottom: 20px;
}

/* FAQ Section */
.page-about__faq-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #000000 0%, #333333 100%);
  color: var(--text-on-dark);
}

.page-about__faq-section .page-about__section-title {
  color: var(--primary-color);
}

.page-about__faq-section .page-about__section-description {
  color: var(--text-on-dark);
}

.page-about__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

/* FAQ容器样式 */
.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: var(--background-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-about__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: var(--text-on-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-about__faq-item.active .page-about__faq-answer {
  max-height: 2000px !important; /* 🚨 使用!important确保优先级，值足够大以容纳任何内容 */
  padding: 20px !important;
  opacity: 1;
  background: #f0f0f0;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-about__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-about__faq-question:active {
  background: #eeeeee;
}

/* 问题标题样式 */
.page-about__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: var(--text-on-light);
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-about__faq-item.active .page-about__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Changed to rotate for a more dynamic feel */
}

/* Join CTA Section */
.page-about__join-cta-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--background-light);
  color: var(--text-on-light);
}

.page-about__join-cta-section .page-about__section-title {
  color: var(--secondary-color);
}

.page-about__join-cta-section .page-about__section-description {
  color: var(--text-on-light);
}

/* Global image styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-about__main-title {
    font-size: 44px;
  }
  .page-about__section-title {
    font-size: 32px;
  }
  .page-about__hero-description {
    font-size: 18px;
  }
  .page-about__advantages-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-about {
    padding-top: 80px !important; /* Mobile fixed header adjustment */
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-about__hero-section {
    padding: 60px 0;
    padding-top: calc(80px + 40px); /* Mobile fixed header + hero specific padding */
  }

  .page-about__main-title {
    font-size: 36px;
  }

  .page-about__hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-about__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 14px 25px;
    font-size: 16px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }

  .page-about__sub-title {
    font-size: 20px;
  }

  .page-about__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-about__video-section {
    padding-top: 40px !important; /* Mobile specific padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-about__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  
  .page-about__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .page-about__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-radius: 4px;
    overflow: hidden !important;
  }
  
  .page-about__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    border-radius: 4px;
    object-fit: contain;
  }

  .page-about__video-cta {
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .page-about__play-now-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 30px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-about__story-section, 
  .page-about__advantages-section, 
  .page-about__responsible-gaming-section, 
  .page-about__faq-section, 
  .page-about__join-cta-section {
    padding: 50px 0;
  }

  .page-about__content-grid {
    flex-direction: column;
    gap: 30px;
  }
  
  .page-about__image-wrapper {
    order: -1; /* Image first on mobile */
  }

  .page-about__advantages-grid {
    grid-template-columns: 1fr;
  }

  .page-about__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-about__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-about__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-about__faq-answer {
    padding: 0 15px;
  }
  
  .page-about__faq-item.active .page-about__faq-answer {
    padding: 15px !important;
  }

  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__section,
  .page-about__card,
  .page-about__container,
  .page-about__content-grid,
  .page-about__advantages-grid,
  .page-about__faq-list,
  .page-about__content-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-about__image-wrapper--left {
    order: -1; /* Image appears above text on mobile */
  }
  .page-about__text-content--right {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .page-about__main-title {
    font-size: 30px;
  }
  .page-about__section-title {
    font-size: 24px;
  }
  .page-about__cta-button {
    font-size: 15px;
    padding: 12px 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  .page-about__card-icon {
    width: 100px; /* Smaller for very small screens */
    height: 100px; /* Smaller for very small screens */
  }
}

/* Color Contrast Specifics */
.page-about__dark-bg {
  color: var(--text-on-dark); /* White text */
}

.page-about__light-bg {
  color: var(--text-on-light); /* Dark text */
}

.page-about p,
.page-about li {
  color: inherit; /* Inherit from parent section to ensure contrast */
}

/* Ensure strong/bold text is visible */
.page-about strong {
  color: var(--primary-color);
}

.page-about__story-section strong,
.page-about__responsible-gaming-section strong,
.page-about__faq-answer strong {
  color: var(--secondary-color); /* Dark red on light background */
}

.page-about__hero-section strong,
.page-about__advantages-section strong,
.page-about__faq-section strong {
  color: var(--primary-color); /* Gold on dark background */
}

/* Emergency Contrast Fix */
.page-about__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-about__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}