﻿/* ===============================
   Goods List Page
================================ */
.goods-list-page {
    color: #ffffff; width:98%; margin:0 auto;
}

.goods-list-head {
    margin-bottom: 30px;
}

.goods-list-head span {
    display: block;
    margin-bottom: 10px;
    color: #00CFA9;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: .8px;
}

.goods-list-head h1 {
    margin: 0;
    color: #ffffff;
    font-size: 2rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 1px;
}

.goods-list-head h1 em {
    margin-left: 10px;
    color: #00CFA9;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
}

/* ===============================
   Table Box
================================ */
.eso_partslist,
.goods-list-table-box {
    width: 100%;
    overflow: visible;
}

.goods-list-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    position: relative;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,.12);
}

/* 横向滚动条 */
.goods-list-scroll::-webkit-scrollbar {
    height: 8px;
}

.goods-list-scroll::-webkit-scrollbar-thumb {
    background: rgba(0,164,253,.45);
    border-radius: 8px;
}

.goods-list-scroll::-webkit-scrollbar-track {
    background: rgba(255,255,255,.12);
}

.goods-list-table {
    min-width: 1680px;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    color: #111111;
}

.goods-list-table th {
    height: 52px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #eef2f6;
    color: #111111;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid #d9e0e8;
}

.goods-list-table td {
    padding: 18px 16px;
    box-sizing: border-box;
    color: #111111;
    font-size: 14px;
    line-height: 1.45;
    vertical-align: middle;
    border-bottom: 1px solid #edf1f5;
    background: #ffffff;
}

.goods-list-table tbody tr:hover td {
    background: #f7fbff;
}

/* ===============================
   Fixed First Two Columns - PC
================================ */
.goods-list-table th:nth-child(1),
.goods-list-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 8;
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    background: #ffffff;
    text-align: center;
    box-shadow: 1px 0 0 rgba(0,0,0,.08);
}

.goods-list-table th:nth-child(1) {
    z-index: 12;
    background: #eef2f6;
}

.goods-list-table th:nth-child(2),
.goods-list-table td:nth-child(2) {
    position: sticky;
    left: 100px;
    z-index: 7;
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    background: #ffffff;
    box-shadow: 1px 0 0 rgba(0,0,0,.08);
}

.goods-list-table th:nth-child(2) {
    z-index: 11;
    background: #eef2f6;
}

.goods-list-table td:nth-child(2)::after,
.goods-list-table th:nth-child(2)::after {
    content: "";
    position: absolute;
    right: -10px;
    top: 0;
    width: 10px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(0,0,0,.08), rgba(0,0,0,0));
}

.goods-list-table tbody tr:hover td:nth-child(1),
.goods-list-table tbody tr:hover td:nth-child(2) {
    background: #f7fbff;
}

/* ===============================
   Product Image
================================ */
.goods-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto;
    border-radius: 8px;
    background: #f6f8fb;
    overflow: hidden;
}

.goods-img-link img {
    display: block;
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
}

/* ===============================
   Part Info
================================ */
.goods-list-table td.parts {
    white-space: normal;
}

.goods-list-table td.parts h3 {
    margin: 0 0 8px 0;
    color: #111111;
    font-size: 0.9rem;
    line-height: 1.35;
    font-weight: 700;
}

.goods-list-table td.parts h3 a {
    color: #111111;
    text-decoration: none;
}

.goods-list-table td.parts h3 a:hover {
    color: #00A4FD;
}

.goods-list-table td.parts p {
    margin: 0 0 5px 0;
    color: #555555;
    font-size: 13px;
    line-height: 1.45;
}

.goods-list-table td.parts p a {
    color: #333333;
    text-decoration: none;
}

.goods-list-table td.parts p a:hover {
    color: #00A4FD;
}

/* ===============================
   Stock Price Quantity
================================ */
.goods-list-table td.stock,
.goods-list-table td.price,
.goods-list-table td.spec-td {
    white-space: nowrap;
}

.goods-list-table td.price {
    color: #111111;
    font-weight: 600;
}

.goods-list-table td.quantity {
    min-width: 150px;
}

.SelectNum {
    margin-bottom: 8px;
}

.SelectNum input {
    width: 88px;
    height: 32px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid #ccd6e0;
    border-radius: 4px;
    color: #111111;
    font-size: 14px;
    outline: none;
}

.SelectNum input:focus {
    border-color: #00A4FD;
    box-shadow: 0 0 0 3px rgba(0,164,253,.12);
}

.goods-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    height: 30px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 18px;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    transition: all .25s ease;
}

.goods-rfq-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,164,253,.22);
}

