
/* 1. 彻底清除白边与间隙 */
.faq-section,
.faq-section * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.faq-section {
    background-color: #ffffff; 
    color: #1a1a1a;
    padding: 60px 0 0 0 !important; 
    font-family: 'Poppins', sans-serif;
    width: 100vw !important;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    overflow: hidden; 
}

.faq-container {
    max-width: 1600px; 
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding: 0 4% 100px 4%;
    width: 100%;
}

/* 左侧标题区域 */
.faq-header {
    width: 35%;
}

.faq-header h1 {
    font-size: clamp(36px, 4vw, 48px); 
    font-weight: 900;
    color: #003366; 
    margin-bottom: 25px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.faq-header p {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 35px;
    max-width: 400px;
}

.btn-contact {
    display: inline-block;
    padding: 12px 35px;
    border: 1px solid #003366; 
    border-radius: 50px;
    text-decoration: none;
    color: #003366;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-contact:hover {
    background-color: #003366;
    color: #fff;
    text-decoration: none;
}

/* 右侧手风琴列表 */
.faq-list {
    width: 58%;
}

/* --- 核心修改：调整问题离上下线的距离 --- */
details {
    border-top: 1px solid #e0e0e0 !important; 
    /* 这里的 50px 决定了问题离线条的垂直距离。如果想要更宽，可以改大 */
    padding: 25px 0 !important; 
    display: block !important;
}

details:last-child {
    border-bottom: 1px solid #e0e0e0 !important;
}

summary {
    list-style: none;
    font-size: 18px;
    font-weight: 700;
    color: #003366; 
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    outline: none;
    /* 锁定行高，确保间距完全由 details 的 padding 控制 */
    line-height: 1.2 !important; 
}

summary::-webkit-details-marker {
    display: none;
}

/* 箭头旋转效果 */
summary .icon::after {
    content: '+'; 
    font-size: 24px;
    font-weight: 300;
    color: #3498db;
    transition: 0.3s;
}

/* 展开后，标题与下方回答内容之间的间距 */
details[open] summary {
    margin-bottom: 25px; 
    color: #3498db; 
}

details[open] summary .icon::after {
    transform: rotate(45deg); 
}

.faq-content {
    padding-top: 5px;
    padding-bottom: 10px;
    line-height: 1.8;
    color: #666;
    font-size: 15px;
}
/* --- 修改结束 --- */

/* 底部横幅 */
.wood-banner {
    
    background-image: url('//ueeshop.ly200-cdn.com/u_file/UPBD/UPBD914/2604/28/photo/-2.jpg'); 
    background-size: cover;
    background-position: center;
    width: 100vw !important;
    min-height: 400px; 
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.banner-overlay {
    text-align: center;
    color: white;
    padding: 60px 5%;
}

.banner-overlay h2 {
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.banner-overlay p {
    max-width: 700px;
    margin: 0 auto 35px;
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.6;
    opacity: 0.9;
}

.btn-contact-white {
    display: inline-block;
    padding: 14px 40px;
    background-color: #3498db; 
    color: #ffffff;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-contact-white:hover {
    background-color: #ffffff;
    color: #003366;
    transform: translateY(-3px);
text-decoration: none;
}

/* 移动端适配优化 */
@media (max-width: 992px) {
    .faq-container {
        flex-direction: column;
        /* 增加左右内边距，确保内容不贴边 */
        padding: 0 6% 60px 6%; 
        width: 100%;
        margin: 0 auto;
    }
    
    .faq-header, .faq-list {
        width: 100%;
    }
    
    .faq-header {
        margin-bottom: 40px;
        text-align: left; /* 保持左对齐，或者根据喜好改为 center */
    }
    
    .faq-header p {
        max-width: 100%; /* 允许文字在移动端铺满 */
    }

    .banner-overlay {
        padding: 80px 8%; /* 增加横幅左右边距 */
    }
}

@media (max-width: 768px) {
    /* 核心修复：增加细节处的边距 */
    .faq-container {
        padding-left: 20px !important; /* 强制给予 20px 安全距离 */
        padding-right: 20px !important;
    }

    summary { 
        font-size: 16px; 
        padding-right: 10px; /* 给右侧图标留点空间 */
    }

    .faq-content { 
        font-size: 14px; 
        padding-right: 5px;
    }

    .faq-section { 
        padding-top: 40px !important; 
        /* 移除可能的溢出风险 */
        width: 100% !important; 
        left: 0;
        right: 0;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 调整手风琴内部的间距，让它看起来不那么局促 */
    details { 
        padding: 20px 0 !important; 
    } 

    .banner-overlay h2 {
        font-size: 28px;
    }
}
