/* style/register.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles for the Register Page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #FFFFFF; /* Default body background is white */
}

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

.page-register__section-title {
  font-size: 2.5em;
  color: #017439;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__text-link {
  color: #017439;
  text-decoration: underline;
}

.page-register__text-link:hover {
  color: #005f2e;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f8f8; /* Light background for hero */
  color: #333333;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-register__hero-content {
  max-width: 800px;
  z-index: 1;
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__hero-title {
  font-size: 3em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-register__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly dim the background image for text readability */
}

/* Call to Action Buttons */
.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-register__cta-buttons--center {
  margin-top: 40px;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Allow text to break words */
  box-sizing: border-box; /* Include padding and border in element's total width and height */
  max-width: 100%; /* Ensure buttons don't exceed container width */
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: #a30606;
  border-color: #a30606;
}

.page-register__btn-primary--large {
  font-size: 1.3em;
  padding: 18px 35px;
}

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

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

.page-register__benefit-card {
  background-color: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 450px; /* Ensure cards have consistent height */
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  width: 250px; /* At least 200px */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-text {
  font-size: 1em;
  color: #555555;
  flex-grow: 1;
}

/* Steps Section */
.page-register__steps-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-register__steps-section .page-register__section-title,
.page-register__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-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  font-size: 2.5em;
  color: #FFFF00; /* Yellow for step numbers */
  font-weight: bold;
  margin-bottom: 15px;
  background-color: rgba(195, 8, 8, 0.8); /* Red background for numbers */
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-register__step-title {
  font-size: 1.4em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__image-wrapper {
  margin-top: 50px;
  text-align: center;
}

.page-register__flow-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

/* Security Section */
.page-register__security-section {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

.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-color: #ffffff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  min-height: 200px;
}

.page-register__feature-title {
  font-size: 1.4em;
  color: #017439;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Promotions Section */
.page-register__promotions-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

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

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

.page-register__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__promo-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 15px;
  min-width: 200px; /* Minimum size */
  min-height: 200px; /* Minimum size */
}

.page-register__promo-title {
  font-size: 1.5em;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__promo-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 60px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333;
}

.page-register__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__faq-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff; /* White text for question */
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-register__faq-question:hover {
  background-color: #005f2e;
}

.page-register__faq-title {
  font-size: 1.2em;
  margin: 0;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff; /* White background for answer */
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px;
}

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

/* Final CTA Section */
.page-register__final-cta-section {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
  text-align: center;
}

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

.page-register__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    min-height: 500px;
  }
  .page-register__hero-content {
    padding: 30px;
  }
  .page-register__hero-title {
    font-size: 2em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__section-title {
    font-size: 1.8em;
  }
  .page-register__section-description {
    font-size: 0.95em;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-register__container {
    padding: 0 15px;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/videos must be constrained */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__image-wrapper,
  .page-register__promo-card,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Specific padding for sections in mobile to prevent overflow */
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__promotions-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
  }

  /* Content area image CSS dimensions lower than 200px are forbidden */
  /* These rules ensure content images are not smaller than 200px */
  .page-register__benefit-icon,
  .page-register__flow-image,
  .page-register__promo-image {
    min-width: 200px !important;
    min-height: 200px !important;
  }
}

@media (max-width: 480px) {
  .page-register__hero-title {
    font-size: 1.8em;
  }
  .page-register__section-title {
    font-size: 1.5em;
  }
  .page-register__benefit-title,
  .page-register__step-title,
  .page-register__feature-title,
  .page-register__promo-title,
  .page-register__faq-title {
    font-size: 1.2em;
  }
  .page-register__hero-content {
    padding: 20px;
  }
}

/* Ensure no filter on images */
.page-register img {
  filter: none !important; /* Explicitly remove any potential filter */
}