/* FAQ Page Specific Styles */

/* FAQ Main Content */
.faq-main {
    padding: 40px 0 60px;
    background-color: #f8f9fa;
}

.faq-header {
    margin-bottom: 50px;
    position: relative;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 40px;
}

.faq-header-left {
    flex: 1;
}

.faq-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    text-align: left; /* 确保标题左对齐 */
}

.faq-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
}

.faq-help {
    margin-bottom: 30px;
}

.help-text {
    font-size: 1rem;
    line-height: 1.6;
}

.need-more-help {
    color: #ff5722;
    font-weight: 600;
}

.help-text a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 500;
}

.help-text a:hover {
    text-decoration: underline;
}

.faq-illustration {
    width: 200px;
    height: 150px;
    flex-shrink: 0;
}

.illustration-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ff5722, #ff8a65);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.9;
}

.icon-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icon {
    font-size: 2rem;
    color: white;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.icon.magnifier {
    transform: rotate(-15deg);
}

.icon.document {
    transform: rotate(5deg);
}

.icon.question {
    transform: rotate(10deg);
}

/* FAQ List */
.faq-list {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.faq-item {
    border-bottom: 1px solid #e2e8f0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item.active {
    background-color: #f8f9fa;
}

.faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 0;
    flex: 1;
}

.arrow-icon {
    font-size: 0.8rem;
    color: #ff5722;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 15px;
    transform: rotate(180deg); /* 默认向下箭头 */
}

.faq-item.active .arrow-icon {
    transform: rotate(0deg); /* 点击后向上箭头 */
}

.faq-answer {
    padding: 0 30px 0;
    color: #555;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 30px 25px;
    max-height: 1000px;
}



.faq-answer p {
    margin-bottom: 15px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    margin: 15px 0;
    padding-left: 25px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #2d3748;
    font-weight: 600;
}

.faq-answer h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin: 20px 0 10px;
}

/* Pagination */
.faq-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
}

.pagination-btn {
    background: none;
    border: 2px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    color: #666;
}

.pagination-btn:not(:disabled):hover {
    border-color: #ff5722;
    color: #ff5722;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:not(:disabled) {
    border-color: #ff5722;
    color: #ff5722;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}



/* Responsive Design */
@media (max-width: 768px) {
    .faq-header {
        padding: 30px 20px;
        flex-direction: column;
        gap: 30px;
        text-align: left;
    }
    
    .faq-header-left {
        width: 100%;
    }
    
    .faq-title {
        font-size: 2rem;
    }
    
    .faq-illustration {
        width: 150px;
        height: 100px;
        align-self: center;
    }
    
    .faq-question {
        padding: 20px;
    }
    
    .faq-answer {
        padding: 0 20px 20px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .legal-disclaimer {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .faq-header {
        padding: 20px 15px;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-question {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .arrow-icon {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .faq-answer {
        padding: 0 15px 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 15px;
    }
    
    .pagination-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Animation for smooth transitions */
.faq-item {
    transition: all 0.3s ease;
}

.faq-answer {
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* Focus styles for accessibility */
.faq-question:focus {
    outline: 2px solid #ff5722;
    outline-offset: 2px;
}

.pagination-btn:focus {
    outline: 2px solid #ff5722;
    outline-offset: 2px;
}