.hot-products {
    width: 100%;
    height: 37.29vw; /* 716/1920 * 100 = 37.29vw */
    background: #F8F8F8;
    border-radius: 0;
    padding: 3.49vw 0 0 0; /* 67/1920 * 100 = 3.49vw */
    position: relative;
}

.hot-products-title {
    font-family: "Source Han Sans CN", "Source Han Sans CN";
    font-weight: bold;
    font-size: 2.5vw; /* 48/1920 * 100 = 2.5vw */
    color: #00509F;
    line-height: 3.02vw; /* 58/1920 * 100 = 3.02vw */
    text-align: center;
    font-style: normal;
    text-transform: none;
    margin-bottom: 2.92vw; /* 56/1920 * 100 = 2.92vw */
}

.hot-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 25vw);
    gap: 2.08vw; /* 40/1920 * 100 = 2.08vw */
    justify-content: center; /* 居中整个网格 */
    max-width: 52.08vw; /* 1000/1920 * 100 = 52.08vw */
    width: 100%;
    margin: 0 auto;
    padding: 0 0.78vw; /* 15/1920 * 100 = 0.78vw */
}

.hot-product-item {
    width: 25vw; /* 480/1920 * 100 = 25vw */
    height: 21.88vw; /* 420/1920 * 100 = 21.88vw */
    background: #FFFFFF;
    border-radius: 1.88vw; /* 36/1920 * 100 = 1.88vw */
    border: 0.1vw solid #707070; /* 2/1920 * 100 = 0.1vw */
    padding: 0 1.88vw; /* 36/1920 * 100 = 1.88vw */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.hot-product-item:hover {
    border-color: #0050A2;
}

.hot-product-image {
    width: 100%;
    height: calc(100% - 6.04vw); /* 总高度减去标题框高度和底部间距，116/1920*100=6.04vw */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1.04vw 0; /* 20/1920 * 100 = 1.04vw */
}

.hot-product-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hot-product-title {
    position: relative;
    bottom: 1.15vw; /* 22/1920 * 100 = 1.15vw */
    width: 21.25vw; /* 408/1920 * 100 = 21.25vw */
    height: 3.75vw; /* 72/1920 * 100 = 3.75vw */
    background: #00509F;
    border-radius: 0.83vw; /* 16/1920 * 100 = 0.83vw */
    transition: background-color 0.3s ease;
    margin-top: auto; /* 将标题推到底部 */
    z-index: 1; /* 确保标题在图片上层 */
}

.hot-product-title a {
    font-family: "Source Han Sans CN", "Source Han Sans CN";
    font-weight: 400;
    font-size: 1.25vw; /* 24/1920 * 100 = 1.25vw */
    color: #FFFFFF;
    line-height: 2.76vw; /* 53/1920 * 100 = 2.76vw */
    text-align: center;
    font-style: normal;
    text-transform: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    white-space: nowrap; /* 防止文本换行 */
    overflow: hidden; /* 隐藏溢出文本 */
    text-overflow: ellipsis; /* 文本溢出时显示省略号 */
}

.hot-product-title:hover {
    background-color: #007DDB;
}

/* 热门产品轮播指示器样式 */
.hot-products-indicators {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.83vw; /* 16/1920 * 100 = 0.83vw */
    padding: 0;
    margin: 2.29vw auto 0 auto; /* 44/1920 * 100 = 2.29vw */
    z-index: 10;
}

/* 英文界面热门产品标题样式调整 - 只修改字号 */
html[lang="en"] .hot-product-title a,
body.en-site .hot-product-title a,
.index_en .hot-product-title a,
[data-lang="en"] .hot-product-title a {
    font-size: 1.1vw; /* 英文界面字号缩小 */
}

.hot-products-indicator {
    width: 0.83vw; /* 16/1920 * 100 = 0.83vw */
    height: 0.83vw; /* 16/1920 * 100 = 0.83vw */
    background: #CCCCCC;
    border-radius: 0.21vw; /* 4/1920 * 100 = 0.21vw */
    cursor: pointer;
    transition: all 0.3s ease;
}

.hot-products-indicator.active {
    background: #00509F;
}

.hot-products-side-box {
    position: absolute;
    margin-top: 18.44vw; /* 354/1920 * 100 = 18.44vw */
    transform: translateY(-50%);
    width: 3.33vw; /* 64/1920 * 100 = 3.33vw */
    height: 5vw; /* 96/1920 * 100 = 5vw */
    background: #CCCCCC;
    border-radius: 0.42vw; /* 8/1920 * 100 = 0.42vw */
    transition: background 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.hot-products-side-box.left {
    left: 18.54vw; /* 356/1920 * 100 = 18.54vw */
    margin-right: 2.08vw; /* 40/1920 * 100 = 2.08vw */
}
.hot-products-side-box.right {
    right: 18.54vw; /* 356/1920 * 100 = 18.54vw */
    margin-left: 2.08vw; /* 40/1920 * 100 = 2.08vw */
}
.hot-products-side-box:hover {
    background: #00509F;
}

/* 使用与轮播图相同的SVG箭头实现方式 */
.hot-products-arrow {
    width: 1.25vw; /* 24/1920 * 100 = 1.25vw */
    height: 2.5vw; /* 48/1920 * 100 = 2.5vw */
    display: block;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 1.25vw 2.5vw; /* 确保SVG按照指定尺寸显示 */
    transition: all 0.3s ease;
}

.hot-products-arrow.left {
    background-image: url('../images/home/路径 396.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.hot-products-arrow.right {
    background-image: url('../images/home/路径 396.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(180deg);
}

/* 492px以下屏幕适配 */
@media screen and (max-width: 492px) {
    /* 移动端背景板高度自适应 */
    .hot-products {
        height: auto; /* 改为自适应高度 */
        padding: 1.5vw;
    }

    .hot-products-title {
        margin-top: 2vw;
        margin-bottom: 2vw;
        font-size: 12px; /* 与方案定制标题保持一致 */
        line-height: 14px; /* 与方案定制标题保持一致 */
    }

    /* 其他样式转换为px并缩小到25% */
    .hot-products-grid {
        max-width: 250px; /* 1000px * 0.25 = 250px */
        width: 100%;
        gap: 10px; /* 40px * 0.25 = 10px */
        grid-template-columns: repeat(2, 120px); /* 固定列宽确保居中 */
        justify-content: center; /* 确保网格居中 */
        margin: 0 auto; /* 容器居中 */
    }

    .hot-product-item {
        width: 120px; /* 480px * 0.25 = 120px */
        height: 105px; /* 420px * 0.25 = 105px */
        padding: 0; /* 0px */
        border-radius: 9px; /* 36px * 0.25 = 9px */
        border-width: 0.5px; /* 2px * 0.25 = 0.5px */
    }

    .hot-product-image {
        margin-top: 0; /* 0px */
        margin-bottom: 0; /* 0px */
        padding: 5px 0; /* 20px * 0.25 = 5px */
        height: calc(100% - 29px); /* 116px * 0.25 = 29px */
    }

    .hot-product-title {
        width: 102px; /* 408px * 0.25 = 102px */
        bottom: -10px; /* 统一距离容器底部10px */
        height: 18px; /* 72px * 0.25 = 18px */
        border-radius: 4px; /* 16px * 0.25 = 4px */
        position: absolute; /* 仅移动端固定在卡片底部，避免随图片高度浮动 */
        left: 50%;
        transform: translateX(-50%);
    }

    .hot-product-title a {
        font-size: 6px; /* 24px * 0.25 = 6px */
        line-height: 18px; /* 配合容器高度 */
    }

    .hot-products-indicators {
        margin-top: 11px; /* 44px * 0.25 = 11px */
        gap: 4px; /* 16px * 0.25 = 4px */
        position: relative;
        bottom: 0;
    }

    .hot-products-indicator {
        width: 4px; /* 16px * 0.25 = 4px */
        height: 4px; /* 16px * 0.25 = 4px */
        border-radius: 1px; /* 4px * 0.25 = 1px */
    }

    .hot-products-side-box {
        width: 16px; /* 64px * 0.25 = 16px */
        height: 24px; /* 96px * 0.25 = 24px */
        border-radius: 2px; /* 8px * 0.25 = 2px */
        top: 50%;              /* 仅移动端使用top居中，避免错位 */
        transform: translateY(-50%);
        margin-top: 0;
    }

    .hot-products-side-box.left {
        left: 5px; /* 调整到容器左侧合适位置 */
        margin-right: 0;
    }

    .hot-products-side-box.right {
        right: 5px; /* 调整到容器右侧合适位置 */
        margin-left: 0;
    }

    .hot-products-arrow {
        width: 6px; /* 24px * 0.25 = 6px */
        height: 12px; /* 48px * 0.25 = 12px */
        background-size: 6px 12px; /* 对应缩小 */
    }
    
    /* 491px以下英文界面特殊处理 */
    html[lang="en"] .hot-product-title a,
    body.en-site .hot-product-title a,
    .index_en .hot-product-title a,
    [data-lang="en"] .hot-product-title a,
    .english-version .hot-product-title a {
        font-size: 5px !important; /* 20px * 0.25 = 5px (英文界面基础字号) */
        transform: scale(0.8); /* 适当缩放以适应小容器 */
        transform-origin: center center;
        line-height: 18px; /* 与容器高度一致 */
        white-space: nowrap;
        width: 125%; /* 适当增加宽度 */
        height: 100%;
        justify-content: center;
        align-items: center;
        display: flex;
        position: relative;
        left: -12.5%; /* 调整偏移 */
    }
}

