/* 全局设置 */
body {
    padding: 0;
    margin: 0;
    min-height: 100vh;
    background-color: rgb(11, 11, 46);
}

/* 背景移动动画 */
@keyframes movement {

    0%,
    100% {
        background-size:
            130vmax 130vmax,
            80vmax 80vmax,
            90vmax 90vmax,
            110vmax 110vmax,
            90vmax 90vmax;
        background-position:
            -80vmax -80vmax,
            60vmax -30vmax,
            10vmax 10vmax,
            -30vmax -10vmax,
            50vmax 50vmax;
    }

    25% {
        background-size:
            100vmax 100vmax,
            90vmax 90vmax,
            100vmax 100vmax,
            90vmax 90vmax,
            50vmax 50vmax;
        background-position:
            -60vmax -90vmax,
            50vmax -40vmax,
            0vmax -20vmax,
            -40vmax -20vmax,
            40vmax 60vmax;
    }

    50% {
        background-size:
            120vmax 120vmax,
            70vmax 70vmax,
            80vmax 80vmax,
            60vmax 60vmax,
            70vmax 70vmax;
        background-position:
            -70vmax -100vmax,
            20vmax -30vmax,
            -10vmax -50vmax,
            -10vmax 0vmax,
            30vmax 90vmax;
    }

    75% {
        background-size:
            140vmax 140vmax,
            50vmax 50vmax,
            60vmax 60vmax,
            40vmax 40vmax,
            90vmax 90vmax;
        background-position:
            -900vmax -80vmax,
            40vmax -50vmax,
            40vmax -70vmax,
            -20vmax -20vmax,
            10vmax 70vmax;
    }
}

/* 以下是顶部导航栏的相关设置 */
.navbar {
    background-color: rgba(0, 153, 255, 0.589);
    height: 50px;
    width: 100%;
    position: fixed;
    top: 0;
    display: flex;
}

.nav-logo {
    padding-left: 40px;
    padding-top: 5px;
}

.login_rec_box {
    position: absolute;
    right: 1%;
    display: flex;
    /* background-color: blanchedalmond; */
    line-height: 50px;
}

.login_rec_box div {
    background-color: rgba(240, 248, 255, 0.284);
    border: 2px aliceblue;
    border-radius: 10px;
    width: 50px;
    height: 30px;
    margin-top: 10px;
    margin-left: 10px;
}

.login_rec_box a {
    position: fixed;

    text-decoration: none;
    margin: 0;
    top: 10px;
    margin-left: 13px;
    color: azure;
    line-height: 30px;
    font-size: 5px;
}

.login_rec_box div:hover {
    background-color: aliceblue;
}

.login_rec_box a:hover {
    color: black;
}

.nav-button {
    margin-left: 50px;
    display: flex;
}

.nav-button div {
    padding-left: 30px;
    padding-right: 30px;
    line-height: 50px;
}

.nav-button a {
    text-decoration: none;
    color: aliceblue;
}

.nav-button div:hover {
    background-color: blue;
}

/* 导航栏占位符 */
.nav-fir {
    /* display: inline; */
    height: 50px;
    width: 100%;
}

/* 板块1设置 */
.firstpic {
    padding-top: 5vh; /* 5% 的视口高度 */
    padding-left: 10vw; /* 10% 的视口宽度 */
    margin-top: 2vh; /* 2% 的视口高度 */
    margin-left: 2vw; /* 2% 的视口宽度 */
    margin-right: 2vw; /* 2% 的视口宽度 */
    max-width: 100%; /* 保持最大宽度为 100% */
    height: 500px; /* 50% 的视口高度 */
    display: flex;
    border: 2px solid rgb(93, 165, 227); /* 添加 solid 关键字 */
    border-radius: 1vh; /* 1% 的视口高度 */
    /* 背景移动动画 */
    background-color: rgb(106, 229, 246);
    background-image:
        radial-gradient(closest-side, rgba(235, 105, 78, 1), rgba(235, 105, 78, 0)),
        radial-gradient(closest-side, rgba(46, 176, 224, 1), rgba(46, 176, 224, 0)),
        radial-gradient(closest-side, rgba(48, 224, 110, 1), rgba(48, 224, 110, 0)),
        radial-gradient(closest-side, rgba(229, 119, 23, 1), rgba(229, 119, 23, 0)),
        radial-gradient(closest-side, rgba(235, 78, 172, 1), rgba(235, 78, 172, 0));
    background-size:
        130vmax 130vmax,
        80vmax 80vmax,
        90vmax 90vmax,
        110vmax 110vmax,
        90vmax 90vmax;
    background-position:
        -80vmax -80vmax,
        60vmax -30vmax,
        10vmax 10vmax,
        -30vmax -10vmax,
        50vmax 50vmax;
    background-repeat: no-repeat;
    animation: 10s movement linear infinite;
}

.firstpic_button {
    margin-top: 200px;
    margin-left: 50px;
    height: 50px;
    width: 130px;
    background-color: rgba(255, 255, 255, 0.171);
    border: 2px aliceblue;
    border-radius: 10px;
    text-align: center;
}

.firstpic_button:hover {
    background-color: rgba(240, 248, 255, 0.798);
}

.firstpic_button a {
    text-decoration: none;
    color: rgb(0, 0, 0);
    line-height: 50px;
    margin: 0 auto;
}

.firstimg {
    position: absolute;
    margin-top: 180px;
    right: 10%;
    width: 40vw;
    object-fit: contain;

}

.bottom {
    color: white; /* 设置文字颜色为白色 */
    text-align: center; /* 水平居中 */
    display: flex; /* 使用 Flexbox */
    justify-content: center; /* 水平居中 */
}
.secondpic {
    margin-top: 2vh; /* 2% 的视口高度 */
    margin-left: 2vw; /* 2% 的视口宽度 */
    margin-right: 2vw; /* 2% 的视口宽度 */
    max-width: 100%; /* 保持最大宽度为 100% */
    height: 300px; /* 50% 的视口高度 */
    display: flex; /* 使用 Flexbox */
    text-align: center; /* 水平居中 */
    justify-content: center; 
    align-items: center; /* 垂直居中 */
    border: 2px solid rgb(93, 165, 227); /* 添加 solid 关键字 */
    border-radius: 1vh; /* 1% 的视口高度 */
    background-color: rgb(255, 255, 255);
}

.centered-text {
    font-size: 2em; /* 使字体变大 */
    color: black; /* 设置文字颜色 */
}
.bottom a {
    color: white; /* 设置 a 标签文字颜色为白色 */
    text-decoration: none; /* 去掉下划线 */
}
