/* PC导航 */
#pc-header .logo{padding:20px 0;}
#pc-header .logo img{max-width:none;max-height:50px;}
#pc-header .navbar{background:#FFF;-webkit-box-shadow:0px 1px 1px rgba(0, 0, 0, 0.03); box-shadow:0px 1px 1px rgba(0, 0, 0, 0.03);z-index:9}
#pc-header .nav li.active ul li a {color:#3e3e3e;}
#pc-header .nav li a{color:#3e3e3e;line-height:90px;position:relative;padding:0 16px;font-size:16px;font-weight:400}
#pc-header .nav li { display: flex !important; align-items: center !important; flex-shrink: 0 !important; }
/* #pc-header .nav li:last-child a{padding:0 0 0 20px;} */
#pc-header .nav li ul {top:90px;padding:0;}
#pc-header .nav li.active a,#pc-header .nav li a:hover,#pc-header .nav li:hover a.first-level{color:#ff6600;}
#pc-header .nav li ul{background:#FFF;border-top-left-radius:0px;border-top-right-radius:0px;transition: 0.3s;}
#pc-header .nav li ul li a {background:#FFF;line-height:42px;color:#3e3e3e;font-size:14px;font-weight:normal;display:block;width:100%;text-align:left;}
#pc-header .nav li ul li a:hover{background:#ff7600;color:#fff;}

/* 导航菜单内搜索框 */
.nav-search-item {
    display: flex !important;
    align-items: center !important;
    align-self: center !important;
    flex-shrink: 0 !important;
    margin-left: 12px;
    padding-left: 12px;
}
.nav-search-item > a { display: none !important; }
.nav-search-item .searchBar { line-height: normal !important; }

/* 隐藏搜索框前的导航分隔线 */
.nav-search-item::before { display: none !important; }

/* 导航li垂直居中 */
#pc-header .nav li { display: flex !important; align-items: center !important; flex-shrink: 0 !important; }

/* ========== 搜索框 - 橙色主题，正常流内右向展开 ========== */
#pc-header .searchBar.search-inline {
    position: relative;
    top: auto;
    right: auto;
    z-index: 5;
    flex-shrink: 0;
}

/* 搜索框外容器 - 默认紧凑显示"搜索"文字 */
.scbar150 {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 20px;
    height: 36px;
    width: 100px;           /* 默认宽度：放下放大后的"搜索" */
    overflow: hidden;
    background: #fff;
    transition: width 0.35s ease, box-shadow 0.35s ease;
    box-sizing: border-box;
    padding-right: 0;
}

.scbar150:focus-within,
.scbar150.search-focused {
    width: 300px;
    border-color: #ff6600;
    border-radius: 4px 0 0 4px;   /* 展开时右边直角，不留空白 */
    box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.15);
}

/* 内层flex容器 */
.dean_scbar150 { 
    display: flex !important;
    display: -webkit-flex !important;
    align-items: center !important;
    width: 100%;
    height: 100%;
    min-width: 0;
}

/* form 是 .scbar150 的 flex item，必须允许收缩到胶囊宽度，否则内容溢出后被 overflow:hidden 裁掉 */
.scbar150 > form,
.scbar150 form.search-form-inline {
    min-width: 0;
    width: 100%;
}

