html,
body {
    margin: 0;
    padding: 0;
    font-family: "Microsoft YaHei", Arial, sans-serif;
    overflow: hidden;
    height: 100%;
    background-color: #eee;
    overflow: hidden;
    user-select: none;
}

.head {
    height: 40px;
    background-color: #333;
    color: #ddd;
    text-align: center;
    line-height: 40px;
    top: 0;
    left: 0;
    user-select: none;
}

.head h1 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto;
}

div.menu {
    position: absolute;
    top: 0;
    left: 0;
    font-size: 14px !important;
    color: #ddd;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
}

div.menu:hover .item {
    color: #eee;
    transform: translateX(0);

}

.menu h1 {
    font-size: 26px;
    padding: 0 10px;
    width: 50px;
}

.menu .item {
    top: 0;
    /* height: 0; */
    transform: translateX(-200%);
    cursor: pointer;
    width: 100px;
    transition: 0.5s;
}

.menu .item p {
    display: block;
    padding: 2px 10px;
    /* height: 20px; */
    line-height: 50px;
    margin: 0 auto;
    border-bottom: 1px solid #ccc;
    background-color: #222;
    transition: 0.3s;
}

.menu .item p:hover {
    background-color: #666;
    color: #ddd;

}

.active {
    background-color: #4693cf !important;
}


#swal2-title {
    font-size: 18px !important;
}

.msg-readlist {
    font-size: 15px;
    transition: 0.3s;
}

.msg-readlist span {
    font-size: 14px;
}

.msg-header {
    display: grid;
    color: #ddd;
    grid-template-columns: repeat(11, 1fr);
    background-color: #333;
}

.msg-content {
    overflow-y: scroll;
    height: 600px;
}

.msg-item {
    display: grid;
    grid-template-columns: repeat(11, 1fr);
    padding: 0 5px;
    border-bottom: 1px solid #ccc;
}

.msg-item:hover {
    background-color: #ddd;
}

.msg-item h1 {
    font-size: 14px;
    cursor: pointer;
}

.msg-delete {
    text-shadow:
        1px 1px 0 #456ec0,
        /* 左上亮 */
        2px 2px 2px #eee6f5,
        /* 右下暗 */
        0 1px 0 #fff,
        0 2px 0 #333;
    font-weight: bold;
    height: 35px;
    width: 35px;
    padding: 10px 10px;
    border-radius: 10%;
    transition: 0.3s;
    cursor: pointer;
}

.msg-delete:hover {
    background-color: #aaa;
    font-size: 18px;
}


.nav-link:hover {
    color: #e97489;
    text-decoration: underline;
    background-color: #bbb;
}


.swal2-actions {
    margin: 0 auto !important;
}

.history-stat {
    position: absolute;
    top: 0;
    left: 100px;
    color: #df6e11;
    padding: 0 20px;
    cursor: pointer;
    pointer-events: all;
    height: 40px;
}

