/* 商品详情容器 */
.product-detail-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
}

/* 轮播主区域 */
.gallery-container {
    position: relative;
    margin-bottom: 30px;
}

.main-slider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.main-slider .slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.main-slider .slide.active {
    opacity: 1;
}

.main-slider img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #f8f9fa;
}

/* 缩略图轨道 */
.thumbnail-track {
    display: flex;
    gap: 10px;
    padding: 15px 0;
    overflow-x: auto;
    scrollbar-width: thin;
}

.thumbnail {
    flex: 0 0 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail.active {
    border-color: #3498db;
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

/* 商品信息 */
.product-info {
    padding: 20px;
    background: #fff;
    border-radius: 12px;
}

.product-title {
    color: #2c3e50;
    border-bottom: 2px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

.specs-box h3 {
    color: #3498db;
    margin-bottom: 15px;
}

.specs-box li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
}

.specs-box li span:first-child {
    color: #666;
    min-width: 100px;
}

/* 收藏按钮 */
.favorite-btn {
    width: 100%;
    padding: 15px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s;
}

.favorite-btn.active {
    background: #2ed573;
}

.heart-icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-slider {
        height: 400px;
    }
    
    .thumbnail {
        flex-basis: 60px;
        height: 60px;
    }
    
    .product-info {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .main-slider {
        height: 300px;
    }
    
    .specs-box li {
        flex-direction: column;
    }
}
/* 收藏提示 */
.floating-notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 1000;
    animation: floatUp 0.5s ease;
}

@keyframes floatUp {
    from { bottom: -50px; opacity: 0; }
    to { bottom: 30px; opacity: 1; }
}

/* 收藏夹侧边栏内容 */
#favoritesList .fav-item {
    display: flex;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

#favoritesList img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 4px;
}

#favoritesList button {
    margin-left: auto;
    background: transparent;
    border: none;
    color: #ff4757;
    font-size: 1.2em;
    cursor: pointer;
}
/* 价格条目容器 */
.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 分类名称样式 */
.category {
    font-weight: 600;
    color: #34495e;
    text-transform: uppercase;
    font-size: 0.9em;
}

/* 价格标签增强样式 */
.price-tag {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.price-tag::before {
    content: '￥';
    font-size: 0.8em;
    margin-right: 3px;
    opacity: 0.9;
}

/* 悬停动效 */
.specs-box li:hover .price-tag {
    transform: translateX(-5px);
    transition: all 0.3s ease;
}
