/* ========================================
   Advanced UI Styles - 高级美化样式
   ======================================== */

/* 粒子背景效果 - 减淡 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255, 91, 130, 0.08), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 122, 158, 0.08), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 91, 130, 0.1), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 122, 158, 0.08), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255, 91, 130, 0.1), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: particleFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-200px);
    }
}

/* 玻璃态导航栏 */
.header {
    background: rgba(26, 26, 46, 0.7) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* 导航链接发光效果 */
.nav a {
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 91, 130, 0.3), transparent);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    border-radius: 50%;
    z-index: -1;
}

.nav a:hover::before {
    width: 200%;
    height: 200%;
}

.nav a:hover {
    color: #ff5b82 !important;
    text-shadow: 0 0 20px rgba(255, 91, 130, 0.8);
    transform: scale(1.1);
}

/* 搜索框简化效果 */
.search form {
    background: rgba(36, 36, 36, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 91, 130, 0.2);
    transition: border-color 0.3s ease;
}

.search form:focus-within {
    border-color: rgba(255, 91, 130, 0.5);
}

.search .tx-btn {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%) !important;
    transition: opacity 0.3s ease;
}

.search .tx-btn:hover {
    opacity: 0.9;
}

/* 3D轮播图效果 */
.home-flash {
    perspective: 1000px;
}

.home-flash .swiper-container {
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.home-flash .swiper-slide {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-flash .swiper-slide:hover {
    transform: scale(1.02) translateZ(20px);
}

.home-flash .swiper-slide img {
    filter: brightness(0.9);
    transition: all 0.5s ease;
}

.home-flash .swiper-slide:hover img {
    filter: brightness(1.1);
}

/* 增强型分页器 */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.swiper-pagination-bullet:hover {
    background: rgba(255, 91, 130, 0.6);
    transform: scale(1.2);
}

.swiper-pagination-bullet-active {
    width: 35px;
    height: 12px;
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(255, 91, 130, 0.8);
}

/* 特色卡片全息效果 */
.home-imgleft li>* {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.15) 0%, rgba(255, 122, 158, 0.05) 100%) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 91, 130, 0.2);
    position: relative;
    overflow: hidden;
}

/* 移除闪光动画，确保文字清晰 */

.home-imgleft li>*:hover {
    transform: translateY(-3px);
    box-shadow:
        0 10px 25px rgba(255, 91, 130, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.2);
}

/* 确保文字清晰可见 */
.home-imgleft li>* section {
    position: relative;
    z-index: 2;
}

