.main-article {
    min-width: 0;
    width: 100%;
    overflow-x: hidden;
}

.breadcrumb {
    font-size: 14px;
    color: #777;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.breadcrumb a {
    color: #666;
}
.breadcrumb .icon-home {
    margin-right: 4px;
    color: #555;
}

.product-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.2s ease;
}
.product-card:hover {
    transform: translateY(-2px);
}

.product-card-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}
.product-card-img-box .product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-detail-summary {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 30px;
    margin-bottom: 40px;
}

.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    width: 100%;
}

.gallery-main-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    border: 1px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    max-height: 350px;
}
.gallery-main-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumb-item {
    width: 70px;
    height: 70px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}
.thumb-item:hover, .thumb-item.active {
    border-color: #E50012;
}
.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-info-text {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}
.product-main-title {
    font-size: 24px;
    color: #222;
    font-weight: bold;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}
.product-description {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
}
.product-meta-list {
    list-style: none;
    font-size: 14px;
    color: #555;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #f9f9f9;
    padding: 15px;
    border-left: 3px solid #E50012;
}

.product-spec-section {
    margin-top: 30px;
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

figure.table {
    width: 100% !important;
    margin: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
}

@media (min-width: 993px) {
    figure.table table {
        width: 100% !important;
        table-layout: auto;
        border-collapse: collapse !important;
    }
    figure.table td,
    figure.table th {
        white-space: normal;
        padding: 12px 14px !important;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    figure.table table {
        min-width: max-content;
        width: auto !important;
        border-collapse: collapse !important;
    }
    figure.table td,
    figure.table th {
        white-space: nowrap;
        /* 手机端大幅压缩内边距+缩小字号，表格紧凑 */
        padding: 6px 8px !important;
        font-size: 12px;
    }
    figure.table td img {
        max-width: 45px;
        max-height: 40px;
    }
}

figure.table td,
figure.table th {
    border: 1px solid #ddd !important;
    text-align: center;
}
figure.table th {
    background: #e8f2fc !important;
    font-weight: bold !important;
    color: #222;
}
figure.table tbody tr:nth-child(even) {
    background: #f9fafb;
}
figure.table td img {
    max-width: 70px;
    max-height: 60px;
    display: block;
    margin: 0 auto;
}

.product-img-link {
    display: block;
    text-decoration: none;
}

@media screen and (max-width: 992px) {
    .product-detail-summary {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        max-width: 100%;
    }
    .inner-layout-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product-list-grid {
        grid-template-columns: 1fr;
    }
    .product-main-title {
        font-size: 20px;
    }
    .page-banner {
        height: 160px;
    }
}

@media screen and (max-width: 480px) {
    .product-list-grid {
        grid-template-columns: 1fr;
    }
    .thumb-item {
        width: 60px;
        height: 60px;
    }
}