.catalog-banner {
    padding: 50px 7%;
    background: linear-gradient(110deg, #eaf3fc, #f7fafe);
    border-bottom: 1px solid #e5edf5
}

.catalog-banner > span {
    font-size: 13px;
    letter-spacing: 3px;
    color: #7c9db8
}

.catalog-banner h1 {
    font-size: 41px;
    font-weight: 400;
    margin: 8px 0
}

.catalog-banner p {
    font-size: 16px
}

.catalog-breadcrumb {
    padding: 22px 7%;
    font-size: 14px;
    color: #8799a9;
    line-height: 2
}

.catalog-breadcrumb a:hover {
    color: #0875bf
}

.catalog-layout {
    display: grid;
    grid-template-columns:230px minmax(0, 1fr);
    gap: 40px;
    padding: 10px 7% 75px
}

#catalog-sidebar {
    border: 1px solid #e0e9f1;
    align-self: start;
    position: sticky;
    top: 100px
}

#catalog-sidebar h2 {
    background: #0875bf;
    color: #fff;
    font-weight: 400;
    font-size: 22px;
    margin: 0;
    padding: 18px 23px
}

#catalog-sidebar > a {
    display: flex;
    justify-content: space-between;
    padding: 12px 22px;
    border-bottom: 1px solid #edf1f5;
    font-size: 15px
}

#catalog-sidebar > a > span {
    font-size: 12px;
    color: #8ba3b5
}

#catalog-sidebar > a[aria-current] {
    background: #eff6fc;
    color: #0875bf;
    border-left: 3px solid #0875bf;
    padding-left: 19px
}

.catalog-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 20px
}

.catalog-toolbar h2 {
    font-size: 28px;
    font-weight: 400;
    margin: 0
}

.catalog-toolbar p {
    font-size: 13px;
    margin: 5px 0
}

.catalog-toolbar label {
    font-size: 12px;
    color: #8197aa
}

.catalog-toolbar input {
    display: block;
    width: 240px;
    border: 1px solid #dce6ef;
    border-radius: 7px;
    padding: 11px 15px;
    margin-top: 4px;
    font-size: 15px;
    background: #fbfcfe
}

.subtype-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px
}

.subtype-filter button {
    border: 1px solid #e2eaf2;
    border-radius: 5px;
    background: #fff;
    padding: 6px 11px;
    font-size: 13px;
    color: #6e879b
}

.subtype-filter button.selected {
    border-color: #0875bf;
    color: #0875bf;
    background: #eff6fd
}

.catalog-grid {
    display: grid;
    grid-template-columns:repeat(3, minmax(0, 1fr));
    gap: 22px
}

.product-card {
    border: 1px solid #e3ebf2;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column
}

.product-card[hidden] {
    display: none
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px #153e6210
}

.product-photo {
    height: 200px;
    background: #f6f9fc;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.product-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 18px;
    position: absolute;
    z-index: 1;
    background: #f6f9fc
}

.product-image-empty {
    padding: 22px;
    text-align: center;
    color: #819db4
}

.product-image-empty > span {
    font-size: 30px;
    font-weight: 300;
    display: block;
    color: #abc4d8
}

.product-image-empty small {
    font-size: 14px;
    display: block;
    margin-top: 10px
}

.product-image-empty em {
    font-size: 11px;
    font-style: normal;
    display: block;
    margin-top: 8px;
    color: #a0afbd
}

.image-loaded .product-image-empty {
    display: none
}

.product-card-copy {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column
}

.product-card-copy > small {
    font-size: 12px;
    color: #8a9fb0
}

.product-card h3 {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.7;
    margin: 10px 0
}

.product-card p {
    font-size: 13px;
    line-height: 1.9;
    margin: 0 0 20px;
    flex: 1
}

.product-card-copy > span {
    font-size: 13px;
    color: #0875bf
}

.pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 30px
}

.pagination button {
    width: 33px;
    height: 33px;
    background: #fff;
    border: 1px solid #dce6f0;
    color: #668096;
    border-radius: 4px
}

.pagination button[aria-current] {
    background: #0875bf;
    color: #fff;
    border-color: #0875bf
}

.catalog-empty {
    grid-column: 1/-1;
    text-align: center;
    padding: 60px 20px;
    background: #f5f8fb
}

.catalog-empty h3 {
    font-weight: 400
}

.catalog-empty p {
    font-size: 15px
}

.detail-intro {
    padding: 20px 7% 50px;
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 60px;
    align-items: center
}

