html,
input,
button,
select,
textarea {
    font-family: 微软雅黑, "Microsoft YaHei UI", "Microsoft YaHei", 新微軟正黑體, "Microsoft JhengHei", Arial, Verdana, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    font-weight: bold
}

* {
    padding: 0;
    margin: 0;
    font-style: normal;
    box-sizing: border-box
}

:root {
    --ui-theme-color: #B319C0;
    /* 主色调 - 更鲜艳的粉色 */
    --ui-theme-button: #ff6699;
    /* 按钮色 - 浅粉色 */
    --ui-font-title: #ffffff;
    /* 标题文字色 */
    --ui-font-des: #e0e0e0;
    /* 描述文字色 - 更亮 */
    --ui-color-bg: #0d0d0d;
    /* 背景色 - 更深的黑色 */
    --ui-color-header: #1a1a1a;
    /* 头部背景色 */
    --ui-color-bg2: #262626;
    /* 次要背景色 */
    --ui-color-card: #1f1f1f;
    /* 卡片背景色 */
    --ui-color-swiper: #2a2a2a;
    /* swiper背景色 */
    --ui-color-link: #ff6699;
    /* 链接颜色 */
    --ui-color-link-hover: #ff99cc;
    /* 链接悬停色 */
    --ui-tag-bg: #B319C0;
    /* 标签背景渐变 */
    --ui-tag-active: linear-gradient(135deg, #ff0066, #ff3399);
    /* 活动标签渐变 */
}

a {
    -webkit-text-decoration: none;
    text-decoration: none;
    color: var(--ui-color-link)
}

a:hover {
    color: var(--ui-color-link-hover)
}

body {
    background: var(--ui-color-bg);
    color: var(--ui-font-title)
}

.container {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 15px
}

h2 {
    font-size: 1.5rem
}

.layui-layer {
    border-radius: 0 !important
}

#search-layui {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.app-header {
    background: var(--ui-color-header)
}

.app-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    line-height: 60px;
    height: 60px
}

.app-header .search-form {
    border: 2px solid var(--ui-theme-color);
    height: 44px;
    border-radius: 22px;
    text-align: center;
    width: 250px;
    position: relative
}

.app-header .nav-logo a {
    display: flex;
    align-items: center
}

.app-header .nav-logo img {
    max-height: 22px
}

.app-header .menu-nf-header-container .nav-items {
    display: flex;
    list-style: none
}

.app-header .menu-nf-header-container .nav-items .menu-item a {
    color: var(--ui-font-title);
    padding: 0 20px;
    font-size: 1.25rem
}

.app-header .menu-nf-header-container .nav-items .menu-item a:hover {
    color: var(--ui-theme-color)
}

.app-header #search {
    height: 100%;
    padding-right: 100px
}

.app-header #search .search-input {
    color: var(--ui-font-title);
    display: block;
    width: 100%;
    border: 0;
    background: transparent none repeat 0 0 / auto auto padding-box border-box scroll;
    background: initial;
    background: unset;
    height: 40px;
    outline: 0;
    line-height: 40px;
    padding-left: 20px
}

.app-header #search .search-help {
    position: absolute;
    right: 62px;
    top: 0;
    display: flex;
    width: 40px;
    height: 40px;
    color: var(--ui-theme-color);
    justify-content: center
}

.app-header #search .search-help svg {
    width: 20px
}

.app-header #search .search-submit {
    position: absolute;
    right: 2px;
    top: 2px;
    width: 60px;
    height: 36px;
    border: 0;
    background: var(--ui-theme-color);
    border-radius: 20px;
    color: var(--ui-color-header);
    font-size: 16px;
    outline: 0;
    cursor: pointer
}

.hot-swiper {
    padding: 15px 0;
    background: var(--ui-color-swiper);
    border-radius: 8px;
    margin: 10px 0
}

.hot-swiper .swiper-slide {
    width: calc((100% - 30px) / 2);
    margin-right: 15px
}

.hot-swiper a {
    color: var(--ui-font-title)
}

.hot-swiper a:hover {
    color: var(--ui-color-link-hover)
}

.tags-swiper {
    padding: 15px 0;
    background: var(--ui-color-swiper);
    border-radius: 8px;
    margin: 10px 0
}

.tags-swiper .swiper-slide {
    width: calc((100% - 115px) / 8);
    margin-right: 15px
}

.tags-swiper a {
    color: var(--ui-font-title)
}

.tags-swiper a:hover {
    color: var(--ui-color-link-hover)
}

.eps-swiper {
    padding: 15px 0;
    background: var(--ui-color-swiper);
    border-radius: 8px;
    margin: 10px 0
}

.eps-swiper .swiper-slide {
    width: calc((100% - 55px) / 12);
    margin-right: 5px
}

