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: #ff3366;
    /* 亮粉色 */
    --ui-theme-button: #ff6b9d;
    /* 浅粉色 */
    --ui-theme-accent: #00d4ff;
    /* 亮蓝色 */
    --ui-theme-secondary: #ffcc00;
    /* 亮黄色 */
    --ui-theme-success: #00ff88;
    /* 亮绿色 */
    --ui-font-title: #ffffff;
    /* 标题文字色 */
    --ui-font-des: #cccccc;
    /* 描述文字色 */
    --ui-color-bg: #0a0a0a;
    /* 背景色 */
    --ui-color-header: #1a1a1a;
    /* 头部背景色 */
    --ui-color-card: #222222;
    /* 卡片背景色 */
    --ui-color-border: #444444;
    /* 边框色 */
}

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

a:hover {
    color: var(--ui-theme-button)
}

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

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

h2 {
    font-size: 1.5rem;
    color: var(--ui-theme-accent);
    text-align: center
}

.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);
    text-align: center
}

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

.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;
    justify-content: center
}

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

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

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

.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;
    text-align: center
}

.app-header #search .search-input {
    color: var(--ui-font-title);
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    height: 40px;
    outline: 0;
    line-height: 40px;
    padding-left: 20px;
    text-align: left
}

.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;
    align-items: 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;
    text-align: center
}

/*----------------
    Swiper 容器 - 居中显示
----------------*/
.hot-swiper,
.tags-swiper,
.eps-swiper {
    padding: 15px 0;
    text-align: center
}

.hot-swiper .swiper-slide {
    width: calc((100% - 30px) / 2);
    margin: 0 7.5px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.tags-swiper .swiper-slide {
    width: calc((100% - 105px) / 8);
    margin: 0 7.5px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.eps-swiper .swiper-slide {
    width: calc((100% - 55px) / 12);
    margin: 0 2.5px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.eps-swiper .swiper-slide .list-ep {
    background: var(--ui-color-card);
    color: var(--ui-font-title);
    padding: 10px 0;
    border-radius: 5px;
    margin: 15px auto 0;
    text-align: center;
    display: block;
    width: 100%
}

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

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

.eps-prev svg {
    width: 20px
}

.light {
    font-weight: normal
}

/*----------------
    列表项样式 - 一行两个横图显示（完全居中）
----------------*/
.items {
    background: var(--ui-color-card);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    border: 1px solid var(--ui-color-border);
    text-align: center;
    max-width: 720px
}

.items ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    justify-content: center;
    gap: 20px
}

.items .item {
    width: calc(50% - 10px);
    margin: 0;
    display: flex;
    background: var(--ui-color-bg);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--ui-color-border);
    transition: all 0.3s ease;
    min-height: 120px;
    text-align: left;
}

.items .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 51, 102, 0.4);
    border-color: var(--ui-theme-color);
}

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

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

.items .image-line .remarks {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-button));
    color: var(--ui-font-title);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
}

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

.items .title-line h3 {
    font-size: 1rem;
    margin: 0 0 8px 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-theme-accent);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
}

.items .title-line .tags:before {
    content: '★';
    margin-right: 5px;
    color: var(--ui-theme-secondary);
}

.items-title {
    display: block;
    margin: 0 auto 15px;
    color: var(--ui-theme-accent);
    font-size: 1.4rem;
    font-weight: bold;
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--ui-theme-color);
    width: 100%;
}

/*----------------
    响应式设计 - 保持居中
----------------*/
@media (max-width: 767px) {
    .items .item {
        width: calc(50% - 10px);
        min-height: 110px;
    }

    .items .image-line {
        width: 120px;
    }

    .items .image-line .thumb {
        height: 110px;
    }

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

    .hot-swiper .swiper-slide,
    .tags-swiper .swiper-slide {
        width: calc(50% - 10px);
        margin: 0 5px
    }
}

@media (max-width: 380px) {
    .items .item {
        width: 100%;
        flex-direction: column;
        text-align: center;
    }

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

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

    .items .title-line {
        text-align: center;
        padding: 15px;
    }

    .items .title-line h3,
    .items .title-line .tags {
        text-align: center;
    }

    .container {
        padding: 0 10px;
    }

    .hot-swiper .swiper-slide,
    .tags-swiper .swiper-slide {
        width: calc(50% - 5px);
        margin: 0 2.5px
    }
}

/*----------------
    修复标签显示问题 - 显示两个汉字
----------------*/
.tags-swiper .swiper-slide a,
.tagsec-swiper .swiper-slide a {
    display: block;
    background: var(--ui-color-card);
    color: var(--ui-font-title) !important;
    padding: 10px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: 60px;
    max-width: 80px;
    text-align: center;
    line-height: 1.2;
}

.tags-swiper .swiper-slide a:hover,
.tagsec-swiper .swiper-slide a:hover,
.tags-swiper .swiper-slide a.active,
.tagsec-swiper .swiper-slide a.active {
    background: var(--ui-theme-color);
    color: var(--ui-font-title) !important;
    border-color: var(--ui-theme-color);
    transform: scale(1.05);
}

