:root {
    --swiper-theme-color: var(--color-main);
}

/* 
 * head页头
*/
.am-theme-header.am-topbar {
    background-color: #fff;
    border: 0;
    padding: 3rem 0;
    margin: 0;
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
}

.am-theme-header.am-topbar.am-nav-absolute {
    position: absolute;
}

.am-theme-header.am-topbar.am-nav-absolute {
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 0.5rem 0.375rem rgba(0, 0, 0, 0.1);
}

.nav-blog.am-theme-header.am-topbar.am-nav-absolute.collapsed-bg {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: unset;
}

header.am-theme-header.am-topbar .am-topbar-btn .divider,
header.am-theme-header.am-topbar a {
    color: #333;
    transition: all 0.3s ease-in-out;
}

header.am-theme-header.am-topbar.am-topbar-top .am-topbar-btn .divider,
header.am-theme-header.am-topbar.am-nav-absolute .am-topbar-btn .divider,
.am-theme-header.am-topbar.am-topbar-top a,
.am-theme-header.am-topbar.am-nav-absolute a {
    color: #fff;
}

header.am-theme-header.am-topbar a.am-active,
header.am-theme-header.am-topbar a:hover,
.am-theme-header.am-topbar.am-topbar-top a:hover,
.am-theme-header.am-topbar.am-nav-absolute a:hover {
    color: var(--color-main-hover);
}

.am-theme-header .menu-item ul li a:hover,
.am-theme-header .menu-item ul li a.am-active {
    font-weight: 600;
}

header.am-theme-header.am-topbar button {
    color: #333;
    border-color: #333;
    background-color: transparent;
    padding: 0.5rem 1.5rem;
}

.am-theme-header.am-topbar.am-topbar-top button,
.am-theme-header.am-topbar.am-nav-absolute button {
    color: #fff;
    border-color: #fff;
}

header.am-theme-header.am-topbar .am-topbar-btn.am-topbar-toggle {
    margin: 1rem 0 0 0;
    padding: 0.5rem 1rem;
}

.animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.fadeInDown {
    -webkit-animation-name: fadeInDown;
    animation-name: fadeInDown
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        -webkit-transform: translateY(-1.25rem);
        -ms-transform: translateY(-1.25rem);
        transform: translateY(-1.25rem)
    }

    100% {
        opacity: 1;
        -webkit-transform: translateY(0);
        -ms-transform: translateY(0);
        transform: translateY(0)
    }
}

.am-theme-header.am-topbar.am-topbar-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    background: rgba(0, 0, 0, 0.4) !important;
    box-shadow: 0 0 0.5rem 0.375rem rgba(0, 0, 0, 0.1) !important;
}

@media only screen and (min-width: 641px) {
    .am-theme-header .am-topbar-collapse.am-collapse {
        display: flex !important;
    }

    .am-theme-header .menu-item {
        flex: 1;
        width: 0;
        overflow: hidden !important;
        height: 5rem !important;
    }

    .am-theme-header .menu-item .am-topbar-nav {
        overflow-x: auto;
        display: flex;
        flex-flow: row nowrap;
        height: 6.5rem;
        width: 100%;
    }

    .am-theme-header .am-nav-pills>li {
        white-space: nowrap;
    }
}

.head-logo {
    width: 17rem;
}

header.am-theme-header.am-topbar button:hover,
header.am-theme-header.am-topbar button:active,
header.am-theme-header.am-topbar button:focus {
    background-color: transparent;
    color: var(--color-main);
    border-color: var(--color-main);
    box-shadow: none;
}

header.am-theme-header.am-topbar button .iconfont {
    position: relative;
    top: 0.1rem;
}

header.am-theme-header.am-topbar .am-dropdown-content li a {
    font-size: 1.4rem;
    display: block;
    color: #333;
}

header.am-theme-header.am-topbar .am-dropdown-content li a:hover {
    color: var(--color-main);
}

header.am-theme-header.am-topbar .nav-icon {
    width: 1.8rem;
}

header.am-theme-header.am-topbar li .nav-icon {
    margin-right: 1rem;
}

header.am-theme-header.am-topbar a {
    display: inline-block;
    font-size: 2rem;
}

