/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* Global styles for 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; /* Body background is handled by shared.css */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Gold brand color for titles */
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-resources__text-content {
    text-align: left;
    color: #f0f0f0;
}

.page-resources__text-content p {
    margin-bottom: 15px;
}

.page-resources__text-content strong {
    color: #FFD700;
}

.page-resources__text-content a {
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__text-content a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjusted height for better visual */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 0; /* Remove default padding as offset is on main */
}

.page-resources__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-resources__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

.page-resources__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-resources__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
    background: #FFD700;
    color: #000080; /* Dark blue text on gold background for contrast */
    border: 2px solid #FFD700;
}

.page-resources__btn-primary:hover {
    background: #e6c200;
    color: #000050;
    transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
    background: #FFD700;
    color: #000080;
    transform: translateY(-2px);
}

.page-resources__btn-tertiary {
    background: #000080;
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 10px 20px;
    font-size: 0.9em;
    border-radius: 5px;
}

.page-resources__btn-tertiary:hover {
    background: #FFD700;
    color: #000080;
    border-color: #000080;
}

/* Content Wrapper for text + image layout */
.page-resources__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-resources__text-content,
.page-resources__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-resources__image-wrapper {
    text-align: center;
}

.page-resources__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__image-wrapper--full-width {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.page-resources__image-wrapper--center {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}


/* Grid Layout for Cards */
.page-resources__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

/* Cards */
.page-resources__card {
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    border: 1px solid #000080; /* Dark blue border */
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-resources__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-resources__card-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-resources__card-title a {
    color: #FFD700;
    text-decoration: none;
}

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

.page-resources__card p {
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq {
    background-color: #000080; /* Dark blue background for FAQ */
    padding: 80px 0;
}

.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

.page-resources__faq-item {
    background-color: rgba(0, 0, 0, 0.6); /* Slightly transparent dark for item */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #000080; /* Dark blue for question header */
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
    background-color: #000060;
}

.page-resources__faq-heading {
    margin: 0;
    color: #FFD700;
    font-size: 1.2em;
}

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

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

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-resources__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

.page-resources__faq-answer a {
    color: #FFD700;
    text-decoration: none;
}

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

/* Call to Action Section */
.page-resources__cta-section {
    background: linear-gradient(135deg, #000080, #000050); /* Dark blue gradient */
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
}

.page-resources__cta-title {
    font-size: 2.8em;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__hero-section {
        height: 500px;
    }
}

@media (max-width: 768px) {
    /* General Mobile Adjustments */
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section {
        padding: 40px 0;
    }

    /* Hero Section */
    .page-resources__hero-section {
        height: 450px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
    }

    /* Content Layouts */
    .page-resources__content-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    /* Image Responsiveness (Critical) */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__image-wrapper,
    .page-resources__image-wrapper--full-width,
    .page-resources__image-wrapper--center {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }

    /* Grid Layout */
    .page-resources__grid,
    .page-resources__grid--two-columns {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Cards */
    .page-resources__card {
        padding: 25px;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }

    /* FAQ Section */
    .page-resources__faq {
        padding: 60px 0;
    }
    .page-resources__faq-question {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-heading {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 15px 20px;
    }

    /* CTA Section */
    .page-resources__cta-title {
        font-size: 2em;
    }
    .page-resources__cta-description {
        font-size: 1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-buttons .page-resources__btn-primary,
    .page-resources__cta-buttons .page-resources__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-section {
        height: 400px;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__cta-title {
        font-size: 1.8em;
    }
}

/* Ensure no filter on images */
.page-resources img {
    filter: none;
}