/* ===== 用户主页插件样式 ===== */
/* 兼容默认主题和 modern 主题 */

.up-container {
    margin: 0 auto;
    padding: 0 0 20px;
}

/* 用户信息卡片 */
.up-card {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.up-card-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 24px 20px;
}

.up-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-light, #f3f4f6);
}

.up-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.up-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light, #9ca3af);
    background: var(--bg-light, #f3f4f6);
}

.up-user-info {
    flex: 1;
    min-width: 0;
}

.up-username {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--text-dark, #111827);
    line-height: 1.3;
}

.up-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.up-badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
}

.up-badge-admin {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.up-meta {
    font-size: 13px;
    color: var(--text-light, #9ca3af);
}

.up-signature {
    padding: 0 24px 16px;
    font-size: 13px;
    color: var(--text-secondary, #6b7280);
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    line-height: 1.6;
}

/* 统计数据 */
.up-stats {
    display: flex;
    justify-content: space-around;
    padding: 16px 24px;
    background: var(--bg-light, #f9fafb);
    border-top: 1px solid var(--border-color, #e5e7eb);
}

.up-stat-item {
    text-align: center;
    min-width: 60px;
}

.up-stat-value {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color, #667eea);
    line-height: 1.3;
}

.up-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-light, #9ca3af);
    margin-top: 2px;
}

/* 内容区块 */
.up-section {
    background: var(--bg-white, #fff);
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.up-section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-dark, #111827);
}

.up-empty {
    text-align: center;
    padding: 30px 0;
    color: var(--text-light, #9ca3af);
    font-size: 14px;
}

/* 列表 */
.up-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.up-list-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color, #f3f4f6);
}

.up-list-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.up-list-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary-color, #667eea);
    text-decoration: none;
    line-height: 1.4;
}

.up-list-title:hover {
    text-decoration: underline;
}

.up-list-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-light, #9ca3af);
    flex-wrap: wrap;
}

.up-list-cat {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--bg-light, #f3f4f6);
    color: var(--text-secondary, #6b7280);
    font-size: 11px;
}

/* 响应式 */
@media (max-width: 640px) {
    .up-card-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 16px 16px;
    }

    .up-avatar {
        width: 64px;
        height: 64px;
    }

    .up-avatar-placeholder {
        font-size: 22px;
    }

    .up-username {
        font-size: 18px;
    }

    .up-badges {
        justify-content: center;
    }

    .up-stats {
        padding: 12px 8px;
    }

    .up-stat-value {
        font-size: 15px;
    }

    .up-section {
        padding: 16px;
    }
}

/* ===== 关注按钮 ===== */
.up-user-info-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.up-follow-form {
    flex-shrink: 0;
}

.up-btn-follow {
    display: inline-flex;
    align-items: center;
    padding: 5px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid var(--primary-color, #667eea);
    background: var(--primary-color, #667eea);
    color: #fff;
    transition: all 0.15s;
    line-height: 1.5;
}

.up-btn-follow:hover {
    opacity: 0.85;
}

.up-btn-following {
    background: #fff;
    color: var(--text-secondary, #6b7280);
    border-color: var(--border-color, #d1d5db);
}

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