.page-register {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Ensure image is above content */
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles main offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Fallback for image */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  min-height: 300px; /* Ensure image is not too small */
}

.page-register__hero-content {
  position: relative; /* Not absolute, to ensure it flows below image */
  z-index: 1;
  max-width: 900px;
  margin-top: 30px; /* Space from image */
  padding: 0 20px;
}

.page-register__hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FFFF00; /* Register/Login font color */
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-register__hero-description {
  font-size: 1.15rem;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Sections */
.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Register/Login font color for titles */
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #ffffff;
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow long words to break */
}

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

.page-register__btn-primary:hover {
  background-color: #e00b0b;
  transform: translateY(-2px);
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #FFFF00;
}

.page-register__btn-secondary:hover {
  background-color: #FFFF00;
  color: #C30808;
  transform: translateY(-2px);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color for consistency */
  color: #ffffff;
}

.page-register__benefits-section .page-register__section-title {
  color: #FFFF00;
}
.page-register__benefits-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__benefit-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.1);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 200px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 150px; /* Enforce min size */
}

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

.page-register__benefit-text {
  font-size: 1rem;
  color: #e0e0e0;
}

/* Registration Steps Section */
.page-register__registration-steps-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__registration-steps-section .page-register__section-title {
  color: #FFFF00;
}
.page-register__registration-steps-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__step-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__step-number {
  font-size: 3rem;
  font-weight: 700;
  color: #C30808;
  margin-bottom: 15px;
}

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

.page-register__step-text {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-register__cta-container {
  text-align: center;
  margin-top: 60px;
}

.page-register__cta-text {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 30px;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff;
}

.page-register__security-section .page-register__section-title {
  color: #FFFF00;
}
.page-register__security-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__feature-item {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-icon {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 150px; /* Enforce min size */
}

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

.page-register__feature-text {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-register__feature-text a {
  color: #FFFF00;
  text-decoration: underline;
}
.page-register__feature-text a:hover {
  color: #ffffff;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-register__promotions-section .page-register__section-title {
  color: #FFFF00;
}
.page-register__promotions-section .page-register__section-description {
  color: #ffffff;
}

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

.page-register__promotion-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.page-register__promotion-card:hover {
  transform: translateY(-5px);
}

.page-register__promotion-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-register__promotion-card h3,
.page-register__promotion-card p {
  padding: 0 25px;
}

.page-register__promotion-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #FFFF00;
  margin-top: 20px;
  margin-bottom: 10px;
}

.page-register__promotion-text {
  font-size: 1rem;
  color: #e0e0e0;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #0a0a0a; /* Body background color for consistency */
  color: #ffffff;
}

.page-register__faq-section .page-register__section-title {
  color: #FFFF00;
}

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

.page-register__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FFFF00;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For <details> tag */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for <details> */
}

.page-register__faq-question:hover {
  background: rgba(255, 255, 255, 0.12);
}

.page-register__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  color: #C30808;
  transition: transform 0.3s ease;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
  color: #FFFF00;
}

.page-register__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1rem;
  color: #e0e0e0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.page-register__faq-item[open] .page-register__faq-answer {
  max-height: 500px; /* Sufficiently large to show content */
  transition: max-height 0.5s ease-in;
}

.page-register__faq-answer p {
  margin: 0;
}

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

.page-register__final-cta-section .page-register__section-title {
  color: #FFFF00;
}
.page-register__final-cta-section .page-register__section-description {
  color: #ffffff;
}

/* General Image and Container Responsiveness */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  box-sizing: border-box; /* Ensure padding/border is included in width */
}

.page-register__section,
.page-register__card,
.page-register__container,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent horizontal scroll from content */
}

/* --- Responsive Styles (Mobile) --- */
@media (max-width: 768px) {
  .page-register__container {
    padding: 15px;
  }

  /* HERO 主图区域 */
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
  }

  .page-register__hero-image {
    min-height: 200px !important;
  }

  .page-register__hero-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-top: 20px;
  }

  .page-register__hero-description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-register__hero-cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px;
  }

  /* 通用图片与容器 */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Allow images to scale down */
    min-height: unset !important;
  }

  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__cta-buttons,
  .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;
    overflow: hidden;
  }

  /* 按钮与按钮容器 */
  .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;
  }

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

  /* 其他内容模块 */
  .page-register__section-title {
    font-size: clamp(1.8rem, 6vw, 2.2rem);
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-register__benefits-grid,
  .page-register__steps-grid,
  .page-register__security-features,
  .page-register__promotion-cards {
    grid-template-columns: 1fr; /* Single column layout for grids */
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__step-card,
  .page-register__feature-item,
  .page-register__promotion-card {
    padding: 20px;
  }

  .page-register__benefit-icon,
  .page-register__feature-icon {
    max-width: 150px; /* Adjust size for mobile */
    min-width: 150px !important;
    min-height: 100px !important;
  }

  .page-register__promotion-image {
    height: 180px; /* Adjust height for mobile */
    min-width: 180px !important;
    min-height: 180px !important;
  }

  .page-register__faq-question {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px 20px;
  }

  .page-register__cta-text {
    font-size: 1rem;
  }
}