* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 超出一行隐藏 */
.hide {
    /* 强制一行显示 */
    white-space: nowrap;
    /* 超出隐藏 */
    overflow: hidden;
    /* 省略号 */
    text-overflow: ellipsis;
}

/* 超出二行隐藏 */
.hideTwo {
    /* 溢出内容隐藏 */
    overflow: hidden;
    /* 文本溢出部分用省略号表示 */
    text-overflow: ellipsis;
    /* 特别显示模式 */
    display: -webkit-box;
    /* 行数 */
    -webkit-line-clamp: 2;
    line-clamp: 2;
    /* 盒子中内容竖直排列 */
    -webkit-box-orient: vertical;
}

/* 版心 */
.main {
    width: 1080px;
    margin: 0 auto;
    position: relative;
}

/* 顶部背景 */
.background {
    position: relative;
    padding-top: 58px;
    margin-top: 22px;
}

.background .bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 上方店铺详情 */
.store {
    /* margin-top: 58px; */
    width: 1088px;
    height: 160px;
    background: #FFFFFF;
    box-shadow: 0px 10px 24px 0px rgba(0, 0, 0, 0.1);
    border-radius: 18px;
    opacity: 0.9;
    border: 1px solid #F6F6F6;
    padding: 29px 59px 0px 56px;
    display: flex;
    justify-content: space-between;
}

.store_left {
    display: flex;
}

/* 左边店铺头像 */
.store_left_image {
    margin-right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
}

.store_left_image img {
    width: 100%;
    height: 100%;
}

/* 店铺名称 */
.store_left_text_name {
    height: 24px;
    font-size: 24px;
    color: #000000;
    line-height: 36px;
}

/* 商家地点 */
.store_left_text_address {
    height: 24px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: 400;
    color: #999999;
    line-height: 24px;
}

/* 认证图标 */
.store_left_text_address_icont {
    display: inline-block;
    vertical-align: top;
    margin-right: 8px;
}

.store_left_text_address_icont_attestation {
    display: flex;
    /* margin-top: 6px; */
    /* width: 76px; */
    padding-right: 13px;
    height: 24px;
    background: #ECE0D3;
    border-radius: 12px;
}

.store_left_text_address_icont_attestation_img {
    width: 24px;
    height: 24px;
    background-image: url(../images/icon_V.png);
}

.store_left_text_address_icont_attestation span {
    margin-left: 5px;
    font-size: 12px;
    font-weight: 500;
    color: #A5735B;
    line-height: 24px;
}

/* 商家评分 */
.store_left_text_mark {
    margin-top: 15px;
    display: flex;
}

.store_left_text_mark_one {
    margin-right: 21px;
    height: 14px;
    font-size: 14px;
    line-height: 21px;
    color: #666666;
}

.store_left_text_mark_one span {
    height: 25px;
    font-size: 18px;
    font-weight: 500;
    color: #7048D9;
    line-height: 25px;
}

/* 右侧客服 */
.store_right {
    margin-top: 23px;
    display: flex;
    /* align-items: center; */
}

.store_right_service {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 58px;
    font-size: 14px;
    color: #666666;
}

.store_right_service:hover {
    cursor: pointer;
}

.store_right_service_image {
    width: 34px;
    height: 34px;
    margin-bottom: 4px;
}

.store_right_service_image img {
    width: 100%;
}

/* 线 */
.store_right_line {
    margin-top: 9px;
    margin-left: 39px;
    margin-right: 30px;
    width: 1px;
    height: 37px;
    border: 1px solid #D5D5D5;
}

/* 页面导航栏 */
/* 页面导航栏 */
.nav {
    position: relative;
    display: flex;
    margin-top: 20px;
    flex-direction: row;
}

.nav div {
    margin-right: 30px;
    justify-content: flex-start;
}

.nav div a {
    color: #666666;
}

#nav_block {
    color: #000;
}

/* 紫色图标 */
.nav .nav_bottom_purple {
    display: block;
    width: 28px;
    /* height: 4px; */
    /* background-color: #7048D9; */
    border-bottom: 4px solid #7048D9;
    border-radius: 2px;
    margin-top: 6px;
}

#nav_bottom_purple {
    position: absolute;
    top: 20px;
    left: 0px;
    display: block;
    width: 28px;
    border-bottom: 4px solid #7048D9;
    border-radius: 2px;
    margin-top: 6px;
}

