/* style/resources.css */

:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #1A1A1A; /* Dark Black */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark-primary: #1a1a1a; /* A slightly lighter dark for sections */
    --bg-dark-secondary: #0d0d0d; /* A darker dark for other sections */
    --border-color: #333333;
    --card-bg: rgba(255, 255, 255, 0.08);
    --hover-gold: #e6c200;
}

/* 🚨 固定导航栏间距 */
.page-resources__hero-section {
    padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

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

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

.page-resources__section-spacing {
    padding: 60px 0;
}

.page-resources__hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero:tài xỉu sunwin 20,game,main]') center center / cover no-repeat;
    text-align: center;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 450px;
}

.page-resources__hero-container {
    max-width: 900px;
    color: var(--text-light);
}

.page-resources__hero-title {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
    font-weight: bold;
}

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

.page-resources__hero-cta-button,
.page-resources__cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
}

.page-resources__hero-cta-button:hover,
.page-resources__cta-button:hover {
    background: var(--hover-gold);
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
}

.page-resources__cta-button--small {
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 30px;
    margin-top: 20px;
}

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

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

.page-resources__subsection-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-resources__content-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.8;
    color: #e0e0e0;
}

.page-resources__list,
.page-resources__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: #e0e0e0;
}

.page-resources__ordered-list {
    list-style-type: decimal;
}

.page-resources__list li,
.page-resources__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.6;
}

.page-resources__dark-bg {
    background-color: var(--bg-dark-primary);
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__subsection-title {
    color: var(--primary-color);
}

.page-resources__dark-bg p,
.page-resources__dark-bg li,
.page-resources__dark-bg a {
    color: #f0f0f0;
}

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

.page-resources a:hover {
    color: var(--hover-gold);
    text-decoration: underline;
}

/* Images */
.page-resources img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__image-full-width {
    width: 100%;
    max-width: 1000px; /* Example max width for content images */
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-resources__faq-list {
    margin-top: 40px;
}

.page-resources__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
}

.page-resources__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid transparent;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

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

.page-resources__faq-item.active .page-resources__faq-question {
    border-color: var(--primary-color);
}

.page-resources__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primary-color);
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-resources__faq-toggle {
    font-size: 2em;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
    transform: rotate(45deg); /* Change to a 'X' or rotate for '−' */
    color: var(--hover-gold);
}

.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;
    color: #e0e0e0;
    background: rgba(255, 255, 255, 0.05);
}

/* 🚨 FAQ展开状态 - 使用!important和足够大的max-height确保一定能展开 */
.page-resources__faq-item.active .page-resources__faq-answer {
    max-height: 2000px !important; /* Use !important to ensure priority, value large enough for any content */
    padding: 20px !important;
    opacity: 1;
    border-top: 1px solid var(--border-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources__hero-title {
        font-size: 3.2em;
    }
    .page-resources__hero-description {
        font-size: 1.2em;
    }
    .page-resources__section-title {
        font-size: 2.4em;
    }
    .page-resources__subsection-title {
        font-size: 1.8em;
    }
    .page-resources__content-block p,
    .page-resources__list li,
    .page-resources__ordered-list li {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
    .page-resources__hero-section {
        padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
        padding-bottom: 60px;
    }
    .page-resources__container {
        padding: 0 15px;
    }
    .page-resources__section-spacing {
        padding: 40px 0;
    }
    .page-resources__hero-title {
        font-size: 2.5em;
    }
    .page-resources__hero-description {
        font-size: 1em;
    }
    .page-resources__hero-cta-button,
    .page-resources__cta-button {
        padding: 15px 30px;
        font-size: 1em;
        width: 100%; /* 🚨 按钮移动端适配 */
        max-width: 300px; /* Limit max width for better appearance */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-resources__cta-button--small {
        width: auto;
        max-width: none;
    }
    .page-resources__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-resources__subsection-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 15px;
    }
    .page-resources__content-block p,
    .page-resources__list li,
    .page-resources__ordered-list li {
        font-size: 0.95em;
    }
    
    /* FAQ Mobile */
    .page-resources__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-resources__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-resources__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 1.8em;
    }
    .page-resources__faq-answer {
        padding: 0 15px;
    }
    .page-resources__faq-item.active .page-resources__faq-answer {
        padding: 15px !important;
    }
    
    /* 🚨 移动端图片适配 */
    .page-resources img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 0;
        margin: 20px auto;
    }
    .page-resources__content-block {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

@media (max-width: 480px) {
    .page-resources__hero-title {
        font-size: 2em;
    }
    .page-resources__hero-description {
        font-size: 0.9em;
    }
    .page-resources__hero-cta-button,
    .page-resources__cta-button {
        padding: 12px 25px;
        font-size: 0.9em;
    }
    .page-resources__section-title {
        font-size: 1.8em;
    }
    .page-resources__subsection-title {
        font-size: 1.3em;
    }
}