header.am-theme-header.am-topbar .la-name {
    font-size: 1.6rem;
}

@media only screen and (min-width: 641px) {
    .am-theme-header .am-topbar-brand {
        padding-left: 0;
    }
}

@media only screen and (min-width: 641px) {
    .am-theme-header .am-topbar-right.margin-right-xxxl {
        margin-right: 4rem;
    }

    .am-theme-header .am-topbar-nav>li>a:after {
        border: 0;
    }
}

.am-theme-header .am-nav>li>a:hover,
.am-theme-header .am-nav>li>a:focus {
    background-color: transparent;
    color: var(--color-main);
}

.am-theme-header .am-nav-pills>li:first-of-type,
.am-theme-header .am-nav-pills>li+li {
    margin-left: 4rem;
}

.am-theme-header .am-nav-pills>li>a {
    padding: 0;
}

.am-theme-header .secondary-dropdown-content {
    position: absolute;
    background-color: #fff;
    display: none;
    min-width: 18rem;
    box-shadow: var(--box-shadow);
    border: 1px solid #eee;
}

.am-theme-header .secondary-dropdown-content a {
    color: #333;
}

.am-theme-header .secondary-dropdown-content a:hover {
    color: var(--color-main);
}


.am-theme-header .secondary-dropdown-content:before,
.am-theme-header .secondary-dropdown-content:after {
    position: absolute;
    display: block;
    content: "";
    width: 0;
    height: 0;
    border: 0.8rem dashed transparent;
    z-index: 1;
    left: 1rem;
    top: -0.8rem;
    pointer-events: none;
}

.am-theme-header .secondary-dropdown-content::before {
    border-bottom-color: #eee;
    bottom: 0;
    border-bottom-style: solid;
    border-width: 0 0.8rem 0.8rem;
}

.am-theme-header .secondary-dropdown-content::after {
    top: -1.5rem;
    border-bottom-color: #fff;
    bottom: -0.1rem;
}



.am-theme-header .menu-secondary-dropdown ul li a {
    color: #333 !important;
    font-size: 14px;
    padding: 0.6rem 1rem;
}

.am-theme-header .menu-secondary-dropdown ul li a.am-active {
    color: var(--color-main);
}

.am-theme-header a.logout {
    margin: 0 !important;
}

/* 问答页面导航样式 */
.nav-blog.am-theme-header.am-topbar.am-nav-absolute {
    background: rgba(0, 0, 0, 0.1);
    box-shadow: unset;
}

.first-li-margin-0>li:first-child {
    margin: 0 !important;
}


@media only screen and (max-width: 1350px) {
    .am-theme-header .am-topbar-right.margin-right-xxxl {
        margin-right: 2rem;
    }

    .am-theme-header .am-nav-pills>li:first-of-type,
    .am-theme-header .am-nav-pills>li+li {
        margin-left: 3rem;
    }
}

@media only screen and (max-width: 1260px) {
    .am-theme-header .am-topbar-right.margin-right-xxxl {
        margin-right: 1rem;
    }
}

@media only screen and (max-width: 1024px) {
    .search-bar {
        margin-bottom: 0;
    }
}

