/* 页面样式: about.css */

/* --- General Page Styling --- */
.page-about {
  background-color: #0A0A0A; /* Dark background */
  color: #FFF6D6; /* Light text for contrast */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles header offset */
}

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

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

.page-about__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #F2C14E; /* Brand color for titles */
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-about__text-block {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 20px;
  text-align: justify;
}

/* --- Hero Section --- */
.page-about__hero-section {
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  justify-content: center;
  padding: 20px 0 40px;
  background: linear-gradient(180deg, #0A0A0A 0%, #111111 100%);
}

.page-about__hero-image {
  width: 100%;
  max-width: 1200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 30px;
}

.page-about__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 16px;
}

.page-about__main-title {
  font-size: 48px;
  color: #FFD36B; /* Auxiliary color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(255, 211, 107, 0.6);
}

.page-about__subtitle {
  font-size: 20px;
  color: #FFF6D6;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-about__cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for contrast on bright button */
  border: none;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-about__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Brand color */
  border: 2px solid #F2C14E;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-about__btn-secondary:hover {
  background: rgba(242, 193, 78, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

/* --- Introduction Section --- */
.page-about__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-about__feature-item {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  background: #111111; /* Card Background */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border */
}

.page-about__feature-title {
  font-size: 24px;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-about__feature-description {
  font-size: 16px;
  line-height: 1.6;
}

/* --- History & Support Section (Two Column Layout) --- */
.page-about__content-two-col {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-about__content-two-col--reverse {
  flex-direction: row-reverse;
}

.page-about__content-two-col .page-about__text-block {
  flex: 1;
}

.page-about__content-two-col img {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__image-right {
  margin-left: 20px;
}

.page-about__image-left {
  margin-right: 20px;
}

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

.page-about__value-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  background: #111111; /* Card Background */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-about__value-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #F2C14E;
}

.page-about__value-heading {
  font-size: 22px;
  color: #FFD36B;
  margin-bottom: 10px;
}

.page-about__value-description {
  font-size: 16px;
  line-height: 1.6;
}

/* --- Products Section --- */
.page-about__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.page-about__product-item {
  border-radius: 10px;
  overflow: hidden;
  background: #111111; /* Card Background */
  color: #FFF6D6; /* Text Main */
  border: 1px solid #3A2A12; /* Border */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.page-about__product-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-about__product-title {
  font-size: 20px;
  margin: 15px 15px 10px;
  color: #FFD36B;
}

.page-about__product-title a {
  color: #FFD36B;
  text-decoration: none;
}

.page-about__product-title a:hover {
  text-decoration: underline;
}

.page-about__product-description {
  font-size: 15px;
  padding: 0 15px 20px;
  line-height: 1.5;
}

/* --- Promotions Section --- */
.page-about__promo-list {
  list-style: disc inside;
  margin-top: 20px;
  padding-left: 20px;
  font-size: 17px;
}

.page-about__promo-list li {
  margin-bottom: 10px;
}

.page-about__promo-list li a {
  color: #F2C14E;
  text-decoration: none;
}

.page-about__promo-list li a:hover {
  text-decoration: underline;
}

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

.page-about__contact-links {
  display: flex;
  gap: 15px;
  margin-top: 25px;
  flex-wrap: wrap;
}

/* --- FAQ Section --- */
details.page-about__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card Background */
  color: #FFF6D6; /* Text Main */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-about__faq-item summary.page-about__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  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: rgba(242, 193, 78, 0.1);
}

.page-about__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF6D6;
}

.page-about__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #F2C14E; /* Brand color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-about__faq-item .page-about__faq-answer {
  padding: 0 25px 20px;
  background: #0A0A0A; /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
}

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

  .page-about__container,
  .page-about__section,
  .page-about__card,
  .page-about__hero-section,
  .page-about__introduction,
  .page-about__history,
  .page-about__values,
  .page-about__products,
  .page-about__promotions,
  .page-about__support,
  .page-about__responsibility,
  .page-about__faq {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-about__hero-section {
    padding: 15px 0 30px;
  }

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

  .page-about__subtitle {
    font-size: 17px;
  }

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

  .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: 12px 20px;
    font-size: 16px;
  }

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

  .page-about__content-two-col {
    flex-direction: column;
    gap: 25px;
  }

  .page-about__content-two-col img {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .page-about__image-right,
  .page-about__image-left {
    margin-left: 0;
    margin-right: 0;
  }

  .page-about__feature-grid,
  .page-about__value-cards,
  .page-about__product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-about__product-image {
    height: 180px;
  }

  .page-about__product-title {
    font-size: 18px;
  }

  .page-about__product-description {
    font-size: 14px;
  }

  .page-about__promo-list {
    font-size: 15px;
    padding-left: 15px;
  }

  .page-about__contact-links {
    flex-direction: column;
    gap: 10px;
  }

  details.page-about__faq-item summary.page-about__faq-question {
    padding: 15px 20px;
  }

  .page-about__faq-qtext {
    font-size: 16px;
  }

  .page-about__faq-toggle {
    font-size: 24px;
    width: 24px;
  }

  details.page-about__faq-item .page-about__faq-answer {
    padding: 0 20px 15px;
  }

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

/* Homepage specific CSS boilerplate - required even for inner pages */
@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;
  }
}

@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;
  }
}

/* The following are required boilerplate for home page, not directly applicable to about.html */
/* but included as per instruction to output full media queries. */
/* These will not affect about.html as it doesn't use these specific class names for its main layout. */
.page-about__promo-strip-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  overflow-x: hidden;
}

.page-about__hot-games-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}

.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;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-about__reward-modal.is-hidden {
  display: none !important;
}
.page-about__reward-modal-content {
  background: #111111;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  border: 1px solid #3A2A12;
  box-shadow: 0 0 20px rgba(255, 211, 107, 0.5);
}
.page-about__reward-modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #FFF6D6;
  font-size: 24px;
  cursor: pointer;
}
.page-about__reward-modal-title {
  color: #FFD36B;
  font-size: 28px;
  margin-bottom: 15px;
}
.page-about__reward-modal-text {
  color: #FFF6D6;
  font-size: 16px;
  margin-bottom: 25px;
}
.page-about__reward-modal-button {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 17px;
  display: inline-block;
  border: none;
  box-shadow: 0 4px 10px rgba(242, 193, 78, 0.4);
}

@media (max-width: 768px) {
  /* Homepage specific media queries for promo/hot-games/brand-intro/winner-ticker */
  .page-about__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-about__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-about__brand-intro {
    display: block; /* Assuming it's hidden on desktop and shown on mobile for some designs */
  }
  .page-about__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.8);
    padding: 10px 0;
    z-index: 999;
  }
  .page-about__winner-ticker-content {
    white-space: nowrap;
    overflow: hidden;
    animation: ticker-scroll 20s linear infinite;
  }
  body {
    padding-bottom: 50px; /* Adjust for fixed ticker */
  }
}

/* Ensure color contrast for critical elements */
.page-about p,
.page-about li {
  color: #FFF6D6; /* Ensure light text on dark background */
}

.page-about__dark-section {
  background: #F2C14E;
  color: #ffffff; /* Forced white text on brand color background */
}

.page-about__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for contrast */
}

.page-about__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Brand color text */
  border: 2px solid #F2C14E;
}

.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;
}