﻿/* ==============================
   Product Channel Page
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.product-channel-page {
    width: 100%;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.product-channel-content {
    padding: 60px 0 80px;
}

/* 页面标题 */
.product-channel-title {
    text-align: center;
    margin-bottom: 34px;
}

    .product-channel-title h1 {
        margin: 0;
        font-size: 40px;
        line-height: 1.3;
        color: #222;
        font-weight: bold;
        position: relative;
        padding-bottom: 18px;
    }

        .product-channel-title h1::after {
            content: "";
            width: 70px;
            height: 4px;
            border-radius: 4px;
            background: #004ac5;
            position: absolute;
            left: 50%;
            bottom: 0;
            margin-left: -35px;
        }

    .product-channel-title p {
        margin: 14px auto 0;
        max-width: 760px;
        color: #777;
        font-size: 15px;
        line-height: 28px;
    }

/* 搜索框 */
.product-channel-search {
    width: 760px;
    margin: 0 auto 46px;
    background: #fff;
    border: 1px solid #dfe6f5;
    border-radius: 999px;
    padding: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 14px 38px rgba(0, 74, 197, .1);
}

    .product-channel-search input {
        flex: 1;
        height: 50px;
        border: none;
        outline: none;
        padding: 0 22px;
        box-sizing: border-box;
        color: #333;
        font-size: 15px;
        background: transparent;
    }

        .product-channel-search input::placeholder {
            color: #999;
        }

    .product-channel-search button {
        width: 150px;
        height: 50px;
        border: none;
        border-radius: 999px;
        background: #004ac5;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: all .25s ease;
    }

        .product-channel-search button:hover {
            background: #e27a1f;
            box-shadow: 0 10px 24px rgba(226, 122, 31, .28);
        }


/* ==============================
   产品一级分类图文卡片
   一排4个
============================== */

.product-category-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* 分类卡片 */
.product-category-item {
    display: block;
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 74, 197, .07);
    transition: all .28s ease;
}

    .product-category-item:hover {
        transform: translateY(-6px);
        border-color: #004ac5;
        box-shadow: 0 18px 42px rgba(0, 74, 197, .14);
    }

/* 分类图片区域 */
.product-category-img {
    width: 100%;
    height: 150px;
    overflow: hidden;
    background: #fff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    border-bottom: 1px solid #f0f3fa;
}

    .product-category-img img {
        max-width: 82%;
        max-height: 92px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        transition: all .35s ease;
    }

.product-category-item:hover .product-category-img img {
    transform: scale(1.06);
}

/* 分类文字 */
.product-category-info {
    padding: 22px 24px 24px;
    position: relative;
}

    .product-category-info::before {
        content: "";
        width: 46px;
        height: 4px;
        border-radius: 4px;
        background: #004ac5;
        position: absolute;
        left: 24px;
        top: 0;
    }

    .product-category-info h2 {
        margin: 0 0 12px;
        font-size: 20px;
        line-height: 1.4;
        color: #222;
        font-weight: bold;
        transition: all .25s ease;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.product-category-item:hover .product-category-info h2 {
    color: #e27a1f;
}

.product-category-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 26px;
    height: 52px;
    overflow: hidden;
}

.product-category-info span {
    display: inline-flex;
    align-items: center;
    margin-top: 18px;
    color: #004ac5;
    font-size: 14px;
    font-weight: bold;
    transition: all .25s ease;
}

    .product-category-info span::after {
        content: "→";
        margin-left: 8px;
        font-size: 16px;
        transition: all .25s ease;
    }

.product-category-item:hover .product-category-info span {
    color: #e27a1f;
    padding-left: 6px;
}

    .product-category-item:hover .product-category-info span::after {
        margin-left: 12px;
    }


/* ==============================
   Product List Page
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.product-list-page {
    width: 100%;
    background: #fff;
    color: #333;
    font-family: Arial, Helvetica, sans-serif;
}

.product-list-content {
    padding: 60px 0 80px;
}

.product-list-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 36px;
    align-items: start;
}

/* ==============================
   左侧分类
============================== */

