
@font-face {
    font-family: 'iconfont';
    /* Project id 4660907 */
    src: url('//at.alicdn.com/t/c/font_4660907_obo8au1r4bj.woff2?t=1724284380698') format('woff2'),
        url('//at.alicdn.com/t/c/font_4660907_obo8au1r4bj.woff?t=1724284380698') format('woff'),
        url('//at.alicdn.com/t/c/font_4660907_obo8au1r4bj.ttf?t=1724284380698') format('truetype');
}

#home_top {
    max-width: 1400px;
    margin: auto;
    margin-top: .5rem;
    padding: 0 1.5rem;
    width: 100%
}

@media screen and (max-width: 768px) {
    #home_top {
        padding: 0;
        margin-top: 0
    }
}

.recent-top-post-group {
    border-radius: 12px;
    overflow: hidden;
    overflow-x: auto;
    width: 100%;
    margin-bottom: 0
}

.recent-post-top {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: scroll
}

.recent-post-top::-webkit-scrollbar {
    display: none
}

.recent-post-top .recent-post-item {
    display: flex;
    width: 200px;
    flex-direction: column;
    align-items: flex-start;
    margin-left: .5rem;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    min-width: 200px;
    height: 164px;
    max-height: 164px;
    border: var(--style-border-always);
    transition: .3s;
    position: relative;
    box-shadow: var(--heo-shadow-border)
}

@media screen and (max-width: 768px) {
    .recent-post-top .recent-post-item {
        border-radius: 8px;
        box-shadow: none;
        clip-path: inset(0 0 0 0 round 8px)
    }

    .recent-post-top .recent-post-item:last-child {
        margin-right: 1rem
    }
}

@media screen and (min-width: 1200px) {
    .recent-post-top .recent-post-item {
        margin-right: 0;
        margin-bottom: .5rem
    }

    .recent-post-top .recent-post-item:active {
        transform: scale(.97)
    }

    .recent-post-top {
        overflow-x: visible
    }

    .recent-top-post-group {
        overflow: visible;
        overflow-x: visible
    }
}

span.recent-post-top-text {
    position: absolute;
    top: 0;
    left: -40px;
    display: flex;
    z-index: 1;
    background: #425AEF;
    color: #fff;
    padding: 2px 8px;
    font-size: .6rem;
    border-radius: 12px 0 12px 0;
    transition: .3s;
    cursor: pointer
}

.recent-post-item:hover .recent-post-top-text {
    left: 0
}

/* 响应式：所有尺寸都显示 */
#home_top {
    display: block;
}

@media screen and (min-width: 1200px) {
    .recent-post-top .recent-post-item:hover {
        border: var(--style-border-hover);
        box-shadow: var(--bywind-shadow-main);
        transform: scale(1.03)
    }

    .recent-post-top .recent-post-item:active {
        transform: scale(.97)
    }
}

@media screen and (max-width: 768px) {
    .recent-top-post-group {
        border-radius: 0;
        background: var(--bywind-background)
    }

    .recent-post-top-text {
        display: none !important
    }

    .recent-post-top .recent-post-item .post_cover img {
        border-radius: 8px 8px 0 0 !important
    }
}

.recent-post-top .recent-post-item .post_cover a {
    height: 100px;
    overflow: hidden;
    display: flex
}

.recent-post-top .recent-post-item .post_cover img {
    object-fit: cover;
    width: 100%;
    background: var(--bywind-secondbg);
    border-radius: 12px 12px 0 0
}

.recent-post-top .recent-post-item:hover .post_cover img {
    transform: scale(1)
}

.recent-post-top .recent-post-item .recent-post-info {
    padding: .3rem .5rem .3rem .5rem !important;
    transition: .3s
}

.recent-post-top .recent-post-item:hover .recent-post-info a {
    color: var(--bywind-fontcolor)
}

@media screen and (max-width: 1200px) {
    .recent-post-top .recent-post-item:hover .recent-post-info a {
        transition: .3s
    }
}

.recent-post-top .recent-post-item .recent-post-info .article-title {
    -webkit-line-clamp: 2;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    line-height: 1.5;
    justify-content: center;
    align-items: flex-end;
    align-content: center;
    padding-top: .5rem;
    font-weight: 700;
    font-size: .8rem !important;
    padding: 0 !important
}

