/* Placeholder for homepage-specific sections not used on register.html */
.page-register__hero-carousel-section,
.page-register__guide-box,
.page-register__guide-grid,
.page-register__guide-card,
.page-register__home-content-box,
.page-register__home-content-inner,
.page-register__blog-section,
.page-register__blog-grid {
  /* These classes are not directly used in register.html's main content,
     but are included in CSS as per "移动端 @media (max-width: 768px) 必写清单" requirement. */
}

/* Base styles for register page */
.page-register {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  line-height: 1.6;
  font-size: 1rem;
}

.page-register__section-description {
  color: #FFF5E1;
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
}

/* Hero Section */
.page-register__hero-section {
  padding: 10px 0 40px; /* Small top padding for shared header offset */
  background: linear-gradient(180deg, #7A0E0E 0%, #B71C1C 100%); /* Deep Red to Background */
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-register__hero-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}
.page-register__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}
.page-register__hero-content h1 {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 */
  color: #FFD86A; /* Gold-like for emphasis */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
.page-register__hero-content p {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFF5E1;
}
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
  color: #7A0E0E; /* Deep Red for text on gold button */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* For general button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-register__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
.page-register__small-button {
  font-size: 0.9em;
  padding: 10px 20px;
  margin-top: 15px;
}

/* Guide Section */
.page-register__guide-section,
.page-register__benefits-section,
.page-register__why-choose-section,
.page-register__faq-section,
.page-register__final-cta-section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.page-register__guide-section h2,
.page-register__benefits-section h2,
.page-register__why-choose-section h2,
.page-register__faq-section h2,
.page-register__final-cta-section h2 {
  font-size: 2.5em;
  color: #FFD86A;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.page-register__guide-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}
.page-register__step-card {
  background: #D32F2F; /* Card BG */
  border: 2px solid #F2B544; /* Border */
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  flex: 1 1 calc(33% - 60px); /* 3 cards per row */
  max-width: calc(33% - 60px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page-register__step-card:hover {
  transform: translateY(-5px);
}
.page-register__step-card img {
   /* Example size for step icons */
  height: auto;
  margin-bottom: 20px;
  border-radius: 10px;
  border: 2px solid #FFCC66; /* Glow */
}
.page-register__step-card h3 {
  font-size: 1.5em;
  color: #FFD86A;
  margin-bottom: 15px;
}
.page-register__step-card p {
  color: #FFF5E1;
  font-size: 1em;
  flex-grow: 1;
}
.page-register__guide-footer {
  margin-top: 50px;
}

/* Benefits Section */
.page-register__benefits-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}
.page-register__benefit-item {
  background: #D32F2F; /* Card BG */
  border: 2px solid #F2B544; /* Border */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}
.page-register__benefit-item img {
   /* Example icon size */
  
  flex-shrink: 0;
  border-radius: 50%;
  border: 2px solid #FFCC66;
  object-fit: cover;
}
.page-register__benefit-item p {
  color: #FFF5E1;
  font-size: 1.1em;
  line-height: 1.5;
}
.page-register__benefits-footer {
  margin-top: 50px;
}

/* Why Choose Section */
.page-register__why-choose-content {
  background: #D32F2F; /* Card BG */
  border: 2px solid #F2B544; /* Border */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
  text-align: center;
}
.page-register__why-choose-content p {
  font-size: 1.15em;
  color: #FFF5E1;
  margin-bottom: 25px;
  line-height: 1.7;
}
.page-register__why-choose-image {
  max-width: 600px;
  height: auto;
  margin: 30px auto;
  display: block;
  border-radius: 10px;
  border: 3px solid #FFCC66;
}
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #B71C1C; /* Background color */
  color: #FFD86A; /* Gold-like for text */
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, color 0.3s ease;
  border: 2px solid #FFD86A;
  max-width: 100%; /* For general button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-register__btn-secondary:hover {
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1;
}

/* FAQ Section */
.page-register__faq-item {
  background: #D32F2F; /* Card BG */
  border: 1px solid #F2B544; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.page-register__faq-question {
  display: block; /* Make summary fill width */
  padding: 20px 25px;
  font-size: 1.2em;
  color: #FFD86A;
  cursor: pointer;
  font-weight: bold;
  position: relative;
  list-style: none; /* Hide default marker */
}
.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit */
}
.page-register__faq-question::after {
  content: '+';
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5em;
  transition: transform 0.3s ease;
  color: #FFD86A;
}
.page-register__faq-item[open] .page-register__faq-question::after {
  content: '-';
  transform: translateY(-50%) rotate(180deg);
}
.page-register__faq-answer {
  padding: 0 25px 20px;
  color: #FFF5E1;
  font-size: 1.05em;
  line-height: 1.6;
}

/* Final CTA Section */
.page-register__final-cta-section {
  text-align: center;
  background: linear-gradient(180deg, #7A0E0E 0%, #B71C1C 100%); /* Deep Red to Background */
  padding: 80px 20px;
}
.page-register__final-cta-section h2 {
  font-size: 2.8em;
  color: #FFD86A;
  margin-bottom: 40px;
}
.page-register__final-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.page-register__final-cta-buttons .page-register__cta-button,
.page-register__final-cta-buttons .page-register__btn-secondary {
  width: auto; /* Reset width for flex-item */
  padding-left: 30px; /* Ensure consistent padding */
  padding-right: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-register__hero-content h1 {
    font-size: clamp(2.2em, 5vw, 3em);
  }
  .page-register__step-card {
    flex: 1 1 calc(50% - 30px); /* 2 cards per row */
    max-width: calc(50% - 30px);
  }
  .page-register__benefits-list {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  .page-register__guide-section h2,
  .page-register__benefits-section h2,
  .page-register__why-choose-section h2,
  .page-register__faq-section h2,
  .page-register__final-cta-section h2 {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  /* General mobile adaptations */
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__guide-section,
  .page-register__benefits-section,
  .page-register__why-choose-section,
  .page-register__faq-section,
  .page-register__final-cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden; /* Ensure no overflow */
  }

  /* Hero Section */
  .page-register__hero-section {
    padding-top: 10px !important; /* Fixed header offset */
    padding-bottom: 30px;
  }
  .page-register__hero-content h1 {
    font-size: clamp(1.8em, 7vw, 2.5em);
    margin-bottom: 15px;
  }
  .page-register__hero-content p {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-register__cta-button,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important; /* !important to override other padding */
    font-size: 1em !important;
  }

  /* Guide Section */
  .page-register__guide-section h2,
  .page-register__benefits-section h2,
  .page-register__why-choose-section h2,
  .page-register__faq-section h2,
  .page-register__final-cta-section h2 {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-register__guide-steps {
    flex-direction: column;
    gap: 20px;
  }
  .page-register__step-card {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }
  .page-register__step-card img {
    
  }
  .page-register__step-card h3 {
    font-size: 1.3em;
  }

  /* Benefits Section */
  .page-register__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__benefit-item {
    padding: 20px;
  }
  .page-register__benefit-item img {
    
    
  }
  .page-register__benefit-item p {
    font-size: 1em;
  }

  /* Why Choose Section */
  .page-register__why-choose-content {
    padding: 30px;
  }
  .page-register__why-choose-content p {
    font-size: 1em;
  }
  .page-register__why-choose-image {
    max-width: 100%;
  }

  /* FAQ Section */
  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }

  /* Final CTA Section */
  .page-register__final-cta-section {
    padding: 50px 15px;
  }
  .page-register__final-cta-section h2 {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-register__final-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  /* Ensure individual buttons are full width in their container */
  .page-register__final-cta-buttons .page-register__cta-button,
  .page-register__final-cta-buttons .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Placeholder for homepage-specific sections not used on register.html, but included in CSS as per "移动端 @media (max-width: 768px) 必写清单" requirement. */
  .page-register__hero-carousel-section {
    /* No specific carousel here, but adapting the general hero section */
    /* If it were a carousel, rules for slides, arrows, dots would go here */
  }
  .page-register__guide-box {
    /* Not using guide-box, but if it were, rules for 5 team cards: */
    /* display: grid; grid-template-columns: repeat(6, 1fr); */
  }
  .page-register__guide-grid {
    /* Not using guide-grid as per homepage spec, but if it were: */
    /* display: grid; grid-template-columns: repeat(6, 1fr); */
  }
  .page-register__guide-card {
    /* Not using guide-card as per homepage spec (team type), but if it were: */
    padding-top: 0 !important;
    /* grid-column: span 3; (for 1st and 2nd) */
    /* grid-column: span 2; (for 3rd, 4th, 5th) */
    /* img { aspect-ratio: 250/350; } */
  }
  .page-register__home-content-box {
    max-width: 100% !important;
    height: auto !important;
    box-shadow: none !important; /* Remove desktop shadow for mobile */
    border: none !important; /* Remove desktop border for mobile */
    padding: 0 !important; /* Remove desktop padding for mobile */
  }
  .page-register__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }
  .page-register__blog-section {
    /* Not using blog-section, but if it were: */
    /* padding: 40px 15px; */
  }
  .page-register__blog-grid {
    /* Not using blog-grid, but if it were: */
    grid-template-columns: repeat(1, 1fr) !important; /* 1 column on mobile */
    gap: 15px !important;
  }
}