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

/* 基础样式和颜色对比度 */
.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#0a0a0a), so text should be light */
    background-color: transparent; /* inherited from shared.css body */
}

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

.page-support__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-support__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #f0f0f0; /* Slightly off-white for body text */
}

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-inline {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-support__btn-primary {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
}

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

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

.page-support__btn-secondary:hover {
    background-color: #FFD700;
    color: #000000;
}

.page-support__btn-inline {
    background-color: #FFD700;
    color: #000000;
    border: 2px solid #FFD700;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-support__btn-inline:hover {
    background-color: #e6c200;
    border-color: #e6c200;
}

.page-support__btn-large {
    padding: 15px 30px;
    font-size: 1.2em;
}

/* Hero Section */
.page-support__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background-color: #000000; /* Dark background for hero */
    overflow: hidden;
}

.page-support__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-support__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Darken background image */
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 40px 20px;
    color: #ffffff;
}

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

.page-support__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    line-height: 1.5;
}

.page-support__hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Inherited from body, but explicitly set for clarity */
}

.page-support__faq-list {
    margin-top: 50px;
}

.page-support__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible card background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-support__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-support__faq-question-title {
    font-size: 1.2em;
    color: #FFD700;
    margin: 0;
    font-weight: bold;
}

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

.page-support__faq-item.active .page-support__faq-toggle {
    transform: rotate(45deg); /* Plus to X for active */
}

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-support__faq-item.active .page-support__faq-answer {
    max-height: 1000px !important; /* Important for JS functionality */
    padding: 15px 25px 20px 25px;
}

.page-support__faq-answer p {
    margin-bottom: 15px;
}

/* Contact Methods Section */
.page-support__contact-methods-section {
    padding: 80px 0;
    background-color: #000000;
}

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

.page-support__contact-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__contact-icon {
    width: 100%; /* Ensure full width within card */
    max-width: 150px; /* Max size for icon */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px; /* Slightly rounded images */
}

.page-support__contact-card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-support__contact-card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1; /* Push button to bottom */
}

/* Resources Section */
.page-support__resources-section {
    padding: 80px 0;
    background-color: #0a0a0a;
}

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

.page-support__resource-card {
    display: block; /* Make the whole card clickable */
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-support__resource-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistent look */
    object-fit: cover;
}

.page-support__resource-title {
    font-size: 1.3em;
    color: #FFD700;
    padding: 15px 20px 5px 20px;
    margin: 0;
}

.page-support__resource-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px 20px;
}

/* Call to Action Section */
.page-support__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #000000;
}

.page-support__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
}

.page-support__cta-description {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 3em;
    }
    .page-support__hero-description {
        font-size: 1.2em;
    }
    .page-support__section-title {
        font-size: 2.2em;
    }
    .page-support__cta-title {
        font-size: 2.5em;
    }
}

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

    /* Fixed header spacing for mobile, if shared.css doesn't apply to body */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 450px;
    }

    .page-support__hero-title {
        font-size: 2.5em;
    }
    .page-support__hero-description {
        font-size: 1.1em;
    }
    .page-support__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__hero-cta-group .page-support__btn-primary,
    .page-support__hero-cta-group .page-support__btn-secondary {
        max-width: 300px !important; /* Limit max width for buttons in hero for better look */
        margin: 0 auto;
    }

    .page-support__section-title {
        font-size: 2em;
    }
    .page-support__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-support__faq-question {
        padding: 15px 20px;
    }
    .page-support__faq-question-title {
        font-size: 1.1em;
    }
    .page-support__faq-answer {
        padding: 0 20px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px 20px 20px 20px;
    }

    /* Image responsive */
    .page-support img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__contact-card,
    .page-support__resource-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__contact-grid,
    .page-support__resources-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        padding: 0 15px;
        box-sizing: border-box;
    }
    .page-support__contact-icon {
        max-width: 120px;
    }
    .page-support__resource-image {
        height: auto; /* Allow height to adjust */
        max-height: 200px;
    }

    .page-support__cta-title {
        font-size: 2em;
    }
    .page-support__cta-description {
        font-size: 1.1em;
    }
    .page-support__btn-large {
        max-width: 300px !important; /* Limit max width for CTA button */
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 2em;
    }
    .page-support__hero-description {
        font-size: 1em;
    }
    .page-support__section-title {
        font-size: 1.8em;
    }
    .page-support__cta-title {
        font-size: 1.8em;
    }
}