/* 使用您指定的鲜艳配色方案 */
:root {
    /* 新配色方案 - 保持鲜艳 */
    --ui-theme-color: #ff2e63;      /* 亮粉色 */
    --ui-theme-button: #ff2e63;      /* 亮粉色 */
    --ui-theme-accent: #08d9d6;      /* 青色 */
    --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;       /* 中灰边框 */
}

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
}

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

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

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;
    border-bottom: 2px solid var(--ui-theme-color);
    box-shadow: 0 2px 10px rgba(255, 46, 99, 0.3);
}

.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;
    background: var(--ui-color-card);
}

.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;
    transition: all 0.3s ease;
}

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

.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;
    transition: all 0.3s ease;
}

.app-header #search .search-help:hover {
    color: var(--ui-theme-accent);
    transform: scale(1.1);
}

.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;
    transition: all 0.3s ease;
    font-weight: bold;
}

.app-header #search .search-submit:hover {
    background: var(--ui-theme-accent);
    transform: scale(1.05);
}

/*----------------
    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%;
    border: 1px solid var(--ui-color-border);
    transition: all 0.3s ease;
}

.eps-swiper .swiper-slide .list-ep.active {
    background: var(--ui-theme-color);
    color: white;
    border-color: var(--ui-theme-color);
}

.eps-swiper .swiper-slide .list-ep:hover {
    background: var(--ui-theme-accent);
    border-color: var(--ui-theme-accent);
    transform: translateY(-2px);
}

.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;
    color: var(--ui-theme-color);
    transition: all 0.3s ease;
}

.eps-prev:hover {
    background: var(--ui-theme-color);
    color: white;
    transform: translateY(-2px);
}

.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;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.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;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.items .item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 46, 99, 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-accent));
    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;
    font-weight: bold;
}

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

.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 var(--ui-color-border);
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    min-width: 60px;
    max-width: 80px;
    text-align: center;
    line-height: 1.2;
    font-weight: bold;
}

.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);
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}

/* 调整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;
    border-top: 2px solid var(--ui-theme-color);
}

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

#menu-nf-footer a {
    color: var(--ui-theme-color);
    font-weight: 600;
    padding: 8px 15px;
    text-align: center;
    border: 1px solid var(--ui-theme-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

#menu-nf-footer a:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    transform: translateY(-2px);
}

.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;
    border: 1px solid var(--ui-theme-color);
    font-weight: bold;
}

.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;
    color: var(--ui-theme-accent);
}

.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-color)
}

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

.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;
    padding: 5px 12px;
    border: 1px solid var(--ui-theme-color);
    border-radius: 15px;
    transition: all 0.3s ease;
}

.items-tags a:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
}

.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-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    font-weight: bold;
}

.toggle-button:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
}

.ui-tag .swiper-container,
.ui-category .swiper-container {
    background: var(--ui-color-card);
    text-align: center;
    border: 1px solid var(--ui-theme-color);
    border-radius: 12px;
    padding: 15px;
}

.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-font-title);
    background: var(--ui-theme-color);
    border-radius: 20px;
}

.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;
    flex-wrap: wrap;
    gap: 5px;
}

.pagination ul .active {
    background: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-accent));
    color: var(--ui-font-title) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}

.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;
    background: var(--ui-color-card);
    border: 1px solid var(--ui-color-border);
}

.pagination ul .page-link:hover {
    background: var(--ui-theme-accent);
    color: var(--ui-font-title);
    border-color: var(--ui-theme-accent);
    transform: translateY(-2px);
}

#player {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
    border: 2px solid var(--ui-theme-color);
}

.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;
    border-radius: 10px;
}

.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;
    padding: 8px 16px;
    border: 1px solid var(--ui-theme-color);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.plyr__tips .plyr__switch:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    transform: translateY(-2px);
}
.plyr__tips .plyr__tip {
    color: var(--ui-theme-accent);
    font-weight: bold;
    padding: 8px 16px;
    background: var(--ui-color-card);
    border-radius: 20px;
    border: 1px solid var(--ui-theme-accent);
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1)
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1)
    }
}

/* === 加载动画和状态指示器 === */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--ui-color-border);
    border-radius: 50%;
    border-top-color: var(--ui-theme-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    background: var(--ui-color-card);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--ui-theme-color);
}

