/* ========================================
   Enhanced UI Styles - 美化样式
   ======================================== */

/* 全局美化 */
* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* 卡片阴影效果 */
.bo-r5,
.card,
.fed-part-layout {
    box-shadow: 0 4px 20px rgba(255, 91, 130, 0.15) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bo-r5:hover,
.fed-part-layout:hover {
    box-shadow: 0 8px 30px rgba(255, 91, 130, 0.25) !important;
    transform: translateY(-2px);
}

/* 导航栏美化 */
.header {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 91, 130, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav a {
    transition: all 0.3s ease;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff5b82, #ff7a9e);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav a:hover::after,
.nav a.on::after {
    width: 100%;
}

.nav a:hover,
.nav a.on {
    color: #ff5b82 !important;
}

/* 搜索框美化 */
.search form {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.1) 0%, rgba(255, 122, 158, 0.1) 100%);
    border: 2px solid rgba(255, 91, 130, 0.3);
    transition: all 0.3s ease;
}

.search form:focus-within {
    border-color: #ff5b82;
    box-shadow: 0 0 20px rgba(255, 91, 130, 0.3);
}

.search .tx-btn {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    transition: all 0.3s ease;
}

.search .tx-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 91, 130, 0.4);
}

/* 轮播图美化 */
.home-flash {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 91, 130, 0.2);
}

.home-flash .swiper-slide img {
    transition: transform 0.5s ease;
}

.home-flash .swiper-slide:hover img {
    transform: scale(1.05);
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    width: 30px;
    border-radius: 5px;
}

/* 首页特色卡片美化 */
.home-imgleft li>* {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.1) 0%, rgba(255, 122, 158, 0.05) 100%);
    border: 1px solid rgba(255, 91, 130, 0.2);
    transition: all 0.3s ease;
}

.home-imgleft li>*:hover {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.2) 0%, rgba(255, 122, 158, 0.1) 100%);
    border-color: rgba(255, 91, 130, 0.4);
    transform: translateY(-3px);
}

.home-imgleft h2 {
    color: #ff5b82;
    text-shadow: 0 2px 10px rgba(255, 91, 130, 0.3);
}

/* 视频卡片美化 */
.vod-item,
.item,
.fed-list-item {
    background: linear-gradient(135deg, rgba(46, 46, 46, 0.8) 0%, rgba(36, 36, 36, 0.8) 100%);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 91, 130, 0.1);
}

.vod-item:hover,
.item:hover,
.fed-list-item:hover {
    border-color: rgba(255, 91, 130, 0.4);
    box-shadow: 0 8px 30px rgba(255, 91, 130, 0.3);
    transform: translateY(-5px);
}

.vod-item .img-box,
.item .img-box,
.fed-list-item .fed-list-img {
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.vod-item .img-box img,
.item .img-box img,
.fed-list-item .fed-list-img img {
    transition: transform 0.5s ease;
}

.vod-item:hover .img-box img,
.item:hover .img-box img,
.fed-list-item:hover .fed-list-img img {
    transform: scale(1.1);
}

/* 按钮美化 */
.tx-btn,
.fed-btns,
button,
.fed-more {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border: none;
    border-radius: 25px;
    padding: 10px 25px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tx-btn:hover,
.fed-btns:hover,
button:hover,
.fed-more:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 91, 130, 0.4);
}

/* 标签页美化 */
.tab-hd,
.tab-hd-t {
    background: rgba(46, 46, 46, 0.5);
    border-radius: 10px;
    padding: 5px;
}

.tab-hd>* {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-hd>*.on {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    color: white;
}

/* 页脚美化 */
.footer {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    border-top: 1px solid rgba(255, 91, 130, 0.2);
    padding: 40px 0;
}

.footer a {
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ff5b82;
}

/* 用户中心美化 */
.fed-user-head {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.2) 0%, rgba(255, 122, 158, 0.1) 100%);
    border-radius: 15px;
}

.fed-user-brief li {
    background: rgba(255, 91, 130, 0.05);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.fed-user-brief li:hover {
    background: rgba(255, 91, 130, 0.1);
    transform: scale(1.05);
}

.fed-user-list li {
    transition: all 0.3s ease;
    border-radius: 10px;
}

.fed-user-list li:hover {
    background: rgba(255, 91, 130, 0.05);
    padding-left: 20px;
}

/* 表单美化 */
input,
textarea,
select {
    background: rgba(46, 46, 46, 0.8);
    border: 2px solid rgba(255, 91, 130, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    color: #e0e0e0;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #ff5b82;
    box-shadow: 0 0 15px rgba(255, 91, 130, 0.2);
}

/* 滚动条美化 */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(26, 26, 46, 0.5);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #ff7a9e 0%, #ff5b82 100%);
}

/* 角度渐变装饰 */
.linear {
    background: linear-gradient(90deg, transparent, rgba(255, 91, 130, 0.3), transparent);
    height: 2px;
}

/* 分页美化 */
 fed-pagination,
.pagination {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 30px 0;
}

.fed-pagination a,
.pagination a,
.fed-pagination span,
.pagination span {
    padding: 10px 15px;
    background: rgba(46, 46, 46, 0.8);
    border: 1px solid rgba(255, 91, 130, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.fed-pagination a:hover,
.pagination a:hover,
.fed-pagination .active,
.pagination .active {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border-color: transparent;
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vod-item,
.item,
.fed-list-item {
    animation: fadeInUp 0.6s ease forwards;
}

.vod-item:nth-child(1) { animation-delay: 0.1s; }
.vod-item:nth-child(2) { animation-delay: 0.2s; }
.vod-item:nth-child(3) { animation-delay: 0.3s; }
.vod-item:nth-child(4) { animation-delay: 0.4s; }
.vod-item:nth-child(5) { animation-delay: 0.5s; }
.vod-item:nth-child(6) { animation-delay: 0.6s; }

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 徽章和标签美化 */
.fed-tag,
.tag,
.badge {
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* 提示框美化 */
.layer-msg,
.alert,
.notice {
    background: linear-gradient(135deg, rgba(255, 91, 130, 0.1) 0%, rgba(255, 122, 158, 0.1) 100%);
    border: 1px solid rgba(255, 91, 130, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    color: #ff5b82;
}

/* 视频播放器容器美化 */
#playerWrapper,
.player-wrapper,
.fed-play-box {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 33, 62, 0.9) 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(255, 91, 130, 0.2);
}

/* 进度条美化 */
.progress-bar,
.fed-progress {
    background: rgba(46, 46, 46, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill,
.fed-progress-fill {
    background: linear-gradient(90deg, #ff5b82 0%, #ff7a9e 100%);
    transition: width 0.3s ease;
}

/* 悬浮效果增强 */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 91, 130, 0.3);
}

/* 渐变边框效果 */
.gradient-border {
    position: relative;
    background: linear-gradient(135deg, rgba(46, 46, 46, 0.8) 0%, rgba(36, 36, 36, 0.8) 100%);
    border-radius: 12px;
}

.gradient-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff5b82 0%, #ff7a9e 100%);
    border-radius: 14px;
    z-index: -1;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .home-imgleft li>* {
        margin-bottom: 10px;
    }

    .vod-item,
    .item {
        margin-bottom: 15px;
    }
}
