/* 产品详情页面样式 */
.product-detail {
    padding: 2rem 0;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* 面包屑导航 */
.breadcrumb {
    padding: 1rem 0;
    background-color: #f8f9fa;
    margin-bottom: 2rem;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #333;
}

.breadcrumb span {
    color: #333;
    font-weight: 500;
}

/* 产品图片展示 */
.product-gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
}

@media (min-width: 768px) {
    .product-gallery {
        grid-template-columns: 120px 1fr;
        gap: 20px;
    }
}

.product-gallery__main {
    position: relative;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f9f9;
    grid-column: 1 / -1;
    height: 400px;
    cursor: crosshair;
}

@media (min-width: 768px) {
    .product-gallery__main {
        grid-column: 2;
        grid-row: 1;
    }
}

.product-gallery__main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-gallery__thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

@media (min-width: 768px) {
    .product-gallery__thumbs {
        flex-direction: column;
        grid-column: 1;
        grid-row: 1;
        max-height: 400px;
        overflow-y: auto;
        overflow-x: hidden;
    }
}

.product-gallery__thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.product-gallery__thumbs img:hover {
    border-color: #007bff;
}

.product-gallery__thumbs img.active {
    border: 2px solid #007bff;
}

.zoom-lens {
    position: absolute;
    border: 2px solid #0275d8;
    width: 100px;
    height: 100px;
    background-color: rgba(255,255,255,0.3);
    cursor: crosshair;
    display: none;
    pointer-events: none;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

.product-gallery__zoom {
    position: absolute;
    top: 0;
    right: -350px;
    width: 350px;
    height: 350px;
    border: 1px solid #ddd;
    background-repeat: no-repeat;
    background-position: center;
    display: none;
    z-index: 1000;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
    border-radius: 5px;
    overflow: hidden;
    background-color: #fff;
    pointer-events: none;
}

/* 产品信息 */
.product-info__title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
}

.product-info__code {
    color: #666;
    margin-bottom: 15px;
    font-size: 14px;
}

.product-info__price {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
}

.price-range {
    width: 100%;
}

.price-range table {
    width: 100%;
    border-collapse: collapse;
}

.price-range table th,
.price-range table td {
    padding: 8px 12px;
    text-align: left;
}

.price-range table th {
    background-color: #e9ecef;
    color: #495057;
    font-weight: 500;
}

.price-range table tr:nth-child(even) {
    background-color: #f2f2f2;
}

/* 询价按钮样式 */
.inquiry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 300px;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.3s ease;
    text-transform: none;
    margin: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.inquiry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.inquiry-btn i {
    margin-right: 8px;
    font-size: 18px;
}

/* 产品选项 */
.option-group {
    margin-bottom: 1.5rem;
}

.option-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.color-options {
    display: flex;
    gap: 1rem;
}

.color-option {
    width: 40px;
    height: 40px;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    padding: 0;
}

.color-option.active {
    border-color: #007bff;
}

.color-option .color-name {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.875rem;
    color: #666;
}

.material-options {
    display: flex;
    gap: 1rem;
}

.material-option {
    padding: 0.5rem 1.5rem;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    background: none;
    cursor: pointer;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s;
}

.material-option.active {
    border-color: #007bff;
    background-color: #007bff;
    color: white;
}

.customization-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

/* 数量选择 */
.product-info__quantity {
    margin: 20px 0;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    width: fit-content;
    margin: 10px 0;
}

.quantity-input button {
    background-color: #f8f9fa;
    border: none;
    color: #333;
    width: 36px;
    height: 36px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quantity-input button:hover {
    background-color: #e9ecef;
}

.quantity-input input {
    width: 60px;
    height: 36px;
    text-align: center;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    font-size: 14px;
}

.minimum-order {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* 操作按钮 */
.product-info__actions {
    display: flex;
    justify-content: flex-start;
    margin: 20px 0;
}

.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-outline {
    background: none;
    border: 2px solid #007bff;
    color: #007bff;
}

.btn-outline:hover {
    background-color: #007bff;
    color: white;
}

/* 产品特点 */
.product-info__features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
}

.feature-item {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 14px;
    color: #555;
}

.feature-item i {
    margin-right: 8px;
    color: #007bff;
    font-size: 18px;
}

/* 产品标签页 */
.product-tabs {
    margin-top: 40px;
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-button:hover {
    color: #007bff;
}

.tab-button.active {
    color: #007bff;
    border-bottom-color: #007bff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    margin-bottom: 1.5rem;
    color: #333;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
}

.spec-table th,
.spec-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.spec-table th {
    width: 30%;
    color: #555;
    font-weight: 500;
    background-color: #f8f9fa;
}

/* 相关产品 */
.related-products {
    margin-top: 50px;
}

.related-products h2 {
    margin-bottom: 25px;
    font-size: 22px;
    color: #333;
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: #333;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.product-card {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card__image img {
    width: 100%;
    height: auto;
    display: block;
}

.product-card__content {
    padding: 1rem;
}

.product-card__content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
    color: #333;
}

.product-card__price {
    color: #007bff;
    font-weight: 500;
    margin-bottom: 1rem;
}

.product-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .product-gallery__zoom {
        right: -300px;
        width: 300px;
        height: 300px;
    }
}

/* @media (max-width: 992px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery__zoom {
        display: none !important;
    }
    
    .zoom-lens {
        display: none !important;
    }
} */

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-gallery__main {
        height: 300px;
    }
    
    .product-gallery__thumbs img {
        width: 60px;
        height: 60px;
    }
    
    .product-info__actions {
        flex-direction: column;
    }
    
    .tabs-header {
        flex-wrap: wrap;
    }
    
    .tab-button {
        padding: 8px 15px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .product-info__features {
        flex-direction: column;
        gap: 1rem;
    }
} 