.page-resources {
    color: #ffffff; /* Dark body background, so light text */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #000; /* Ensure body background is black for contrast */
}

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

/* Hero Banner Section */
.page-resources__hero-banner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 550px;
    background-color: #1a1a1a;
    padding: 80px 0;
    overflow: hidden;
    text-align: center;
    /* If shared.css sets body padding-top, this should be 0 */
    padding-top: 0; 
    margin-top: 0;
}

.page-resources__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    margin: 0 20px;
}

.page-resources__main-title {
    font-size: 48px;
    font-weight: bold;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-resources__intro-text {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    text-align: center;
}

.page-resources__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #1a1a1a;
    border: 2px solid #FFD700;
}

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

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

.page-resources__btn-secondary:hover {
    background-color: #FFD700;
    color: #1a1a1a;
}

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

.page-resources__hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle overlay */
}

/* General Section Styling */
.page-resources__overview-section,
.page-resources__guides-section,
.page-resources__faq-section,
.page-resources__latest-news-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.page-resources__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #FFD700; /* Gold */
    text-align: center;
    margin-bottom: 20px;
}

.page-resources__section-description {
    font-size: 18px;
    color: #cccccc;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
}

/* Features Grid Section */
.page-resources__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__feature-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333333;
}

.page-resources__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-resources__card-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFD700; /* Gold */
    margin-bottom: 15px;
}

.page-resources__feature-card p {
    font-size: 16px;
    color: #cccccc;
}

/* Article List Section */
.page-resources__article-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-resources__article-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
}

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

.page-resources__article-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

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

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

.page-resources__article-title a {
    color: #FFD700; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__article-title a:hover {
    color: #e6c200;
}

.page-resources__article-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__read-more {
    display: inline-flex;
    align-items: center;
    color: #8B0000; /* Dark Red */
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
    margin-top: auto;
}

.page-resources__read-more:hover {
    color: #ff0000;
}

.page-resources__arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.page-resources__read-more:hover .page-resources__arrow {
    transform: translateX(5px);
}

/* CTA Section */
.page-resources__cta-section {
    background-color: #8B0000; /* Dark Red */
    padding: 60px 0;
    text-align: center;
}

.page-resources__cta-section .page-resources__section-title {
    color: #ffffff;
    margin-bottom: 15px;
}

.page-resources__cta-section .page-resources__section-description {
    color: #f0f0f0;
    margin-bottom: 40px;
}

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

.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background-color: #1a1a1a; /* Dark background for FAQ item */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  background-color: #2a2a2a; /* Slightly lighter dark for answer background */
  color: #cccccc;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Use !important and sufficient value */
  padding: 20px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
    margin: 0;
    padding: 0;
    font-size: 16px;
    color: #cccccc;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background-color: #1a1a1a;
  border: 1px solid #333333;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources__faq-item.active .page-resources__faq-question {
    border-radius: 5px 5px 0 0;
    border-bottom-color: transparent;
}

.page-resources__faq-question:hover {
  background-color: #2a2a2a;
  border-color: #444444;
}

.page-resources__faq-question:active {
  background-color: #3a3a3a;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #FFD700; /* Gold for question text */
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700; /* Gold for toggle icon */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #FFD700; /* Gold */
  transform: rotate(45deg); /* Rotate for 'x' effect, or just change text */
}

/* Latest News Section */
.page-resources__latest-news-section {
    background-color: #0d0d0d;
}

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

.page-resources__news-card {
    background-color: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #333333;
    display: flex;
    flex-direction: column;
}

.page-resources__news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-resources__news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

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

.page-resources__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.3;
}

.page-resources__news-title a {
    color: #FFD700; /* Gold */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-resources__news-title a:hover {
    color: #e6c200;
}

.page-resources__news-date {
    font-size: 14px;
    color: #8B0000; /* Dark Red */
    margin-bottom: 15px;
}

.page-resources__news-excerpt {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-resources__view-all-news {
    text-align: center;
    margin-top: 50px;
}

/* General Image Styling */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__main-title {
        font-size: 40px;
    }

    .page-resources__intro-text {
        font-size: 16px;
    }

    .page-resources__section-title {
        font-size: 30px;
    }

    .page-resources__section-description {
        font-size: 16px;
    }

    .page-resources__features-grid,
    .page-resources__article-list,
    .page-resources__news-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .page-resources__feature-card,
    .page-resources__article-card,
    .page-resources__news-card {
        padding: 25px;
    }

    .page-resources__article-title,
    .page-resources__news-title {
        font-size: 20px;
    }

    .page-resources__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-resources {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-resources__container {
        padding: 0 15px;
    }

    /* HERO 主图区域 */
    .page-resources__hero-banner {
        min-height: 450px;
        padding: 60px 0;
        padding-top: 0 !important; /* 留白只做一处：shared 已给 body 留白时 hero 用 0 */
    }

    .page-resources__hero-content {
        padding: 15px;
        margin: 0 15px;
    }

    .page-resources__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-resources__intro-text {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .page-resources__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources__btn-primary,
    .page-resources__btn-secondary {
        padding: 12px 20px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 其他内容模块 */
    .page-resources__overview-section,
    .page-resources__guides-section,
    .page-resources__faq-section,
    .page-resources__latest-news-section {
        padding: 50px 0;
    }

    .page-resources__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }

    .page-resources__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .page-resources__features-grid,
    .page-resources__article-list,
    .page-resources__news-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-resources__feature-card,
    .page-resources__article-card,
    .page-resources__news-card {
        padding: 20px;
    }

    .page-resources__feature-card img,
    .page-resources__article-card img,
    .page-resources__news-card img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
    }

    .page-resources__card-title {
        font-size: 20px;
    }

    .page-resources__article-title,
    .page-resources__news-title {
        font-size: 18px;
    }

    .page-resources__article-excerpt,
    .page-resources__news-excerpt,
    .page-resources__feature-card p,
    .page-resources__faq-answer p {
        font-size: 15px;
    }

    /* FAQ */
    .page-resources__faq-question {
        padding: 15px;
    }

    .page-resources__faq-question h3 {
        font-size: 16px;
        margin-right: 10px;
    }

    .page-resources__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }

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

    .page-resources__view-all-news {
        margin-top: 30px;
    }

    /* 通用图片与容器 */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-resources__hero-image-container img {
        height: 100%; /* Maintain height for hero */
    }

    .page-resources__section,
    .page-resources__card,
    .page-resources__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* LOGO轮播项特殊要求 - 此页面不适用，但若有则需保持固定尺寸 */
    /* .page-resources__logo-item { */
    /*     width: 80px !important; */
    /*     height: 80px !important; */
    /*     max-width: 80px !important; */
    /*     box-sizing: border-box; */
    /* } */
}