/**
 * 用户详情页系统样式
 */

/* 用户头像链接 */
.xnforums-user-avatar-link {
    display: inline-block;
    cursor: pointer;
    transition: opacity 0.2s;
}

.xnforums-user-avatar-link:hover {
    opacity: 0.8;
}

/* 用户名链接 */
.xnforums-username-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}

.xnforums-username-link:hover {
    color: #1890ff;
    text-decoration: underline;
}

/* 资料链接包装器 */
.xnforums-user-profile-link-wrapper {
    margin-top: 5px;
}

.xnforums-profile-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    background: #f0f0f0;
    border-radius: 4px;
    color: #333;
    text-decoration: none;
    font-size: 12px;
    transition: all 0.2s;
}

.xnforums-profile-link:hover {
    background: #1890ff;
    color: white;
}

.xnforums-profile-link .profile-icon {
    font-size: 14px;
}

/* 用户统计信息 */
.user-stats {
    display: inline-block;
    padding: 2px 8px;
    background: #f5f5f5;
    border-radius: 3px;
    font-size: 12px;
    color: #666;
}

/* 用户资料模态框（可选，用于网页端显示） */
.xnforums-user-profile-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.xnforums-user-profile-modal.active {
    display: flex;
}

.xnforums-user-profile-content {
    background: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.xnforums-user-profile-header {
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    align-items: center;
    gap: 15px;
}

.xnforums-user-profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

.xnforums-user-profile-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.xnforums-user-profile-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.xnforums-user-profile-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.xnforums-user-profile-close:hover {
    color: #333;
}

.xnforums-user-profile-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.xnforums-user-profile-stat {
    text-align: center;
}

.xnforums-user-profile-stat-value {
    display: block;
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.xnforums-user-profile-stat-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.xnforums-user-profile-actions {
    padding: 15px 20px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    gap: 10px;
}

.xnforums-user-profile-btn {
    flex: 1;
    padding: 8px 16px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.xnforums-user-profile-btn:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.xnforums-user-profile-btn.primary {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
}

.xnforums-user-profile-btn.primary:hover {
    background: #40a9ff;
}

.xnforums-user-profile-tabs {
    display: flex;
    border-bottom: 1px solid #e8e8e8;
}

.xnforums-user-profile-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.xnforums-user-profile-tab:hover {
    color: #1890ff;
}

.xnforums-user-profile-tab.active {
    color: #1890ff;
    border-bottom-color: #1890ff;
}

.xnforums-user-profile-tab-content {
    padding: 20px;
}

.xnforums-user-profile-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.xnforums-user-profile-item:last-child {
    border-bottom: none;
}

.xnforums-user-profile-item-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 5px;
}

.xnforums-user-profile-item-content {
    font-size: 13px;
    color: #666;
    margin-bottom: 5px;
}

.xnforums-user-profile-item-meta {
    font-size: 12px;
    color: #999;
}

.xnforums-user-profile-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.xnforums-user-profile-error {
    text-align: center;
    padding: 40px;
    color: #f5222d;
}

.xnforums-user-profile-empty {
    text-align: center;
    padding: 40px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .xnforums-user-profile-content {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    
    .xnforums-user-profile-stats {
        flex-wrap: wrap;
    }
    
    .xnforums-user-profile-stat {
        width: 50%;
        margin-bottom: 10px;
    }
}

