/* 产品详情页基础布局 */
.product-detail {
    max-width: var(--max-width);
    margin: 2rem auto;
    padding: 0 2rem;
    align-items: start;
}

/* 产品轮播图样式 */
.product-slider {
    flex: 0 0 50%;
}

.product-slider .slider-container {
    position: relative;
    width: 100%;
    height: 410px;
    overflow: hidden;
    border-radius: 1px;
    margin-bottom: 1rem;
}

.product-slider .slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.product-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-slider .slide.active {
    opacity: 1;
}

.product-slider .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 轮播图控制按钮 */
.slider-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}

.prev-btn,
.next-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    padding: 0 1rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #fff;
}

/* 产品标题区域 */
.product-header {
    padding: 5px;      
    
}

.product-header h1 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.product-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
}

/* 产品展示区域 */
.product-showcase {
    margin: 4rem 0;
}

.showcase-row {
    display: flex;
}

.showcase-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.firt-row >div:first-child{
    flex:4;
}
.firt-row > div:last-child {
    flex: 6;
}
.second-row > div:first-child{
    flex:6;
}
.second-row > div:last-child{
    flex:4;
}
.showcase-text h2 {
    line-height: 1;
    font-size: 6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.showcase-text h2 span {
    display: block;
}

.showcase-image {
    flex: 1;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 配件介绍和标题 */
.parts-intro,
.parts-header {
    text-align: center;
    margin: 4rem auto;
}

.parts-intro h2,
.parts-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.parts-intro p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #666;
}

/* 产品类别网格 */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.category-item {
    background: #fff;
    text-align: center;
    text-decoration: none;
    color: var(--text-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.category-icon img {
    width: 100%;
    height: 100%;
    
}

.category-item h3 {
    font-size: 1.2rem;
    padding: 5px;
}

/* 响应式布局 */
@media screen and (max-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .product-detail  {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 5px;
    }
    .product-subtitle  .parts-intro{
        font-size: 16px;
    }
    .showcase-text h2{
        font-size: 3rem;
    }

   .parts-intro p{
    font-size: 16px;
   }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-header h1 {
        font-size: 22px;
    }

    .parts-intro h2,
    .parts-header h2 {
        font-size: 1.2rem;
    }
}

/* 面包屑导航样式 */
.breadcrumb {
    background: #f8f9fa;
    padding: 1rem 0;
    margin-top: 80px;
    border-bottom: 1px solid #eee;
}

.breadcrumb-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb i {
    font-size: 0.8rem;
    color: #999;
}

.breadcrumb span {
    color: var(--primary-color);
}
.product-slider .slider-container{
    margin-top: 0;
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .breadcrumb {
        margin-top: 75px;
    }
    
    .breadcrumb-container {
        padding: 0 1rem;
    }
    .product-slider .slider-container {
        margin-top: 0;
        height: 200px;
        touch-action: pan-y pinch-zoom;
    }
    
    .slider-controls {
        display: none; /* 隐藏左右箭头 */
    }
    
    .slider-dots {
        bottom: 0.5rem;
    }
} 