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

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

.am-theme-header.am-topbar .am-topbar-brand {
    height: 5rem;
    line-height: 5rem;
}

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

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

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

header.am-theme-header.am-topbar .user-info .divider,
header.am-theme-header.am-topbar a {
    color: #333;
    transition: all 0.3s ease-in-out;
    font-size: 1.6rem;
}

header.am-theme-header.am-topbar.am-topbar-top .user-info .divider,
header.am-theme-header.am-topbar.am-nav-absolute .user-info .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: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);
}

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

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

header.am-theme-header.am-topbar .mobile {
    padding: 1.1rem 2.2rem;
    background: var(--color-red);
    border-radius: 2.6rem;
    font-size: 2.1rem;
    color: #fff !important;
    font-weight: 500;
}

header.am-theme-header.am-topbar.am-specify-page-nav-position .mobile {
    padding: 0.6rem 1.2rem;
    font-size: 1.6rem;
}

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

.am-theme-header .user-info {
    display: flex;
    align-items: center;
    margin-left: 3rem;
    margin-right: 2rem;
    height: 5rem !important;
}

.am-theme-header .user-info>* {
    white-space: nowrap;
}

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

    .am-theme-header .topbar-content {
        flex: 1;
        width: 0;
        display: flex;
    }

    .am-theme-header .topbar-content.topbar-content-width {
        justify-content: space-between;
    }

    .am-theme-header .menu-item {
        max-width: 80rem;
        overflow: hidden !important;
        height: 5rem !important;
    }

    .am-theme-header .topbar-content.topbar-content-width .menu-item {
        max-width: 100%;
    }

    .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 a {
    display: inline-block;
}

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

    .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-topbar-nav>li>a {
    line-height: 5rem;
}

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

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

/* 导航搜索框 */
.am-nav-search {
    width: 25rem;
}

.am-nav-search .search-bar input {
    height: 4rem;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    width: 100%;
    text-align: right;
    padding-right: 4rem;
}

.am-nav-search .search-bar button {
    position: absolute;
    right: 0.5rem;
    border: 0;
    color: #666 !important;
    font-size: 1.7rem;
    margin-top: 0.6rem !important;
}

.am-nav-search .plugins-shop-common-search {
    top: 0.1rem !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.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-nav-pills>li:first-of-type,
    .am-theme-header .am-nav-pills>li+li {
        margin-left: 3rem;
    }
}

@media only screen and (max-width: 1200px) {
    header.am-theme-header.am-topbar .mobile {
        padding: 0.6rem 1.2rem;
        font-size: 1.6rem;
    }
}

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

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

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

    .head-logo {
        width: 8rem;
    }
}

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

    .am-theme-header .am-topbar-collapse {
        max-height: 80vh;
    }

    .am-theme-header .am-nav-pills>li:first-of-type,
    .am-theme-header .am-nav-pills>li+li {
        margin: 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);
    }

    .am-theme-header .menu-item .am-topbar-nav {
        margin-bottom: 0;
    }

    .am-theme-header .user-info {
        margin-left: 0rem;
        margin-right: 0rem;
    }

    header.am-theme-header.am-topbar.am-specify-page-nav-position .mobile,
    header.am-theme-header.am-topbar .mobile {
        padding: 0.6rem 1.2rem;
        border-radius: 2.6rem;
        font-size: 1.4rem;
        margin-top: 1rem;
    }
}

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

.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: #2A307C;
}

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

.footer-about li.qrcode img {
    max-width: 14rem;
    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: 13rem 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: 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.6rem;
    color: #CBCCD1;
}

.am-footer-default p.am-text-truncate a:hover {
    color: #fff;
}

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

@media only screen and (max-width: 640px) {
    .footer-about {
        border: 0;
        padding-top: 0;
        margin-top: 0;
        display: flex;
        gap: 2rem;
    }

    .footer-about ul {
        margin: 0;
    }

    .footer-about li {
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

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

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

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

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


/* 
 * 搜索
*/
.search-bar {
    max-width: 80rem;
    width: 100% !important;
    height: auto !important;
    position: relative;
}

.search-bar form .search-group {
    border-radius: 2.5rem;
}

.search-hot-keywords {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-right: 28%;
}

.search-bar form .search-group,
.search-bar input,
#ai-topsearch {
    height: 5.4rem;
}

.search-bar input {
    font-size: 1.4rem;
}

#ai-topsearch {
    height: 100%;
}

#ai-topsearch span {
    font-size: 2.1rem;
    line-height: unset;
}

#ai-topsearch i {
    font-size: 2.4rem;
    position: relative;
    top: 1px;
}

@media only screen and (min-width: 641px) {
    .search-hot-keywords {
        padding-right: 20%;
    }
}

/* 
 * 多商户搜索条件筛选
*/
.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 {
        border-top-left-radius: 50%;
        border-bottom-left-radius: 50%;
    }

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

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

@media only screen and (max-width: 820px) {
    .am-cart-badge {
        right: -0.3rem;
    }
}