/**
 * faq.css - Styles for the FAQ page
 */

/* 主内容区域 */
.faq-content {
    padding: 60px 0;
    background-color: var(--background-secondary);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 页面标题 */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 40px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

/* FAQ手风琴 */
.faq-accordion {
    margin-bottom: 50px;
}

.faq-item {
    margin-bottom: 10px;
    background-color: var(--background-primary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

/* 问题样式 */
.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(0,0,0,0.03);
}

.faq-question span {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    padding-right: 10px;
}

.faq-question i {
    font-size: 24px;
    transition: transform 0.3s ease;
    color: var(--primary-blue);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

/* 答案样式 */
.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.3s ease-out;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px;
    max-height: 2000px;
}

.faq-answer p {
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.faq-answer ul {
    list-style-type: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.faq-answer ul li {
    color: var(--text-primary);
    margin-bottom: 10px;
    line-height: 1.5;
    font-size: 15px;
}

/* Tablet (and larger mobile) adjustments */
@media (max-width: 991px) {
    .faq-content {
        padding: 50px 0;
    }

    .page-title {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .faq-question {
        padding: 18px;
    }

    .faq-question span {
        font-size: 17px;
    }

    .faq-question i {
        font-size: 22px;
    }

    .faq-item.active .faq-answer {
        padding: 0 18px 18px;
    }

    .faq-answer p,
    .faq-answer ul li {
        font-size: 14px;
    }
}

/* Mobile adjustments (enhancing existing 768px breakpoint) */
@media (max-width: 768px) {
    .faq-content {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 10px;
    }

    .page-title {
        font-size: 26px;
        margin-bottom: 25px;
        padding-bottom: 10px;
    }
    
    .faq-item {
        margin-bottom: 8px;
    }

    .faq-question {
        padding: 15px;
    }

    .faq-question span {
        font-size: 16px;
    }

    .faq-question i {
        font-size: 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }

    .faq-answer p,
    .faq-answer ul li {
        font-size: 14px;
        line-height: 1.55;
    }

    .faq-accordion {
        margin-bottom: 30px;
    }
}

/* Smaller mobile adjustments */
@media (max-width: 576px) {
    .faq-content {
        padding: 30px 0;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question span {
        font-size: 15px;
    }

    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }

     .faq-answer p,
     .faq-answer ul li {
        font-size: 13px;
        line-height: 1.5;
    }
}