@media only screen and (max-width: 1000px) {
    .head-logo {
        width: 12rem;
    }

    header.am-theme-header.am-topbar .am-topbar-right a {
        margin-top: 0.5rem;
    }

    header.am-theme-header.am-topbar a {
        font-size: 1.6rem;
    }

    header.am-theme-header.am-topbar .la-name {
        font-size: 1.4rem;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn {
        font-size: 1.4rem;
        margin-top: 1rem;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn .iconfont {
        font-size: 1rem;
    }
}

@media only screen and (max-width: 820px) {
    .am-theme-header.am-topbar {
        padding: 0;
    }

    .head-logo {
        width: 8rem;
    }

    header.am-theme-header.am-topbar .am-topbar-right a {
        margin-top: 0.7rem;
    }

    header.am-theme-header.am-topbar a {
        font-size: 1.4rem;
    }

    header.am-theme-header.am-topbar .la-name {
        font-size: 1.2rem;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn {
        font-size: 1.2rem;
        padding: 0.4rem 1rem;
        margin-top: 1.3rem;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn img {
        width: 1.4rem;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn .iconfont {
        font-size: 0.8rem;
        top: 0;
    }
}

@media only screen and (max-width: 640px) {
    .am-theme-header .am-topbar-collapse {
        max-height: 80vh;
    }

    .am-theme-header .am-topbar-right-operate {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 0;
    }

    .am-theme-header .am-topbar-right .am-dropdown {
        display: inline-block !important;
    }

    header.am-theme-header.am-topbar .am-topbar-right a {
        margin: 0;
    }

    .am-theme-header .am-topbar-right .am-dropdown .am-btn {
        margin: 0 0 2rem 0;
        display: inline-block !important;
        width: 10rem;
    }


    .am-theme-header .am-nav-pills>li:first-of-type,
    .am-theme-header .am-nav-pills>li+li {
        margin: 0 0 1rem 0 !important;
    }

    .nav-blog.am-theme-header.am-topbar.am-nav-absolute,
    .nav-blog.am-theme-header.am-topbar.am-nav-absolute.collapsed-bg {
        background: rgba(0, 0, 0, 0.6);
        box-shadow: unset;
    }

    header.am-theme-header.am-topbar.am-nav-absolute.collapsed-bg {
        background: rgba(0, 0, 0, 0.3);
        box-shadow: 0 0 0.5rem 0.375rem rgba(0, 0, 0, 0.1);
    }
}

/* 
 * head页脚
*/
.am-nav-top-bg {
    position: relative;
    min-height: 11rem;
}

.am-nav-top-bg::before {
    content: '';
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(29, 44, 97, 0.4);
}

.am-footer.am-footer-default {
    margin-top: 2rem;
}

.am-footer {
    background: var(--body-bg-color);
}

.footer-about li.qrcode {
    margin-top: 0;
}

.footer-about li.qrcode img {
    max-width: 27rem;
    border-radius: 0.4rem;
}

.footer-about li i,
.footer-about li span,
.footer-about li a,
.footer-about li.tel a,
.footer-about li .desc {
    margin-top: 0.3rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
}

.footer-about li i {
    margin-right: 0.5rem;
}

.footer-list {
    padding: 0 1rem;
}

.footer-list li {
    text-align: left;
}

@media only screen and (min-width: 641px) {
    .am-footer {
        padding: 4rem 0 1rem 0;
    }

    .footer-list {
        padding: 0;
    }
}

.footer-list .am-gallery-item .footer-nav-title {
    color: #fff;
}

.footer-about ul {
    margin-bottom: 0;
}

.footer-about>li {
    margin-bottom: 0 !important;
}

.footer-about li {
    margin-bottom: 1rem;
}

.footer-list .am-gallery-item .footer-nav-title {
    font-size: 2.2rem;
    font-weight: 500;
    margin-bottom: 3.7rem;
}

.am-footer-default {
    border-top: 0;
}

.am-footer-default p {
    margin-bottom: 1.6rem;
}

.am-footer-default .am-footer-miscs p,
.am-footer-default .am-footer-miscs .footer-icp a {
    color: #b2b2b2;
}

.am-footer-default p.am-text-truncate a {
    font-size: 1.3rem;
    color: #444;
}

.am-footer-default p.am-text-truncate a:hover {
    color: var(--color-main-hover);
}

.am-footer-miscs .am-container {
    border: 0;
}

@media only screen and (max-width: 640px) {
    .am-nav-top-bg {
        display: flex;
        justify-content: center;
        overflow: hidden;
    }

    .am-nav-top-bg img {
        height: 18.5rem;
        width: auto;
        display: block;
        margin: 0 auto;
    }

    .footer-about li i,
    .footer-about li span,
    .footer-about li a,
    .footer-about li.tel a,
    .footer-about li .desc {
        font-size: 1.4rem;
    }

    .footer-about {
        border: 0;
        padding-top: 0;
        margin-top: 0;
        display: flex;
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .footer-about ul {
        margin: 0;
    }

    .am-footer {
        padding-bottom: 0 !important;
        padding-top: 3rem;
    }

    .footer-list .am-gallery-item .footer-nav-title {
        font-size: 1.6rem;
        margin-bottom: 1.7rem;
    }

    .am-footer-default p.am-text-truncate a {
        font-size: 1.4rem;
    }

    .footer-about li.qrcode img {
        width: 10rem;
    }
}


/* 
 * 多商户搜索条件筛选
*/
.plugins-shop-common-search {
    border-radius: 2rem;
    top: 0.8rem !important;
}

.plugins-shop-common-search:hover {
    border-top-right-radius: var(--border-radius);
    border-bottom-left-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

@media only screen and (max-width: 640px) {

    /* 
     * 搜索
    */
    .search-bar form .search-group,
    .search-bar input,
    #ai-topsearch {
        height: 4rem;
    }

    .search-bar input {
        height: 3.6rem;
    }

    #search-input {
		padding-left:0rem;
    }
    .am-swiper-container .search-container .search button {
        right: 5px;
		top: var(--i-m-l) !important;
    }
	.search-container #search-tips {
		width: 24rem !important;
		top: 4rem !important;
		max-height:250px !important;
	}
    #ai-topsearch {
        height: 100%;
    }

    #ai-topsearch span {
        font-size: 1.4rem;
    }

    #ai-topsearch i {
        font-size: 1.6rem;
    }

    .plugins-shop-common-search li {
        height: 3.4rem !important;
        line-height: 2.8rem !important;
    }

    .plugins-shop-common-search {
        top: 0.1rem !important;
    }

    .plugins-shop-common-search li i {
        top: 0.8rem !important;
    }
}

/* 
 * 悬浮车
*/
.cart-service {
    position: fixed;
    top: 50%;
    right: 2rem;
    transform: translateY(-50%);
    z-index: 1002;
}

.cart-service .cart {
    width: 6rem;
    height: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100%;
    background: #F4F5FA;
    box-shadow: 0rem 0.2rem 0.4rem 0rem #C0CCDE;
    cursor: pointer;
    margin-bottom: 2.8rem;
}

.cart-service .cart i {
    font-size: 3rem;
}

.cart-service .operate {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    align-items: center;
    background: #F4F5FA;
    box-shadow: 0rem 0.2rem 0.4rem 0rem #C0CCDE;
    border-radius: 3rem;
    transition: all 0.5s ease-in-out;
}

.cart-service .operate.active {
    padding-bottom: 7rem;
}

.cart-service .operate.active .sticky {
    opacity: 1;
}

.cart-service .operate .item>img {
    width: 6rem;
    border-radius: 100%;
    margin-bottom: 1.5rem;
    transition: all 0.5s;
}

.cart-service .operate .item>img:hover {
    box-shadow: 0rem 0.2rem 0.4rem 0rem #C0CCDE;
}

.cart-service .operate .item>i {
    font-size: 3.4rem;
    line-height: 7rem;
    transition: all 0.5s;
}

.cart-service .operate .item>i:hover {
    color: var(--color-main);
}

.cart-service .item {
    background-color: #F4F5FA;
    border-radius: 3rem;
    width: 99%;
}

.cart-service .item .mobile,
.cart-service .item .wechart {
    opacity: 0;
    position: absolute;
    background: #fff;
    padding: 1rem;
    margin: 0.5rem 0;
    right: 6rem;
    top: 0;
    border-radius: 1rem;
    display: flex;
    visibility: hidden;
    transition: all 0.5s ease-out;
    box-shadow: 0rem 0.125rem 0.25rem 0rem rgba(0, 0, 0, 0.16);
}

.cart-service .item .mobile span {
    color: var(--color-blue);
}

.cart-service .item .wechart {
    justify-content: center;
    align-items: center;
}

.cart-service .item .wechart img {
    max-width: 10rem;
    border-radius: var(--border-radius);
}

.cart-service .item:hover .mobile,
.cart-service .item:hover .wechart {
    opacity: 1;
    visibility: visible;
    right: 8rem;
}

.cart-service .sticky {
    position: absolute;
    bottom: 0;
}


/* 
 * 购物车数量的角标
*/
.am-cart-badge {
    position: absolute;
    top: -0.6rem;
    right: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    background: var(--color-badge-danger);
    color: var(--color-badge-danger-text);
    font-size: 1.2rem;
    border-radius: 100%;
}