﻿/* ===============================
   Products Channel Page
================================ */
.products-channel {
    color: #ffffff;
    overflow: visible;
}

.products-channel-head {
    margin-bottom: 42px;
}

    .products-channel-head span {
        display: block;
        margin-bottom: 10px;
        color: #00CFA9;
        font-size: 15px;
        line-height: 1.4;
        font-weight: 600;
        letter-spacing: .8px;
    }

    .products-channel-head h1 {
        margin: 0 0 16px 0;
        color: #ffffff;
        font-size: 2rem;
        line-height: 1.35;
        font-weight: 700;
        letter-spacing: 1px;
    }

    .products-channel-head p {
        max-width: 760px;
        margin: 0;
        color: rgba(255,255,255,.92);
        font-size: 16px;
        line-height: 1.65;
        letter-spacing: .3px;
    }


/* ===============================
   Main Layout
================================ */
.products-channel-main {
    display: flex;
    align-items: flex-start;
    gap: 42px;
    overflow: visible;
}

.products-channel-left {
    width: 300px;
    flex: 0 0 300px;
    overflow: visible;
}

.products-channel-right {
    flex: 1;
    min-width: 0;
}


/* ===============================
   Left Sticky Category
================================ */
.products-cat-side {
    position: -webkit-sticky;
    position: sticky;
    top: 125px;
    z-index: 5;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    padding: 28px 24px;
    box-sizing: border-box;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

    /* 美化左侧滚动条 */
    .products-cat-side::-webkit-scrollbar {
        width: 5px;
    }

    .products-cat-side::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.25);
        border-radius: 8px;
    }

    .products-cat-side::-webkit-scrollbar-track {
        background: rgba(255,255,255,.05);
    }

    .products-cat-side h2 {
        margin: 0 0 24px 0;
        color: #ffffff;
        font-size: 22px;
        line-height: 1.35;
        font-weight: 700;
        letter-spacing: .5px;
    }

.products-cat-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 46px;
    padding: 0;
    color: rgba(255,255,255,.92);
    font-size: 15px;
    line-height: 1.45;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
    transition: all .25s ease;
}

    .products-cat-nav a:last-child {
        border-bottom: none;
    }

    .products-cat-nav a span {
        display: block;
        padding-right: 12px;
    }

    .products-cat-nav a em {
        min-width: 48px;
        padding: 3px 10px;
        box-sizing: border-box;
        border-radius: 14px;
        background: rgba(255,255,255,.14);
        color: rgba(255,255,255,.78);
        font-size: 12px;
        line-height: 1.4;
        font-style: normal;
        text-align: center;
        transition: all .25s ease;
    }

    .products-cat-nav a:hover {
        color: #00CFA9;
        padding-left: 6px;
    }

        .products-cat-nav a:hover em {
            background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
            color: #ffffff;
        }


/* ===============================
   Right Category Group
================================ */
.products-cat-group {
    margin-bottom: 34px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
}

    .products-cat-group:last-child {
        margin-bottom: 0;
    }

.products-cat-title a {
    min-height: 64px;
    padding: 0 28px;
    box-sizing: border-box;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    display: flex;
    align-items: center;
    color: #ffffff;
    text-decoration: none;
}

    .products-cat-title a span {
        display: block;
        flex: 1;
        min-width: 0;
        padding-right: 18px;
        color: #ffffff;
        font-size: 21px;
        line-height: 1.35;
        font-weight: 700;
        letter-spacing: .4px;
    }

    .products-cat-title a em {
        margin-right: 20px;
        padding: 5px 14px;
        border-radius: 16px;
        background: rgba(255,255,255,.22);
        color: #ffffff;
        font-size: 13px;
        line-height: 1.4;
        font-style: normal;
    }

    .products-cat-title a i {
        font-size: 18px;
        transition: all .25s ease;
    }

    .products-cat-title a:hover i {
        transform: translateX(5px);
    }


