/* 我的收藏页面专用样式 - 提取自info.php小图模式 */

/* 收藏列表容器 */
.favorites-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* 收藏卡片 - 完全复制小图模式样式 */
.favorites-list .info-card-large {
    width: 360px;
    min-height: 165px;
    height: auto;
    margin: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
}

.favorites-list .info-card-large:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.favorites-list .info-card-large a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

/* 清除浮动容器 */
.favorites-list .info-card-large .cl {
    display: block;
    overflow: hidden;
}

/* 卡片图片样式 - 右浮动 */
.favorites-list .card-image {
    float: right;
    width: 99px;
    height: 132px;
    margin-top: 16px;
    margin-left: 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.favorites-list .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 卡片内容样式 - 左浮动 */
.favorites-list .card-content {
    float: left;
    width: 63%;
    padding: 0;
    height: 100%;
}

/* 卡片标题 */
.favorites-list .card-title {
    font-size: 16px;
    font-weight: normal;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 10px 0 0 15px;
}

/* 卡片元数据（日期+浏览量） */
.favorites-list .card-meta {
    color: #999;
    padding: 0 8px 8px 16px;
    font-size: 14px;
    overflow: hidden;
    line-height: 16px;
}

.favorites-list .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    float: left;
    margin-right: 8px;
    white-space: nowrap;
}

.favorites-list .card-meta .icon {
    width: 16px;
    height: 16px;
    fill: #999;
    flex-shrink: 0;
    margin-top: 1px;
}

/* 卡片描述 */
.favorites-list .card-description.small-mode-only {
    display: -webkit-box !important;
    font-size: 14px;
    color: #666;
    padding: 0 8px 0 16px;
    line-height: 21px;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-height: 43px;
    word-break: break-all;
}

/* 卡片位置信息（在最底部） */
.favorites-list .card-location {
    color: var(--theme-color, #f39);
    padding: 8px 8px 16px 16px;
    font-size: 14px;
    line-height: 16px;
    display: flex;
    align-items: center;
    gap: 3px;
}

.favorites-list .card-location .icon {
    width: 16px;
    height: 16px;
    fill: var(--theme-color, #f39);
    flex-shrink: 0;
}

/* 无收藏提示 */
.no-favorites {
    width: 100%;
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.no-favorites p {
    font-size: 16px;
    margin-bottom: 20px;
}

.browse-btn {
    display: inline-block;
    padding: 10px 20px;
    background: var(--theme-color, #ff1493);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.browse-btn:hover {
    background: var(--theme-color-dark, #e91e63);
}

/* 分页导航 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 30px 0;
    padding: 20px 0;
}

.page-btn {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #ccc;
}

.page-btn.current {
    background: var(--theme-color, #ff1493);
    color: white;
    border-color: var(--theme-color, #ff1493);
}

/* 页面标题 */
.page-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.page-header h2 {
    font-size: 18px;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: normal;
}

.favorites-count {
    font-size: 13px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .favorites-list .info-card-large {
        width: calc(50% - 5px);
    }
}

@media (max-width: 768px) {
    .favorites-list .info-card-large {
        width: 100%;
    }
    
    .favorites-list .card-image {
        width: 80px;
        height: 106px;
        margin-top: 12px;
        margin-left: 12px;
    }
    
    .favorites-list .card-content {
        width: calc(100% - 100px);
    }
    
    .favorites-list .card-title {
        font-size: 14px;
        padding: 8px 0 0 12px;
    }
    
    .favorites-list .card-meta {
        font-size: 12px;
        padding: 0 6px 6px 12px;
    }
    
    .favorites-list .card-description.small-mode-only {
        font-size: 13px;
        padding: 0 6px 0 12px;
        line-height: 18px;
        -webkit-line-clamp: 1;
    }
    
    .favorites-list .card-location {
        font-size: 13px;
        padding: 6px 6px 12px 12px;
    }
}

@media (max-width: 480px) {
    .favorites-list {
        gap: 8px;
    }
    
    .favorites-list .info-card-large {
        min-height: 140px;
    }
    
    .favorites-list .card-image {
        width: 70px;
        height: 93px;
        margin-top: 10px;
        margin-left: 10px;
    }
    
    .favorites-list .card-content {
        width: calc(100% - 85px);
    }
    
    .favorites-list .card-title {
        font-size: 13px;
        padding: 6px 0 0 10px;
    }
    
    .favorites-list .card-meta {
        font-size: 11px;
        padding: 0 5px 5px 10px;
    }
    
    .favorites-list .card-meta .icon {
        width: 14px;
        height: 14px;
    }
    
    .favorites-list .card-description.small-mode-only {
        font-size: 12px;
        padding: 0 5px 0 10px;
        line-height: 16px;
    }
    
    .favorites-list .card-location {
        font-size: 12px;
        padding: 5px 5px 10px 10px;
    }
    
    .favorites-list .card-location .icon {
        width: 14px;
        height: 14px;
    }
}
