/*
Theme Name: Maizi
Theme URI: https://www.awaimai.com/maizi
Author: Gary
Author URI: https://www.awaimai.com/
Description: Maizi multiple using wordpress theme base bootstrap
Version: 1.0
License: GNU General Public License v3.0 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Tags: left-sidebar, right-sidebar, bootstrap4, index-slider, custom-color
Text Domain: maizi
Domain Path: /languages
*/
html,body {
    font-size: 14px;
    font-family: "Segoe UI", "SimSun", "Microsoft YaHei", "SimHei", "Arial", 'sans-serif';
    overflow-x: hidden;
    overflow-y: auto;
}
a:focus, a:hover {
    text-decoration: none;
}
h1{font-size: 1.4rem; font-weight: 600;}
h2{font-size: 1.3rem; font-weight: 600;}
h3, h4, h5, h6{font-size: 1.2rem; font-weight: 600;}

article h1, h2, h3, h4, h5, h6 {font-family: "Microsoft YaHei UI Light", "SimHei", "SimSun", 'sans-serif'}

article img, figure, img
{
    max-width: 100%;
    height: auto;
}

button,
[type="button"],
[type="reset"],
[type="submit"] {cursor: pointer;}

.icon14 {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
    vertical-align: text-bottom;
}

ul {
    margin-bottom: 0;
}
ul, li {
    list-style-position: inside;
}



p, pre{/*word-break:break-all*/;word-wrap:break-word;white-space: pre-wrap; max-width: 100%;}
blockquote{
    border-left: 2px solid #aaa;
    padding: 12px 0 12px 12px;
    background: #f7f7f7;
}
blockquote p{margin:0!important;}

/* Sidebar menu */
aside li {opacity: 0.85;}
aside ul,
aside > ul > li {padding-left: 0;}
aside.widget {margin-bottom: 2rem;}
aside.widget h3 {color: #666; padding-bottom: 0.5rem;}

aside .sub-menu {display: none;}
aside .sub-menu li {padding-left: 2rem;}
aside .current-menu-item > a{font-weight: 700;}
aside li[class*="current-menu-"] > .sub-menu
{display: block;}

/*
aside .menu-item-has-children > a:before,
aside .current-menu-parent > a:before,
aside .current-menu-item.menu-item-has-children > a:before
{
    border: .3rem solid transparent;
    vertical-align: middle;
    content: "";
    display: inline-block;
}

aside .menu-item-has-children > a:before
{
    border-color: transparent;
    border-left: .3rem solid #444;
}

aside .current-menu-parent > a:before,
aside .current-menu-item.menu-item-has-children > a:before{
    margin-right: .3rem;
    border-color: transparent;
    border-top: .3rem solid #444;
}*/


.thumbnail {max-width: 100%; max-height: 10rem;height: auto;}

/*
 * Gallery
 */
.gallery {
    margin-bottom: 1.5em; }

.gallery-item {
    display: inline-block;
    text-align: center;
    vertical-align: top;
    width: 100%; }
.gallery-columns-2 .gallery-item {
    max-width: 50%; }
.gallery-columns-3 .gallery-item {
    max-width: 33.33%; }
.gallery-columns-4 .gallery-item {
    max-width: 25%; }
.gallery-columns-5 .gallery-item {
    max-width: 20%; }
.gallery-columns-6 .gallery-item {
    max-width: 16.66%; }
.gallery-columns-7 .gallery-item {
    max-width: 14.28%; }
.gallery-columns-8 .gallery-item {
    max-width: 12.5%; }
.gallery-columns-9 .gallery-item {
    max-width: 11.11%; }

.gallery-caption {
    display: block; }

/*
 * Custom Style
 */
.wrapper {
    padding: 30px 0; }

#wrapper-hero {
    padding: 0 !important; }

.sticky,
.gallery-caption,
.bypostauthor {
    font-size: inherit; }

.wrapper#wrapper-sticky {
    border-bottom: 1px solid #636c72; }

#wrapper-footer-full,
#wrapper-static-hero {
    background-color: #eceeef; }

.wp-caption {
    font-size: inherit;
    text-align: center;}

.wp-caption-text {
    font-size: inherit;
    text-align: center;}

.screen-reader-text {
    font-size: inherit; }

