@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: 104px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10);
}

/* ---- Search wrapper ---- */
.yx_head .search {
    position: absolute;
    top: 16px;
    margin-top: 0 !important;
    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: 50px;
    left: 0;
    margin-left: 0;
    width: 100%;
    height: 20px;
    line-height: 20px;
    float: none;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    /* 折叠服务端 Repeater 输出的 &nbsp;&nbsp; 空格，只保留 a 的右边距，确保全部热词在 1280 档也能完整显示不被批量下单按钮裁切 */
    font-size: 0;
}
.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: 0 !important;
    top: -2px;
    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: 20px !important;
    margin-top: 0 !important;
    right: 40px;
    width: 128px;
    height: 44px;
    z-index: 10000;
}
.yx_head .car .car-btn {
    display: block;
    padding: 0;
}
.yx_head .car .car-btn a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    height: 48px;
    padding: 0 10px;
    background: transparent;
    border: none;
    border-radius: 0;
    text-decoration: none;
    white-space: nowrap;
}
.yx_head .car .car-btn a:hover {
    background: #f7f7f7;
}
.yx_head .car .icon-buy {
    display: block;
    float: none !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0;
    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 {
    display: block;
    float: none !important;
    font-weight: normal;
    font-size: 14px;
    color: #333333;
    line-height: 1;
}
.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: 18px;
    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 (top bar 35 + header 104 = 139) ---- */
#headercontent {
    height: 139px;
    display: block;
}




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

/* ---- 1280 floor: header column follows the existing 1225 content column (aligned with nav/topbar); below 1280 fluid so the header never overflows ---- */
body.wrap_1280 .hd-inner {
    width: 1225px;
}
@media (max-width: 1279px) {
    .hd-inner {
        width: 100%;
        max-width: 1225px;
    }
}
/* ---- 主导航条：外层与内容列同宽居中，首帧即对齐（透明包装，无全宽背景），防刷新横跳 ---- */
#header .menu {
    position: relative;
    width: 1225px;
    max-width: 1225px;
    margin: 0 auto;
    box-sizing: border-box;
}
#header .menu .container {
    width: 1225px;
    max-width: 1225px;
    margin: 0 auto;
    box-sizing: border-box;
}
@media (min-width: 1600px) {
    #header .menu,
    #header .menu .container {
        width: 1600px;
        max-width: 1600px;
    }
}
@media (max-width: 1279px) {
    #header .menu,
    #header .menu .container {
        width: 100%;
        max-width: 1225px;
    }
}

/* ---- 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;
}

/* ============================================================
   Mini Cart (ey100 一比一复刻)  trigger + dropdown panel
   ============================================================ */
#headercontent .yx_head .car{ width:132px; height:40px; right:0; margin:0; }
#headercontent .yx_head .car .car-btn{ display:block; padding:0; }
#headercontent .yx_head .car .car-btn a{
    display:flex; align-items:stretch; gap:0; height:40px; padding:0;
    background:transparent; border:none; border-radius:0; text-decoration:none; white-space:nowrap;
}
/* red square icon with white cart glyph */
#headercontent .yx_head .car .icon-buy{
    position:relative; flex:0 0 48px; width:48px; height:40px; margin:0;
    background-color:#e3051c;
    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='%23ffffff' 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");
    background-repeat:no-repeat; background-position:center; background-size:22px 22px;
}
/* fold triangle on the right edge of red square */
#headercontent .yx_head .car .icon-buy::after{
    content:''; position:absolute; left:100%; top:8px; width:0; height:0;
    border:5px solid transparent; border-left:6px solid #e3051c; z-index:3;
}
/* label area: white bg, grey border, no left border */
#headercontent .yx_head .car .car-btn a b{
    flex:1 1 auto; display:flex; align-items:center; justify-content:center;
    height:40px; padding:0; background:#fff; border:1px solid #e2e2e2; border-left:none; box-sizing:border-box;
    font-weight:400; font-size:12px; color:#898989; line-height:1;
}
/* red round badge, top-right */
#headercontent .yx_head .car .icon-num1{
    position:absolute; top:-8px; right:-6px; left:auto;
    min-width:18px; width:auto; height:18px; padding:0 5px;
    line-height:18px; text-align:center; font-style:normal; font-size:11px;
    color:#fff; background:#e3051c; border-radius:9px; z-index:5;
}
#headercontent .yx_head .car .icon-triangle1{ display:none; }

/* dropdown panel */
#headercontent .yx_head .car .car-content{
    display:none; position:absolute; top:40px; right:-1px; width:370px;
    background:#fff; border:none; border-top:3px solid #e13b00;
    box-shadow:0 2px 10px rgba(0,0,0,.15); padding:0; z-index:10020; text-align:left;
}
#headercontent .yx_head .car:hover .car-content,
#headercontent .yx_head .car.cart_open .car-content{ display:block; }
#headercontent .yx_head .car .car-content-block{ display:none; }
#headercontent .yx_head .car .car-content-body{ padding:0; margin:0; }