/* ===============================
   Datasheet PDF
================================ */
.goods-list-table td.pdf {
    text-align: center;
    min-width: 105px;
}

.datasheet-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 78px;
    height: 34px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 18px;
    color: #ffffff !important;
    text-decoration: none;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    transition: all .25s ease;
}

.datasheet-link i {
    font-size: 15px;
}

.datasheet-link span {
    font-size: 13px;
    font-weight: 600;
}

.datasheet-link:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,164,253,.22);
}

.datasheet-empty {
    color: #999999;
    font-size: 14px;
}

/* ===============================
   Mobile 768
   手机端取消固定列
================================ */
@media screen and (max-width: 768px) {
    .goods-list-page {
        padding: 0 15px;
        box-sizing: border-box;
    }

    .goods-list-head {
        margin-bottom: 24px;
    }

    .goods-list-head span {
        margin-bottom: 8px;
        font-size: 14px;
    }

    .goods-list-head h1 {
        font-size: 1.7rem;
        line-height: 1.4;
    }

    .goods-list-head h1 em {
        font-size: 15px;
    }

    .goods-list-scroll {
        border-radius: 8px;
        -webkit-overflow-scrolling: touch;
    }

    .goods-list-table {
        min-width: 1200px;
    }

    .goods-list-table th,
    .goods-list-table td {
        padding: 14px 12px;
        font-size: 13px;
    }

    .goods-list-table th:nth-child(1),
    .goods-list-table th:nth-child(2),
    .goods-list-table td:nth-child(1),
    .goods-list-table td:nth-child(2) {
        position: static;
        left: auto;
        z-index: auto;
        box-shadow: none;
    }

    .goods-list-table th:nth-child(2)::after,
    .goods-list-table td:nth-child(2)::after {
        display: none;
    }

    .goods-list-table th:nth-child(1),
    .goods-list-table td:nth-child(1) {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
    }

    .goods-list-table th:nth-child(2),
    .goods-list-table td:nth-child(2) {
        width: 230px;
        min-width: 230px;
        max-width: 230px;
    }

    .goods-img-link {
        width: 70px;
        height: 70px;
    }

    .goods-img-link img {
        max-width: 62px;
        max-height: 62px;
    }

    .goods-list-table td.parts h3 {
        font-size: 14px;
    }

    .goods-list-table td.parts p {
        font-size: 12px;
    }

    .SelectNum input {
        width: 76px;
        height: 30px;
    }

    .goods-rfq-btn {
        min-width: 62px;
        height: 28px;
        font-size: 12px;
        line-height: 28px;
    }

    .datasheet-link {
        min-width: 70px;
        height: 30px;
        gap: 5px;
    }

    .datasheet-link span {
        font-size: 12px;
    }
}


/* ===============================
   Goods Table Sticky X Scrollbar
   独立横拉条，始终显示在当前可视底部
================================ */
.goods-list-table-box {
    position: relative;
    overflow: visible;
}

.goods-list-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

/* 隐藏原表格底部滚动条，避免两个滚动条太乱 */
.goods-list-scroll::-webkit-scrollbar {
    height: 0;
}

.goods-list-scroll {
    scrollbar-width: none;
}

.goods-table-xbar {
    position: sticky;
    bottom: 0;
    z-index: 50;
    width: 100%;
    height: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    margin-top: 8px;
    background: rgba(28, 78, 136, .95);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 10px;
    box-sizing: border-box;
}

.goods-table-xbar-inner {
    height: 1px;
}

/* 横拉条样式 */
.goods-table-xbar::-webkit-scrollbar {
    height: 14px;
}

.goods-table-xbar::-webkit-scrollbar-track {
    background: rgba(255,255,255,.16);
    border-radius: 10px;
}

.goods-table-xbar::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    border-radius: 10px;
    border: 3px solid rgba(28, 78, 136, .95);
}

.goods-table-xbar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #00CFA9 0%, #00A4FD 100%);
}

/* Firefox */
.goods-table-xbar {
    scrollbar-color: #00CFA9 rgba(255,255,255,.16);
    scrollbar-width: thin;
}

/* 手机端取消固定横拉条，用原生横向滑动 */
@media screen and (max-width: 768px) {
    .goods-list-scroll {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: auto;
    }

    .goods-list-scroll::-webkit-scrollbar {
        height: 8px;
    }

    .goods-list-scroll::-webkit-scrollbar-thumb {
        background: rgba(0,164,253,.45);
        border-radius: 8px;
    }

    .goods-table-xbar {
        display: none;
    }
}