.product-list-side {
    position: sticky;
    top: 130px;
    align-self: flex-start;

    /* 关键：限制左侧整体高度，不超过当前屏幕 */
    max-height: calc(100vh - 150px);
}

.product-list-category {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 74, 197, .08);

    /* 关键：内部上下结构 */
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 150px);
}

.product-list-category-title {
    padding: 24px 24px;
    background: linear-gradient(135deg, #004ac5 0%, #003a9b 100%);
    color: #fff;

    /* 标题固定，不参与滚动 */
    flex: 0 0 auto;
}

.product-list-category-title h3 {
    margin: 0;
    font-size: 22px;
    line-height: 1.3;
    color: #fff;
}

.product-list-category-title p {
    margin: 8px 0 0;
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 22px;
}

/* 关键：分类菜单单独滚动 */
.product-list-category-menu {
    padding: 14px;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 分类菜单滚动条细化 */
.product-list-category-menu {
    scrollbar-width: thin;              /* Firefox */
    scrollbar-color: #004ac5 transparent;
}

.product-list-category-menu::-webkit-scrollbar {
    width: 3px;
}

.product-list-category-menu::-webkit-scrollbar-track {
    background: transparent;
}

.product-list-category-menu::-webkit-scrollbar-thumb {
    background: rgba(0, 74, 197, 0.65);
    border-radius: 10px;
}

.product-list-category-menu::-webkit-scrollbar-thumb:hover {
    background: #004ac5;
}
.product-cate-lv1 {
    margin-bottom: 9px;
}

.product-cate-lv1:last-child {
    margin-bottom: 0;
}

.product-cate-lv1 > a {
    display: block;
    min-height: 44px;
    line-height: 44px;
    padding: 0 38px 0 16px;
    border-radius: 12px;
    background: #f6f8ff;
    color: #222;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    position: relative;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv1 > a::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 0;
    color: #9aa8c8;
    font-size: 16px;
    transition: all .25s ease;
}

.product-cate-lv1.is-open > a::after {
    content: "-";
}

.product-cate-lv1 > a:hover,
.product-cate-lv1 > a.active {
    background: #004ac5;
    color: #fff;
    padding-left: 22px;
}

.product-cate-lv1 > a:hover::after,
.product-cate-lv1 > a.active::after {
    color: #fff;
}

/* 二级分类 */
.product-cate-lv2 {
    display: none;
    padding: 7px 0 3px 12px;
}

.product-cate-lv1.is-open .product-cate-lv2 {
    display: block;
}

.product-cate-lv2-item {
    margin-bottom: 5px;
}

.product-cate-lv2-item > a {
    display: block;
    min-height: 36px;
    line-height: 36px;
    padding: 0 32px 0 13px;
    border-radius: 10px;
    background: #fbfcff;
    color: #555;
    font-size: 14px;
    text-decoration: none;
    position: relative;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv2-item > a::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #aab6d4;
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
}

.product-cate-lv2-item > a::after {
    content: "+";
    position: absolute;
    right: 12px;
    top: 0;
    color: #aab6d4;
}

.product-cate-lv2-item.is-open > a::after {
    content: "-";
}

.product-cate-lv2-item > a:hover,
.product-cate-lv2-item > a.active {
    color: #004ac5;
    background: #edf5ff;
}

/* 三级分类 */
.product-cate-lv3 {
    display: none;
    padding: 5px 0 3px 22px;
}

.product-cate-lv2-item.is-open .product-cate-lv3 {
    display: block;
}

.product-cate-lv3 a {
    display: block;
    color: #777;
    font-size: 13px;
    line-height: 27px;
    text-decoration: none;
    transition: all .25s ease;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.product-cate-lv3 a:hover,
.product-cate-lv3 a.active {
    color: #e27a1f;
    padding-left: 6px;
}
/* ==============================
   右侧内容
============================== */

.product-list-right {
    min-width: 0;
}

.product-list-title {
    margin-bottom: 24px;
}

    .product-list-title h1 {
        margin: 0;
        font-size: 38px;
        line-height: 1.3;
        color: #222;
        font-weight: bold;
        position: relative;
        padding-bottom: 18px;
    }

        .product-list-title h1::after {
            content: "";
            width: 70px;
            height: 4px;
            border-radius: 4px;
            background: #004ac5;
            position: absolute;
            left: 0;
            bottom: 0;
        }

    .product-list-title p {
        margin: 14px 0 0;
        color: #777;
        font-size: 15px;
        line-height: 28px;
    }

/* 搜索框 */
.product-list-search {
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #dfe6f5;
    border-radius: 18px;
    padding: 12px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 32px rgba(0, 74, 197, .08);
}

    .product-list-search input {
        flex: 1;
        height: 48px;
        border: none;
        outline: none;
        padding: 0 18px;
        box-sizing: border-box;
        color: #333;
        font-size: 15px;
        background: #f8faff;
        border-radius: 12px;
    }

        .product-list-search input::placeholder {
            color: #999;
        }

    .product-list-search button {
        width: 140px;
        height: 48px;
        margin-left: 12px;
        border: none;
        border-radius: 12px;
        background: #004ac5;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        cursor: pointer;
        transition: all .25s ease;
    }

        .product-list-search button:hover {
            background: #e27a1f;
            box-shadow: 0 10px 24px rgba(226, 122, 31, .28);
        }

/* ==============================
   产品表格
============================== */

.product-table-wrap {
    background: #fff;
    border: 1px solid #e1e9f8;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 14px 38px rgba(0, 74, 197, .08);
}

.product-list-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    table-layout: fixed;
}

    .product-list-table thead tr {
        background: #202c34;
    }

    .product-list-table thead td {
        height: 58px;
        padding: 0 12px;
        color: #fff;
        font-size: 15px;
        font-weight: bold;
        text-align: center;
        white-space: nowrap;
    }

    .product-list-table tbody tr {
        background: #fff;
        transition: all .25s ease;
    }

        .product-list-table tbody tr:nth-child(even) {
            background: #f8faff;
        }

        .product-list-table tbody tr:hover {
            background: #edf5ff;
        }

    .product-list-table tbody td {
        padding: 15px 12px;
        border-bottom: 1px solid #eef2f8;
        color: #333;
        font-size: 15px;
        line-height: 24px;
        text-align: center;
        vertical-align: middle;
        word-break: break-word;
    }

    .product-list-table tbody tr:last-child td {
        border-bottom: none;
    }

/* 图片列 */
.product-thumb {
    width: 70px;
    height: 58px;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    background: #f4f6fb;
    border: 1px solid #edf1f8;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .product-thumb img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
        transition: all .35s ease;
    }

.product-list-table tbody tr:hover .product-thumb img {
    transform: scale(1.08);
}

/* 型号 */
.product-part-link {
    color: #222;
    font-weight: bold;
    text-decoration: none;
    transition: all .25s ease;
}

    .product-part-link:hover {
        color: #e27a1f;
    }

/* PDF 图标 */
.product-pdf-fa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #fff2f2;
    color: #e53935 !important;
    font-size: 22px;
    text-decoration: none;
    transition: all .25s ease;
}

    .product-pdf-fa:hover {
        background: #e53935;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(229, 57, 53, .25);
    }

.product-pdf-empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #aaa;
    font-size: 14px;
}