/* ===============================
   Sub Category List
   PC端改为2列，避免太挤
================================ */
.products-subcat-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 46px;
    padding: 24px 28px 28px 28px;
    box-sizing: border-box;
}

    .products-subcat-list a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 54px;
        color: rgba(255,255,255,.92);
        font-size: 16px;
        line-height: 1.45;
        text-decoration: none;
        border-bottom: 1px solid rgba(255,255,255,.1);
        transition: all .25s ease;
    }

        .products-subcat-list a span {
            display: block;
            padding-right: 18px;
        }

        .products-subcat-list a em {
            min-width: 44px;
            margin-left: auto;
            margin-right: 14px;
            color: rgba(255,255,255,.62);
            font-size: 12px;
            line-height: 1.4;
            font-style: normal;
            text-align: right;
        }

        .products-subcat-list a i {
            color: #00CFA9;
            font-size: 15px;
            transition: all .25s ease;
        }

        .products-subcat-list a:hover {
            color: #00CFA9;
            padding-left: 8px;
        }

            .products-subcat-list a:hover i {
                transform: translateX(4px);
            }


/* ===============================
   Mobile 768
================================ */
@media screen and (max-width: 768px) {

    .products-channel {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .products-channel-head {
        margin-bottom: 28px;
    }

        .products-channel-head span {
            margin-bottom: 8px;
            font-size: 14px;
        }

        .products-channel-head h1 {
            margin-bottom: 14px;
            font-size: 1.7rem;
            line-height: 1.4;
        }

        .products-channel-head p {
            max-width: 100%;
            font-size: 14px;
            line-height: 1.7;
        }

    .products-channel-main {
        display: block;
        gap: 0;
    }

    .products-channel-left {
        width: 100%;
        margin-bottom: 28px;
    }

    .products-channel-right {
        width: 100%;
    }

    /* 手机端不要悬浮，改成正常显示 */
    .products-cat-side {
        position: relative;
        top: auto;
        max-height: none;
        overflow: visible;
        padding: 22px 18px;
        border-radius: 8px;
    }

        .products-cat-side h2 {
            margin-bottom: 18px;
            font-size: 20px;
            line-height: 1.35;
        }

    .products-cat-nav {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

        .products-cat-nav a {
            min-height: 42px;
            padding: 0 14px;
            border: 1px solid rgba(255,255,255,.12);
            border-radius: 6px;
            background: rgba(255,255,255,.06);
            font-size: 14px;
            line-height: 1.45;
        }

            .products-cat-nav a:hover {
                padding-left: 14px;
            }

            .products-cat-nav a em {
                min-width: 42px;
                padding: 2px 8px;
                font-size: 12px;
            }

    .products-cat-group {
        margin-bottom: 24px;
        border-radius: 8px;
    }

    .products-cat-title a {
        min-height: 56px;
        padding: 0 18px;
    }

        .products-cat-title a span {
            padding-right: 12px;
            font-size: 17px;
            line-height: 1.4;
        }

        .products-cat-title a em {
            margin-right: 12px;
            padding: 4px 10px;
            font-size: 12px;
        }

        .products-cat-title a i {
            font-size: 16px;
        }

    .products-subcat-list {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 14px 18px 18px 18px;
    }

        .products-subcat-list a {
            min-height: 46px;
            font-size: 14px;
            line-height: 1.55;
        }

            .products-subcat-list a span {
                padding-right: 12px;
            }

            .products-subcat-list a em {
                min-width: 38px;
                margin-right: 10px;
                font-size: 12px;
            }

            .products-subcat-list a:hover {
                padding-left: 0;
            }
}


/* ===============================
   Sticky 失效时常见修复
   如果 about-section 或父级有 overflow:hidden，
   sticky 会失效，所以这里覆盖一下
================================ */
.about-section,
.products-channel,
.products-channel-main,
.products-channel-left {
    overflow: visible;
}


/* ===============================
   Products Left Fixed Nav Fix
   用 JS 控制左侧分类悬浮
================================ */
.products-channel-main {
    position: relative;
    overflow: visible !important;
}

.products-channel-left {
    position: relative;
    width: 300px;
    flex: 0 0 300px;
    overflow: visible !important;
}

.products-cat-side {
    position: relative;
    top: auto;
    z-index: 20;
}

    .products-cat-side.is-fixed {
        position: fixed !important;
        top: 90px;
        z-index: 999;
    }

    .products-cat-side.is-bottom {
        position: absolute !important;
        left: 0 !important;
        top: auto !important;
        bottom: 0 !important;
        z-index: 20;
    }

/* 防止父级影响 */
.about-section,
.products-channel,
.products-channel-main,
.products-channel-left {
    overflow: visible !important;
}

/* mobile */
@media screen and (max-width: 768px) {
    .products-channel-left {
        width: 100%;
        height: auto !important;
        flex: none;
    }

    .products-cat-side,
    .products-cat-side.is-fixed,
    .products-cat-side.is-bottom {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        z-index: 1;
    }
}