.setings-form {
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.setings-form div {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: bold;
    display: grid;
    grid-template-columns: 2fr 1fr;
}

.setings-form label {
    text-align: left;
}

.msg-setings {
    position: absolute;
    top: 0;
    right: 60px;
    color: #ddd;
    padding: 0 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
    height: 40px;
}

.sys-exit {
    position: absolute;
    top: 0;
    right: 5px;
    color: #ddd;
    padding: 0 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
    height: 40px;
}

.contol span {
    font-size: 15px;
}

.contol span:hover {
    animation: slatecY 200ms linear infinite;
    display: inline-block;
}

@keyframes slatecY {
    from {
        opacity: 0.7;
        transform: rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: rotate(10deg);
    }
}

.readmsg {
    position: absolute;
    top: 0;
    right: 120px;
    color: #ddd;
    padding: 0 20px;
    cursor: pointer;
    overflow: hidden;
    z-index: 999999;
    pointer-events: all;
    height: 40px;
}

.readmsg span {
    font-size: 15px;
    color: #e97489;

}

.readmsg span:nth-child(2) {
    animation: slatecX 250ms linear infinite;
    display: inline-block;
}

@keyframes slatecX {
    from {
        opacity: 0.7;
        transform: rotate(-15deg);
    }

    to {
        opacity: 1;
        transform: rotate(15deg);
    }
}

.readmsg:hover {
    background-color: #555;
}

.now-time {
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 14px !important;
    color: #ddd;
    padding: 0 10px;
}

.user-login {
    position: absolute;
    bottom: 0;
    right: 10px;
    font-size: 14px !important;
    color: #ddd;
    padding: 0 10px;
}

.user-icon {
    display: inline-block;
    /* 使span元素支持transform */
    animation: spinBall 2s linear infinite;
    border-radius: 50%;
}

@keyframes spinBall {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.buttons {
    position: absolute;
    top: 0;
    right: 10px;
    padding: 0 10px;
    z-index: 99999;
    pointer-events: all;
}

.buttons button {
    /* margin-left: 10px; */
    color: #ddd;
    font: 14px Marlett;
    background-color: transparent;
    border: none;
    height: 38px;
    width: 38px;
    cursor: pointer;
    border-radius: 2px;
}

.buttons button:hover {
    background-color: #666;
    border: 1px solid #666;
    color: #f00;
}

.body {
    position: absolute;
    top: 40px;
    bottom: 24px;
    left: 0;
    right: 0;
    overflow: auto;
    margin: 0 auto;
}

.body table {
    border-collapse: collapse;
    table-layout: fixed;
    /* 固定表格布局 */
    margin: 0 auto;
    min-width: none;
    text-align: center;
    width: 100%;
    table-layout: auto;
}

.body thead {
    padding: 0;
    color: #ddd;

}

.body thead th {
    position: sticky;
    /* 固定位置 */
    top: -1px;
    /* 距离顶部 0 */
    background-color: #2c4688;
    color: #ddd;
    font-weight: bold;
    padding: 0 5px;

}

.table tbody tr {
    color: #1aa282;
    font-size: 14px;
}

/* 为所有列设置默认宽度 */
th,
td {
    min-width: 5%;
    max-width: 100px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #ddd;
}

/* 鼠标悬停时显示完整内容 */
td:hover {
    overflow: visible;
    white-space: normal;
    position: relative;
    color: rgb(58, 13, 136);
    /* box-shadow: 0 0 10px rgba(0,0,0,0.1); */
}

.disabled-row {
    pointer-events: none;
    display: none;
    cursor: not-allowed;
}

/* 公告滚屏 */

@font-face {
    font-family: "iconfont";
    /* Project id 2516453 */
    src: url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.woff2?t=1620545333370") format("woff2"),
        url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.woff?t=1620545333370") format("woff"),
        url("//at.alicdn.com/t/font_2516453_g6qjhhqblt9.ttf?t=1620545333370") format("truetype");
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -webkit-text-stroke-width: 0.2px;
    -moz-osx-font-smoothing: grayscale;
}

.ad {
    /* width: 400px; */
    position: absolute;
    left: 0;
    right: 0;
    bottom: 140px;
    height: 60px;
    background-color: #eee;
    opacity: 0.7;
    border-radius: 10px;
    box-sizing: border-box;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 16px;
    color: #353535;
    box-shadow: 2px 1px 8px 1px rgb(228, 232, 235);
    --animation-duration: 20s; /* 默认值 */
    margin: 40px auto;

    i {
        color: #ff6146;
        font-size: 20px;
        margin-right: 10px;
    }

    .content {
        flex: 1;
        overflow: hidden;

        span {
            display: block;
            width: auto;
            font-size: 22px;
            color: #f60632;
            white-space: nowrap;
        }
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* .ad .content {
    span {
        animation: marquee 30s linear infinite;
    }
} */

.ad span {
    display: block;
    width: auto;
    white-space: nowrap;
    animation: marquee var(--animation-duration) linear infinite;
    padding-left: 105%;
    padding-right: 120%;

    &:hover {
        animation-play-state: paused;
    }
}

/* 公告滚屏结束 */


tfoot .pagination {
    margin: 0 auto;
    background-color: #eee;
    position: fixed;
    bottom: 25px;
    left: 0;
    right: 0;
    z-index: 999999;
    pointer-events: all;
}

tfoot button {
    background-color: #4693cf;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
}

tfoot select {
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 2px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
}


.foot {
    height: 24px;
    position: absolute;
    left: 0;
    right: 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    line-height: 24px;
    bottom: 0px;
    opacity: 0.9;
}

.foot h1 {
    margin: 0 auto;
    font-size: 12px;
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #4693cf;
    z-index: 999999;
    opacity: 0.6;
}

.loader {
    width: 100px;
    height: 45px;
    position: relative;
    margin: 30% auto;
}

.loader:before,
.loader:after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    box-shadow: 0 0 0 50px;
    clip-path: polygon(-50px -20px, 10% -12px, 20% 0, calc(50% - 15px) 0, calc(50% - 10px) -20px, calc(50% - 8px) -15px, calc(50% + 8px) -15px, calc(50% + 10px) -20px, calc(50% + 15px) 0, 80% 0, 90% -12px, calc(100% + 50px) -20px, 100% 80%, calc(100% + 10px) calc(100% + 10px), 60% 100%, 50% calc(100% + 15px), 40% 100%, -10px calc(100% + 10px), 0 80%);
}

.loader:after {
    animation: l9 1s infinite;
    transform: perspective(300px) translateZ(0px)
}

@keyframes l9 {
    to {
        transform: perspective(300px) translateZ(100px);
        opacity: 0
    }
}

#swal2-title {
    font-size: 22px;
}