.categoryItem {
    overflow: hidden;
    transform: scale(1);
    transition: all 0.8s cubic-bezier(0.65, 0.15, 0.37, 1.19);
    height: 48%;
    border-radius: 12px;
}

a.categoryButton {
    height: 100%;
    width: 100%;
    background: rgba(255, 255, 255, 0.67);
    border-radius: 12px;
    display: inline-block;
    text-align: left;
    line-height: 4em;
    font-weight: 800;
    font-size: 16px;
    color: #FFF;
    transition: all .8s cubic-bezier(.39, .575, .565, 1);
    transform: scale(1);
    overflow: hidden;
}

a.categoryButton i {
    transform: scale(1.0) rotate(15deg);
}

@media screen and (min-width: 1200px) {
    a.categoryButton:active {
        transform: scale(0.97);
    }
}

@media screen and (max-width: 768px) {
    a.categoryButton {
        border-radius: 8px;
    }

    .categoryItem {
        border-radius: 0px;
        height: 47%;
        box-shadow: none !important;
    }
}

a.categoryButton:after {
    top: 45px;
    width: 1rem;
    left: 21px;
    height: 2px;
    background: #fff;
    content: "";
    border-radius: 1px;
    position: absolute;
}

.categoryButtonText {
    padding-left: 21px;
}

a.categoryButton i {
    font-size: 12rem;
    opacity: .3;
    position: absolute;
    right: 15px;
    top: 10%;
    transition: 0.3s;
    width: 100px;
    text-align: center;
    filter: blur(2px);
}

@media screen and (max-width: 768px) {
    a.categoryButton i {
        display: none;
    }

    .recent-post-top .categoryGroup {
        min-width: 130px !important;
        margin-bottom: 0.5rem;
        margin-left: 1rem;
        max-height: 164px;
        overflow: hidden;
        position: relative;
    }
}

/* ── 布局基础（移动优先） ── */

/* recent-post-top 在小屏变为纵向堆叠 */
.recent-post-top {
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-x: visible;
}

#bannerGroup {
    display: flex;
    flex-direction: column;
    width: 100%;
}

div#banners {
    display: flex;
    width: 100%;
    min-height: 180px;
    background: var(--bywind-card-bg);
    border: var(--style-border);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--bywind-shadow-border);
    flex-direction: column;
    transition: 0.3s;
    clip-path: inset(0 0 0 0 round 12px);
    margin-bottom: 0.5rem;
}

div#banners:hover {
    box-shadow: var(--bywind-shadow-main);
}

.banners-title {
    top: 1rem;
    left: 1rem;
    position: absolute;
    display: flex;
    flex-direction: column;
}

.banners-title-big {
    font-size: 22px;
    line-height: 1;
    font-weight: bold;
    margin-bottom: 6px;
}

.banners-title-small {
    font-size: 11px;
    line-height: 1;
    color: var(--bywind-secondtext);
    margin-top: 6px;
}

#banner-hover {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    padding-left: 0.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    transition: cubic-bezier(0.71, 0.15, 0.16, 1.15) 0.6s;
}

.bannerText {
    color: #fff;
    font-size: 2rem;
    line-height: 2rem;
    font-weight: bold;
    margin-top: 12px;
}

.bannerText::after {
    content: '\e603';
    font-family: iconfont;
}

.icon-right::before {
    content: '\e6c9';
    font-family: iconfont;
    color: #fff;
}

div#banners:hover #banner-hover {
    opacity: 1;
    padding-left: 1.5rem;
    background: #4259efc9;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: 0.3s;
    cursor: pointer;
}

#banners #banner-hover i {
    font-size: 50px;
    opacity: 0.4;
}

#banners .banner-button {
    padding: 8px 12px;
    background: var(--bywind-fontcolor);
    border-radius: 12px;
    color: var(--bywind-card-bg);
    display: flex;
    align-items: center;
    z-index: 1;
    transition: 0.3s;
    cursor: pointer;
    box-shadow: var(--bywind-shadow-black);
}

.banner-button:hover {
    background: #425aef;
}

#banners .banner-button i {
    margin-right: 8px;
    font-size: 1rem;
}

