/* style/register.css */

/* --- General Styles for page-register --- */
.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
}

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

.page-register__content-area {
  padding: 40px 20px;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #FF8C1A; /* Primary color for titles */
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-register__main-title {
  font-size: 48px;
  font-weight: bold;
  color: #FFF3E6;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: 20px;
  color: #FFF3E6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-register p {
  margin-bottom: 1em;
  color: #FFF3E6;
}

.page-register strong {
  color: #FFA53A;
}

.page-register__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #FFF3E6;
}

.page-register__list li {
  margin-bottom: 10px;
}

/* --- Hero Section --- */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* 🚨 页头由 shared 的 body { padding-top: var(--header-offset); }承担；此处仅用小额顶距，禁止 var(--header-offset)以免双倍空白 */
  padding-top: 10px;
  overflow: hidden; /* Ensure no image overflow */
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Flex with center alignment needs width 100% */
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
  overflow: hidden; /* Ensure image within container */
  border-radius: 8px;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 900px; /* Constrain content width */
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%); /* Button gradient */
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-register__cta-button:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%); /* Slightly lighter hover */
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-register__cta-button--small {
  padding: 12px 30px;
  font-size: 16px;
  margin-top: 20px;
}

.page-register__cta-button--large {
  padding: 18px 50px;
  font-size: 20px;
  margin-top: 40px;
}

/* --- Grid Layouts --- */
.page-register__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-register__card {
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #A84F0C; /* Border */
}

.page-register__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

.page-register__card-title {
  font-size: 22px;
  font-weight: bold;
  color: #FF8C1A;
  margin-top: 10px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-register__card p {
  font-size: 15px;
  color: #FFF3E6;
}

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

.page-register__card--benefit {
  padding: 30px;
  text-align: left;
}

/* --- Steps Section --- */
.page-register__steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  background-color: #17191F; /* Card BG */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #A84F0C; /* Border */
}

.page-register__step-number {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: #FF8C1A;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  margin-right: 20px;
}

.page-register__step-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A;
  margin-top: 0;
  margin-bottom: 10px;
}

/* --- Security List --- */
.page-register__list--security {
  list-style: none;
  padding: 0;
  margin-left: 0;
}

.page-register__list--security li {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  font-size: 17px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-register__list--security li::before {
  content: '✅'; /* Checkmark icon */
  margin-right: 15px;
  font-size: 20px;
}

/* --- FAQ Section --- */
.page-register__faq-list {
  margin-top: 30px;
}

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #A84F0C; /* Border */
  overflow: hidden;
  background: #17191F; /* Card BG */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-register__faq-item summary.page-register__faq-question:hover {
  background: #1e2128; /* Slightly lighter on hover */
}

.page-register__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #FFF3E6;
}

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FF8C1A;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: #1e2128; /* Darker background for answer */
  border-radius: 0 0 10px 10px;
  color: #FFF3E6;
}

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

/* --- Final CTA Section --- */
.page-register__final-cta {
  text-align: center;
  padding-bottom: 80px;
}

.page-register__final-cta .page-register__section-title {
  color: #FFF3E6;
}

.page-register__final-cta p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-register__copyright {
  margin-top: 50px;
  font-size: 14px;
  color: #A84F0C; /* Border color for subtle copyright */
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: 40px;
  }
  .page-register__hero-description {
    font-size: 18px;
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__card-title {
    font-size: 20px;
  }
  .page-register__step-title {
    font-size: 22px;
  }
  .page-register__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-register__hero-image img {
    border-radius: 4px;
  }

  .page-register__main-title {
    font-size: 32px;
  }
  .page-register__hero-description {
    font-size: 16px;
  }
  .page-register__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__cta-button--small {
    padding: 10px 25px;
    font-size: 15px;
  }
  .page-register__cta-button--large {
    padding: 15px 40px;
    font-size: 18px;
  }

  .page-register__section {
    padding: 40px 15px;
  }
  .page-register__content-area {
    padding: 20px 15px;
  }
  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-register__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__card {
    padding: 20px;
  }
  .page-register__card img {
    min- /* Adjust min height for mobile */
  }
  .page-register__card-title {
    font-size: 18px;
  }
  .page-register__step-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }
  .page-register__step-number {
    margin-right: 0;
    margin-bottom: 15px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__list {
    margin-left: 0;
    text-align: left;
    padding-left: 20px;
  }
  .page-register__list--security li {
    font-size: 15px;
    padding: 12px 15px;
  }
  .page-register__list--security li::before {
    font-size: 18px;
  }

  details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
  .page-register__faq-qtext { font-size: 16px; }
  .page-register__faq-toggle { font-size: 24px; width: 24px; }
  details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }

  /* Mobile image and button responsive rules */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }
  .page-register__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
}

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

/* Color contrast enforcement */
.page-register__dark-bg {
  color: #FFF3E6; /* Light text on dark background */
}
.page-register__card {
  color: #FFF3E6; /* Light text on dark card background */
}
.page-register__cta-button {
  color: #ffffff; /* White text on orange gradient button */
}