.top-bar-wrapper {
    height: 40px;
    line-height: 40px;
    background-color: #333;
}

.top-bar li {
    float: left;
}

.top-bar a {
    display: block;
    font-size: 12px;
}

.top-bar a:hover {
    color: white;
}

.top-bar .line {
    font-size: 12px;
    color: #424242;
    margin: -1px 8px 0 8px;
}

.shop-cart, .user-info {
    float: right;
}

.shop-cart {
    margin-left: 26px;
    position: relative;
}

.shop-cart a {
    background: #424242;
    text-align: center;
    width: 120px;
}

.shop-cart .cart-menu {
    position: absolute;
    background-color: white;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
    width: 316px;
    height: 0;
    left: -196px;
    overflow: hidden;
    transition: height 0.3s;
}

.shop-cart .cart-menu div {
    display: block;
    color: rgb(66, 66, 66);
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    padding: 40px 0;
    margin: 0 20px 20px 20px;
}

.shop-cart:hover a {
    color: #ff6700;
    background-color: white;
}

.shop-cart:hover .cart-menu {
    height: 100px;
    z-index: 9999;
}

.app {
    position: relative;
    text-align: center;
}

.app::after {
    content: "";
    height: 0;
    width: 0;
    display: block;
    border: 8px solid;
    border-top: none;
    border-color: transparent transparent white transparent;
    position: absolute;
    top: 32px;
    left: 0;
    right: 0;
    margin: auto;
    visibility: hidden;
}

.app .qrcode {
    position: absolute;
    left: -40px;
    width: 124px;
    height: 0;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 0 10px rgb(0, 0, 0, 0.3);
    z-index: 9999;
    line-height: 1;
    /* 添加过渡 */
    transition: height 0.3s;
}

.app .qrcode img {
    width: 90px;
    height: 90px;
    margin: 17px 17px 10px 17px;
}

.app .qrcode span {
    font-size: 14px;
    color: black;
}

.app:hover .qrcode{
    height: 148px;
}

.app:hover::after {
    visibility: visible;
}

.header-wrapper {
    position: relative;
}

.header {
    height: 100px;
}

.header .logo {
    float: left;
    position: relative;
    width: 55px;
    height: 55px;
    margin-top: 22px;
    overflow: hidden;
}

.header .logo a {
    position: absolute;
    width: 55px;
    height: 55px;
    left: 0;
    background-color: #ff6700;
    background-image: url(../img/mi-logo.png);
    background-size: contain;
    background-position: center;
    transition: left 0.3s;
}

.header .logo .home {
    left: -55px;
    background-image: url(../img/mi-home.png);
}

.header .logo:hover .mi {
    left: 55px;
}

.header .logo:hover .home {
    left: 0;
}

.header .nav-wrapper {
    float: left;
    margin-left: 7px;
}

.header .nav {
    height: 100px;
    line-height: 100px;
    padding-left: 58px;
}

.nav > li {
    float: left;
}

.nav-wrapper li a {
    color: rgb(51, 51, 51);
    display: block;
    font-size: 16px;
    margin-right: 20px;
}

.nav-wrapper li a:hover {
    color: #ff6700;
}

.all-goods {
    visibility: hidden;
}

.nav .goods-info {
    /*height: 228px;*/
    height: 0;
    width: 100%;
    background-color: white;
    overflow: hidden;
    position: absolute;
    top: 100px;
    left: 0;
    /*border-top: 1px solid rgb(224, 224, 224);*/
    /*box-shadow: 0 5px 3px rgb(0 0 0 / 10%);*/
    transition: height 0.3s;
}

.nav .show-goods:hover ~ .goods-info,
.goods-info:hover {
    height: 228px;
    border-top: 1px solid rgb(224, 224, 224);
    box-shadow: 0 5px 3px rgba(0, 0, 0, 0.1);
    z-index: 9999;
}

.search-wrapper {
    float: right;
    width: 296px;
    height: 50px;
    background: red;
    margin-top: 25px;
}

.search-wrapper .search-inp {
    height: 50px;
    width: 244px;
    padding: 0 10px;
    border: 1px solid rgb(224, 224, 224);
    float: left;
    box-sizing: border-box;
    outline: none;
}

.search-wrapper .search-btn {
    float: left;
    height: 50px;
    width: 52px;
    border: 1px solid rgb(224, 224, 224);
    color: #616161;
    border-left: none;
    background: white;
}

.search-wrapper .search-btn:hover {
    background-color: #ff6700;
    color: white;
    border: none;
}

.search-wrapper .search-inp:focus,
.search-wrapper .search-inp:focus + button {
    border-color: #ff6700;
}

.all-goods-wrapper {
    position: relative;
}

.left-menu {
    width: 234px;
    height: 420px;
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    z-index: 999;
    left: -120px;
    padding: 20px 0;
}

ul.left-menu li a {
    display: block;
    height: 42px;
    line-height: 42px;
    color: white;
    padding: 0 30px;
    font-size: 14px;
    margin-right: 0;
}

.left-menu li a i {
    float: right;
    line-height: 42px;
}

ul.left-menu li a:hover {
    color: white;
    background-color: #ff6700;
}

.banner {
    height: 460px;
    position: relative;
}

.banner .img-list li {
    position: absolute;
}

.banner img {
    width: 100%;
    vertical-align: top;
}

.pointer {
    position: absolute;
    bottom: 24px;
    right: 36px;
}

.pointer a {
    float: left;
    width: 6px;
    height: 6px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.4);
    margin-left: 6px;
}

.pointer a:hover, .pointer a.active {
    border-color: rgba(0, 0, 0, 0.4);
    background-color: rgba(255, 255, 255, 0.4);
}

.prev-next a {
    width: 41px;
    height: 69px;
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background-image: url("../img/icon-slides.png");
}

.prev-next .prev {
    left: 234px;
    background-position: -84px 0;
}

.prev-next .next {
    right: 0;
    background-position: -125px 0;
}

.ad {
    height: 170px;
    margin-top: 14px;
}

.ad .shortcut, .ad .ad-img-list, .ad li {
    float: left;
}

.ad .shortcut {
    width: 228px;
    height: 169px;
    background-color: #5f5750;
    margin-right: 14px;
    padding-top: 2px;
    padding-left: 6px;
}

.ad .shortcut li {
    position: relative;
}

.ad .shortcut li::before {
    content: "";
    position: absolute;
    width: 64px;
    height: 1px;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    background-color: #665e57;
}

.ad .shortcut a {
    height: 84px;
    width: 76px;
    display: block;
    color: #cfccca;
    text-align: center;
    font-size: 12px;
    overflow: hidden;
}

.ad .shortcut li::after {
    content: "";
    position: absolute;
    width: 1px;
    height: 70px;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto 0;
    background-color: #665e57;
}

.ad .shortcut i {
    margin-top: 20px;
    margin-bottom: 6px;
    font-size: 20px;
    display: block;
}

.ad .ad-img-list li {
    margin-right: 15px;
    width: 316px;
}

.ad .ad-img-list li:last-child {
    margin-right: 0;
}

.ad .ad-img-list img {
    width: 100%;
    vertical-align: top;
}

.back-top {
    width: 26px;
    height: 260px;
    background-color: orange;
    position: fixed;
    bottom: 100px;
    right: 50%;
    margin-right: -639px;
}
