/**
Theme Name: qiaoyunyanmo
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: qiaoyunyanmo
Template: astra

/* ==========================================================
   MASS POLISHING
   Search Results + Blog Sidebar
   Global CSS
========================================================== */


/* ==========================================================
   BASE
========================================================== */

.mp-search-page,
.mp-search-page *,
.mp-post-sidebar,
.mp-post-sidebar * {
    box-sizing: border-box;
}


/* ==========================================================
   SEARCH PAGE
========================================================== */

.mp-search-page {
    width: 100%;
    padding: 45px 20px 60px;
    background: #f7f7f7;
}


.mp-search-wrap {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;

    gap: 42px;

    align-items: start;
}


/* ==========================================================
   SEARCH MAIN
========================================================== */

.mp-search-main {
    width: 100%;
    min-width: 0;

    padding: 38px 38px 20px;

    background: #fff;
}


.mp-search-heading {
    width: 100%;

    margin: 0 0 42px;

    font-size: 38px;
    line-height: 1.25;
    font-weight: 500;

    color: #111;

    word-break: normal;
    overflow-wrap: break-word;
}


.mp-search-heading strong {
    font-weight: 600;
}


/* ==========================================================
   RESULT ITEM
========================================================== */

.mp-search-item {
    display: grid;

    grid-template-columns: 180px minmax(0, 1fr);

    gap: 28px;

    width: 100%;
    min-width: 0;

    padding: 0 0 38px;
    margin: 0 0 38px;

    border-bottom: 1px solid #eee;
}


/* 没特色图 */
.mp-search-item.no-image {
    grid-template-columns: minmax(0, 1fr);
}


.mp-search-item.no-image .mp-search-content {
    width: 100%;
    max-width: 100%;
}


/* ==========================================================
   RESULT IMAGE
========================================================== */

.mp-search-image {
    width: 180px;
    height: 180px;

    overflow: hidden;

    background: #f6f6f6;
}


.mp-search-image a {
    display: block;

    width: 100%;
    height: 100%;
}


.mp-search-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* ==========================================================
   RESULT CONTENT
========================================================== */

.mp-search-content {
    width: 100%;
    min-width: 0;
}


.mp-result-type {
    display: inline-block;

    margin: 0 0 8px;

    font-size: 12px;
    line-height: 1.2;
    font-weight: 600;

    text-transform: uppercase;
    letter-spacing: .8px;

    color: #126b96;
}


.mp-search-title {
    width: 100%;

    margin: 0 0 13px;
    padding: 0;
}


.mp-search-title a {
    display: block;

    width: 100%;

    color: #666;

    font-size: 27px;
    line-height: 1.25;
    font-weight: 400;

    text-decoration: none;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;

    transition: color .2s ease;
}


.mp-search-title a:hover {
    color: #126b96;
}


.mp-search-meta {
    margin: 0 0 14px;

    font-size: 12px;
    line-height: 1.5;

    color: #222;
}


.mp-search-excerpt {
    width: 100%;

    margin: 0 0 18px;

    font-size: 13px;
    line-height: 1.65;

    color: #666;

    white-space: normal;
    overflow-wrap: break-word;
}


.mp-search-readmore {
    display: inline-block;

    font-size: 13px;
    line-height: 1.4;
    font-weight: 600;

    color: #111;

    text-decoration: none;
}


.mp-search-readmore:hover {
    color: #126b96;
}


/* ==========================================================
   COMMON SIDEBAR
========================================================== */

.mp-search-sidebar,
.mp-post-sidebar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}


/* 每个区块 */
.mp-sidebar-box {
    width: 100%;

    margin: 0 0 24px;
    padding: 22px;

    background: #fff;

    box-sizing: border-box;
}


/* 标题 */
.mp-sidebar-title {
    margin: 0 0 15px;
    padding: 0;

    font-size: 17px;
    line-height: 1.3;
    font-weight: 500;

    color: #555;
}


/* ==========================================================
   SEARCH BOX
========================================================== */

.mp-sidebar-search {
    display: flex;

    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0;
}


.mp-sidebar-search input {
    flex: 1 1 auto;

    width: 100%;
    min-width: 0;

    height: 40px;

    margin: 0;
    padding: 0 12px;

    border: 1px solid #ddd !important;
    border-right: 0 !important;

    border-radius: 0 !important;

    background: #fff !important;

    color: #222;

    font-size: 13px;
    line-height: 40px;

    outline: none !important;
    box-shadow: none !important;
}


.mp-sidebar-search input:focus {
    border-color: #126b96 !important;
}


.mp-sidebar-search button {
    flex: 0 0 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 42px;
    height: 40px;

    margin: 0;
    padding: 0;

    border: 0 !important;
    border-radius: 0 !important;

    background: #1595d3;

    color: #fff;

    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    box-shadow: none !important;
}


.mp-sidebar-search button:hover {
    background: #126b96;
}


/* ==========================================================
   SIDEBAR LIST
========================================================== */

.mp-sidebar-list {
    width: 100%;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
}


.mp-sidebar-list li {
    width: 100%;

    margin: 0 0 11px !important;
    padding: 0 !important;

    list-style: none !important;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
}


.mp-sidebar-list li:last-child {
    margin-bottom: 0 !important;
}


.mp-sidebar-list li::before,
.mp-sidebar-list li::after,
.mp-sidebar-list li::marker {
    display: none !important;
    content: none !important;
}


