.page-register {
  color: #ffffff; /* Body background is dark (#0a0a0a), so use light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Consistent with shared.css body background */
}

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

.page-register__hero-section {
  padding-top: 10px; /* Small top padding as body padding-top handles header offset */
  padding-bottom: 60px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  overflow: hidden;
}

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

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

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin-top: 40px; /* Separated from image */
  padding: 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent background for readability */
  border-radius: 10px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #FFFF00; /* Custom color for register/login font */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-register__description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

.page-register__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Custom color for register/login font */
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

.page-register__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  margin: 10px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__cta-button--primary {
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom color for Register font */
  border: 2px solid #C30808;
}

.page-register__cta-button--primary:hover {
  background-color: #e02020;
  transform: translateY(-3px);
}

.page-register__cta-button--secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom color for Login font */
  border: 2px solid #C30808; /* Custom color for Login */
}

.page-register__cta-button--secondary:hover {
  background-color: #C30808;
  color: #FFFF00;
  transform: translateY(-3px);
}

.page-register__benefits-section,
.page-register__steps-section,
.page-register__faq-section,
.page-register__latest-news-section {
  padding: 60px 0;
  background-color: #1a1a1a;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

.page-register__benefit-card {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  color: #ffffff;
}

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

.page-register__benefit-title {
  font-size: 1.8em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 15px;
}

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

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

.page-register__step-item {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  color: #ffffff;
  text-align: center;
}

.page-register__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: #C30808; /* Custom color for Register */
  color: #FFFF00; /* Custom color for Register font */
  border-radius: 50%;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6em;
  color: #FFFF00; /* Custom color for titles */
  margin-bottom: 10px;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-register__cta-container {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background-color: #0a0a0a;
    border-radius: 10px;
    border: 1px solid #017439;
}

.page-register__cta-text {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

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

.page-register__faq-item {
  background-color: #0a0a0a;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #017439;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFF00; /* Custom color for FAQ questions */
  cursor: pointer;
  list-style: none;
  position: relative;
  user-select: none;
}

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

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

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #FFFF00;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  content: '−';
}

.page-register__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

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

.page-register__cta-section {
  background-color: #017439; /* Brand primary color */
  padding: 80px 0;
  text-align: center;
  border-radius: 8px;
}

.page-register__cta-section .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-section .page-register__description {
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px;
}

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

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

.page-register__news-card {
  background-color: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  display: flex;
  flex-direction: column;
}

.page-register__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-register__news-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-register__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00; /* Custom color for titles */
  line-height: 1.3;
}

.page-register__news-title a {
  color: #FFFF00; /* Custom color for titles */
  text-decoration: none;
}

.page-register__news-title a:hover {
  text-decoration: underline;
}

.page-register__news-date {
  font-size: 0.9em;
  color: #888;
  margin-bottom: 15px;
}

.page-register__news-excerpt {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-register__read-more {
  display: inline-block;
  color: #C30808; /* Custom color for Register */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__read-more:hover {
  color: #e02020;
  text-decoration: underline;
}

.page-register__view-all {
  text-align: center;
  margin-top: 50px;
}

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

/* -------------------------------------------------- */
/* Mobile Responsive Styles (max-width: 768px) */
/* -------------------------------------------------- */
@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-register__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
  }

  /* HERO 主图区域 */
  .page-register__hero-section {
    padding-top: 10px !important; /* Small top padding */
    padding-bottom: 40px;
    min-height: auto;
  }

  .page-register__hero-image-wrapper {
    max-height: 300px;
  }

  .page-register__hero-content {
    margin-top: 20px;
    padding: 15px;
  }

  .page-register__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-register__description {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

  /* 通用图片与容器 */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-register__benefits-section,
  .page-register__steps-section,
  .page-register__faq-section,
  .page-register__latest-news-section {
    padding: 40px 0;
  }

  .page-register__benefit-card,
  .page-register__step-item,
  .page-register__news-card {
    padding: 20px;
  }

  .page-register__benefit-icon {
    max-width: 200px;
  }

  .page-register__benefit-title {
    font-size: 1.5em;
  }

  .page-register__step-title {
    font-size: 1.4em;
  }

  /* 按钮与按钮容器 */
  .page-register__cta-button,
  .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;
    margin: 10px 0 !important; /* Adjust margin for vertical stacking */
  }

  .page-register__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px; /* Space between stacked buttons */
  }

  .page-register__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

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

  .page-register__news-image {
    height: 180px;
  }

  .page-register__news-title {
    font-size: 1.2em;
  }

  .page-register__news-excerpt {
    font-size: 0.95em;
  }

  .page-register__cta-container {
    margin-top: 30px;
    padding: 20px;
  }
}