/* Homepage Game Trial CSS (max-width: 1023px) - EXACTLY AS PROVIDED */
@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;
  }
}

/* Homepage Game Trial CSS (min-width: 1024px) - EXACTLY AS PROVIDED */
@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;
  }
}

/* Homepage related @media (max-width: 768px) blocks - As requested (缺一不可) */
@media (max-width: 768px) {
  /* 1. 首屏试玩: Covered by max-width: 1023px block, no need to repeat here. */
  /* 2. 优惠 `__promo-strip`: Placeholder, assuming it's not on support page, but required for completeness */
  .page-support__promo-strip-track {
    grid-template-columns: repeat(2, 1fr);
    overflow-x: hidden;
    gap: 10px;
  }
  .page-support__promo-strip-item {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .page-support__promo-strip-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  .page-support__promo-strip-item .page-support__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
  }
  /* 3. 热门 `__hot-games`: Placeholder, assuming it's not on support page */
  .page-support__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  .page-support__hot-games-item-name,
  .page-support__hot-games-item-rtp,
  .page-support__hot-games-item-description {
    display: none;
  }
  .page-support__hot-games-item img {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
  }
  /* 4. 品牌 `__brand-intro`: Placeholder, assuming it's not on support page */
  .page-support__brand-intro {
    padding: 20px 15px;
    text-align: center;
  }
  .page-support__brand-intro-content {
    display: block;
  }
  .page-support__brand-intro-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin-bottom: 20px;
  }
  /* 5. 中奖条 `__winner-ticker`: Placeholder, assuming it's not on support page */
  .page-support__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 15px;
    box-sizing: border-box;
    z-index: 999;
    background: rgba(0,0,0,0.8);
    color: #fff;
  }
  body.page-support--winner-ticker-active {
    padding-bottom: 50px;
  }
}

/* General Support Page Styles */
.page-support {
  background: #F4F7FB;
  color: #1F2D3D;
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-support__section-title {
  font-size: 2.2em;
  color: #2F6BFF;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

.page-support__section-description,
.page-support__subsection-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  color: #333333;
}

.page-support__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: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-support__hero-content {
  max-width: 900px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-support__hero-title {
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-support__hero-description {
  font-size: 1.15em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-support__cta-button {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-support__cta-button:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-support__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 30px;
}

.page-support__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.page-support__service-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-support__service-list li {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  font-size: 1.05em;
  color: #333333;
}

.page-support__service-list li::before {
  content: '✓';
  color: #2F6BFF;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-support__content-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 800px;
  margin: 40px auto 0;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* FAQ Styles */
details.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
details.page-support__faq-item summary.page-support__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;
  color: #1F2D3D;
}
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: #f5f8ff;
}
.page-support__faq-qtext {
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-support__faq-item .page-support__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}
details.page-support__faq-item .page-support__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* Contact Methods */
.page-support__contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-support__contact-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
  text-align: center;
  color: #1F2D3D;
}

.page-support__card-title {
  font-size: 1.5em;
  color: #2F6BFF;
  margin-bottom: 15px;
  font-weight: 700;
}

.page-support__contact-card p {
  font-size: 1em;
  margin-bottom: 25px;
  color: #333333;
}

.page-support__contact-form {
  text-align: left;
  margin-top: 20px;
}

.page-support__form-group {
  margin-bottom: 15px;
}

.page-support__form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1F2D3D;
}

.page-support__form-group input,
.page-support__form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #D6E2FF;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 1em;
  color: #1F2D3D;
  background-color: #f8faff;
}

.page-support__form-group input::placeholder,
.page-support__form-group textarea::placeholder {
  color: #99aab5;
}

.page-support__form-group textarea {
  resize: vertical;
}

.page-support__btn-primary {
  display: inline-block;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-support__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #2F6BFF;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1em;
  transition: all 0.3s ease;
  border: 2px solid #2F6BFF;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-support__btn-secondary:hover {
  background: #f5f8ff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.page-support__guide-card {
  background: #FFFFFF;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF;
  text-align: center;
  color: #1F2D3D;
}

.page-support__guide-card p {
  font-size: 1em;
  margin-bottom: 25px;
  color: #333333;
}

/* Responsible Gaming */
.page-support__responsible-list {
  list-style: none;
  padding: 0;
  margin: 30px auto;
  max-width: 800px;
  text-align: left;
}

.page-support__responsible-list li {
  background: #ffffff;
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  font-size: 1.05em;
  color: #333333;
}

.page-support__responsible-list li::before {
  content: '⚠';
  color: #FF5722;
  font-weight: bold;
  margin-right: 10px;
  font-size: 1.2em;
}

.page-support__subsection-title {
  font-size: 1.8em;
  color: #2F6BFF;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Reward Modal (forced inclusion due to JS requirement) */
.page-support__reward-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.page-support__reward-modal.is-hidden {
  opacity: 0;
  pointer-events: none;
  display: none !important;
}
.page-support__reward-modal-content {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
  color: #1F2D3D;
}
.page-support__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2em;
  color: #666;
  cursor: pointer;
}
.page-support__reward-modal-title {
  font-size: 1.8em;
  color: #2F6BFF;
  margin-bottom: 15px;
}
.page-support__reward-modal-text {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #333333;
}
.page-support--reward-open {
  overflow: hidden;
}

/* Mobile Responsive Styles (max-width: 768px) */
@media (max-width: 768px) {
  .page-support {
    font-size: 15px;
    line-height: 1.55;
  }
  .page-support__section {
    padding: 25px 15px;
  }
  .page-support__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }
  .page-support__section-description,
  .page-support__subsection-description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-support__hero-content {
    padding: 0 15px;
    margin-bottom: 20px;
  }
  .page-support__hero-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-support__hero-description {
    font-size: 1.05em;
    margin-bottom: 20px;
  }
  .page-support__cta-button,
  .page-support__btn-primary,
  .page-support__btn-secondary {
    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__service-list,
  .page-support__responsible-list {
    margin: 20px auto;
  }
  .page-support__service-list li,
  .page-support__responsible-list li {
    padding: 12px 15px;
    font-size: 0.95em;
  }
  details.page-support__faq-item summary.page-support__faq-question {
    padding: 15px;
  }
  .page-support__faq-qtext {
    font-size: 1em;
  }
  details.page-support__faq-item .page-support__faq-answer {
    padding: 0 15px 15px;
  }
  .page-support__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__contact-card,
  .page-support__guide-card {
    padding: 25px;
  }
  .page-support__card-title {
    font-size: 1.3em;
  }
  .page-support__guides-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-support__subsection-title {
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
  }
  /* Universal image responsive styles for content area */
  .page-support img {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    display: block;
  }
  .page-support__section,
  .page-support__card,
  .page-support__container,
  .page-support__contact-form {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Global image/button responsive rules (not in media query for general application) */
.page-support img {
  max-width: 100%;
  height: auto;
  display: block;
}
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support a[class*="button"],
.page-support a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-support__cta-buttons,
.page-support__button-group,
.page-support__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.is-hidden { display: none !important; pointer-events: none !important; }