/* CSS Reset 和浏览器兼容性基础 */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 常见问题部分样式 */
.faq-section {
    background-color: #0F0F0F;
    color: #FFFFFF;
    padding: 60px 0;
    margin-top: 40px;
}

.faq-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.faq-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.faq-question {
    display: flex;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-number {
    font-size: 1.2rem;
    color: #9B9B9B;
    margin-right: 15px;
    font-weight: 600;
    min-width: 20px;
}

.faq-text {
    font-size: 1.1rem;
    flex-grow: 1;
    font-weight: 500;
}

.faq-toggle {
    font-size: 1.5rem;
    color: #FFFFFF;
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: rgba(0, 0, 0, 0.3);
    padding-left: 55px;
}

.faq-answer p {
    padding: 0 20px 20px 0;
    line-height: 1.6;
    color: #CCCCCC;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* 底部宣传区域样式 */
.faq-bottom {
    background: linear-gradient(135deg, #1A1A1A 0%, #0F0F0F 100%);
    margin-top: 60px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.faq-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #F3BA2F 50%, transparent 100%);
}

.faq-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.faq-bottom-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.faq-bottom-button {
    background-color: #F3BA2F;
    color: #000000;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-bottom-button a {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.faq-bottom-button:hover {
    background-color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(243, 186, 47, 0.3);
}

.faq-bottom-button:hover a {
    color: #000000;
    text-decoration: none;
}

.faq-help-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-help-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .faq-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .faq-bottom-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .faq-section {
        padding: 40px 0;
    }
    
    .faq-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .faq-question {
        padding: 15px 0;
    }
    
    .faq-text {
        font-size: 1rem;
    }
    
    .faq-number {
        font-size: 1rem;
    }
    
    .faq-toggle {
        font-size: 1.2rem;
    }
    
    .faq-answer p {
        padding-right: 15px;
        font-size: 0.95rem;
    }
    
    .faq-bottom {
        margin-top: 40px;
        padding: 30px 0;
    }
    
    .faq-bottom-title {
        font-size: 1.4rem;
    }
    
    .faq-bottom-button {
        padding: 10px 25px;
        font-size: 1rem;
    }
    
    .faq-help-button {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .faq-section {
        padding: 30px 0;
    }
    
    .faq-title {
        font-size: 1.8rem;
    }
    
    .faq-list {
        padding: 0 15px;
    }
    
    .faq-answer {
        padding-left: 45px;
    }
    
    .faq-bottom-content {
        padding: 0 15px;
    }
    
    .faq-bottom-title {
        font-size: 1.2rem;
    }
    
    .faq-bottom-button {
        padding: 8px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .faq-help-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

/* 浏览器兼容性增强 */
.faq-question,
.faq-bottom-content {
    display: -webkit-flex;
    display: -moz-flex;
    display: -o-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    -moz-justify-content: space-between;
    -o-justify-content: space-between;
    justify-content: space-between;
}

.faq-bottom-content {
    -webkit-flex-wrap: wrap;
    -moz-flex-wrap: wrap;
    -o-flex-wrap: wrap;
    flex-wrap: wrap;
}

.faq-help-button {
    display: -webkit-flex;
    display: -moz-flex;
    display: -o-flex;
    display: flex;
    -webkit-align-items: center;
    -moz-align-items: center;
    -o-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    -moz-justify-content: center;
    -o-justify-content: center;
    justify-content: center;
}

/* 按钮样式兼容性优化 */
.faq-bottom-button,
.faq-help-button {
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    outline: none;
    border: none;
}

.faq-help-button {
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 过渡效果兼容性 */
.faq-item,
.faq-question,
.faq-toggle,
.faq-answer,
.faq-bottom-button,
.faq-help-button {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.faq-item.active .faq-toggle {
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    transform: rotate(45deg);
}

.faq-bottom-button:hover,
.faq-help-button:hover {
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
}