/* 新作发布页面专属样式 */
.jm-releases-layout {
    position: relative;
    min-height: 100vh;
}

/* 新作卡片样式 */
.jm-release-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.jm-release-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 1rem;
    pointer-events: none;
}

.jm-release-card:hover::before {
    opacity: 1;
}

.jm-release-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(139, 92, 246, 0.3);
}

.jm-release-cover img {
    transition: all 0.4s ease;
    filter: brightness(0.9);
}

.jm-release-card:hover .jm-release-cover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.jm-release-overlay {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* 新作徽章动画 */
.jm-new-badge {
    animation: newBadgeGlow 2s ease-in-out infinite;
}

@keyframes newBadgeGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
    }
}

/* 发布时间标签 */
.jm-release-time {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: timeFlash 3s ease-in-out infinite;
}

@keyframes timeFlash {
    0%, 90%, 100% {
        opacity: 1;
    }
    95% {
        opacity: 0.7;
    }
}

/* 即将发布卡片 */
.jm-upcoming-card {
    transition: all 0.4s ease;
    position: relative;
}

.jm-upcoming-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.jm-countdown-badge {
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

/* 预览统计动画 */
.jm-preview-stats > div:first-child {
    background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: statsCount 2s ease-out;
}

@keyframes statsCount {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 本周新作卡片 */
.jm-weekly-card {
    transition: all 0.3s ease;
    position: relative;
}

.jm-weekly-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.jm-weekly-cover {
    position: relative;
    overflow: hidden;
}

.jm-weekly-cover img {
    transition: all 0.3s ease;
}

.jm-weekly-card:hover .jm-weekly-cover img {
    transform: scale(1.1);
}

.jm-weekly-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 热度指示器 */
.jm-weekly-card .text-green-400,
.jm-weekly-card .text-red-400,
.jm-weekly-card .text-blue-400 {
    animation: hotIndicator 2s ease-in-out infinite alternate;
}

@keyframes hotIndicator {
    from {
        opacity: 0.8;
    }
    to {
        opacity: 1;
        text-shadow: 0 0 10px currentColor;
    }
}

/* 进入动画序列 */
.jm-latest-grid > div {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUpRelease 0.8s ease forwards;
}

.jm-latest-grid > div:nth-child(1) { animation-delay: 0.1s; }
.jm-latest-grid > div:nth-child(2) { animation-delay: 0.3s; }
.jm-latest-grid > div:nth-child(3) { animation-delay: 0.5s; }

@keyframes fadeInUpRelease {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.jm-upcoming-grid > div {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeftUpcoming 0.8s ease forwards;
}

.jm-upcoming-grid > div:nth-child(1) { animation-delay: 0.2s; }
.jm-upcoming-grid > div:nth-child(2) { animation-delay: 0.4s; }

@keyframes slideInLeftUpcoming {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.jm-weekly-grid > div {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleInWeekly 0.6s ease forwards;
}

.jm-weekly-grid > div:nth-child(1) { animation-delay: 0.1s; }
.jm-weekly-grid > div:nth-child(2) { animation-delay: 0.2s; }
.jm-weekly-grid > div:nth-child(3) { animation-delay: 0.3s; }
.jm-weekly-grid > div:nth-child(4) { animation-delay: 0.4s; }

@keyframes scaleInWeekly {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .jm-release-cover {
        height: 12rem;
    }
    
    .jm-countdown-badge {
        padding: 1rem;
    }
    
    .jm-upcoming-card {
        flex-direction: column;
        text-align: center;
    }
    
    .jm-upcoming-card img {
        margin: 0 auto 1rem auto;
    }
}