/* style/support.css */

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background-color: #ffffff; /* Explicitly set for page content */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

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

/* Hero Section */
.page-support__hero-section {
    background-color: #000000; /* Dark background for hero */
    color: #ffffff; /* Light text for dark background */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.page-support__hero-content {
    max-width: 800px;
}

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

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

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

.page-support__button {
    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;
    min-width: 150px;
    text-align: center;
    font-size: 1em;
    white-space: nowrap;
}

.page-support__button--primary {
    background-color: #FCBC45; /* Login button color */
    color: #000000; /* Dark text for light button */
    border: 2px solid #FCBC45;
}

.page-support__button--primary:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

.page-support__button--secondary {
    background-color: transparent;
    color: #ffffff; /* Light text for dark hero background */
    border: 2px solid #ffffff;
}

.page-support__button--secondary:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

.page-support__hero-image {
    width: 100%;
    max-width: 800px;
}

.page-support__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Section Titles and Subtitles */
.page-support__section-title {
    font-size: 2.5em;
    color: #000000;
    text-align: center;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-support__section-subtitle {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-support__faq-item {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    border-left: 5px solid #FCBC45;
}

.page-support__faq-question {
    font-size: 1.4em;
    color: #000000;
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-support__faq-answer a {
    color: #FCBC45; /* Login button color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-support__faq-answer a:hover {
    text-decoration: underline;
}

.page-support__cta-bottom {
    text-align: center;
}

/* Contact Options Section */
.page-support__contact-options {
    padding: 60px 0;
    background-color: #ffffff;
}

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

.page-support__contact-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-support__contact-icon {
    width: 200px; /* Enforce min size for contact icons */
    height: 200px; /* Enforce min size for contact icons */
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-support__contact-title {
    font-size: 1.5em;
    color: #000000;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-support__contact-description {
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

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

.page-support__resource-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.page-support__resource-image {
    width: 100%;
    height: 225px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-support__resource-card h3 {
    padding: 20px 20px 10px;
    font-size: 1.3em;
    font-weight: bold;
    color: #000000;
}

.page-support__resource-card h3 a {
    color: #000000;
    text-decoration: none;
}

.page-support__resource-card h3 a:hover {
    color: #FCBC45;
}

.page-support__resource-description {
    padding: 0 20px 20px;
    color: #555555;
    flex-grow: 1;
}

.page-support__button--text {
    display: block;
    text-align: left;
    padding: 0 20px 20px;
    color: #FCBC45;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-support__button--text:hover {
    text-decoration: underline;
}

/* Call to Action Section */
.page-support__cta-section {
    background-color: #000000; /* Dark background */
    color: #ffffff; /* Light text */
    padding: 60px 20px;
    text-align: center;
}

.page-support__cta-container {
    max-width: 900px;
}

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

.page-support__cta-description {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-support__button--register {
    background-color: #000000; /* Dark background */
    color: #FFFFFF; /* White text as per "注册: #FFFFFF" */
    border: 2px solid #FFFFFF; /* White border for contrast */
}

.page-support__button--register:hover {
    background-color: #333333; /* Slightly lighter dark on hover */
    border-color: #FCBC45; /* Highlight border on hover */
}

.page-support__button--login {
    background-color: #FCBC45; /* Background color as per "登录: #FCBC45" */
    color: #000000; /* Dark text for light button */
    border: 2px solid #FCBC45;
}

.page-support__button--login:hover {
    background-color: #e0a53b;
    border-color: #e0a53b;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-support {
        padding-top: var(--header-offset, 120px); /* Ensure space for fixed header on mobile */
    }

    .page-support__hero-section {
        padding: 60px 15px;
    }

    .page-support__hero-title {
        font-size: 2.2em;
    }

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

    .page-support__hero-cta {
        flex-direction: column;
    }

    .page-support__button {
        min-width: unset;
        width: 100%;
    }

    .page-support__section-title {
        font-size: 2em;
    }

    .page-support__section-subtitle {
        font-size: 0.95em;
    }

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

    .page-support__faq-question {
        font-size: 1.2em;
    }

    .page-support__contact-card,
    .page-support__resource-card {
        padding: 20px;
    }

    .page-support__contact-icon {
        width: 200px; /* Maintain min size for mobile */
        height: 200px; /* Maintain min size for mobile */
    }

    .page-support__resource-image {
        height: 180px;
    }

    .page-support__cta-title {
        font-size: 2em;
    }

    .page-support__cta-description {
        font-size: 1em;
    }

    .page-support__cta-buttons {
        flex-direction: column;
    }

    /* Mobile content image overflow prevention */
    .page-support img {
        max-width: 100%;
        height: auto;
    }
}

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

    .page-support__hero-title {
        font-size: 1.8em;
    }

    .page-support__section-title {
        font-size: 1.8em;
    }
}