/* 个人主页样式 - 亲和风格 */
.profile-main {
    margin-top: var(--top-nav-height);
    margin-left: var(--sidebar-width);
    padding: 0;
    min-height: calc(100vh - var(--top-nav-height));
    background: linear-gradient(180deg, #EFF6FF 0%, #F0FDF4 50%, #F8FAFC 100%);
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .profile-main {
        margin-left: 0;
    }
}

.profile-header {
    position: relative;
}

.profile-bg {
    height: 220px;
    background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #10B981 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.profile-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.profile-info {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 30px 30px;
    display: flex;
    gap: 25px;
}

.profile-avatar {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 5px solid white;
    margin-top: -65px;
    object-fit: cover;
    background: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.2);
}

.profile-text {
    flex: 1;
    padding-top: 15px;
}

.profile-text h1 {
    font-size: 26px;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--text-primary);
}

.profile-text p {
    color: var(--text-secondary);
    margin-bottom: 10px;
    font-size: 15px;
}

.profile-meta {
    display: flex;
    gap: 25px;
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-2px);
}

.stat-num {
    display: block;
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.profile-actions {
    padding-top: 15px;
}

/* 社交统计栏 */
.social-stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 25px 20px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0;
}

.social-stat-item {
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    padding: 10px 25px;
    border-radius: var(--radius-md);
}

.social-stat-item:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #DBEAFE 0%, #D1FAE5 100%);
}

.social-stat-num {
    display: block;
    font-size: 26px;
    font-weight: 700;
    background: linear-gradient(135deg, #3B82F6 0%, #10B981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.social-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.btn-edit {
    padding: 10px 24px;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.btn-edit:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.15);
}

/* 内容Tab */
.content-tabs {
    display: flex;
    gap: 40px;
    padding: 0 25px;
    border-bottom: 1px solid var(--border-color);
    max-width: 900px;
    margin: 0 auto;
}

.tab-btn {
    padding: 18px 0;
    background: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s;
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    font-weight: 700;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6 0%, #10B981 100%);
    border-radius: 3px 3px 0 0;
}

.tab-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 25px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* 项目网格 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 25px;
}

.project-card-small {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.06);
}

.project-card-small:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(59, 130, 246, 0.12);
}

.project-card-small img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card-small .card-info {
    padding: 16px;
}

.project-card-small h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
}

.project-card-small .status {
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.status-0 { background: #FEF3C7; color: #D97706; }
.status-1 { background: #FEE2E2; color: #DC2626; }
.status-2 { background: #D1FAE5; color: #059669; }
.status-3 { background: #E5E7EB; color: #6B7280; }

/* 支持列表 */
.supports-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.support-item {
    display: flex;
    gap: 18px;
    padding: 18px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.06);
    transition: all 0.3s;
}

.support-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(5px);
}

.support-item img {
    width: 90px;
    height: 90px;
    border-radius: var(--radius-md);
    object-fit: cover;
}

.support-info {
    flex: 1;
}

.support-info h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.support-info p {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 15px;
}

.support-info span {
    font-size: 13px;
    color: var(--text-secondary);
}

/* 用户列表 */
.users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.user-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(59, 130, 246, 0.06);
    transition: all 0.3s;
}

.user-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.user-item img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid transparent;
    background: linear-gradient(white, white) padding-box,
                var(--gradient-primary) border-box;
}

.user-item-info {
    flex: 1;
}

.user-item-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.user-item-info p {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-follow, .btn-following, .btn-friend {
    padding: 10px 24px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-follow {
    background: var(--gradient-primary);
    color: white;
}

.btn-follow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.3);
}

.btn-following {
    background: var(--bg-color);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
}

.btn-following:hover {
    border-color: #DC2626;
    color: #DC2626;
}

.btn-friend {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
    color: white;
}

.btn-friend:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 56px;
    margin-bottom: 20px;
    opacity: 0.3;
    color: var(--primary-color);
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 16px;
}

.empty-state button {
    padding: 12px 36px;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

.empty-state button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* 类别申请状态 */
.status-approved {
    background: #D1FAE5;
    color: #047857;
}

.status-pending {
    background: #FEF3C7;
    color: #B45309;
}

.status-rejected {
    background: #FEE2E2;
    color: #991B1B;
}
