/**
 * Description: 页面布局的样式
 * Author: cdhewu
 * Contact:cdhewu@jd.com
 * Time: 2018/1/22 15:31
 */
/*
 * 布局样式装修、预览和浏览公用
 * 浏览页面需考虑低版本兼容
 */
/*
 * 布局样式装修、预览和浏览公用
 * 浏览页面需考虑低版本兼容
 */
.d-clearfix {
    *zoom: 1;
}

.d-clearfix:after {
    display: table;
    clear: both;
    content: '';
    visibility: hidden;
}

.d-w990 {
    width: 990px;
}

.d-w1200 {
    width: 1200px;
}

.d-w1210 {
    width: 1210px;
}

.d-w190 {
    width: 190px;
}

.d-w790 {
    width: 790px;
}

.d-w240 {
    width: 240px;
}

.d-w950 {
    width: 950px;
}

.d-w390 {
    width: 390px;
}

.d-w590 {
    width: 590px;
}

.d-w330 {
    width: 330px;
}

.d-w650 {
    width: 650px;
}

.d-w490 {
    width: 490px;
}

.d-w323 {
    width: 323px;
}

.d-w324 {
    width: 324px;
}

.d-w215 {
    width: 215px;
}

.d-w765 {
    width: 765px;
}

.d-layout-wrap {
    margin: 0 auto;
}

/*.d-layout-wrap .d-layout-row .d-layout {
    min-height: 90px;
}*/

.d-layout-wrap .d-layout-row.d-mult-col {
    margin-left: -10px;
}

.d-layout-wrap .d-layout-row.d-mult-col .d-layout {
    float: left;
    _display: inline;
    margin-left: 10px;
}

.d-module-wrap {
    margin-bottom: 10px;
}

/**
* 店铺关店弹出框相关css, 20181217, cdhewu
*/
.d-shop-close {
    position: fixed;
    z-index: 13;
    width: 420px;
    height: 280px;
    left: 50%;
    top: 50%;
    margin: -140px 0 0 -210px;
    background: #fcfcfc url("//img30.360buyimg.com/cms/jfs/t1/18544/10/1888/3103/5c174fedE9b072768/22950178a80e9ef3.png") center top no-repeat;
}

.d-shop-close .d-close-btn {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 17px;
    height: 16px;
    display: inline-block;
    background: url("//img13.360buyimg.com/cms/jfs/t1/16452/31/1909/1155/5c174fecEc50dfd28/78d73b76494bb734.png") no-repeat;
    transition: transform 0.3s ease-out;
    -moz-transition: transform 0.3s ease-out; /* Firefox 4 */
    -webkit-transition: transform 0.3s ease-out; /* Safari 和 Chrome */
    -o-transition: transform 0.3s ease-out; /* Opera */
}

.d-shop-close .d-close-btn:hover {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg); /* IE 9 */
    -moz-transform: rotate(180deg); /* Firefox */
    -webkit-transform: rotate(180deg); /* Safari 和 Chrome */
    -o-transform: rotate(180deg); /* Opera */
}

.d-shop-close .d-container {
    margin: 75px 0 0 40px;
    width: 345px;
    color: #111111;
}

.d-shop-close .d-container .d-title{
    font-size: 20px;
    font-weight: bold;
}

.d-shop-close .d-container .d-content {
    margin-top: 20px;
    font-size: 14px;
}

.d-shop-close .d-container .d-content span {
    color: #df171c;
}

/**
* 店铺礼包相关css，20171026，cdhewu
*/
.d-gift-mask, .d-shop-close-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 13;
    background-color: #000;
    opacity: 0.3;
}

.d-gift-modal {
    position: fixed;
    z-index: 13;
    width: 450px;
    height: 400px;
    left: 50%;
    top: 50%;
    margin: -200px 0 0 -225px;
    background: url("//img11.360buyimg.com/cms/jfs/t10417/202/2130840477/126752/acd79e1/59f06fd6Nd9ad0915.png") no-repeat;
}

.d-gift-modal .d-prize {
    margin-top: 260px;
    text-align: center;
    color: #fff;
    height: 66px;
    overflow: hidden;
}

.d-gift-modal .d-prize .d-item {
    display: inline-block;
    width: 145px;
    text-align: center;
}

.d-gift-modal .d-prize .d-item .d-num {
    font-size: 48px;
    line-height: 48px;
}

.d-gift-modal .d-btn {
    width: 128px;
    height: 36px;
    line-height: 36px;
    font-size: 16px;
    color: #dd4f47;
    display: block;
    margin: 8px auto;
    text-align: center;
}

.d-gift-modal .d-close {
    display: block;
    position: absolute;
    top: 53px;
    right: -20px;
    background: url("//img14.360buyimg.com/cms/jfs/t11956/176/422617808/1091/84b579d/59f06fd9N848ff126.png") no-repeat;
    height: 17px;
    width: 17px;
    transition: transform 0.3s ease-out;
    -moz-transition: transform 0.3s ease-out; /* Firefox 4 */
    -webkit-transition: transform 0.3s ease-out; /* Safari 和 Chrome */
    -o-transition: transform 0.3s ease-out; /* Opera */
}

