/* 文章 */
.posts {
    padding: 100px 20px;
    max-width: 780px;
    margin: 0 auto;
    box-sizing: border-box;
    padding-top: 0;
}

.posts-photos {
    margin-top: 20px;
    margin-bottom: 20px;
}

.posts-title {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.posts-meta {
    font-size: 14px;
    line-height: 1.4;
    color: #999;
    margin: 20px 0;
}

.posts-meta .info {
    text-align: center;
}

.posts-footer {
    margin: 40px auto;
}

.posts-meta > div {
    margin-bottom: 15px;
}

.posts-meta .relate {
    overflow: hidden;
}
.posts-meta .relate > div {
    width: calc(100% - 100px);
    height: 1.4em;
    overflow: hidden;
    margin: 5px 0;
}
.posts-meta .read {
    float: left;
    width: 100px;
    text-align: right;
}


.posts.layout-1 .posts-body {
    overflow: hidden;
}
.posts.layout-1 .posts-photos {
    float: left;
    width: 48%;
    margin-right: 2%;
    margin: 0;
}
.posts.layout-1 .posts-photos + .posts-content {
    width: 50%;
    float: right;
}
.posts-term .cc-postslist--pagination {
    padding: 20px 0 50px 0;
}



/* 产品 */
.layout-boxed .product {
    margin: 0 10px;
}

.product {
    padding: 30px 0;
}
.product-title {
    margin-bottom: 20px;
}
.product-excerpt {
    margin-bottom: 20px;
    background-color: transparent;
}

.product-price {
    font-size: 28px;
    font-weight: bold;
    background-color: #f6f6f6;
    padding: 10px;
    box-sizing: border-box;
    color: var(--theme-color);
}

.product-price .regular_price .main {
    color: #999;
    font-size: 14px;
    text-decoration: line-through;
}

.product-lay-group {
    display: table;
    padding: 10px 0;
}

.product-lay-group .label {
    display: table-cell;
    width: 80px;
    font-size: 12px;
    color: #999;
    vertical-align: middle;
    font-weight: normal;
}
.product-lay-group .main {
    display: table-cell;
}

.product-lay-group .cc-form--content {
    padding: 0;
}

.product-comment {
    margin-top: 20px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #fff;
}

.product.layout-1 .product-content-side {
    width: 100%;
    order: 3;
}
.product.layout-1 .product-content-empty {
    width: 100%;
    order: 2;
}
.product.layout-1 .product-content-body {
    width: 100%;
    order: 1;
}
.product .cc-tabs--item {
    padding: 0 20px;
}
.product-term .cc-productlist--pagination {
    padding: 20px 0 50px 0;
}





.inner-page-wrapper {
    min-height: 70vh;
    background-color: #f5f5f5;
}
.label-text {
    color: #666;
    white-space: nowrap;
    margin-right: 10px;
}

/* 标签 */
.mark-tag {
    display: inline-block;
    color: #999;
    line-height: 1.4em;
    background: #f9f9f9;
    border-radius: 10px;
    padding: 0 8px;
}
.mark-tag + .mark-tag {
    margin-left: 4px;
}


/* 卡片布局 */

.field-card {
    background-color: #fff;
    position: relative;
}

.field-card + .field-card {
    margin-top: 50px
}


.field-card--head {
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #f5f5f5
}

.field-card .title {
    padding-left: 10px;
    border-left: 2px solid var(--theme-color)
}

.field-card--body {
    padding: 20px 50px;
    box-sizing: border-box
}

.field-card--body.nopadding {
    padding: 10px 0;
}



/* 注册页 */
.form-join {
    max-width: 550px;
    margin: 0 auto;
}


.form-login {
    width: 350px;
    margin: 0 auto;
    padding: 50px 0;
}

#modal-address .cc-modal--body {
    background-color: #fff;
    padding: 15px 0;
}
#modal-address .cc-row {
    position: static;
}
.address-list .cc-hovercard1,
.coupons-list .cc-hovercard1 {
    margin: 0 10px 20px 10px;
}

.address-list .cc-button {
    display: inline-block;
}
.address-list .default-1 .address-btn-setDefault {
    display: none;
}
.address-list .default-1 {
    --border-color: var(--theme-color)
}



.order-list .order-item {
    border: 1px solid #eee;
    border-radius: 3px;
    margin: 20px 0;
}

.order-list .order-item--head {
    padding: 0 18px;
    box-sizing: border-box;
    font-size: 12px;
    color: #666;
    line-height: 40px;
    border-bottom: 1px solid #eee;
}

.order-list .order-item--head span + span {
    margin-left: 15px;
}

.order-list .order-item--body {
    padding: 18px;
    box-sizing: border-box;
    font-size: 12px;
    max-height: 250px;
    overflow: hidden;
    overflow-y: auto;
}

.order-list .order-item--body img {
    width: 64px;
    vertical-align: top;
}