/* 询价按钮 */
.product-quote-btn,
.gquo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: #004ac5;
    color: #fff !important;
    font-size: 14px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 8px 20px rgba(0, 74, 197, .22);
}

    .product-quote-btn:hover,
    .gquo:hover {
        background: #e27a1f;
        color: #fff !important;
        transform: translateY(-2px);
        box-shadow: 0 12px 26px rgba(226, 122, 31, .3);
    }

.product-quote-hidden {
    display: none;
}

/* 表格列宽 */
.product-list-table .col-img {
    width: 10%;
}

.product-list-table .col-part {
    width: 22%;
}

.product-list-table .col-brand {
    width: 19%;
}

.product-list-table .col-package {
    width: 17%;
}

.product-list-table .col-stock {
    width: 10%;
}

.product-list-table .col-pdf {
    width: 10%;
}

.product-list-table .col-quote {
    width: 12%;
}

/* 无数据 */
.product-list-empty {
    padding: 50px 20px;
    text-align: center;
    background: #f5f8ff;
    border: 1px solid #dfe9fb;
    border-radius: 18px;
    color: #888;
    font-size: 15px;
}

.product-quote-cell {
    position: relative;
}

.product-quote-data,
.product-quote-hidden {
    display: none;
}


/* ==============================
   RFQ Quote Modal
   Main Color: #004ac5
   Accent Color: #e27a1f
============================== */

