@charset "utf-8";
/* =====================================================
   Header zkh-style: Logo + Search + Cart + Batch order
   Floating (fixed) header, viewport-adaptive widths
   ===================================================== */

/* ---- Header container: fixed floating + height ---- */
.yx_head {
    padding: 0 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: auto !important;
    margin-left: 0 !important;
    min-width: 0;
    z-index: 9999 !important;
    height: 150px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

/* ---- Search wrapper ---- */
.yx_head .search {
    position: absolute;
    top: 20px;
    right: auto;
    left: 300px;
    width: 480px;
    z-index: 10000;
}
.wrap_1280 .yx_head .search {
    left: 300px;
    margin-left: 0;
    width: 850px;
}
.wrap_1600 .yx_head .search {
    left: 300px;
    margin-left: 0;
    width: 1100px;
}

/* ---- Search box: white, light border, radius ---- */
.yx_head .search-box {
    position: static !important;
    top: 0 !important;
    left: auto !important;
    margin-left: 0 !important;
    overflow: hidden;
    width: 100%;
    height: 48px;
    background: #ffffff;
    border: 2px solid #e60012 !important;
    border-radius: 6px 0 0 6px;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.yx_head .search-box form {
    position: relative;
    height: 42px;
}

/* ---- Input ---- */
.yx_head .search-box input.data_q {
    float: left;
    box-sizing: border-box;
    width: 354px;
    height: 46px;
    padding: 0 44px 0 12px;
    line-height: 46px;
    border: 0;
    background: #ffffff;
    color: #333333;
    font-size: 14px;
    outline: none;
}
.yx_head .search-box input.data_q::placeholder {
    color: #999999;
}
.yx_head .search-box input.data_q::-webkit-input-placeholder {
    color: #999999;
}
.yx_head .search-box input.data_q::-moz-placeholder {
    color: #999999;
}
.wrap_1280 .yx_head .search-box input.data_q {
    width: 724px;
}
.wrap_1600 .yx_head .search-box input.data_q {
    width: 974px;
}
.yx_head .search-box input.data_q:focus {
    color: #333333;
}

/* ---- Search button: red gradient ---- */
.yx_head .search-box button {
    float: right;
    width: 90px;
    height: 48px;
    border: 0;
    background: #e60012;
    color: #ffffff;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}
.yx_head .search-box button:hover {
    background: #c8000f;
}

/* ---- Camera button (OCR search) ---- */
.yx_head .search-box .camera-btn {
    position: absolute;
    right: 100px;
    top: 0;
    width: 36px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 2;
}
.yx_head .search-box .camera-btn:hover {
    background: #f7f7f7;
}
.yx_head .search-box .icon-camera {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.yx_head .search-box .camera-btn:hover .icon-camera {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f74747' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.yx_head .search-box a.close {
    display: none;
}

/* ---- Placeholder color ---- */
.yx_head .search-box input.data_q::-webkit-input-placeholder {
    color: #999999;
}
.yx_head .search-box input.data_q:-moz-placeholder {
    color: #999999;
}
.yx_head .search-box input.data_q::-moz-placeholder {
    color: #999999;
}
.yx_head .search-box input.data_q:-ms-input-placeholder {
    color: #999999;
}

/* ---- Focus effect: red border + glow ---- */
.yx_head .search-box:focus-within {
    border-color: #f74747;
    box-shadow: 0 0 8px rgba(247, 71, 71, 0.28);
}

/* ---- Hot keywords ---- */
.yx_head .hot_keywords {
    position: absolute;
    top: 52px;
    left: 0;
    margin-left: 0;
    width: 100%;
    height: auto;
    float: none;
    text-align: left;
}
.yx_head .hot_keywords a {
    margin-left: 0;
    margin-right: 8px;
    color: #000000;
    font-family: SimSun, 宋体, serif;
    font-size: 12px;
    line-height: 20px;
}
.yx_head .hot_keywords a:hover {
    color: #f74747;
    text-decoration: none;
}

/* ---- Logo ---- */
.yx_head .logo {
    position: absolute;
    left: 20px !important;
    top: 24px;
    padding-left: 0 !important;
    margin-left: 0 !important;
}

/* ---- Logo2 (sub logo) ---- */
.yx_head .logo2 {
    position: absolute;
    top: 30px;
    right: 170px;
    z-index: 10000;
    display: none;
}
.wrap_1280 .yx_head .logo2,
.wrap_1600 .yx_head .logo2 {
    display: block;
}

/* ---- Cart ---- */
.yx_head .car {
    position: absolute;
    top: 53px !important;
    margin-top: 0 !important;
    right: 40px;
    width: auto;
    height: 44px;
    z-index: 10000;
}
.yx_head .car .car-btn {
    display: block;
    padding: 0;
}
.yx_head .car .car-btn a {
    position: relative;
    display: block;
    height: 48px;
    padding: 0 12px;
    line-height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
}
.yx_head .car .car-btn a:hover {
    background: #f7f7f7;
}
.yx_head .car .icon-buy {
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: -4px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1.6'/%3E%3Ccircle cx='18' cy='21' r='1.6'/%3E%3Cpath d='M2 3h3l2.4 12.2a1.5 1.5 0 0 0 1.5 1.2h8.7a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.yx_head .car .car-btn a b {
    font-weight: normal;
    font-size: 14px;
    color: #333333;
    line-height: 42px;
}
.yx_head .car .car-btn a:hover b {
    color: #f74747;
}
.yx_head .car .icon-num1 {
    position: absolute;
    top: -6px;
    right: -4px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    line-height: 16px;
    text-align: center;
    font-style: normal;
    font-size: 11px;
    color: #ffffff;
    background: #f74747;
    border-radius: 8px;
}
.yx_head .car .icon-triangle1 {
    display: none;
}

/* ---- Batch order entry (reserved) ---- */
.yx_head .batch-btn {
    position: absolute;
    top: 51px;
    right: 200px !important;
    z-index: 10000;
}
.yx_head .batch-btn a {
    display: block;
    height: 48px;
    padding: 0 14px;
    line-height: 48px;
    background: transparent;
    border: none;
    border-radius: 0;
    color: #333333;
    font-size: 14px;
    text-decoration: none;
}
.yx_head .batch-btn a:hover {
    background: #f7f7f7;
    color: #f74747;
}

/* =====================================================
   Viewport-adaptive fallback (media queries win over
   wrap classes), so the search box fits every monitor
   ===================================================== */
@media (min-width: 1920px) {
    .yx_head .search {
        left: 50% !important;
        margin-left: -425px !important;
        width: 850px !important;
    }
    .yx_head .search-box input.data_q {
        width: 724px !important;
    }
}
@media (min-width: 1600px) and (max-width: 1919px) {
    .yx_head .search {
        left: 50% !important;
        margin-left: -350px !important;
        width: 700px !important;
    }
    .yx_head .search-box input.data_q {
        width: 574px !important;
    }
}
@media (min-width: 1280px) and (max-width: 1599px) {
    .yx_head .search {
        left: 50% !important;
        margin-left: -280px !important;
        width: 560px !important;
    }
    .yx_head .search-box input.data_q {
        width: 434px !important;
    }
}
@media (max-width: 1279px) {
    .yx_head .search {
        left: 50% !important;
        margin-left: -240px !important;
        width: 480px !important;
    }
    .yx_head .search-box input.data_q {
        width: 354px !important;
    }
}

/* ---- Floating header placeholder ---- */
#headercontent {
    height: 150px;
    display: block;
}




/* ---- Header inner content container (full-width bg, content aligned with floor) ---- */
.hd-inner {
    position: relative;
    width: 1600px;
    margin: 0 auto;
}

/* ---- Batch order entry icon (like zkh reference) ---- */
.batch-btn a::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 6px;
    vertical-align: -4px;
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
.batch-btn a:hover::before {
    background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f74747' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' y1='6' x2='21' y2='6'/%3E%3Cline x1='8' y1='12' x2='21' y2='12'/%3E%3Cline x1='8' y1='18' x2='21' y2='18'/%3E%3Cline x1='3' y1='6' x2='3.01' y2='6'/%3E%3Cline x1='3' y1='12' x2='3.01' y2='12'/%3E%3Cline x1='3' y1='18' x2='3.01' y2='18'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}
/*红蓝双细线通铺导航条底部（左右到页面边缘）*/
#header {
    position: relative;
}
#header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: #e60012;
    pointer-events: none;
    z-index: 10;
}
/*导航分类色块切换：hover 红色块 + 黑字*/
#header .menu-main-left > li {
    transition: background-color .25s ease;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
#header .menu-main-left > li:hover {
    background-color: #e60012;
}
#header .menu-main-left > li > a {
    color: #040404;
    transition: color .25s ease;
}
#header .menu-main-left > li:hover > a {
    color: #040404 !important;
}
#header .menu-class-title a {
    transition: background-color .25s ease;
}
#header .menu-class-title a:hover {
    background-color: #e60012;
    color: #040404;
}
/* ---- Nav phone (zkh reference: right side of nav bar, red border box) ---- */
.menu-main .nav-tel {
    position: absolute;
    right: 30px;
    top: 3px;
    height: 30px;
    line-height: 28px;
    padding: 0 14px;
    border: 2px solid #d71635;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    color: #333333;
    z-index: 5;
    box-sizing: border-box;
}
.menu-main .nav-tel .nav-tel-label {
    color: #333333;
    font-size: 13px;
    margin-right: 8px;
}
.menu-main .nav-tel .nav-tel-num {
    font-weight: bold;
    color: #d71635;
    font-size: 16px;
    font-family: Arial;
}
