/* Page-specific styles for support.css */
/* General styles */
.page-support {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text on light body background */
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    overflow: hidden;
    background-color: #f5f5f5; /* Light background for hero section */
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-support__hero-image {
    width: 100%;
    max-height: 500px; /* Limit hero image height */
    overflow: hidden;
}

.page-support__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop, will change to contain on mobile */
    display: block;
}

.page-support__hero-content {
    padding: 30px 20px 0;
    max-width: 900px;
}

.page-support__main-title {
    font-weight: 700;
    color: #017439; /* Brand color for H1 */
    margin-bottom: 20px;
    line-height: 1.2;
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
}

.page-support__hero-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-support__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login button text color */
    border: 2px solid #C30808;
}

.page-support__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-support__btn-secondary {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
}

.page-support__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

.page-support__btn-link {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
    padding: 8px 15px;
    font-size: 0.9rem;
}

.page-support__btn-link:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Section Titles */
.page-support__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #017439;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.page-support__section-title--light {
    color: #ffffff;
}

.page-support__section-description {
    font-size: 1.05rem;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.page-support__section-description--light {
    color: #f0f0f0;
}

/* FAQ Section */
.page-support__faq-section {
    background-color: #ffffff;
    padding: 50px 0;
}

details.page-support__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
details.page-support__faq-item summary.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: #333333;
}
details.page-support__faq-item summary.page-support__faq-question::-webkit-details-marker {
    display: none;
}
details.page-support__faq-item summary.page-support__faq-question:hover {
    background: #f5f5f5;
    color: #017439;
}
.page-support__faq-qtext {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}
.page-support__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-support__faq-item[open] .page-support__faq-toggle {
    color: #017439;
}
details.page-support__faq-item .page-support__faq-answer {
    padding: 0 25px 20px;
    background: #f9f9f9;
    border-radius: 0 0 8px 8px;
    color: #555555;
}
.page-support__faq-answer p {
    margin: 0;
    padding-top: 10px;
}

/* Guides Section */
.page-support__guides-section {
    background-color: #f9f9f9;
    padding: 50px 0;
}

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

.page-support__guide-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.page-support__guide-card:hover {
    transform: translateY(-5px);
}

.page-support__guide-card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-support__card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #017439;
    padding: 20px 20px 10px;
    margin: 0;
}

.page-support__card-content {
    padding: 0 20px 20px;
    color: #555555;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-support__card-content p {
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Contact Section */
.page-support__contact-section {
    background-color: #017439; /* Brand primary color for dark section */
    padding: 60px 0;
    text-align: center;
}

.page-support__contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap; /* Allow wrapping for mobile */
    margin-top: 40px;
}

.page-support__contact-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for cards on dark background */
    border-radius: 8px;
    padding: 30px;
    width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
    text-align: center;
}

.page-support__contact-card img {
    width: 200px; /* Ensure minimum 200px width/height */
     /* Ensure minimum 200px width/height */
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
}

.page-support__card-title--light {
    color: #ffffff;
    margin-bottom: 10px;
}

.page-support__contact-card p {
    font-size: 1rem;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Security Section */
.page-support__security-section {
    background-color: #ffffff;
    padding: 50px 0;
}

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

.page-support__feature-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__feature-item img {
    width: 200px; /* Ensure minimum 200px width/height */
     /* Ensure minimum 200px width/height */
    object-fit: contain;
    margin-bottom: 15px;
    display: block;
}

.page-support__feature-item h3 {
    font-size: 1.15rem;
    color: #017439;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-support__feature-item p {
    font-size: 0.95rem;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.page-support__text-link {
    color: #017439;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-support__text-link:hover {
    color: #005a2d;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-support__container {
        padding: 0 15px;
    }
    .page-support__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-support__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-support__hero-section {
        padding-top: 10px; /* Small top padding for mobile */
        padding-bottom: 30px;
    }
    .page-support__hero-image img {
        object-fit: contain !important; /* Mobile hero image should contain, not crop */
        aspect-ratio: unset !important; /* Remove aspect ratio constraint */
        width: 100% !important;
        height: auto !important;
    }
    .page-support__hero-content {
        padding: 20px 15px 0;
    }
    .page-support__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-support__hero-description {
        font-size: 1rem;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-link {
        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;
    }

    /* 通用图片与容器 */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-support__section,
    .page-support__container,
    .page-support__guide-card,
    .page-support__contact-card,
    .page-support__feature-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-top: 40px;
        margin-bottom: 15px;
        padding: 0 15px;
    }
    .page-support__section-description {
        font-size: 0.95rem;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* FAQ Section */
    .page-support__faq-section {
        padding: 30px 0;
    }
    details.page-support__faq-item summary.page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-qtext {
        font-size: 1rem;
    }
    .page-support__faq-toggle {
        font-size: 24px;
        width: 24px;
        margin-left: 10px;
    }
    details.page-support__faq-item .page-support__faq-answer {
        padding: 0 20px 15px;
    }

    /* Guides Section */
    .page-support__guides-section {
        padding: 30px 0;
    }
    .page-support__guide-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-support__guide-card img {
        height: 200px; /* Adjust height for mobile */
    }
    .page-support__card-title {
        font-size: 1.15rem;
        padding: 15px 15px 10px;
    }
    .page-support__card-content {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }
    .page-support__btn-link {
        width: auto; /* Revert to auto width for btn-link if it's not a full-width CTA */
        align-self: flex-start;
        padding: 8px 15px;
    }

    /* Contact Section */
    .page-support__contact-section {
        padding: 40px 0;
    }
    .page-support__contact-methods {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .page-support__contact-card {
        width: 90%; /* Adjust width for mobile */
        padding: 25px;
    }
    .page-support__contact-card img {
        
        
    }

    /* Security Section */
    .page-support__security-section {
        padding: 30px 0;
    }
    .page-support__security-features {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }
    .page-support__feature-item {
        padding: 20px;
    }
    .page-support__feature-item img {
        
        
    }
    .page-support__feature-item h3 {
        font-size: 1.05rem;
    }
    .page-support__feature-item p {
        font-size: 0.9rem;
    }
}