.home-imgleft li>* h2 {
    color: #ff5b82 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.home-imgleft li>* p {
    color: #e0e0e0 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* 视频卡片高级效果 */
.item-box,
.vod-item {
    position: relative;
    perspective: 1000px;
}

.item-box .img-box,
.vod-item .img-box {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.item-box:hover .img-box,
.vod-item:hover .img-box {
    transform: rotateX(5deg) rotateY(5deg) scale(1.05);
    box-shadow:
        0 20px 40px rgba(255, 91, 130, 0.4),
        0 0 30px rgba(255, 91, 130, 0.2);
}

.item-box .img-box img,
.vod-item .img-box img {
    transition: all 0.5s ease;
}

.item-box:hover .img-box img,
.vod-item:hover .img-box img {
    transform: scale(1.15);
}

/* 视频缩放遮罩效果 */
.item-box .img-box::after,
.vod-item .img-box::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 91, 130, 0.4) 0%,
        transparent 50%,
        rgba(255, 122, 158, 0.4) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item-box:hover .img-box::after,
.vod-item:hover .img-box::after {
    opacity: 1;
}

/* 播放按钮悬浮效果 */
.item-box .img-box::before,
.vod-item .img-box::before {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: rgba(255, 91, 130, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.item-box:hover .img-box::before,
.vod-item:hover .img-box::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* 标题悬停效果 */
.item-box h2 a,
.vod-item h2 a {
    position: relative;
    transition: all 0.3s ease;
}

.item-box h2 a::after,
.vod-item h2 a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff5b82, #ff7a9e);
    transition: width 0.3s ease;
}

.item-box:hover h2 a::after,
.vod-item:hover h2 a::after {
    width: 100%;
}

.item-box:hover h2 a,
.vod-item:hover h2 a {
    color: #ff5b82;
}

/* 标签页简化效果 */
.tab-hd {
    background: rgba(46, 46, 46, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 91, 130, 0.2);
}

.tab-hd>* {
    position: relative;
    transition: background 0.3s ease;
    color: #e0e0e0 !important;
}

.tab-hd>*:hover {
    color: #fff !important;
}

.tab-hd>*.on {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%) !important;
    color: #fff !important;
}

/* 分类卡片美化 */
.ta-c ul li {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ta-c ul li:hover {
    transform: translateY(-8px) scale(1.05);
}

.ta-c ul li .img-box {
    border-radius: 15px;
    overflow: hidden;
}

.ta-c ul li .img-box img {
    transition: all 0.5s ease;
}

.ta-c ul li:hover .img-box img {
    transform: scale(1.15) rotate(3deg);
}

/* 页脚增强 */
.footer {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.98) 100%) !important;
    backdrop-filter: blur(20px);
    border-top: 2px solid;
    border-image: linear-gradient(90deg, transparent, #ff5b82, transparent) 1;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 91, 130, 0.5), transparent);
}

/* 按钮脉冲效果 */
.tx-btn,
.fed-btns,
.fed-more {
    position: relative;
    overflow: hidden;
}

.tx-btn::after,
.fed-btns::after,
.fed-more::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tx-btn:hover::after,
.fed-btns:hover::after,
.fed-more:hover::after {
    transform: translateX(100%);
}

/* 波纹点击效果 */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 91, 130, 0.4) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 0.5s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* 加载动画 */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(
        90deg,
        rgba(46, 46, 46, 0.8) 0%,
        rgba(66, 66, 66, 0.8) 50%,
        rgba(46, 46, 46, 0.8) 100%
    );
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* 提示框动画 */
@keyframes slideInDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.alert-enter {
    animation: slideInDown 0.3s ease forwards;
}

.alert-exit {
    animation: slideOutUp 0.3s ease forwards;
}

/* 输入框聚焦动画 */
input:focus,
textarea:focus,
select:focus {
    animation: inputPulse 0.5s ease;
}

@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 91, 130, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 91, 130, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 91, 130, 0);
    }
}

/* 卡片入场动画增强 */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.item-box,
.vod-item {
    animation: fadeInScale 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    opacity: 0;
}

/* 分页器美化 */
.pagination a,
.fed-pagination a {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pagination a::before,
.fed-pagination a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.pagination a:hover::before,
.fed-pagination a:hover::before {
    opacity: 1;
}

.pagination a:hover,
.fed-pagination a:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
}

/* 更多链接按钮 */
.more-a {
    background: rgba(46, 46, 46, 0.6) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 91, 130, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

.more-a::after {
    content: '→';
    margin-left: 5px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.more-a:hover {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%) !important;
    border-color: transparent;
    padding-right: 25px;
}

.more-a:hover::after {
    transform: translateX(5px);
}

/* 辅助标签 */
.item-auxiliary {
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(5px);
    border-radius: 5px;
}

.item-auxiliary small {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* 标题渐变文字 - 修改为可读的颜色 */
.tx-c2 {
    color: #f7d0bf !important;
}

/* 响应式优化 */
@media (max-width: 768px) {
    body::before {
        display: none;
    }

    .home-imgleft li>*::before {
        animation: none;
    }

    .item-box:hover .img-box,
    .vod-item:hover .img-box {
        transform: none;
    }
}

/* 暗色模式增强 */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
    }
}

/* 滚动触发动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 浮动操作按钮 */
.floating-action-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    box-shadow: 0 10px 30px rgba(255, 91, 130, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-action-btn:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 15px 40px rgba(255, 91, 130, 0.6);
}

/* 打字机效果 */
.typewriter {
    overflow: hidden;
    border-right: 2px solid #ff5b82;
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink-caret {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: #ff5b82;
    }
}
