/* 用户中心页面专属样式 */
.jm-user-layout {
    position: relative;
    min-height: 100vh;
}

/* 用户资料头部 */
.jm-profile-header {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

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

.jm-user-avatar {
    transition: all 0.3s ease;
    position: relative;
}

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

.jm-user-level {
    animation: levelPulse 2s ease-in-out infinite;
}

@keyframes levelPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
    }
}

/* 用户统计动画 */
.jm-user-stats > div:first-child {
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: userStatsCounter 2s ease-out;
}

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

/* 收藏项目样式 */
.jm-favorite-item {
    transition: all 0.3s ease;
    position: relative;
}

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

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

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

.jm-favorite-item:hover .jm-favorite-cover img {
    transform: scale(1.1);
}

.jm-reading-progress {
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

/* 历史记录样式 */
.jm-history-item {
    transition: all 0.3s ease;
    position: relative;
}

.jm-history-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.jm-progress-bar {
    transition: all 0.3s ease;
}

.jm-history-item:hover .jm-progress-bar {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* 作者卡片样式 */
.jm-author-card {
    transition: all 0.3s ease;
    position: relative;
}

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

.jm-author-avatar {
    transition: all 0.3s ease;
}

.jm-author-card:hover .jm-author-avatar {
    transform: scale(1.1) rotate(5deg);
}

.jm-latest-update {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: updatePulse 3s ease-in-out infinite;
}

@keyframes updatePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* 设置表单样式 */
.jm-settings-form {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.jm-settings-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.2);
}

.jm-form-group input,
.jm-form-group textarea {
    transition: all 0.3s ease;
}

.jm-form-group input:focus,
.jm-form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.3);
}

/* 开关按钮样式 */
.jm-switch {
    transition: all 0.3s ease;
}

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

/* 收藏网格动画 */
.jm-favorites-grid > div {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUpFavorite 0.6s ease forwards;
}

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

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

/* 历史记录动画 */
.jm-history-list > div {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeftHistory 0.6s ease forwards;
}

.jm-history-list > div:nth-child(1) { animation-delay: 0.1s; }
.jm-history-list > div:nth-child(2) { animation-delay: 0.2s; }
.jm-history-list > div:nth-child(3) { animation-delay: 0.3s; }

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

/* 订阅网格动画 */
.jm-subscriptions-grid > div {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleInSubscription 0.6s ease forwards;
}

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

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

/* 响应式设计 */
@media (max-width: 768px) {
    .jm-user-avatar > div {
        width: 6rem;
        height: 6rem;
    }
    
    .jm-user-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .jm-tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .jm-tab-btn {
        width: 100%;
    }
    
    .jm-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}