@import url(basic.css);

.container {
    max-width: 1220px;
    margin-inline: 1rem;
    /* padding-inline: 1rem; */
}

.grid {
    display: grid;
    gap: 1.5rem;
}

.section {
    padding-block: 5rem 1rem;
}

.section__title {
    text-align: center;
    font-size: var(--h1-font-size);
    margin-bottom: 2rem;
}

.main {
    overflow: hidden;
}

/*====================== 头部&导航 =======================*/
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--body-color);
    z-index: var(--z-fixed);
    transition: box-shadow .6s, background-color .6s;
}

.nav {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--first-color);
    font-weight: var(--font-medium);
}

.nav__logo i {
    font-size: 1.25rem;
}

.nav__logoimg {
    box-shadow: none;
    height: 20px;
}

.nav__list {
    display: flex;
    justify-content: space-between;
    text-align: center;
}

.nav__link {
    color: var(--text-color);
    transition: color .6s;
    font-weight: var(--font-medium);
}

.nav__link span {
    display: block;
}

.nav__link i {
    font-size: 1.25rem;
}

.nav__link:hover {
    color: var(--first-color);
}

.nav__actions {
    display: flex;
    align-items: center;
    column-gap: 1rem;
}

.nav__actions i {
    font-size: 1.25rem;
    color: var(--title-color);
    cursor: pointer;
    transition: color .6s;
}

.nav__actions i:hover {
    color: var(--first-color);
}

/*================ 搜索 ==================*/
.search {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-fixed);
    background-color: hsla(230, 12%, 96%, .6);
    backdrop-filter: blur(16px);
    padding: 8rem 1.5rem;
    transition: top .6s;
}

.search__form {
    display: flex;
    align-items: center;
    column-gap: .5rem;
    padding-inline: 1rem;
}

.search__icon {
    font-size: 1.25rem;
    color: var(--title-color);
}

.search__input {
    width: 100%;
    padding-block: 1rem;
    background-color: var(--container-color);
    color: var(--text-color);
}

.search__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--title-color);
    cursor: pointer;
}

.show-search {
    top: 0;
}

/*================ 用户登录 ==================*/
.login {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-fixed);
    background-color: hsla(230, 12%, 96%, .6);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    align-items: center;
    text-align: center;
    transition: top .6s;
}

.login__form {
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border: 2px solid var(--border-color);
    row-gap: 1.5rem;
}

.login__title {
    font-size: var(--h2-font-size);
}

.login__group {
    row-gap: 1.5rem;
}

.login__label {
    display: block;
    text-align: initial;
    color: var(--title-color);
    font-weight: var(--font-medium);
    margin-bottom: .5rem;
}

.login__input {
    width: 100%;
    background-color: var(--container-color);
    border: 2px solid var(--border-color);
    padding: 1rem;
    color: var(--text-color);
}

.login__signup,
.login__forgot {
    display: block;
    font-size: var(--small-font-size);
}

.login__signup {
    margin-bottom: .5rem;
}

.login__signup a {
    color: var(--first-color);
    font-weight: var(--font-medium);
}

.login__forgot {
    color: var(--first-color);
    margin-bottom: 1.25rem;
}

.login__button {
    width: 100%;
    cursor: pointer;
}

.login__close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--title-color);
    cursor: pointer;
}

.show-login {
    top: 0;
}



/*================ HOME ==================*/
.home__swiper {
    margin: initial;
    overflow: hidden;
}

.home__container {
    padding-top: 2rem;
    row-gap: 2.5rem;
}

.home__data {
    text-align: center;
}

.home__title {
    font-size: var(--biggest-font-size);
    margin-bottom: 1rem;
}

.home__description {
    margin-bottom: 2rem;
}

.home__images {
    display: grid;
}

.home__article,
.home__img {
    width: 220px;
    transition: scale .5s;
}

.home__img {
    box-shadow: 0 2px 6px hsla(0, 0%, 0%, .3);
}


.home__article {
    scale: .8;
}

.swiper-slide-active,
.swiper-slide-duplicate-active {
    scale: 1;
}

.shadow-header {
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, .1);
}

/*=================== SERVICES =======================*/
.services__container {
    row-gap: 3rem;
}

.services__card {
    text-align: center;
}

.services__card i {
    display: block;
    font-size: 3rem;
    color: var(--first-color);
    margin-bottom: 1rem;
}

.services__title {
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}

