/* style/about.css */

:root {
  --primary-color: #C61F1F;
  --secondary-color: #E53030;
  --button-gradient: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
  --card-bg: #2A1212;
  --main-bg: #140C0C;
  --text-main-color: #FFF1E8;
  --border-color: #6A1E1E;
  --gold-color: #F3C54D;
  --deep-red-color: #7E0D0D;
}

.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Main text color for the page, assuming dark body background */
  background-color: var(--main-bg); /* Page specific background, if not inherited from body */
}

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

.page-about__section-title {
  font-size: clamp(2.2em, 4vw, 3em);
  color: var(--gold-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

.page-about__sub-title {
  font-size: clamp(1.5em, 3vw, 2em);
  color: var(--gold-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-about__sub-title--center {
  text-align: center;
}

.page-about__section-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 40px;
  color: var(--text-main-color);
}

/* Hero Section */
.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 40px;
  background-color: var(--deep-red-color);
  position: relative;
  overflow: hidden;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.page-about__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Slightly darken image for text contrast */
}

.page-about__hero-content {
  position: relative;
  z-index: 10;
  max-width: 900px;
  padding: 0 20px;
}

.page-about__main-title {
  font-size: clamp(2.8em, 5vw, 4em);
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-about__intro-text {
  font-size: 1.2em;
  color: var(--text-main-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-about__cta-buttons--center {
  justify-content: center;
}

.page-about__btn-primary,
.page-about__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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%; /* Ensure buttons adapt to container width */
}

.page-about__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-about__btn-secondary {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-about__btn-secondary:hover {
  background: var(--primary-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mission & Vision Section */
.page-about__mission-vision-section {
  background-color: var(--main-bg);
  padding: 60px 0;
}

.page-about__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 60px;
}

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

.page-about__content-grid--reverse .page-about__image-block {
  order: 2;
}

.page-about__content-grid--reverse .page-about__text-block {
  order: 1;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--text-main-color);
}

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

.page-about__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-about__value-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-about__value-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 25px;
  border-radius: 10px;
  flex: 1 1 calc(33% - 40px);
  max-width: calc(33% - 40px);
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  font-size: 1.05em;
  color: var(--text-main-color);
}

.page-about__value-item strong {
  color: var(--gold-color);
  font-size: 1.1em;
}

/* History Section */
.page-about__history-section {
  background-color: var(--deep-red-color);
  padding: 60px 0;
}

.page-about__history-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.page-about__history-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  height: 100%;
  background-color: var(--gold-color);
  transform: translateX(-50%);
}

.page-about__timeline-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
}

.page-about__timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.page-about__timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.page-about__timeline-item::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--gold-color);
  border-radius: 50%;
  top: 28px;
  z-index: 1;
  border: 4px solid var(--deep-red-color);
}

.page-about__timeline-item:nth-child(odd)::after {
  right: -10px;
}

.page-about__timeline-item:nth-child(even)::after {
  left: -10px;
}

.page-about__timeline-year {
  font-size: 1.8em;
  color: var(--gold-color);
  font-weight: bold;
  margin-bottom: 10px;
}

.page-about__timeline-description {
  font-size: 1.05em;
  color: var(--text-main-color);
}

/* Security Section */
.page-about__security-section {
  background-color: var(--main-bg);
  padding: 60px 0;
}

/* Products Section (Games) */
.page-about__products-section {
  background-color: var(--deep-red-color);
  padding: 60px 0;
}

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

.page-about__game-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-about__game-card:hover {
  transform: translateY(-5px);
}

.page-about__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-about__game-title {
  font-size: 1.4em;
  margin: 20px 10px 10px;
  font-weight: bold;
}

.page-about__game-title a {
  color: var(--gold-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-about__game-title a:hover {
  color: #ffffff;
}

.page-about__game-description {
  font-size: 1em;
  color: var(--text-main-color);
  padding: 0 15px 20px;
}

/* Customer Service Section */
.page-about__customer-service-section {
  background-color: var(--main-bg);
  padding: 60px 0;
}

/* Responsible Gaming Section */
.page-about__responsible-gaming-section {
  background-color: var(--deep-red-color);
  padding: 60px 0;
}

.page-about__content-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 40px;
}

.page-about__info-card {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  flex: 1 1 calc(33% - 60px);
  max-width: calc(33% - 60px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: var(--text-main-color);
}

.page-about__info-card .page-about__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 15px;
}

/* Join Us Section */
.page-about__join-us-section {
  background-color: var(--main-bg);
  padding: 60px 0;
  text-align: center;
}

/* FAQ Section */
.page-about__faq-section {
  background-color: var(--deep-red-color);
  padding: 60px 0;
}

.page-about__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
}

.page-about__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--gold-color);
  cursor: pointer;
  list-style: none; /* For details/summary */
  transition: background-color 0.3s ease;
}

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

.page-about__faq-item[open] .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-about__faq-question::-webkit-details-marker {
  display: none;
}

.page-about__faq-qtext {
  flex-grow: 1;
}

.page-about__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-about__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: var(--text-main-color);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-about__faq-item[open] .page-about__faq-answer {
  max-height: 500px; /* Sufficient height for content */
  padding: 0 25px 20px;
}

