*{
    padding: 0;
    margin: 0;
}
html, body {
    width: 100%;
    min-width: 320px;
    max-width: 640px;
    margin: 0 auto;
    overflow-x: hidden;
    position: relative;
    height: 100%;

}

html {
    background-color: #ffffff;
    box-shadow: 0 0 0 1px #ddd;
}

#app{
    background-image: url("../image/green_shop/top-bg.png");
    background-size: 100% 24%;
    background-repeat: no-repeat;
}

:root{
    --dm-image-gap:6px;
}

.top-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 2%;
}

.bg-container {
    width: 100%;
    height: auto;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.bg-container img {
    width: 100%;
}

.header-container {
    width: 100%;
    height: 50px;
    overflow: hidden;
    position: absolute;
    top: 10px;
    left: 0;
    z-index: 2;
}

.location-container {
    width: 32%;
    height: 50px;
    overflow: hidden;
    float: left;
}

.location-icon {
    width: 16px;
    height: 16px;
    float: left;
    margin-top: 18px;
    margin-left: 10px;
}

.location-icon img {
    width: 100%;
}

.select-location {
    float: left;
    line-height: 50px;
    color: #ffffff;
    font-size: 15px;
    margin-left: 6px;
}

.select-icon {
    width: 14px;
    height: 16px;
    overflow: hidden;
    float: right;
    margin-left: 10px;
    margin-top: 14px;
    margin-right: 10px;
}

.select-icon img {
    width: 100%;
}

.search-container {
    width: auto;
    float: left;
    margin-left: 10px;
}

.navbar {
    width: 100%;
    height: 40px;
    z-index: 2;
}

.category-container {
    width: calc(100% - 60px);
    height: 40px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.category-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-content {
    display: inline-flex;
    white-space: nowrap;
    line-height: 40px;
    width: 90%;
}

.category-item {
    padding: 0 10px;
    font-size: 15px;
    flex-shrink: 0;
    color: #ffffff;
}

.category-item.active {
    font-weight: 600;
}

.all-category-container {
    width: 56px;
    height: 40px;
    overflow: hidden;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 3;
    background: #a2191d;
}

.all-category-icon {
    width: 16px;
    height: 16px;
    overflow: hidden;
    float: left;
    margin-top: 12px;
}

.all-category-icon img {
    width: 100%;
}

.category-more {
    float: left;
    margin-left: 4px;
    color: #ffffff;
    line-height: 40px;
    font-size: 14px;
}

.banner-container {
    width: 96%;
    height: 160px;
    border-radius: 6px;
    overflow: hidden;
    z-index: 3;
    margin-bottom: 10px;
}

.banner-item {
    width: 100%;
    height: 160px;
}

.banner-item img {
    width: 100%;
    height: 100% !important;
    display: block;
}

.banner-img {
    width: 100%;
}

.center-menu-container {
    width: 96%;
    overflow: hidden;
    z-index: 3;
    background: #FFFFFF;
    border-radius: 6px;
    display: flex;
    justify-content: left;
    flex-wrap: wrap;
    padding-bottom: 10px;
}

.center-menu-item {
    width: 20%;
    height: auto;
    overflow: hidden;
    margin-top: 6px;
}

.menu-item-icon {
    width: 48px;
    height: 48px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%;
}

.menu-item-icon img {
    width: 100%;
}

.center-menu-item-name {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin-top: 4px;
}

.center-container {
    height: auto;
    overflow: hidden;
    width: 96%;
    margin: 2px auto;
}

.center-top {
    height: auto;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--dm-image-gap);
}

.center-left {
    height: 216px;
    overflow: hidden;
    float: left;
    border-radius: 6px;
}

.center-left img {
    display: inline-block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.center-right {
    height: auto;
    overflow: hidden;
    float: right;
}

.center-right-item {
    height: 105px;
    overflow: hidden;
    border-radius: 6px;
}

.center-right-item img {
    width: 100%;
}

.center-right-item:last-child {
    margin-top: var(--dm-image-gap);
}

.center-bottom {
    height: auto;
    overflow: hidden;
    margin-top: var(--dm-image-gap);
    display: flex;
    justify-content: space-between;
    gap: var(--dm-image-gap);
}

.center-bottom-item {
    height: 105px;
    overflow: hidden;
}

.center-bottom-item img {
    width: 100%;
}

.center-bottom-item:first-child {
    float: left;
}

.center-bottom-item:last-child {
    float: right;
}

.kh-container {
    width: 96%;
    height: auto;
    overflow: hidden;
    margin: 4px auto;
}

.kh-container img {
    width: 100%;
}

.bottom-menu {
    /*height: 62px;*/
    overflow: hidden;
    background-color: #FFFFFF;
    background-image: url("../image/green_shop/tj_bg.png");
    background-repeat: no-repeat;
    background-size: cover;
}

.menu-item {
    width: 50%;
    /*height: 62px;*/
    overflow: hidden;
    float: left;
    position: relative;
    /*border-top: 1px solid red;
    border-bottom: 1px solid red;*/
}

.menu-item-name {
    height: 30px;
    width: 60px;
    /*overflow: hidden;*/
    font-size: 15px;
    color: #333333;
    font-weight: 700;
    margin: 0 auto;
    margin-top: 10px;
    position: relative;
}
.m-icon{
    width: 20px;
    height: 20px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: -16px;
    z-index: 1;
}
.m-icon img{
    width: 100%;
}
.m-name{
    width: 100%;
    height: 30px;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.menu-item-tips {
    text-align: center;
    font-size: 12px;
    color: #6D6D6D;
    margin-top: -8px;
}

.bt-line {
    width: 20px;
    height: 2px;
    background: #FFFFFF;
    position: absolute;
    left: calc(50% - 20px);
    bottom: 0;
}

.menu-item.active .bt-line {
    background: #FF492E;
}

.page-bottom-container {
    height: auto;
    overflow: hidden;
    background: #f2f2f2;
}

.goods-container {
    height: auto;
    overflow: hidden;
    padding-left: 10px;
    padding-right: 10px;
    column-count: 2; /* 每行显示2个商品 */
    column-gap: 10px; /* 每列之间的间隙 */
    margin-top: 10px;
}

.goods-item {
    width: auto;
    height: auto;
    overflow: hidden;
    background: #FFFFFF;
    padding-bottom: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* 确保边框和内边距不会影响宽度 */
    margin-bottom: 10px; /* 控制商品项之间的垂直间隙 */
    /*margin-top: 10px;*/
    break-inside: avoid; /* 防止商品项被分割成两部分 */
}

/*.goods-item:nth-child(even){*/
/*    margin-left: 10px;*/
/*    margin-right: 0;*/
/*}*/

.goods-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #FFFFFF;
}

.goods-image img {
    width: 100%;
    height: auto;
    display: block;
}

.goods-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 限制行数 */
    overflow: hidden;
    text-overflow: ellipsis;
    color: #333333;
    font-size: 12px;
    margin: 0;
    padding-left: 6px;
    padding-right: 6px;
}
.price-info{
    height: 24px;
    overflow: hidden;
    font-size: 12px;
    padding-left: 6px;
    padding-right: 6px;
    line-height: 24px;
}
.now-price{
    float: left;
    font-size: 16px;
    color: #E02E22;
    line-height: 24px;
    margin: 0;
    padding: 0;
}
.old-price{
    float: right;
    font-size: 12px;
    color: #777781;
    text-decoration: line-through;
    margin: 0;
    padding: 0;
}
.coin-container{
    height: 20px;
    overflow: hidden;
    margin-top: 4px;
    font-size: 13px;
    line-height: 20px;
    display: flex;
    gap: 6px;
}
.coin-label{
    background-color: #009944;
    padding: 0 5px;
    border-radius: 10px;
    float: left;
    color: #FFFFFF;
    margin-left: 6px;
}
.coin-value{
    float: right;
    color: #009944;
    margin-right: 6px;
}

.pp-header-container{
    height: auto;
    overflow: hidden;
    padding-left: 10px;
    padding-right: 10px;
}

.pp-header-container{
    height: 50px;
    overflow: hidden;
    margin-top: 4px;
}
.pp-title{
    width: 80px;
    font-weight: 600;
    font-size: 18px;
    color: #1A1A1A;
    line-height: 50px;
    float: left;
}
.pp-tag-container{
    width: 78%;
    height: auto;
    overflow: hidden;
    float: left;
}

.pp-tag-item{
    padding: 6px 14px;
    background: #FFFFFF;
    color: #FF4200;
    text-align: center;
    border-radius: 24px;
    float: left;
    margin-left: 10px;
    margin-top: 10px;
    font-size: 12px;
}
.pp-list-container{
    height: auto;
    overflow: hidden;
}

.pp-item{
    width: 96%;
    /*height: 170px;*/
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 2%;
}
.pp-item-header{
    height: 50px;
    overflow: hidden;
    margin-top: 10px;
}
.pp-item-logo{
    width: 50px;
    height: 50px;
    overflow: hidden;
    border-radius: 50%;
    float: left;
    margin-left: 10px;
}
.pp-item-logo img{
    width: 100%;
}
.pp-item-info{
    width: 56%;
    height: auto;
    overflow: hidden;
    float: left;
    margin-left: 10px;
}
.pp-item-name{
    font-size: 12px;
    color: #212121;
    font-weight: 500;
}
.pp-item-desc{
    height: auto;
    overflow: hidden;
    margin-top: 4px;
}
.pp-item-desc-icon{
    width: 16px;
    height: 16px;
    overflow: hidden;
    float: left;
}

.pp-item-desc-icon img{
    width: 100%;
}
.pp-item-desc-desc{
    font-size: 12px;
    color: #F25A22;
    margin-left: 20px;
}

.right-options{
    width: 70px;
    height: 22px;
    overflow: hidden;
    background-image: url("../image/green_shop/temai-icon.png");
    background-repeat: no-repeat;
    background-size: 100% 100%;
    line-height: 22px;
    float: right;
    margin-right: 10px;
    font-size: 12px;
    color: #FFFFFF;
}
.temai-label{
    float: left;
    margin-left: 6px;
}
.temai-value{
    float: right;
    margin-right: 4px;
}


.band-goods-container{
    width: 100%;
    height: auto;
    overflow: hidden;
    margin-top: 10px;
    -webkit-overflow-scrolling: touch;
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.band-goods-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.band-goods-item{
    height: auto;
    overflow: hidden;
    width: 74px;
    margin-left: 10px;
    float: left;
    padding-bottom: 10px;
    flex: 0 0 auto;
    margin-right: 15px;
}

.band-goods-item-logo{
    width: 74px;
    height: 74px;
    overflow: hidden;
    border-radius: 6px;
}
.band-goods-item-logo img{
    width: 100%;
    height: 100%;
}
.band-goods-name{
    width: 100%;
    height: auto;
    overflow: hidden;
    font-size: 13px;
    color: #454545;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1; /* 限制行数 */
    text-overflow: ellipsis;
    margin-top: 5px;
}
.band-goods-item-price{
    height: auto;
    overflow: hidden;
    line-height: 18px;
}
.band-goods-now-price{
    font-size: 12px;
    color: #E02E22;
    font-weight: bold;
}
.band-goods-old-price{
    text-decoration: line-through;
    color: #777781;
    font-size: 10px;
}
.band-goods-green-score{
    background-color: #009944;
    color: white;
    font-size: 12px;
    height: 20px;
    border-radius: 50px;
    padding: 0 2px;
}