.eps-swiper a {
    color: var(--ui-font-title)
}

.eps-swiper a:hover {
    color: var(--ui-color-link-hover)
}

.eps-swiper .swiper-slide .list-ep {
    background: var(--ui-color-card);
    color: var(--ui-font-title);
    padding: 10px 0;
    border-radius: 5px;
    justify-content: center;
    margin: 15px 0 0 0
}

.eps-swiper .swiper-slide .list-ep.active {
    background: var(--ui-theme-button)
}

.eps-swiper .swiper-slide .list-ep a {
    color: var(--ui-font-title)
}

.eps-swiper .swiper-slide .list-ep.active a {
    color: var(--ui-color-header)
}

.eps-prev {
    display: flex;
    align-items: center;
    font-weight: 300;
    border: 1px solid var(--ui-theme-color);
    width: 80px;
    padding: 5px 7px 5px 0px;
    border-radius: 10px;
    cursor: pointer;
    font-size: .9rem;
    justify-content: center;
    margin: 15px auto 0 auto;
    color: var(--ui-font-title)
}

.eps-prev:hover {
    background: var(--ui-theme-color);
    color: var(--ui-color-header)
}

.eps-prev svg {
    width: 20px
}

.light {
    font-weight: normal
}

.items {
    background: var(--ui-color-card);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px
}

.items ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0
}

.items .item {
    width: 100%;
    margin: 0 0 15px 0;
    position: relative;
    display: flex;
    background: var(--ui-color-bg);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.items .item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 51, 102, 0.3);
}

.items .item:last-child {
    margin-bottom: 0;
}

.items .image-line {
    display: block;
    width: 120px;
    flex-shrink: 0;
    position: relative;
}

.items .image-line .thumb {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px 0 0 8px;
}

