/* style/register.css */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default background for main content */
}

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

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

.page-register__hero-image-wrapper {
    width: 100%;
    max-height: 600px;
    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: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -80px; /* Pull content up slightly over the image for visual flow */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-register__main-title {
    color: #017439;
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-register__hero-description {
    font-size: 1.15em;
    color: #555555;
    margin-bottom: 30px;
}

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

.page-register__cta-buttons--center {
    margin-top: 40px;
}

.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: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    min-width: 180px;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.4);
}

.page-register__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.6);
}

.page-register__btn-secondary {
    background-color: #017439;
    color: #FFFFFF;
    border: 2px solid #017439;
    box-shadow: 0 4px 15px rgba(1, 116, 57, 0.3);
}

.page-register__btn-secondary:hover {
    background-color: #005f2e;
    border-color: #005f2e;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 116, 57, 0.5);
}

/* General Section Styling */
.page-register__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.page-register__dark-section {
    background-color: #017439;
    color: #ffffff;
    padding: 80px 0;
}

.page-register__dark-section .page-register__section-title,
.page-register__dark-section .page-register__hero-content .page-register__main-title {
    color: #ffffff;
}

.page-register__dark-section .page-register__section-description {
    color: #f0f0f0;
}

.page-register__light-bg {
    background-color: #FFFFFF;
    color: #333333;
    padding: 80px 0;
}

/* Why Join Section */
.page-register__why-join-section .page-register__section-title {
    color: #017439;
}

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

.page-register__feature-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-register__feature-title {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-register__feature-text {
    color: #555555;
}

.page-register__more-info-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #666;
}

/* Steps Section */
.page-register__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.page-register__step-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-register__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #FFFF00; /* Highlight step titles */
}

.page-register__step-text {
    color: #f0f0f0;
}

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

.page-register__benefit-card {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__benefit-title {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-register__benefit-text {
    color: #555555;
}

/* Security Section */
.page-register__security-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-register__security-image {
    flex: 1;
    min-width: 300px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-register__security-text {
    flex: 2;
    min-width: 300px;
}

.page-register__security-subtitle {
    color: #FFFF00;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.page-register__security-paragraph {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-register__security-footer-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-register__security-footer-text a {
    color: #FFFF00;
    text-decoration: underline;
}

.page-register__security-footer-text a:hover {
    color: #FFF;
}

/* FAQ Section */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-register__faq-item {
    background: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    list-style: none; /* For details/summary */
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
}

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

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-register__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: #555555;
}

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

/* Final CTA Section */
.page-register__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-final-content {
    max-width: 800px;
}

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

/* Responsive styles for tablets and mobiles */
@media (max-width: 1024px) {
    .page-register__hero-content {
        margin-top: -60px;
        padding: 30px;
    }

    .page-register__main-title {
        font-size: clamp(1.8em, 3.5vw, 2.8em);
    }

    .page-register__section-title {
        font-size: 2em;
    }

    .page-register__dark-section, .page-register__light-bg {
        padding: 60px 0;
    }

    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 25px;
    }

    .page-register__security-content {
        flex-direction: column;
        align-items: center;
    }

    .page-register__security-image,
    .page-register__security-text {
        flex: none;
        width: 100%;
    }
}

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

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

    .page-register__hero-content {
        margin-top: -40px;
        padding: 20px;
        width: calc(100% - 30px); /* Account for padding */
        box-sizing: border-box;
    }

    .page-register__main-title {
        font-size: clamp(1.5em, 6vw, 2em);
        margin-bottom: 15px;
    }

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

    /* 通用图片与容器 */
    .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;
    }

    /* 按钮与按钮容器 */
    .page-register__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
    }

    .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;
        min-width: unset;
    }

    .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;
        overflow: hidden !important;
    }

    /* 其他内容模块 */
    .page-register__dark-section, .page-register__light-bg {
        padding: 40px 0;
    }

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

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

    .page-register__features-grid,
    .page-register__steps-grid,
    .page-register__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-register__feature-title,
    .page-register__step-title,
    .page-register__benefit-title {
        font-size: 1.3em;
    }

    .page-register__security-subtitle {
        font-size: 1.5em;
    }

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

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