.detail-intro > .product-photo {
    height: 410px;
    border: 1px solid #e4edf4;
    border-radius: 12px;
    cursor: zoom-in
}

.detail-intro .product-image-empty > span {
    font-size: 54px
}

.detail-title > span {
    font-size: 13px;
    color: #0875bf
}

.detail-title h1 {
    font-size: 35px;
    font-weight: 400;
    line-height: 1.5;
    margin: 14px 0 20px
}

.product-model {
    font-size: 15px;
    color: #718ba0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e2ebf3
}

.detail-title > p {
    font-size: 15px;
    line-height: 2.1;
    margin: 20px 0 25px
}

.source-link {
    display: inline-block;
    font-size: 14px;
    color: #0875bf;
    margin: 14px 15px
}

.product-price-note {
    display: block;
    font-size: 13px;
    color: #8d9fb0;
    margin-top: 20px
}

.detail-body {
    padding: 0 7% 60px
}

.detail-tabs {
    position: sticky;
    top: 76px;
    z-index: 5;
    display: flex;
    justify-content: flex-start;
    height: auto;
    background: #f3f7fb;
    border-bottom: 1px solid #dce8f1;
    border-radius: 8px;
    gap: 0
}

.detail-tabs > a {
    height: auto;
    font-size: 16px;
    padding: 18px 32px
}

.detail-tabs > a:hover {
    background: #e8f2fb;
    color: #0875bf
}

.detail-body section {
    padding: 38px 0;
    border-bottom: 1px solid #e8eef5;
    scroll-margin-top: 150px
}

.detail-body section > h2 {
    font-weight: 400;
    font-size: 26px;
    margin: 0 0 22px
}

.detail-body section > p, .detail-body li {
    font-size: 15px;
    line-height: 2.1;
    color: #667e91
}

.detail-body li {
    margin: 8px 0
}

.detail-note {
    font-size: 13px !important;
    color: #91a3b2 !important
}

.detail-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 2
}

.detail-body caption {
    text-align: left;
    padding-bottom: 12px;
    color: #93a4b3;
    font-size: 13px
}

.detail-body th {
    width: 65px;
    color: #6f91ac;
    font-weight: 400
}

.detail-body th, .detail-body td {
    padding: 13px 18px;
    border: 1px solid #e1eaf2
}

.detail-body tr:nth-child(odd) {
    background: #f7fafd
}

.detail-support {
    display: grid;
    grid-template-columns:repeat(3, 1fr);
    gap: 25px;
    background: #f4f8fc;
    padding: 24px
}

.detail-support h3 {
    font-size: 18px;
    font-weight: 400;
    margin: 0
}

.detail-support p {
    font-size: 14px
}

.related-products .product-photo {
    height: 200px
}

#product-image-dialog {
    width: min(900px, 90vw);
    max-width: 900px;
    padding: 30px
}

#large-product-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain
}

#close-product-image {
    position: absolute;
    right: 8px;
    top: 5px;
    border: 0;
    background: white;
    font-size: 28px;
    color: #648096
}

.nav-group .submenu {
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap: 10px 25px
}

.submenu > a {
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e7edf3
}

.submenu > a > span {
    float: right;
    color: #91a9bc
}

@media (max-width: 1150px) {
    .catalog-layout {
        gap: 25px;
        grid-template-columns:190px 1fr
    }

    .catalog-grid {
        grid-template-columns:repeat(2, minmax(0, 1fr))
    }

    .detail-intro {
        gap: 35px
    }

    .detail-title h1 {
        font-size: 29px
    }
}

