/* ========================================
   3. 通用资源卡片（匹配 .resource-item 结构）
   ======================================== */
.resource-item {
    background-color: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    color: #fff;
    transition: transform 0.2s ease;
    margin-bottom: 10px;
}

.resource-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 封面图容器 - 恢复显示 */
.resource-cover-link {
    position: relative;
    display: block;
}

.resource-cover {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

/* 分类标签 - 隐藏（按你之前的需求） */
.resource-type {
    display: none !important;
}

/* 信息区 - 恢复原有上下结构，只调整内边距 */
.resource-info {
    padding: 8px 10px;
    width: 100%;
    box-sizing: border-box;
}

.resource-title-link {
    display: block;
}

/* 标题：单行省略（按你要求） */
.resource-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    width: 100%;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
    /* 删掉多行省略，只保留单行逻辑 */
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
}

/* 描述：两行省略（按你要求） */
.resource-desc {
    font-size: 11px;
    color: #888;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.6;
    max-height: 3.2em;
    min-height: 3.2em;
    word-break: break-all; /* 新增：允许在单词中间断行 */
}

/* 统计行：Flex布局，头像左、统计右 */
.resource-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #888;
    font-size: 10px;
    margin-bottom: 0; /* 取消底部间距 */
}

/* 小头像容器 - 新增：缩到极小 */
.stats-avatar {
    width: 20px; /* 小头像尺寸，可按需调 */
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}
.stats-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 统计数字区 - 右对齐 */
.stats-text {
    text-align: right;
}

/* 查看详情按钮 - 隐藏 */
.resource-detail {
    display: none !important;
}