.grsc{
    display: flex;
    justify-content: space-between;
}
.collect-head {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:16px;
}
.batch-btn {
    border:1px solid #ccc;
    background:#fff;
    padding:4px 10px;
    cursor:pointer;
    font-size:13px;
}
.batch-btn.active {
    background:#dd2222;
    color:#fff;
    border-color:#dd2222;
}
.batch-bar {
    display: none;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: #fff7f0;
    border: 1px dashed #dd2222;
    border-radius: 4px;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}
.batch-bar.show {
    display: flex;
}
.batch-ops {
    display:flex;
    gap:10px;
}
.batch-bar button {
    padding:4px 12px;
    border:1px solid #ddd;
    background:#fff;
    cursor:pointer;
    font-size:13px;
    border-radius:3px;
}
/* 商品网格 */
.goods-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap:16px;
}
.goods-item {
    border:1px solid #eee;
    overflow:hidden;
    background:#fff;
    width: 100%;
}
.goods-img-box {
    position:relative;
}
.goods-img {
    width:100%;
    object-fit:contain;
    background:#f8f8f8;
    display:block;
}
/* 右上角方形勾选框，默认隐藏，批量模式才显示 */
.goods-checkbox {
    display: none;
    position: absolute;
    top: 10px;
    right: 10px;
    width: 18px;
    height: 18px;
    border-radius: 3px;
    background: #888;
    color: #fff;
    font-size: 12px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    z-index: 3;
}
.goods-grid.batch-mode .goods-checkbox {
    display: block;
}
.goods-checkbox.unchecked {
    background: #888;
    color: transparent;
}
.goods-checkbox.checked {
    background: #1677ff;
    color: #fff;
}
/* 勾选蒙层 */
.goods-item.checked .goods-img-box::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(22, 119, 255, 0.12);
    pointer-events: none;
}
/* 取消收藏：默认隐藏，鼠标悬浮图片盒子才显示 */
.cancel-collect {
    display: none;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    text-align: center;
    font-size: 13px;
    padding: 3px 0;
    cursor: pointer;
    z-index:2;
}
.goods-img-box:hover .cancel-collect{
    display:block;
}
.goods-info {
    padding:8px;
    width: calc(100% - 1px);
}
.goods-name {
    font-size:16px;
    line-height:1.4;
    margin-bottom:4px;
    width: 100%;
}
.goods-price {
    font-size:16px;
    color:#dd2222;
}
/* 分页 */
.page-wrap {
    width: 80%;
    position: absolute;
    left: 50%;
	transform: translateX(-50%);
    text-align:center;
    font-size:16px;
    bottom: 80px;
    margin-bottom: 0;
    margin-top: 0;
}
.page-wrap button,
.page-wrap input {
    padding:3px 8px;
    margin:0 3px;
}
.page-wrap input {
    width:40px;
}
.content-right{
    background-color: #fff;
    border-radius: 5px;
    padding: 15px;
    position: relative;
}
/* 标题文字 */
.collect-head h3 {
    margin: 0;
    font-size: 18px;
}
/* 商品名称单行省略 */
.goods-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* 收藏空态 */
.collect-empty {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 15px;
}
.collect-empty a {
    color: #dd2222;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
}