/**
 * /portal/assets/css/m_category.css
 * 手机端类目落地页样式（企业级）
 *
 * 区块：
 * 1. 顶部活动 Banner
 * 2. 子类目导航
 * 3. 品牌区展位
 * 4. 活动区展位
 * 5. 商品列表 + 分页
 */

/* 全局 */
.m-category-page {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
    background-color: #fff;
    color: #333;
    padding-bottom: 60px; /* 预留底部导航空间 */
}

/* 顶部 Banner */
.promo-banner {
    width: 100%;
    height: 160px;
    overflow: hidden;
    position: relative;
}
.promo-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-pagination {
    position: absolute;
    bottom: 8px;
    left: 0;
    right: 0;
    text-align: center;
}

/* 子类目导航 */
.sub-category-nav {
    display: flex;
    overflow-x: auto;
    padding: 10px;
    background: #fafafa;
    border-bottom: 1px solid #eee;
}
.sub-category-nav::-webkit-scrollbar {
    display: none;
}
.sub-cat-link {
    flex: 0 0 auto;
    margin-right: 12px;
    text-align: center;
    font-size: 13px;
    color: #333;
}
.sub-cat-link img {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* 品牌区 */
.brand-area {
    padding: 12px;
    background: #fff;
}
.brand-area .section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}
.brand-list {
    display: flex;
    overflow-x: auto;
}
.brand-list::-webkit-scrollbar {
    display: none;
}
.brand-card {
    flex: 0 0 auto;
    width: 80px;
    margin-right: 12px;
    text-align: center;
}
.brand-card img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-bottom: 4px;
}
.brand-name {
    font-size: 13px;
    font-weight: 500;
}
.brand-desc {
    font-size: 12px;
    color: #999;
}

/* 活动区 */
.promotion-area {
    padding: 12px;
    background: #fff;
}
.promotion-area .section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}
.promo-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.promo-card {
    width: calc(50% - 5px);
    background: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
}
.promo-card img {
    width: 100%;
    height: 100px;
    object-fit: cover;
}
.promo-title {
    padding: 6px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}

/* 商品列表 */
.product-list {
    padding: 12px;
    background: #fff;
}
.product-list .section-title {
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 8px;
}
.sort-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
}
.sort-bar a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.sort-bar a.active {
    color: #e60012;
    font-weight: bold;
}
.product-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.product-card {
    width: calc(50% - 5px);
    background: #fafafa;
    border-radius: 8px;
    overflow: hidden;
    padding: 8px;
}
.product-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 6px;
}
.product-title {
    font-size: 13px;
    margin-top: 6px;
    color: #333;
    line-height: 1.4;
    height: 36px;
    overflow: hidden;
}
.product-price {
    font-size: 14px;
    font-weight: bold;
    color: #e60012;
    margin-top: 4px;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    padding: 12px;
}
.pagination a {
    margin: 0 4px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}
.pagination a.active {
    background: #e60012;
    color: #fff;
    border-color: #e60012;
}
