/* style/support.css */
.page-support {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: sans-serif; /* Roboto气质 */
    line-height: 1.6;
}

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

/* Hero Section */
.page-support__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image above text */
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background: linear-gradient(180deg, #11A84E 0%, #08160F 100%); /* Green Gold to Deep Green */
    overflow: hidden; /* Ensure no image overflow */
    position: relative;
}

.page-support__hero-image {
    width: 100%;
    max-width: 1920px; /* Ensure it doesn't get too big */
    height: auto;
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-support__hero-content {
    position: relative; /* Not absolute, to ensure it's in normal flow */
    z-index: 1;
    max-width: 900px;
    padding: 0 20px;
}

.page-support__main-title {
    font-size: clamp(2rem, 4vw, 3.2rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #F2C14E; /* Gold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

.page-support__hero-description {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__cta-button {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-support__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-support__section-description {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-support__faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-support__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.page-support__faq-item:hover {
    transform: translateY(-5px);
}

.page-support__faq-question {
    font-size: 1.25rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
    cursor: pointer; /* Indicate it's clickable for JS toggle */
    position: relative;
    padding-right: 30px;
}

.page-support__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-support__faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.page-support__faq-answer {
    font-size: 1rem;
    color: #A7D9B8; /* Text Secondary */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.page-support__faq-answer.open {
    max-height: 500px; /* Arbitrary large enough value */
    opacity: 1;
    margin-top: 10px;
}

.page-support__faq-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Contact Section */
.page-support__contact-section {
    padding: 60px 0;
    background-color: #08160F; /* Background */
}

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

.page-support__method-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.page-support__card-title {
    font-size: 1.35rem;
    color: #F2C14E; /* Gold */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-support__card-text {
    font-size: 0.95rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
}

.page-support__method-button {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-support__method-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

.page-support__contact-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

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

.page-support__resource-card {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

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

.page-support__resource-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency, adjust as needed */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

.page-support__resource-card .page-support__card-title {
    font-size: 1.2rem;
    padding: 15px 20px 5px;
    text-align: left;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 0;
}

.page-support__resource-card .page-support__card-text {
    font-size: 0.9rem;
    padding: 0 20px 20px;
    text-align: left;
    color: #A7D9B8; /* Text Secondary */
    flex-grow: 1; /* Ensure text takes up available space */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-support__container {
        padding: 20px 30px;
    }
}

@media (max-width: 768px) {
    .page-support__hero-section {
        padding-top: 5px;
        padding-bottom: 30px;
    }

    .page-support__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-support__hero-description {
        font-size: 1rem;
    }

    .page-support__cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .page-support__section-title {
        font-size: clamp(1.6rem, 5vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .page-support__section-description {
        margin-bottom: 30px;
    }

    .page-support__faq-section,
    .page-support__contact-section,
    .page-support__resources-section {
        padding: 40px 0;
    }

    .page-support__faq-item,
    .page-support__method-card {
        padding: 20px;
    }

    .page-support__faq-question {
        font-size: 1.1rem;
    }

    .page-support__card-title {
        font-size: 1.2rem;
    }

    .page-support__method-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .page-support__contact-methods,
    .page-support__resource-grid {
        grid-template-columns: 1fr; /* Stack cards on mobile */
        gap: 20px;
    }

    /* Important: Mobile image overflow fix */
    .page-support__hero-image,
    .page-support__faq-image,
    .page-support__contact-image,
    .page-support__resource-image {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Enforce min size even on mobile */
        min-height: 200px; /* Enforce min size even on mobile */
    }
}

@media (max-width: 480px) {
    .page-support__container {
        padding: 15px;
    }

    .page-support__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }

    .page-support__section-title {
        font-size: clamp(1.4rem, 6vw, 1.8rem);
    }

    .page-support__faq-question {
        font-size: 1rem;
    }
}