/* topGroup：幻灯片区域，小屏全宽，固定高度 */
.topGroup {
    display: flex;
    width: 100%;
    height: 200px;
    position: relative;
    margin-top: 0;
}

.topGroup .todayCard {
    display: flex;
    width: 100%;
    height: 100%;
    background: var(--bywind-card-bg);
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
    border: var(--style-border-always);
    box-shadow: var(--bywind-shadow-border);
    position: relative;
    cursor: pointer;
}

.topGroup .todayCard:hover {
    box-shadow: var(--bywind-shadow-main);
}

/* ── 平板（768px ~ 1199px）── */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    .recent-post-top {
        flex-direction: row;
        align-items: stretch;
        gap: 0.5rem;
        overflow-x: visible;
    }

    #bannerGroup {
        flex: 1 1 0;
        min-width: 0;
        height: auto;
    }

    div#banners {
        flex: 1 1 auto;
        min-height: 220px;
    }

    .banners-title-big {
        font-size: 28px;
    }

    .bannerText {
        font-size: 2.5rem;
    }

    .topGroup {
        flex: 0 0 46%;
        height: auto;
        min-height: 280px;
    }

    .topGroup .todayCard {
        height: 100%;
    }
}

/* ── 桌面（≥1200px）── */
@media screen and (min-width: 1200px) {
    .recent-post-top {
        flex-direction: row;
        overflow-x: visible;
    }

    .topGroup {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        height: calc(328px + 0.5rem);
        align-content: space-between;
        width: calc(600px + 1.5rem);
        position: relative;
        flex-shrink: 0;
    }

    div#bannerGroup {
        width: calc(100% - 600px - 2rem);
        margin-right: 0.5rem;
        height: calc(328px + 0.5rem);
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    div#banners {
        width: 100%;
        height: 76%;
        min-height: unset;
        margin-bottom: 0.5rem;
    }

    .banners-title {
        top: 2rem;
        left: 1.5rem;
    }

    .banners-title-big {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .banners-title-small {
        font-size: 12px;
        margin-top: 8px;
        margin-bottom: 0.5rem;
    }

    #banner-hover {
        backdrop-filter: blur(15px) !important;
        padding-left: 0.5rem;
    }

    div#banners:hover #banner-hover {
        padding-left: 2rem;
    }

    #banners #banner-hover i {
        font-size: 80px;
    }

    .bannerText {
        font-size: 4rem;
        line-height: 4rem;
        margin-top: 20px;
    }

    .topGroup .todayCard {
        position: absolute;
        width: calc(600px + 1rem);
        height: 100%;
        z-index: 1;
        top: 0;
        left: 0;
        margin-left: 0.5rem;
        border-radius: 12px;
    }

    .topGroup .todayCard.hide {
        opacity: 0;
        pointer-events: none;
    }

    .topGroup .banner-button {
        border-radius: 20px;
        display: flex;
        align-items: center;
        z-index: 1;
        transition: 0.3s;
        cursor: pointer;
        backdrop-filter: saturate(180%) blur(20px) !important;
        -webkit-backdrop-filter: blur(20px);
        transform: translateZ(0);
        height: 40px;
        width: 118px;
        justify-content: center;
    }

    .topGroup .banner-button i {
        margin-right: 8px;
        font-size: 22px;
    }
}

.tags-group-icon {
    width: 120px;
    height: 120px;
    border-radius: 30px
}

.tags-group-all {
    display: flex;
    transform: rotate(-30deg)
}

.tags-group-all.nowrapMove {
    transform: rotate(0);
    padding-bottom: 2rem
}

.tags-group-wrapper {
    margin-top: 5rem;
    display: flex;
    flex-wrap: nowrap;
    animation: rowup 60s linear infinite
}

.nowrapMove .tags-group-wrapper {
    margin-top: 7rem;
    animation: rowup 120s linear infinite
}

.tags-group-icon-pair .tags-group-icon:nth-child(even) {
    margin-top: 1rem;
    transform: translate(-60px)
}

.tags-group-icon-pair {
    margin-left: 1rem
}

.tags-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 66px;
    font-weight: 700;
    box-shadow: var(--bywind-shadow-blackdeep)
}

.nowrapMove .tags-group-icon {
    border-radius: 50%
}

.tags-group-icon img {
    width: 60%
}

