/* 首页试玩布局 CSS（写死模板，必须原样写入 `css`，禁止省略/改写关键属性/用「同上」代替） */
/* A. `@media (max-width: 1023px)` 必须原样输出 */
@media (max-width: 1023px) {
  .page-contact__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-contact__hero-brand,
  .page-contact__hero-jackpot {
    display: none !important;
  }
  .page-contact__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-contact__game-trial-shell {
    height: auto !important;
    max-height: none !important;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-contact__game-trial-topbar,
  .page-contact__game-trial-bottombar {
    display: none !important;
  }
  .page-contact__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-contact__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-contact__game-trial-overlay {
    z-index: 5 !important;
    pointer-events: auto !important;
  }
  .page-contact__game-trial-start {
    z-index: 6 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }
}

/* B. `@media (min-width: 1024px)` 必须原样输出 */
@media (min-width: 1024px) {
  .page-contact__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-contact__hero-brand,
  .page-contact__hero-jackpot,
  .page-contact__game-trial {
    height: 300px;
    max-height: 300px;
    overflow: hidden;
    box-sizing: border-box;
  }
  .page-contact__game-trial {
    max-width: none !important;
    width: 100%;
    margin: 0;
    padding: 0;
  }
  .page-contact__game-trial-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 300px;
    box-sizing: border-box;
  }
  .page-contact__game-trial-viewport {
    flex: 1;
    min-height: 0;
    position: relative;
    width: 100%;
  }
  .page-contact__game-trial-frame {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
  }
  .page-contact__hero-jackpot-claim {
    background: #c62828 !important;
    color: #fff !important;
  }
}

/* General styles for page-contact */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background: var(--body-bg, #FFFFFF); /* Use body-bg from shared.css */
}

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

.page-contact__hero-section {
  padding-top: 10px; /* Small top padding, relies on body padding-top for header offset */
  padding-bottom: 40px;
  background: linear-gradient(135deg, #017439, #005028);
  color: #FFFFFF;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  margin-bottom: 30px;
}

.page-contact__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-contact__hero-content {
  max-width: 800px;
  padding: 0 15px;
}

.page-contact__main-title {
  font-weight: 700;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 20px;
  /* No fixed font-size, rely on clamp if needed, otherwise let browser/shared handle */
}

.page-contact__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
}

.page-contact__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
}

.page-contact__section-description {
  font-size: 17px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

.page-contact__info-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

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

.page-contact__info-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__info-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
}

.page-contact__info-card-title {
  font-size: 22px;
  font-weight: 600;
  color: #017439;
  margin-bottom: 10px;
}

.page-contact__info-card-text {
  font-size: 16px;
}

.page-contact__channels-section {
  padding: 60px 0;
  background: #017439;
  color: #FFFFFF;
}

.page-contact__channels-section .page-contact__section-title {
  color: #FFFFFF;
}

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

