body {
    background-image: url("../images/main-foot.png"), url("../images/main.png");
    background-repeat: no-repeat, no-repeat;
    background-position: bottom 0vh center, center;
    background-size: auto, 100% 100%;
    animation: moveBackground 3s linear infinite;
}

/* 定义动画 */
@keyframes moveBackground {
    0% {
        background-position: bottom 0vh center, center;
    }

    50% {
        background-position: bottom 6vh center, center;
    }

    100% {
        background-position: bottom 0vh center, center;
    }
}

.main {
    display: flex;
    min-width: 800px;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    line-height: 50px;
    background-color: #66c8d1;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.4);
}

/* logo */
.header h1 {
    display: inline-block;
    width: 200px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    color: #fff;
    background-image: url("../images/logo.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

/* 顶部提示信息 */
.header div {
    padding-right: 30px;
    display: inline-block;
    color: #fff;
}

/* 退出按钮 */
.header div a {
    padding: 0px 5px;
    font-size: 15px;
    border: 1px solid rgba(78, 179, 239, .7);
    box-shadow: 0 0 10px 0 rgba(78, 179, 239, .7);
    border-radius: 5px;
    background-color: #60e9a5;
}

/* 导航栏 */
.nav {
    padding-bottom: 500px;
    width: 200px;
    height: calc(100vh - 50px);
    overflow-y: auto;
    box-shadow: 5px 0 10px rgba(0, 0, 0, 0.3);
    background-color: rgba(255, 255, 255, 0.3);
}

.nav ul li a {
    display: block;
    width: 195px;
    height: 45px;
    font-weight: 700;
    line-height: 45px;
    text-align: center;
    border-bottom: 1px solid rgb(126, 130, 153);
}

.nav ul li a.active {
    border-left: 5px solid #108fa7;
}

.nav ul li a:hover {
    border-left: 5px solid #108fa7;
}

/* 版心 */
.wrapper {
    flex: 1;
    padding: 30px;
    height: calc(100vh - 50px);
    overflow-y: auto;
}

.wrapper .bd {
    position: relative;
}

/* 加载中 */
.wrapper .bd .loading {
    display: none;
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    pointer-events: none;
}

/* 显示 */
.wrapper .bd .show {
    display: block;
}

/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 应用到 SVG 图标 */
.wrapper .bd .loading .loading-icon {
    animation: spin 1.2s linear infinite;
}