/* SEO Headings 样式 */
.seo-headings {
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
}

.seo-keywords {
    margin-top: 1rem;
}

/* 图片对比模块样式 */
.image-comparison-container {
    position: relative;
    max-width: 800px; /* PC端最大宽度 */
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.image-comparison {
    position: relative;
    width: 100%;
    height: 450px; /* PC端固定高度 */
    overflow: hidden;
    background: #f8f9fa;
}

.image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#beforeImage {
    z-index: 1;
}

#afterImage {
    z-index: 2;
    clip-path: inset(0 50% 0 0);
}

.comparison-slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.8) 100%
    );
    z-index: 3;
    transform: translateX(-50%);
    cursor: ew-resize;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
}

.slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.slider-handle::before,
.slider-handle::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent #0d6efd;
    transition: all 0.3s ease;
}

.slider-handle::before {
    left: 10px;
    transform: rotate(0deg);
}

.slider-handle::after {
    right: 10px;
    transform: rotate(180deg);
}

.slider-handle:hover::before,
.slider-handle:hover::after {
    border-color: transparent transparent transparent #0b5ed7;
}

.slider-handle .tooltip {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.slider-handle:hover .tooltip {
    opacity: 1;
}

.slider-handle .tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: rgba(0, 0, 0, 0.8) transparent transparent;
}

.comparison-labels {
    position: absolute;
    top: 20px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    z-index: 4;
}

.comparison-labels span {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
}

/* FAQ模块样式 */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-question {
    padding: 1.25rem;
    background: #f8f9fa;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #212529;
    display: flex;
    align-items: center;
}

.faq-question h4::before {
    content: '\f059';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-right: 10px;
    color: #0d6efd;
}

.faq-question .toggle-icon {
    transition: transform 0.3s ease;
}

.faq-question.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1.25rem;
    color: #6c757d;
    line-height: 1.6;
    display: none;
    background: #fff;
}

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

/* 响应式调整 */
@media (max-width: 768px) {
    .image-comparison-container {
        max-width: 100%; /* 移动端全屏 */
        border-radius: 0;
    }
    
    .image-comparison {
        height: 300px; /* 移动端高度 */
    }
    
    .slider-handle {
        width: 40px;
        height: 40px;
    }
    
    .slider-handle::before,
    .slider-handle::after {
        border-width: 6px 0 6px 8px;
    }
    
    .slider-handle::before {
        left: 8px;
    }
    
    .slider-handle::after {
        right: 8px;
    }
    
    .faq-question h4 {
        font-size: 1rem;
    }
    
    .faq-question, .faq-answer {
        padding: 1rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1200px) {
    .image-comparison-container {
        max-width: 900px;
    }
    
    .image-comparison {
        height: 500px;
    }
}
