/* style/support.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* General Styles */
.page-support {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Section Styling */
.page-support__hero-section,
.page-support__faq-section,
.page-support__contact-methods-section,
.page-support__security-section,
.page-support__cta-section {
    padding: 60px 0;
    text-align: center;
}

.page-support__dark-bg {
    background-color: #26A9E0; /* Brand primary color for dark sections */
    color: #ffffff;
}

.page-support__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

.page-support__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit color from parent section (dark/light bg) */
}

.page-support__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    line-height: 1.8;
    color: inherit;
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-inline {
    display: inline-block;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-support__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

.page-support__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-support__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-support__btn-inline {
    background-color: #26A9E0;
    color: #ffffff;
    border: none;
    padding: 8px 15px;
    margin: 5px 0;
    font-size: 0.9em;
}

.page-support__btn-inline:hover {
    background-color: #1e87c0;
}

.page-support__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
    padding-bottom: 60px;
    overflow: hidden;
    position: relative;
}

.page-support__hero-content {
    max-width: 800px;
    z-index: 1;
    text-align: center;
    padding: 0 20px;
}

.page-support__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

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

.page-support__hero-image-wrapper {
    margin-top: 40px;
    width: 100%;
    max-width: 1000px; /* Limit image width */
    overflow: hidden;
    box-sizing: border-box;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-support__faq-list {
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
}

.page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #333333;
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: bold;
    cursor: pointer;
    background-color: #f0f0f0;
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: #e5e5e5;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg);
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    box-sizing: border-box;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to contain content */
    padding: 15px 25px 25px 25px;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: #555555;
    text-align: left;
}

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

.page-support__method-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-support__method-icon {
    width: 200px; /* Min display size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

.page-support__method-text {
    font-size: 1em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #f0f0f0;
}

/* Security Section */
.page-support__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-support__security-text {
    flex: 1;
}

.page-support__security-text .page-support__section-title {
    text-align: left;
    color: #333333;
}

.page-support__security-text .page-support__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    color: #555555;
}

.page-support__security-text .page-support__btn-primary,
.page-support__security-text .page-support__btn-secondary {
    margin-left: 0;
}

.page-support__security-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-support__security-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* CTA Section */
.page-support__cta-section .page-support__section-title,
.page-support__cta-section .page-support__section-description {
    color: #ffffff;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* For responsiveness */
    gap: 20px;
    margin-top: 30px;
}

/* Image specific styles */
.page-support img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum display size */
    min-height: 200px; /* Enforce minimum display size */
    object-fit: cover; /* Ensures images fill their space without distortion */
}

/* Color contrast fixes based on body background #0a0a0a (dark) */
.page-support {
    color: #ffffff; /* Default text for dark body */
}

.page-support__faq-section {
    background-color: #ffffff; /* Light background for FAQ */
    color: #333333; /* Dark text for light background */
}

.page-support__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-support__faq-question {
    background-color: #f0f0f0;
}

.page-support__faq-question:hover {
    background-color: #e5e5e5;
}

.page-support__faq-answer p {
    color: #555555;
}

.page-support__security-section {
    background-color: #ffffff;
    color: #333333;
}

.page-support__security-text .page-support__section-title {
    color: #333333;
}

.page-support__security-text .page-support__section-description {
    color: #555555;
}

.page-support__method-card {
    background-color: rgba(38, 169, 224, 0.2); /* Semi-transparent brand color for dark background */
    color: #ffffff;
}

.page-support__method-title {
    color: #ffffff;
}
.page-support__method-text {
    color: #f0f0f0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__security-content {
        flex-direction: column;
        text-align: center;
    }
    .page-support__security-text .page-support__section-title,
    .page-support__security-text .page-support__section-description {
        text-align: center;
    }
    .page-support__security-text .page-support__btn-primary,
    .page-support__security-text .page-support__btn-secondary {
        margin: 10px; /* Center buttons */
    }
}

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

    /* Fixed header spacing for mobile */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-support__hero-title {
        font-size: 2.2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__section-description {
        font-size: 0.95em;
    }

    .page-support__container {
        padding: 15px;
    }

    /* Images responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-support__hero-image-wrapper,
    .page-support__security-image-wrapper,
    .page-support__method-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* Buttons responsiveness */
    .page-support__btn-primary,
    .page-support__btn-secondary,
    .page-support__btn-inline,
    .page-support a[class*="button"],
    .page-support a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .page-support__hero-buttons,
    .page-support__cta-buttons,
    .page-support__security-text {
        flex-direction: column;
        gap: 15px;
    }
    .page-support__security-text .page-support__btn-primary,
    .page-support__security-text .page-support__btn-secondary {
        width: 100%;
    }

    .page-support__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px 20px 20px;
    }
    .page-support__method-card {
        padding: 20px;
    }
    .page-support__method-icon {
        width: 150px; /* Display size, source image is larger */
        height: auto;
    }
}