﻿/* =========================================================
   Product Detail Page
   Main Color: #1646d8
   Header / Footer / Banner styles are not included
========================================================= */

body#products {
    background: #f5f7fb;
    color: #1f2937;
}

.auto1280 {
    width: 1280px;
    max-width: 94%;
    margin: 0 auto;
}

/* ==============================
   Breadcrumb
============================== */

.goods-breadcrumb-wrap {
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #e8edf7;
}

.goods-breadcrumb {
    min-height: 54px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
}

.goods-breadcrumb a {
    color: #4b5563;
    text-decoration: none;
    transition: all .25s ease;
}

.goods-breadcrumb a:hover {
    color: #1646d8;
}

.goods-breadcrumb i {
    color: #a7afbf;
    font-size: 13px;
}

.goods-breadcrumb strong {
    color: #111827;
    font-weight: 600;
}

/* ==============================
   Main Layout
============================== */

.goods-detail-page {
    width: 100%;
    padding: 34px 0 58px;
    background:
        radial-gradient(circle at 10% 0%, rgba(22,70,216,.08) 0, rgba(22,70,216,0) 28%),
        linear-gradient(180deg, #f8fbff 0%, #f5f7fb 100%);
    overflow: visible;
}

.goods-detail-layout {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    overflow: visible;
}

.goods-detail-main {
    flex: 1;
    min-width: 0;
}

/* 右侧悬浮区域 */
.goods-detail-side {
    width: 330px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    align-self: flex-start;
    z-index: 20;
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: rgba(22,70,216,.35) transparent;
}

.goods-detail-side::-webkit-scrollbar {
    width: 5px;
}

.goods-detail-side::-webkit-scrollbar-track {
    background: transparent;
}

.goods-detail-side::-webkit-scrollbar-thumb {
    background: rgba(22,70,216,.28);
    border-radius: 10px;
}

.goods-detail-side::-webkit-scrollbar-thumb:hover {
    background: rgba(22,70,216,.45);
}

/* ==============================
   Product Top Card
============================== */

.goods-product-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e7ecf6;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    gap: 32px;
    box-shadow: 0 16px 38px rgba(16, 24, 40, .06);
}

/* ==============================
   Product Image Box
============================== */

.goods-product-img-box {
    width: 335px;
    flex-shrink: 0;
    border: 1px solid #e7ecf6;
    border-radius: 16px;
    background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
    min-height: 560px;
    padding: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.goods-img-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    height: 30px;
    line-height: 30px;
    padding: 0 14px;
    background: #1646d8;
    color: #ffffff;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(22,70,216,.18);
}

.goods-product-mainimg {
    width: 100%;
    min-height: 320px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #eef2fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-top: 24px;
    position: relative;
    overflow: hidden;
}

.goods-product-mainimg:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(22,70,216,.08) 0%, rgba(22,70,216,0) 72%);
    border-radius: 50%;
}

.goods-product-mainimg:after {
    content: "";
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 130px;
    height: 130px;
    background: rgba(22,70,216,.05);
    border-radius: 50%;
}

.goods-product-mainimg img {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 250px;
    display: block;
    transition: all .35s ease;
}

.goods-product-mainimg:hover img {
    transform: scale(1.05);
}

.goods-img-feature-list {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.goods-img-feature-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 130px;
    height: 40px;
    border-radius: 10px;
    background: #f4f8ff;
    border: 1px solid #e2ebff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #1646d8;
    font-size: 13px;
    font-weight: 600;
}

.goods-img-feature-item i {
    font-size: 15px;
}

.goods-img-miniinfo {
    margin-top: 18px;
    padding: 16px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e7ecf6;
}

.goods-img-miniinfo-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px dashed #dfe7f5;
    font-size: 13px;
    line-height: 1.6;
}

.goods-img-miniinfo-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.goods-img-miniinfo-item:first-child {
    padding-top: 0;
}

.goods-img-miniinfo-item strong {
    color: #374151;
    font-weight: 700;
    white-space: nowrap;
}

.goods-img-miniinfo-item span {
    color: #6b7280;
    text-align: right;
    word-break: break-word;
}

/* ==============================
   Product Info
============================== */

.goods-product-info {
    flex: 1;
    min-width: 0;
}

