@import url("./font.css");

/**
 * 公共
 */
*, *:before, *:after {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

[class*=kicon-]:before {
    font-family: "kiconfont";
    vertical-align: middle;
    font-style: normal;
}

body {
    margin: 0;
}

.g-btn {
    border-radius: 5px;
}

.g-block {
    border-radius: 10px;
    overflow: hidden;
}

/**
 * 导航栏
 */
.head-layer {
    display: flex;
    flex-direction: row;
    justify-content: center;
    aligin-items: center;
    width: 100%;
    background: #ffffff;
}

.head-layer .head {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    height: 4.25rem;
    background: #ffffff;
}

.head-layer .head .logo {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 4.25rem;
    height: 4.25rem;
}

.head-layer .head .logo img {
    /*width: 80%;*/
    height: 80%;
}

.head-layer .head .nav {
    display: none;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}

.head-layer .head .nav .item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 130px;
    font-weight: bold;
    color: #333333;
}

.head-layer .head .nav .item a {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 1.1rem;
    color: #333333;
    text-decoration: none;
}

.head-layer .head .nav .lang > div{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 110px;
    height: 40px;
    font-family: unset;
    font-style: unset;
    background: #efefef;
    border-radius: 50px;
}

.head-layer .head .nav .lang > div > div{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin: 10px;
    height: 30px;
    color: #999;
}

.head-layer .head .nav .lang > div > div a {
    color: #999;
    text-decoration: none;
}

.head-layer .head .nav .lang > div > div.active{
    justify-content: center;
    width: 1px;
    background: #ff4242;
    color: #ffffff;
    border-radius: 25px;
    flex-grow: 1;
    margin: 5px;
}

.head-layer .head .nav .lang > div > div.active a{
    color: #ffffff;
}

.head-layer .head .nav .item a>div:last-child {
    font-size: 0.8rem;
    /*font-weight: bold;*/
    font-style: italic;
    color: #afafaf;
    font-family: fangsong;
    padding-top: 2px;
}

.head-layer .head .menu-button {
    background: none;
    border: none;
    color: #333333;
    font-size: 1.5rem;
    margin: 20px;
    padding: 0;
    cursor: pointer;
}

.head-layer .mobile-menu {
    position: fixed;
    top: 0;
    right: -200%;
    width: 16rem;
    height: 100%;
    background-color: #f8f8f8;
    padding: 1.5rem;
    transition: right 0.3s;
    z-index: 1000;
}

.head-layer .mobile-menu .mask {
    position: absolute;
    width: calc(100vw - 16rem);
    height: 100%;
    left: calc(0px - (100vw - 16rem));
    top: 0;
}

.head-layer .mobile-menu .close-menu {
    background: none;
    border: none;
    color: #333333;
    font-size: 1.5rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
    padding: 0;
}

.head-layer .mobile-menu .nav {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-top: 1px solid #cfcfcf;
    padding-top: 1.5rem;
}

.head-layer .mobile-menu .nav .item {
    display: flex;
    height: 2.5rem;
    color: #333333;
    text-decoration: none;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.head-layer .mobile-menu .nav .item a {
    color: #333333;
    text-decoration: none;
}

.head-layer .mobile-menu .nav .item a.active {
    color: #ff4242;
    text-decoration: none;
}

.head-layer .open {
    right: 0;
}

@media (min-width: 1200px) {

    .head-layer .head {
        height: 6.25rem;
    }

    .head-layer .head .logo {
        width: 6.25rem;
        height: 6.25rem;
    }

    .head-layer .head .nav {
        display: flex;
    }

    .head-layer .head .menu-button {
        display: none;
    }

    .head-layer .mobile-menu {
        display: none;
    }
}



/*
 * 底部栏
 */
.footer {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 300px;
    background: #000000;
    color: #ffffff;
    padding: 30px 0;
}

.footer .copyright {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    color: #ffffff;
}

.footer .content-block {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 1200px;
    height: 100%;
    padding: 0 30px;
}

.footer .content-block .info-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 2rem;
}

