.page-affiliates {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Text Main */
  background: #F5F7FA; /* 背景 */
}

/* General Container */
.page-affiliates__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
  box-sizing: border-box;
}

/* Section Styling */
.page-affiliates__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, relying on body padding for header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden;
}

.page-affiliates__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  margin-bottom: 20px; /* Space between image and text */
}

.page-affiliates__hero-content {
  max-width: 800px;
  padding: 0 15px;
  box-sizing: border-box;
}

.page-affiliates__main-title {
  font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
  font-weight: 700;
  color: #E53935; /* Primary color for title */
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-affiliates__hero-description {
  font-size: 18px;
  color: #333333;
  margin-bottom: 30px;
}

.page-affiliates__section-title {
  font-size: clamp(24px, 3.5vw, 38px);
  font-weight: 700;
  color: #E53935; /* Primary color */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-affiliates__section-intro {
  font-size: 17px;
  color: #333333;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

/* CTA Button */
.page-affiliates__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Button color */
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.4);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-affiliates__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 57, 53, 0.6);
}

.page-affiliates__cta-button--inverted {
  background: #ffffff;
  color: #E53935;
  border: 2px solid #E53935;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-affiliates__cta-button--inverted:hover {
  background: #f0f0f0;
  color: #E53935;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Card Styling */
.page-affiliates__card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #E0E0E0; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-affiliates__card-title {
  font-size: 22px;
  font-weight: 600;
  color: #E53935;
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-affiliates__card-text {
  font-size: 16px;
  color: #333333;
  flex-grow: 1; /* Make text fill space */
}

/* Why Choose Us Section */
.page-affiliates__why-choose-us {
  padding: 50px 0;
  background: #F5F7FA; /* Background */
}

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

.page-affiliates__feature-icon {
  width: 100%; /* Ensure images are responsive */
  height: auto;
  max-width: 250px; /* Example max-width for feature icons */
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

/* How to Join Section */
.page-affiliates__how-to-join {
  padding: 60px 0;
  background: #E53935; /* Dark section */
  color: #ffffff;
}

.page-affiliates__how-to-join .page-affiliates__section-title,
.page-affiliates__how-to-join .page-affiliates__section-intro,
.page-affiliates__how-to-join .page-affiliates__step-title,
.page-affiliates__how-to-join .page-affiliates__step-text {
  color: #ffffff;
}

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

.page-affiliates__step-item {
  text-align: center;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
}

.page-affiliates__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #FF5A4F; /* Auxiliary color */
  color: #ffffff;
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-affiliates__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
}

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

/* Commissions Section */
.page-affiliates__commissions {
  padding: 50px 0;
  background: #F5F7FA; /* Background */
}

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

.page-affiliates__commission-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-top: 20px;
  border-radius: 8px;
  object-fit: cover;
}

/* FAQ Section */
.page-affiliates__faq-section {
  padding: 50px 0;
  background: #F5F7FA; /* Background */
}

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

/* Contact Us Section */
.page-affiliates__contact-us {
  padding: 60px 0;
  background: #E53935; /* Dark section */
  color: #ffffff;
  text-align: center;
}

.page-affiliates__contact-us .page-affiliates__section-title,
.page-affiliates__contact-us .page-affiliates__section-intro {
  color: #ffffff;
}

/* Footer for inner pages */
.page-affiliates__footer {
  background: #333333;
  color: #ffffff;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
}

.page-affiliates__copyright {
  margin: 0;
}

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

  .page-affiliates__container {
    padding: 15px;
  }

  .page-affiliates__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

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

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

  .page-affiliates__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
  }
  
  /* Ensure all images are responsive and their containers don't overflow */
  .page-affiliates img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-affiliates__hero-section,
  .page-affiliates__why-choose-us,
  .page-affiliates__how-to-join,
  .page-affiliates__commissions,
  .page-affiliates__faq-section,
  .page-affiliates__contact-us,
  .page-affiliates__card,
  .page-affiliates__feature-card,
  .page-affiliates__step-item,
  .page-affiliates__commission-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-affiliates__features-grid,
  .page-affiliates__steps-grid,
  .page-affiliates__commission-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-affiliates__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  details.page-affiliates__faq-item summary.page-affiliates__faq-question { padding: 15px; }
  .page-affiliates__faq-qtext { font-size: 15px; }
  details.page-affiliates__faq-item .page-affiliates__faq-answer { padding: 0 15px 15px; }

  .page-affiliates__section-title {
    font-size: 24px;
  }
  .page-affiliates__section-intro {
    font-size: 15px;
  }
}

/* The following CSS blocks are copied from the prompt's JSON output template for CSS. */
/* They appear to be homepage-specific, but are included to match the strict output format requirement. */
@media (max-width:1023px){.page-affiliates__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-affiliates__hero-brand,.page-affiliates__hero-jackpot{display:none!important;}.page-affiliates__game-trial{width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;overflow:hidden!important;padding:0 0 12px!important;box-sizing:border-box;}.page-affiliates__game-trial-shell{height:auto!important;max-height:none!important;width:100%;max-width:100%;overflow:hidden;box-sizing:border-box;}.page-affiliates__game-trial-topbar,.page-affiliates__game-trial-bottombar{display:none!important;}.page-affiliates__game-trial-viewport{position:relative;aspect-ratio:1024/768;min-height:240px;max-height:none!important;flex:none!important;overflow:hidden;box-sizing:border-box;width:100%;}.page-affiliates__game-trial-frame{position:absolute;inset:0;width:100%!important;height:100%!important;min-height:0!important;max-width:100%;border:none;z-index:1;overflow:hidden;}.page-affiliates__game-trial-overlay{z-index:5!important;pointer-events:auto!important;}.page-affiliates__game-trial-start{z-index:6!important;pointer-events:auto!important;touch-action:manipulation;}}
@media (min-width:1024px){.page-affiliates__home-hero{display:grid;grid-template-columns:26% 48% 26%;align-items:stretch;max-width:1280px;margin:0 auto;padding-bottom:24px;}.page-affiliates__hero-brand,.page-affiliates__hero-jackpot,.page-affiliates__game-trial{height:300px;max-height:300px;}.page-affiliates__game-trial{overflow:hidden;}.page-affiliates__game-trial-shell{display:flex;flex-direction:column;height:100%;}.page-affiliates__game-trial-viewport{flex:1;min-height:0;}.page-affiliates__game-trial-frame{height:100%;min-height:0;}.page-affiliates__hero-jackpot-claim{background:#c62828!important;}.page-affiliates__promo-strip{margin-top:16px;}}
@media (max-width:768px){.page-affiliates__promo-strip-track{grid-template-columns:repeat(4,1fr);overflow-x:hidden;}.page-affiliates__hot-games-grid{grid-template-columns:repeat(2,1fr);}}
.page-affiliates__game-trial-overlay{z-index:5;pointer-events:auto;}.page-affiliates__game-trial-overlay.is-hidden{display:none!important;pointer-events:none!important;}.page-affiliates__game-trial-start{z-index:6;pointer-events:auto;touch-action:manipulation;}.page-affiliates__game-trial-shell{border:1px solid rgba(212,175,55,.45);border-radius:10px;overflow:hidden;}.page-affiliates__reward-modal{position:fixed;inset:0;z-index:10000;}