/* panel title */
#headercontent .yx_head .car #cartlist .car-subtitle{
    height:40px; line-height:40px; padding:0 0 0 20px; margin:0;
    font-size:13px; font-weight:bold; color:#000; background:#fff;
    border-bottom:1px solid #f0f0f0;
}
/* item list */
#headercontent .yx_head .car #cartlist ul{
    max-height:395px; overflow-y:auto; margin:0; padding:0; list-style:none;
}
#headercontent .yx_head .car #cartlist ul li{
    display:flex; align-items:flex-start; margin:0 18px; padding:10px 0;
    border-bottom:1px dotted #b7b7b7;
}
#headercontent .yx_head .car #cartlist ul li .pic_wrap{ flex:0 0 60px; width:60px; height:60px; }
#headercontent .yx_head .car #cartlist ul li .pic_wrap a{ display:block; width:60px; height:60px; }
#headercontent .yx_head .car #cartlist ul li .pic_wrap img{
    width:60px; height:60px; border:1px solid #a0a0a0; object-fit:contain; background:#fff;
}
#headercontent .yx_head .car #cartlist ul li .txt_wrap{ flex:1 1 auto; min-width:0; padding-left:8px; }
#headercontent .yx_head .car #cartlist ul li .name{ margin:0; }
#headercontent .yx_head .car #cartlist ul li .name a{
    display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
    text-overflow:ellipsis; font-size:12px; color:#575757; line-height:20px; white-space:normal;
}
#headercontent .yx_head .car #cartlist ul li .goods-no{
    margin-top:3px; font-size:12px; color:#999; line-height:16px;
    white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
/* right column: red price x qty + delete */
#headercontent .yx_head .car #cartlist ul li .li-right{ flex:0 0 64px; width:64px; text-align:right; }
#headercontent .yx_head .car #cartlist ul li .li-price{
    font-size:12px; color:#ff0101; line-height:20px; text-align:right; white-space:nowrap;
}
#headercontent .yx_head .car #cartlist ul li .li-price .rmb,
#headercontent .yx_head .car #cartlist ul li .li-price .price,
#headercontent .yx_head .car #cartlist ul li .li-price .ride,
#headercontent .yx_head .car #cartlist ul li .li-price .qty{
    color:#ff0101; font-weight:600; font-size:13px; font-style:normal;
}
#headercontent .yx_head .car #cartlist ul li .li-price .rmb{ font-size:12px; margin-right:1px; }
#headercontent .yx_head .car #cartlist ul li .li-price .ride{ font-weight:400; margin:0 1px; }
#headercontent .yx_head .car #cartlist ul li .li-del{ font-size:12px; line-height:20px; text-align:right; }
#headercontent .yx_head .car #cartlist ul li .li-del a{ color:#575757; text-decoration:none; cursor:pointer; }
#headercontent .yx_head .car #cartlist ul li .li-del a:hover{ color:#e3051c; text-decoration:underline; }

/* footer: count + total + checkout */
#headercontent .yx_head .car #cartlist dl{
    display:flex; align-items:center; justify-content:space-between;
    margin:0; padding:0 18px; min-height:50px; background:#f1f1f1;
}
#headercontent .yx_head .car #cartlist dl dt{ flex:1 1 auto; margin:0; padding:6px 0; }
#headercontent .yx_head .car #cartlist dl dt .cntline,
#headercontent .yx_head .car #cartlist dl dt .sumline{
    display:block; font-size:12px; color:#3f3b3a; line-height:19px; font-weight:400;
}
#headercontent .yx_head .car #cartlist dl dt b{ font-weight:400; color:#3f3b3a; }
#headercontent .yx_head .car #cartlist dl dt .redprice{ color:#e60012; font-weight:700; }
#headercontent .yx_head .car #cartlist dl dd{ flex:0 0 auto; margin:0; }
#headercontent .yx_head .car #cartlist dl dd a{
    display:inline-block; width:90px; height:32px; line-height:32px; text-align:center;
    background:#e3051c; color:#fff; border-radius:6px; font-size:15px; font-weight:400; text-decoration:none;
}
#headercontent .yx_head .car #cartlist dl dd a:hover{ background:#c80418; }

/* empty state */
#headercontent .yx_head .car #cartlist .car-empty{
    padding:34px 0; text-align:center; color:#999; font-size:13px;
}

/* ===== 20261014 region icon: professional pin ===== */
img.zkh-region-ico{ content:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20fill%3D%22%23e1251b%22%20d%3D%22M12%202a7%207%200%200%200-7%207c0%205.2%207%2013%207%2013s7-7.8%207-13a7%207%200%200%200-7-7zm0%209.5A2.5%202.5%200%201%201%2012%206.5a2.5%202.5%200%200%201%200%205z%22%2F%3E%3C%2Fsvg%3E") !important; width:14px !important; height:14px !important; vertical-align:-2px; }