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

/* General styles for the page-resources scope */
.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__section {
    padding: 60px 0;
    text-align: center;
}

.page-resources__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: #ffc107; /* Auxiliary color for titles */
    font-weight: bold;
}

.page-resources__subsection-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #007bff; /* Primary color for sub-titles */
    font-weight: bold;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__list {
    list-style: disc;
    padding-left: 40px;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-resources__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Color contrast enforcement */
.page-resources__dark-bg {
    background-color: #007bff; /* Primary brand color */
    color: #ffffff; /* Light text for dark background */
}

.page-resources__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    padding-bottom: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    background-color: #1a1a2e; /* Dark background for hero */
    color: #ffffff;
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffc107;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    line-height: 1.5;
    color: #f0f0f0;
}

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background */
    filter: none; /* Ensure no CSS filter */
}

/* CTA Buttons */
.page-resources__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding doesn't push width */
}

.page-resources__btn-primary {
    background-color: #ffc107; /* Auxiliary color */
    color: #1a1a2e; /* Dark text for light button */
    border: 2px solid #ffc107;
}

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

.page-resources__btn-secondary {
    background-color: transparent;
    color: #ffc107; /* Auxiliary color */
    border: 2px solid #ffc107;
}

.page-resources__btn-secondary:hover {
    background-color: #ffc107;
    color: #1a1a2e;
    transform: translateY(-2px);
}

/* Two Column Layout */
.page-resources__two-column-layout {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
}

.page-resources__two-column-layout .page-resources__content-block {
    flex: 1;
    min-width: 0; /* Allow content to shrink */
}

.page-resources__two-column-layout .page-resources__image-wrapper {
    flex: 1;
    min-width: 0; /* Allow image to shrink */
}

.page-resources__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: block; /* Remove extra space below image */
    filter: none; /* Ensure no CSS filter */
}

.page-resources__image--center {
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-resources__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    border-radius: 10px;
    overflow: hidden;
}

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    color: #f0f0f0;
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly darker for question area */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-resources__faq-title {
    font-size: 1.2em;
    margin: 0;
    color: #ffc107;
    text-align: left;
    flex-grow: 1;
}

.page-resources__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #ffc107;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* For '-' effect, or simply change content */
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    text-align: left;
}

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

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
    }
    .page-resources__text-block {
        font-size: 1em;
    }
    .page-resources__list-item {
        font-size: 0.95em;
    }
    .page-resources__two-column-layout {
        flex-direction: column;
        gap: 30px;
    }
    .page-resources__reverse-columns-on-mobile {
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
        min-height: 450px;
        padding-bottom: 40px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 300px; /* Limit button group width */
        margin-left: auto;
        margin-right: auto;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-resources__section {
        padding: 40px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources__text-block,
    .page-resources__list {
        padding-left: 15px;
        padding-right: 15px;
        text-align: left;
    }
    .page-resources__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Images responsiveness */
    .page-resources img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    /* All containers that might hold images or other content */
    .page-resources__section,
    .page-resources__card,
    .page-resources__container,
    .page-resources__two-column-layout,
    .page-resources__content-block,
    .page-resources__image-wrapper,
    .page-resources__faq-list,
    .page-resources__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-resources__faq-question,
    .page-resources__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure images do not have filters */
.page-resources img {
    filter: none;
}