/* 滚轮交互动画标题模块样式 */
.scroll-header-container {
    width: 100vw;
    height: 700px;
    overflow: hidden;
    position: relative;
    margin-bottom: 2rem;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.scroll-header {
    width: 100%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0%, 100% 100%, 0 100%);
    transition: clip-path 0.3s ease-out;
    position: relative;
}

.scroll-header-bg {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    background: url('img/cloud.png');
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

.scroll-header-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 2;
    background: rgba(0, 0, 0, 0.3);
}

.scroll-header-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.scroll-header-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    opacity: 1;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .scroll-header-container {
        height: 500px;
    }
    
    .scroll-header-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1.2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .scroll-header-container {
        height: 400px;
    }
    
    .scroll-header-title {
        font-size: 2rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1rem;
    }
}

/* 动画效果 */
.scroll-header-title.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

.scroll-header-subtitle.fade-out {
    opacity: 0;
    transform: translateY(-10px);
}

/* 确保在页面加载时隐藏原有的header */
.scroll-header-container + .bg-hero {
    display: none;
}

/* 调整页面内容容器的对齐 */
.scroll-header-container + .container,
.scroll-header-container + .container-fluid {
    position: relative;
    z-index: 1;
}

/* 确保内容区域正确对齐 */
.scroll-header-container ~ .container {
    max-width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* 响应式调整 */
@media (min-width: 576px) {
    .scroll-header-container ~ .container {
        max-width: 540px;
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    .scroll-header-container ~ .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    .scroll-header-container ~ .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    .scroll-header-container ~ .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .scroll-header-container ~ .container {
        max-width: 1320px;
    }
}

/* 滚动提示 */
.scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
    animation: bounce 2s infinite;
    z-index: 3;
}

.scroll-hint .arrow {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
} 