.page-contact__channel-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-contact__channel-title {
  font-size: 24px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.page-contact__channel-text {
  font-size: 16px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-contact__phone-number {
  font-size: 20px;
  font-weight: 700;
  color: #FFFF00;
  margin-bottom: 10px;
}

.page-contact__hours {
  font-size: 15px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-contact__social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.page-contact__social-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-contact__social-link:hover {
  color: #FFFF00;
}

.page-contact__social-link img {
  
  
  margin-bottom: 5px;
}

.page-contact__hours-summary {
  text-align: center;
  font-size: 16px;
  margin-top: 40px;
  color: #f0f0f0;
}

.page-contact__form-section {
  padding: 60px 0;
  background: #f9f9f9;
  color: #333333;
}

.page-contact__contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-contact__form-group {
  margin-bottom: 25px;
}

.page-contact__form-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #017439;
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 16px;
  box-sizing: border-box;
}

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: #999;
}

.page-contact__submit-button {
  width: auto;
  min-width: 180px;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.page-contact__btn-primary {
  background: #017439;
  color: #ffffff;
  border: none;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.page-contact__btn-primary:hover {
  background: #005028;
  transform: translateY(-2px);
}

.page-contact__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  text-decoration: none;
  display: inline-block;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.page-contact__btn-secondary:hover {
  background: #017439;
  color: #ffffff;
  transform: translateY(-2px);
}

/* FAQ Section styles */
.page-contact__faq-section {
  padding: 60px 0;
  background: #ffffff;
  color: #333333;
}

.page-contact__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-contact__faq-item summary.page-contact__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-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-contact__faq-answer p {
  margin-bottom: 10px;
}

.page-contact__faq-answer p:last-child {
  margin-bottom: 0;
}

.page-contact__faq-answer a {
  color: #017439;
  text-decoration: underline;
}

.page-contact__faq-answer a:hover {
  color: #005028;
}

/* CTA Section styles */
.page-contact__cta-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #017439, #005028);
  color: #FFFFFF;
  text-align: center;
}

.page-contact__cta-title {
  font-size: 36px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
}

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

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

.page-contact__copyright-info {
  text-align: center;
  padding: 30px 15px;
  background: #1a1a1a;
  color: #cccccc;
  font-size: 14px;
  margin-top: auto; /* Push to bottom if main content is short */
}

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

  .page-contact__container {
    padding: 0 15px;
  }

  .page-contact__hero-section {
    padding-top: 10px;
    padding-bottom: 30px;
  }

  .page-contact__main-title {
    font-size: 28px;
  }

  .page-contact__hero-description {
    font-size: 16px;
  }

  .page-contact__section-title {
    font-size: 26px;
  }

  .page-contact__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  .page-contact__info-section,
  .page-contact__channels-section,
  .page-contact__form-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0;
  }

  .page-contact__info-grid,
  .page-contact__channels-grid {
    grid-template-columns: 1fr;
  }

  .page-contact__info-card,
  .page-contact__channel-item {
    padding: 25px;
  }

  .page-contact__info-icon {
    width: 80px;
    height: 80px;
  }

  .page-contact__info-card-title {
    font-size: 20px;
  }

  .page-contact__channel-title {
    font-size: 22px;
  }

  .page-contact__phone-number {
    font-size: 18px;
  }

  .page-contact__social-link img {
    
    
  }

  .page-contact__contact-form {
    padding: 30px;
  }

  .page-contact__form-group {
    margin-bottom: 20px;
  }

  .page-contact__form-input,
  .page-contact__form-textarea {
    padding: 10px 12px;
    font-size: 15px;
  }

  .page-contact__submit-button {
    width: 100% !important;
    padding: 12px 15px;
    font-size: 16px;
  }

  details.page-contact__faq-item summary.page-contact__faq-question {
    padding: 15px;
  }
  .page-contact__faq-qtext {
    font-size: 15px;
  }
  .page-contact__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }
  details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 15px 15px;
  }

  .page-contact__cta-title {
    font-size: 28px;
  }

  .page-contact__cta-description {
    font-size: 16px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-buttons a {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Mobile image and container responsiveness */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-contact__hero-image-wrapper,
  .page-contact__info-card,
  .page-contact__channel-item,
  .page-contact__contact-form,
  .page-contact__faq-list,
  .page-contact__cta-section .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Additional CSS for homepage specific elements (as per global requirement) */
.page-contact__game-trial-overlay {
  z-index: 5;
  pointer-events: auto;
}
.page-contact__game-trial-overlay.is-hidden {
  display: none !important;
  pointer-events: none !important;
}
.page-contact__game-trial-start {
  z-index: 6;
  pointer-events: auto;
  touch-action: manipulation;
}
.page-contact__game-trial-shell {
  border: 1px solid rgba(212,175,55,.45);
  border-radius: 10px;
  overflow: hidden;
}
.page-contact__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-contact__reward-modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  position: relative;
}
.page-contact__reward-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* 移动端 @media (max-width: 768px) 必写清单 */
@media (max-width: 768px) {
  /* 优惠 `__promo-strip` */
  .page-contact__promo-strip-track {
    grid-template-columns: repeat(4, 1fr);
    overflow-x: hidden;
    display: grid;
    gap: 10px;
    padding: 0 15px;
  }
  .page-contact__promo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }
  .page-contact__promo-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }
  .page-contact__promo-title {
    font-size: 16px;
    line-height: 1.3;
  }
  .page-contact__promo-description {
    font-size: 14px;
  }

  /* 热门 `__hot-games` */
  .page-contact__hot-games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 15px;
    display: grid;
  }
  .page-contact__hot-game-card {
    text-align: center;
    padding: 15px;
  }
  .page-contact__hot-game-image {
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    margin-bottom: 10px;
  }
  .page-contact__hot-games-name,
  .page-contact__hot-games-rtp,
  .page-contact__hot-games-desc {
    display: none;
  }

  /* 品牌 `__brand-intro` (if present, show on mobile) */
  .page-contact__brand-intro-section {
    padding: 30px 15px;
    display: block;
  }
  .page-contact__brand-intro-content {
    text-align: center;
  }
  .page-contact__brand-intro-title {
    font-size: 24px;
  }
  .page-contact__brand-intro-text {
    font-size: 15px;
  }

  /* 中奖条 `__winner-ticker` */
  .page-contact__winner-ticker {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    font-size: 14px;
    box-sizing: border-box;
  }
  body.page-contact--winner-ticker-active {
    padding-bottom: 40px; /* Adjust if ticker height varies */
  }
}