.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f5f5f5 */
    background-color: #f5f5f5; /* Explicitly set for content area if needed, but shared.css handles body */
}

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

/* Hero Section */
.page-support__hero-section {
    position: relative;
    padding: 100px 0; 
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure no overflow from image */
    background-color: #017439; /* Fallback, but image covers */
}

.page-support__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    opacity: 0.8; /* Slightly dim image for text readability */
}

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

.page-support__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

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

/* Buttons */
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons are responsive */
}

.page-support__btn-primary {
    background-color: #C30808; /* Custom color for Register */
    color: #FFFF00; /* Custom font color for Register */
    border: 2px solid #C30808;
}

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

.page-support__btn-secondary {
    background-color: #C30808; /* Custom color for Login */
    color: #FFFF00; /* Custom font color for Login */
    border: 2px solid #C30808;
}

.page-support__btn-secondary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

/* Section Titles and Intros */
.page-support__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
    padding-top: 60px;
}

.page-support__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #333333;
}

/* Content Section - Support Grid */
.page-support__content-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

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

.page-support__support-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

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

.page-support__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size requirement */
    min-height: 200px; /* Min image size requirement */
}

.page-support__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__card-title a {
    color: #017439;
    text-decoration: none;
}

.page-support__card-title a:hover {
    text-decoration: underline;
}

.page-support__card-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take available space */
}

.page-support__card-link {
    display: inline-block;
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Push link to bottom */
}

.page-support__card-link:hover {
    text-decoration: underline;
}

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

.page-support__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-support__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    background-color: #f9f9f9;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.page-support__faq-heading {
    font-size: 1.1em;
    margin: 0;
    color: #017439;
}

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

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

.page-support__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: #ffffff;
    color: #555555;
}

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

.page-support__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #555555;
}

/* Contact Section */
.page-support__contact-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background for this section */
    color: #ffffff;
    text-align: center;
}

.page-support__contact-section .page-support__section-title,
.page-support__contact-section .page-support__section-intro {
    color: #ffffff;
}

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

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

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

.page-support__contact-card .page-support__card-title {
    color: #017439;
    margin-bottom: 15px;
}

.page-support__contact-card .page-support__card-description {
    color: #555555;
    margin-bottom: 25px;
}

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

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

.page-support__resource-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-support__resource-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #017439;
}

.page-support__resource-title a {
    color: #017439;
    text-decoration: none;
}

.page-support__resource-title a:hover {
    text-decoration: underline;
}

.page-support__resource-description {
    font-size: 0.95em;
    color: #555555;
}

/* Footer Section */
.page-support__footer-section {
    background-color: #017439;
    color: #ffffff;
    padding: 30px 0;
    text-align: center;
}

.page-support__copyright {
    margin: 0;
    font-size: 0.9em;
    color: #ffffff;
}

/* General Link Styling */
.page-support a {
    color: #017439;
    text-decoration: none;
}

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

/* Keyword highlighting */
.page-support__keyword {
    font-weight: bold;
    color: #017439;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 2.8em;
    }

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

    .page-support__support-grid,
    .page-support__contact-methods,
    .page-support__resources-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-support__hero-section {
        padding: 60px 0; /* Adjust padding for mobile */
    }

    .page-support__hero-title {
        font-size: 2.2em;
        padding: 0 15px;
    }

    .page-support__hero-description {
        font-size: 1em;
        padding: 0 15px;
    }

    /* 通用图片与容器 */
    .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,
    .page-support__support-card,
    .page-support__contact-card,
    .page-support__resource-item,
    .page-support__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-support__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        padding: 0 15px;
    }

    .page-support__btn-primary,
    .page-support__btn-secondary,
    .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: 15px 20px !important; /* Adjust padding for full width */
        text-align: center;
    }

    /* 产品展示图区域 (Support Grid) */
    .page-support__support-grid,
    .page-support__contact-methods,
    .page-support__resources-grid {
        grid-template-columns: 1fr !important; /* Single column layout */
        gap: 20px !important;
        padding: 0 15px;
    }

    /* 其他内容模块 */
    .page-support__section-title {
        font-size: 1.8em;
        padding-top: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-support__faq-list {
        padding: 0 15px;
    }

    .page-support__faq-question {
        padding: 12px 15px;
    }

    .page-support__faq-answer {
        padding: 10px 15px !important; /* Adjusted padding for mobile */
    }

    .page-support__card-image {
        height: 200px; /* Adjust image height for mobile cards */
    }
}