/**
 * 1688Buyer - Industrial Goods Detail CSS Module (工业品 · MRO 商品详情)
 * Modeled from 1688 detail.1688.com/offer/673586426221.html
 */

.industrial-detail-page {
    width: 100%;
    min-height: 100vh;
    background-color: var(--bg-body, #f5f5f7);
    color: var(--text-primary, #333333);
    font-family: var(--font-body);
    padding-bottom: 60px;
}

.industrial-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px 0;
    box-sizing: border-box;
}

/* Breadcrumb */
.industrial-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.industrial-breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.industrial-breadcrumb a:hover {
    color: var(--primary-color, #ff5000);
}

.industrial-breadcrumb .bc-sep {
    color: #ccc;
}

.industrial-breadcrumb .current {
    color: #333;
    font-weight: 500;
}

/* 1. Supplier Top Bar */
.industrial-supplier-bar {
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
    flex-wrap: wrap;
    gap: 12px;
}

.supplier-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.supplier-mro-badge {
    background: #0050b3;
    color: #fff;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.supplier-name {
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
}

.supplier-tenure {
    background: #fff7e6;
    color: #d46b08;
    border: 1px solid #ffd591;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.supplier-metrics-inline {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: #595959;
}

.supplier-metrics-inline strong {
    color: #ff5000;
}

.supplier-bar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-supplier-chat {
    background: #fff;
    color: #ff5000;
    border: 1px solid #ffbb96;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-supplier-chat:hover {
    background: #fff2e8;
}

/* 2. Top Offer Grid */
.industrial-offer-hero {
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    padding: 24px;
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 28px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

/* Gallery Left */
.industrial-gallery-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.industrial-main-img-box {
    width: 100%;
    height: 440px;
    border-radius: 6px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    background: #fafafa;
    position: relative;
    cursor: zoom-in;
}

.industrial-main-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.industrial-main-img-box:hover img {
    transform: scale(1.03);
}

.industrial-thumb-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.industrial-thumb-strip::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.thumb-strip-item {
    width: 68px;
    height: 68px;
    border-radius: 4px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    background: #fafafa;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.thumb-strip-item.active,
.thumb-strip-item:hover {
    border-color: #ff5000;
}

.thumb-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #8c8c8c;
    padding-top: 4px;
}

.gallery-action-bar a {
    color: #8c8c8c;
    text-decoration: none;
    cursor: pointer;
}

.gallery-action-bar a:hover {
    color: #ff5000;
}

/* Right Info & Purchasing */
.industrial-info-col {
    display: flex;
    flex-direction: column;
}

.industrial-offer-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f1f1f;
    line-height: 1.4;
    margin: 0 0 12px;
}

/* Price Box */
.industrial-price-banner {
    background: #fff7f0;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 14px;
    border: 1px solid #ffe8d9;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.price-banner-main {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price-banner-label {
    font-size: 13px;
    color: #ff5000;
    font-weight: 600;
}

.price-large-cny {
    font-size: 28px;
    font-weight: 800;
    color: #ff5000;
    letter-spacing: -0.5px;
}

.price-moq-badge {
    background: #fff;
    color: #ff5000;
    border: 1px solid #ffd591;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.price-sold-sub {
    font-size: 12px;
    color: #8c8c8c;
}

/* Dispatch promise */
.industrial-promise-row {
    font-size: 12px;
    color: #52c41a;
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    padding: 8px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Specification Matrix SKU Table */
.mro-matrix-container {
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.mro-matrix-header {
    background: #fafafa;
    border-bottom: 1px solid #e8e8e8;
    display: grid;
    grid-template-columns: 1fr 100px 100px 140px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    color: #595959;
}

.mro-matrix-row {
    display: grid;
    grid-template-columns: 1fr 100px 100px 140px;
    padding: 12px 14px;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    font-size: 13px;
    transition: background-color 0.15s;
}

.mro-matrix-row:last-child {
    border-bottom: none;
}

.mro-matrix-row:hover {
    background-color: #fffbf8;
}

.mro-spec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #262626;
}

.mro-spec-thumb {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    border: 1px solid #f0f0f0;
    object-fit: cover;
}

.mro-spec-price {
    font-weight: 700;
    color: #ff5000;
}

.mro-spec-stock {
    color: #8c8c8c;
    font-size: 12px;
}

/* Stepper Input */
.mro-qty-stepper {
    display: flex;
    align-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    width: 110px;
    background: #fff;
    overflow: hidden;
}

.stepper-btn {
    width: 30px;
    height: 28px;
    border: none;
    background: #fafafa;
    color: #595959;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}

.stepper-btn:hover {
    background: #f0f0f0;
    color: #ff5000;
}

.stepper-input {
    flex: 1;
    height: 28px;
    border: none;
    border-left: 1px solid #d9d9d9;
    border-right: 1px solid #d9d9d9;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    outline: none;
    width: 48px;
}

/* Subtotal Bar */
.mro-subtotal-bar {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.subtotal-metrics-left {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-size: 13px;
    color: #595959;
}

.subtotal-metrics-left strong {
    color: #ff5000;
    font-size: 16px;
}

.subtotal-actions-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-mro-buy {
    background: linear-gradient(135deg, #ff5000 0%, #ff2000 100%);
    color: #ffffff;
    border: none;
    padding: 11px 28px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255,80,0,0.25);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-mro-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255,80,0,0.35);
}

.btn-mro-cart {
    background: #fff2e8;
    color: #ff5000;
    border: 1px solid #ffbb96;
    padding: 10px 22px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-mro-cart:hover {
    background: #ffe7ba;
}

/* 3. Dropship Dock Card (密文代发) */
.industrial-dropship-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.dropship-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.dropship-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: #1f1f1f;
}

.dropship-actions-btns {
    display: flex;
    gap: 8px;
}

.dropship-btn-item {
    background: #fafafa;
    border: 1px solid #d9d9d9;
    color: #333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    font-weight: 500;
}

.dropship-btn-item.primary {
    background: #fff7e6;
    border-color: #ffd591;
    color: #d46b08;
    font-weight: 600;
}

.dropship-metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.dropship-metric-cell {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.dropship-metric-cell .label {
    color: #8c8c8c;
}

.dropship-metric-cell .val {
    font-weight: 600;
    color: #333;
}

/* 4. Technical Attributes Table */
.industrial-section-card {
    background: #ffffff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 8px;
    padding: 20px 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.industrial-section-card .card-title {
    font-size: 16px;
    font-weight: 700;
    color: #1f1f1f;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attributes-table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.attr-row-cell {
    background: #fafafa;
    border-radius: 4px;
    padding: 10px 14px;
    border: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    font-size: 13px;
}

.attr-row-cell .attr-k {
    width: 120px;
    color: #8c8c8c;
    flex-shrink: 0;
}

.attr-row-cell .attr-v {
    color: #262626;
    font-weight: 500;
}

/* 5. Pairing Goods & Compare */
.pairing-goods-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.pairing-prod-card {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.2s;
}

.pairing-prod-card:hover {
    border-color: #ff5000;
    box-shadow: 0 4px 10px rgba(255,80,0,0.12);
    transform: translateY(-2px);
}

.pairing-thumb-box {
    width: 100%;
    height: 120px;
    background: #eaeaea;
}

.pairing-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pairing-prod-info {
    padding: 8px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.pairing-prod-title {
    font-size: 11px;
    color: #333;
    line-height: 1.3;
    height: 28px;
    overflow: hidden;
    margin-bottom: 4px;
}

.pairing-prod-meta {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    font-size: 11px;
}

.pairing-price {
    font-weight: 700;
    color: #ff5000;
}

/* Compare Row */
.compare-factories-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.compare-card-item {
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    padding: 14px;
}

.compare-company-name {
    font-weight: 600;
    font-size: 13px;
    color: #262626;
    margin-bottom: 6px;
}

.compare-meta-line {
    font-size: 12px;
    color: #595959;
    display: flex;
    justify-content: space-between;
}

/* Responsive */
@media (max-width: 992px) {
    .industrial-offer-hero {
        grid-template-columns: 1fr;
    }
    .pairing-goods-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dropship-metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .mro-matrix-header,
    .mro-matrix-row {
        grid-template-columns: 1fr 80px 100px;
    }
    .mro-matrix-header > div:nth-child(3),
    .mro-matrix-row > div:nth-child(3) {
        display: none;
    }
    .attributes-table-grid {
        grid-template-columns: 1fr;
    }
    .pairing-goods-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .compare-factories-row {
        grid-template-columns: 1fr;
    }
}
