body,
html {
    min-width: 1400px;
    height: 100%;
    width: 100%;
    background-color: #f1f3f6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    line-height: 1.4;
    padding: 0;
    margin: 0;
    font-size: 14px;
    color: rgba(0, 0, 0, 0.75);
    height: 100%;
}

*,
:after,
:before {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

button,
html input[type=button],
input[type=reset],
input[type=submit] {
    -webkit-appearance: button;
    cursor: pointer;
}

button,
select {
    text-transform: none;
}

button {
    overflow: visible;
}

div {
    box-sizing: border-box;
}

p {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: #2e6ed5;
}

.fixed::after {
    display: block;
    content: '';
    clear: both;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-title {
    font-size: 1.3rem;
}

.text-title-large {
    font-size: 1.6rem;
}

.text-bold {
    font-weight: bold;
}

.container {
    width: 1200px;
    margin: 0 auto;
}

.text-ellipsis {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.text-ellipsis-1 {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
}

.text-ellipsis-2 {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.text-ellipsis-3 {
    text-overflow: -o-ellipsis-lastline;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.color-danger {
    color: #f96062;
}

.color-success {
    color: #37e492;
}

.color-primary {
    color: #2e6ed5;
}

.color-warning {
    color: #ffa93a;
}

.color-gray {
    color: #777;
}

.color-grey {
    color: #999;
}

.color-wechat {
    color: #50b474;
}

.color-google {
    color: #ef413a;
}

.color-phone {
    color: #000;
    padding-top: 7px !important;
}

.mt-1 {
    margin-top: 1rem !important;
}

.mt-2 {
    margin-top: 2rem !important;
}

.lh-2 {
    line-height: 2rem;
}

.w100p {
    width: 100% !important;
}

.w50p {
    width: 50% !important;
}

.hide {
    display: none !important;
}

.form-tips {
    color: rgba(0, 0, 0, 0.45);
    font-size: 12px;
}

.mb-1 {
    margin-bottom: 1rem !important;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-5 {
    margin-bottom: 5px;
}

.small {
    font-size: 12px;
}

.large {
    font-size: 16px;
}

small {
    font-size: 70%;
}

del {
    color: #999;
}

.position-relate {
    position: relative;
}

.wrap-pre {
    white-space: pre-wrap;
}

.checkbox {
    display: inline-block;
    height: 18px;
    width: 18px;
    background: url(/assets/imgs/p-check.png) no-repeat center;
    background-size: contain;
    vertical-align: text-bottom;
    cursor: pointer;
}

.checkbox.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.image-upload {
    display: inline-block;
}

.image-upload.avatar .item {
    width: 70px;
    overflow: hidden;
    text-align: center
}

.image-upload.avatar .item img {
    width: 100%;
    border-radius: 50%;
}

.preview-list {
    display: inline-block;
    vertical-align: middle;
    height: 70px;
}

.preview-list .item {
    vertical-align: middle;
    display: inline-block;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #e4e4e4;
    height: 70px;
    position: relative;
    cursor: pointer;
}

.preview-list .item:last-child {
    margin-right: 0;
}

.preview-list .item img {
    height: 100%;
}

.preview-list .item .mask {
    position: absolute;
    border-radius: 4px;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.65);
    width: 100%;
    height: 100%;
    text-align: center;
    padding-top: 23px;
    color: #fff;
    opacity: 0;
    transition: all 0.2s;
}

.preview-list .item:hover .mask {
    opacity: 1;
}

.upload-btn {
    vertical-align: middle;
    display: inline-block;
    height: 70px;
    width: 70px;
    border: 1px dashed #e4e4e4;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: #f4f4f4;
}

.upload-btn .anticon {
    font-size: 24px;
    margin-top: 23px;
    color: #999;
}

.upload-btn:hover {
    border-color: #465eb8;
    box-shadow: 0 0 5px #eee;
}

.upload-btn:hover .anticon {
    color: #666;
}

.checkbox.active {
    background: url(/assets/imgs/p-checked.png) no-repeat center;
    background-size: contain;
}

/*定义滚动条的轨道*/
.scroll-panel::-webkit-scrollbar {
    cursor: hand;
    width: 4px;
    height: 4px;
    background-color: #eee;
}

/*定义滚动条的轨道，内阴影及圆角*/
.scroll-panel::-webkit-scrollbar-track {
    border-radius: 2px;
    background-color: transparent;
}

/*定义滑块，内阴影及圆角*/
.scroll-panel::-webkit-scrollbar-thumb {
    /*width: 10px;*/
    height: 20px;
    background-color: #999;
}

.top-bar {
    height: 40px;
    background: #04080d;
}

.top-bar-container {
    color: #adabaa;
    display: flex;
    justify-content: space-between;
    white-space: nowrap;
    align-items: center;
    height: inherit;
}

.welcome {
    /*   line-height: 16px;
    padding-top: 11px;*/
    width: 600px;
    overflow: hidden;
    display: flex;
}

.welcome .roll {
    width: 100%;
    overflow: hidden;
}

.welcome .roll>a {
    /*overflow: hidden;*/
    /*transform: translateX(-98%);*/
    /*transform: translateX(-0%);*/
    display: inline-block;
    /*transition: all 0.5s ease-out;*/
    animation: 0s linear 0s infinite sun-rise;
}

.welcome .roll>a:hover {
    animation-play-state: paused;
}

@keyframes sun-rise {
    0% {
        /* pushes the sun down past the viewport */
        transform: translateX(550px);
    }

    100% {
        /* returns the sun to its default position */
        transform: translateX(-100%);
    }
}

.top-nav {
    /*  line-height: 18px;
    padding-top: 10px;*/
    display: inline-block;
    vertical-align: middle;
}

.top-nav>a {
    display: inline-block;
    vertical-align: middle;
    padding-right: 10px;
    margin-right: 10px;
    border-right: 1px solid #adabaa;
}

.top-nav:last-child>a {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.top-bar-container .btn-panel {
    /*    line-height: 18px;
    padding-top: 10px;*/
    display: inline-block;
    vertical-align: middle;
}

.top-bar-container .ant-dropdown-link {
    padding-top: 4px;
    display: inline-block;
}

.btn-panel .ant-btn {
    margin-right: 10px;
    height: 20px !important;
}


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

.head-bg {
    height: 169px;
}

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

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

.head-bg .container>.pull-right {
    margin-top: 40px;
}

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

.head-bg .head-middle-banner {
    float: left;
    margin-top: 40px;
    margin-left: 40px;
}

.head-bg .head-middle-banner img {
    display: block;
    max-height: 64px;
    width: auto;
    border-radius: 8px;
}

.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;
}

.search-box input {
    border: none;
    outline: none;
    width: 250px;
    transition: all 0.2s;
}

.search-box input:focus {
    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-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: calc(100% / 5);
    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: rgb(127, 46, 213);
    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,
.nav-panel>a.active::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;
}

/* ant */

.ant-tag {
    border-radius: 3px;
}

.ant-radio-button-wrapper:first-child {
    border-radius: 3px 0 0 3px;
}

.ant-radio-button-wrapper:last-child {
    border-radius: 0 3px 3px 0;
}

.ant-table-small {
    padding-bottom: 10px;
}

.ant-divider:before,
.ant-divider::after {
    top: 10% !important;
}

.ant-input {
    border-radius: 3px;
}

.ant-btn-success {
    background-color: #52c41a;
    border-color: #52c41a;
    color: #FFF;
}

.ant-btn-success:focus,
.ant-btn-success:hover {
    background-color: #75ec39;
    border-color: #75ec39;
    color: #fff;
}

.ant-btn-union {
    background: linear-gradient(90deg, #ff7b00, #ff585a 50%, #dd65dc);
    border-color: #ff7b00;
    color: #FFF;
}

.ant-btn-union:focus,
.ant-btn-union:hover {
    background: linear-gradient(90deg, #ff7b00, #ff585a 0%, #dd65dc);
    border-color: #ff7b00;
    color: #fff;
}

.ant-btn-primary,
.ant-btn-primary:focus {
    background-color: #2e6ed5;
    border-color: #2e6ed5;
}

.ant-btn {
    text-shadow: none;
    padding: 0 20px;
    border-radius: 3px;
    font-weight: 500;
}

.ant-btn-primary:hover {
    background-color: rgba(46, 110, 213, 0.85);
    border-color: rgba(46, 110, 213, 0.85);
    color: #fff;
}

.ant-btn-background-ghost:focus,
.ant-btn-background-ghost:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
    color: #fff;
    border-color: #fff;
}

.ant-btn-link-more {
    border: none;
    background: transparent;
    color: #999;
    font-size: 12px;
}

.ant-btn-black,
.ant-btn-black:focus {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.ant-btn-black:hover {
    background-color: #fff;
    color: #333;
    border-color: #333;
}

.ant-btn-blue {
    background-color: #244583;
    color: #fff;
    border-color: #244583;
}

.ant-btn-blue:focus,
.ant-btn-blue:hover {
    background-color: rgba(36, 69, 131, 0.85);
    color: #fff;
    border-color: rgba(36, 69, 131, 0.85);
}

.ant-btn-sm {
    font-size: 13px;
    padding: 0 12px;
}

.ant-btn-round.ant-btn-sm {
    font-size: 12px;
    height: 26px;
}

.ant-btn-lg {
    font-size: 14px;
    padding: 0 32px;
}

.ant-rate-star {
    color: #2e6ed5;
}

.ant-btn-round {
    border-radius: 32px;
}


.ant-radio-button-wrapper:hover,
.ant-radio-button-wrapper:focus {
    color: #2e6ed5;
}

.ant-radio-group-solid .ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled) {
    background: #2e6ed5;
    border-color: #2e6ed5
}

.ant-radio-button-wrapper-checked:not(.ant-radio-button-wrapper-disabled):before {
    background: #2e6ed5;
}

.ant-tabs-nav .ant-tabs-tab-active {
    color: #2e6ed5;
}

.ant-tabs-ink-bar {
    background-color: #2e6ed5;
}

.ant-pagination-item-active:focus,
.ant-pagination-item-active:hover {

    background: #2e6ed5;
    border-color: #2e6ed5
}

.ant-pagination-item-active {
    background: #2e6ed5;
    border-color: #2e6ed5
}

.ant-pagination-item-active:focus a,
.ant-pagination-item-active:hover a {
    color: #fff;

}

.ant-pagination-item-active a {
    color: #fff;
}

.ant-form-item {
    margin-bottom: 1rem;
}

.head-bg .container > .pull-left {
    display: flex;
    align-items: center;
}

.head-bg .container > .pull-left img {
    margin-right: 15px;
    border-radius: 8px;
    width: 64px;
    height: 64px;
    object-fit: cover;
    display: block;
}

.head-bg .container > .pull-left > span {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.head-bg .container > .pull-left > span > span:first-child {
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 4px;
}

.head-bg .container > .pull-left > span > span:last-child {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}


/* goodsitem */
.goods-item {
   background: #fff;
   text-align: center;
   margin: 0;
   transition: all 0.3s;
   cursor: pointer;
   border-radius: 5px;
   position: relative;
   overflow: hidden;
}

.goods-item .item {
    padding: 15px;
   border: 2px solid #fff;
}

.goods-item .item:hover {
   box-shadow: 0 0 3px rgba(46, 110, 213, 0.6);
   border: 2px solid rgba(46, 110, 213, 1);
}

.goods-item img {
   height: 100px;
   margin-bottom: 10px;
}

.goods-item .name {
   height: 42px;
   color: #333;
   font-weight: 500;
}

.goods-item .price {
   padding-top: 5px;
   border-top: 1px solid #f4f4f4;
   margin-top: 5px;
   margin-bottom: 5px;
   font-size: 20px;
   font-weight: 500;
   color: rgba(46, 110, 213, 1);
}

.goods-item .price del {
   color: #777;
   font-size: 13px;
}

/* 商品容器样式 - 响应式布局 */
.goods-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 20px 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.goods-container .goods-item {
    flex: 0 0 calc((100% - 80px) / 5);
    box-sizing: border-box;
}

/* 响应式布局 */
@media (max-width: 1400px) {
    .goods-container .goods-item {
        flex: 0 0 calc((100% - 60px) / 4);
    }
}

@media (max-width: 1200px) {
    .goods-container .goods-item {
        flex: 0 0 calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    .goods-container .goods-item {
        flex: 0 0 calc((100% - 20px) / 2);
    }
}

@media (max-width: 480px) {
    .goods-container .goods-item {
        flex: 0 0 100%;
    }
}
