/* 产品列表页 */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 40px 0 30px;
}

.products-header h1 {
    font-size: 28px;
}

.search-filter {
    display: flex;
    gap: 10px;
}

.search-filter input {
    width: 250px;
    padding: 8px 12px;
}

.search-filter select {
    padding: 8px 12px;
}

.product-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.product-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.product-item:last-child {
    border-bottom: none;
}

.product-image {
    width: 120px;
    height: 90px;
    margin-right: 20px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
}

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

.product-details {
    flex: 1;
}

.product-details h2 {
    font-size: 18px;
    margin-bottom: 5px;
}

.product-details h2 a:hover {
    color: #1890ff;
}

.product-details .description {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-details .meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #888;
}

.product-details .price {
    color: #f5222d;
    font-weight: bold;
}

/* 产品详情页 */
.product-detail {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin-top: 30px;
}

.product-main {
    display: flex;
    margin-bottom: 40px;
}

.product-gallery {
    width: 50%;
    padding-right: 30px;
}

.main-image {
    height: 300px;
	background-color: #f5f5f5;
	background-size: contain;
	background-position: center;
	background-repeat: no-repeat;
	margin-bottom: 20px;
	border: 1px solid #eee;
}

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

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnails img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #eee;
    border-radius: 4px;
    cursor: pointer;
    transition: border-color 0.3s;
}

.thumbnails img:hover {
    border-color: #1890ff;
}

.product-info {
    width: 50%;
}

.product-info h1 {
    font-size: 24px;
    margin-bottom: 15px;
}

.product-info .meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 14px;
    color: #666;
}

.product-info .category {
    color: #1890ff;
    background-color: #e6f7ff;
    padding: 2px 8px;
    border-radius: 4px;
}

.price-section {
    margin-bottom: 25px;
}

.price-section .price {
    font-size: 28px;
    color: #f5222d;
    font-weight: bold;
    margin-right: 15px;
}

.price-section .original-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}

.actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.share {
    display: flex;
    align-items: center;
    gap: 10px;
}

.share-icon {
    font-size: 20px;
    cursor: pointer;
}

.share-icon.wechat {
    color: #07C160;
}

.share-icon.qq {
    color: #12B7F5;
}

.share-icon.weibo {
    color: #E6162D;
}

/* 标签页样式 */
.product-tabs {
    margin-bottom: 40px;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.tab-nav li {
    margin-right: 30px;
}

.tab-nav a {
    display: block;
    padding: 10px 0;
    font-weight: 500;
    position: relative;
}

.tab-nav li.active a {
    color: #1890ff;
}

.tab-nav li.active a:after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #1890ff;
}

.tab-pane {
    display: none;
    padding: 0 10px;
}

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

.tab-pane h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.tab-pane ul, .tab-pane ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.tab-pane li {
    margin-bottom: 8px;
}

/* 评价表单 */
.review-form {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.review-form h4 {
    margin-bottom: 15px;
}

.rating-input {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.rating-input span {
    margin-right: 10px;
}

.stars {
    display: flex;
    margin-right: 15px;
}

.star {
    font-size: 20px;
    color: #ffc107;
    cursor: pointer;
}

.review-form textarea {
    width: 100%;
    margin-bottom: 15px;
}

/* 评价列表 */
.review-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.review-header .user {
    font-weight: bold;
    margin-right: 15px;
}

.review-header .stars {
    margin-right: 15px;
}

.review-header .date {
    color: #999;
}

.review-content p {
    color: #333;
}

/* 相关产品 */
.related-products {
    margin-top: 40px;
}

.related-products h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}