.nowrapMove .tags-group-icon img {
    min-width: 100%;
    min-height: 100%;
    border-radius: 50%;
    object-fit: cover
}

.categoryItem:hover i {
    opacity: .8;
    transition: .8s;
    transition-delay: .15s;
    transform: scale(1.03) rotate(0);
    font-size: 4rem;
    filter: blur(0)
}

@media screen and (min-width: 1200px) {
    .categoryItem:hover i {
        transform: scale(1.03) rotate(0)
    }
}

.cate-button-text {
    box-shadow: var(--bywind-shadow-black)
}

.recent-post-top .categoryGroup {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 200px
}

@media screen and (min-width: 1200px) {
    .recent-post-top .categoryGroup {
        flex-direction: row;
        height: 24%
    }

    .categoryItem {
        width: calc(100% / 3 - .33rem);
        height: 100%;
        margin-right: .5rem
    }

    .categoryItem:last-child {
        margin-right: 0
    }

    .categoryItem:hover {
        width: 50%
    }
}

a.categoryButton.wniui_one {
    background: linear-gradient(to right, #358bff, #15c6ff);
    background-size: 200%
}

a.categoryButton.wniui_two {
    background: linear-gradient(to right, #f65, #ffbf37);
    background-size: 200%
}

a.categoryButton.wniui_three {
    background: linear-gradient(to right, #18e7ae, #1eebeb);
    background-size: 200%
}

[data-theme=dark] a.categoryButton.wniui_one {
    background: linear-gradient(to right, #0653b8, #2fcbff);
    background-size: 200%
}

[data-theme=dark] a.categoryButton.wniui_two {
    background: linear-gradient(to right, #e22a16, #da980c);
    background-size: 200%
}

[data-theme=dark] a.categoryButton.wniui_three {
    background: linear-gradient(to right, #099e74, #0ea4a4);
    background-size: 200%
}

a.categoryButton:hover {
    background-position: 100% 0
}

@keyframes rowup {
    from {
        transform: translateX(0)
    }

    to {
        transform: translateX(-50%)
    }
}

#recent-post-top .recent-post-item .post_cover {
    width: 100%;
}

#recent-posts>.recent-post-item>.recent-post-info>.article-meta-wrap {
    position: absolute;
    bottom: 16px;
    transition: .3s;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
    left: 0;
    padding: 0 32px;
    white-space: nowrap
}

.banner-button-text {
    color: #fff;
}

.banner-button-text::before {
    content: '\e605 ';
    font-family: iconfont;
}

.icon-star-smile-fill::before {
    content: '\e72c';
    font-family: iconfont;
}

.icon-fire-fill::before {
    content: '\e699';
    font-family: iconfont;
}

.icon-book-mark-fill::before {
    content: '\e628';
    font-family: iconfont;
}

/* ── 右侧幻灯片轮播 ── */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    pointer-events: none;
}

.slide.active {
    opacity: 1;
    pointer-events: all;
}

.slide-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    transition: transform 0.8s ease;
}

.slide.active .slide-cover {
    transform: scale(1);
}

.slide-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    display: block;
}

/* 全局覆盖按钮，位于 .todayCard 右下角，始终在所有图片最上层 */
.todayCard {
    position: relative;
}

.slide-global-btn {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 30;
    pointer-events: auto;
}

.slide-global-btn .banner-button {
    position: relative;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    border-radius: 20px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    transition: background 0.3s;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
}

.slide-global-btn .banner-button:hover {
    background: rgba(66, 90, 239, 0.85);
    color: #fff;
}

.slide-global-btn .banner-button i {
    margin-right: 5px;
    font-size: 1rem;
}

/* 导航按钮 */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    opacity: 0;
    pointer-events: none;
}

.slideshow-container:hover .slide-nav {
    opacity: 1;
    pointer-events: all;
}

.slide-nav:hover {
    background: rgba(66, 90, 239, 0.8);
}

.slide-nav.prev {
    left: 0.75rem;
}

.slide-nav.next {
    right: 0.75rem;
}

/* 指示器 */
.slide-indicators {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
}

.slide-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.slide-indicator.active {
    background: #fff;
    width: 18px;
    border-radius: 3px;
}

/* slideshow-container 始终撑满 todayCard */
.topGroup .todayCard .slideshow-container {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}