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

/* Base styles for the page content */
.page-resources {
    color: #ffffff; /* Body background is #1a1a1a (dark), so text should be light */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body or shared.css */
}

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

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

.page-resources__hero-content {
    flex: 1;
    padding-right: 40px;
    z-index: 1;
}

.page-resources__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFD700; /* Gold for main title */
}

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

.page-resources__hero-cta-buttons {
    display: flex;
    gap: 15px;
}

.page-resources__btn-primary,
.page-resources__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;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold button */
    color: #0A192F; /* Dark blue text */
    border: 2px solid #FFD700;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #0A192F;
}

.page-resources__hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.page-resources__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element */
}

/* General Section Styling */
.page-resources__content-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Default section background, matches body */
}

.page-resources__dark-section {
    background-color: #0A192F;
    color: #ffffff;
}

.page-resources__section-title {
    font-size: 2.5em;
    color: #FFD700;
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-title--light {
    color: #ffffff;
}

.page-resources__section-description {
    font-size: 1.1em;
    color: #cccccc;
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__section-description--light {
    color: #f0f0f0;
}

.page-resources__text-block {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-bottom: 40px;
    text-align: justify;
}

.page-resources__text-block p {
    margin-bottom: 1em;
}

.page-resources__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grid Layout for Guides and News */
.page-resources__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__guide-card,
.page-resources__news-card {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white for cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__guide-card:hover,
.page-resources__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__card-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

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

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

.page-resources__card-title a:hover {
    color: #ffffff;
}

.page-resources__card-text {
    font-size: 1em;
    color: #cccccc;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow */
}

.page-resources__btn-link {
    display: inline-block;
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px 20px;
    transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Feature List for Safety Section */
.page-resources__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-resources__feature-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-resources__feature-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__feature-text {
    color: #cccccc;
    font-size: 1em;
}

.page-resources__cta-buttons--center {
    justify-content: center;
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Video Section */
.page-resources__video-section {
    background-color: #0A192F;
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-resources__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px; /* Max width for video container */
    margin: 0 auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__video-link {
    display: block;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.page-resources__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: #1a1a1a;
}

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

.page-resources__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFD700;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

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

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

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* For '-' symbol */
    color: #ffffff;
}

.page-resources__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
    background-color: rgba(0, 0, 0, 0.2);
}

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

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

/* Contact Section */
.page-resources__contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.page-resources__contact-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-resources__contact-title {
    font-size: 1.4em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-resources__contact-text {
    color: #cccccc;
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Final CTA Section */
.page-resources__cta-final-section {
    background: linear-gradient(45deg, #0A192F, #1a1a1a);
    color: #ffffff;
    text-align: center;
    padding: 100px 0;
}

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

/* Responsive Styles */
@media (max-width: 992px) {
    .page-resources__hero-section {
        flex-direction: column;
        text-align: center;
        padding-top: var(--header-offset, 120px);
        min-height: auto;
    }

    .page-resources__hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .page-resources__hero-image-wrapper {
        justify-content: center;
    }

    .page-resources__hero-title {
        font-size: 2.5em;
    }

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

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

@media (max-width: 768px) {
    .page-resources__container {
        padding: 0 15px;
    }

    .page-resources__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

    .page-resources__hero-cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__cta-buttons--center {
        flex-direction: column;
        gap: 10px;
    }

    .page-resources__content-section {
        padding: 60px 0;
    }

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

    .page-resources__section-description {
        margin-bottom: 40px;
    }

    .page-resources__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-resources__feature-list,
    .page-resources__contact-methods {
        grid-template-columns: 1fr;
    }

    /* Mobile image responsive */
    .page-resources img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/videos/buttons must also be responsive */
    .page-resources__hero-section,
    .page-resources__content-section,
    .page-resources__container,
    .page-resources__guide-card,
    .page-resources__news-card,
    .page-resources__feature-item,
    .page-resources__contact-item,
    .page-resources__video-section,
    .page-resources__video-wrapper,
    .page-resources__faq-section,
    .page-resources__faq-item,
    .page-resources__cta-final-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video specific mobile styles */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-resources__video-link {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: 0 !important;
    }

    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}