@media (max-width: 760px) {
    .catalog-banner {
        padding: 30px 6%
    }

    .catalog-banner h1 {
        font-size: 32px
    }

    .catalog-breadcrumb {
        padding: 18px 6%;
        font-size: 12px
    }

    .catalog-layout {
        grid-template-columns:1fr;
        padding: 0 6% 45px;
        gap: 25px
    }

    #catalog-sidebar {
        position: static;
        display: flex;
        overflow: auto;
        white-space: nowrap;
        align-items: center;
        border-radius: 7px
    }

    #catalog-sidebar h2 {
        display: none
    }

    #catalog-sidebar > a {
        padding: 12px 15px;
        gap: 10px;
        flex-shrink: 0;
        border-bottom: 0
    }

    #catalog-sidebar > a[aria-current] {
        border-left: 0;
        border-bottom: 2px solid #0875bf;
        padding-left: 15px
    }

    .catalog-toolbar {
        display: block
    }

    .catalog-toolbar h2 {
        font-size: 26px
    }

    .catalog-toolbar input {
        width: 100%;
        margin-top: 8px
    }

    .catalog-toolbar label {
        display: block;
        margin-top: 15px
    }

    .catalog-grid {
        gap: 12px
    }

    .product-photo {
        height: 150px
    }

    .product-card-copy {
        padding: 14px
    }

    .product-card h3 {
        font-size: 16px
    }

    .product-card p {
        font-size: 12px
    }

    .product-image-empty {
        padding: 10px
    }

    .product-image-empty > span {
        font-size: 25px
    }

    .product-image-empty small {
        font-size: 12px
    }

    .detail-intro {
        grid-template-columns:1fr;
        gap: 25px;
        padding: 0 6% 35px
    }

    .detail-intro > .product-photo {
        height: 290px
    }

    .detail-title h1 {
        font-size: 28px
    }

    .detail-body {
        padding: 0 6% 40px
    }

    .detail-tabs {
        top: 0;
        flex-wrap: nowrap;
        overflow: auto
    }

    .detail-tabs > a {
        font-size: 14px;
        padding: 13px 17px;
        white-space: nowrap
    }

    .detail-body section {
        scroll-margin-top: 65px
    }

    .detail-support {
        grid-template-columns:1fr;
        gap: 15px
    }

    .nav-group .submenu {
        grid-template-columns:repeat(3, minmax(0, 1fr))
    }

    .related-products {
        grid-template-columns:1fr 1fr
    }

    .detail-body th, .detail-body td {
        padding: 10px
    }

    .detail-body section > p {
        font-size: 14px
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-card:hover {
        transform: none
    }
}

.product-model {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap
}

.product-model > strong {
    font-weight: 400;
    color: #395c77;
    font-size: 16px
}

/* Company-supplied product images and grouped module specifications. */
.product-photo-gallery {
    min-width: 0;
}

.product-photo-gallery > .product-photo {
    height: 390px;
    border: 1px solid #e1eaf2;
    border-radius: 12px;
    cursor: zoom-in;
    background: #f7fafd;
}

.product-photo-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.product-photo-thumbs button {
    width: 85px;
    height: 67px;
    border: 1px solid #dfe8f0;
    border-radius: 6px;
    padding: 4px;
    background: #fff;
}

.product-photo-thumbs button.selected {
    border: 2px solid #0875bf;
    padding: 3px;
}

.product-photo-thumbs img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-gallery-caption {
    font-size: 12px;
    color: #7e94a5;
    margin: 10px 0 0;
}

.product-spec-modules {
    display: grid;
    gap: 20px;
}

.product-spec-module {
    border: 1px solid #dfe9f2;
    border-radius: 10px;
    overflow: hidden;
}

.product-spec-module h3 {
    margin: 0;
    padding: 16px 22px;
    background: #f0f6fc;
    font-size: 19px;
    font-weight: 400;
    color: #285976;
    line-height: 1.7;
}

.product-spec-module h3 span {
    display: inline-block;
    color: #86a9c4;
    margin-right: 14px;
    font-size: 14px;
}

.product-spec-module ol {
    margin: 0;
    padding: 16px 28px 18px 48px;
}

.product-spec-module ol li {
    font-size: 15px;
    line-height: 2;
    color: #506c81;
    padding-left: 3px;
    margin: 8px 0;
}

@media (max-width: 760px) {
    .product-photo-gallery > .product-photo {
        height: 290px;
    }

    .product-spec-module h3 {
        font-size: 17px;
        padding: 13px 17px;
    }

    .product-spec-module ol {
        padding: 12px 20px 14px 38px;
    }

    .product-spec-module ol li {
        font-size: 14px;
    }
}

/* 数据库分页（Bootstrap 分页结构 ul.pagination > li > a/span）样式适配 */
.pagination ul.pagination {
    list-style: none;
    margin: 0;
    padding: 0
}

.pagination ul.pagination li {
    display: inline-flex
}

.pagination ul.pagination li a,
.pagination ul.pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 33px;
    height: 33px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #dce6f0;
    color: #668096;
    border-radius: 4px;
    text-decoration: none
}

.pagination ul.pagination li a:hover {
    background: #0875bf;
    color: #fff;
    border-color: #0875bf
}

.pagination ul.pagination li.active span {
    background: #0875bf;
    color: #fff;
    border-color: #0875bf
}

.pagination ul.pagination li.disabled span {
    color: #b6c4d1;
    border-color: #eceff3
}

/* 搜索表单在工具栏内的布局 */
.catalog-toolbar form {
    display: inline-flex
}