/* 调整swiper-slide宽度以适应两个汉字 */
.tags-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    margin: 0 8px;
    min-width: 70px;
}

.tagsec-swiper .swiper-slide {
    width: auto;
    flex-shrink: 0;
    margin: 0 8px;
    min-width: 70px;
}

/* 调整swiper容器布局 */
.tags-swiper .swiper-wrapper,
.tagsec-swiper .swiper-wrapper {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

/* 响应式调整 */
@media (max-width: 767px) {
    .tags-swiper .swiper-slide a,
    .tagsec-swiper .swiper-slide a {
        min-width: 55px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .tags-swiper .swiper-slide,
    .tagsec-swiper .swiper-slide {
        margin: 0 5px;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .tags-swiper .swiper-slide a,
    .tagsec-swiper .swiper-slide a {
        min-width: 50px;
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .tags-swiper .swiper-slide,
    .tagsec-swiper .swiper-slide {
        margin: 0 4px;
        min-width: 55px;
    }
}

/* 确保文字不会被截断 */
.swiper-tags.ellipsis {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    display: block;
    width: 100%;
}

/*----------------
    其他居中样式
----------------*/
.thumb {
    width: 100%;
    aspect-ratio: 71 / 100;
    border-radius: 8px;
    display: block;
    margin: 0 auto
}

.douscore {
    background: var(--ui-theme-success);
    text-align: center;
    color: var(--ui-color-header);
    padding: 4px 8px;
    position: absolute;
    top: 15px;
    right: 15px;
    border-radius: 4px;
    font-weight: bold
}

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

.swiper-container {
    position: relative;
    text-align: center
}

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

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

#menu-nf-footer a {
    color: var(--ui-theme-color);
    font-weight: 600;
    padding: 0 10px;
    text-align: center
}

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

.swiper-tags {
    background: var(--ui-color-card);
    color: var(--ui-font-title);
    padding: 10px 20px;
    border-radius: 25px;
    justify-content: center;
    margin: 15px auto;
    display: inline-block;
    text-align: center
}

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

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

.detail-content .items-title {
    align-items: center;
    font-size: 2rem;
    margin: 15px auto 0;
    text-align: center;
    justify-content: center
}

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

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

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

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

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

.text-container {
    position: relative;
    overflow: hidden;
    max-height: 3rem;
    line-height: 1.5rem;
    text-align: center
}

.text-container .text-content {
    display: inline-block;
    text-align: center
}

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

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

.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: 50%;
    transform: translateX(50%);
    cursor: pointer;
    color: var(--ui-theme-color);
    transition: transform 1s ease;
    width: 30px;
    height: 30px;
    background: var(--ui-theme-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center
}

.ui-tag .swiper-container,
.ui-category .swiper-container {
    background: var(--ui-color-card);
    text-align: center
}

.separation {
    width: 2px;
    height: 15px;
    border: none;
    background: var(--ui-theme-accent);
    display: inline-block;
    margin: 0 10px
}

li {
    list-style: none;
    text-align: center
}

.tagsec-swiper .swiper-slide {
    width: calc((100% - 135px) / 10);
    margin: 0 6.5px;
    display: inline-block;
    vertical-align: top;
    text-align: center
}

.tagsec-swiper a {
    color: var(--ui-font-title);
    padding: 10px 0;
    display: block;
    text-align: center
}

.tagsec-swiper .active {
    color: var(--ui-theme-color);
    background: var(--ui-theme-color)
}

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

@media (max-width: 479px) {
    .tagsec-swiper .swiper-slide {
        width: calc((100% - 65px) / 6);
        margin: 0 5px
    }

    .eps-swiper .swiper-slide {
        width: calc((100% - 20px) / 6);
        margin: 0 2px
    }

    .tags-swiper .swiper-slide {
        width: calc((100% - 35px) / 4);
        margin: 0 5px
    }

    .player-content {
        padding-top: 0
    }

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

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

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

    h2 {
        font-size: 1.3rem
    }
}

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

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

.pagination ul .active {
    background: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-button));
    color: var(--ui-font-title) !important;
    transform: scale(1.1)
}

.pagination ul .page-link {
    padding: 8px 15px;
    border-radius: 8px;
    color: var(--ui-font-title);
    font-weight: 400;
    margin: 0 5px;
    transition: all 0.3s ease;
    text-align: center
}

.pagination ul .page-link:hover {
    background: var(--ui-theme-accent);
    color: var(--ui-color-bg)
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 0 auto
}

.player-box {
    position: relative;
    text-align: center
}

.player-box .plyr__poster {
    background-image: url("https://p0.meituan.net/csc/c623cd3343d70836680acfea0a7cb7fd182113.jpg");
    background-size: cover;
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0
}

.player-box .plyr__gifs {
    position: absolute;
    pointer-events: none;
    border: 0;
    opacity: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 92px;
    z-index: 3;
    background: url("https://p1.meituan.net/csc/dfc56d461c991d2213846547fa5cc95191779.png") no-repeat;
    background-size: cover;
    animation: pulse 2s infinite
}

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

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

.plyr__tips {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 20px
}

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

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

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1)
    }

    50% {
        transform: translate(-50%, -50%) scale(1.1)
    }
}