/* 页面banner */
.page-banner {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/equipment-banner.png');
    background-size: cover;
    background-position: center;
    padding: 60px 0;
    color: #fff;
    margin-bottom: 40px;
}

.page-banner h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.breadcrumb {
    font-size: 14px;
}

.breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #ffd700;
}

/* 商品分类导航 */
.equipment-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.nav-item {
    flex: 1;
    text-align: center;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.nav-item:hover,
.nav-item.active {
    background: #f5f5f5;
}

.nav-item i {
    display: block;
    font-size: 32px;
    color: #c00;
    margin-bottom: 10px;
}

.nav-item span {
    font-size: 16px;
    color: #333;
}

/* 商品筛选区 */
.filter-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
}

.filter-label {
    width: 80px;
    color: #666;
    font-size: 14px;
}

.filter-options {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-options a {
    padding: 5px 15px;
    color: #666;
    text-decoration: none;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.filter-options a:hover,
.filter-options a.active {
    background: #c00;
    color: #fff;
}

/* 工具栏 */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.sort-options {
    display: flex;
    gap: 20px;
}

.sort-options a {
    color: #666;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sort-options a:hover,
.sort-options a.active {
    color: #c00;
}

.view-options {
    display: flex;
    align-items: center;
    gap: 20px;
}

.total {
    color: #666;
    font-size: 14px;
}

.view-mode {
    display: flex;
    gap: 10px;
}

.view-mode button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #666;
    transition: all 0.3s ease;
}

.view-mode button:hover,
.view-mode button.active {
    color: #c00;
}

/* 商品列表 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.product-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.product-image {
    position: relative;
    height: 200px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    gap: 5px;
}

.tag {
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
    color: #fff;
}

.tag.new { background: #c00; }
.tag.hot { background: #f90; }
.tag.discount { background: #0c0; }

.quick-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    transition: all 0.3s ease;
}

.product-image:hover .quick-actions {
    opacity: 1;
}

.quick-actions button {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-actions button:hover {
    background: #c00;
    color: #fff;
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 16px;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.rating {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #f90;
}

.sales {
    font-size: 12px;
    color: #999;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.price {
    font-size: 20px;
    color: #c00;
    font-weight: bold;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.btn-buy {
    display: block;
    width: 100%;
    padding: 8px 0;
    background: #c00;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-buy:hover {
    background: #a00;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: #c00;
    color: #fff;
    border-color: #c00;
}

/* 热门推荐 */
.recommend-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    position: relative;
}

.section-title:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 50px;
    height: 2px;
    background: #c00;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.recommend-card {
    position: relative;
    height: 200px;
    border-radius: 10px;
    overflow: hidden;
}

.recommend-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.recommend-card:hover img {
    transform: scale(1.1);
}

.recommend-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
}

.recommend-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.recommend-info p {
    font-size: 14px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.recommend-info .price {
    font-size: 24px;
    color: #ffd700;
} 