/* 产品详情页样式 */
.product-detail {
    margin-top: 100px;
    padding: 50px 0;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* 产品图片 */
.product-images {
    position: relative;
}

.main-image {
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.main-image img {
    width: 100%;
    height: auto;
}

.image-thumbs {
    display: flex;
    gap: 10px;
}

.image-thumbs img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.image-thumbs img:hover {
    opacity: 0.8;
}

/* 产品信息 */
.product-info h1 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #333;
}

.price {
    font-size: 28px;
    color: #ff6b81;
    margin-bottom: 20px;
}

.specs {
    margin-bottom: 30px;
}

.specs p {
    color: #666;
    margin-bottom: 10px;
}

.description {
    margin-bottom: 30px;
}

.description h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.description p {
    color: #666;
    line-height: 1.8;
}

.benefits {
    margin-bottom: 30px;
}

.benefits h2 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #333;
}

.benefits ul {
    list-style: none;
}

.benefits li {
    color: #666;
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.benefits li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ff6b81;
}

/* 购买区域 */
.purchase {
    display: flex;
    gap: 20px;
    align-items: center;
}

.quantity {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.quantity button {
    width: 40px;
    height: 40px;
    border: none;
    background: #f8f9fa;
    cursor: pointer;
}

.quantity input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 16px;
}

.add-to-cart {
    flex: 1;
    padding: 12px 30px;
    background: #ff6b81;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.add-to-cart:hover {
    background: #ff4757;
}

/* 详情内容 */
.detail-content {
    padding: 50px 0;
    background: #f8f9fa;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab {
    padding: 10px 30px;
    border: none;
    background: none;
    color: #666;
    cursor: pointer;
    font-size: 16px;
    position: relative;
}

.tab.active {
    color: #ff6b81;
}

.tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff6b81;
}

.tab-content img {
    width: 100%;
    height: auto;
}

/* 相关推荐 */
.related-products {
    padding: 50px 0;
    background: #fff;
}

.related-products .product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-item:hover {
    transform: translateY(-10px);
}

.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
}

.product-item p {
    color: #666;
    margin-bottom: 10px;
}

.product-item .price {
    font-size: 20px;
    color: #ff6b81;
} 