/*===================== FEATURED =======================*/
.featured__card {
    position: relative;
    text-align: center;
    background-color: var(--container-color);
    padding: 2rem 1rem;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: border .5s, background-color .5s;
}

.featured__img {
    width: 120px;
    margin: 0 auto .75rem;
}

.featured__title {
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
}

.featured__prices {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: .5rem;
    margin-bottom: 1.25rem;
}

.featured__discount {
    color: var(--title-color);
}

.featured__price {
    font-size: var(--small-font-size);
}

.featured__actions {
    display: inline-flex;
    flex-direction: column;
    row-gap: .75rem;
    position: absolute;
    top: 2rem;
    right: -1.5rem;
    transition: right .5s;
}

.featured__actions button {
    background: none;
    font-size: 1.25rem;
    color: var(--first-color);
    cursor: pointer;
}

.featured__card:hover .featured__actions {
    right: 1.5rem;
}

.featured__swiper {
    overflow: hidden;
    position: relative;
}

/*=================== DISCOUNT =========================*/
.discount__container {
    row-gap: 3.5rem;
}

.discount__data {
    text-align: center;
}

.discount__title {
    margin-bottom: 1rem;
}

.discount__description {
    margin-bottom: 2rem;
}

.discount__images {
    display: flex;
    justify-content: center;
}

.discount__img-1,
.discount__img-2 {
    width: 170px;
}

.discount__img-1 {
    transform: translateX(1rem) rotate(-10deg);
}

.discount__img-2 {
    transform: translateX(-1rem) rotate(10deg);
}

/*====================== new ========================*/
.new__card {
    display: flex;
    align-items: center;
    column-gap: 2.5rem;
    background-color: var(--container-color);
    padding: 1.5rem 1rem;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    transition: border .5s, background-color .5s;
}

.new__card:hover {
    border: 2px solid var(--text-color);
}

.new__title {
    font-size: var(--h2-font-size);
    margin-bottom: .5rem;
}

.new__img {
    width: 100px;
}

.new__prices {
    display: flex;
    align-items: center;
    column-gap: .75rem;
    margin-bottom: .75rem;
}

.new__discount {
    color: var(--title-color);
}

.new__price {
    font-size: var(--small-font-size);
}

.new__stars {
    color: var(--first-color);
}

.new__swiper {
    overflow: hidden;
    margin-bottom: 1rem;
}

.new__swiper:nth-child(3) {
    margin-bottom: 0;
}

/*====================== join ========================*/
.join__container {
    position: relative;
    padding: 3rem;
}

.join__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    box-shadow: none;
}

.join__data {
    position: relative;
}

.join__title {
    color: var(--white-color);
}

.join__form {
    display: grid;
    row-gap: 1rem;
}

.join__input {
    padding: 1.25rem 1rem;
    background-color: var(--body-color);
    color: var(--title-color);
    transition: background-color .5s;
    max-width: 900px;
}

.join__input::placeholder {
    color: var(--text-color);
}

.join__button {
    padding-block: 1.25rem;
    max-width: 900px;
}

.join__weixin {
    text-align: center;
    color: #fff;
}

.join__weixin img {
    width: 12rem;
    justify-self: center;
}

/*===================== testimonial ===================*/
.testimonial__card {
    text-align: center;
    background-color: var(--container-color);
    padding: 2rem 3rem 2.5rem;
    border: 2px solid var(--border-color);
    transition: border .5s, background-color .5s;
}

.testimonial__img {
    width: 120px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    box-shadow: none;
}

.testimonial__title {
    font-size: var(--h2-font-size);
    margin-bottom: .75rem;
}

.testimonial__description {
    font-size: var(--small-font-size);
    margin-bottom: 1.25rem;
}

.testimonial__stars {
    color: var(--first-color);
}

.testimonial__swiper {
    overflow: hidden;
}

/*============================ FOOTER ================================*/
.footer {
    padding-block: 3rem;
}

.footer__container {
    row-gap: 3rem;
}

