/* style/support.css */

:root {
    --color-primary: #113B7A;
    --color-secondary: #1D5FD1;
    --color-button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --color-card-bg: #10233F;
    --color-text-main: #F3F8FF;
    --color-text-secondary: #AFC4E8;
    --color-border: #244D84;
    --color-glow: #4FA8FF;
    --color-gold: #F2C14E;
    --color-divider: #1B3357;
    --color-deep-navy: #08162B; /* This is the body background from shared.css */
}

.page-support {
    font-family: 'Arial', sans-serif;
    color: var(--color-text-main); /* Default text color for the page, suitable for dark background */
    background-color: var(--color-deep-navy); /* Ensure consistency with body background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-support__hero-section {
    padding-top: 10px; /* Small top padding as body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

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

.page-support__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 1;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: 3.2em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-support__description {
    font-size: 1.2em;
    color: var(--color-text-secondary);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* General Section Styles */
.page-support__section-title {
    font-size: 2.5em;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-support__section-intro {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
}

/* Button Styles */
.page-support__btn-primary,
.page-support__btn-secondary,
.page-support__btn-link {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid var(--color-glow);
    box-shadow: 0 0 15px var(--color-glow);
}

.page-support__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 20px var(--color-glow);
}

.page-support__btn-secondary {
    background: var(--color-primary);
    color: var(--color-gold);
    border: 2px solid var(--color-gold);
    margin-left: 20px;
}

.page-support__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.page-support__btn-link {
    background: none;
    color: var(--color-glow);
    border: 1px solid var(--color-glow);
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.page-support__btn-link:hover {
    background: var(--color-glow);
    color: var(--color-deep-navy);
}

/* Channels Section */
.page-support__channels-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy);
}

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

.page-support__channel-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-support__channel-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-support__channel-icon {
    width: 250px; /* Recommended minimum 200px */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    object-fit: contain;
    border-radius: 8px;
}

.page-support__card-title {
    font-size: 1.8em;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__card-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    margin-bottom: 25px;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: var(--color-primary);
}

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

.page-support__faq-item {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--color-gold);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
    list-style: none;
}

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

.page-support__faq-item[open] .page-support__faq-question {
    background-color: rgba(0, 0, 0, 0.4);
}

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

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

.page-support__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--color-text-secondary);
    border-top: 1px solid var(--color-divider);
}

.page-support__faq-answer p {
    margin-bottom: 15px;
    color: var(--color-text-secondary);
}

/* Hide default details marker */
.page-support__faq-item summary::-webkit-details-marker, 
.page-support__faq-item summary::marker {
    display: none;
    content: "";
}

/* Self-Help Section */
.page-support__self-help-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy);
}

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

.page-support__self-help-card {
    background: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    color: var(--color-text-main);
}

.page-support__self-help-card .page-support__card-title {
    font-size: 1.5em;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-support__self-help-card .page-support__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
}

/* Commitment Section */
.page-support__commitment-section {
    padding: 60px 0;
    background-color: var(--color-primary);
}

.page-support__commitment-section .page-support__container {
    display: flex;
    align-items: center;
    gap: 40px;
}

.page-support__commitment-content {
    flex: 1;
}

.page-support__commitment-image {
    flex-shrink: 0;
    width: 500px; /* Example display size */
    height: auto;
    display: block;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-support__commitment-list {
    list-style: none;
    padding-left: 0;
    margin-top: 30px;
}

.page-support__commitment-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

.page-support__commitment-list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2em;
}

.page-support__list-item-title {
    color: var(--color-gold);
    font-weight: 700;
}

/* CTA Section */
.page-support__cta-section {
    padding: 60px 0;
    background-color: var(--color-deep-navy);
    text-align: center;
}

.page-support__cta-buttons {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-support__main-title {
        font-size: 2.8em;
    }
    .page-support__section-title {
        font-size: 2.2em;
    }
    .page-support__commitment-section .page-support__container {
        flex-direction: column;
        text-align: center;
    }
    .page-support__commitment-image {
        width: 100%;
        max-width: 600px;
        margin-top: 30px;
    }
}

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

    /* Hero Section */
    .page-support__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 30px;
    }
    .page-support__main-title {
        font-size: 2.2em;
        margin-bottom: 10px;
    }
    .page-support__description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-support__hero-image {
        width: 100% !important;
        height: auto !important;
    }

    /* Buttons */
    .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;
        margin-left: 0 !important;
        margin-bottom: 15px; /* Add spacing for stacked buttons */
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* General Sections */
    .page-support__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-support__section-intro {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Channels Section */
    .page-support__channels-section {
        padding: 40px 0;
    }
    .page-support__channels-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__channel-card {
        padding: 20px;
    }
    .page-support__channel-icon {
        width: 100% !important;
        height: auto !important;
    }

    /* FAQ Section */
    .page-support__faq-section {
        padding: 40px 0;
    }
    .page-support__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-support__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-support__faq-list {
        margin-top: 20px;
    }

    /* Self-Help Section */
    .page-support__self-help-section {
        padding: 40px 0;
    }
    .page-support__self-help-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__self-help-card .page-support__card-title {
        font-size: 1.3em;
    }

    /* Commitment Section */
    .page-support__commitment-section {
        padding: 40px 0;
    }
    .page-support__commitment-section .page-support__container {
        flex-direction: column;
        gap: 30px;
    }
    .page-support__commitment-image {
        width: 100% !important;
        height: auto !important;
        margin-top: 0;
    }
    .page-support__commitment-list li {
        font-size: 1em;
        padding-left: 25px;
    }

    /* CTA Section */
    .page-support__cta-section {
        padding: 40px 0;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Universal Image Responsiveness */
    .page-support img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__blog-grid { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        grid-template-columns: 1fr;
    }
    .page-support__hero-carousel-section { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        padding-top: 10px !important;
    }
    .page-support__guide-grid { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .page-support__guide-card { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        padding-top: 0 !important;
    }
    .page-support__home-content-box { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        max-width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    .page-support__home-content-inner { /* This is for the mobile @media (max-width: 768px)必写清单, though not used here, it must be present */
        height: auto !important;
        overflow: visible !important;
    }
}