/* 默认排序 */
.block {
    margin-top: 35px;
    display: flex;
    justify-content: space-between;
}

.block_left {
    display: flex;
}

/* 左侧 */
.block_left ul {
    /* 文字禁止选中 */
    user-select: none;
    display: flex;
}

.block_left ul li {
    cursor: pointer;
    margin-right: 8px;
    width: 76px;
    height: 30px;
    background: #F6F6F6;
    border-radius: 15px;
    font-size: 14px;
    color: #666666;
    text-align: center;
    line-height: 28px;
    border: 1px solid #f6f6f6;
}

.block_left ul li a{
    color:  #666666;
}
.background .block_left ul li.purple {
    border: 1px solid #7048D9;
    color: #7048D9;
    background: #F5F1FF;
}

/* 价格选择 */
.block_left_priace {
    padding-left: 13px;
    width: 204px;
    height: 30px;
    background: #F7F7F7;
    border-radius: 15px;
    font-size: 12px;
    color: #999999;
    line-height: 30px;
    /* display: flex; */
    position: relative;
}

.block_left_priace input {
    width: 32px;
    height: 20px;
    border-style: none;
    background: #F7F7F7;
    outline: none;
}

/* 确定按钮 */
.block_left_priace_ok {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 76px;
    height: 30px;
    background: #7048D9;
    border-radius: 15px;
    color: #FFFFFF;
    text-align: center;
    line-height: 30px;
}

.block_left_priace_ok:hover {
    cursor: pointer;
}

/* 右侧 */
.block_right {
    display: flex;
}

/* 上一页下一页 */
.block_right_button {
    margin-top: 5px;
    margin-right: 33px;
    display: flex;
}

.block_right_button a {
    font-size: 14px;
    color: #666666;
    line-height: 20px;
}
.block_right_button a.a-disabled{
    color:#aaa;
    pointer-events: none;
}
/* 线 */
.block_right_button_line {
    margin-left: 12px;
    margin-right: 9px;
    width: 1px;
    height: 20px;
    border: 1px solid #DADADA;
}

/* 搜索框 */
.block_right_search {
    /* padding-top: 5px; */
    /* display: flex; */
    padding-left: 11px;
    width: 234px;
    height: 30px;
    background: #F7F9F9;
    border-radius: 15px;
    border: 1px solid #E3E6E8;
    position: relative;
    /* overflow: hidden; */
}

