/* 视频背景核心优化 - 解决错位、拉伸、衔接问题 */
.index-video-section {
    position: relative;
    height: 50vh;
    max-height: 600px;
    overflow: hidden;
    margin-bottom: 0;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    z-index: 2;
}

/* 打字机效果核心优化 - 醒目、居中、响应式 */
.typewriter-wrap {
    z-index: 3;
    padding: 0 20px;
}

.typewriter-container {
    width: 100%;
    max-width: 800px;
}

.typewriter-text {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 2px;
}

.typewriter-subtext {
    color: #f0f0f0;
    font-size: 1.2rem;
    line-height: 1.3;
    text-shadow: 1px 1px 8px rgba(0, 0, 0, 0.8);
    letter-spacing: 1px;
}

/* 响应式适配 - 不同屏幕尺寸自动调整 */
@media (min-width: 768px) {
    .index-video-section {
        height: 55vh;
    }
    .typewriter-text {
        font-size: 3.5rem;
        margin-bottom: 1.2rem;
    }
    .typewriter-subtext {
        font-size: 1.8rem;
    }
}

@media (min-width: 992px) {
    .index-video-section {
        height: 60vh;
    }
    .typewriter-text {
        font-size: 4.5rem;
        margin-bottom: 1.5rem;
    }
    .typewriter-subtext {
        font-size: 2.2rem;
    }
}

@media (max-width: 375px) {
    .index-video-section {
        height: 40vh;
    }
    .typewriter-text {
        font-size: 2rem;
    }
    .typewriter-subtext {
        font-size: 1rem;
    }
}

/* 优化模块衔接，增强整体感 */
.bg-white.py-5 {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
}