.alignright {
    float: right;
    padding-left: 10px; }

.alignleft {
    float: left;
    padding-right: 10px; }

.aligncenter {
    margin: 0px auto; }

.entry-footer span {
    padding-right: 10px; }

a.skip-link {
    position: fixed;
    z-index: 1000;
    top: 0px;
    right: 0px; }

.jumbotron {
    margin-bottom: 0px; }

.code-compare {display: flex; flex-wrap: nowrap; justify-content: space-between;}
.code-compare .item, .code-compare div {width: 48%;}


.gallery:after {
    content: "";
    display: table;
    clear: both; }

aside.widget {
    clear: both;
/*    border: 1px solid #cbcbcb;
    border-radius: 6px;
    background: #fff;*/
    margin-bottom: 20px;
    padding: 10px;
}

#wrapper-hero .carousel-inner .textwidget {
    width: 100%; }


/*
 * override CF7 style
 */
.wpcf7 {
    max-width: 600px;
    margin: 0 auto !important; }
.wpcf7 .wpcf7-form label {
    width: 100%; }
.wpcf7 .wpcf7-not-valid-tip {
    color: #d9534f !important; }
.wpcf7 .wpcf7-validation-errors {
    color: #d9534f !important;
    border: 1px solid #eceeef !important; }





/* 主菜单样式 */
.navbar-nav .nav-link,
.dropdown-item {
    opacity: .65;
}

.navbar-nav .active>.nav-link,
.navbar-nav .nav-link.active,
.navbar-nav .nav-link.open,
.navbar-nav .open>.nav-link,
.navbar-nav .nav-link:focus,
.navbar-nav .nav-link:hover,
.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover{
    opacity: 1;
}

.dropdown-item.active,
.dropdown-item:active,
.dropdown-item:focus,
.dropdown-item:hover{
    background: inherit;
}


/* 内容 */
.article-content {
    color: #3f3f3f;
}
.article-content h2,
.article-content h3{
    margin: 1.2rem 0 .6rem;
}
.article-content table td {
    border: 1px solid #dfdfdf;
    padding: 3px;
}

/* 评论 */
.comment-content p, .comment-content pre {
    white-space: normal;
    line-height: 1.7rem;
}


/* 页面中的【添加到购物车】按钮 */
.btn-add-to-cart {
    background-color: #ebe9eb;
    border-color: #ebe9eb;
}

.btn-add-to-cart:hover {
    background-color: #dad8da;
    border-color: #dad8da;
}

.btn-add-to-cart:active, .btn-add-to-cart.active,
.show > .btn-add-to-cart.dropdown-toggle {
    background-color: #dad8da;
    background-image: none;
    border-color: #dad8da;
}

.footer-copyright, .footer-copyright div, .footer-copyright p{
    display: inline;
}

/* Scroll to Top */
.scroll-top {
    display: none;
    color: #fff;
    width: 42px;
    height: 42px;

    vertical-align: middle;

    position: fixed;
    bottom: 5%;
    right: 5%;
    background: #727272;
    text-align: center;
    text-decoration: none;
    opacity:0.85;
    filter:alpha(opacity=85);
    cursor: pointer;
}
.scroll-top .dashicons {
    margin-top: 10px;
}
.scroll-top:hover,
.scroll-top:focus {
    color: #fff;
    outline: 0;
    opacity:1;
    filter:alpha(opacity=100);
}

/**
 * 地址中国家和省份的样式
 */
.select2-container .select2-selection--single,
.woocommerce form .form-row input.input-text{
    height: 2.31rem;
}
.select2-container--default .select2-selection--single .select2-selection__rendered{
    line-height: 2.31rem;
}
.select2-container--default .select2-selection--single .select2-selection__arrow{
    top: 6px;
}

/* 购物车中的数量 */
.woocommerce .quantity .qty{
    width: 5rem;
}


.triangle {
    border: .3rem solid transparent;
    vertical-align: middle;
    content: "";
    display: inline-block;
}

.triangle-down{

    border-top: .3rem solid #000;
}
.triangle-left{

    border-right: .3rem solid #000;
}
.triangle-top{

    border-bottom: .3rem solid #000;
}
.triangle-right{
    border-left: .3rem solid #000;
}

