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

/* General styles for the page-register scope */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, explicit for scope */
}

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

.page-register__dark-bg {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff; /* Auxiliary brand color for light sections */
  color: #333333; /* Dark text for light background */
}

.page-register__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #FFFF00; /* Custom color for register/login font */
  font-weight: bold;
}

.page-register__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
  font-weight: bold;
}

.page-register__sub-title {
  font-size: 1.5em;
  margin-top: 25px;
  margin-bottom: 15px;
  color: inherit;
  font-weight: bold;
}

.page-register__description,
.page-register__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-register__text-block--center {
    text-align: center;
}

.page-register__text-block a {
    color: #FFFF00; /* Link color within text blocks */
    text-decoration: underline;
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register button */
  color: #FFFFFF; /* Changed from #FFFF00 to #FFFFFF for contrast on #C30808 */
  border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
  color: #FFFFFF; /* Ensure hover also has white text */
}

/* Secondary button on dark background (default for page-register) */
.page-register__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for Register/Login font on dark background */
  border: 2px solid #C30808; /* Border matches primary button background for consistency */
}

.page-register__btn-secondary:hover {
  background-color: #C30808;
  color: #FFFFFF; /* White text on hover for contrast */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
}

.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-register__hero-content {
  flex: 1;
  text-align: left;
  max-width: 600px;
}

.page-register__hero-content .page-register__main-title {
  text-align: left;
  font-size: 3.5em;
  line-height: 1.2;
}

.page-register__hero-content .page-register__description {
  text-align: left;
  font-size: 1.2em;
}

.page-register__hero-content .page-register__btn-primary {
  margin-top: 30px;
  font-size: 1.2em;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
}

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

.page-register__benefit-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05); /* Slightly transparent dark for light section */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  color: #333333;
}

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

.page-register__benefit-card .page-register__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Ensure images are not too small */
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-card .page-register__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand color for titles */
}

.page-register__benefit-card .page-register__card-text {
  font-size: 1em;
  color: #555555;
  text-align: center;
}

/* Process Section */
.page-register__process-section {
  padding: 80px 0;
}

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

.page-register__step-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1); /* Light transparent for dark section */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for numbers */
  margin-bottom: 15px;
}

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

.page-register__step-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Security Section */
.page-register__security-section {
  padding: 80px 0;
}

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

.page-register__security-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-register__security-text {
  flex: 1;
  text-align: left;
  color: #333333;
}

.page-register__security-text p {
  margin-bottom: 15px;
  font-size: 1.05em;
}

/* Specific adjustment for secondary button on light background, like in security section */
.page-register__security-text .page-register__btn-secondary {
  color: #017439; /* Brand green for text on light background for contrast */
  border-color: #017439;
}

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

/* Promotions Section */
.page-register__promotions-section {
  padding: 80px 0;
}

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

.page-register__promo-card {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  color: #ffffff;
}

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

.page-register__promo-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__promo-card .page-register__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom color for titles */
}

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

.page-register__promo-card .page-register__btn-primary {
  margin-top: 20px;
  background-color: #C30808; /* Custom color for Register button */
  color: #FFFFFF; /* Custom color for Register/Login font */
}
.page-register__promo-card .page-register__btn-primary:hover {
    background-color: #a00606;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
}

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

.page-register__faq-item {
  background: rgba(0, 0, 0, 0.05); /* Slightly transparent dark for light section */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  color: #333333;
}

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: 1px solid transparent;
}

.page-register__faq-item[open] .page-register__faq-question .page-register__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'minus' effect */
}


.page-register__faq-question::-webkit-details-marker {
  display: none;
}

.page-register__faq-question::marker {
  display: none;
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.2s ease;
  color: #017439; /* Brand color for toggle icon */
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  background-color: #ffffff;
  color: #555555;
  font-size: 1em;
  border-top: 1px solid #e0e0e0; /* Add border for visual separation */
}

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

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  text-align: center;
}

.page-register__cta-final-section .page-register__section-title {
  color: #FFFF00; /* Custom color for titles */
}

.page-register__cta-final-section .page-register__text-block {
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-section .page-register__hero-content .page-register__main-title {
    font-size: 2.8em;
  }
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-content {
    text-align: center;
    max-width: 100%;
  }
  .page-register__hero-content .page-register__main-title,
  .page-register__hero-content .page-register__description {
    text-align: center;
  }
  .page-register__security-content {
    flex-direction: column;
  }
  .page-register__security-image {
    max-width: 80%;
  }
  .page-register__security-text {
    text-align: center;
  }
  .page-register__security-text p {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: 2em !important;
  }
  .page-register__section-title {
    font-size: 1.8em !important;
  }
  .page-register__sub-title {
    font-size: 1.3em !important;
  }
  .page-register__description,
  .page-register__text-block,
  .page-register__card-text,
  .page-register__step-description,
  .page-register__faq-answer p {
    font-size: 0.95em !important;
  }

  /* Images responsive */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Video responsive - not used on this page, but for completeness */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Containers for images/videos */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__security-image,
  .page-register__promo-image,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Buttons responsive */
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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: 12px 20px !important;
    font-size: 1em !important;
  }
  .page-register__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-register__hero-content .page-register__btn-primary {
    margin-top: 20px;
  }
  .page-register__benefits-grid,
  .page-register__process-steps,
  .page-register__promotions-grid {
    grid-template-columns: 1fr;
  }
  .page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
  }
}