/* style/resources.css */
/* 页面完整样式代码 - 注意：所有选择器必须添加页面前缀 */

:root {
    --page-resources-primary-color: #1A237E; /* Deep Blue-Purple */
    --page-resources-accent-color: #FFC107; /* Bright Yellow-Orange */
    --page-resources-text-light: #ffffff;
    --page-resources-text-dark: #333333;
    --page-resources-bg-light: #f9f9f9;
    --page-resources-bg-dark: #11184a; /* Slightly darker than primary for contrast */
    --page-resources-card-bg: #ffffff;
    --page-resources-border-color: #e0e0e0;
}

.page-resources {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--page-resources-text-dark);
    background-color: var(--page-resources-bg-light);
}

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

/* Hero Section */
.page-resources__hero {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, var(--page-resources-bg-dark) 100%);
    padding: 100px 0;
    text-align: center;
    color: var(--page-resources-text-light);
    position: relative;
    overflow: hidden;
}

.page-resources__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--page-resources-text-light);
    line-height: 1.2;
}

.page-resources__hero-subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

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

/* Buttons */
.page-resources__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.page-resources__btn--primary {
    background-color: var(--page-resources-accent-color);
    color: var(--page-resources-primary-color);
    border-color: var(--page-resources-accent-color);
}

.page-resources__btn--primary:hover {
    background-color: #e6b007; /* A slightly darker yellow */
    color: var(--page-resources-primary-color);
    transform: translateY(-2px);
}

.page-resources__btn--secondary {
    background-color: transparent;
    color: var(--page-resources-text-light);
    border-color: var(--page-resources-text-light);
}

.page-resources__btn--secondary:hover {
    background-color: var(--page-resources-text-light);
    color: var(--page-resources-primary-color);
    transform: translateY(-2px);
}

.page-resources__btn--lg {
    padding: 16px 35px;
    font-size: 1.2em;
}

/* Section Styling */
.page-resources__intro-section,
.page-resources__articles-section,
.page-resources__value-proposition,
.page-resources__faq-section {
    padding: 80px 0;
    background-color: var(--page-resources-bg-light);
}

.page-resources__section-title {
    font-size: 2.5em;
    color: var(--page-resources-primary-color);
    text-align: center;
    margin-bottom: 25px;
    font-weight: bold;
    position: relative;
}

.page-resources__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--page-resources-accent-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-resources__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: var(--page-resources-text-dark);
}

/* Articles Grid */
.page-resources__articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-resources__article-card {
    background-color: var(--page-resources-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-resources__article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.page-resources__article-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-resources__article-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-resources__article-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.3;
}

.page-resources__article-title a {
    color: var(--page-resources-primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: var(--page-resources-accent-color);
}

.page-resources__article-summary {
    font-size: 1em;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__article-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.page-resources__article-actions .page-resources__btn {
    padding: 10px 20px;
    font-size: 0.95em;
    border-width: 1px;
}

.page-resources__article-actions .page-resources__btn--secondary {
    color: var(--page-resources-primary-color);
    border-color: var(--page-resources-primary-color);
    background-color: transparent;
}
.page-resources__article-actions .page-resources__btn--secondary:hover {
    background-color: var(--page-resources-primary-color);
    color: var(--page-resources-text-light);
}


/* Value Proposition Section */
.page-resources__value-proposition {
    background-color: var(--page-resources-bg-light);
}

.page-resources__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-resources__feature-item {
    background-color: var(--page-resources-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-resources__feature-item:hover {
    transform: translateY(-5px);
}

.page-resources__feature-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 20px;
    object-fit: contain;
    filter: drop-shadow(0 5px 10px rgba(var(--page-resources-accent-color), 0.3)); /* Dynamic shadow for icons */
}

.page-resources__feature-title {
    font-size: 1.8em;
    color: var(--page-resources-primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-resources__feature-description {
    font-size: 1em;
    color: #666;
}

/* Bottom CTA Section */
.page-resources__cta-section--bottom {
    background: linear-gradient(135deg, var(--page-resources-primary-color) 0%, var(--page-resources-bg-dark) 100%);
    color: var(--page-resources-text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-resources__cta-section--bottom .page-resources__section-title {
    color: var(--page-resources-text-light);
}

.page-resources__cta-section--bottom .page-resources__section-title::after {
    background-color: var(--page-resources-accent-color);
}

.page-resources__cta-section--bottom .page-resources__section-description {
    color: var(--page-resources-text-light);
    opacity: 0.9;
    margin-bottom: 40px;
}

.page-resources__cta-section--bottom .page-resources__cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.page-resources__cta-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
.page-resources__faq-section {
    background-color: var(--page-resources-card-bg);
    padding: 80px 0;
}

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

.page-resources__faq-item {
    background-color: var(--page-resources-bg-light);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer; /* Indicate interactivity */
}

.page-resources__faq-item.is-active .page-resources__faq-answer {
    max-height: fit-content; /* Adjust based on JS */
    padding-top: 15px; /* Add space when active */
}

.page-resources__faq-question {
    font-size: 1.3em;
    color: var(--page-resources-primary-color);
    margin-bottom: 10px;
    font-weight: bold;
    position: relative;
    padding-right: 30px;
}

.page-resources__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    color: var(--page-resources-accent-color);
    transition: transform 0.3s ease;
}

.page-resources__faq-item.is-active .page-resources__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation for minus */
}

.page-resources__faq-answer {
    font-size: 1em;
    color: #555;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding-top 0.3s ease-out;
    padding-top: 0;
}

.page-resources__faq-answer a {
    color: var(--page-resources-primary-color);
    text-decoration: underline;
}

.page-resources__faq-answer a:hover {
    color: var(--page-resources-accent-color);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-resources__hero-title {
        font-size: 2.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2em;
    }
    .page-resources__btn {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-resources__btn--lg {
        padding: 14px 30px;
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-resources__hero {
        padding: 80px 0 60px;
    }
    .page-resources__hero-title {
        font-size: 2.2em;
    }
    .page-resources__hero-subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-resources__hero-cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
    .page-resources__btn--secondary {
        border-color: var(--page-resources-accent-color); /* Adjust for better visibility on dark hero */
        color: var(--page-resources-accent-color);
    }
    .page-resources__btn--secondary:hover {
        background-color: var(--page-resources-accent-color);
        color: var(--page-resources-primary-color);
    }

    .page-resources__intro-section,
    .page-resources__articles-section,
    .page-resources__value-proposition,
    .page-resources__faq-section,
    .page-resources__cta-section--bottom {
        padding: 60px 0;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__section-description {
        font-size: 1em;
        margin-bottom: 40px;
    }
    .page-resources__articles-grid {
        grid-template-columns: 1fr;
    }
    .page-resources__feature-title {
        font-size: 1.5em;
    }
    .page-resources__cta-section--bottom .page-resources__cta-group {
        flex-direction: column;
        gap: 15px;
    }
    .page-resources__cta-section--bottom .page-resources__btn {
        width: 80%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 1.8em;
    }
    .page-resources__hero-subtitle {
        font-size: 0.95em;
    }
    .page-resources__section-title {
        font-size: 1.6em;
    }
    .page-resources__faq-question {
        font-size: 1.1em;
    }
    .page-resources__faq-answer {
        font-size: 0.9em;
    }
}