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

/* Base Styles for .page-register */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  /* Assuming var(--bg-dark) is dark, set text color to white for contrast */
  color: #ffffff;
  background-color: var(--bg-dark); /* Inherit from shared.css */
}

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

.page-register__section {
  padding: 80px 0;
}

.page-register__dark-bg {
  background-color: #26A9E0; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

.page-register__text-white {
  color: #ffffff;
}

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

.page-register__main-title,
.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* Default for dark background sections */
}

.page-register__section-title:not(.page-register__text-white) {
  color: #26A9E0; /* Brand color for titles on light backgrounds */
}

.page-register__hero-description,
.page-register__section-description {
  font-size: 1.1em;
  margin-bottom: 30px;
  opacity: 0.9;
}

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

.page-register__btn-primary {
  background-color: #EA7C07; /* Login color as specified */
  color: #ffffff;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
  margin-left: 15px;
}

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

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  width: 100%;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.page-register__hero-content {
  text-align: center;
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  object-fit: cover;
  width: 100%;
  height: 100%;
  opacity: 0.3; /* Subtle background image */
  filter: none; /* Ensure no filter changes color */
}

/* Why Register Section */
.page-register__why-register {
  background-color: var(--bg-dark); /* Dark background from shared */
  color: #ffffff;
}

.page-register__why-register .page-register__section-title {
  color: #ffffff;
}

.page-register__why-register .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__feature-card {
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 450px; /* Ensure cards have some height */
}

.page-register__feature-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  filter: none; /* Ensure no filter changes color */
}

.page-register__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for card titles on light background */
}

.page-register__card-text {
  font-size: 1em;
  color: #333333;
}

/* Registration Guide Section */
.page-register__registration-guide {
  background-color: #26A9E0; /* Brand primary color */
}

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

.page-register__step-item {
  text-align: center;
  position: relative;
  padding: 30px;
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  min-height: 350px; /* Ensure steps have some height */
}

.page-register__step-number {
  font-size: 3em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
  display: inline-block;
  background-color: #EA7C07; /* Login color */
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 80px;
}

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

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

.page-register__link-inline {
  color: #EA7C07; /* Highlight links with login color */
  text-decoration: underline;
}

.page-register__link-inline:hover {
  color: #d16d06;
}

.page-register__center-cta {
  text-align: center;
  margin-top: 60px;
}

/* Terms and Conditions Section */
.page-register__terms-conditions {
  background-color: var(--bg-dark); /* Dark background from shared */
  color: #ffffff;
}

.page-register__terms-conditions .page-register__section-title {
  color: #ffffff;
}

.page-register__terms-conditions .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__term-item {
  padding: 30px;
  border-radius: 12px;
  text-align: left;
  min-height: 300px; /* Ensure terms have some height */
}

.page-register__term-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Brand color for titles on light background */
}

.page-register__term-text {
  font-size: 1em;
  color: #333333;
}

.page-register__note {
  margin-top: 40px;
  font-size: 1.1em;
  text-align: center;
  color: #f0f0f0;
}

/* FAQ Section */
.page-register__faq {
  background-color: #26A9E0; /* Brand primary color */
}

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.2em;
  font-weight: bold;
}

.page-register__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #ffffff;
}

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

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

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
  font-size: 1em;
}

/* IMPORTANT: Ensure FAQ answer expands */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px 25px 25px; /* Adjust padding for expanded state */
}

/* Final CTA Section */
.page-register__cta-final {
  background-color: var(--bg-dark); /* Dark background from shared */
  color: #ffffff;
}

.page-register__cta-final .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-final .page-register__section-description {
  color: #f0f0f0;
}

.page-register__cta-final .page-register__btn-secondary {
  margin-top: 20px;
  margin-left: 0; /* Remove margin for stacking on mobile */
}

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

  .page-register__container {
    padding: 0 15px;
  }

  .page-register__section {
    padding: 60px 0;
  }

  .page-register__main-title,
  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    flex-direction: column;
  }

  .page-register__hero-content {
    padding: 0 15px;
  }

  .page-register__hero-image-wrapper {
    position: relative; /* Adjust for mobile layout */
    height: 300px;
    margin-top: 30px;
  }

  .page-register__feature-grid,
  .page-register__steps-grid,
  .page-register__terms-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .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;
    margin-left: 0;
    margin-bottom: 10px;
  }

  .page-register__cta-final .page-register__btn-secondary {
    margin-left: 0;
  }

  .page-register__feature-card,
  .page-register__step-item,
  .page-register__term-item,
  .page-register__faq-item {
    padding: 20px;
  }
  
  /* Mobile image responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none !important; /* Ensure no filter changes color */
  }
  
  /* Mobile image container responsiveness */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-image-wrapper,
  .page-register__feature-card,
  .page-register__step-item,
  .page-register__term-item,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Ensure video sections also adapt, though none present in HTML for now */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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;
  }
}

/* Ensure content area images maintain minimum size or scale down responsively */
/* This rule targets all images within .page-register to prevent small icons, except for specific shared elements */
.page-register__hero-image,
.page-register__feature-image {
  min-width: 200px; /* Global minimum size */
  min-height: 200px;
}
@media (max-width: 768px) {
  .page-register__hero-image,
  .page-register__feature-image {
    min-width: unset; /* Allow to scale down on mobile */
    min-height: unset;
  }
}