
/* 容器：更加疏松的间距 */
.YXYH-pc-widget-user-rows .user-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    counter-reset: user-rank; /* 启用计数器 */
}

/* 卡片主体：悬浮感 */
.YXYH-pc-widget-user-rows .user-card {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    /* 初始状态：轻微阴影 */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03), 0 1px 2px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* 有弹性的过渡 */
    overflow: hidden; /* 为了排名数字的背景效果 */
}

/* Hover 交互：上浮 + 阴影加深 */
.YXYH-pc-widget-user-rows .user-card:hover {
    transform: translateY(-3px) scale(1.005);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
    z-index: 10;
    border-color: rgba(0,0,0,0.0);
}

/* 排名数字 (CSS Counter) - 增加趣味性 */
.YXYH-pc-widget-user-rows .user-card::before {
    counter-increment: user-rank;
    content: counter(user-rank);
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%) rotate(-15deg);
    font-size: 60px;
    font-weight: 900;
    color: rgba(0,0,0,0.02); /* 极淡的背景水印效果 */
    font-family: 'Impact', sans-serif;
    z-index: 0;
    pointer-events: none;
    line-height: 1;
}

/* 前三名给一点特殊待遇（可选，这里用微弱的颜色区分） */
.YXYH-pc-widget-user-rows .user-card:nth-child(1)::before { color: rgba(255, 215, 0, 0.1); } /* 金 */
.YXYH-pc-widget-user-rows .user-card:nth-child(2)::before { color: rgba(192, 192, 192, 0.1); } /* 银 */
.YXYH-pc-widget-user-rows .user-card:nth-child(3)::before { color: rgba(205, 127, 50, 0.1); } /* 铜 */


/* 左侧区域：头像 */
.YXYH-pc-widget-user-rows .user-left {
    margin-right: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1; /* 保证在水印之上 */
}

.YXYH-pc-widget-user-rows .user-avatar-wrap {
    position: relative;
    width: 48px;
    height: 48px;
    /* 增加一个彩色的光晕/阴影，提升质感 */
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.YXYH-pc-widget-user-rows .user-avatar-wrap .avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%; /* 保持圆形，最经典 */
    object-fit: cover;
    display: block;
    background: #fff;
    border: 2px solid #fff; /* 白色内描边，突出头像 */
}

/* 认证图标 */
.YXYH-pc-widget-user-rows .user-avatar-wrap .verify-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    z-index: 2;
    background: #fff;
    border-radius: 50%;
    padding: 1px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.YXYH-pc-widget-user-rows .user-avatar-wrap .verify-icon img,
.YXYH-pc-widget-user-rows .user-avatar-wrap .verify-icon i {
    width: 14px;
    height: 14px;
    display: block;
}

/* 中间区域：信息 */
.YXYH-pc-widget-user-rows .user-center {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    z-index: 1;
}

.YXYH-pc-widget-user-rows .user-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.YXYH-pc-widget-user-rows .user-nickname {
    font-size: 15px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 0.01em;
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.YXYH-pc-widget-user-rows .user-desc {
    font-size: 13px;
    color: #94a3b8; /* 更现代的灰色 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

/* 右侧区域：时间胶囊 */
.YXYH-pc-widget-user-rows .user-right {
    margin-left: 12px;
    flex-shrink: 0;
    z-index: 1;
    display: flex;
    align-items: center;
}

.YXYH-pc-widget-user-rows .user-time {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

/* Hover 时时间胶囊变色 */
.YXYH-pc-widget-user-rows .user-card:hover .user-time {
    background: #e2e8f0;
    color: #475569;
}

/* 添加一个隐形的“前往”箭头，Hover时显现 */
.YXYH-pc-widget-user-rows .user-right::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid #cbd5e1;
    border-right: 2px solid #cbd5e1;
    transform: rotate(45deg);
    margin-left: 8px;
    transition: all 0.2s;
    opacity: 0.5;
}
.YXYH-pc-widget-user-rows .user-card:hover .user-right::after {
    border-color: #94a3b8;
    transform: rotate(45deg) translate(2px, -2px); /* 动效 */
    opacity: 1;
}

/* 空状态 */
.YXYH-pc-widget-user-rows .jinsom-empty {
    text-align: center;
    padding: 40px;
    color: #cbd5e1;
    font-size: 14px;
    background: #fff;
    border-radius: 12px;
    margin: 10px 15px;
    border: 1px dashed #e2e8f0;
}
