/* FAQ页面样式 */

/* 主要内容区域 */
.faq-main {
    padding-top: 85px; /* 为固定头部留出空间 */
    background-color: #001A3D;
}

/* 顶部大图区域 */
.faq-hero {
    min-height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.faq-hero-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* 主要内容区域 */
.faq-content {
    min-height: 600px;
    padding: 90px 0;
}

.faq-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

/* 左侧导航栏 */
.faq-sidebar {
    width: 235px;
    flex-shrink: 0;
}

.faq-nav {
    border-radius: 8px;
    border: 1px solid #FFF;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.faq-nav-title {
    color: #FFD998;
    padding: 20px;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
}

.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-bottom: 20px;
}

.faq-nav-item {
    color: #ecf0f1;
    display: inline-block;
    padding: 8px 20px;
    cursor: pointer;
    width: 200px;
    margin: 10px 17px;
    transition: all 0.3s ease;
    font-size: 18px;
}

.faq-nav-item:hover {
    background: #34495e;
    color: #3498db;
}

.faq-nav-item.active {
    border-radius: 10px;
    background: #19376d;
    color: white;
    font-weight: bold;
}

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

/* 右侧内容区域 */
.faq-content-area {
    flex: 1;
    padding: 80px 30px;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

/* FAQ项目样式 */
.faq-item {
    margin-bottom: 80px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.faq-question {
    background: #19376d;
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}


.faq-question h3 {
    margin: 0;
    font-size: 30px;
    font-weight: 600;
    color: #FFF;
    flex: 1;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-answer {
    padding: 0 40px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: #204387;
}

.faq-answer.active {
    padding: 20px 40px;
    max-height: unset;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #ffeed8;
    font-size: 20px;
}


/* ========== 手机端专用样式 ========== */
@media (max-width: 576px) {
    .faq-nav-list {
        padding: 0 5px;
        padding-bottom: 10px;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .faq-main {
    padding-top: 70px;}
    .faq-hero {
    min-height: auto;}
    .faq-hero-img{
        max-width: 100%;
        height: 180px;
        object-fit: cover;
    }
    .faq-content {
        min-height: 600px;
        padding: 20px 10px;
        width:100%;
    }
    .faq-container {
        padding: 0;gap: 25px;
        flex-direction: column;
    }
    .faq-sidebar {
    width: auto;
        max-height: unset;}
    .faq-nav-title {
        
    padding: 10px;
    font-size: 17px;}
    .faq-nav-item {
        padding: 5px;
        font-size: 14px;
        margin: 0;
        width: 100%;
    }
    
    .faq-content-area {padding:0;}
    .faq-question {padding:10px;}
    .faq-question h3 {font-size:16px;}
    .faq-toggle {font-size:10px;}
    .faq-answer.active  {
    padding: 10px;}
    .faq-answer p {font-size:12px;}
    .faq-item {
    margin-bottom: 30px;}
}