/* style/beginner-guide.css */
:root {
    --primary-color: #007BFF;
    --secondary-color: #28A745;
    --dark-text: #333333;
    --light-text: #ffffff;
    --border-color: #e0e0e0;
    --card-bg: #ffffff;
    --section-bg: #f1f3f5;
    --faq-question-bg: #fff;
    --faq-answer-bg: #f9f9f9;
    --link-color: #0066cc;
    --link-hover-color: #004499;
}

.page-beginner-guide {
    font-family: 'Arial', sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background-color: var(--section-bg); /* Default background for the page content */
}

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

.page-beginner-guide__hero-intro-section {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 60px 20px;
    text-align: center;
    color: var(--light-text);
    /* 🚨 必须添加桌面端padding-top，确保内容不被固定导航栏遮挡 */
    padding-top: 120px; /* Desktop: Adjust based on actual fixed header height, typically 80-150px */
}

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

.page-beginner-guide__main-title .highlight {
    color: #FFD700; /* Highlight color for keywords */
}

.page-beginner-guide__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__intro-text strong {
    color: #FFD700;
}

.page-beginner-guide__intro-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-beginner-guide__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.page-beginner-guide__btn-primary {
    background: #FFD700;
    color: var(--dark-text);
    border: none;
}

.page-beginner-guide__btn-primary:hover {
    background: #FFA500;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-secondary {
    background: var(--secondary-color);
    color: var(--light-text);
    border: none;
}

.page-beginner-guide__btn-secondary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-beginner-guide__btn-text-link {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 25px;
    font-size: 1em;
}

.page-beginner-guide__btn-text-link:hover {
    background: var(--primary-color);
    color: var(--light-text);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-beginner-guide__content-section {
    padding: 60px 20px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
}

.page-beginner-guide__article {
    max-width: 900px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-beginner-guide__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 30px;
    text-align: center;
    font-weight: bold;
    line-height: 1.3;
}

.page-beginner-guide__section-title .highlight {
    color: var(--secondary-color);
}

.page-beginner-guide__sub-title {
    font-size: 1.6em;
    color: var(--dark-text);
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.4;
}

.page-beginner-guide__article p {
    margin-bottom: 15px;
    line-height: 1.8;
    font-size: 1.05em;
}

.page-beginner-guide__article p strong {
    color: var(--primary-color);
}

.page-beginner-guide__article a {
    color: var(--link-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-beginner-guide__article a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

.page-beginner-guide__list,
.page-beginner-guide__ordered-list {
    list-style-position: inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-beginner-guide__list li,
.page-beginner-guide__ordered-list li {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 1.05em;
}

.page-beginner-guide__list li strong,
.page-beginner-guide__ordered-list li strong {
    color: var(--dark-text);
}

.page-beginner-guide__content-image {
    width: 100%;
    max-width: 700px;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.page-beginner-guide__faq-section {
    padding: 60px 20px;
    background-color: var(--section-bg);
}

.page-beginner-guide__faq-list {
    max-width: 900px;
    margin: 0 auto;
    margin-top: 30px;
}

.page-beginner-guide__faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.page-beginner-guide__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 25px;
    opacity: 0;
    background: var(--faq-answer-bg);
    color: var(--dark-text);
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
    max-height: 2000px !important;
    padding: 20px 25px !important;
    opacity: 1;
    border-radius: 0 0 8px 8px;
}

.page-beginner-guide__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background: var(--faq-question-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-beginner-guide__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-beginner-guide__faq-question:active {
    background: #eeeeee;
}

.page-beginner-guide__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--dark-text);
    pointer-events: none;
}

.page-beginner-guide__faq-toggle {
    font-size: 24px;
    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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-beginner-guide__faq-item.active .page-beginner-guide__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-beginner-guide__main-title {
        font-size: 2.8em;
    }
    .page-beginner-guide__section-title {
        font-size: 2em;
    }
    .page-beginner-guide__sub-title {
        font-size: 1.4em;
    }
    .page-beginner-guide__article {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-beginner-guide__hero-intro-section {
        /* 🚨 移动端必须重新设置padding-top，覆盖桌面端样式 */
        padding-top: 100px !important; /* Mobile: Adjust based on actual fixed header height, typically 80-120px */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-beginner-guide__container {
        padding: 0 15px;
    }
    .page-beginner-guide__main-title {
        font-size: 2em;
    }
    .page-beginner-guide__intro-text {
        font-size: 1em;
    }
    .page-beginner-guide__cta-button {
        padding: 12px 30px;
        font-size: 1em;
    }
    .page-beginner-guide__content-section,
    .page-beginner-guide__faq-section {
        padding: 40px 15px;
    }
    .page-beginner-guide__article {
        padding: 25px;
        box-shadow: none; /* Reduce shadow on mobile */
    }
    .page-beginner-guide__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-beginner-guide__sub-title {
        font-size: 1.2em;
        margin-top: 30px;
    }
    .page-beginner-guide__article p,
    .page-beginner-guide__list li,
    .page-beginner-guide__ordered-list li {
        font-size: 0.95em;
        line-height: 1.7;
    }
    .page-beginner-guide__content-image {
        margin: 20px auto;
        border-radius: 6px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-beginner-guide__faq-question {
        padding: 15px 20px;
    }
    .page-beginner-guide__faq-question h3 {
        font-size: 1em;
    }
    .page-beginner-guide__faq-toggle {
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-beginner-guide__faq-item.active .page-beginner-guide__faq-answer {
        padding: 15px 20px !important;
    }
    /* Global image responsiveness for mobile */
    .page-beginner-guide img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-beginner-guide__section,
    .page-beginner-guide__card,
    .page-beginner-guide__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-beginner-guide__main-title {
        font-size: 1.8em;
    }
    .page-beginner-guide__section-title {
        font-size: 1.6em;
    }
    .page-beginner-guide__sub-title {
        font-size: 1.1em;
    }
    .page-beginner-guide__cta-button {
        padding: 10px 25px;
        font-size: 0.95em;
    }
    .page-beginner-guide__article {
        padding: 20px;
    }
    .page-beginner-guide__faq-question h3 {
        font-size: 0.95em;
    }
}