/* "搜索"标签 - 默认显示，focus时隐藏 */
.search-label {
    flex: 1;                       /* 铺满整个搜索框宽度，扩大点击区域 */
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 10px;
    font-size: 15px;
    color: #666;
    cursor: pointer;
    white-space: nowrap;
    min-width: 0;
    overflow: hidden;
    transition: opacity 0.15s ease;
}
.search-label i { font-size: 20px; color: #999; margin-right: 5px; }

.scbar150:focus-within .search-label,
.scbar150.search-focused .search-label {
    display: none;
}

/* 输入框区域 */
.dean_scbar150txt {
    flex: 0 0 0;
    -webkit-flex: 0 0 0;
    min-width: 0;
    overflow: hidden;
    transition: flex-basis 0.35s ease;
}

.scbar150:focus-within .dean_scbar150txt,
.scbar150.search-focused .dean_scbar150txt {
    flex: 0 0 auto;
    -webkit-flex: 0 0 auto;
    overflow: visible;
}

/* 输入框 */
.scbar150_txt {
    width: 240px !important;
    height: 34px !important;
    line-height: 34px !important;
    border: none !important;
    padding: 0 10px !important;
    font-size: 14px !important;
    outline: none !important;
    background: transparent !important;
    color: #333 !important;
    box-sizing: border-box !important;
    float: none !important;
    border-radius: 0 !important;
}
.scbar150_txt:focus {
    border: none !important;
    box-shadow: none !important;
}

/* Enter按钮容器 - 默认隐藏，focus时显示 */
.dean_scbar150_btn {
    flex-shrink: 0;
    opacity: 0;
    width: 0;
    margin: 0;
    overflow: hidden;
    transition: opacity 0.2s ease 0.1s, width 0.35s ease, margin 0.35s ease;
}

.scbar150:focus-within .dean_scbar150_btn,
.scbar150.search-focused .dean_scbar150_btn {
    opacity: 1;
    width: auto;
    margin-right: 0;         /* 去掉右边距，不产生空白 */
    overflow: visible;
}

/* Enter 按钮 */
.scbar150_btn { 
    height: 26px !important; 
    line-height: 24px !important;
    padding: 0 14px !important; 
    background: #ff6600 !important; 
    color: #fff !important; 
    border: none !important; 
    border-radius: 3px !important;
    font-size: 12px !important; 
    cursor: pointer !important;
    white-space: nowrap !important;
    float: none !important;
    transition: background 0.3s ease !important;
    font-family: "微软雅黑", sans-serif !important;
}

.scbar150_btn:hover { 
    background: #ff9600 !important; 
}

/* ========== 登录和购物车图标位置 ========== */
#pc-header .log-in {position:absolute;top:29px;right:40px;z-index:10}
#pc-header .shopBar {position:absolute;top:32px;right:5px;z-index:10}
#pc-header a.shop-ico i{font-size:18px;color:#6E6E6E;}

/* ========== 登入后状态 ========== */
.log-in .drop-menu {margin:12px 0 0;min-width:100px;border-radius:5px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.075); box-shadow:0 6px 12px rgba(0,0,0,.075) }
.log-in .drop-menu li{padding: 0 10px;height: 32px;text-align: center;}
.log-in .drop-menu li a{position: relative;height: 32px;line-height: 32px;}
.log-in .drop-menu li a:hover,.drop-menu a:focus {color:#2D2D2D;background: unset;}
.log-in .button-group span {display:inline-block;line-height:24px;height:24px;width:24px}
.log-in .button-group ul:before {position:absolute;top:-8px;left:50px;display:inline-block;border-right:8px solid transparent;border-bottom:8px solid #fff;border-left:8px solid transparent;content:'';}
.log-in .button-group ul:after {position:absolute;top:-8px;left:50px;display:inline-block;border-right:8px solid transparent;border-bottom:8px solid #e9e8e8;border-left:8px solid transparent;content:'';}
.log-in .button-group .button {padding:0;line-height:18px;font-size:20px}
.log-in .button-group .drop-menu {padding: 10px 0; left: -40px;border-top:0px solid #ff0000;-webkit-box-shadow: 0px 0px 0px rgba(0,0,0,.075);box-shadow: 0px 8px 10px rgba(0,0,0,.05);border-radius:4px;}
.log-in a.user-ico{width:32px;height:32px;line-height:32px;background:#ECEFF5;display:block;}
.log-in a.user-head{width:32px;height:32px;overflow:hidden;display:block;}
.log-in a.user-head img{width:32px;height:32px;}
/* 登入后状态 end*/

/* ========== 注册登录切换 ========== */
.register .tab{font-size:0}
.register .tab li{cursor:pointer;display:inline-block;position:relative;font-size:20px;width:60px;color:#666;margin:0 0 40px 0}
.register .tab li::before{background:#ccc;content:'';position:absolute;bottom:-10px;left:0;width:100%;height:3px;border-radius:3px;transition:transform .3s;}
.register .tab li.cur{color:#ff9600}
.register .tab li.cur::before{background:#ff9600;content:'';position:absolute;bottom:-10px;left:0;width:100%;height:3px;border-radius:3px;transition:transform .3s;}

.register .line{margin:0px;padding:0;position: relative; text-align: center;}
.register .line span{display: inline-block; padding: 0 20px; position: relative; z-index: 200;}
.register .line hr{-moz-border-bottom-colors: none; -moz-border-left-colors: none; -moz-border-right-colors: none; -moz-border-top-colors: none; border-color: #E2E2E2 -moz-use-text-color -moz-use-text-color; border-image: none; border-style: solid none none; margin-top:10px; position: absolute; top:0; width: 100%;}

.register .bnt-login{margin:0 auto;text-align:center}
.register .bnt-login a{display:inline-block;color:#fff;font-size:22px;width:48px;height:48px;text-align:center;line-height:48px;margin-right:10px;border-radius:30px}
.register .bnt-login a:hover{opacity:0.8}
.register .bnt-login a.weixin{background:#38B624}
.register .bnt-login a.qq{background:#1F92DF}
.register .bnt-login a.weibo{background:#FF6000}
/* 注册登录切换 end*/
/* === 修复：手机浏览器“桌面模式”(布局视口约980~1024px) 导航栏错乱/换行 === */
#pc-header .nav li a { white-space: nowrap; }
@media (max-width: 1024px) {
    #pc-header .nav li a { padding: 0 8px; font-size: 14px; }
    #pc-header .nav li ul li a { font-size: 13px; }
    #pc-header .scbar150 { width: 80px; }
    #pc-header .scbar150:focus-within,
    #pc-header .scbar150.search-focused { width: 200px; }
}
@media (max-width: 860px) {
    #pc-header .nav li a { padding: 0 5px; font-size: 13px; }
    #pc-header .nav-search-item { display: none !important; }
}

/* ==== 修复：手机桌面模式(≤1024px) 点击搜索后，展开的搜索框尾部被导航 ul 的 overflow:hidden 裁掉 ==== */
@media (max-width: 1024px) {
    #pc-header .nav-search-item { position: relative; min-width: 92px; }
    #pc-header .scbar150:focus-within,
    #pc-header .scbar150.search-focused {
        width: 200px;
        position: absolute;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
        z-index: 20;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0,0,0,.12);
    }
    #pc-header .scbar150_txt { width: 130px !important; }
}
