/* 滚轮交互动画标题模块样式 */
.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('https://static.igem.wiki/teams/5579/img/cloud.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1);
    transition: transform 0.3s ease-out;
}

/* 特定页面的背景图片 */
.scroll-header-bg.description-bg {
    background: url('https://static.igem.wiki/teams/5579/img/description3.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.engineering-bg {
    background: url('https://static.igem.wiki/teams/5579/img/engineering.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.results-bg {
    background: url('https://static.igem.wiki/teams/5579/img/results.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.contributions-bg {
    background: url('https://static.igem.wiki/teams/5579/img/contributions.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.model-bg {
    background: url('https://static.igem.wiki/teams/5579/img/model.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.software-bg {
    background: url('https://static.igem.wiki/teams/5579/img/software.webp');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.AOMM-bg {
    background: url('https://static.igem.wiki/teams/5579/img/model.webp');
    background-size: cover;
    background-position: center;
}

/* Awards 页面封面占位图 */
.scroll-header-bg.awards-bg {
    background: url('https://static.igem.wiki/teams/5579/team/jamboree.avif');
    background-size: cover;
    background-position: center;
}

.scroll-header-bg.sustainability-bg {
    background: url('https://static.igem.wiki/teams/5579/hp/hezhao.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.scroll-header-bg.inclusivity-bg {
    background:url('https://static.igem.wiki/teams/5579/hp/inclusivity.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}


.scroll-header-bg.safety-bg {
    background: url('https://static.igem.wiki/teams/5579/hp/8d7bb9f44862c4ca85eebcdf5d39da2a.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.scroll-header-bg.humanpractices-bg {
    background: url('https://static.igem.wiki/teams/5579/hp/jiangzhehu2.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.scroll-header-bg.education-bg {
    background: url('https://static.igem.wiki/teams/5579/hp/freecompress-freecompress-education.webp');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
}

.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: 991.98px) {
    .scroll-header-container {
        height: 500px;
    }
    
    .scroll-header-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1.2rem;
        padding: 0 1.5rem;
    }
    
    .scroll-hint {
        font-size: 0.85rem;
        bottom: 20px;
    }
}

@media (max-width: 767.98px) {
    .scroll-header-container {
        height: 400px;
        margin-bottom: 1.5rem;
    }
    
    .scroll-header-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        padding: 0 1rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    .scroll-hint {
        font-size: 0.8rem;
        bottom: 15px;
    }
    
    .scroll-hint .arrow {
        font-size: 1.2rem;
    }
}

@media (max-width: 575.98px) {
    .scroll-header-container {
        height: 350px;
    }
    
    .scroll-header-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .scroll-header-subtitle {
        font-size: 0.95rem;
        padding: 0 0.75rem;
    }
}

/* 横屏模式优化 */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .scroll-header-container {
        height: 500px;
    }
    
    .scroll-header-title {
        font-size: 2.5rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1.3rem;
    }
}

/* 大屏幕优化 */
@media (min-width: 1920px) {
    .scroll-header-container {
        height: 800px;
    }
    
    .scroll-header-title {
        font-size: 4rem;
    }
    
    .scroll-header-subtitle {
        font-size: 1.8rem;
        max-width: 1000px;
    }
}

/* 动画效果 */
.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;
}

/* 响应式调整 */

/* 滚动提示 */
.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);
    }
} 