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

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

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

.page-register__section-title {
  font-size: 38px;
  font-weight: 700;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-register__section-description {
  font-size: 18px;
  color: #4A5C6D;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, main offset from body */
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%); /* Blend with brand colors */
}

.page-register__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for desktop */
  overflow: hidden;
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover container, but will change for mobile */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  padding: 40px 15px 60px;
  max-width: 900px;
  color: #ffffff;
}

.page-register__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Responsive font size */
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.page-register__tagline {
  font-size: 20px;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #e0e0e0;
}

.page-register__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  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: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 180px;
  text-align: center;
}

.page-register__btn-primary {
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(47, 107, 255, 0.4);
}

.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.6);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: #2F6BFF; /* Main color */
  border: 2px solid #2F6BFF; /* Border color */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-register__btn-secondary:hover {
  background: #f0f5ff;
  color: #1a56cc;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 20px;
  min-width: 220px;
}

/* Why Join Section */
.page-register__why-join-section {
  background-color: #ffffff;
}

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

.page-register__benefit-card {
  background: #ffffff;
  border: 1px solid #D6E2FF; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(47, 107, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(47, 107, 255, 0.15);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-register__benefit-title {
  font-size: 22px;
  font-weight: 700;
  color: #2F6BFF; /* Main color */
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-register__benefit-text {
  font-size: 16px;
  color: #4A5C6D;
  line-height: 1.7;
  flex-grow: 1;
}

/* Steps Section */
.page-register__steps-section {
  background: #2F6BFF; /* Main color */
  color: #ffffff;
}

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

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

.page-register__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background: #ffffff;
  color: #2F6BFF; /* Main color */\  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 25px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-register__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-register__step-text {
  font-size: 16px;
  color: #e0e0e0;
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

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

/* App Download Section */
.page-register__app-download-section {
  background-color: #F4F7FB;
}

.page-register__app-download-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-register__app-text-block {
  flex: 1;
}

.page-register__app-image-block {
  flex: 1;
  text-align: center;
}

.page-register__app-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.page-register__app-cta-buttons {
  display: flex;
  gap: 15px;
  margin-top: 30px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.page-register__btn-app-download {
  min-width: 160px;
  padding: 12px 25px;
  font-size: 16px;
}

.page-register__small-text {
  font-size: 14px;
  color: #667eea;
  margin-top: 10px;
}

/* FAQ Section */
.page-register__faq-section {
  background-color: #ffffff;
}

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

details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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;
  font-size: 18px;
  font-weight: 600;
  color: #1F2D3D; /* Text Main */
}

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: #f0f5ff;
}

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

.page-register__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

details.page-register__faq-item .page-register__faq-answer {
  padding: 0 25px 20px;
  background: #F4F7FB; /* Background color */
  border-radius: 0 0 10px 10px;
  font-size: 16px;
  color: #4A5C6D;
  line-height: 1.7;
}

/* Final CTA Section */
.page-register__final-cta-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
  color: #ffffff;
  text-align: center;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 34px;
  }
  .page-register__hero-content {
    padding: 30px 15px 50px;
  }
  .page-register__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-register__tagline {
    font-size: 18px;
  }
  .page-register__app-download-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-register__app-image-block {
    order: -1; /* Image above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-register__section-padding {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  /* HERO 主图区域 */
  .page-register__hero-section {
    padding-top: 10px;
  }
  .page-register__hero-image-wrapper {
    max-height: 400px;
  }
  .page-register__hero-image {
    object-fit: contain !important; /* 禁止 cover 裁切两侧 */
    aspect-ratio: unset !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-register__hero-content {
    padding: 20px 15px 40px;
  }
  .page-register__main-title {
    font-size: clamp(24px, 6vw, 36px) !important;
    margin-bottom: 15px;
  }
  .page-register__tagline {
    font-size: 16px;
    margin-bottom: 25px;
  }
  .page-register__cta-buttons {
    flex-direction: column !important; /* 多个按钮垂直排列 */
    gap: 15px;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px;
    box-sizing: border-box;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register__btn-large {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 16px !important;
    min-width: unset;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  /* 产品展示图区域 (Benefits Grid) */
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-card {
    padding: 20px;
  }
  .page-register__benefit-icon {
    max-width: 200px;
  }
  .page-register__benefit-title {
    font-size: 20px;
  }
  .page-register__benefit-text {
    font-size: 15px;
  }

  /* Steps Section */
  .page-register__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__step-card {
    padding: 25px;
  }
  .page-register__step-title {
    font-size: 20px;
  }
  .page-register__step-text {
    font-size: 15px;
  }
  .page-register__step-image {
    max-width: 300px;
  }

  /* App Download Section */
  .page-register__app-download-content {
    gap: 20px;
  }
  .page-register__app-cta-buttons {
    flex-direction: column !important;
    gap: 10px;
  }
  .page-register__btn-app-download {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
  }
  .page-register__small-text {
    text-align: center;
  }

  /* FAQ Section */
  details.page-register__faq-item summary.page-register__faq-question {
    padding: 15px 20px;
    font-size: 16px;
  }
  .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 15px;
    font-size: 15px;
  }

  /* 装饰主标题 + 长文 SEO 区 (general text blocks) */
  .page-register__article-body, .page-register__text-block {
    padding: 0 15px;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-register__article-figure {
    margin: 20px auto;
    max-width: 100% !important;
  }
  .page-register__article-figure img {
    width: 100% !important;
    height: auto !important;
  }
  .page-register__light-bg,
  .page-register__dark-bg {
    padding: 40px 15px;
  }
}