
/* 产品详情页样式 */
.product-detail-wrap {
    background: #fff;
}

/* 产品头部区域 - 左右布局 */
.product-header-section {
    padding: 60px 0;
    background: #fff;
}

.product-header-wrapper {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    justify-content: center;
}

/* 左侧：产品主图 */
.product-image-wrap {
    flex: 0 0 25%;
}

.product-main-image {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
}

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

/* 右侧：产品信息 */
.product-info-wrap {
    flex: 0 0 25%;
    padding-top: 20px;
}

/* 产品型号标题 */
.product-model {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    line-height: 1.3;
}

/* 产品规格参数表格 */
.product-specs-table {
    margin-top: 25px;
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    align-items: flex-start;
}

.spec-row:first-child {
    border-top: 1px solid #e5e5e5;
}

.spec-name {
    font-size: 15px;
    color: #666;
    min-width: 150px;
    font-weight: 500;
    line-height: 1.6;
}

.spec-detail {
    font-size: 15px;
    color: #333;
    flex: 1;
    line-height: 1.6;
}

/* 产品描述 */
.product-description {
    margin-top: 12px;
    margin-bottom: 35px;
    padding-top: 12px;
}

.product-description p {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
}

.product-description p:last-child {
    margin-bottom: 0;
}

/* 操作按钮 */
.product-actions {
    margin-top: 40px;
}

.btn-consult {
    background: #0072ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 16px 48px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,114,255,0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    cursor: pointer;
}

.btn-consult:hover {
    background: #ff9700;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255,151,0,0.35);
    color: #fff;
}

.btn-consult i {
    font-size: 18px;
}

/* 产品信息主体区域 */
.product-main {
    background: #f8f8f8;
}

.product-section {
    padding: 80px 0;
}

.product-section.white-bg {
    background: #fff;
}

/* Tab 导航 - 无边框下划线 */
.product-tabs {
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 0;
}

.product-tabs .tab-item {
    padding: 15px 0;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: -1px;
    text-decoration: none;
}

.product-tabs .tab-item:hover {
    color: #0072ff;
    border-bottom-color: rgba(0, 114, 255, 0.4);
}

.product-tabs .tab-item.active {
    color: #0072ff;
    border-bottom-color: #0072ff;
    font-weight: 500;
}

/* Tab 内容区 */
.tab-content-area {
    padding: 60px 0;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.tab-pane .content {
    max-width: 960px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

.tab-pane .content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 30px 0;
}

/* 相关产品区域 */
.related-products {
    background: #fff;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 34px;
    font-weight: 500;
    color: #333;
    margin-bottom: 10px;
}

.section-title .subtitle {
    font-size: 20px;
    color: #999;
    text-transform: uppercase;
    opacity: 0.5;
}

/* 产品卡片网格 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-card-image {
    width: 100%;
    padding-top: 100%;  /* 1:1 比例，正方形 */
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-image img {
    transform: scale(1.1);
}

.product-card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-title {
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-card:hover .product-card-title {
    color: #0072ff;
}

.product-card-desc {
    font-size: 14px;
    color: #999;
    line-height: 1.6;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* 响应式设计 */
@media (max-width: 960px) {
    .product-header-wrapper {
        flex-direction: column;
        gap: 40px;
    }
    
    .product-image-wrap {
        flex: 0 0 100%;
    }
    
    .product-section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    /* 平板：一行3个 */
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 768px) {
    /* 小平板：一行2个 */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-card-title {
        font-size: 16px;
    }
    
    .product-card-desc {
        font-size: 13px;
    }
}

@media (max-width: 640px) {
    .product-header-section {
        padding: 40px 0;
    }
    
    .product-header-wrapper {
        gap: 30px;
    }
    
    .product-info-wrap {
        padding-top: 0;
    }
    
    .product-model {
        font-size: 22px;
        padding-bottom: 15px;
    }
    
    .spec-row {
        flex-direction: column;
        padding: 12px 0;
        gap: 5px;
    }
    
    .spec-name {
        min-width: auto;
        font-size: 14px;
        color: #999;
    }
    
    .spec-detail {
        font-size: 14px;
    }
    
    .product-description {
        margin-top: 25px;
        margin-bottom: 30px;
        padding-top: 25px;
    }
    
    .product-description p {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    .btn-consult {
        width: 100%;
        justify-content: center;
        padding: 14px 36px;
        font-size: 15px;
    }
    
    .product-section {
        padding: 40px 0;
    }
    
    .section-title h2 {
        font-size: 24px;
    }
    
    .product-tabs {
        gap: 20px;
        overflow-x: auto;
        justify-content: flex-start;
        padding: 0 20px;
    }
    
    .product-tabs .tab-item {
        font-size: 16px;
        white-space: nowrap;
    }
    
    .tab-content-area {
        padding: 40px 0;
    }
    
    /* 移动端：一行1个 */
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card-content {
        padding: 20px;
    }
    
    .product-card-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .product-card-desc {
        font-size: 13px;
    }
}