
/* 页面容器 */
.like-page {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px;
    margin-top: -10px;
}

/* 页面标题 */
.page-header {
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eaeaea;
}

.page-title {
    font-size: 24px;
    font-weight: 600;
    color: #222;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-title i {
    color: #ff4757;
}

.collection-count {
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}



/* 网格布局容器 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 电脑端2列 */
    gap: 20px;
}

/* 内容卡片样式 - 横向布局 */
.content-card {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    height: 160px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.content-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

/* 卡片图片容器 */
.card-img-container {
    width: 45%;
    min-width: 120px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 右下角爱心图标 */
.heart-corner {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4757;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* 卡片文字区域 */
.card-info {
    flex: 1;
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    min-width: 0; /* 防止内容溢出 */
}

/* 标题文字 - 修复显示问题 */
.card-title {
    color: #616161;
    margin-bottom: 12px;
    line-height: 1.4;
    
    /* 确保标题占据正确空间 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    max-height: 44px; /* 2行高度：16px * 1.4 * 2 ≈ 44.8px */
    min-height: 44px; /* 确保最小高度 */
    flex-shrink: 0;
    margin-top: 8px;
}

/* 信息区域 */
.card-meta {
    /* margin-bottom: 8px; */
    flex-shrink: 0;
}

.card-episode {
    background-color: #f1f3f5;
    color: #616161;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 500;
}

/* 标签区域 */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 68px;
    margin-bottom: 10px;
    flex-shrink: 0;
    margin-top: 8px;
}

.tag {
    font-size: 12px;
    color: #666;
    background-color: #f8f9fa;
    padding: 3px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.tag.hd {
    color: #1e90ff;
    background-color: #e8f4ff;
}

/* 底部操作区域 */
.card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    flex-shrink: 0;
    /* color: #1e90ff; */
    background-color: #e8f4ff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 8px;
}

/* 收藏时间 */
.collect-time {
    font-size: 12px;
    color: #aaa;
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ddd;
}

.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

.empty-state .subtext {
    font-size: 14px;
    color: #aaa;
}
 

/* 响应式适配 */
/* 平板设备 - 2列 */
@media (max-width: 992px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .content-card {
        height: 150px;
    }
    
    .card-title {
        font-size: 15px;
    }
    .card-tags {
        gap: 275px;
    }
}

/* 手机设备 - 1列 */
@media (max-width: 768px) {
    .like-page {
        padding: 15px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .content-card {
        height: 140px;
    }
    
    .card-info {
        padding: 14px;
    }
    
    .page-title {
        font-size: 20px;
    }
    
    .card-title {
        font-size: 15px;
        max-height: 22px;
        min-height: 22px;
    }

    .card-tags {
        gap: 188px;
    }
 
}

/* 小手机设备 */
@media (max-width: 480px) {
    .content-card {
        height: 130px;
    }
    
    .card-img-container {
        width: 40%;
        min-width: 100px;
    }
    
    .card-info {
        padding: 8px;
        /* padding-left: 8px; */
    }
    
    .card-title {
        font-size: 14px;
        max-height: 38px;
        min-height: 38px;
        margin-bottom: 8px;
        margin-top: 0;
    }
    
    .card-episode {
        font-size: 12px;
        padding: 3px 8px;
        margin-bottom: 6px;
        /* margin-bottom: 8px; */
        margin-top: 6px;
    }
    
    .card-tags {
        margin-bottom: 8px;
        gap: 71px;
    }
    
    .tag {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .heart-corner {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .collect-time {
        font-size: 11px;
    }
}