.block_right_search_image {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.block_right_search img {
    margin-top: 6px;
    /* width: 100%; */
}

.block_right_search input {
    width: 135px;
    height: 27px;
    outline: none;
    color: #A2A2A2;
    border-style: none;
    background: #F7F9F9;
    font-size: 11px;
    vertical-align: top;
    line-height: 30px;
}

/* 搜索按钮 */
.block_right_search_button {
    position: absolute;
    top: -1px;
    right: -1px;
    width: 76px;
    height: 30px;
    background: #7048D9;
    border-radius: 15px;
    font-size: 12px;
    color: #FFFFFF;
    text-align: center;
    line-height: 30px;
    outline: none;
    border: none;
}

.block_right_search_button:hover {
    cursor: pointer;
}

/* 商品主体 */
.goodsMain {
    position: relative;
    margin: 22px auto 57px;
}

.left {
    float: left;
    width: 820px;
}

.goods {
    display: flex;
    flex-wrap: wrap;
}

.goods_item {
    margin-bottom: 20px;
    margin-right: 13px;
    width: 260px;
    height: 378px;
    background: #FAFAFA;
    border-radius: 10px;
}

.goods_item:nth-child(3n) {
    margin-right: 0;
}

.goods_item_image {
    position: relative;
    width: 260px;
    height: 259px;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.goods_item_image img {
    width: 100%;
    height: 100%;
}

.goods_item_image_sales {
    position: absolute;
    right: 10px;
    bottom: 9px;
    /* width: 77px; */
    height: 25px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 13px;
    /* text-align: center;
    line-height: 25px; */
    padding: 4px 10px 6px 11px;
    color: #FFFFFF;
    font-size: 12px;
}

/* 下方文字 */
.goods_item_text {
    position: relative;
    padding: 0px 11px;
}

.goods_item_text_title {
    margin-top: 6px;
    line-height: 24px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    height: 50px;
}

.goods_item_text_priace {
    margin-top: 9px;
    height: 16px;
    color: #E91A56;
    font-size: 16px;
    font-weight: bold;
    line-height: 24px;
}
.goods_item_text_priace .unit{
    font-size: 14px;
}
.goods_item_text_priace .price-right{
    font-size: 11px;
}
.goods_item_text_store {
    margin-top: 11px;
    display: flex;
}

.goods_item_text_store span {
    height: 12px;
    font-size: 12px;
    color: #666666;
    line-height: 18px;
}

.goods_item_text_store_arrowR {
    width: 6px;
    height: 10px;
    line-height: 10px;
    margin-top: 4px;
    margin-left: 3px;
}

.goods_item_text_store_arrowR img {
    width: 100%;
    height: 100%;
}

/* 购物车 */
.goods_item_text_shoppingCart {
    position: absolute;
    right: 10px;
    bottom: 0px;
    width: 36px;
    height: 36px;
}

.goods_item_text_shoppingCart img {
    width: 100%;
}

/* 最右侧 */
.right {
    /*position: absolute;*/
    /*top: 20px;*/
    /*right: 0;*/
    width: 258px;
    /* height: 807px; */
    background: #F5F1FF;
    border-radius: 10px;
    padding: 15px 12px 18px;
    float: right;
}

/* 标题 */
.right_top_title {
    margin-left: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
}

/* 优惠券 */
.right_top_main_item {
    position: relative;
    width: 234px;
    height: 74px;
    background: #FFFFFF;
    border-radius: 12px;
    margin-top: 10px;
    padding-top: 6px;
    padding-left: 15px;
}

/* 优惠金额 */
.right_top_main_item_money {
    width: 180px;
    font-size: 19px;
    font-weight: bold;
    color: #E91A56;
    line-height: 23px;
}

/* 满多少可用 */
.right_top_main_item_sum {
    margin-top: 2px;
    width: 180px;
    font-size: 12px;
    color: #333333;
    line-height: 17px;
}

/* 日期 */
.right_top_main_item_date {
    width: 180px;
    margin-top: 2px;
    font-size: 12px;
    color: #333333;
    line-height: 17px;
}

/* 按钮立即领取 */
.right_top_main_item_button {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 30px;
    height: 74px;
    background: #E91A56;
    border-radius: 0px 12px 12px 0px;
    cursor: pointer;
}

.right_top_main_item_button a {
    display: block;
    margin-top: 9px;
    margin-left: 6px;
    width: 18px;
    height: 67px;
    font-size: 12px;
    font-weight: 400;
    color: #FFFFFF;
    line-height: 14px;
    text-align: center;
}

/* 立即使用 */
.right_top_main_item_buttonPronto {
    background: #E9761A;
}

/* 销量排行 */
.right_bottom {
    margin-top: 35px;
}

.right_bottom_sales {
    margin-left: 3px;
    font-size: 14px;
    font-weight: 500;
    color: #000000;
    line-height: 26px;
}

/* 主体 */
.right_bottom_sales_main {
    display: flex;
    padding-top: 6px;
    padding-left: 6px;
    width: 234px;
    height: 82px;
    background: #FFFFFF;
    border-radius: 4px;
    margin-top: 10px;
}

.right_bottom_sales_main_image {
    margin-right: 6px;
    width: 70px;
    height: 70px;
    border-radius: 4px;
    overflow: hidden;
}

.right_bottom_sales_main_image img {
    width: 100%;
    height: 100%;
}

.right_bottom_sales_main_text_title {
    width: 144px;
    height: 30px;
    font-size: 12px;
    font-weight: 500;
    color: #000000;
    line-height: 16px;
}

/* 价格和销量 */
.right_bottom_sales_main_text_number {
    margin-top: 14px;
    display: flex;
    justify-content: space-between;
}

.right_bottom_sales_main_text_number_priace {
    /* height: 12px; */
    font-size: 12px;
    font-weight: bold;
    color: #E91A56;
    line-height: 21px;
}
.right_bottom_sales_main_text_number_priace .unit{
    transform: scale(0.8);
    display: inline-block;
}
.right_bottom_sales_main_text_number_priace .price-right{
    transform: scale(0.5);
    transform-origin: 20% 60%;
    display: inline-block;
}
.right_bottom_sales_main_text_number_sales {
    height: 12px;
    font-size: 12px;
    font-weight: 400;
    color: #666666;
    line-height: 21px;
}



