/* 基础容器样式 - 严格遵循要求 */
.faq-container {
    padding: 10vh 0;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

/* 图片区域样式 */
.faq-image {
    position: relative;
    width: 100%;
    height: 40vh;
    margin-bottom: 2rem;
    border-radius: 10px;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: white;
}

.image-caption h1 {
    margin: 0;
    font-size: 2.2rem;
}

/* 文本内容区域 - 所有文字在一个框内 */
.faq-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

/* 文本组样式 */
.text-group h2 {
    color: #165dff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eaeaea;
}

.text-group h2:first-child {
    margin-top: 0;
}

.text-group p {
    color: #34495e;
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 1rem;
    position: relative;
}

.text-group p::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.8rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #165dff;
}

/* 独特动画定义 - 区别于之前页面 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(30px);
        clip-path: inset(50% 0 0 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

/* 动画基础类 */
.animated {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-duration: 1s;
    animation-timing-function: cubic-bezier(0.3, 0.7, 0.1, 1);
}

.fadeInScale {
    animation-name: fadeInScale;
}

.revealUp {
    animation-name: revealUp;
}

/* 交互效果 */
.faq-content:hover {
    box-shadow: 0 20px 40px rgba(22, 93, 255, 0.08);
    transform: translateY(-3px);
    transition: all 0.5s cubic-bezier(0.3, 0.7, 0.1, 1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .faq-container {
        padding: 5vh 5vw;
    }

    .faq-image {
        height: 30vh;
    }

    .image-caption h1 {
        font-size: 1.8rem;
    }

    .faq-content {
        padding: 2rem 1.5rem;
    }
}