/* General image styling */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Dark background sections */
.page-about__dark-section p,
.page-about__dark-section li,
.page-about__dark-section .page-about__section-description {
  color: var(--text-main-color);
}

/* Media Queries for Responsiveness */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-about__container {
    padding: 30px 15px;
  }

  .page-about__section-title {
    font-size: clamp(2em, 5vw, 2.5em);
    margin-bottom: 30px;
  }

  .page-about__sub-title {
    font-size: clamp(1.3em, 4vw, 1.8em);
  }

  .page-about__main-title {
    font-size: clamp(2.5em, 6vw, 3.5em);
  }

  .page-about__intro-text {
    font-size: 1.1em;
  }

  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .page-about__content-grid--reverse .page-about__image-block {
    order: unset;
  }

  .page-about__content-grid--reverse .page-about__text-block {
    order: unset;
  }

  .page-about__value-item {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }

  .page-about__history-timeline::before {
    left: 15px;
    transform: translateX(0);
  }

  .page-about__timeline-item {
    width: 100%;
    padding-left: 50px;
    text-align: left !important;
  }

  .page-about__timeline-item:nth-child(odd) {
    left: 0;
  }

  .page-about__timeline-item:nth-child(even) {
    left: 0;
  }

  .page-about__timeline-item::after {
    left: 10px;
    right: unset;
  }

  .page-about__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-about__info-card {
    flex: 1 1 calc(50% - 30px);
    max-width: calc(50% - 30px);
  }

  .page-about__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-about__faq-answer {
    padding: 0 20px 15px;
    font-size: 1em;
  }

  .page-about__faq-item[open] .page-about__faq-answer {
    padding: 0 20px 15px;
  }
}

/* Mobile Specific Styles */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-about__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles --header-offset */
    padding-bottom: 30px;
  }

  .page-about__hero-image-wrapper {
    max-height: 300px;
  }

  .page-about__main-title {
    font-size: clamp(2em, 8vw, 2.8em) !important;
  }

  .page-about__intro-text {
    font-size: 1em;
  }

  .page-about__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    width: 100%; /* Ensure container takes full width */
    box-sizing: border-box;
  }

  /* 按钮与按钮容器 */
  .page-about__btn-primary,
  .page-about__btn-secondary,
  .page-about a[class*="button"],
  .page-about a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__cta-buttons,
  .page-about__button-group,
  .page-about__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-about__section-title {
    font-size: clamp(1.8em, 7vw, 2.2em) !important;
    margin-bottom: 25px;
  }

  .page-about__sub-title {
    font-size: clamp(1.2em, 5vw, 1.5em) !important;
  }

  .page-about__content-grid {
    gap: 20px;
  }

  .page-about__value-item {
    flex: 1 1 100%;
    max-width: 100%;
  }

  /* 其他内容模块 */
  .page-about__text-block p, 
  .page-about__timeline-description, 
  .page-about__game-description, 
  .page-about__info-card p,
  .page-about__faq-answer p,
  .page-about__section-description {
    font-size: 0.95em;
  }

  .page-about__history-timeline::before {
    left: 15px;
  }

  .page-about__timeline-item {
    padding: 15px 15px 15px 50px;
  }

  .page-about__timeline-item::after {
    left: 10px;
    top: 23px;
  }

  /* 产品展示图区域 */
  .page-about__games-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-about__game-card {
    width: 100%;
  }

  .page-about__info-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .page-about__faq-list {
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
  }

  .page-about__faq-question {
    font-size: 1em;
    padding: 12px 18px;
  }

  .page-about__faq-toggle {
    font-size: 1.3em;
  }

  .page-about__faq-answer {
    padding: 0 18px 12px;
  }

  .page-about__faq-item[open] .page-about__faq-answer {
    padding: 0 18px 12px;
  }

  /* 通用图片与容器 */
  .page-about img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__content-grid,
  .page-about__content-flex,
  .page-about__text-block,
  .page-about__image-block,
  .page-about__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Dark background sections */
.page-about__dark-section {
  color: var(--text-main-color);
}

.page-about__dark-section .page-about__section-title,
.page-about__dark-section .page-about__sub-title,
.page-about__dark-section .page-about__card-title,
.page-about__dark-section .page-about__timeline-year {
  color: var(--gold-color);
}

.page-about__dark-section .page-about__game-title a {
  color: var(--gold-color);
}

.page-about__dark-section .page-about__game-title a:hover {
  color: #ffffff;
}

.page-about__dark-section .page-about__faq-question {
  color: var(--gold-color);
}

.page-about__dark-section .page-about__faq-toggle {
  color: var(--gold-color);
}

.page-about__dark-section .page-about__faq-item[open] .page-about__faq-question {
  background-color: rgba(255, 255, 255, 0.08);
}

.page-about__dark-section .page-about__faq-answer {
  color: var(--text-main-color);
}

.page-about__dark-section .page-about__value-item,
.page-about__dark-section .page-about__game-card,
.page-about__dark-section .page-about__info-card,
.page-about__dark-section .page-about__faq-item {
  background-color: var(--card-bg);
  border-color: var(--border-color);
}