.footer__logo {
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    color: var(--first-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1.25rem;
}

.footer__logo i {
    font-size: 1.25rem;
}

.footer__data {
    grid-template-columns: 1fr 2fr;
    gap: 3rem 2rem;
}

.footer__title {
    font-size: var(--h3-font-size);
    margin-bottom: 1.25rem;
}

.footer__links {
    display: grid;
    row-gap: .5rem;
}

.footer__link {
    color: var(--text-color);
    transition: color .5s;
}

.footer__link:hover,
.footer__social-link:hover {
    color: var(--first-color);
}

.footer__info {
    font-style: normal;
}

.footer__social {
    display: grid;
    row-gap: .25rem;
    margin-top: 1rem;
}

.footer__social-link {
    font-size: var(--small-font-size);
    color: var(--text-color);
}

.footer__copy {
    display: block;
    margin-top: 5rem;
    text-align: center;
    font-size: var(--small-font-size);
}



img {
    box-shadow: -6px 4px 8px hsla(0, 0%, 0%, .3);
}

/*========================== detail =======================*/
.anli__content {
    margin-top: 4rem;
    row-gap: 2rem;
    justify-self: center;
}

/*======================= SCROLLBAR =======================*/
::-webkit-scrollbar {
    width: .6rem;
    border-radius: .5rem;
    background-color: hsl(230, 16%, 85%);
}

::-webkit-scrollbar-thumb {
    border-radius: .5rem;
    background-color: hsl(230, 16%, 65%);
}

::-webkit-scrollbar-thumb:hover {
    background-color: hsl(230, 16%, 55%);
}

/*====================== scrollup ============================*/
.scrollup {
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: var(--container-color);
    box-shadow: 0 2px 8px hsla(0, 0%, 0%, .1);
    display: inline-flex;
    padding: 6px;
    font-size: 1.25rem;
    color: var(--title-color);
    z-index: var(--z-tooltip);
    transition: all .5s;
}

.scrollup:hover {
    transform: translateY(-.5rem);
}

.show-scroll {
    bottom: 6rem;
}

/*================== ACTIVE-LINK ===================*/
.active-link {
    color: var(--first-color);
}

/*===================== THEME ======================*/
body.dark-theme {
    --title-color: hsl(230, 48%, 85%);
    --text-color: hsl(230, 16%, 70%);
    --border-color: hsl(230, 12%, 18%);
    --body-color: hsl(230, 12%, 8%);
    --container-color: hsl(230, 12%, 12%);
}

.dark-theme .nav__menu {
    box-shadow: 0 -8px 32px hsla(0, 0%, 0%, .4);
}

.dark-theme .scrollup {
    box-shadow: 0 2px 8px hsla(0, 0%, 0%, .4);
}

.dark-theme .shadow-header {
    box-shadow: 0 2px 16px hsla(0, 0%, 0%, .4);
}

.dark-theme .search,
.dark-theme .login {
    background-color: hsla(230, 12%, 8%, .6);
}

.dark-theme::-webkit-scrollbar {
    background-color: hsl(230, 16%, 15%);
}

.dark-theme::-webkit-scrollbar-thumb {
    background-color: hsl(230, 16%, 25%);
}

.dark-theme::-webkit-scrollbar-thumb:hover {
    background-color: hsl(230, 16%, 35%);
}

.services__card i {
    font-size: 3.5rem;
}

@media screen and (max-width:1150px) {
    .nav__menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background-color: var(--container-color);
        box-shadow: 0 -8px 32px hsl(0, 0%, 0%, .1);
        padding: .65rem 1rem;
        transition: background-color .6s;
        z-index: 9999;
    }
}

.footer__copy {
    padding-bottom: 3rem;
}

/*====================== FOR small devices =======================*/
@media screen and (max-width:320px) {
    .container {
        margin-inline: 1rem;
    }

    .nav__menu {
        padding-inline: 3rem;
    }

    .discount__img-1,
    .discount__img-2 {
        width: 140px;
    }

    .new__card {
        flex-direction: column;
    }

    .new__title {
        margin-top: 1rem;
    }

    .testimonial__card {
        padding-inline: 1rem;
    }

    .footer__data {
        grid-template-columns: 1fr;
        row-gap: 2rem;
    }

}

@media screen and (max-width:450px) {
    .nav__link span {
        font-size: .8rem;
    }
}

/*====================== FOR medium devices =======================*/
@media screen and (min-width:450px) {
    .featured__card {
        width: 290px;
    }

    .new__card {
        width: 390px;
    }

    .testimonial__card {
        width: 320px;
    }
}