.footer .content-block .info-block .nav {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.footer .content-block .info-block .nav div {
    margin-right: 10px;
    line-height: 1.6rem;
}

.footer .content-block .info-block .nav div a {
    color: #ffffff;
    text-decoration: none;
}

.footer .content-block .info-block .contact {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 1.2rem;
}

.footer .content-block .info-block .contact div {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    line-height: 1.6rem;
    white-space: normal;
}

.footer .content-block .info-block .contact i {
    margin-right: 0.5rem;
}

.footer .content-block .info-block .contact a {
    color: #ffffff;
    line-height: 1.6rem;
    text-decoration: none;
}

.footer .content-block .qrcode-block {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
}

.footer .content-block .qrcode-block div {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    margin: 0 10px 10px 10px;
    width: calc(50% - 22px);
}

.footer .content-block .qrcode-block div img {
    margin-bottom: 10px;
    object-fit: cover;
}

.footer .content-block .qrcode-block div div {
    width: 100%;
}

@media (min-width: 1200px) {

    .footer .content-block {
        flex-wrap: unset;
        margin: unset;
    }

    .footer .content-block .info-block {
        width: unset;
        margin-bottom: unset;
    }

    .footer .content-block .qrcode-block {
        justify-content: flex-end;
        width: unset;
    }

    .footer .content-block .qrcode-block div {
        width: unset;
        margin-left: 10px;
    }

    .footer .content-block .info-block .contact .address {
        width: 70%;
    }
    .footer .content-block .info-block .contact .address.zh {
        width: unset;
    }
}

@media (max-width: 768px) {

    .footer .content-block .info-block {
        align-items: center;
    }

    .footer .content-block .info-block .contact {
        width: 100%;
    }

    .footer .content-block .info-block .contact div {
        white-space: break-spaces;
        text-align: center;
        width: 100%;
    }
}



/**
 * 轮播图
 */
.banner {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.banner .swiper {
    width: 100%;
    height: 20rem;
}

.banner .swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner .slick-carousel .slick-dots {
    background: #ffffff77;
    border-radius: 40px;
    width: fit-content;
    bottom: 10px;
    left: 0;
    right: 0;
    margin: auto;
}

.banner .slick-carousel .slick-arrow {
    z-index: -1;
}

.banner .slick-carousel .slick-prev {
    left: 25px;
}

.banner .slick-carousel .slick-next {
    right: 25px;
}

.banner .slick-carousel .slick-prev,
.banner .slick-carousel .slick-next {
    width: 60px;
    height: 60px;
}

.banner .slick-carousel .slick-prev:before,
.banner .slick-carousel .slick-next:before {
    font-size: 60px;
}

@media (min-width: 1200px) {
    .banner .swiper {
        height: calc(100vw * 0.27);
    }

    .banner .slick-carousel .slick-arrow {
        z-index: 1;
    }
}





/**
 * 新品上新
 */
.goods-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
}

.goods-column .title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 1rem 1.5rem;
}

.goods-column .title-block .title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 2rem;
    font-weight: bold;
    color: #262626;
}

.goods-column .title-block .title span {
    font-weight: normal;
}

.goods-column .title-block .title img {
    width: 100%;
}

.goods-column .title-block .sub-title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 1rem;
}

.goods-column .category {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.goods-column .category .category-list {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    max-width: 1200px;
    margin: 0 5px 1rem 5px;
    -ms-overflow-style: none; /* IE 和 Edge */
    scrollbar-width: none; /* Firefox */
}

.goods-column .category .category-list .item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 24px;
    margin-right: 10px;
    border: 1px solid #222222;
    cursor: pointer;
}

.goods-column .category .category-list .item:last-child {
    margin-right: 0px;
}

.goods-column .category .category-list .active {
    border: 1px solid #ff4242;
    color: #ff4242;
}

.goods-column .goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* 左对齐 */
    max-width: 1200px;
    padding: 0px 0;
    width: 100%;
}

.goods-column .goods-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #eeeeee;
    border-radius: 5px;
    margin: 10px;
    width: calc(20% - 22px);
    box-shadow: 0 0px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    cursor: pointer;
}

.goods-column .goods-card:hover {
    transform: translateY(-5px);
}

.goods-column .goods-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 保持1:1比例 */
    overflow: hidden;
}

.goods-column .goods-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 保持图片覆盖整个容器 */
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.goods-column .goods-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    flex-grow: 1;
}

.goods-column .goods-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333333;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

.goods-column .goods-price {
    display: none;
    margin: 0;
    color: #e91e63;
}

.goods-column .more {
    border: 1px solid #222222;
    padding: 12px 32px;
    margin-top: 1rem;
    cursor: pointer;
}

@media (max-width: 1000px) {

    .goods-column .goods-card {
        width: calc(33% - 20px);
    }

}

@media (max-width: 768px) {

    .goods-column .goods-list {
        padding: 0;
    }

    .goods-column .goods-card {
        width: calc(50% - 20px);
    }

    .goods-column .title-block .title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {

    .goods-column .goods-card {
        width: calc(50% - 12px);
        margin: 10px 5px;
    }

    .goods-column .title-block .title {
        font-size: 1.7rem;
    }

    .img-mobile {
        display: block !important;
    }
    .img-web {
        display: none !important;
    }
}

@media (min-width: 480px) {

    .img-mobile {
        display: none !important;
    }
    .img-web {
        display: block !important;
    }
}

@media (max-width: 320px) {
    .goods-column .goods-card {
        width: 100%;
    }
}