/* ===============================
   Goods Cart Button
================================ */
.goods-cart-btn,
.goods-rfq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    height: 30px;
    padding: 0 14px;
    box-sizing: border-box;
    border-radius: 18px;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 30px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    transition: all .25s ease;
}

.goods-cart-btn:hover,
.goods-rfq-btn:hover {
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0,164,253,.22);
}

.goods-cart-btn.disabled,
.goods-rfq-btn.disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.SelectNum {
    margin-bottom: 8px;
}

.SelectNum input {
    width: 88px;
    height: 32px;
    padding: 0 8px;
    box-sizing: border-box;
    border: 1px solid #ccd6e0;
    border-radius: 4px;
    color: #111111;
    font-size: 14px;
    outline: none;
}

.SelectNum input:focus {
    border-color: #00A4FD;
    box-shadow: 0 0 0 3px rgba(0,164,253,.12);
}

/* ===============================
   Cart Popup
================================ */
.cart-pop-mask {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    width: 100%;
    height: 100%;
    display: none;
    background: rgba(0,0,0,.48);
}

.cart-pop {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9999;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

.cart-pop-box {
    position: relative;
    width: 410px;
    max-width: calc(100% - 40px);
    padding: 38px 32px 32px 32px;
    box-sizing: border-box;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 26px 70px rgba(0,0,0,.28);
}

.cart-pop-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 50%;
    background: #f2f5f8;
    color: #666666;
    font-size: 14px;
    line-height: 30px;
    cursor: pointer;
    transition: all .25s ease;
}

.cart-pop-close:hover {
    background: #ff5f6d;
    color: #ffffff;
}

.cart-pop-loading {
    width: 46px;
    height: 46px;
    margin: 0 auto 20px auto;
    display: none;
    border: 4px solid #e8f6ff;
    border-top-color: #00A4FD;
    border-right-color: #00CFA9;
    border-radius: 50%;
    animation: cartPopLoading .9s linear infinite;
}

@keyframes cartPopLoading {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cart-pop-icon {
    width: 54px;
    height: 54px;
    margin: 0 auto 20px auto;
    display: none;
    border-radius: 50%;
    line-height: 54px;
    font-size: 26px;
    color: #ffffff;
}

.cart-pop-icon.success {
    display: block;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
}

.cart-pop-icon.success::before {
    content: "✓";
}

.cart-pop-icon.error {
    display: block;
    background: linear-gradient(90deg, #ff5f6d 0%, #ff9966 100%);
}

.cart-pop-icon.error::before {
    content: "!";
    font-weight: 700;
}

.cart-pop-title {
    margin-bottom: 10px;
    color: #111111;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 700;
}

.cart-pop-text {
    margin-bottom: 18px;
    color: #555555;
    font-size: 15px;
    line-height: 1.65;
}

.cart-pop-product {
    display: none;
    margin: 0 0 24px 0;
    padding: 14px 16px;
    box-sizing: border-box;
    border-radius: 8px;
    background: #f5f8fb;
    text-align: left;
}

.cart-pop-product strong {
    display: block;
    margin-bottom: 5px;
    color: #111111;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 700;
}

.cart-pop-product span {
    display: block;
    color: #666666;
    font-size: 13px;
    line-height: 1.45;
}

.cart-pop-actions {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.cart-pop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 135px;
    height: 42px;
    padding: 0 22px;
    box-sizing: border-box;
    border-radius: 24px;
    color: #ffffff !important;
    font-size: 15px;
    line-height: 42px;
    text-decoration: none;
    transition: all .25s ease;
}

.cart-pop-btn i {
    margin-left: 8px;
}

.cart-pop-btn-main {
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    border: 1px solid transparent;
}

.cart-pop-btn-line {
    background: #ffffff;
    border: 1px solid #d9e2ea;
    color: #333333 !important;
}

.cart-pop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}

.cart-pop-ok {
    display: none;
    min-width: 125px;
    height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    transition: all .25s ease;
}

.cart-pop-ok:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,164,253,.25);
}
.cart-pop-text .cart-pop-num {
    display: inline-block;
    margin: 0 4px;
    background: linear-gradient(90deg, #00A4FD 0%, #00CFA9 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    font-size: 18px;
}

/* mobile */
@media screen and (max-width: 768px) {
    .SelectNum input {
        width: 76px;
        height: 30px;
    }

    .goods-cart-btn,
    .goods-rfq-btn {
        min-width: 66px;
        height: 28px;
        font-size: 12px;
        line-height: 28px;
    }

    .cart-pop-box {
        padding: 34px 22px 26px 22px;
    }

    .cart-pop-title {
        font-size: 20px;
    }

    .cart-pop-actions {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    .cart-pop-btn {
        width: 100%;
    }
}