/* 个人中心样式 */
:root {
    --primary: #165DFF;
    --secondary: #36CFC9;
    --accent: #722ED1;
    --warning: #FF7D00;
    --success: #00B42A;
    --danger: #F53F3F;
}

/* 导航链接样式 */
.nav-link {
    transition: all 0.3s ease;
    position: relative;
}

.nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    background: white;
    border-radius: 0 2px 2px 0;
}

.nav-link:not(.active):hover {
    background-color: #f8fafc;
    transform: translateX(5px);
}

/* 统计卡片 */
.stats-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.stats-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(22, 93, 255, 0.1);
}

/* 表格样式 */
table {
    border-collapse: separate;
    border-spacing: 0;
}

th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    font-weight: 600;
    letter-spacing: 0.5px;
}

tr {
    transition: all 0.2s ease;
}

tr:hover {
    background-color: #f8fafc;
}

td {
    border-bottom: 1px solid #e2e8f0;
}

/* 标签样式 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #4a86ff 100%);
    color: white;
}

.tag-success {
    background: linear-gradient(135deg, var(--success) 0%, #34d399 100%);
    color: white;
}

.tag-accent {
    background: linear-gradient(135deg, var(--accent) 0%, #9d5bff 100%);
    color: white;
}

/* 进度条 */
.progress-bar {
    height: 8px;
    border-radius: 4px;
    background: #e2e8f0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.6s ease;
}

/* 用户头像 */
.avatar {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-card {
        padding: 1.5rem;
    }
    
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
}

/* 下拉菜单动画 */
.dropdown-menu {
    animation: dropdownFade 0.2s ease-out;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 彩色分隔线 */
.color-divider {
    height: 4px;
    background: linear-gradient(90deg, 
        var(--primary) 0%, 
        var(--secondary) 25%, 
        var(--accent) 50%, 
        var(--warning) 75%, 
        var(--success) 100%);
    border-radius: 2px;
    margin: 2rem 0;
}

/* 徽章动画 */
.badge {
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(22, 93, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(22, 93, 255, 0);
    }
}