@tailwind base;
@tailwind components;
@tailwind utilities;

* {
    padding: 0;
    margin: 0;
}

#app {
    background-color: #f5f5f5;
    width: 100vw;
    min-height: 100vh;
    color: black;
}

*::-webkit-scrollbar {
    /*隐藏滚动条*/
    display: none;
}

@media screen and (min-width: 320px) and (max-width: 768px) {
    html {
        font-size: 12px
    }
}

html::-webkit-scrollbar {
    width: 0 !important
}

.noScroll::-webkit-scrollbar {
    width: 0 !important;
}


html {
    /* font-size: calc(100vw / 100); */
    font-size: calc(1vw);
}

body {
    font-size: 1rem;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    padding: 3rem 0;
}
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swiper-button-next{
    color: #ff9126 !important;
    right: 2rem;
}
.swiper-button-prev{
    color: #ff9126 !important;
    left: 2rem;
}
.buttonNext{
    right: 5rem !important;
}
.buttonPrev{
    left: 5rem !important;
}

.swiper-pagination-bullet {
    background: #d6d6d6; /* 设置指示点的颜色 */
  }
   
  .swiper-pagination-bullet-active {
    background: #ff9126; /* 设置激活状态下的指示点颜色 */
  }
.max-w {
    width: 80%;
    margin: 0 auto;
}


.white-box {
    background-color: white;
    width: 32%;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.gh {
    height: 5rem;
}

.mian-1 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    word-break: break-all;
}

.mian-2 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-all;
}

.mian-4 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    word-break: break-all;
}

.mian-9 {
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 9;
    word-break: break-all;
}

a {
    text-decoration: none;
}

.overdd {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.text-indent-2 {
    text-indent: 2em;
}

.color-white {
    color: white;
}

.relative {
    position: relative;
}

.flex {
    display: flex;
}

.flex-1 {
    flex: 1;
}

.flex-wrap {
    flex-wrap: wrap;
}

.item-center {
    align-items: center;
}

.justify-start {
    justify-content: flex-start;
}

.justify-between {
    justify-content: space-between;
}

.justify-around {
    justify-content: space-around;
}


.font-bold {
    font-weight: 700;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.pt-3 {
    padding-top: 3rem;
    ;
}

.mt-10 {
    margin-top: 10rem;
    ;
}

.color-O {
    color: #ff9126 !important;
}

/* 小标题 */
.subtitle {
    font-weight: 700;
    text-align: center;
    color: #353535;
    padding: 4rem 0;
    font-size: 2.25rem;
}

/* 头部 */
.nav-left {
    color: #ff9126;
    font-size: 3rem;
    text-decoration: none !important;
}

.nav-left:hover {
    color: #ff9126;
    text-decoration: none !important;
}

.nav-right {
    font-size: 1.2rem;
}

.nav-right a {
    padding: 0 1rem;
    text-decoration: none !important;
    color: black;
}

.login {
    color: #bfbebe !important;
    padding-left: 3rem;
}

.login>a:nth-child(1) {
    color: #ff9126;
}

.login>a:nth-child(2) {
    color: #bfbebe !important;
    padding: 0 0.25rem;
}
.login>a:nth-child(1):hover{
    color: #ff9126;
}

/* 底部 */
.footer {
    background-color: #101113;
    width: 100vw;
    color: white;
    text-align: center;
}

.footer-title {
    font-weight: 700;
    font-size: 3.25rem;
    padding-top: 2rem;
}

.footer-subtitle {
    font-size: 1rem;
    font-weight: 700;

}

.footer-content {
    margin-top: 2rem;
    display: flex;
    justify-content: space-around;
}

dt {
    font-size: 1.45rem;
    padding: 0.45rem 0;
}

dl {
    width: 30%;
    text-align: left;
}

dd a {
    color: white !important;
    text-decoration: none !important;
}

/* 搜索框 */
.serach {
    position: relative;
    margin: 3rem 0;
}

.serach>input {
    width: 100%;
    height: 3rem;
    line-height: 2rem;
    border-radius: 10rem !important;
}

input:focus {
    outline: none;
    border: none !important;
    box-shadow: 0 0 0 0 #00000000 !important;
}

.serach>div {
    position: absolute;
    right: 1rem;
    top: .25rem;
    font-size: 1.6rem;
    color: #999999;

    
}
a{
    text-decoration: none;
    color: #000;
}
a:hover{
text-decoration: none;
color: #000;
}

/* 移动 */

.product-model {
    font-size: 1.45rem;
    position: relative;
    margin-top: 2rem;
}

.product-model-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: scroll;
}

.product-model-item  a {
    flex:1;
    text-align: center;
}

.product-model-img {
    width: 25rem !important;
    height: 24.45rem !important;
    margin: 0 1rem;
}
.imgcont{
    height: 18rem !important;
    width: 25rem !important;
    margin: 0 .75rem;
}
.product-model-div {
    line-height: 2em;
}

.left {
    position: absolute;
    top: 45%;
    left: 5%;
    font-size: 2rem;
    z-index: 9999;
}

.right {
    position: absolute;
    top: 45%;
    right: 5%;
    font-size: 2rem;
    z-index: 9999;
}


/* 轮播图 */
ul, ol, li {
    list-style: none;
}
.banner {
    height: 36rem;
    position: relative;
}

.banner>ul {
    width: 100%;
    height: 100%;
    position: relative;
}

.banner>ul>li {
    width: 100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    transition: opacity .5s linear;
}
ul>li> img {
    width: 100%;
    height: 100%;
    display: block;
}


.banner>ul>li.active {
    opacity: 1;
}

.banner>ol {
    height: 1.8rem;
    position: absolute;
    left: 48%;
    bottom: 0rem;
    display: flex;
    justify-content: space-around;
    align-items: center;
    /* border-radius: 15px; */
}

.banner>ol>li {
    width: 0.75rem;
    height: 0.75rem;
    background-color: #fff;
    border-radius: 50%;
    margin: 0 0.75rem ;

}

.banner>ol>li.active {
    background-color: orange;
}

.banner>div {
    width: 40px;
    height: 60px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    /* background-color: rgba(255, 145, 38, .5); */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    color: #fff;
    text-align: center;
    line-height: 60px;
}

.banner>div.left {
    left: 1%;
    font-size: 2rem;
    cursor: pointer;
}

.banner>div.right {
    right: 1%;
    font-size: 2rem;
    cursor: pointer;
}
