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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Adjust for fixed header, assuming body padding is handled by shared.css */
    padding-bottom: 60px;
    background-color: #F4F7FB; /* Background */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.page-register__hero-image {
    width: 100%;
    max-height: 500px; /* Limit height */
    overflow: hidden;
    margin-bottom: 30px;
}
.page-register__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default desktop behavior */
    border-radius: 8px;
}
.page-register__hero-content {
    max-width: 800px;
    padding: 0 20px;
}
.page-register__main-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1 font size with clamp */
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.page-register__hero-description {
    font-size: 1.1rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 30px;
}
.page-register__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container width for mobile wrapping */
    max-width: 400px;
    margin: 0 auto;
}
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For mobile button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}
.page-register__btn-primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button color */
    color: #ffffff;
    border: none;
}
.page-register__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.page-register__btn-secondary {
    background: #ffffff; /* Card BG */
    color: #2F6BFF; /* Main color */
    border: 2px solid #2F6BFF; /* Main color */
}
.page-register__btn-secondary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

/* General Section Styles */
.page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #1F2D3D; /* Text Main */
    text-align: center;
    margin-bottom: 25px;
    font-weight: 700;
}
.page-register__section-description {
    font-size: 1.1rem;
    color: #1F2D3D; /* Text Main */
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
}
.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Introduction Section */
.page-register__introduction-section {
    padding: 80px 0;
    background: #2F6BFF; /* Dark BG */
    color: #ffffff;
}
.page-register__introduction-section .page-register__section-title,
.page-register__introduction-section p {
    color: #ffffff;
}

/* Guide Section */
.page-register__guide-section {
    padding: 80px 0;
    background: #F4F7FB; /* Background */
}
.page-register__step-item {
    margin-bottom: 50px;
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #D6E2FF; /* Border color */
}
.page-register__step-item:last-of-type {
    margin-bottom: 0;
}
.page-register__step-title {
    font-size: 1.6rem;
    color: #2F6BFF; /* Main color */
    margin-bottom: 15px;
    font-weight: 600;
}
.page-register__step-item p {
    color: #1F2D3D; /* Text Main */
    margin-bottom: 15px;
}
.page-register__step-item img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 20px auto;
}
.page-register__step-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #1F2D3D; /* Text Main */
}
.page-register__step-list li {
    margin-bottom: 8px;
}
.page-register__cta-container {
    text-align: center;
    margin-top: 50px;
}
.page-register__cta-container p {
    font-size: 1.1rem;
    color: #1F2D3D; /* Text Main */
    margin-bottom: 25px;
}

/* Benefits Section */
.page-register__benefits-section {
    padding: 80px 0;
    background: #F4F7FB; /* Background */
}
.page-register__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.page-register__benefit-card {
    background: #ffffff; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #D6E2FF; /* Border color */
}
.page-register__benefit-card img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 20px;
    border-radius: 8px;
}
.page-register__card-title {
    font-size: 1.4rem;
    color: #2F6BFF; /* Main color */
    margin-bottom: 15px;
    font-weight: 600;
}
.page-register__benefit-card p {
    color: #1F2D3D; /* Text Main */
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background: #2F6BFF; /* Dark BG */
    color: #ffffff;
}
.page-register__security-section .page-register__section-title,
.page-register__security-section .page-register__section-description,
.page-register__security-section p {
    color: #ffffff;
}
.page-register__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.page-register__feature-item {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark bg */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #A5C4FF; /* Glow color for border */
}
.page-register__feature-title {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: 600;
}
.page-register__feature-item p {
    color: #ffffff;
}

/* FAQ Section */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF; /* Border color */
  overflow: hidden;
  background: #ffffff; /* Card BG */
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #1F2D3D; /* Text Main */
  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: #f5f5f5;
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #2F6BFF; /* Main color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 5px 5px;
  color: #1F2D3D; /* Text Main */
}
.page-register__faq-answer p {
    margin: 0;
    color: #1F2D3D; /* Text Main */
}

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    background: #2F6BFF; /* Dark BG */
    color: #ffffff;
    text-align: center;
}
.page-register__cta-final-section .page-register__section-title,
.page-register__cta-final-section .page-register__section-description {
    color: #ffffff;
}
.page-register__cta-final-section .page-register__cta-buttons {
    margin-top: 40px;
}

/* General image and container responsiveness */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block;
}
.page-register__section,
.page-register__card,
.page-register__container,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Styles (Tablet) --- */
@media (max-width: 1024px) {
    .page-register__hero-image {
        max-height: 400px;
    }
    .page-register__main-title {
        font-size: clamp(2rem, 3.5vw, 2.8rem);
    }
    .page-register__section-title {
        font-size: clamp(1.7rem, 3vw, 2.2rem);
    }
    .page-register__cta-buttons {
        max-width: 500px;
    }
    .page-register__benefits-grid,
    .page-register__security-features {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

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

    /* HERO 主图区域 */
    .page-register__hero-section {
        padding-top: 10px;
        padding-bottom: 40px;
    }
    .page-register__hero-image {
        max-height: 300px;
        margin-bottom: 20px;
    }
    .page-register__hero-image img {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__main-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    .page-register__hero-description {
        font-size: 1rem;
    }
    .page-register__cta-buttons {
        flex-direction: column; /* 垂直排列 */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: unset !important; /* Allow full width for buttons */
    }
    .page-register__btn-primary,
    .page-register__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px !important;
        font-size: 0.95rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用图片与容器 */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-register__section,
    .page-register__card,
.page-register__container,
.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: 15px;
        padding-right: 15px;
    }

    /* 各个模块的 padding */
    .page-register__introduction-section,
    .page-register__guide-section,
    .page-register__benefits-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__cta-final-section {
        padding: 40px 0;
    }
    .page-register__section-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
        margin-bottom: 20px;
    }
    .page-register__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-register__step-item {
        padding: 20px;
        margin-bottom: 30px;
    }
    .page-register__step-title,
    .page-register__card-title,
    .page-register__feature-title {
        font-size: 1.2rem;
        text-align: left; /* Align titles left on mobile for better readability */
    }
    .page-register__step-item p,
    .page-register__step-list,
    .page-register__benefit-card p,
    .page-register__feature-item p {
        font-size: 0.95rem;
        text-align: left; /* Align text left on mobile */
    }
    .page-register__benefit-card,
    .page-register__feature-item {
        padding: 20px;
    }
    .page-register__benefit-card img {
        margin-bottom: 15px;
    }

    /* FAQ */
    details.page-register__faq-item summary.page-register__faq-question { padding: 15px; }
    .page-register__faq-qtext { font-size: 15px; }
    details.page-register__faq-item .page-register__faq-answer { padding: 0 15px 15px; }
}