.d-gift-modal .d-close:hover {
    transform: rotate(180deg);
    -ms-transform: rotate(180deg); /* IE 9 */
    -moz-transform: rotate(180deg); /* Firefox */
    -webkit-transform: rotate(180deg); /* Safari 和 Chrome */
    -o-transform: rotate(180deg); /* Opera */
}

.d-gift-modal.d-success {
    background-image: url("//img13.360buyimg.com/cms/jfs/t10702/247/2103583569/113947/83f1f751/59f06fd9N2a9a1bc9.png");
}

.d-gift-modal.d-success .d-btn {
    margin-top: 278px;
}

.d-gift-modal.d-success .d-close {
    top: 59px;
}

.d-gift-modal.d-error {
    width: 420px;
    height: 240px;
    opacity: 1;
    margin: -120px 0 0 -210px;
    transform: scale(1);
    background: none;
    background-color: #fff;
    box-shadow: 0 0 8px #4d545e;
}

.d-gift-modal.d-error .d-close {
    position: absolute;
    background: url("//img13.360buyimg.com/cms/jfs/t3229/149/3901869765/25597/e1ad3570/57fafa37Nafe9ba25.png") -260px -218px;
    width: 16px;
    height: 16px;
    display: block;
    top: 10px;
    right: 10px;
}

.d-gift-modal.d-error .d-body {
    margin: 40px 0 0;
}

.d-gift-modal.d-error .d-body .d-icon {
    height: 70px;
    width: 70px;
    background-position: -320px 0 !important;
    margin: 0 auto;
    background: url("//img12.360buyimg.com/cms/jfs/t4339/148/3016688039/42367/e4897f88/58d8a4feNd17d2732.png") no-repeat;
}

.d-gift-modal.d-error .d-body .d-title {
    color: #4a4a59;
    font-weight: bold;
    font-size: 16px;
    line-height: 36px;
    text-align: center;
}

.d-gift-modal.d-error .d-body .d-content {
    color: #999;
    line-height: 36px;
    text-align: center;
}

.d-gift-modal.d-error .d-btn {
    color: #fff;
    background-color: #f44336;
}

.d-gift-modal.d-error .d-btn:hover {
    background: #c11;
}


/*------------------------
浏览端toast提示样式
20190423 Author: leeli
---------------------------*/

.cd-toast-modal{
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
}

.cd-toast-modal .cd-toast-mask{
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.3);
}

.cd-toast-modal .cd-in{
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -200px;
    width: 400px;
    transform: translateY(-50%);
    background: #FFFFFF;
    padding: 20px;
    box-shadow: 0 6px 20px 4px rgba(61,106,209,0.07);
    border-radius: 2px;
}

.cd-toast-modal .cd-toast-title{
    position: relative;
    height: 30px;
    line-height: 30px;
}

.cd-toast-modal .cd-toast-title .cd-close{
    position: absolute;
    right: 0;
    top: 5px;
    font-size: 20px;
    line-height: 0.8;
}

.cd-toast-modal .cd-toast-title span{
    font-family: PingFangSC-Semibold;
    font-size: 16px;
    color: #5F5F6B;
    letter-spacing: 0.03px;
    line-height: 14px;
}

.cd-toast-modal .cd-relative{
    position: relative;
    margin-top: 30px;
}



.cd-toast-modal .cd-toast-content{
    font-family: PingFangSC-Regular;
    font-size: 16px;
    color: #5F5F6B;
    letter-spacing: 0;
    text-align: center;
    line-height: 24px;
    /*padding: 30px 30px 0;*/
}

.cd-toast-modal .cd-toast-desc{
    font-family: PingFangSC-Regular;
    font-size: 13px;
    color: #989CA5;
    line-height: 18px;
    padding: 10px 30px 0;
}

.cd-toast-modal .cd-warning .cd-toast-content,
.cd-toast-modal .cd-warning .cd-toast-desc{
    padding-left: 85px;
}

.cd-toast-modal .cd-in .cd-tips-icon{
    position: absolute;
    left: 30px;
    top: 50%;
    margin-top: -20px;
    width: 40px;
    height: 40px;
    display: none;
}

.cd-toast-modal .cd-warning .cd-tips-icon{
    display: block;
    background: url(//img11.360buyimg.com/uba/jfs/t1/44063/30/7/1488/5cc014abE17543804/46be3f0e2d7af4cb.png) no-repeat;
}

.cd-toast-modal .cd-toast-btn{
    padding-top: 40px;
    text-align: right;
    font-size: 0;
}

.cd-toast-modal .cd-toast-btn a{
    display: inline-block;
    width: 67px;
    height: 30px;
    font-family: PingFangSC-Regular;
    font-size: 14px;
    letter-spacing: 0.03px;
    line-height: 30px;
    border-radius: 2px;
    text-align: center;
}

.cd-toast-modal .cd-toast-btn .cd-sure{
    background: #4381E5;
    color: #fff;
    border: 1px solid #4381E5;
    margin-left: 10px;
}

.cd-toast-modal .cd-toast-btn .cd-cancel{
    background:  #FCFDFF;
    color: #5F5F6B;
    border: 1px solid #D8DCE5;
}