/* === 错误状态样式 === */
.error-state {
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(255, 46, 99, 0.2));
    border: 2px solid var(--ui-theme-color);
    border-radius: 12px;
    padding: 30px;
    margin: 20px auto;
    text-align: center;
    max-width: 500px;
}

.error-icon {
    font-size: 3rem;
    color: var(--ui-theme-color);
    margin-bottom: 15px;
}

.error-message {
    color: var(--ui-font-title);
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
}

.retry-button {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.retry-button:hover {
    background: var(--ui-theme-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(8, 217, 214, 0.3);
}

/* === 空状态样式 === */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--ui-font-des);
}

.empty-icon {
    font-size: 4rem;
    color: var(--ui-color-border);
    margin-bottom: 15px;
}

.empty-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--ui-font-title);
}

.empty-subtext {
    font-size: 1rem;
    color: var(--ui-font-des);
}

/* === 成功状态样式 === */
.success-state {
    background: linear-gradient(135deg, rgba(8, 217, 214, 0.1), rgba(8, 217, 214, 0.2));
    border: 2px solid var(--ui-theme-accent);
    border-radius: 12px;
    padding: 20px;
    margin: 20px auto;
    text-align: center;
    max-width: 400px;
}

.success-icon {
    font-size: 2.5rem;
    color: var(--ui-theme-accent);
    margin-bottom: 10px;
}

.success-message {
    color: var(--ui-font-title);
    font-size: 1.1rem;
    font-weight: bold;
}

/* === 工具提示样式 === */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: var(--ui-theme-color);
    color: var(--ui-font-title);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    font-weight: normal;
    box-shadow: 0 4px 12px rgba(255, 46, 99, 0.3);
}

.tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--ui-theme-color) transparent transparent transparent;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* === 徽章样式 === */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 12px;
    margin-left: 8px;
}

.badge-new {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
}

.badge-hot {
    background: var(--ui-theme-accent);
    color: var(--ui-font-title);
}

.badge-popular {
    background: var(--ui-theme-secondary);
    color: var(--ui-color-header);
}

/* === 进度条样式 === */
.progress-bar {
    width: 100%;
    height: 6px;
    background-color: var(--ui-color-border);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--ui-theme-color), var(--ui-theme-accent));
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* === 模态框样式 === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--ui-color-card);
    border-radius: 15px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--ui-theme-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--ui-color-border);
}

.modal-title {
    color: var(--ui-font-title);
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--ui-font-des);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    transform: rotate(90deg);
}

/* === 通知消息样式 === */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--ui-color-card);
    border-left: 4px solid var(--ui-theme-color);
    border-radius: 8px;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left-color: var(--ui-theme-accent);
}

.notification.error {
    border-left-color: var(--ui-theme-color);
}

.notification.warning {
    border-left-color: var(--ui-theme-secondary);
}

/* === 下拉菜单样式 === */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    background: var(--ui-color-card);
    border: 2px solid var(--ui-color-border);
    border-radius: 8px;
    padding: 10px 15px;
    color: var(--ui-font-title);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.dropdown-toggle:hover {
    border-color: var(--ui-theme-color);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ui-color-card);
    border: 2px solid var(--ui-color-border);
    border-radius: 8px;
    padding: 5px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: none;
    margin-top: 5px;
}

.dropdown-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 10px 15px;
    background: none;
    border: none;
    text-align: left;
    color: var(--ui-font-title);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
}

/* === 选项卡样式 === */
.tabs {
    display: flex;
    border-bottom: 2px solid var(--ui-color-border);
    margin-bottom: 20px;
}

.tab {
    padding: 12px 24px;
    background: none;
    border: none;
    color: var(--ui-font-des);
    cursor: pointer;
    font-weight: bold;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.tab.active {
    color: var(--ui-theme-color);
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--ui-theme-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* === 表单元素样式 === */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ui-font-title);
    font-weight: bold;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    background: var(--ui-color-card);
    border: 2px solid var(--ui-color-border);
    border-radius: 8px;
    color: var(--ui-font-title);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--ui-theme-color);
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 40px;
}

/* === 按钮组样式 === */
.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--ui-color-card);
    border: 2px solid var(--ui-color-border);
    border-radius: 8px;
    color: var(--ui-font-title);
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--ui-theme-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    opacity: 1;
}