.quote-modal-mask {
    display: none;
    position: fixed;
    z-index: 999998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(5px);
    background: rgba(20, 30, 50, .58);
}

.quote-modal-box {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 50%;
    top: 50%;
    width: 420px;
    transform: translate(-50%, -50%);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .25);
    overflow: hidden;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
}

    .quote-modal-box::before {
        content: "";
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 5px;
        background: #004ac5;
    }

.quote-modal-close {
    position: absolute;
    right: 20px;
    top: 18px;
    width: 28px;
    height: 28px;
    line-height: 26px;
    border-radius: 50%;
    background: #f0f3fb;
    color: #8b95aa;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all .25s ease;
}

    .quote-modal-close:hover {
        background: #004ac5;
        color: #fff;
    }

.quote-modal-body {
    padding: 42px 32px 32px;
}

.quote-modal-icon {
    width: 82px;
    height: 82px;
    line-height: 82px;
    border-radius: 50%;
    margin: 0 auto 24px;
    color: #fff;
    font-size: 42px;
    font-weight: bold;
    box-shadow: 0 18px 40px rgba(0, 74, 197, .22);
}

.quote-modal-box.success .quote-modal-icon {
    background: #004ac5;
}

.quote-modal-box.error .quote-modal-icon {
    background: #e53935;
}

.quote-modal-box.warning .quote-modal-icon {
    background: #e27a1f;
}

.quote-modal-title {
    margin: 0 0 12px;
    color: #20232a;
    font-size: 24px;
    line-height: 32px;
    font-weight: bold;
}

.quote-modal-text {
    margin: 0 auto;
    max-width: 320px;
    color: #6b6f80;
    font-size: 15px;
    line-height: 26px;
}

.quote-modal-count {
    display: none;
    margin: 22px 0 26px;
    height: 48px;
    line-height: 48px;
    border-radius: 12px;
    background: #f5f8ff;
    border: 1px solid #dfe9fb;
    color: #6b6f80;
    font-size: 15px;
}

    .quote-modal-count b {
        color: #004ac5;
        font-size: 22px;
        margin: 0 5px;
    }

.quote-modal-actions {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 24px;
}

    .quote-modal-actions a {
        min-width: 130px;
        height: 44px;
        line-height: 44px;
        border-radius: 999px;
        font-size: 15px;
        font-weight: bold;
        text-decoration: none;
        transition: all .25s ease;
    }

.quote-modal-quote {
    background: #004ac5;
    color: #fff;
    box-shadow: 0 12px 26px rgba(0, 74, 197, .25);
}

    .quote-modal-quote:hover {
        background: #e27a1f;
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 30px rgba(226, 122, 31, .28);
    }

.quote-modal-continue {
    background: #f6f8ff;
    color: #004ac5;
    border: 1px solid #dfe9fb;
}

    .quote-modal-continue:hover {
        background: #004ac5;
        color: #fff;
    }

.gquo.is-loading {
    opacity: .75;
    cursor: not-allowed;
    pointer-events: none;
}