.order-list .order-item--foot {
    padding: 0 18px;
    box-sizing: border-box;
    font-size: 12px;
    border-top: 1px solid #eee;
    line-height: 40px;
}

.order-status-text.pending {
    color: var(--warning-color);
}
.order-status-text.processing {
    color: var(--warning-color);
}
.order-status-text.on-hold {
    /* color: var(--warning-color); */
}
.order-status-text.completed {
    color: var(--success-color);
}
.order-status-text.cancelled {
    color: var(--error-color);
}
.order-status-text.refunded {
    color: var(--error-color);
}
.order-status-text.failed {
    color: var(--error-color);
}
.order-pagination > * {
    display: none;
}
.order-pagination.loading .loading {
    display: block;
}
.order-pagination.next .next {
    display: block;
}


.order-detail table img {
    max-width: 180px;
    max-height: 180px;
}
.order-detail table {
    border: none;
    margin-top: 30px;
}
.order-detail table th {
    white-space: nowrap;
}
.order-detail thead {
    background-color: #f4f4f4;
}
.order-detail tbody td {
    border-bottom: 1px solid #f4f4f4;
}

.shoppingcart table {
    border: none;
    width: 100%;
    text-align: center;
}

.shoppingcart td {
    border-bottom: 1px solid #eee;
}

.shoppingcart th {
    white-space: nowrap;
}

.shopping-checkout {
    position: relative;
}
.shopping-checkout .cc-tabs {
    background-color: #fff;
    padding: 10px;
    box-sizing: border-box;
}

.shopping-checkout table img {
    vertical-align: middle;
}

.shopping-checkout .cc-tabs--content {
    padding-top: 15px;
}

.shopping-checkout .address-card {
    cursor: pointer;
}

.shopping-checkout .shoppingcart-table {
    position: relative;
}



[shopping-count], [shopping-mark] {
    position: relative;
}

[shopping-mark].mark::after {
    content: '';
    position: absolute;
    right: -5px;
    top: -5px;
    background-color: red;
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

[shopping-count].mark::after {
    content: attr(shopping-count);
    background: var(--theme-color);
    width: 19px;
    height: 19px;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    font-size: 12px;
    line-height: 19px;
}


/* 搜索页 */
.search-body {
    padding-top: 50px;
    min-height: 300px;
}
.search-body .main-title {
    border-bottom: 1px solid #eae6df;
    height: 50px;
}
.search-body .empty {
    opacity: 0.9;
    margin-top: 200px;
    margin-bottom: 200px;
    text-align: center;
}
.search-body .main-nav {
    height: 35px;
    line-height: 35px;
}
.search-body .main-nav li {
    padding: 0 10px;
    position: relative;
}
.search-body .main-nav li::after {
    position: absolute;
    content: '';
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--theme-color);
    visibility: hidden;
}
.search-body .main-nav li.current::after {
    visibility: visible;
}
.search-body .main-list {
    margin-top: 20px;
}
.search-body .main-list.term .list li {
    margin: 10px 0;
}
.search-body .main-list.term .thumbnail {
    margin-right: 15px;
    font-size: 0;
}
.search-body .main-list.term .thumbnail img {
    object-fit: contain;
}
.search-body .main-list.term .description {
    max-height: 2.4em;
    line-height: 1.2em;
    overflow: hidden;
    word-break: break-all;
    -webkit-line-clamp: 2;
    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
    word-wrap: normal;
    -webkit-box-orient: vertical;
    overflow-wrap: break-word;
}
.search-body .main-list.term .pagination {
    text-align: center;
    padding: 20px 0;
    position: relative;
    z-index: 1;
}


/* 支付结果 */
.pay-success {
    background-color: #e8fde9
}
.pay-success .result-text {
    font-size: 32px;
    color: #20c770
}

.pay-error {
    background-color: #fde8e8
}
.pay-error .result-text {
    font-size: 32px;
    color: #ff5757
}

#modal-payment-result .cc-modal--body {
    background-color: #fff;
    padding: 15px;
}
#modal-payment-result .pay-success {
    background-color: #fff;
}
#modal-payment-result .pay-error {
    background-color: #fff;
}




@media only screen and (max-width:767px) {
    .posts {
        padding: 20px;
    }
    .posts-title,
    .product-title {
        font-size: 20px;
    }
    .posts.layout-1 .posts-body > *,
    .posts.layout-1 .posts-photos + .posts-content {
        width: 100%;
        margin-left: 0;
    }
    .posts.layout-1 .posts-photos {
        margin-top: 20px;
        margin-bottom: 20px;
    }


    .product {
        box-sizing: border-box;
        padding-left: 10px;
        padding-right: 10px;
    }

    .field-card--body, .field-card--body.nopadding {
        padding: 10px 20px;
    }

    .order-detail table {
        font-size: 12px;
    }
    /* 隐藏产品图 */
    .order-detail thead th:first-child,
    .order-detail tbody td:first-child {
        display: none;
    }
}