/* 强制写入的首页试玩布局 CSS - 即使是内页也必须包含 */
@media (max-width: 1023px) {
  .page-support__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-support__hero-brand,
  .page-support__hero-jackpot {
    display: none !important;
  }
  .page-support__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-support__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial-topbar,
  .page-support__game-trial-bottombar {
    display: none !important;
  }
  .page-support__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-support__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-support__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-support__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

@media (min-width: 1024px) {
  .page-support__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-support__hero-brand,
  .page-support__hero-jackpot,
  .page-support__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-support__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-support__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-support__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-support__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-support__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General styles for Help Center Page */
.page-support {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #F2FFF6; /* Text Main for dark background */
  background-color: #08160F; /* Background color */
  padding-top: 10px; /* Small top padding, relying on body for header offset */
}

.page-support__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: #0A4B2C; /* Deep Green for hero section background */
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-support__hero-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-support__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-support__hero-description {
  font-size: 18px;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

.page-support__hero-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-support__section {
  padding: 30px 20px;
  margin-bottom: 30px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.page-support__section-title {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 700;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 15px;
}

.page-support__section-description {
  font-size: 16px;
  color: #A7D9B8; /* Text Secondary */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
}

.page-support__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.page-support__btn-secondary {
  display: inline-block;
  background: #11271B; /* Card B G */
  color: #F2FFF6; /* Text Main */
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid #2E7A4E; /* Border color */
  cursor: pointer;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-support__btn-secondary:hover {
  background: #2E7A4E; /* Border color */
  transform: translateY(-1px);
}

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

.page-support__guide-item {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-sizing: border-box;
}

.page-support__guide-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
  object-fit: cover;
}

.page-support__guide-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-support__guide-title a {
  color: #F2FFF6; /* Text Main */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-support__guide-title a:hover {
  color: #57E38D; /* Glow */
}

.page-support__guide-item p {
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #2E7A4E; /* Border color */
  overflow: hidden;
  background: #11271B; /* Card B G */
  box-sizing: border-box;
}
details.page-support__faq-item summary.page-support__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-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
  display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
  background: rgba(46, 122, 78, 0.3); /* Lighter version of Border color for hover */
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2FFF6; /* Text Main */
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #F2C14E; /* Gold */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 25px 20px;
  background: #08160F; /* Background color for answer */
  border-radius: 0 0 10px 10px;
}
.page-support__faq-answer p {
  color: #A7D9B8; /* Text Secondary */
}

/* Contact CTA Section */
.page-support__contact-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 20px;
  background: #0A4B2C; /* Deep Green */
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden;
}

.page-support__contact-content {
  max-width: 800px;
  margin-bottom: 30px;
}

.page-support__contact-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* Related Links Section */
.page-support__links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.page-support__link-card {
  background: #11271B; /* Card B G */
  border: 1px solid #2E7A4E; /* Border color */
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  text-decoration: none;
  color: #F2FFF6; /* Text Main */
  font-weight: 600;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
}

.page-support__link-card:hover {
  background: #2E7A4E; /* Border color */
  border-color: #F2C14E; /* Gold */
  color: #F2C14E; /* Gold */
}

.page-support__copyright {
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #A7D9B8; /* Text Secondary */
  border-top: 1px solid #1E3A2A; /* Divider */
  margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1023px) {
  /* Placeholder for homepage promo strip, hot games, brand intro, winner ticker */
  /* These specific rules are for index.html and are kept empty for support.html */
  .page-support__promo-strip-track,
  .page-support__hot-games-grid,
  .page-support__brand-intro,
  .page-support__winner-ticker { /* No specific rules needed for support.html */ }
}

@media (max-width: 768px) {
  .page-support__hero-section {
    padding: 30px 15px;
  }
  .page-support__hero-content {
    margin-bottom: 20px;
  }
  .page-support__main-title {
    font-size: 24px;
  }
  .page-support__hero-description {
    font-size: 16px;
  }
  .page-support__section {
    padding: 20px 15px;
  }
  .page-support__section-title {
    font-size: 28px;
  }
  .page-support__section-description {
    margin-bottom: 20px;
  }
  
  /* General image responsive */
  .page-support img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__guide-item,
  .page-support__link-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive */
  .page-support__btn-primary,
  .page-support__btn-secondary,
  .page-support a[class*="button"],
  .page-support 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-support__cta-buttons,
  .page-support__button-group,
  .page-support__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-support__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* FAQ specific responsive */
  details.page-support__faq-item summary.page-support__faq-question { padding: 15px; }
  .page-support__faq-qtext { font-size: 16px; }
  details.page-support__faq-item .page-support__faq-answer { padding: 0 15px 15px; }

  /* Placeholder for homepage specific 768px rules */
  /* These specific rules are for index.html and are kept empty for support.html */
  .page-support__promo-strip-track { /* specific rules for index.html */ }
  .page-support__hot-games-grid { /* specific rules for index.html */ }
  .page-support__brand-intro { /* specific rules for index.html */ }
  .page-support__winner-ticker { /* specific rules for index.html */ }
}