.goods-product-label {
    display: inline-flex;
    align-items: center;
    height: 30px;
    padding: 0 14px;
    border-radius: 30px;
    background: rgba(22,70,216,.08);
    color: #1646d8;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.goods-product-info h1 {
    margin: 0;
    color: #111827;
    font-size: 34px;
    line-height: 1.25;
    font-weight: 800;
    word-break: break-word;
}

.goods-product-desc {
    margin: 12px 0 22px;
    color: #5f6b7a;
    font-size: 15px;
    line-height: 1.8;
}

/* ==============================
   Product Info Table
============================== */

.goods-info-table {
    width: 100%;
    border: 1px solid #e7ecf6;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
}

.goods-info-row {
    display: flex;
    border-bottom: 1px solid #e7ecf6;
}

.goods-info-row:last-child {
    border-bottom: 0;
}

.goods-info-th {
    width: 150px;
    flex-shrink: 0;
    padding: 14px 16px;
    background: #f7f9fe;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.goods-info-td {
    flex: 1;
    padding: 14px 16px;
    color: #111827;
    font-size: 14px;
    line-height: 1.6;
    word-break: break-word;
}

.stock-badge {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 3px 12px;
    border-radius: 30px;
    background: #eaf7ef;
    color: #14833b;
    font-weight: 700;
}

.datasheet-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1646d8;
    text-decoration: none;
    font-weight: 600;
}

.datasheet-link:hover {
    text-decoration: underline;
}

.datasheet-link img {
    width: 22px;
    height: auto;
    display: inline-block;
}

.datasheet-empty {
    color: #6b7280;
}

/* ==============================
   RFQ Box
============================== */

.goods-rfq-box {
    margin-top: 24px;
    padding: 20px;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(22,70,216,.08) 0%, rgba(22,70,216,.02) 100%);
    border: 1px solid rgba(22,70,216,.15);
}

.goods-rfq-btn {
    width: 100%;
    height: 48px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #1646d8;
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 12px 22px rgba(22,70,216,.22);
    transition: all .25s ease;
}

.goods-rfq-btn:hover {
    background: #0f35ad;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 16px 28px rgba(22,70,216,.28);
}

.goods-rfq-box p {
    margin: 12px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.goods-rfq-btn.disabled,
.goods-side-rfq-btn.disabled {
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
}

/* ==============================
   Content Sections
============================== */

.goods-section {
    margin-top: 28px;
    background: #ffffff;
    border: 1px solid #e7ecf6;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .045);
}

.goods-section-title {
    margin-bottom: 22px;
    padding-bottom: 18px;
    border-bottom: 1px solid #edf1f7;
    position: relative;
}

.goods-section-title:after {
    content: "";
    width: 54px;
    height: 3px;
    background: #1646d8;
    border-radius: 5px;
    position: absolute;
    left: 0;
    bottom: -2px;
}

.goods-section-title span {
    display: inline-block;
    color: #1646d8;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}

.goods-section-title h2 {
    margin: 0;
    color: #111827;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 800;
}

.goods-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.85;
}

.goods-content p {
    margin: 0 0 16px;
}

.goods-content img {
    max-width: 100%;
    height: auto;
}

.goods-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.goods-content table th,
.goods-content table td {
    border: 1px solid #e5e7eb;
    padding: 12px 14px;
    text-align: left;
}

.goods-content table th {
    background: #f7f9fe;
    font-weight: 700;
}

/* ==============================
   SEO Content
============================== */

.goods-seo-content {
    color: #374151;
    font-size: 15px;
    line-height: 1.9;
}

.goods-seo-content p {
    margin: 0 0 16px;
}

.goods-advantage-list {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.goods-advantage-item {
    padding: 22px 18px;
    border-radius: 16px;
    background: #f8fbff;
    border: 1px solid #e7ecf6;
    transition: all .25s ease;
}

.goods-advantage-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(22,70,216,.1);
    border-color: rgba(22,70,216,.25);
}

.goods-advantage-item i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #1646d8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
}

.goods-advantage-item h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 17px;
    font-weight: 800;
}

.goods-advantage-item p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.65;
}

/* ==============================
   FAQ
============================== */

.goods-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.goods-faq-item {
    padding: 20px 22px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e7ecf6;
}

.goods-faq-item h3 {
    margin: 0 0 10px;
    color: #111827;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 800;
}

.goods-faq-item p {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.75;
}

/* ==============================
   Sidebar
============================== */

.goods-side-card {
    width: 100%;
    background: #ffffff;
    border: 1px solid #e7ecf6;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .045);
    transition: all .25s ease;
}