.btn:hover {
    color: var(--ui-font-title);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.3);
}

.btn-primary {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    border-color: transparent;
}

.btn-secondary {
    background: var(--ui-theme-accent);
    color: var(--ui-font-title);
    border-color: transparent;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* === 卡片变体样式 === */
.card {
    background: var(--ui-color-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--ui-color-border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(255, 46, 99, 0.4);
    border-color: var(--ui-theme-color);
}

.card-header {
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--ui-color-border);
}

.card-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--ui-font-title);
    margin: 0;
}

.card-body {
    color: var(--ui-font-des);
    line-height: 1.6;
}

.card-footer {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid var(--ui-color-border);
}

/* === 网格系统 === */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col {
    flex: 1;
    padding: 0 10px;
}

.col-1 { flex: 0 0 8.333333%; }
.col-2 { flex: 0 0 16.666667%; }
.col-3 { flex: 0 0 25%; }
.col-4 { flex: 0 0 33.333333%; }
.col-5 { flex: 0 0 41.666667%; }
.col-6 { flex: 0 0 50%; }
.col-7 { flex: 0 0 58.333333%; }
.col-8 { flex: 0 0 66.666667%; }
.col-9 { flex: 0 0 75%; }
.col-10 { flex: 0 0 83.333333%; }
.col-11 { flex: 0 0 91.666667%; }
.col-12 { flex: 0 0 100%; }

/* === 响应式断点 === */
@media (max-width: 1200px) {
    .col-lg-1 { flex: 0 0 8.333333%; }
    .col-lg-2 { flex: 0 0 16.666667%; }
    .col-lg-3 { flex: 0 0 25%; }
    .col-lg-4 { flex: 0 0 33.333333%; }
    .col-lg-5 { flex: 0 0 41.666667%; }
    .col-lg-6 { flex: 0 0 50%; }
    .col-lg-7 { flex: 0 0 58.333333%; }
    .col-lg-8 { flex: 0 0 66.666667%; }
    .col-lg-9 { flex: 0 0 75%; }
    .col-lg-10 { flex: 0 0 83.333333%; }
    .col-lg-11 { flex: 0 0 91.666667%; }
    .col-lg-12 { flex: 0 0 100%; }
}

@media (max-width: 768px) {
    .col-md-1 { flex: 0 0 8.333333%; }
    .col-md-2 { flex: 0 0 16.666667%; }
    .col-md-3 { flex: 0 0 25%; }
    .col-md-4 { flex: 0 0 33.333333%; }
    .col-md-5 { flex: 0 0 41.666667%; }
    .col-md-6 { flex: 0 0 50%; }
    .col-md-7 { flex: 0 0 58.333333%; }
    .col-md-8 { flex: 0 0 66.666667%; }
    .col-md-9 { flex: 0 0 75%; }
    .col-md-10 { flex: 0 0 83.333333%; }
    .col-md-11 { flex: 0 0 91.666667%; }
    .col-md-12 { flex: 0 0 100%; }
}

@media (max-width: 576px) {
    .col-sm-1 { flex: 0 0 8.333333%; }
    .col-sm-2 { flex: 0 0 16.666667%; }
    .col-sm-3 { flex: 0 0 25%; }
    .col-sm-4 { flex: 0 0 33.333333%; }
    .col-sm-5 { flex: 0 0 41.666667%; }
    .col-sm-6 { flex: 0 0 50%; }
    .col-sm-7 { flex: 0 0 58.333333%; }
    .col-sm-8 { flex: 0 0 66.666667%; }
    .col-sm-9 { flex: 0 0 75%; }
    .col-sm-10 { flex: 0 0 83.333333%; }
    .col-sm-11 { flex: 0 0 91.666667%; }
    .col-sm-12 { flex: 0 0 100%; }
}

/* === 实用工具类 === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.m-0 { margin: 0; }
.m-1 { margin: 0.5rem; }
.m-2 { margin: 1rem; }
.m-3 { margin: 1.5rem; }
.m-4 { margin: 2rem; }
.m-5 { margin: 3rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }

.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.gap-0 { gap: 0; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }
.gap-5 { gap: 3rem; }

.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }

.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

/* === 最终优化和修复 === */
/* 确保所有交互元素可点击 */
button,
a,
input,
select,
textarea {
    position: relative;
    z-index: 1;
}

