#main-app,
#app {
    opacity: 0;
}

.btn-panel .ant-btn {
    margin-right: 10px;
}

.head-bg {

    height: 165px;
    background-color: #1a2a3b;
}

.head-bg .container>.pull-left {
    display: block;
    margin-top: 40px;
}

.head-bg .container>.pull-left img {
    height: 60px;
}

.head-bg .container>.pull-right {

    margin-top: 40px;
}

.head-bg .container>.pull-right .ant-btn {
    vertical-align: top;
}

.search-panel {
    display: inline-block;
    margin-right: 40px;
    vertical-align: middle;

}

.search-panel .search-box {
    background: #fff;
    border-radius: 3px;
    color: #adabaa;
    line-height: 38px;
    position: relative;
}

.search-panel .search-box.expand {
    border-bottom-left-radius: 0;
}

.search-box input {
    border: none;
    outline: none;
    width: 250px;
    transition: all 0.2s;
    color: #333;
    background: transparent;
    position: relative;
    z-index: 1;
}

.search-box.expand input {
    width: 400px;
}

.search-box .anticon {
    font-size: 18px;
    margin: 0px 8px;
    vertical-align: middle;
}

.search-box .ant-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.search-box .search-line-container {
    position: absolute;
    left: 40px;
    top: 0;
    width: 250px;
    z-index: 0;
    height: 40px;
    overflow: hidden;
}

.search-box .search-line-container .search-line {
    --line: 0;
    transition: transform 0.5s ease-in-out;
    transform: translateY(calc(var(--line) * 38px * -1));
}

.search-box .search-line-container .search-line.hide {
    display: none;
}

/* 搜索建议下拉框样式 <<< */
.search-suggest {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-top: none;
    border-radius: 0 0 3px 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 50px;
    transition: all 0.2s;
    overflow-y: auto;
    opacity: 0;

    font-size: 14px;
    color: #666;
}

.search-suggest.show {
    max-height: 300px;
    opacity: 1;
}

.search-suggest .search-history,
.search-suggest .search-hot {
    padding: 10px;
}

.search-suggest .search-hot {
    padding-bottom: 30px;
}

.search-suggest .search-history-header,
.search-suggest .search-hot-header {
    font-size: 12px;
    color: #999;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-suggest .search-history-header a {
    color: #666;
    text-decoration: none;
}

.search-suggest .search-history-header a:hover {
    color: #2e6ed5;
}

.search-suggest .search-history-list,
.search-suggest .search-hot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-suggest .search-history-list a,
.search-suggest .search-hot-list a {
    display: inline-block;
    padding: 4px 12px;
    background: #f5f5f5;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s;
    line-height: normal;
}

.search-suggest .search-history-list a:hover,
.search-suggest .search-hot-list a:hover {
    background: #e6f7ff;
    color: #2e6ed5;
}

.search-suggest .search-history-list a .anticon {
    margin-right: 4px;
    font-size: 12px;
}

/* 商品搜索建议列表样式 */
.search-product-item {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.search-product-item:last-child {
    border-bottom: none;
}

.search-product-item:hover {
    background-color: #f5f5f5;
}

.search-product-item img {
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 12px;
    border: 1px solid #e8e8e8;
}

.search-product-name {
    flex: 1;
    font-size: 13px;
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 搜索建议下拉框样式 >>> */

.search-panel .hotkeys>a {
    color: #adabaa;
    display: inline-block;
    vertical-align: middle;
    padding: 5px 8px 3px 0;
    font-size: 12px;

}

.search-panel .hotkeys>a:hover {
    color: #fff;
}

.search-panel .hotkeys {
    height: 23px;
}

.nav-panel {
    margin-top: 22px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.nav-panel>a {
    display: block;
    float: left;
    width: 11.11%;
    text-align: center;
    color: #fff;
    position: relative;
}

.nav-panel>a span {
    display: inline-block;
    height: 40px;
    line-height: 16px;
    padding-top: 11px;
    transition: all 0.2s;
}

.nav-panel>a::after {
    display: block;
    content: ' ';
    position: absolute;
    width: 30px;
    bottom: 0;
    left: calc(50% - 15px);
    height: 3px;
    background: rgba(46, 110, 213, 1);
    border-radius: 3px;
    box-shadow: 0 0 3px rgba(46, 110, 213, 0.4);
    opacity: 0;
    transition: all 0.2s;
}

.nav-panel>a:hover::after {
    opacity: 0.85;
}





.top-carts {
    padding: 20px;
    background: #fff;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    border-radius: 3px;
}

.top-carts .cart-p-list {
    max-height: 300px;
    overflow-y: auto;

}

.top-carts .cart-p-list .item {
    padding: 20px 0;

    border-bottom: 1px solid #e4e4e4;
    font-size: 14px;
}

.top-carts .cart-p-list .item:last-child {
    border-bottom: none;
}

.top-carts .bottom-btns {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.top-carts .bottom-btns .pull-left {
    height: 32px;
    line-height: 32px;
    margin-right: 15px;
}

.top-carts .p-name {
    width: 320px;
    display: inline-block;
    padding-top: 5px;
}

.top-carts .p-name .spec {
    margin-top: 2px;
}

.top-carts .p-img {
    height: 60px;
    width: 60px;
    vertical-align: top;
    /*border: 1px solid #eee;*/
    margin-right: 10px;
    padding: 2px;
    margin-top: 5px;
}

.top-carts .ant-dropdown-menu {
    border-radius: 0;
}

.top-carts .combos {
    margin-top: 5px;
    border-top: 1px solid #eee;
    padding: 0 10px;
    background: #fafafa;
    width: 400px;
}

.top-carts .combos .title {
    color: #666;
    font-size: 12px;
}

.top-carts .combos img {
    width: 40px;
    height: 40px;
    float: left;
    border: 1px solid #eee;
    margin-right: 10px;
    margin-left: 10px;
}

.top-carts .combos .item {
    font-size: 12px;
    overflow: hidden;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    margin: auto;
}

.top-carts .combos .item:last-child {
    border-bottom: none;
}

.top-carts .combos .item .spec {
    margin-top: 5px;
}

.top-carts .combos .item .info {
    width: calc(100% - 130px);
    float: left;
}

.top-carts .combos .item .subprice {
    width: 70px;
    float: right;
    text-align: right;
    font-size: 14px;
}

.top-carts .empty-carts-tips {
    padding: 20px;
    color: #888;
}