/**
 * 产品详情页样式
 * 与首页风格保持一致
 */

/* 产品详情 */
.product-detail {
    padding: 40px 0;
}

.product-detail .wrapper {
    max-width: 1200px;
}

/* 主信息区域 */
.product-main {
    display: flex;
    gap: 50px;
    margin-bottom: 60px;
}

/* 图片展示 */
.product-gallery {
    flex-shrink: 0;
    width: 450px;
}

.main-image {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* 产品信息 */
.product-info {
    flex: 1;
}

.product-info h1 {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.4;
}

.product-info .summary {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.price-box {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.price-box .label {
    color: #666;
    font-size: 14px;
    margin-right: 15px;
}

.price-box .price {
    font-size: 32px;
    color: #e74c3c;
    font-weight: 700;
}

.action-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.action-btns .btn-primary,
.action-btns .btn-secondary {
    flex: 1;
    padding: 14px 30px;
    text-align: center;
    text-decoration: none;
    border-radius: 30px;
    font-size: 16px;
    transition: all 0.3s;
}

.action-btns .btn-primary {
    background: #3498db;
    color: #fff;
}

.action-btns .btn-primary:hover {
    background: #2980b9;
}

.action-btns .btn-secondary {
    background: #fff;
    color: #3498db;
    border: 2px solid #3498db;
}

.action-btns .btn-secondary:hover {
    background: #3498db;
    color: #fff;
}

.contact-info {
    padding: 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.contact-info p {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.contact-info p:last-child {
    margin-bottom: 0;
}

.contact-info strong {
    color: #e74c3c;
    font-size: 18px;
}

/* 产品内容 */
.product-content {
    margin-bottom: 60px;
}

.product-content h2 {
    font-size: 24px;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 2px solid #3498db;
    margin-bottom: 30px;
}

.content-body {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    line-height: 1.8;
    color: #666;
}

.content-body img {
    max-width: 100%;
    height: auto;
    margin: 15px 0;
}

.content-body p {
    margin-bottom: 15px;
}

/* 相关产品 */
.related-products h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 30px;
}

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

.product-list .item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.product-list .item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.product-list .pic {
    height: 180px;
    overflow: hidden;
}

.product-list .pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-list h3 {
    padding: 15px;
    font-size: 14px;
    font-weight: normal;
    text-align: center;
}

.product-list h3 a {
    color: #333;
    text-decoration: none;
}

.product-list h3 a:hover {
    color: #3498db;
}

/* 响应式 */
@media (max-width: 992px) {
    .product-main {
        flex-direction: column;
    }
    
    .product-gallery {
        width: 100%;
    }
    
    .product-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .product-info h1 {
        font-size: 22px;
    }
    
    .price-box .price {
        font-size: 26px;
    }
    
    .action-btns {
        flex-direction: column;
    }
    
    .product-list {
        grid-template-columns: 1fr;
    }
}