@media screen and (min-width:576px) {
    .search__form {
        width: 500px;
        margin-inline: auto;
    }

    .login__form {
        width: 400px;
        justify-self: center;
    }

    .search__close,
    .login__close {
        width: max-content;
        margin-inline: auto;
        top: 4rem;
        left: 0;
        right: 0;
    }

    .nav__menu {
        width: 576px;
        margin-inline: auto;
    }

    .home__container,
    .discount__container {
        grid-template-columns: 420px;
        justify-content: center;
    }

    .join__form {
        width: 328px;
        justify-self: center;
    }

    .footer__data {
        grid-template-columns: repeat(4, max-content);
    }
}

@media screen and (min-width:768px) {
    .home__container {
        grid-template-columns: 580px;
    }

    .home__data {
        width: 420px;
        justify-self: center;
    }

    .services__container {
        grid-template-columns: repeat(4, 1fr);
        justify-content: space-around;
    }

    .footer__container {
        grid-template-columns: repeat(2, max-content);
        justify-content: space-between;
    }

    .footer__social {
        grid-template-columns: repeat(3, max-content);
        justify-content: center;
        column-gap: 1.5rem;
    }
}

@media screen and (min-width:1150px) {
    .section {
        padding-block: 7rem 2rem;
    }

    .nav {
        height: calc(var(--header-height) + 2rem);
        column-gap: 4rem;
    }

    .nav__link i {
        display: none;
    }

    .nav__menu {
        width: initial;
        margin-inline: auto 0;
    }

    .nav__list {
        column-gap: 4rem;
    }

    .home__data {
        width: initial;
    }

    .services__card i {
        font-size: 4.5rem;
    }

    .featured__container {
        padding-top: 2rem;
    }

    .featured__img {
        width: 150px;
    }

    .featured__title {
        font-size: var(--h3-font-size);
    }

    .discount__container {
        grid-template-columns: 615px 500px;
        justify-content: space-between;
        align-items: center;
    }

    .discount__data {
        order: 1;
    }

    .discount__data,
    .discount__title {
        order: 1;
        text-align: initial;
    }

    .discount__description {
        margin-bottom: 3.5rem;
    }

    .discount__img-1,
    .discount__img-2 {
        width: 300px;
    }

    .new__container {
        padding-top: 2rem;
    }

    .new__title {
        font-size: var(--h3-font-size);
    }

    .new__img {
        width: 120px;
    }

    .testimonial__container {
        padding-top: 2rem;
    }

    .testimonial__card {
        padding-inline: 2rem;
    }

    .testimonial__title {
        font-size: var(--h3-font-size);
    }

    .testimonial__description {
        font-size: var(--normal-font-size);
    }

    .footer {
        padding-block: 6rem 3rem;
    }

    .footer__data {
        column-gap: 4.5rem;
    }

    .footer__logo,
    .footer__title {
        font-size: var(--h2-font-size);
        margin-bottom: 1.5rem;
    }

    .footer__links {
        row-gap: 1rem;
    }

    .footer__social,
    .footer__social a {
        font-size: var(--normal-font-size);
    }

    .footer__copy {
        margin-top: 7rem;
        padding-bottom: 0;
    }

    .scrollup {
        right: 3rem;
    }

    .show-scroll {
        bottom: 3rem;
    }
}

@media screen and (min-width:1220px) {
    .container {
        margin-inline: auto;
    }

    .home__container {
        grid-template-columns: 435px 745px;
        align-items: center;
        justify-content: space-between;
        padding-block: 7rem 2rem;
    }

    .home__data {
        text-align: initial;
    }

    .home__description {
        margin-bottom: 1rem;
    }

    .nav__logo {
        font-size: 1.4rem;
    }

    .nav__logo i {
        font-size: 1.8rem;
    }

    .home__article,
    .home__img {
        width: 290px;
    }

    .nav__logoimg {
        height: 25px;
    }
}

.login__group .join__weixin {
    color: var(--text-color);
}

.menu__m .nav__list {
    flex-direction: column;
    justify-content: center;
}


.embed-toolbar[data-v-9858d005]{
    z-index: 1 !important;
}

.zazhi{
    grid-template-columns: repeat(2,1fr);
}
.zazhi h2{
    font-size: var(--normal-font-size);
    margin-top: 1rem;
    text-align: center;
}

@media screen and (min-width:1150px) {
    .zazhi{
        grid-template-columns: repeat(4,1fr);
    }
}

.about__span{
    font-weight: 600;
}

.about__h3{
    margin-top: 3rem;
}

.about p{
    line-height: 2rem;
    text-indent: 2rem;
}