/* 移动端头部 */
.mobile-header {
    background: #fff;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
}

.mobile-header .back-btn {
    position: absolute;
    left: 15px;
    color: #333;
    font-size: 18px;
}

.mobile-header h1 {
    font-size: 18px;
    margin: 0;
    flex: 1;
    text-align: center;
}

/* 移动端操作栏 */
.mobile-actions {
    background: #fff;
    padding: 12px 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    position: fixed;
    top: 49px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-actions .total-count {
    color: #666;
    font-size: 14px;
}

.mobile-actions .total-count span {
    color: #d95517;
    font-weight: bold;
    margin: 0 3px;
}

.mobile-actions .clear-all {
    font-size: 14px;
    padding: 5px 12px;
}

/* 移动端内容区域上边距 */
@media (max-width: 768px) {
    .col-md-9 {
        padding-top: 125px; /* 为两个固定头部留出空间：50px + 45px + 15px */
    }

}

/* PC端头部 */
.pc-header {
    margin-top: 15px;
    background: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-header h2 {
    font-size: 20px;
    margin: 0;
    color: #333;
}

/* 移动端操作栏 */
.mobile-actions {
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    text-align: right;
}

/* 清除按钮 */
.clear-all {
    color: #d95517;
    border-color: #d95517;
}

.clear-all:hover {
    background: #d95517;
    border-color: #d95517;
    color: #fff;
}

/* 收藏列表 */
.collection-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
   
}

/* 商品项 */
.product-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-img {
    position: relative;
    padding-top: 100%;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info {
    padding: 15px;
    position: relative;
}

.product-title {
    font-size: 14px;
    margin: 0 0 10px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
    height: 40px;
}

.product-price {
    color: #d95517;
    font-size: 18px;
    font-weight: bold;
}

.delete-btn {
    position: absolute;
    right: 15px;
    bottom: 15px;
    padding: 4px 8px;
    color: #d95517;
    border-color: #d95517;
}

.delete-btn:hover {
    background: #d95517;
    border-color: #d95517;
    color: #fff;
}

/* PC端分页 */
.pagination-pc {
    justify-content: flex-end;
    margin-top: 30px;
}

.pagination .page-link {
    color: #666;
    border-color: #ddd;
}

.pagination .page-item.active .page-link {
    background-color: #d95517;
    border-color: #d95517;
    color: #fff;
}

.pagination .page-link:hover {
    color: #d95517;
    background-color: #fff;
    border-color: #d95517;
}

.pagination .page-item.active .page-link:hover {
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .collection-list {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0;
    }

    .product-item {
        display: flex;
        align-items: center;
        background: #fff;
        padding: 10px;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    }

    .product-img {
        width: 100px;
        height: 100px;
        padding-top: 0;
        flex-shrink: 0;
        border-radius: 4px;
        overflow: hidden;
    }

    .product-info {
        flex: 1;
        padding: 0 10px 0 15px;
        display: flex;
        flex-direction: column;
        min-height: 100px;
        position: relative;
    }

    .product-title {
        font-size: 14px;
        line-height: 1.4;
        height: auto;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        color: #333;
    }

    .product-price {
        color: #d95517;
        font-size: 16px;
        font-weight: bold;
        margin-bottom: 8px;
    }

    .delete-btn {
        position: absolute;
        right: 0;
        bottom: 0;
        padding: 4px 8px;
        font-size: 12px;
    }

    .delete-btn .fas {
        margin-right: 0;
    }

    /* 加载更多按钮样式优化 */
.load-more {
    padding: 10px;
}

.load-more .btn {
    border-radius: 4px;
    padding: 8px 0;
    font-size: 14px;
    border: none;
    background: #f5f5f5;
    color: #666;
}

.load-more .btn:hover {
    background: #eee;
    color: #d95517;
}
}
.browse-time {
    font-size: 14px;
    color: #999;
    margin-bottom: 8px;
}