﻿.goodsSubMenu {
    width: 94%;
    margin: 0 auto;
    padding: 25px 0;
    display: flex;
    text-align: center;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* PC：可换行 */
    gap: 8px;
}

    .goodsSubMenu a {
        display: inline-block;
        padding: 10px 15px;
        background: #f7f7f7;
        font-size: 0.9rem;
        border-radius: 3px;
        margin-right: 0; /* 用 gap 控制更稳 */
        margin-bottom: 0;
        white-space: nowrap;
    }
.goodsSubMenu a:hover{ color:#fff; background: #00579C !important;}
/* ✅ active 改为主色蓝 */
.active1 {
    background: #00579C !important;
    color: #fff;
}

.products-main {
    padding-bottom: 70px;
    width: 94%;
    margin: 0 auto;
}

    .products-main .page-box {
        margin: 30px 0;
    }

/* 页面整体 */
.products-main {
    padding-bottom: 70px;
    width: 94%;
    margin: 0 auto;
}

/* 顶部：显示数量 */
.ABMenu {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 12px;
    /* ✅ 原来的粉色渐变改成淡蓝渐变 */
    background: linear-gradient(180deg, #ffffff 0%, #f2f8ff 100%);
    box-shadow: 0 10px 22px rgba(0,0,0,.06);
    margin: 18px 0 16px;
}

    /* ✅ 图标颜色改成主色蓝 */
    .ABMenu i {
        color: #00579C;
        font-size: 16px;
    }

    .ABMenu b {
        font-weight: 800;
        color: #111827;
    }

    .ABMenu select {
        height: 34px;
        border: 1px solid rgba(0,0,0,.14);
        border-radius: 10px;
        padding: 0 10px;
        outline: none;
        background: #fff;
    }

        /* ✅ focus 的边框/阴影改成蓝系 */
        .ABMenu select:focus {
            border-color: rgba(0,87,156,.45);
            box-shadow: 0 0 0 3px rgba(0,87,156,.10);
        }

/* 内容容器 */
.goodsContain {
    width: 100%;
}

.inbg {
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    overflow: hidden;
}

/* 顶部排序条 */
.goodsListTop {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: #ffffff;
}

.goodsListTopR {
    margin-left: auto;
    color: #6b7280;
    font-size: .92rem;
}

.goodsListTop .sort-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,.12);
    background: #fafafa;
    color: #111827;
    text-decoration: none;
    font-weight: 700;
    transition: all .2s ease;
}

    /* ✅ hover：边框/字色/底色改成蓝系 */
    .goodsListTop .sort-item:hover {
        border-color: rgba(0,87,156,.35);
        color: #00579C;
        background: #f2f8ff;
    }

    /* ✅ active：背景改成主色蓝 */
    .goodsListTop .sort-item.active {
        border-color: rgba(0,87,156,.55);
        background: #00579C;
        color: #fff;
    }

/* 第二行筛选条 */
.goodsListTop2 {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 14px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    /* ✅ 原粉底改淡蓝 */
    background: #f2f8ff;
}

    .goodsListTop2 b {
        color: #111827;
        font-weight: 800;
    }

    .goodsListTop2 .fr {
        margin-left: auto;
        color: #111827;
        font-weight: 800;
    }

/* 输入框统一风格 */
.Ginput1, .Ginput2 {
    height: 36px;
    border: 1px solid rgba(0,0,0,.14);
    border-radius: 10px;
    padding: 0 12px;
    outline: none;
    background: #fff;
}

.Ginput1 {
    min-width: 220px;
}

.Ginput2 {
    width: 90px;
    text-align: center;
}

    /* ✅ focus 改蓝 */
    .Ginput1:focus, .Ginput2:focus {
        border-color: rgba(0,87,156,.45);
        box-shadow: 0 0 0 3px rgba(0,87,156,.10);
    }

/* 搜索按钮 */
.GSub1 {
    height: 36px;
    padding: 0 16px;
    border-radius: 10px;
    /* ✅ 边框/背景改蓝 */
    border: 1px solid rgba(0,87,156,.55);
    background: #00579C;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .18s ease, transform .18s ease;
}

    .GSub1:hover {
        opacity: .92;
        transform: translateY(-1px);
    }

/* 现货 checkbox */
.Gch1 {
    width: 16px;
    height: 16px;
    /* ✅ 改主色蓝 */
    accent-color: #00579C;
    transform: translateY(1px);
}

