/* Base styles for the page-resources scope */
.page-resources {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Inherit from body or shared, will be black */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: 0; /* Assuming shared.css handles body padding-top */
    padding-bottom: 80px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #000000; /* Explicitly set dark background for hero */
}

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

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

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

/* General Section Styling */
.page-resources__section {
    padding: 80px 0;
}

.page-resources__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than pure black for sections */
    color: #ffffff;
}

.page-resources__light-bg {
    background-color: #1a1a1a; /* Dark gray for "light" sections to maintain contrast with white text */
    color: #ffffff;
}

.page-resources__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
}

.page-resources__container--reversed {
    flex-direction: row-reverse;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
    width: 100%;
    text-align: center;
}

.page-resources__section-text {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.page-resources__content-block {
    flex: 1;
    min-width: 300px;
}

.page-resources__image {
    flex: 1;
    min-width: 300px;
    border-radius: 8px;
    object-fit: cover;
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
    display: block;
}

/* Lists */
.page-resources__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-resources__list-item {
    background: rgba(255, 255, 255, 0.05); /* Subtle background for list items */
    margin-bottom: 10px;
    padding: 15px;
    border-left: 4px solid #26A9E0;
    border-radius: 4px;
    font-size: 1.05em;
    color: #ffffff;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources a[class*="button"],
.page-resources a[class*="btn"] {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
    background-color: #1e87b8;
    border-color: #1e87b8;
}

.page-resources__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Card Grid for Other Resources */
.page-resources__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    width: 100%;
    margin-top: 30px;
}

.page-resources__card {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    padding: 25px;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.page-resources__card-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for card titles */
}

.page-resources__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-list {
    width: 100%;
    max-width: 800px;
    margin: 30px auto 0;
}

.page-resources__faq-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

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

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

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

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

.page-resources__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Call to Action Section */
.page-resources__cta-section {
    text-align: center;
    padding: 60px 0;
    background-color: #0d0d0d;
}

.page-resources__cta-container {
    flex-direction: column;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #26A9E0;
    margin-bottom: 20px;
}

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

.page-resources__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}


/* --- Responsive Styles --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }

    .page-resources__hero-description {
        font-size: 1.1em;
    }

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

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

    .page-resources__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-resources__container--reversed {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-resources__content-block,
    .page-resources__image {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .page-resources__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-resources__hero-section {
        padding: 0 0 60px;
        min-height: 400px;
    }

    .page-resources__hero-title {
        font-size: 2em;
        margin-top: 20px;
    }

    .page-resources__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
        width: 100%;
    }

    /* 通用图片与容器 */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__content-block,
    .page-resources__faq-list,
    .page-resources__cta-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        overflow-x: hidden;
    }

    .page-resources__section {
        padding: 40px 0;
    }

    .page-resources__section-title {
        font-size: 1.8em;
        text-align: center;
        margin-bottom: 15px;
    }

    .page-resources__section-text {
        font-size: 0.95em;
    }

    /* 按钮与按钮容器 */
    .page-resources__btn-primary,
    .page-resources__btn-secondary,
    .page-resources a[class*="button"],
    .page-resources 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: 12px 20px !important;
        font-size: 1em;
    }
    
    .page-resources__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 其他内容模块 (Card Grid) */
    .page-resources__card-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }

    .page-resources__card-title {
        font-size: 1.3em;
    }

    .page-resources__faq-question {
        font-size: 1em;
        padding: 15px;
    }

    .page-resources__faq-answer {
        padding: 0 15px;
    }

    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 15px;
    }

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

    .page-resources__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
}