/* 首页试玩布局 CSS (原样输出，即使是关于我们页面也必须包含，以遵守输出格式要求) */
@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;
  }
}

/* 通用样式和 about.css 特有样式 */
.page-about {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* 默认深色文字，因为body背景是默认白色 */
  background-color: #FFFFFF; /* 确保背景色为白色 */
}

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

.page-about__section-spacing {
  padding: 60px 0;
}

.page-about__hero-section {
  background-color: #f8f8f8;
  padding-top: 10px; /* 小顶距，遵循规则 */
  padding-bottom: 40px;
}

.page-about__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

.page-about__intro-text {
  font-size: 18px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 30px;
}

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

.page-about__section-title--white {
  color: #FFFFFF;
}

.page-about__dark-section {
  background-color: #017439;
  color: #FFFFFF;
}

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

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

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

.page-about__text-block {
  flex: 1;
}

.page-about__text-block--white p {
  color: #f0f0f0;
}

.page-about__text-block p {
  margin-bottom: 15px;
  font-size: 16px;
}

.page-about__image-content {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-about__values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-about__value-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-about__value-icon {
  width: 120px;
  height: auto;
  margin-bottom: 20px;
  max-width: 100%; /* Ensures image responsiveness */
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
  object-fit: contain; /* Ensures image fits without cropping */
}

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

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

.page-about__product-card {
  background-color: #1a8a5a; /* Slightly darker green for contrast */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  color: #FFFFFF;
  text-align: center;
}

.page-about__product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
  max-width: 100%; /* Ensures image responsiveness */
  min-width: 200px; /* Min size constraint */
  min-height: 200px; /* Min size constraint */
}

.page-about__product-title {
  font-size: 20px;
  color: #FFFF00; /* Yellow for prominence, matching login/register font */
  margin-bottom: 10px;
  font-weight: 600;
}

.page-about__product-card p {
  font-size: 15px;
  color: #f0f0f0;
}

.page-about__btn {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  margin-top: 20px;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-about__btn-primary {
  background-color: #017439;
  color: #FFFFFF;
  border: 2px solid #017439;
}

.page-about__btn-primary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

.page-about__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  margin-left: 15px;
}

.page-about__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2e;
  border-color: #005a2e;
}

.page-about__cta-content {
  text-align: center;
}

.page-about__cta-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Responsive Styles */
@media (max-width: 1023px) {
  .page-about__image-content {
    max-width: 100%;
    margin-bottom: 20px;
  }
  .page-about__content-wrapper,
  .page-about__content-wrapper--reverse {
    flex-direction: column;
  }
  .page-about__text-block {
    order: 2;
  }
  .page-about__image-content {
    order: 1;
  }
  .page-about__content-wrapper--reverse .page-about__text-block {
    order: 1;
  }
  .page-about__content-wrapper--reverse .page-about__image-content {
    order: 2;
  }
}

@media (max-width: 768px) {
  .page-about__section-spacing {
    padding: 40px 0;
  }
  .page-about__hero-section {
    padding-bottom: 20px;
  }
  .page-about__main-title {
    font-size: 28px;
  }
  .page-about__intro-text {
    font-size: 16px;
  }
  .page-about__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-about__image-content {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-about__value-icon {
    width: 100px;
    min-width: 100px !important;
    min-height: 100px !important;
  }
  .page-about__product-image {
    height: 160px;
    min-height: 160px !important;
  }
  .page-about__btn {
    padding: 10px 20px;
    font-size: 15px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: 10px; /* Space out stacked buttons */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-about__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-about__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-about__value-card, .page-about__product-card {
    padding: 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; }
}

/* Ensure all images and containers are responsive */
.page-about img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box;
}

.page-about__section,
.page-about__card,
.page-about__container,
.page-about__content-wrapper,
.page-about__values-grid,
.page-about__products-grid {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent content overflow */
}

/* No CSS filters allowed */
.page-about img {
  filter: none !important;
}