/* 个人中心页面专属样式 */
.btcy-profile-layout {
    position: relative;
    min-height: 100vh;
}

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

.btcy-profile-header:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.2);
}

.btcy-profile-avatar {
    transition: all 0.3s ease;
    position: relative;
}

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

.btcy-level-badge {
    animation: levelPulse 2s ease-in-out infinite;
}

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

/* 统计数据动画 */
.btcy-profile-stats > div:first-child {
    font-family: 'Nunito', sans-serif;
    font-weight: 800;
    background: linear-gradient(45deg, currentColor, rgba(255, 255, 255, 0.8));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: profileStatsCounter 2s ease-out;
}

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

/* Tab导航样式 */
.btcy-tabs-nav {
    margin-bottom: 2rem;
}

.btcy-tab-btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.btcy-tab-btn:hover::before {
    left: 100%;
}

.btcy-tab-btn.active {
    transform: scale(1.05);
}

/* Tab内容区域 */
.btcy-tab-pane {
    opacity: 0;
    display: none;
    animation: fadeInTab 0.5s ease forwards;
}

.btcy-tab-pane.active {
    opacity: 1;
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.btcy-favorite-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.2);
}

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

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

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

.btcy-favorite-badge {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

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

.btcy-history-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(244, 114, 182, 0.2);
}

.btcy-history-item img {
    transition: all 0.3s ease;
}

.btcy-history-item:hover img {
    transform: scale(1.05);
}

/* 关注卡片样式 */
.btcy-following-card {
    transition: all 0.3s ease;
    position: relative;
}

.btcy-following-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(244, 114, 182, 0.2);
}

.btcy-creator-avatar {
    transition: all 0.3s ease;
}

.btcy-following-card:hover .btcy-creator-avatar {
    transform: scale(1.1) rotate(5deg);
}

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

.btcy-settings-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(244, 114, 182, 0.2);
}

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

.btcy-form-group input:focus,
.btcy-form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 114, 182, 0.3);
}

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

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

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

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

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

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

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

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

/* 关注网格动画 */
.btcy-following-grid > div {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleInFollowing 0.6s ease forwards;
}

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

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

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