/* product-detail.css —— 产品详情页专属样式 */

.product-detail-page {
    padding: 150px 0 60px;
    background: #f9fbff;
}

/* ========== 详情容器 ========== */
.product-detail-container {
    display: flex;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: flex-start;
}

/* ========== 图片展示区 ========== */
.product-gallery {
    flex: 1;
    min-width: 300px;
    margin-top: 160px;
}

.product-main-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.product-main-image:hover {
    transform: scale(1.02);
}

.product-thumbnails {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}

.product-thumbnails::-webkit-scrollbar {
    display: none;
}

.product-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-thumbnail:hover,
.product-thumbnail.active {
    border-color: #1565c0;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(21, 101, 192, 0.2);
}

/* ========== 产品信息区 ========== */
.product-info {
    flex: 1;
    min-width: 300px;
}

.product-title {
    color: #1565c0;
    font-size: 2.4em;
    margin: 0 0 8px 0;
    font-weight: 700;
    line-height: 1.2;
}

.product-subtitle {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 20px;
    font-weight: 500;
}

.product-description {
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
    font-size: 1.05em;
}

.product-description p {
    margin-bottom: 16px;
}

/* ========== 核心功能 ========== */
.product-features h3,
.product-specs h3,
.product-scenarios h2 {
    color: #1565c0;
    font-size: 1.3em;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

.product-features ul {
    padding-left: 20px;
    line-height: 1.8;
    color: #444;
}

.product-features li {
    margin-bottom: 10px;
}

/* ========== 技术参数表格 ========== */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    font-size: 0.95em;
}

.specs-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #eee;
}

.specs-table td:first-child {
    color: #333;
    font-weight: 600;
    width: 30%;
}

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

/* ========== 应用场景 ========== */
.product-scenarios {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 30px;
}

.scenario-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.1);
    transition: all 0.3s ease;
}

.scenario-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(21, 101, 192, 0.18);
}

.scenario-card h3 {
    color: #1565c0;
    font-size: 1.2em;
    margin: 0 0 12px 0;
}

.scenario-card p {
    color: #555;
    font-size: 0.95em;
    line-height: 1.6;
}

/* ========== 相关产品推荐 ========== */
.related-products {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px;
}

.related-products h2 {
    color: #1565c0;
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 40px;
    font-weight: 700;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.related-product {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(21, 101, 192, 0.1);
    padding: 24px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
}

.related-product:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(21, 101, 192, 0.18);
}

.related-product img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 1px solid #e3eafc;
}

.related-product h3 {
    color: #1565c0;
    font-size: 1.2em;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.related-product p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.5;
}

/* ========== 产品价格 ========== */
.product-price {
    margin: 20px 0;
    font-size: 1.8em;
    color: #d9534f;
    font-weight: bold;
}

.product-price span {
    font-size: 0.7em;
    vertical-align: super;
}

/* ========== 产品详情页响应式 ========== */
/* 中等屏幕 (992px-1199px) */
@media (max-width: 1199px) {
    .product-detail-container {
        gap: 40px;
    }

    .product-gallery {
        margin-top: 120px;
    }

    .product-title {
        font-size: 2.2em;
    }

    .scenarios-grid {
        gap: 20px;
    }
}

/* 平板尺寸 (768px-991px) */
@media (max-width: 991px) {
    .product-detail-page {
        padding: 120px 0 40px;
    }

    .product-detail-container {
        flex-direction: column;
        gap: 30px;
    }

    .product-gallery {
        margin-top: 0;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }

    .product-info {
        width: 100%;
    }

    .product-title {
        font-size: 2em;
    }

    .product-price {
        font-size: 1.6em;
    }

    .scenario-card {
        padding: 20px;
    }
}

/* 大手机尺寸 (576px-767px) */
@media (max-width: 767px) {
    .product-detail-page {
        padding: 100px 0 30px;
    }

    .product-main-image {
        margin-bottom: 15px;
    }

    .product-thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 1.8em;
    }

    .product-subtitle {
        font-size: 1em;
    }

    .product-description {
        font-size: 1em;
    }

    .specs-table {
        font-size: 0.9em;
    }

    .product-scenarios {
        margin-top: 60px;
    }
}

/* 小手机尺寸 (480px-575px) */
@media (max-width: 575px) {
    .product-detail-page {
        padding: 80px 0 20px;
    }

    .product-detail-container {
        padding: 0 15px;
    }

    .product-title {
        font-size: 1.6em;
    }

    .product-price {
        font-size: 1.4em;
    }

    .product-features h3,
    .product-specs h3,
    .product-scenarios h2 {
        font-size: 1.2em;
    }

    .scenarios-grid {
        grid-template-columns: 1fr;
    }

    .product-thumbnail {
        width: 50px;
        height: 50px;
    }
}

/* 超小手机尺寸 (小于480px) */
@media (max-width: 479px) {
    .product-detail-page {
        padding: 70px 0 15px;
    }

    .product-title {
        font-size: 1.5em;
    }

    .product-subtitle {
        font-size: 0.95em;
    }

    .product-description {
        font-size: 0.95em;
    }

    .product-features li {
        font-size: 0.9em;
    }

    .specs-table td {
        padding: 8px 6px;
        font-size: 0.85em;
    }

    .product-thumbnail {
        width: 45px;
        height: 45px;
    }

    .scenario-card {
        padding: 18px;
    }
}
