/* 产品详情弹窗样式 */

.product-detail-modal {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 9999;
}
.product-detail-modal.open { display: block; }

.detail-modal-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
}

.detail-modal-container {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: #fff;
    border-radius: 16px;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: detailSlideIn 0.3s ease;
}

@keyframes detailSlideIn {
    from { transform: translate(-50%, -45%); opacity: 0; }
    to { transform: translate(-50%, -50%); opacity: 1; }
}

.detail-close {
    position: fixed;
    top: 20px; right: 30px;
    width: 36px; height: 36px;
    border: none;
    background: rgba(0,0,0,0.05);
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}
.detail-close:hover { background: #ff3d00; color: #fff; }

.detail-content { padding: 30px; }

/* 顶部区域 */
.detail-top {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.detail-image-section {}

.detail-main-image {
    width: 100%;
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa, #eef0f3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid #f0f0f0;
}
.detail-main-image img { width: 100%; height: 100%; object-fit: contain; }

.detail-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.detail-thumbnails img {
    width: 70px; height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}
.detail-thumbnails img:hover { border-color: #1d4ed8; }

/* 右侧信息 */
.detail-info-section { display: flex; flex-direction: column; }

.detail-industry {
    display: inline-block;
    background: #e8f0fe;
    color: #1d4ed8;
    font-size: 12px;
    padding: 3px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    align-self: flex-start;
}

.detail-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    line-height: 1.4;
    margin-bottom: 8px;
}

.detail-brand {
    font-size: 13px;
    color: #475569;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.detail-price-box {
    background: linear-gradient(135deg, #fff5f5, #fff0f0);
    border: 1px solid #ffe0e0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 20px;
}
.detail-price {
    font-size: 28px;
    font-weight: 700;
    color: #e53935;
}
.detail-price small { font-size: 13px; font-weight: 400; color: #999; }

.detail-price-tags {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #475569;
}

.detail-quick-info {
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
}
.qi-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 13px;
    color: #334155;
    flex-wrap: wrap;
}
.qi-label {
    color: #999;
    font-weight: 600;
    min-width: 70px;
}

.detail-application {
    background: #e8f5e9;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 13px;
    color: #2e7d32;
    margin-bottom: 20px;
}

.detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
}
.btn-detail-cart, .btn-detail-buy, .btn-detail-inquire, .btn-detail-compare {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-detail-cart { background: #ff6f00; color: #fff; }
.btn-detail-cart:hover { background: #e65100; }
.btn-detail-buy { background: #00c853; color: #fff; }
.btn-detail-buy:hover { background: #00a844; }
.btn-detail-inquire { background: #1d4ed8; color: #fff; }
.btn-detail-inquire:hover { background: #1e3a8a; }
.btn-detail-compare { background: #fff; color: #334155; border: 1px solid #e0e0e0; }
.btn-detail-compare:hover { border-color: #1d4ed8; color: #1d4ed8; }

/* 技术参数表 */
.detail-section { margin-bottom: 30px; }
.detail-section-title {
    font-size: 17px;
    font-weight: 700;
    color: #222;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid #1d4ed8;
}

.tech-param-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.tech-param-table tr.even { background: #f9fafb; }
.tech-param-table tr.odd { background: #fff; }
.tech-param-table tr:hover { background: #e8f0fe; }
.param-label {
    width: 200px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    border-bottom: 1px solid #f0f0f0;
}
.param-value {
    padding: 10px 16px;
    font-size: 13px;
    color: #1e293b;
    border-bottom: 1px solid #f0f0f0;
}

.detail-desc {
    font-size: 14px;
    color: #334155;
    line-height: 1.8;
    background: #f9fafb;
    padding: 16px 20px;
    border-radius: 10px;
}

/* 相关产品 */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.related-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}
.related-card:hover {
    border-color: #1d4ed8;
    background: #e8f0fe;
    transform: translateY(-2px);
}
.related-name {
    font-size: 12px;
    color: #334155;
    margin: 8px 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.related-price {
    font-size: 14px;
    font-weight: 700;
    color: #e53935;
}

/* 响应式 */
@media (max-width: 768px) {
    .detail-modal-container { width: 95%; max-height: 95vh; }
    .detail-content { padding: 16px; }
    .detail-top { grid-template-columns: 1fr; gap: 16px; }
    .detail-main-image { height: 240px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .detail-actions { flex-wrap: wrap; }
}