/* 表格区域 */
.goodsList {
    padding: 0;
}

    .goodsList table {
        width: 100%;
        border-collapse: collapse;
    }

    /* ✅ 表头底色改淡蓝（原 #fdeced） */
    .goodsList .firTr {
        background: #eaf3ff !important;
        color: #111827 !important;
        height: 54px !important;
        text-align: center;
    }

        .goodsList .firTr td {
            border-bottom: 1px solid rgba(0,0,0,.10);
            padding: 10px 10px;
            vertical-align: middle;
        }

            /* 表头标题 i */
            .goodsList .firTr td i {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-style: normal;
                font-weight: 800;
                color: #111827;
                line-height: 20px;
            }

    /* 下拉筛选区 */
    .goodsList .select-w {
        margin-top: 8px;
    }

        .goodsList .select-w select {
            width: 100%;
            height: 34px;
            border-radius: 10px;
            border: 1px solid rgba(0,0,0,.14);
            padding: 0 10px;
            background: #fff;
            outline: none;
        }

            /* ✅ 下拉 focus 改蓝 */
            .goodsList .select-w select:focus {
                border-color: rgba(0,87,156,.45);
                box-shadow: 0 0 0 3px rgba(0,87,156,.10);
            }

/* 第一列“重置全部” */
.firTd {
    position: relative;
}

.clear-btn {
    margin-top: 8px;
}

    /* ✅ 清除按钮改蓝系 */
    .clear-btn span {
        display: inline-block;
        cursor: pointer;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(0,87,156,.10);
        color: #00579C;
        font-weight: 800;
        border: 1px solid rgba(0,87,156,.18);
    }

/* tbody 的行样式（你 tbody 后端输出 td，这里只做通用效果） */
#tableContent tr {
    transition: background .15s ease;
}

#tableContent td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    text-align: center;
    color: #111827;
    line-height: 22px;
}

#tableContent tr:nth-child(even) {
    background: #fafafa;
}

/* ✅ hover 底色改淡蓝 */
#tableContent tr:hover {
    background: #f2f8ff;
}

.goodsInfosMenu {
    padding: 28px 0 60px;
}

    .goodsInfosMenu h2 {
        font-size: 1.5rem;
        font-weight: 900;
        color: #111827;
        margin: 0 0 16px;
        padding-left: 12px;
        /* ✅ 左边强调线改主色蓝 */
        border-left: 4px solid #00579C;
    }

.products-content-info {
    padding: 30px 0;
}

@media (max-width: 768px) {
    .goods-menu dl {
        padding: 20px;
    }

    .goods-menu dd a {
        font-size: 0.8rem;
        padding: 5px 10px;
        margin: 2px;
    }

    .goodsSubMenu {
        width: 100%;
        padding: 12px 10px;
        justify-content: flex-start; /* 左对齐更像“滑动标签条” */
        flex-wrap: nowrap; /* 不换行 */
        overflow-x: auto; /* 横向滚动 */
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch; /* iOS 顺滑 */
        gap: 10px;
    }

        /* 隐藏滚动条（Chrome/Safari） */
        .goodsSubMenu::-webkit-scrollbar {
            height: 0;
        }

    /* 隐藏滚动条（Firefox） */
    .goodsSubMenu {
        scrollbar-width: none;
    }

        .goodsSubMenu a {
            flex: 0 0 auto; /* 关键：不被压缩 */
            border-radius: 999px; /* 手机更圆润 */
            padding: 5px;
            font-size: 0.7rem;
        }

    .goodsSubMenu {
        position: relative;
        mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
        -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
    }

    .products-main {
        width: 94%;
    }

    .ABMenu {
        width: 100%;
        justify-content: space-between;
    }

    .goodsListTop {
        flex-wrap: wrap;
        gap: 8px;
    }

    .goodsListTopR {
        width: 100%;
        margin-left: 0;
    }

    .goodsListTop2 .fr {
        width: 100%;
        margin-left: 0;
    }

    .Ginput1 {
        min-width: 100%;
        width: 100%;
    }

    .Ginput2 {
        width: 82px;
    }

    /* 表格包一层横向滚动（不改HTML也能生效：直接让 table 自己滚） */
    .goodsList {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

        .goodsList table {
            min-width: 980px; /* 你列多就调大一点 */
        }

        /* 隐藏滚动条（可选） */
        .goodsList::-webkit-scrollbar {
            height: 0;
        }

    .goodsList {
        scrollbar-width: none;
    }
}