.items .image-line .remarks {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.items .title-line {
    flex: 1;
    padding: 10px 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.items .title-line a {
    color: var(--ui-font-title)
}

.items .title-line a:hover {
    color: var(--ui-color-link-hover)
}

.items .title-line h3 {
    font-size: 1rem;
    margin: 0 0 5px 0;
    color: var(--ui-font-title);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.items .title-line .tags {
    color: var(--ui-font-des);
    font-size: 0.85rem;
    font-weight: normal;
}

.items-title {
    display: flex;
    margin: 15px 0 10px 0;
    color: var(--ui-font-title);
    font-size: 1.2rem;
    font-weight: bold;
}

.swiper-slide a {
    display: flex;
    color: var(--ui-font-title)
}

.swiper-slide a:hover {
    color: var(--ui-color-link-hover)
}

.thumb {
    width: 100%;
    aspect-ratio: 71 / 100;
    border-radius: 8px
}

.douscore {
    background-color: rgba(150, 148, 150, 0.8);
    text-align: center;
    color: var(--ui-color-header);
    padding: 2px;
    position: absolute;
    top: 15px;
    right: 10px;
    border-radius: 2px;
    width: 32px
}

.ellipsis {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.swiper-container {
    position: relative;
    background: var(--ui-color-swiper);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0
}

.swiper-container a {
    color: var(--ui-font-title)
}

.swiper-container a:hover {
    color: var(--ui-color-link-hover)
}

.app-footer {
    padding: 30px 0;
    background-color: var(--ui-color-header)
}

#menu-nf-footer {
    display: flex;
    justify-content: center
}

#menu-nf-footer a {
    color: var(--ui-color-link);
    font-weight: 600;
    padding: 0 5px
}

#menu-nf-footer a:hover {
    color: var(--ui-color-link-hover)
}

.swiper-tags {
    background: var(--ui-color-card);
    color: var(--ui-font-title);
    padding: 7px 0;
    border-radius: 25px;
    justify-content: center;
    margin: 10px 0
}

.swiper-tags a {
    color: var(--ui-font-title)
}

.swiper-tags a:hover {
    color: var(--ui-color-link-hover)
}

.player-content {
    max-width: 720px;
    margin: 0 auto;
    padding-top: 15px
}

.eps-content {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 15px
}

.detail-content .items-title {
    align-items: baseline;
    font-size: 2rem;
    margin: 15px 0 0 0
}

.detail-content .items-title svg {
    width: 15px;
    color: var(--ui-theme-color)
}

.detail-content .items-title .items-epname {
    font-size: 1.5rem;
    color: var(--ui-font-des)
}

.items-tags {
    display: flex;
    align-items: center;
    color: var(--ui-font-des)
}

.items-tags a:first-child {
    margin-left: 0
}

.items-tags time,
.items-tags a {
    font-weight: 300;
    margin: 5px 7px;
    color: var(--ui-theme-color)
}

.items-tags a:hover {
    color: var(--ui-color-link-hover)
}

.text-container {
    position: relative;
    overflow: hidden;
    max-height: 3rem;
    line-height: 1.5rem;
    display: flex;
    transition: max-height 0.3s ease
}

.text-container .text-content {
    display: flex;
    flex-direction: column
}

.text-container .text-content span {
    font-weight: 400;
    color: var(--ui-font-des)
}

.text-container .text-content img {
    width: 240px;
    margin: 10px auto
}

.text-container .text-content figcaption {
    font-size: 0.9rem;
    color: var(--ui-font-des);
    text-align: center
}

.text-container.expanded {
    max-height: none
}

.text-container.expanded .toggle-button {
    transform: rotate(180deg)
}

.toggle-button {
    position: absolute;
    bottom: 0;
    right: 0;
    cursor: pointer;
    color: var(--ui-theme-color);
    transition: transform 1s ease;
    width: 20px;
    height: 20px;
    background: rgba(102, 102, 102, 0.5);
    border-radius: 5px
}

.ui-tag .swiper-container,
.ui-category .swiper-container {
    background: var(--ui-color-swiper)
}

.separation {
    width: 2px;
    height: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: var(--ui-font-des);
    display: inline-block
}

li {
    list-style: none
}

/* 修改后的tagsec-swiper样式 - 不限制字数，大胆配色 */
.tagsec-swiper .swiper-slide {
    width: auto !important;
    min-width: 80px;
    margin-right: 15px;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.tagsec-swiper a {
    color: #ffffff;
    padding: 10px 20px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    width: auto;
    display: block;
    text-align: center;
    background: var(--ui-tag-bg);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.tagsec-swiper a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.tagsec-swiper a:hover {
    color: #ffffff;
    background: var(--ui-tag-active);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
}

.tagsec-swiper a:hover::before {
    left: 100%;
}

.tagsec-swiper .active {
    color: #ffffff;
    background: var(--ui-tag-active);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 102, 0.6);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 6px 20px rgba(255, 0, 102, 0.6);
    }
    50% {
        box-shadow: 0 6px 25px rgba(255, 0, 102, 0.8);
    }
    100% {
        box-shadow: 0 6px 20px rgba(255, 0, 102, 0.6);
    }
}

.tagsec-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

@media (max-width: 479.98px) {
    .tagsec-swiper .swiper-slide {
        width: auto;
        min-width: 70px;
        margin-right: 10px;
    }

    .tagsec-swiper a {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .eps-swiper .swiper-slide {
        width: calc((100% - 25px) / 6)
    }

    .tags-swiper .swiper-slide {
        width: calc((100% - 45px) / 4)
    }

    .player-content {
        padding-top: 0
    }

    .detail-content .items-title {
        font-size: 1.2rem
    }

    .detail-content .items-title svg {
        width: 10px
    }

    .detail-content .items-title .items-epname {
        font-size: 1rem
    }

    h2 {
        font-size: 1.2rem
    }

    .swiper-container {
        padding: 10px;
        margin: 5px 0
    }

    .items .item {
        flex-direction: column;
    }

    .items .image-line {
        width: 100%;
    }

    .items .image-line .thumb {
        height: 160px;
        border-radius: 8px 8px 0 0;
    }

    .items .title-line {
        padding: 10px;
    }
}

.content {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 50px
}

.pagination ul {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0
}

.pagination ul .active {
    background-color: var(--ui-theme-color);
    color: var(--ui-color-header) !important
}

.pagination ul .page-link {
    padding: 5px 10px;
    border-radius: 5px;
    color: var(--ui-font-title);
    font-weight: 400
}

.pagination ul a:hover {
    color: var(--ui-color-link-hover)
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9
}

.player-box {
    position: relative
}

.player-box .plyr__poster {
    background-image: url("https://p0.meituan.net/csc/c623cd3343d70836680acfea0a7cb7fd182113.jpg");
    background-size: cover !important;
    opacity: 1;
    display: block;
    width: 110%;
    height: 110%;
    position: absolute;
    left: -5%;
    top: -5%;
    -moz-filter: blur(35px);
    -ms-filter: blur(35px);
    filter: blur(0)
}

.player-box .plyr__gifs {
    position: absolute;
    pointer-events: none;
    border: 0;
    opacity: 1;
    border-radius: 0;
    top: 50%;
    left: 50%;
    width: 320px;
    height: 184px;
    z-index: 3;
    background: url("https://p1.meituan.net/csc/dfc56d461c991d2213846547fa5cc95191779.png") no-repeat;
    transform: scale(0.5);
    -webkit-transform: scale(0.5);
    animation: iconAnimation 0.94s steps(1) infinite;
    -webkit-animation: iconAnimation 0.94s steps(1) infinite;
    margin: -110px 0 0 -160px
}

.player-box .plyr--stopped .plyr__control--overlaid {
    opacity: 0;
    visibility: hidden
}

.player-box .plyr--paused-browser.plyr--stopped .plyr__control--overlaid {
    opacity: 1;
    visibility: visible
}

.plyr__tips {
    margin-top: 10px;
    display: flex;
    justify-content: space-between
}

.plyr__tips .plyr__switch {
    color: var(--ui-theme-color);
    -webkit-text-decoration: underline;
    text-decoration: underline;
    font-weight: bold;
    cursor: pointer
}

.plyr__tips .plyr__tip {
    color: var(--ui-color-link);
    font-weight: bold
}

.plyr__tips .plyr__tip .plyr__loading {
    color: var(--ui-font-des);
    font-weight: normal
}

@keyframes iconAnimation {
    0% {
        background-position: 0 0
    }

    6.25% {
        background-position: -320px 0
    }

    12.50% {
        background-position: -640px 0
    }

    18.75% {
        background-position: -960px 0
    }

    25.00% {
        background-position: -1280px 0
    }

    31.25% {
        background-position: -1600px 0
    }

    37.50% {
        background-position: -1920px 0
    }

    43.75% {
        background-position: -2240px 0
    }

    50.00% {
        background-position: -2560px 0
    }

    56.25% {
        background-position: -2880px 0
    }

    62.50% {
        background-position: -3200px 0
    }

    68.75% {
        background-position: -3520px 0
    }

    75.00% {
        background-position: -3840px 0
    }

    81.25% {
        background-position: -4160px 0
    }

    87.50% {
        background-position: -4480px 0
    }

    93.75% {
        background-position: 0 -184px
    }

    100.00% {
        background-position: -320px -184px
    }
}
/* 图标导航样式 */
.icon-nav {display: grid;gap: 8px;grid-template-columns: repeat(10, minmax(0, 1fr));margin: 6px auto 0;max-width: 750px;padding: 6px 3px;}

.icon-item {align-items: center;background: #ffffff;border: 1px solid #242424;border-radius: 8px;color: #4d4d4d;display: grid;grid-template-rows: 44px auto;justify-items: center;overflow: hidden;padding: 6px 4px;text-align: center;}

.icon-img {border-radius: 8px;display: block;height: 36px;object-fit: cover;width: 36px;}

.icon-name {font-size: 12px;line-height: 1.1;margin-top: 6px;max-width: 100%;overflow: hidden;text-overflow: ellipsis;white-space: nowrap;}

.icon-item:hover {background: #161616;border-color: #2d2d2d;}

/* 站点网格样式 */
.site-grid {display: grid;gap: 8px;grid-template-columns: repeat(10, minmax(0, 1fr));margin: 6px auto 0;max-width: 750px;padding: 0 3px 6px;}

.site-item {align-items: center;background: #ffffff;border: 1px solid #242424;border-radius: 8px;color: #4d4d4d;display: grid;gap: 6px;grid-auto-flow: column;justify-content: center;min-height: 28px;overflow: hidden;padding: 6px 0;text-decoration: none;width: 100%;}

.site-name {min-width: 0;overflow: hidden;text-align: center;text-overflow: ellipsis;white-space: nowrap;font-size: 13px;}

.site-item:hover {background: #161616;border-color: #2d2d2d;}

/* 热门关键词样式 */
.hot-keys {border-top: 1px solid #111;margin: 3px auto 0;max-width: 750px;padding: 6px 3px;}

.hot-wrap {display: grid;gap: 3px;grid-template-columns: repeat(20, minmax(0, 1fr));}

.hot-chip {align-items: center;background: #ffffff;border: 1px solid #242424;border-radius: 3px;color: #fff;display: flex;height: 28px;justify-content: center;overflow: hidden;padding: 0;text-overflow: ellipsis;white-space: nowrap;width: 100%;font-size: 13px;}

.hot-chip:hover {background: #1a1a1a;border-color: #303030;color: #eee;}

/* 响应式设计 */
@media (max-width: 2400px) {.icon-nav {gap: 6px;    grid-template-columns: repeat(5, minmax(0, 1fr));}
    
    .icon-item {grid-template-rows: 40px auto;    padding: 6px 3px;}
    
    .icon-img {height: 32px;    width: 32px;}
    
    .site-grid {gap: 6px;    grid-template-columns: repeat(4, minmax(0, 1fr));}
    
    .hot-wrap {gap: 3px;    grid-template-columns: repeat(8, minmax(0, 1fr));}
    
    .hot-chip {font-size: 12px;    height: 26px;}
}