/* ========== 促销商品页（促销专区） ========== */
/* 页面结构：左侧分类菜单 + 右侧促销横幅 / 商品网格 / 分页 */

/* 页头标识：logo 右侧的「促销商品」（分隔线 + 文字） */
.header-main .logo {
    width: auto;
    display: flex;
    align-items: center;
}

.logo-label,
.logo-label-inner {
    display: inline-flex;
    align-items: center;
    margin-left: 12px;
}

.logo-label .fengexian,
.logo-label-inner .fengexian {
    width: 1px;
    height: 18px;
    background: #ddd;
    margin: 0 10px;
}

.logo-label .fot,
.logo-label-inner .fot {
    font-style: normal;
    font-size: 16px;
    color: #333;
}

.pro-wrap {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 150px;
    margin-bottom: 40px;
}

.pro-left {
    width: 200px;
    flex: none;
}

.pro-main {
    flex: 1;
    min-width: 0;
}

/* ---------- 促销横幅 ---------- */
.sale-banner {
    background: linear-gradient(135deg, #e6212a, #ff7a59);
    border-radius: 6px;
    color: #fff;
    padding: 20px 26px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.sale-title {
    font-size: 24px;
    font-weight: bold;
}

.sale-title small {
    font-size: 14px;
    font-weight: normal;
    opacity: .9;
    margin-left: 10px;
}

.sale-count {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
}

.sale-count b {
    background: rgba(255, 255, 255, .25);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 20px;
}

/* ---------- 促销商品网格 ---------- */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.promo-card {
    border: 1px solid #eee;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s;
}

.promo-card:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
}

.promo-card img {
    width: 100%;
    height: 210px;
    object-fit: contain;
    display: block;
    background: #fff;
}

/* 促销角标（折扣 / 直降） */
.tag-corner {
    position: absolute;
    left: 0;
    top: 0;
    color: #fff;
    font-size: 13px;
    padding: 3px 9px;
    border-radius: 0 0 6px 0;
    z-index: 2;
}

.tag-corner.sale-tag {
    background: #ff6a00;
}

.tag-corner.off-tag {
    background: #666;
}

.promo-info {
    padding: 8px 10px 12px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    height: 40px;
    color: #333;
    text-decoration: none;
}

.promo-name:hover {
    color: #e6212a;
}

/* 促销价行：促销价 + 划线原价 */
.promo-price {
    margin-top: 8px;
}

.promo-price .sale-price {
    color: #f40;
    font-size: 18px;
    font-weight: bold;
    margin-right: 8px;
}

.promo-price .old-price {
    color: #999;
    font-size: 13px;
    text-decoration: line-through;
}

/* 立即购买按钮 */
.goods-buy {
    margin-top: 10px;
    width: 100%;
    padding: 7px 0;
    background: #e6212a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    display: block;
    text-align: center;
    box-sizing: border-box;
}

.goods-buy:hover {
    background: #c91820;
    color: #fff;
}

.promo-empty {
    padding: 60px 10px;
    text-align: center;
    color: #999;
    font-size: 15px;
}

/* ---------- 分页 ---------- */
.page-wrap {
    text-align: center;
    margin-top: 25px;
}

.page-wrap a,
.page-wrap span {
    display: inline-block;
    min-width: 34px;
    height: 32px;
    line-height: 30px;
    padding: 0 10px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #fff;
    color: #555;
    font-size: 13px;
    border-radius: 3px;
}

.page-wrap a:hover {
    border-color: #e6212a;
    color: #e6212a;
}

.page-wrap a.active {
    background: #e6212a;
    border-color: #e6212a;
    color: #fff;
}

.page-wrap span.disabled {
    color: #ccc;
    border-color: #eee;
    background: #fafafa;
}

.page-wrap span.total {
    border: none;
    background: none;
    color: #999;
    margin-left: 10px;
}
