:root {
    --primary-color: #165dff;
    --white: #ffffff;
    --text-color: #333333;
    --light-gray: #c6c6c6; /* 匹配设计图浅灰背景 */
    --card-bg: #ffffff;
}

/* 热门产品模块容器 - 全宽无左右留白 */
.hot-products {
    padding: 40px 0;
    background: var(--light-gray); /* 浅灰色背景 */
    text-align: center;
    margin: 0 !important;
    border: none !important;
}

.hot-products .container {
    max-width: 100%;
    padding: 0;
}

.hot-products h2 {
    font-size: 42px;
    font-weight: bold;
    color: #000000; /* 黑色标题 */
    margin-bottom: 20px;
    position: static; /* 去掉原有的下划线 */
}

.hot-products h2::after {
    display: none; /* 隐藏原有的蓝色下划线 */
}

.product-subtitle {
    font-size: 24px;
    color: #000000;
    margin-bottom: 40px;
}

/* 商品列表网格布局：4列，间距缩小 */
.product-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* 卡片之间的间距 */
    max-width: 1000px;
    margin: 0 auto 30px;
}

/* 商品卡片样式 */
.product-card {
    background: var(--card-bg);
    border-radius: 8px; /* 圆角 */
    padding: 30px 20px;
    transition: all 0.3s ease;
}

.product-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-link:hover .product-card {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 商品图片容器 */
.product-img {
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.product-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* 保证图片完整显示 */
}

/* 商品名称：只保留名称，无描述 */
.product-name {
    font-size: 20px;
    font-weight: 600;
    color: #000000;
    text-align: center;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 更多产品按钮：蓝色圆角 */
.product-more-wrap {
    text-align: center;
}
.more-product-btn {
    display: inline-block;
    padding: 12px 40px;
    background: var(--primary-color);
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.more-product-btn:hover {
    background: #0047cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 93, 255, 0.2);
}

/* 响应式适配 - 保持4列布局，仅缩放 */
@media (max-width: 992px) {
    .product-list {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
    .hot-products h2 {
        font-size: 36px;
    }
    .product-subtitle {
        font-size: 20px;
    }
    .product-card {
        padding: 25px 15px;
    }
    .product-img {
        height: 160px;
    }
    .product-name {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hot-products {
        padding: 25px 0; /* 去除左右留白 */
    }
    .product-list {
        grid-template-columns: repeat(4, 1fr); /* 保持4列 */
        gap: 8px;
        padding: 0; /* 去除左右留白 */
    }
    .hot-products h2 {
        font-size: 28px;
    }
    .product-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .product-card {
        padding: 15px 8px;
    }
    .product-img {
        height: 100px;
        margin-bottom: 12px;
    }
    .product-name {
        font-size: 13px;
    }
    .more-product-btn {
        padding: 10px 30px;
        font-size: 16px;
    }
}

/* 小屏手机保持4列，进一步缩放 */
@media (max-width: 576px) {
    .hot-products {
        padding: 20px 0;
    }
    .product-list {
        grid-template-columns: repeat(4, 1fr); /* 保持4列 */
        gap: 6px;
    }
    .hot-products h2 {
        font-size: 22px;
        margin-bottom: 10px;
    }
    .product-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    .product-card {
        padding: 10px 5px;
    }
    .product-img {
        height: 75px;
        margin-bottom: 8px;
    }
    .product-name {
        font-size: 10px;
    }
    .more-product-btn {
        padding: 8px 24px;
        font-size: 14px;
    }
}