.mp-sidebar-list a {
    display: block;

    width: 100%;

    color: #111;

    font-size: 13px;
    line-height: 1.6;
    font-weight: 400;

    text-decoration: none;

    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;

    transition: color .2s ease;
}


.mp-sidebar-list a:hover {
    color: #126b96;
}


/* ==========================================================
   PAGINATION
========================================================== */

.mp-search-pagination {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px;

    width: 100%;

    margin: 15px 0 10px;
    padding: 10px 0 20px;
}


.mp-search-pagination .page-numbers {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-width: 34px;
    height: 34px;

    padding: 0 8px;

    color: #222;

    font-size: 13px;

    text-decoration: none;
}


.mp-search-pagination .current {
    color: #126b96;
    font-weight: 700;
}


.mp-search-pagination .next,
.mp-search-pagination .prev {
    width: auto;
    min-width: auto;

    padding: 0 15px;
}


/* ==========================================================
   NO RESULTS
========================================================== */

.mp-no-results {
    width: 100%;

    padding: 30px 0 60px;

    font-size: 16px;
    line-height: 1.7;

    color: #555;
}


/* ==========================================================
   TABLET
   768 - 1024
========================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

    .mp-search-page {
        padding: 35px 20px 50px;
    }


    .mp-search-wrap {
        grid-template-columns: minmax(0, 1fr) 220px;

        gap: 25px;
    }


    .mp-search-main {
        padding: 30px 25px;
    }


    .mp-search-heading {
        margin-bottom: 32px;

        font-size: 31px;
    }


    .mp-search-item {
        grid-template-columns: 145px minmax(0, 1fr);

        gap: 20px;

        padding-bottom: 30px;
        margin-bottom: 30px;
    }


    .mp-search-item.no-image {
        grid-template-columns: minmax(0, 1fr);
    }


    .mp-search-image {
        width: 145px;
        height: 145px;
    }


    .mp-search-title a {
        font-size: 22px;
    }


    .mp-sidebar-box {
        padding: 20px 18px;

        margin-bottom: 20px;
    }


    .mp-sidebar-title {
        font-size: 16px;
    }


    .mp-sidebar-list a {
        font-size: 13px;
    }

}


/* ==========================================================
   MOBILE
   <= 767
========================================================== */

@media (max-width: 767px) {

    .mp-search-page {
        padding: 20px 12px 40px;
    }


    .mp-search-wrap {
        display: block;

        width: 100%;
    }


    .mp-search-main {
        width: 100%;

        padding: 24px 18px;
    }


    .mp-search-heading {
        margin-bottom: 30px;

        font-size: 27px;
        line-height: 1.25;
    }


    /* 搜索结果改为单列 */
    .mp-search-item,
    .mp-search-item.has-image,
    .mp-search-item.no-image {
        display: block;

        width: 100%;

        padding-bottom: 28px;
        margin-bottom: 28px;
    }


    .mp-search-image {
        width: 100%;
        height: auto;
        min-height: 220px;

        margin: 0 0 18px;
    }


    .mp-search-image img {
        width: 100%;
        height: auto;

        max-height: 300px;

        object-fit: contain;
    }


    .mp-search-title a {
        font-size: 22px;
        line-height: 1.3;
    }


    .mp-search-excerpt {
        font-size: 14px;
        line-height: 1.65;
    }


    /* Sidebar 移到底部 */
    .mp-search-sidebar,
    .mp-post-sidebar {
        width: 100%;

        margin-top: 25px;
    }


    .mp-sidebar-box {
        width: 100%;

        padding: 20px 18px;
        margin-bottom: 16px;
    }


    .mp-sidebar-title {
        font-size: 17px;
    }


    .mp-sidebar-list a {
        font-size: 14px;
        line-height: 1.55;
    }


    .mp-sidebar-search input {
        height: 44px;

        font-size: 14px;
        line-height: 44px;
    }


    .mp-sidebar-search button {
        flex-basis: 46px;

        width: 46px;
        height: 44px;
    }


    .mp-search-pagination {
        gap: 3px;
    }


    .mp-search-pagination .page-numbers {
        min-width: 30px;
        height: 32px;

        padding: 0 6px;

        font-size: 12px;
    }

}

/* ==================================================
   BLOG SINGLE POST - STICKY SIDEBAR
================================================== */

@media (min-width: 1025px) {

    .mp-post-columns {
        overflow: visible !important;
        align-items: flex-start !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .mp-post-columns > .e-con,
    .mp-post-columns > .elementor-element {
        overflow: visible !important;
    }

    /* 右侧悬浮区域 */
    .mp-sidebar-sticky {
        position: sticky !important;

        /* 前台未登录时 */
        top: 150px !important;

        align-self: flex-start !important;

        height: fit-content !important;
        min-height: 0 !important;

        overflow: visible !important;

        z-index: 20 !important;
    }

    /* 登录 WordPress 后有顶部黑色管理栏 */
    body.admin-bar .mp-sidebar-sticky {
        top: 145px !important;
    }

    .mp-sidebar-sticky .mp-post-sidebar {
        position: static !important;

        width: 100% !important;

        height: auto !important;
        min-height: 0 !important;

        margin: 0 !important;

        overflow: visible !important;
    }
}


/* 平板 / 手机不悬浮 */
@media (max-width: 1024px) {

    .mp-sidebar-sticky {
        position: static !important;
        top: auto !important;

        width: 100% !important;

        height: auto !important;

        transform: none !important;
    }
}