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

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

/* 页面通用样式 */
.page-register {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: var(--page-bg, #F4F7FB); /* Background */
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 32px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 15px;
}

.page-register__section-subtitle {
  font-size: 18px;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Fixed header padding adjustment */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
  color: #ffffff;
}

.page-register__hero-content {
  text-align: center;
  max-width: 800px;
  margin-bottom: 30px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 18px;
  line-height: 1.5;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1000px;
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

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

/* CTA Button Styles */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  border: none;
}

.page-register__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Registration Form Section */
.page-register__form-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-register__registration-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px;
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-register__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
  font-size: 15px;
}

.page-register__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 5px;
  font-size: 16px;
  color: #1F2D3D;
  box-sizing: border-box;
}

.page-register__form-input::placeholder {
  color: #999;
}

.page-register__checkbox-group {
  display: flex;
  align-items: center;
}

.page-register__form-checkbox {
  margin-right: 10px;
  width: 18px;
  height: 18px;
}

.page-register__terms-link {
  color: #2F6BFF;
  text-decoration: none;
  font-weight: 600;
}

.page-register__terms-link:hover {
  text-decoration: underline;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

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

.page-register__benefit-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  padding: 30px;
  text-align: center;
  border: 1px solid #D6E2FF; /* Border */
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 100px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF;
  margin-bottom: 10px;
}

.page-register__benefit-description {
  font-size: 15px;
  color: #1F2D3D;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
  background-color: #2F6BFF; /* Main color as dark background */
  color: #ffffff;
  text-align: center;
}

.page-register__promotions-section .page-register__section-title,
.page-register__promotions-section .page-register__section-subtitle {
  color: #ffffff;
}

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

.page-register__promo-card {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent white */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-register__promo-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  padding: 15px 20px 5px;
}

.page-register__promo-description {
  font-size: 15px;
  color: #f0f0f0;
  padding: 0 20px 20px;
}

/* Why Choose Section */
.page-register__why-choose-section {
  padding: 60px 0;
  background-color: #F4F7FB; /* Background */
}

.page-register__choose-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-register__choose-text {
  flex: 1;
}

.page-register__choose-text p {
  margin-bottom: 15px;
  color: #1F2D3D;
}

.page-register__choose-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
  color: #1F2D3D;
}

.page-register__choose-text li {
  margin-bottom: 8px;
  color: #1F2D3D;
}

.page-register__choose-image-wrapper {
  flex: 0 0 500px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.page-register__choose-image {
  width: 100%;
  height: auto;
  display: block;
}

/* FAQ Section */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
}
details.page-register__faq-item summary.page-register__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-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #1F2D3D;
}

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 80px 0;
  background-color: #2F6BFF; /* Main color */
  color: #ffffff;
  text-align: center;
}

.page-register__final-cta-section .page-register__section-title,
.page-register__final-cta-section .page-register__section-subtitle {
  color: #ffffff;
}

/* 移动端 @media (max-width: 768px) 必写清单 */
@media (max-width: 768px) {
  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

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

  .page-register__hero-section {
    padding-bottom: 30px;
  }

  .page-register__hero-content {
    margin-bottom: 20px;
  }

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

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

  /* General Images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block;
  }

  /* Image Containers */
  .page-register__hero-image-wrapper,
  .page-register__choose-image-wrapper,
  .page-register__benefit-icon,
  .page-register__promo-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }
  
  /* Buttons */
  .page-register__cta-button,
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register 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;
  }

  /* Button Containers */
  .page-register__button-group,
  .page-register__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-register__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* Form Section */
  .page-register__registration-form {
    padding: 25px;
  }

  /* Benefits Section */
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
  }

  /* Promotions Section */
  .page-register__promo-grid {
    grid-template-columns: 1fr;
  }

  /* Why Choose Section */
  .page-register__choose-content {
    flex-direction: column;
  }
  .page-register__choose-image-wrapper {
    flex: none;
    width: 100%;
  }

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

  /* Placeholder for other homepage sections (required by prompt, even if not on this page) */
  .page-register__promo-strip-track { grid-template-columns: repeat(4, 1fr); overflow-x: hidden; } /* 优惠 __promo-strip */
  .page-register__hot-games-grid { grid-template-columns: repeat(2, 1fr); } /* 热门 __hot-games */
  .page-register__brand-intro { display: block; } /* 品牌 __brand-intro (assuming it's shown on mobile for this context) */
  .page-register__winner-ticker { /* 中奖条 __winner-ticker */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 15px;
    box-sizing: border-box;
  }
  body { padding-bottom: 50px; } /* Adjust body padding for fixed ticker */
}

/* 首页试玩相关样式 (强制要求,即使本页非首页也需包含) */
.page-register__game-trial-overlay{z-index:5;pointer-events:auto;}
.page-register__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}
.page-register__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}
.page-register__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}
.page-register__reward-modal{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,0.7);visibility:hidden;opacity:0;transition:visibility 0s, opacity 0.3s ease;}
.page-register__reward-modal:not([hidden]) { display: flex; }
.page-register__reward-modal[aria-hidden="false"] {visibility:visible;opacity:1;}
.page-register__reward-modal-content{background:#fff;padding:30px;border-radius:10px;text-align:center;position:relative;max-width:400px;width:90%;}
.page-register__reward-modal-close{position:absolute;top:10px;right:10px;font-size:24px;color:#333;cursor:pointer;line-height:1;border:none;background:none;}
.page-register__reward-modal h3{color:#1F2D3D;margin-bottom:15px;}
.page-register__reward-modal p{color:#1F2D3D;margin-bottom:20px;}
.page-register__reward-modal-button{background:linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);color:#fff;padding:10px 20px;border-radius:5px;text-decoration:none;display:inline-block;}
.page-register--reward-open{overflow:hidden;}