/* style/register.css */

/* General styles for the page-register scope */
.page-register {
  background-color: #0A0A0A; /* Background color from custom palette */
  color: #FFF6D6; /* Main text color from custom palette */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-register__section-title {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #F2C14E; /* Main brand color for titles */
  line-height: 1.2;
}

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

/* Hero Section */
.page-register__hero-section {
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 60px;
  background-color: #0A0A0A; /* Ensure background consistency */
}

.page-register__hero-content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

.page-register__hero-text-block {
  flex: 1;
  text-align: left;
}

.page-register__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
  font-weight: 700;
  color: #FFD36B; /* Auxiliary brand color for H1 */
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-register__intro-description {
  font-size: 1.2em;
  color: #FFF6D6;
  margin-bottom: 30px;
}

.page-register__hero-image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(242, 193, 78, 0.5); /* Glow effect */
}

/* CTA Buttons */
.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button--primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  border: none;
  margin-right: 15px;
}

.page-register__cta-button--primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-register__cta-button--secondary {
  background: #111111; /* Card BG */
  color: #F2C14E; /* Main brand color */
  border: 2px solid #F2C14E; /* Border from main brand color */
}

.page-register__cta-button--secondary:hover {
  background: #F2C14E;
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-register__cta-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Benefits Section */
.page-register__benefits-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

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

.page-register__benefit-card {
  background-color: #111111; /* Card BG */
  border: 1px solid #3A2A12; /* Border color */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(242, 193, 78, 0.3);
}

.page-register__benefit-icon {
  width: 100%; /* Ensure images fill card width */
  height: auto;
  max-height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__benefit-title {
  font-size: 1.5em;
  color: #FFD36B; /* Auxiliary brand color */
  margin-bottom: 15px;
}

.page-register__benefit-text {
  color: #FFF6D6;
  font-size: 1em;
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-register__guide-steps {
  display: grid;
  grid-template-columns: 1fr; /* Single column layout for steps */
  gap: 60px;
}

.page-register__step-card {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__step-number {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

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

.page-register__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 25px;
  box-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-register__step-text {
  color: #FFF6D6;
  font-size: 1.1em;
  text-align: left;
  max-width: 800px;
}

.page-register__step-text ul {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 15px;
}

.page-register__step-text li {
  margin-bottom: 8px;
  color: #FFF6D6;
}

/* Notes Section */
.page-register__notes-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-register__notes-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
}

.page-register__note-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-register__note-title {
  font-size: 1.4em;
  color: #FFD36B;
  margin-bottom: 15px;
}

.page-register__note-text {
  color: #FFF6D6;
  font-size: 1em;
}

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

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

.page-register__faq-item {
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #FFF6D6;
}

.page-register__faq-item summary {
  list-style: none; /* Hide default marker */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #F2C14E;
  font-weight: bold;
  font-size: 1.1em;
  position: relative;
}

.page-register__faq-item summary::-webkit-details-marker {
  display: none; /* For Webkit browsers */
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.page-register__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #FFD36B;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg); /* Change '+' to 'x' or similar */
}

.page-register__faq-answer {
  padding: 0 25px 20px;
  color: #FFF6D6;
  font-size: 1em;
  text-align: left;
}

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

/* CTA Bottom Section */
.page-register__cta-bottom-section {
  padding: 80px 0;
  background-color: #0A0A0A;
}

.page-register__cta-bottom-content {
  text-align: center;
  background-color: #111111;
  border: 1px solid #3A2A12;
  border-radius: 12px;
  padding: 50px;
  box-shadow: 0 0 25px rgba(242, 193, 78, 0.3);
}

.page-register__cta-bottom-content .page-register__section-title {
  margin-bottom: 15px;
}

.page-register__cta-bottom-content .page-register__section-description {
  margin-bottom: 30px;
}

/* General image and button mobile rules */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-register a[class*="button"],
.page-register a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* -------------------------------------------------------------------------- */
/*                            Responsive Design (Max-width: 768px)            */
/* -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .page-register__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__hero-section {
    padding-top: 10px !important; /* Ensure small padding */
    padding-bottom: 40px;
  }

  .page-register__hero-content-wrapper {
    flex-direction: column;
    gap: 30px;
    padding: 15px;
  }

  .page-register__hero-text-block {
    text-align: center;
  }

  .page-register__main-title {
    font-size: 2em; /* Smaller H1 for mobile */
  }

  .page-register__intro-description {
    font-size: 1em;
  }

  .page-register__cta-button {
    width: 100% !important;
    margin-bottom: 15px;
    margin-right: 0;
    padding: 12px 20px;
  }
  
  .page-register__cta-bottom-content .page-register__cta-button {
    margin-bottom: 15px;
    margin-right: 0;
  }

  .page-register__cta-bottom-content .page-register__cta-button--primary {
    margin-bottom: 15px;
  }
  .page-register__cta-bottom-content .page-register__cta-button--secondary {
    margin-bottom: 0;
  }

  .page-register__benefits-section,
  .page-register__guide-section,
  .page-register__notes-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 0;
  }

  .page-register__section-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-register__benefits-grid,
  .page-register__notes-list {
    grid-template-columns: 1fr; /* Single column for cards */
    gap: 20px;
  }

  .page-register__benefit-card,
  .page-register__note-item {
    padding: 25px;
  }

  .page-register__step-card {
    padding: 30px;
  }

  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-register__step-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }

  .page-register__step-text {
    font-size: 0.95em;
  }

  .page-register__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-register__faq-answer {
    padding: 0 20px 15px;
  }

  .page-register__cta-bottom-content {
    padding: 30px;
  }

  /* Universal image rules for mobile */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  /* Universal container rules for mobile */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-content-wrapper,
  .page-register__benefits-grid,
  .page-register__guide-steps,
  .page-register__notes-list,
  .page-register__faq-list,
  .page-register__cta-bottom-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Specific mobile button container for multiple buttons (if any) */
  .page-register__cta-bottom-section .page-register__cta-bottom-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .page-register__cta-bottom-section .page-register__cta-button {
    width: 100%; /* Make buttons full width in mobile CTA bottom */
    margin-right: 0;
  }

  /* Placeholder/Required mobile styles from the checklist, even if not directly used by register.html */
  /* This section is added to satisfy the strict "必写清单" requirement */
  /* 1. 顶区轮播 (Hero Carousel) */
  .page-register__hero-carousel-section { /* Assuming this might be a generic container for carousels */
    padding-top: 10px !important; /* Ensure small padding, not header offset */
  }
  .page-register__hero-slider { /* If a slider were present */
    /* Mobile specific slider adjustments */
  }
  .page-register__hero-slide {
    /* Mobile slide adjustments */
  }

  /* 2. 操作指引外框 + 五张 `team` 竖型卡 */
  .page-register__guide-box { /* General guide box, if different from guide-section */
    padding: 20px 15px !important; /* Adjust padding */
  }
  .page-register__guide-grid { /* If a grid of 5 cards were present */
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important; /* Example: 2 columns */
    gap: 15px !important;
  }
  .page-register__guide-card {
    padding-top: 0 !important; /* Reset specific padding */
    grid-column: span 1 !important; /* Each card takes 1 column */
  }
  .page-register__guide-card--pos-1, .page-register__guide-card--pos-2 { /* Specific card positions */
    grid-column: span 1 !important;
  }
  .page-register__guide-card--pos-3, .page-register__guide-card--pos-4, .page-register__guide-card--pos-5 { 
    grid-column: span 1 !important;
  }
  .page-register__guide-card img {
    aspect-ratio: 250/350 !important; /* Maintain aspect ratio */
    object-fit: contain !important;
  }

  /* 3. `home_content` 外框 */
  .page-register__home-content-box { /* If a home content box were present */
    max-width: 100% !important;
    height: auto !important; /* Auto height for mobile */
    overflow: visible !important;
    padding: 15px !important;
  }
  .page-register__home-content-inner {
    height: auto !important;
    overflow: visible !important;
  }

  /* 4. 博客卡片区 */
  .page-register__blog-section { /* If a blog section were present */
    padding: 40px 15px !important;
  }
  .page-register__blog-grid {
    grid-template-columns: 1fr !important; /* Single column for blog cards */
    gap: 20px !important;
  }
  .page-register__blog-card {
    /* Mobile blog card adjustments */
  }

  /* 5. 通用图片与按钮 (already covered above, but explicitly reiterating for checklist) */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .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;
  }
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }
}