.page-login__hero-section {
  padding-top: 10px; /* Small top padding for hero section */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--text-color-light, #ffffff);
  min-height: 500px;
}

.page-login__hero-image {
  position: relative;
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 20px;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for text readability */
  border-radius: 8px;
  margin-top: 20px;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom color for login/register font */
}

.page-login__description {
  font-size: 1.15rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: var(--text-color-light, #ffffff);
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: #C30808; /* Custom color for Login */
  color: #FFFF00; /* Custom color for Login font */
  border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
  background: #a30606;
  border-color: #a30606;
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFFF00; /* Custom color for Register font */
  border: 2px solid #C30808; /* Custom color for Register */
}

.page-login__btn-secondary:hover {
  background: #C30808;
  color: #ffffff;
}

.page-login__form-section {
  padding: 60px 20px;
  background: #FFFFFF;
  color: var(--text-color-dark, #333333);
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color, #017439);
}

.page-login__section-title--white {
  color: #ffffff;
}

.page-login__section-description {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__section-description--white {
  color: #f0f0f0;
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  padding: 40px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.page-login__form-label {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-color-dark, #333333);
}

.page-login__form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: var(--primary-color, #017439);
  box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password {
  font-size: 0.95rem;
  color: var(--primary-color, #017439);
  text-decoration: none;
}

.page-login__forgot-password:hover {
  text-decoration: underline;
}

.page-login__submit-btn {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  background: #C30808; /* Custom color for Login button */
  color: #FFFF00; /* Custom color for Login font */
}

.page-login__submit-btn:hover {
  background: #a30606;
}

.page-login__no-account {
  text-align: center;
  margin-top: 30px;
  font-size: 1rem;
}

.page-login__register-link {
  color: var(--primary-color, #017439);
  text-decoration: none;
  font-weight: 600;
}

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

.page-login__benefits-section {
  padding: 80px 20px;
  background: var(--primary-color, #017439);
  color: #ffffff;
}

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

.page-login__benefit-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__benefit-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFF00;
}

.page-login__benefit-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__guide-section {
  padding: 80px 20px;
  background: #FFFFFF;
  color: var(--text-color-dark, #333333);
}

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

.page-login__step-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary-color, #017439);
  color: #ffffff;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--primary-color, #017439);
}

.page-login__step-text {
  font-size: 1rem;
  line-height: 1.6;
}

.page-login__troubleshooting {
  margin-top: 60px;
  padding: 30px;
  background: #fff3e0;
  border-left: 5px solid #ff9800;
  border-radius: 8px;
}

.page-login__troubleshooting-title {
  font-size: 1.4rem;
  color: #ff9800;
  margin-bottom: 20px;
}

.page-login__troubleshooting-list {
  list-style-type: disc;
  padding-left: 25px;
  font-size: 1rem;
  line-height: 1.6;
}

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
}

.page-login__explore-section {
  padding: 80px 20px;
  background: var(--primary-color, #017439);
  color: #ffffff;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-login__game-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-login__game-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-login__game-link {
  display: inline-block;
  padding: 10px 20px;
  background: #C30808;
  color: #FFFF00;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.page-login__game-link:hover {
  background: #a30606;
}

.page-login__cta-section {
  text-align: center;
  margin-top: 50px;
}

.page-login__faq-section {
  padding: 80px 20px;
  background: #FFFFFF;
  color: var(--text-color-dark, #333333);
}

.page-login__faq-list {
  margin-top: 40px;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}

details.page-login__faq-item summary.page-login__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-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f5f5f5;
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-color-dark, #333333);
}

.page-login__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color, #017439);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-color-dark, #333333);
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
}

.page-login__register-cta-section {
  padding: 80px 20px;
  background: var(--primary-color, #017439);
  text-align: center;
  color: #ffffff;
}

.page-login__seo-content {
  padding: 80px 20px;
  background: #FFFFFF;
  color: var(--text-color-dark, #333333);
  line-height: 1.7;
}

.page-login__seo-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color, #017439);
}

.page-login__seo-subtitle {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--primary-color, #017439);
}

.page-login__seo-content p {
  margin-bottom: 15px;
  font-size: 1rem;
}

.page-login__seo-content strong {
  color: var(--primary-color, #017439);
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 30px 20px;
  }

  .page-login__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }

  .page-login__description {
    font-size: 1.05rem;
  }

  .page-login__form-section, .page-login__benefits-section, .page-login__guide-section, .page-login__explore-section, .page-login__faq-section, .page-login__register-cta-section, .page-login__seo-content {
    padding: 60px 20px;
  }

  .page-login__benefits-grid, .page-login__guide-steps, .page-login__games-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
  }

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

  .page-login__section-title, .page-login__seo-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }

  .page-login__seo-subtitle {
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  }
}

@media (max-width: 849px) {
  .page-login__hero-image img {
    object-fit: contain !important; /* Prevent cropping on smaller screens */
    aspect-ratio: unset !important;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding, not --header-offset */
    min-height: unset;
  }

  .page-login__hero-image {
    max-height: 400px;
  }

  .page-login__hero-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important; /* Force contain for mobile */
    aspect-ratio: unset !important;
  }

  .page-login__hero-content {
    padding: 25px 15px;
    margin-top: 15px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
    line-height: 1.3;
  }

  .page-login__description {
    font-size: 1rem;
    margin-bottom: 25px;
  }

  /* 按钮与按钮容器 */
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login 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: 12px 15px;
    font-size: 1rem;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__container,
  .page-login__form-section,
  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__explore-section,
  .page-login__faq-section,
  .page-login__register-cta-section,
  .page-login__seo-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__form-section, .page-login__benefits-section, .page-login__guide-section, .page-login__explore-section, .page-login__faq-section, .page-login__register-cta-section, .page-login__seo-content {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .page-login__section-title, .page-login__seo-title {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }

  .page-login__login-form {
    padding: 25px;
  }

  .page-login__form-label {
    font-size: 0.95rem;
  }

  .page-login__form-input {
    padding: 12px 15px;
    font-size: 0.95rem;
  }

  .page-login__submit-btn {
    padding: 14px 15px;
    font-size: 1rem;
  }

  .page-login__no-account {
    font-size: 0.9rem;
    margin-top: 25px;
  }

  .page-login__benefits-grid, .page-login__guide-steps, .page-login__games-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-login__benefit-card, .page-login__step-item, .page-login__game-card {
    padding: 25px;
  }

  .page-login__benefit-title, .page-login__step-title, .page-login__game-title {
    font-size: 1.2rem;
  }

  .page-login__benefit-text, .page-login__step-text, .page-login__game-text {
    font-size: 0.9rem;
  }

  .page-login__troubleshooting {
    padding: 20px;
  }

  .page-login__troubleshooting-title {
    font-size: 1.2rem;
  }

  .page-login__troubleshooting-list {
    font-size: 0.9rem;
    padding-left: 20px;
  }

  .page-login__game-link {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px;
  }

  .page-login__faq-qtext {
    font-size: 15px;
  }

  .page-login__faq-toggle {
    font-size: 20px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 15px 15px;
  }

  .page-login__faq-answer p {
    font-size: 0.95rem;
  }

  .page-login__seo-subtitle {
    font-size: clamp(1.2rem, 4vw, 1.6rem);
    margin-top: 30px;
    margin-bottom: 15px;
  }

  .page-login__seo-content p {
    font-size: 0.95rem;
  }
}