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

/* General styles for the page-register scope */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark body background #121212, so light text */
  background-color: transparent; /* Body background is from shared.css */
}

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

.page-register__section-title {
  font-size: 2.8em;
  color: #FFFFFF; /* White for dark background */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-register__card-title {
  font-size: 1.5em;
  color: #FFFFFF; /* White for titles on dark cards */
  margin-top: 15px;
  margin-bottom: 10px;
}

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0; /* Light gray text on dark cards */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box; /* Ensure padding and border are included in the element's total width and height */
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
}

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

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

.page-register__btn-secondary {
  background-color: transparent;
  color: #017439; /* Brand primary color */
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

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

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
  background-color: #1a1a1a; /* Slightly lighter dark background for hero */
}

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay to ensure text readability */
}

.page-register__hero-section .page-register__container {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.page-register__hero-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #121212; /* Match body background */
}

.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-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background-color: #f5f5f5; /* Light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-register__steps-section .page-register__section-title {
  color: #017439; /* Primary color on light background */
}

.page-register__steps-section .page-register__section-description {
  color: #555555;
}

.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: #FFFFFF;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-register__step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #017439;
  color: #ffffff;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-card .page-register__card-title {
  color: #017439;
}

.page-register__step-card .page-register__card-text {
  color: #555555;
}

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

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

.page-register__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-register__security-text {
  flex: 1;
  min-width: 300px;
}

.page-register__security-text .page-register__card-title {
  color: #FFFF00; /* Yellow for highlights */
  margin-top: 25px;
}

.page-register__security-text .page-register__card-text {
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-register__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Bonuses Section */
.page-register__bonuses-section {
  padding: 80px 0;
  background-color: #1a1a1a; /* Darker background */
}

.page-register__bonuses-section .page-register__section-title {
  color: #FFFFFF;
}

.page-register__bonuses-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__bonus-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #121212; /* Match body background */
}

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

.page-register__faq-list {
  max-width: 800px;
  margin: 50px auto 0 auto;
}

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  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;
  background-color: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: #FFFFFF;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #FFFF00; /* Yellow for toggle icon */
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 25px;
}

.page-register__faq-answer p {
  margin: 0;
  color: #f0f0f0;
  font-size: 1em;
}

/* Final CTA Section */
.page-register__cta-final {
  padding: 100px 0;
  background-color: #017439; /* Brand primary color */
  text-align: center;
}

.page-register__cta-final-content {
  max-width: 900px;
}

.page-register__cta-final .page-register__section-title {
  color: #FFFFFF;
  font-size: 3em;
}

.page-register__cta-final .page-register__section-description {
  color: #f0f0f0;
  margin-bottom: 60px;
}

/* Global image styles for content area */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__section-title {
    font-size: 2.5em;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image-wrapper {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile, handled by shared.css variable, but ensure it's applied correctly to main content or hero */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }

  .page-register__hero-title {
    font-size: 2.2em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__section-description {
    font-size: 1em;
  }

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

  .page-register__btn-primary,
  .page-register__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin: 0 auto; /* Center buttons when stacked */
  }

  /* Image responsive adjustments */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important; /* Hero image needs to cover its container */
  }

  /* Card and section containers for mobile */
  .page-register__container,
  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__security-section,
  .page-register__bonuses-section,
  .page-register__faq-section,
  .page-register__cta-final {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-register__faq-answer {
    padding: 0 15px; /* Adjust padding for mobile */
  }
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px 15px;
  }
  .page-register__faq-question {
    padding: 15px 15px;
  }
}