/* Base styles for page-about */
.page-about {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Text Main */
  background-color: #F5F7FA; /* Background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

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

.page-about__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 0 20px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Using brand colors */
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.page-about__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.page-about__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-about__intro-text {
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

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

.page-about__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-about__btn-primary,
.page-about__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-about__btn-primary:hover {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-about__btn-secondary {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
}

.page-about__btn-secondary:hover {
  background: #f0f0f0;
  color: #c62828;
  border-color: #c62828;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Sections */
.page-about__mission-vision-section,
.page-about__why-choose-us,
.page-about__faq-section {
  padding: 60px 0;
}

.page-about__section-title {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-bottom: 40px;
  color: #E53935;
}

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

.page-about__text-block {
  padding-right: 20px;
}

.page-about__sub-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 15px;
  color: #333333;
}

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

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

.page-about__why-choose-us {
  background-color: #ffffff; /* Card BG */
  border-top: 1px solid #E0E0E0;
  border-bottom: 1px solid #E0E0E0;
}

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

.page-about__feature-card {
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-about__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.page-about__feature-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  border-radius: 8px;
}

.page-about__card-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #E53935;
}

.page-about__cta-section {
  background: linear-gradient(180deg, #E53935 0%, #FF5A4F 100%);
  color: #ffffff;
  padding: 60px 0;
  text-align: center;
}

.page-about__cta-description {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px;
}

/* FAQ Styles */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
details.page-about__faq-item summary.page-about__faq-question::-webkit-details-marker {
  display: none;
}
details.page-about__faq-item summary.page-about__faq-question:hover {
  background: #f5f5f5;
}
.page-about__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-about__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-about__faq-item .page-about__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* --- Homepage CSS blocks (as per strict requirement) --- */
/* A. @media (max-width: 1023px) must be output as is */
@media (max-width: 1023px) {
  .page-about__home-hero {
    display: block !important;
    grid-template-columns: none !important;
    height: auto !important;
    max-height: none !important;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot {
    display: none !important;
  }
  .page-about__game-trial {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    overflow: hidden !important;
    margin: 0 auto;
    padding: 0 0 12px !important;
    box-sizing: border-box;
  }
  .page-about__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-topbar,
  .page-about__game-trial-bottombar {
    display: none !important;
  }
  .page-about__game-trial-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 1024 / 768;
    flex: none !important;
    min-height: 240px;
    max-height: none !important;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial-frame {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    max-width: 100%;
    border: none;
    z-index: 1;
    overflow: hidden;
  }
  .page-about__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-about__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. @media (min-width: 1024px) must be output as is */
@media (min-width: 1024px) {
  .page-about__home-hero {
    display: grid;
    grid-template-columns: 26% 48% 26%;
    gap: 16px;
    align-items: stretch;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 10px 16px 24px;
    box-sizing: border-box;
  }
  .page-about__hero-brand,
  .page-about__hero-jackpot,
  .page-about__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-about__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-about__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-about__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-about__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-about__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* C. Mobile @media (max-width: 768px)必写清单 (for general content and specific homepage blocks if they appear) */
@media (max-width: 768px) {
  .page-about {
    padding-top: 8px; /* Small top padding for mobile */
  }
  .page-about__hero-section {
    padding: 20px 0 10px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__btn-primary,
  .page-about__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* 1. 首屏试玩 (Already covered by 1023px block, but ensuring general rules) */
  .page-about__home-hero {
    padding: 0 !important; /* Reset padding for mobile */
  }

  /* 2. 优惠 __promo-strip (if it were on this page) */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    overflow-x: hidden;
    padding: 0 15px;
  }
  .page-about__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-about__promo-image {
    width: 100%;
    max-height: 120px;
    object-fit: cover;
    margin-bottom: 10px;
  }
  .page-about__promo-content {
    padding: 10px;
  }

  /* 3. 热门 __hot-games (if it were on this page) */
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
  }
  .page-about__hot-game-card .page-about__hot-game-name,
  .page-about__hot-game-card .page-about__hot-game-rtp,
  .page-about__hot-game-card .page-about__hot-game-desc {
    display: none !important;
  }
  .page-about__hot-game-image {
    width: 100%;
    height: auto;
  }

  /* 4. 品牌 __brand-intro (if it were on this page) */
  .page-about__brand-intro {
    padding: 30px 15px;
  }
  .page-about__brand-intro-content {
    text-align: center;
  }
  .page-about__brand-intro-logo {
    width: 180px;
    height: auto;
    margin: 0 auto 20px;
  }

  /* 5. 中奖条 __winner-ticker (if it were on this page) */
  .page-about__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    padding: 10px 0;
    font-size: 14px;
  }
  body.page-about--winner-ticker-active {
    padding-bottom: 45px; /* Adjust if ticker height changes */
  }

  /* 6. 通用图片与容器 */
  .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__features-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* 7. 按钮与按钮容器 */
  .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;
    flex-direction: column;
  }

  /* 8. Other modules (About Us specific) */
  .page-about__content-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-about__text-block {
    padding-right: 0;
  }
  .page-about__mission-vision-section,
  .page-about__why-choose-us,
  .page-about__cta-section,
  .page-about__faq-section {
    padding: 30px 0;
  }
  .page-about__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  .page-about__sub-title {
    font-size: 22px;
  }
  .page-about__feature-card {
    padding: 20px;
  }
  .page-about__card-title {
    font-size: 20px;
  }
  details.page-about__faq-item summary.page-about__faq-question { padding: 15px; }
  .page-about__faq-qtext { font-size: 15px; }
  details.page-about__faq-item .page-about__faq-answer { padding: 0 15px 15px; }
}

/* General overrides for homepage-specific elements that are not on this page */
.page-about__home-hero, .page-about__hero-brand, .page-about__hero-jackpot, .page-about__game-trial, .page-about__promo-strip-track, .page-about__hot-games-grid, .page-about__brand-intro, .page-about__winner-ticker {
    display: none;
}

/* Overlay and Modal specific styles (from homepage logic) */
.page-about__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-about__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-about__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-about__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-about__reward-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.page-about__reward-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}
.page-about__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #333333;
}
.page-about__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}
.page-about__reward-modal-close:hover {
  color: #E53935;
}
.page-about__reward-modal h3 {
  font-size: 24px;
  color: #E53935;
  margin-bottom: 15px;
}
.page-about__reward-modal p {
  margin-bottom: 20px;
}
.page-about__reward-modal .page-about__btn-primary {
  width: auto;
  padding: 10px 25px;
  font-size: 16px;
}

/* Image and button general responsive styles */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-about__cta-button, .page-about__btn-primary, .page-about__btn-secondary, .page-about a[class*="button"], .page-about a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-about__cta-buttons, .page-about__button-group, .page-about__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color contrast safety */
.page-about__dark-bg {
  color: #ffffff;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
}

.page-about__light-bg {
  color: #333333;
  background: #ffffff;
}