/* 防止文本选择 */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 图片懒加载样式 */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* 错误边界样式 */
.error-boundary {
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 46, 99, 0.1), rgba(255, 46, 99, 0.2));
    border: 2px solid var(--ui-theme-color);
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 500px;
}

.error-boundary h2 {
    color: var(--ui-theme-color);
    margin-bottom: 1rem;
}

.error-boundary button {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-boundary button:hover {
    background: var(--ui-theme-accent);
    transform: translateY(-2px);
}

/* === 打印样式 === */
@media print {
    .app-header,
    .app-footer,
    .player-box,
    .notification,
    .modal-overlay {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        max-width: 100% !important;
        padding: 0 !important;
    }
    
    .items {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* === 减少动画支持 === */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === 高对比度模式支持 === */
@media (prefers-contrast: high) {
    :root {
        --ui-color-border: #ffffff;
        --ui-font-title: #ffffff;
        --ui-font-des: #cccccc;
    }
    
    .items .item {
        border-width: 2px;
    }
    
    .card {
        border-width: 2px;
    }
}

/* === 深色模式自动适配 === */
@media (prefers-color-scheme: light) {
    :root {
        --ui-color-bg: #eaeaea;
        --ui-color-header: #ffffff;
        --ui-color-card: #ffffff;
        --ui-color-border: #d0d0d0;
        --ui-font-title: #252a34;
        --ui-font-des: #666666;
    }
}

/* === 强制可点击修复 === */
.neo-header * {
    pointer-events: auto !important;
}

.logo,
.nav-item,
.mobile-menu-btn,
.mobile-nav-item,
.search-btn,
.control-btn {
    position: relative;
    z-index: 1003 !important;
}

/* === 自定义属性备用值 === */
.site-item {
    background: var(--ui-color-card, #222222);
    border-color: var(--ui-color-border, #444444);
    color: var(--ui-font-title, #ffffff);
}

/* === 焦点样式 - 可访问性改进 === */
.site-item:focus,
.icon-item:focus,
.hot-chip:focus,
.category-item:focus,
.nav-item:focus,
.mobile-nav-item:focus,
.video-card:focus {
    outline: 3px solid var(--ui-theme-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 3px rgba(255, 46, 99, 0.3);
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--ui-theme-color);
    outline-offset: 2px;
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--ui-color-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--ui-theme-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ui-theme-accent);
}

/* === 选择文本样式 === */
::selection {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
}

/* === 占位符样式 === */
::placeholder {
    color: var(--ui-font-des);
    opacity: 1;
}

/* === 最终性能优化 === */
.will-change {
    will-change: transform, opacity;
}

.backface-hidden {
    backface-visibility: hidden;
}

.transform-3d {
    transform: translateZ(0);
}

/* === 移动端触摸优化 === */
@media (hover: none) and (pointer: coarse) {
    .hover-lift:hover,
    .hover-scale:hover,
    .hover-rotate:hover {
        transform: none;
    }
    
    .video-card:hover {
        transform: none;
    }
    
    .site-item:hover,
    .icon-item:hover,
    .hot-chip:hover {
        transform: none;
    }
    
    .nav-item:hover,
    .category-item:hover {
        transform: none;
    }
    
    /* 增加触摸目标大小 */
    .mobile-nav-item,
    .category-item,
    .site-item,
    .icon-item {
        min-height: 44px;
        padding: 12px 16px;
    }
    
    .control-btn {
        width: 56px;
        height: 56px;
    }
}

/* === 文本渲染优化 === */
.text-rendering-optimize {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === 图片优化 === */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* === 最终CSS变量备用值 === */
:root {
    /* 确保所有变量都有备用值 */
    --ui-theme-color: var(--ui-theme-color, #ff2e63);
    --ui-theme-button: var(--ui-theme-button, #ff2e63);
    --ui-theme-accent: var(--ui-theme-accent, #08d9d6);
    --ui-theme-secondary: var(--ui-theme-secondary, #ffcc00);
    --ui-theme-success: var(--ui-theme-success, #00ff88);
    --ui-font-title: var(--ui-font-title, #ffffff);
    --ui-font-des: var(--ui-font-des, #cccccc);
    --ui-color-bg: var(--ui-color-bg, #0a0a0a);
    --ui-color-header: var(--ui-color-header, #1a1a1a);
    --ui-color-card: var(--ui-color-card, #222222);
    --ui-color-border: var(--ui-color-border, #444444);
}

/* === 特殊效果和动画 === */
/* 浮动动画 */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* 旋转动画 */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.spin-animation {
    animation: spin 20s linear infinite;
}

/* 脉动动画 */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 46, 99, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 46, 99, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* 渐变文字动画 */
@keyframes text-shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.text-shimmer {
    background: linear-gradient(
        90deg,
        #ff2e63,
        #08d9d6,
        #ffcc00,
        #00ff88,
        #ff2e63
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

/* 霓虹灯效果 */
.neon-effect {
    text-shadow: 
        0 0 5px currentColor,
        0 0 10px currentColor,
        0 0 20px currentColor,
        0 0 40px currentColor;
    animation: neon-pulse 2s ease-in-out infinite;
}

@keyframes neon-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* 3D卡片效果 */
.card-3d {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: rotateY(10deg) rotateX(5deg) translateZ(20px);
}

/* 玻璃态效果 */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 液体按钮效果 */
.liquid-button {
    position: relative;
    overflow: hidden;
}

.liquid-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.liquid-button:hover::before {
    left: 100%;
}

/* 粒子效果背景 */
.particles-container {
    position: relative;
    overflow: hidden;
}

.particle {
    position: absolute;
    background: var(--ui-theme-color);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

/* === 工具类 === */
.text-gradient-primary {
    background: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-secondary {
    background: linear-gradient(135deg, var(--ui-theme-secondary), var(--ui-theme-success));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-accent));
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, var(--ui-theme-secondary), var(--ui-theme-success));
}

.border-gradient {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--ui-theme-color), var(--ui-theme-accent)) 1;
}

.shadow-glow {
    box-shadow: 0 0 30px rgba(255, 46, 99, 0.3);
}

.hover-lift {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-rotate {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-rotate:hover {
    transform: rotate(5deg);
}

/* === 响应式工具类 === */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

@media (max-width: 768px) {
    .mobile-only {
        display: block;
    }
    
    .desktop-only {
        display: none;
    }
}

/* === 骨架屏加载动画 === */
.skeleton {
    background: linear-gradient(90deg, #333333 25%, #444444 50%, #333333 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-title {
    height: 1.5rem;
    margin-bottom: 1rem;
    width: 70%;
}

.skeleton-image {
    height: 200px;
    margin-bottom: 1rem;
}

/* === 主题切换动画 === */
.theme-transition * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* === 加载状态 === */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* === 错误状态样式 === */
.error-state {
    background: rgba(255, 46, 99, 0.1);
    border: 2px solid var(--ui-theme-color);
    color: var(--ui-theme-color);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.error-state .error-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--ui-theme-color);
}

.error-state .error-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.error-state .retry-btn {
    background: var(--ui-theme-color);
    color: var(--ui-font-title);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.error-state .retry-btn:hover {
    background: var(--ui-theme-accent);
    transform: translateY(-2px);
}

/* === 空状态样式 === */
.empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--ui-font-des);
}

.empty-state .empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: var(--ui-theme-accent);
}

.empty-state .empty-message {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--ui-font-title);
}

.empty-state .empty-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

/* === 成功状态样式 === */
.success-state {
    background: rgba(8, 217, 214, 0.1);
    border: 2px solid var(--ui-theme-accent);
    color: var(--ui-theme-accent);
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
}

.success-state .success-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--ui-theme-accent);
}

.success-state .success-message {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* === 自定义滚动条 - 梦幻风格 === */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 46, 99, 0.1);
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: var(--ui-theme-color);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: var(--ui-theme-accent);
}

.custom-scrollbar::-webkit-scrollbar-corner {
    background: transparent;
}

/* === 最终优化和修复 === */
/* 防止移动端点击穿透 */
@media (max-width: 1024px) {
    .mobile-nav {
        z-index: 1005 !important;
    }
    
    .mobile-menu-btn {
        z-index: 1006 !important;
    }
}

/* 强制可点击元素 */
.clickable {
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

