/* ===========================================================================
 * SYHUO 门户模板 (index_portal) 样式
 * 设计：实拍大图 + 纯色品牌块，无渐变、无荧光、克制留白
 * 品牌橙 #ff6700 / 深炭灰 #2c2c2c / 价格红 #e4393c / 背景 #f5f6f8
 * =========================================================================== */

body {
    background: #f5f6f8;
    font-size: 14px;
    color: #333;
}

/* 容器：宽版 1400px，移动端自适应收缩 */
.portal-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ---------------------------------------------------------------------------
 * Hero 大横幅：左侧橙色品牌块 + 右侧实拍图
 * ------------------------------------------------------------------------- */
.portal-hero {
    display: flex;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
    background: #ff6700;
}
.portal-hero-left {
    width: 440px;
    flex-shrink: 0;
    background: #ff6700;
    padding: 52px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.portal-hero-title {
    color: #fff;
    font-size: 34px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 1px;
}
.portal-hero-sub {
    color: rgba(255, 255, 255, .88);
    font-size: 15px;
    margin-top: 14px;
    line-height: 1.6;
}
.portal-hero-search {
    display: flex;
    margin-top: 34px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}
.portal-hero-search input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 16px;
    height: 48px;
    font-size: 14px;
    color: #333;
    min-width: 0;
}
.portal-hero-search button {
    border: none;
    background: #2c2c2c;
    color: #fff;
    width: 76px;
    height: 48px;
    cursor: pointer;
    font-size: 17px;
    transition: background .15s;
}
.portal-hero-search button:hover {
    background: #444;
}
.portal-hero-right {
    flex: 1;
    position: relative;
    min-width: 0;
}
.portal-hero-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.portal-hero-dots {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}
.portal-hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .55);
}
.portal-hero-dots span.active {
    background: #fff;
    width: 22px;
    border-radius: 4px;
}

/* ---------------------------------------------------------------------------
 * 分类快捷入口：6 个实拍缩略图卡片
 * ------------------------------------------------------------------------- */
.portal-cats {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-top: 24px;
}
.portal-cat-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.portal-cat-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}
.portal-cat-img {
    height: 108px;
    overflow: hidden;
}
.portal-cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.portal-cat-card:hover .portal-cat-img img {
    transform: scale(1.05);
}
.portal-cat-label {
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}
.portal-cat-label .cat-tag {
    display: inline-block;
    width: 6px;
    height: 14px;
    border-radius: 2px;
    background: #ff6700;
    flex-shrink: 0;
}
.portal-cat-label .cat-desc {
    margin-left: auto;
    font-size: 12px;
    font-weight: 400;
    color: #999;
}

/* ---------------------------------------------------------------------------
 * 区块标题栏：深炭灰底（与页脚同色系）
 * ------------------------------------------------------------------------- */
.portal-section-head {
    background: #2c2c2c;
    color: #fff;
    padding: 13px 22px;
    border-radius: 8px 8px 0 0;
    margin-top: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.portal-section-head h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.portal-section-head h3::before {
    content: '';
    width: 4px;
    height: 18px;
    background: #ff6700;
    border-radius: 2px;
}
.portal-section-head .more {
    color: rgba(255, 255, 255, .65);
    font-size: 13px;
    text-decoration: none;
}
.portal-section-head .more:hover {
    color: #ff6700;
}

/* ---------------------------------------------------------------------------
 * 商品网格：4 列实拍卡片
 * ------------------------------------------------------------------------- */
.portal-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding-top: 16px;
}
.portal-prod-card {
    display: block;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ececec;
    text-decoration: none;
    transition: box-shadow .2s, transform .2s;
}
.portal-prod-card:hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
    transform: translateY(-3px);
}
.portal-prod-img {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: #f0f0f0;
}
.portal-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s;
}
.portal-prod-card:hover .portal-prod-img img {
    transform: scale(1.04);
}
.portal-prod-img .prod-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #e4393c;
    color: #fff;
    font-size: 12px;
    padding: 2px 9px;
    border-radius: 4px;
}
.portal-prod-info {
    padding: 12px 14px 16px;
}
.portal-prod-name {
    font-size: 14px;
    color: #333;
    line-height: 1.45;
    height: 41px;
    overflow: hidden;
}
.portal-prod-price {
    margin-top: 8px;
    color: #e4393c;
    font-size: 21px;
    font-weight: 700;
}
.portal-prod-price em {
    font-style: normal;
    font-size: 13px;
    margin-right: 1px;
}
.portal-prod-price .orig {
    color: #999;
    font-size: 13px;
    font-weight: 400;
    text-decoration: line-through;
    margin-left: 7px;
}
.portal-prod-sales {
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}

/* ---------------------------------------------------------------------------
 * 响应式：平板 3/2 列，手机 2 列 + Hero 竖排
 * ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .portal-products {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 992px) {
    .portal-cats {
        grid-template-columns: repeat(3, 1fr);
    }
    .portal-products {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-hero {
        flex-direction: column;
    }
    .portal-hero-left {
        width: 100%;
        padding: 36px 26px;
    }
    .portal-hero-title {
        font-size: 26px;
    }
    .portal-hero-right {
        height: 240px;
    }
}
@media (max-width: 576px) {
    .portal-cats {
        grid-template-columns: repeat(2, 1fr);
    }
    .portal-hero-title {
        font-size: 22px;
    }
    .portal-hero-search input {
        height: 44px;
    }
    .portal-hero-search button {
        height: 44px;
        width: 64px;
    }
    .portal-prod-img {
        height: 160px;
    }
}
