/* style/resources.css */

/* 基础样式和颜色对比度 */
.page-resources {
    color: #f0f0f0; /* Light text for dark body background #121212 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-resources__dark-section,
.page-resources__dark-bg {
    background-color: #0A2342; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

/* Hero Section */
.page-resources__hero-section {
    position: relative;
    padding: 100px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: #0A2342; /* Main brand color */
    color: #ffffff;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #E6B325; /* Accent color for title */
    line-height: 1.2;
}

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

.page-resources__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.page-resources__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
    display: block;
}

/* Section Titles */
.page-resources__section-title {
    font-size: 2.5em;
    color: #E6B325; /* Accent color for section titles */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-resources__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #ffffff; /* Light text */
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    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: #E6B325; /* Accent color */
    color: #0A2342; /* Dark text for accent background */
    border: 2px solid #E6B325;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #E6B325;
    color: #0A2342;
}

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

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

/* Card styles */
.page-resources__guide-grid,
.page-resources__news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-resources__card {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for cards */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-resources__card-image {
    max-width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

.page-resources__card-description {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Strategy List */
.page-resources__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-resources__strategy-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-left: 5px solid #E6B325;
    padding: 20px 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-resources__strategy-subtitle {
    font-size: 1.4em;
    color: #E6B325;
    margin-bottom: 10px;
}

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

.page-resources__video-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-resources__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

/* FAQ Section */
.page-resources__faq-section {
    padding: 60px 0;
    background-color: #0A2342;
    color: #ffffff;
}

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

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

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

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

.page-resources__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 20px;
    transition: transform 0.3s ease;
    color: #E6B325;
}

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

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

.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 1000px !important;
    padding: 15px 25px;
}

.page-resources__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* Contact Info */
.page-resources__contact-info {
    margin-top: 30px;
    text-align: center;
}

.page-resources__contact-info p {
    font-size: 1.1em;
    margin-bottom: 10px;
    color: #ffffff;
}

.page-resources__link {
    color: #E6B325;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__link:hover {
    color: #d9a41e;
    text-decoration: underline;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__card-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero-section {
        padding: 80px 0;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-resources__hero-content {
        padding: 10px;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1.1em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-resources__text-block,
    .page-resources__card-description,
    .page-resources__strategy-item p,
    .page-resources__faq-answer p,
    .page-resources__contact-info p {
        font-size: 1em;
    }

    /* Images responsiveness */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__hero-image {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* Video responsiveness */
    .page-resources video,
    .page-resources__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-resources__video-section,
    .page-resources__video-container,
    .page-resources__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Buttons responsiveness */
    .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-left: 15px;
        padding-right: 15px;
    }
    .page-resources__hero-cta-buttons,
    .page-resources__cta-buttons,
    .page-resources__button-group,
    .page-resources__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 15px;
    }

    /* General container padding for mobile */
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-resources__card {
        padding: 20px;
    }
    .page-resources__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        padding: 0 20px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 10px 20px;
    }

    /* Content area image size lower limit check */
    .page-resources__guide-grid img,
    .page-resources__news-grid img {
        min-width: 200px !important;
        min-height: 200px !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__section-title {
        font-size: 1.5em;
    }
    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        font-size: 1em;
        padding: 12px 20px;
    }
}