html {
    scroll-behavior: smooth;
}

/*字体*/
div.serif {
    font-family: "Comic Sans MS", cursive, sans-serif;
}

.nav_true {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    position: fixed;
    /* left: 50%;
    transform: translateX(-50%);  */
    left: 20px;
    right: 20px;
    top: 10px;
    transition: all 0.5s;
    border-radius: 5px;
    z-index: 9996;
}

.active {
    background-color: #28A745;
    border-radius: 5px;
    border: none;
    padding: none;
    margin: none;
}

.nv:hover {
    background-color: #28A745;
    border-radius: 5px;
    border: none;
    padding: none;
    margin: none;
}

body {
    background-image: url("https://images.hipc.cn/2009/20.png");
    background-repeat: repeat-x;
    background-size: cover;
    background-position: bottom;
    background-attachment: fixed;
    overflow-y: hidden;
    transition: all 1s;
    /*禁止滚动*/
    /*opacity: 0.2;*/
}

body::-webkit-scrollbar {
    display: none;
}

.workcardhead {
    background-color: rgba(255, 255, 255, 0.2);
}

.go-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28A745;
    display: block;
    border: none;
    padding: 5px 10px;
    border-radius: 30px;
    letter-spacing: 2px;
    cursor: pointer;
    margin: 0;
    transition: all 0.2s;
}

.go-top:hover {
    background-color: #28A745;
}

.modebot {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background-color: #28A745;
    display: block;
    border: none;
    padding: 5px 10px;
    border-radius: 30px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.modebot:hover {
    background-color: #28A745;
}


/*夜间模式遮罩*/
.nightshade {
    background: rgba(0, 0, 0, 0.5);
    opacity: 1;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9997;
    pointer-events: none;
    transition: all 1s;
}

div.selfLabel {
    border-top: 5px solid rgba(255, 255, 255, 0);
    border-left: 5px solid rgba(255, 255, 255, 0);
    border-right: 5px solid rgba(255, 255, 255, 0);
    border-bottom: 5px solid rgba(255, 255, 255, 0);
    border-radius: 5px;
    color: whitesmoke;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: large;
    padding: 10px;
    margin-right: auto;
    cursor: pointer;
}

span.badg {
    background-color: #28A745;
    padding: 7px;
    border-radius: 5px;
    font-size: large;
    width: 5px;
    height: 100%;
    transition: all 0.2s;
}

/*创建渐变动画规则*/
@keyframes btn_frame {
    from {
        background: #28A745;
    }

    to {
        background: #003b86;
    }
}

span.badg:hover {
    background-color: #065cce;
}

.nv {
    border: none;
    border-radius: 6px;
    padding: 9px;
    transition: all 0.5s;
}

a.guide {
    text-decoration: none;
    font-size: x-large;
}

/*友情链接*/
.friendcard {
    width: 300px;
    height: 400px;
    background-image: url("/static/img/friend.jpg");
    background-repeat: repeat-x;
    background-size: cover;
    border-radius: 20px;
    position: fixed;
    z-index: 9999;
}

@keyframes jump {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0);
    }
}

.icon-center {
    font-size: 36px;
    position: relative;
    left: 50%;
    transform: translateX(-75%);
    animation: jump 1s infinite;
}

.icon-center:hover {
    animation-play-state: paused;
    /* 停止动画 */
    color: #28A745;
    /* 略微放大 */
}

.friendcard a {
    color: white;
}

.friendcard-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.friendcard-item {
    align-items: baseline;
}

.article {
    min-height: 200px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 5px;
}

.page-item {
    padding: 0;
    margin: 0;
    border-radius: 30px;
}

.page-link {
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 30px;
    color: rgb(49, 47, 47);
}

.article-item {
    background: rgba(255, 255, 255, 0.1);
}

#articlecontent {
    transition: all 1s;
}

/* 友链模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 60px;
    border: 1px solid #888;
    width: 95%;
    background-image: url("/static/img/friend.jpg");
    background-repeat: repeat-x;
    background-size: cover;
    z-index: 9996;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#timeline {
    width: 100%;
    height: 100px;
    overflow-x: scroll;
    overflow-y: hidden;
    white-space: nowrap;
    border: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px;
}

.event {
    display: inline-block;
    vertical-align: top;
    margin-right: 80px;
    padding: 0px;
    border: none;
    border-radius: 5px;
}

.event:last-child {
    margin-right: 0;
}

.date {
    font-weight: bold;
    font-size: large;
    /* color: #333; */
    margin-bottom: 5px;
}

/* .description {
    color: black;
} */

/* 美化滚动条 */
#timeline::-webkit-scrollbar {
    height: 8px;
    background-color: rgba(255, 255, 255, 0);
}

#timeline::-webkit-scrollbar-thumb {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

#timeline::-webkit-scrollbar-thumb:hover {
    background-color: #28A745;
}