/*
 * Copyright (c) 2024.权戈
 *  权戈网络
 *  https://www.teelm.com/
 */

.home {
    min-height: calc(100vh - 238px);
}
.n-grid{
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0px, 1fr));
    gap: 24px;
}
.news-card {
    opacity: 0;
    transform: translateY(20px);
    animation-timing-function: cubic-bezier(.42,0,.58,1);
    animation: cardShow-6962e93e .3s forwards ease-in-out;
    grid-column: span 1 / span 1;
    animation-delay: 0.2s;
}
@keyframes cardShow-6962e93e {
    0% {
        opacity: 0;
        transform: translateY(20px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}
.n-card {
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    border-radius: 3px;
    background-color: #fff;
    color: rgb(51, 54, 57);
    word-break: break-word;
    transition: color .3s cubic-bezier(.4, 0, .2, 1), background-color .3s cubic-bezier(.4, 0, .2, 1), box-shadow .3s cubic-bezier(.4, 0, .2, 1), border-color .3s cubic-bezier(.4, 0, .2, 1);
    border: 1px solid rgb(239, 239, 245);
    border-radius: 12px;
    transition: all .3s;
    cursor: pointer;
}
.night .n-card {
    background-color: #121212;
    color: #ffffff;
    border: 1px solid #333;
}

.n-card > .n-card-header {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    font-size: 18px;
    padding: 12px;
}
.n-card > .n-card-header .n-card-header__main {
    font-weight: 500;
    transition: color .3s cubic-bezier(.4, 0, .2, 1);
    flex: 1;
    min-width: 0;
    color: rgb(31, 34, 37);
}
.night .n-card > .n-card-header .n-card-header__main {
    color: #ddd
}
.n-card .title {
    display: flex;
    align-items: center;
    font-size: 16px;
    height: 26px;
    display: flex;
    flex-flow: wrap;
    justify-content: space-between;
    gap: 8px 12px;
}
.title__main{
    max-width: 100%;
}
.n-card .title .name {
    display: flex;
    align-items: center;
}
.n-card .title .name .n-avatar {
    color: #FFF;
    font-size: 14px;
    display: inline-flex;
    position: relative;
    overflow: hidden;
    text-align: center;
    border: none;
    border-radius: 3px;
    background-color: #fff;
    transition: border-color .3s cubic-bezier(.4, 0, .2, 1), background-color .3s cubic-bezier(.4, 0, .2, 1), color .3s cubic-bezier(.4, 0, .2, 1);
    background-color: transparent;
    width: 20px;
    height: 20px;
    margin-right: 8px;
}
.n-avatar img {
    width: 100%;
    height: 100%;
}
.n-text {
    transition: color .3s cubic-bezier(.4, 0, .2, 1);
    color: rgb(51, 54, 57);
}
.night .n-text {
    color: #aaaeb3;
}
.n-card .title .subtitle {
    margin-left: auto;
    font-size: 12px;
}


.n-card > .n-card_content {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    font-size: 14px;
    padding: 0 12px;
}
.n-card > .n-card_content .news-list {
    overflow: hidden;
    position: relative;
    z-index: auto;
    width: 100%;
    height: 300px;
}
.news-list > .n-scrollbar {
    width: 100%;
    overflow: scroll;
    height: 100%;
    min-height: inherit;
    max-height: inherit;
    scrollbar-width: none;
}
.news-list > .n-scrollbar > .n-scrollbar-content {
    box-sizing: border-box;
    min-width: 100%;
}
.n-card .lists .item {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
    padding-bottom: 2px;
    min-height: 30px;
    border-radius: 8px;
    transition: all .3s;
    cursor: pointer;
}

.num {
    padding: 14px 25px;
    margin-right: 5px;
    width: 32px;
    height: 18px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-image: url("image/hotRankDefault.png");
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.night .num{
    color: #fff;
}
.hot-rank-1,.hot-rank-2,.hot-rank-3 {
    width: 45.46px;
    height: 22.79px;
    margin-top: -5px;
}
.hot-rank-1 {
    background-image: url("image/hotRank1.png");
}
.hot-rank-2 {
    background-image: url("image/hotRank2.png");
}
.hot-rank-3 {
    background-image: url("image/hotRank3.png");
}
.ranknum {
    position: absolute;
    bottom: 2px;
    -webkit-transform: translate(-50%) skewX(-10deg);
}
.hot-rank-1>.ranknum, .hot-rank-2>.ranknum, .hot-rank-3>.ranknum {
    right: 28.5%;
    bottom: 1px;
    -webkit-transform: skewX(-10deg);
}

.text {
    position: relative;
    display: inline-block;
    width: 100%;
    transition: all .3s;
}
.text:after {
    content: "";
    width: 0;
    height: 2px;
    max-height: 2px;
    background-color: rgba(0, 0, 0, .13);
    position: absolute;
    left: 0;
    bottom: -2px;
    border-radius: 8px;
    transition: all .3s;
}
.n-num{
    position: absolute;
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    margin: 0;
    font-size: 14px;
}
.text a {
    width: 80%;
    display: inline-flex;
}


.n-card__footer {
    box-sizing: border-box;
    padding: 16px;
    font-size: 14px;
}
.message {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    font-size: 12px;
    height: 24px;
}
.time {
    padding: 0 6px;
}
@media (max-width: 768px) {
    .n-grid {
        grid-template-columns: repeat(1, minmax(0px, 1fr));
    }
}
@media (min-width: 768px) {
    .hot-list .lists .item .text:hover:after {
        width: 90%;
    }
}