@charset "utf-8";
/* CSS Document */

body {
    margin: 0;
    padding: 0;
    font-family: 'Calibri', sans-serif; /* 修正字体 */
}

section {
    height: 100vh;
    position: relative; /* 使伪元素定位相对 */
    overflow: hidden; /* 隐藏溢出内容 */
}

section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #f00, #0f0, #0ff, #ff0);
    mix-blend-mode: color;
    pointer-events: none;
}

header {
    background-color: #182633; /* 深色背景 */
    color: #ecf0f1; /* 文字颜色 */
    padding: 20px; /* 内边距 */
    text-align: center; /* 文本居中 */
    position: relative; /* 使header为定位参考 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* 更强的阴影效果 */
}

video {
    object-fit: cover;
    height: 100vh;
    width: 100%;
}

h1 .logo {
    display: block;
    margin-bottom: 30px; /* 调整 margin-bottom */
    text-align: center; /* 确保 logo 居中对齐 */
}

h1 {
    margin: 0;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    text-align: center;
    color: #fff;
    font-size: 5em;
    letter-spacing: 0.2em;
}

h1 span {
    opacity: 0;
    display: inline-block;
    animation: animate 1s linear forwards;
}

@keyframes animate {
    0% {
        opacity: 0;
        transform: rotateY(90deg);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg);
        filter: blur(0);
    }
}

/* 为每个 span 设置动画延迟 */
h1 span:nth-child(1) { animation-delay: 0.5s; }
h1 span:nth-child(2) { animation-delay: 0.8s; }
h1 span:nth-child(3) { animation-delay: 1.1s; }
h1 span:nth-child(4) { animation-delay: 1.4s; }
h1 span:nth-child(5) { animation-delay: 1.7s; }
h1 span:nth-child(6) { animation-delay: 2s; }
h1 span:nth-child(7) { animation-delay: 2.3s; }
h1 span:nth-child(8) { animation-delay: 2.6s; }
h1 span:nth-child(9) { animation-delay: 2.9s; }
h1 span:nth-child(10) { animation-delay: 3.2s; }
h1 span:nth-child(11) { animation-delay: 3.5s; }
h1 span.logo { animation-delay: 3.8s; } /* 为 logo 设置延迟 */


@media (max-width: 992px) {
    h1 {
        font-size: 3.5em;  /* 调整为适中字体大小 */
    }

    h1 .logo {
        margin-bottom: 25px;  /* 减少 logo 的 margin */
    }
	h1 .logo img
	{
        width: 30%;  /* 减少 logo 的 margin */
    }
}

/* 针对 768px 以下的设备 */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;  /* 减小字体大小 */
    }

    h1 .logo {
        margin-bottom: 20px;  /* 减少 logo 的 margin */
    }

    
}