/* style/about.css */
/* 页面内容区域样式 */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #f8f8f8; /* Light background for the page content */
}

/* Hero Section */
.page-about__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, #26A9E0, #a0dcee); /* Gradient using primary color */
  color: #ffffff;
  overflow: hidden;
}

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

.page-about__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-about__hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-about__hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-about__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #EA7C07; /* Login color for CTA */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-about__cta-button:hover {
  background: #d86b00;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-about__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust max-width for image */
  margin-top: 30px;
}

.page-about__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-about__section {
  padding: 80px 0;
  background-color: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.page-about__section:last-of-type {
  border-bottom: none;
}

.page-about__section--mission {
  background-color: #f8f8f8;
}

.page-about__section--values {
  background-color: #ffffff;
}

.page-about__section--games {
  background-color: #f8f8f8;
}

.page-about__section--security {
  background-color: #ffffff;
}

.page-about__section--customer-service {
  background-color: #f8f8f8;
}

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

.page-about__section h2 {
  font-size: 36px;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

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

.page-about__section p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #333333;
  text-align: justify;
}

/* Mission Section Layout */
.page-about__section--mission .page-about__container,
.page-about__section--customer-service .page-about__container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.page-about__section--mission .page-about__content-block,
.page-about__section--customer-service .page-about__content-block {
  flex: 1;
}

.page-about__section--mission .page-about__image-block,
.page-about__section--customer-service .page-about__image-block {
  flex: 1;
  text-align: center;
}

.page-about__section--mission .page-about__image-block img,
.page-about__section--customer-service .page-about__image-block img {
  width: 100%;
  height: auto;
  max-width: 600px; /* Specific max-width for these images */
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}


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

.page-about__value-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__value-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-about__value-card h3 {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__value-card p {
  font-size: 15px;
  color: #555555;
  text-align: center;
}

/* Game List */
.page-about__game-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 30px;
}

.page-about__game-list li {
  background-color: #f0faff;
  margin-bottom: 10px;
  padding: 15px 20px;
  border-left: 5px solid #26A9E0;
  border-radius: 5px;
  font-size: 16px;
  color: #333333;
}

.page-about__game-list li strong {
  color: #000000;
}

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

.page-about__feature-card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e0e0e0;
}

.page-about__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.page-about__feature-card h3 {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-about__feature-card p {
  font-size: 15px;
  color: #555555;
  text-align: center;
}

/* Customer Service */
.page-about__service-channels {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-about__service-channels li {
  font-size: 16px;
  margin-bottom: 10px;
  color: #333333;
  padding-left: 25px;
  position: relative;
}

.page-about__service-channels li::before {
  content: '📞'; /* Example icon */
  position: absolute;
  left: 0;
  color: #26A9E0;
  font-size: 18px;
  top: 0;
}

.page-about__service-channels li:nth-child(2)::before { content: '☎️'; }
.page-about__service-channels li:nth-child(3)::before { content: '📧'; }
.page-about__service-channels li:nth-child(4)::before { content: '📱'; }

/* FAQ Section */
.page-about__faq-list {
  margin-top: 40px;
}

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

/* 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;
}

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

/* 问题样式 */
.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  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: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: #333333;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
}

/* 切换图标 */
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #26A9E0;
  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: #EA7C07; /* Toggle color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}


/* Responsive Design */
@media (max-width: 992px) {
  .page-about__hero-content h1 {
    font-size: 40px;
  }

  .page-about__hero-content p {
    font-size: 17px;
  }

  .page-about__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }

  .page-about__section h2 {
    font-size: 32px;
  }

  .page-about__section--mission .page-about__container,
  .page-about__section--customer-service .page-about__container {
    flex-direction: column;
    gap: 40px;
  }

  .page-about__section--mission .page-about__image-block,
  .page-about__section--customer-service .page-about__image-block {
    order: -1; /* Image appears before text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-about {
    font-size: 16px;
    line-height: 1.6;
  }

  /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
  .page-about__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-content h1 {
    font-size: 32px;
  }

  .page-about__hero-content p {
    font-size: 16px;
  }

  .page-about__hero-image img {
    border-radius: 8px;
  }

  .page-about__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure it takes full width */
  }

  .page-about__section {
    padding: 50px 0;
  }

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

  .page-about__section h2 {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-about__values-grid,
  .page-about__security-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__value-card,
  .page-about__feature-card {
    padding: 25px;
    border-radius: 8px;
  }

  .page-about__value-card h3,
  .page-about__feature-card h3 {
    font-size: 20px;
  }

  .page-about__game-list li {
    font-size: 15px;
    padding: 12px 15px;
  }

  /* FAQ Mobile Adaptation */
  .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-block,
  .page-about__image-block,
  .page-about__values-grid,
  .page-about__security-features,
  .page-about__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 多个按钮横向排列时，允许换行 (if applicable) */
  .page-about__button-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-about__hero-content h1 {
    font-size: 28px;
  }
  .page-about__section h2 {
    font-size: 24px;
  }
  .page-about__value-card h3,
  .page-about__feature-card h3 {
    font-size: 18px;
  }
}