@import "app.font.css";
@import "../font/iconfont.css";

* {
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
    text-decoration: none;
    color: inherit;
    font-weight: normal;
    font-family: 'UKIJ Tor';
    box-sizing: border-box;
    font-style: normal;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 14px;
}

body {
    width: 100%;
    overflow-x: hidden;
    background: #f3f4f4;
}

img {
    vertical-align: middle;
    max-width: 100%;
}

.margin-10 {
    margin: 10px;
}

.padding-10 {
    padding: 10px;
}

.border-radius-6 {
    border-radius: 6px;
}

/** header **/
#navbar {
    background: #fff;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 50px;
}

#navbar .logo {

}

#navbar .names {
    font-family: Shirkhan Egme;
    font-size: 16px;
}

#navbar .logo i {

}

#navbar .search {

}

#navbar .search i {

}

/**  slider **/
.slider {
    width: calc(100% - 20px);
    height: auto;
    position: relative;
    background: #fff;
}

.slider .swiper-slide {
    width: 100%;
    height: auto;
    background: #fff;
    box-shadow: 0 .05rem .2rem rgba(0, 0, 0, .2);
}

.slider .swiper-slide img {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.slider .swiper-pagination {
    width: 100%;
    bottom: 15px;
}

.slider .swiper-pagination-bullets .swiper-pagination-bullet {
    margin: 0 5px;
    background-color: rgba(0, 0, 0, .5);
    width: 20px;
    height: 3px;
}

.slider .swiper-pagination-bullets .swiper-pagination-bullet-active {
    background-color: #fff
}

.slider .swiper-button-prev {
    left: .2rem;
    top: 0;
    width: .3rem;
    height: 100%;
    margin-top: 0;
    background: none;
}

.slider .swiper-button-prev:hover {
    background: none;
}

.slider .swiper-button-next {
    right: .2rem;
    top: 0;
    width: .3rem;
    height: 100%;
    margin-top: 0;
    background: none;
}

.slider .swiper-button-next:hover {
    background: none;
}

.menus {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.menus .item {
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    padding: 15px 0;
    gap: 10px;
}

.menus .item img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.menus .item span {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 12px;
}

.one_item {
}

.one_item .item {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    gap: 10;
}

.one_item .item img {
    width: 110px;
    height: 120px;
    background: #fff;
}

.one_item .item .item-info {
    padding: 10px;
    background: #fff;
    width: calc(100% - 120px);
    height: 120px;
    overflow: hidden;
    position: relative;
}

.one_item .item .item-info .item-title {
    font-size: 16px;
    font-weight: bold;
    height: 43px;
    line-height: 40px;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
}

.one_item .item .item-info .items {
    font-size: 12px;
    display: flex;
    flex-direction: row-reverse;
    gap: 10px;
    flex-wrap: wrap;
}

.one_item .item .item-info .items span {
    background: #f3f4f4;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
}

.one_item .item .item-info .items .hots {
    position: absolute;
    top: 0px;
    background: red;
    color: #fff;
    left: 0;
    border-bottom-right-radius: 6px;
    font-size: 18px;
}

/******************/
/** category **/

/** category **/
.category-nav {
    display: flex;
    flex-direction: column;
    background: #fff;
}

.category-nav .item-slider {
    width: 100%;
    height: 30px;
    display: flex;
    direction: rtl;
    overflow-x: auto;
    white-space: nowrap;
    margin-bottom: 10px;
}

.category-nav .item-slider {
    -ms-overflow-style: none; /* IE å’Œ Edge */
    scrollbar-width: none; /* Firefox */
}

.category-nav .item-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-nav .item-slider a {
    padding: 5px 13px;
    margin-left: 0px;
    border-radius: 6px;
    color: #656464;
    font-size: 14px;
}

.category-nav .item-slider .active {
    background: #f3f4f4;
}

/** tabbar **/
.tabbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 9;
    animation: slideUp 0.5s ease-out;
}
.tabbar a {
    width: 30%;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease;
}
.tabbar a:hover {
    transform: translateY(-2px);
}
.tabbar a:active {
    transform: scale(0.95);
}
.tabbar a:active::after {
    width: 100px;
    height: 100px;
}
.tabbar a i {
    color: #9f9f9f;
    font-size: 19px;
    transition: all 0.3s ease;
}
.tabbar a:hover i {
    transform: scale(1.1);
}
.tabbar a .name {
    color: #565656;
    font-weight: lighter;
    transition: all 0.3s ease;
}

.tabbar a.active i{
    color: #2196F3;
    animation: pulse 0.5s ease;
}
.tabbar a.active .name{
    color: #2196F3;
    animation: fadeInUp 0.5s ease;
}
/* 定义动画关键帧 */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.tabbar a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}