/* Base styles for the register page */
.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
}

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

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #FFF5E1; /* Text Main */
}

.page-register__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #FFF5E1;
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  background-color: #7A0E0E; /* Deep Red */
  overflow: hidden;
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

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

.page-register__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #FFCC66; /* Glow */
}

.page-register__hero-description {
  font-size: 20px;
  margin-bottom: 30px;
  color: #FFF5E1;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border: 2px solid #F4D34D; /* Gold */
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__btn-secondary {
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  border: 2px solid #F2B544; /* Border */
}

.page-register__btn-secondary:hover {
  background: #C91F17; /* Main Color */
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background: #7A0E0E; /* Deep Red */
}

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

.page-register__benefit-card {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1; /* Text Main */
  border: 1px solid #F2B544; /* Border */
}

.page-register__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-register__card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
}

.page-register__card-text {
  font-size: 16px;
  color: #FFF5E1;
}

/* How-To-Register Section */
.page-register__how-to-register-section {
  padding: 80px 0;
  background: #B71C1C; /* Background */
}

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

.page-register__step-item {
  background: #D32F2F; /* Card BG */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  color: #7A0E0E; /* Deep Red for contrast */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 0 15px rgba(255, 204, 102, 0.5);
}

.page-register__step-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
}

.page-register__step-text {
  font-size: 16px;
  color: #FFF5E1;
  flex-grow: 1;
}

.page-register__step-image {
  width: 100%;
  height: auto;
  max-height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  display: block;
}

.page-register__important-notes {
  background: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  color: #FFF5E1;
  border: 1px solid #F2B544; /* Border */
}

.page-register__notes-title {
  font-size: 24px;
  color: #FFCC66; /* Glow */
  margin-bottom: 20px;
  text-align: center;
}

.page-register__notes-list {
  list-style-type: disc;
  padding-left: 25px;
  font-size: 16px;
}

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

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

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #F2B544; /* Border */
  overflow: hidden;
  background: #D32F2F; /* Card BG */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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;
  color: #FFCC66; /* Glow */
  font-weight: 600;
}

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: #C91F17; /* Main Color */
}

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

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

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 25px;
  background: #7A0E0E; /* Deep Red */
  border-radius: 0 0 10px 10px;
  color: #FFF5E1;
  font-size: 16px;
}

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

/* Bottom CTA Section */
.page-register__cta-bottom-section {
  padding: 80px 0;
  background: #7A0E0E; /* Deep Red */
  text-align: center;
}

/* General Image Styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
  .page-register__main-title {
    font-size: clamp(2.2em, 4.5vw, 3em);
  }
  .page-register__section-title {
    font-size: 32px;
  }
  .page-register__section-description {
    font-size: 17px;
  }
  .page-register__hero-image-wrapper {
    max-height: 500px;
  }
  .page-register__benefits-grid,
  .page-register__steps-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 17px;
  }
  .page-register__card-title {
    font-size: 22px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-register__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* HERO 主图区域 */
  .page-register__hero-section {
    padding-top: 10px;
    padding-bottom: 40px;
  }
  .page-register__hero-image-wrapper {
    max-height: unset;
    margin-bottom: 20px;
  }
  .page-register__hero-image {
    object-fit: contain !important; /* 强制 contain */
    aspect-ratio: unset !important; /* 解除比例限制 */
    width: 100% !important;
    height: auto !important;
  }
  .page-register__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-register__hero-description {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    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-left: 15px;
    padding-right: 15px;
  }
  .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: 0px;
    padding-right: 0px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  /* 通用图片与容器 */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-register__section-description {
    font-size: 15px;
    margin-bottom: 30px;
  }

  /* 产品展示图区域 (Benefits Grid acts as a content grid) */
  .page-register__benefits-section {
    padding: 50px 0;
  }
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-card {
    padding: 20px;
  }
  .page-register__card-title {
    font-size: 20px;
  }
  .page-register__card-text {
    font-size: 15px;
  }

  /* How-To-Register Section */
  .page-register__how-to-register-section {
    padding: 50px 0;
  }
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 30px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
  .page-register__step-title {
    font-size: 18px;
  }
  .page-register__step-text {
    font-size: 15px;
  }
  .page-register__important-notes {
    padding: 20px;
  }
  .page-register__notes-title {
    font-size: 20px;
  }
  .page-register__notes-list {
    font-size: 15px;
    padding-left: 20px;
  }

  /* FAQ Section */
  .page-register__faq-section {
    padding: 50px 0;
  }
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
  }
  .page-register__faq-qtext {
    font-size: 16px;
  }
  .page-register__faq-toggle {
    font-size: 24px;
    width: 24px;
    height: 24px;
  }
  details.page-register__faq-item .page-register__faq-answer {
    padding: 0 20px 20px;
  }
  .page-register__faq-answer p {
    font-size: 15px;
  }

  /* Bottom CTA Section */
  .page-register__cta-bottom-section {
    padding: 50px 0;
  }
}