.goods-side-card:hover {
    box-shadow: 0 16px 36px rgba(16, 24, 40, .07);
    border-color: rgba(22,70,216,.22);
}

.goods-side-card h4 {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f7;
    color: #111827;
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
    position: relative;
}

.goods-side-card h4:after {
    content: "";
    width: 42px;
    height: 3px;
    background: #1646d8;
    border-radius: 5px;
    position: absolute;
    left: 0;
    bottom: -2px;
}

/* ==============================
   Contact Card
============================== */

.goods-contact-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.goods-contact-item {
    display: flex;
    gap: 13px;
    padding: 14px;
    border-radius: 14px;
    background: #f8fbff;
    border: 1px solid #e7ecf6;
}

.goods-contact-item > i {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #1646d8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

.goods-contact-item strong {
    display: block;
    color: #111827;
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
}

.goods-contact-item p {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.goods-contact-item a {
    color: #5f6b7a;
    text-decoration: none;
}

.goods-contact-item a:hover {
    color: #1646d8;
}

.goods-side-rfq-btn {
    margin-top: 18px;
    width: 100%;
    height: 46px;
    border-radius: 12px;
    background: #1646d8;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(22,70,216,.2);
    transition: all .25s ease;
}

.goods-side-rfq-btn:hover {
    background: #0f35ad;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==============================
   Tags
============================== */

.goods-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.goods-tags a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border-radius: 30px;
    background: #f4f7ff;
    border: 1px solid #e4eafe;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: all .25s ease;
}

.goods-tags a:hover {
    background: #1646d8;
    color: #ffffff;
    border-color: #1646d8;
}

/* ==============================
   Service Card
============================== */

.goods-service-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.goods-service-card li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.65;
    padding: 9px 0;
    border-bottom: 1px dashed #e5e7eb;
}

.goods-service-card li:last-child {
    border-bottom: 0;
}

.goods-service-card li i {
    color: #1646d8;
    margin-top: 4px;
}

/* ==============================
   Responsive
============================== */

@media screen and (max-width: 1180px) {

    .goods-product-card {
        flex-direction: column;
    }

    .goods-product-img-box {
        width: 100%;
        min-height: auto;
    }

    .goods-product-mainimg {
        min-height: 260px;
    }

    .goods-advantage-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 992px) {

    .goods-detail-layout {
        flex-direction: column;
    }

    .goods-detail-side {
        width: 100%;
        position: static;
        top: auto;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media screen and (max-width: 768px) {

    .goods-detail-page {
        padding: 22px 0 42px;
    }

    .goods-breadcrumb {
        min-height: auto;
        padding: 13px 0;
        font-size: 13px;
    }

    .goods-product-card {
        padding: 18px;
        border-radius: 14px;
        gap: 20px;
    }

    .goods-product-img-box {
        padding: 16px;
        border-radius: 14px;
    }

    .goods-product-mainimg {
        min-height: 220px;
        margin-top: 18px;
    }

    .goods-product-mainimg img {
        max-height: 210px;
    }

    .goods-img-feature-item {
        flex: 1 1 100%;
    }

    .goods-img-miniinfo-item {
        flex-direction: column;
        gap: 4px;
    }

    .goods-img-miniinfo-item span {
        text-align: left;
    }

    .goods-product-info h1 {
        font-size: 26px;
    }

    .goods-product-desc {
        font-size: 14px;
    }

    .goods-info-row {
        flex-direction: column;
    }

    .goods-info-th {
        width: 100%;
        padding: 11px 14px 6px;
        background: #ffffff;
        color: #1646d8;
    }

    .goods-info-td {
        padding: 0 14px 12px;
    }

    .goods-section {
        padding: 20px;
        border-radius: 14px;
        margin-top: 20px;
    }

    .goods-section-title h2 {
        font-size: 21px;
    }

    .goods-side-card {
        padding: 20px;
        border-radius: 14px;
    }
}

@media screen and (max-width: 480px) {

    .auto1280 {
        max-width: 92%;
    }

    .goods-product-info h1 {
        font-size: 23px;
    }

    .goods-rfq-btn,
    .goods-side-rfq-btn {
        height: 44px;
        font-size: 14px;
    }

    .goods-contact-item {
        padding: 12px;
    }

    .goods-tags a {
        font-size: 12px;
    }
}