/* ==========================================================
   product-detail.css – Luda Instruments 产品详情页专用样式
   继承 base.css 中的公共样式
   ========================================================== */

/* ---------- 产品详情容器 ---------- */
.product-detail {
    background: white;
    border-radius: 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    padding: 40px;
    margin: 30px 0 60px;
    border: 1px solid #eaeef5;
}

.product-header {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.product-gallery {
    flex: 1 1 400px;
}

.product-main-image {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    background: #f0f4fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

@media (max-width: 640px) {
    .product-main-image {
        height: 200px;
    }
}

.product-thumbnail {
    width: 100px;
    height: 100px;
    margin-top: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border 0.2s;
}

.product-thumbnail:hover {
    border-color: #d71920;
}

.product-info-header {
    flex: 1 1 400px;
}

.product-category {
    display: inline-block;
    background: #eef2f6;
    color: #1f4973;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 30px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #0a2647;
    margin-bottom: 10px;
    line-height: 1.2;
}

.product-model {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ecf2f9;
    padding: 6px 16px;
    border-radius: 30px;
    display: inline-block;
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #004b8f;
}

.product-badges {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.badge {
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

.badge-new {
    background: #d71920;
    color: white;
}

.badge-video {
    background: #0a2647;
    color: white;
}

.badge-manual {
    background: #4f6f8f;
    color: white;
}

.product-description {
    font-size: 1.1rem;
    color: #1e2b37;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* ---------- 标准列表 ---------- */
.product-standards {
    margin: 30px 0;
}

.product-standards h3,
.product-features h3,
.product-specs h3,
.product-customization h3 {
    font-size: 1.5rem;
    color: #0a2647;
    margin-bottom: 20px;
    border-left: 6px solid #d71920;
    padding-left: 15px;
}

.standards-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.standards-list li {
    background: #eef2f6;
    color: #1f4973;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---------- 特点列表 ---------- */
.product-features,
.product-customization {
    margin: 30px 0;
}

.features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}

.features-list li {
    padding-left: 1.8rem;
    position: relative;
    color: #4f6f8f;
}

.features-list li::before {
    content: "✓";
    color: #d71920;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 1.2rem;
}

/* ---------- 规格表格 ---------- */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    border: 1px solid #eaeef5;
    border-radius: 15px;
    overflow: hidden;
}

.specs-table tr {
    border-bottom: 1px solid #eaeef5;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table td {
    padding: 15px 20px;
    vertical-align: top;
}

.specs-table td:first-child {
    font-weight: 600;
    color: #0a2647;
    width: 300px;
    max-width: 310px;
    background-color: #f8fafc;
}

.specs-table td:last-child {
    color: #4f6f8f;
}

/* ---------- 产品详情响应式 ---------- */
@media (max-width: 768px) {
    .product-header {
        flex-direction: column;
    }
    .product-title {
        font-size: 1.8rem;
    }
    .specs-table td:first-child {
        width: 120px;
    }
}

@media (max-width: 640px) {
    .product-detail {
        padding: 20px;
    }
    .features-list {
        grid-template-columns: 1fr;
    }

    /* 表格转为卡片布局 */
    .specs-table,
    .specs-table tbody,
    .specs-table tr,
    .specs-table td {
        display: block;
    }
    .specs-table tr {
        margin-bottom: 15px;
        border: 1px solid #eaeef5;
        border-radius: 8px;
        overflow: hidden;
        background-color: white;
    }
    .specs-table td {
        display: flex;
        padding: 10px 15px;
        border: none;
        width: 100%;
    }
    .specs-table td:first-child {
        width: 150px;
        background-color: #f8fafc;
        font-weight: 600;
        border-right: 1px solid #eaeef5;
    }
    .specs-table td:last-child {
        flex: 1;
        background-color: white;
    }
}
