/* h5/hot.php 页面专用样式 */

/* 页面头部样式 */
.hot-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #e0e0e0;
    z-index: 1000;
}

.back-button {
    position: absolute;
    left: 16px;
    color: #333;
    font-size: 20px;
    text-decoration: none;
}

.header-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

/* 主内容区域样式 */
.container {
    padding-top: 60px;
    padding-bottom: 80px; /* 为底部导航栏留出空间 */
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

/* 页面标题区域 */
.page-header {
    margin-bottom: 6px;
}

.page-header p {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* 分类标签切换栏 */
.category-tabs {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab.active {
    background-color: #e4393c;
    color: #fff;
    font-weight: bold;
}

.tab.inactive {
    background-color: transparent;
    color: #333;
}

/* 商品列表区域 */
.product-section {
    margin-bottom: 20px;
}

/* 商品网格布局 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* 商品项样式 */
.product-item {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
}

.product-item a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.product-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-item:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 10px;
}



.product-price {
    font-size: 16px;
    color: #e4393c;
    font-weight: bold;
}

/* 添加到购物车按钮 */
.add-to-cart-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 35px;
    height: 35px;
    background-color: #e4393c;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(228, 57, 60, 0.3);
    transition: all 0.3s;
}

.add-to-cart-btn:hover {
    background-color: #d83438;
    transform: scale(1.1);
}

/* 无商品提示 */
.no-products {
    text-align: center;
    padding: 10px 20px;
    color: #999;
}

.no-products-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.no-products p {
    margin-bottom: 0;
    font-size: 14px;
}

/* 响应式调整 */
@media (min-width: 768px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .product-grid {
        gap: 10px;
    }
    
    .product-image {
        height: 160px;
    }
    
    .tab {
        font-size: 14px;
    }
}