﻿/* 手机端搜索结果抽屉 */
/* /portal/assets/css/portal_search_info_mobile.css */

/* ============================
   ⭐ 搜索结果抽屉（手机端）
   ============================ */
@media (max-width: 768px) {

.search-info-wrapper {
    position: fixed;
    top: var(--portal-nav-total);
    left: 0;
    right: 0;

    height: 0;                 /* 初始收起 */
    max-height: 20vh;          /* 最大高度 */
    overflow: hidden;

    background: #fff;
    z-index: 2600;      /* 这不是调高度的，是来决定抽屉和遮罩谁在上面、谁在下面（层级顺序），须大于遮罩的这个值，才在上*/

    display: flex;
    flex-direction: column;

    transition: height .25s ease-out;
    pointer-events: none;
}

.search-info-wrapper.open {
    height: 55vh;
    pointer-events: auto;
}

.search-info-mega {
    flex: 1 1 auto;
    display: flex;
    min-height: 0;
}

/* 左侧栏 */
.info-left {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100px;
    background: #f7f7f7;
    border-right: 1px solid #eee;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.info-left-item {
    padding: 12px 10px;    /* 左侧栏字体距离顶部12px */
    font-size: 14px;
    color: #666;
    border-left: 3px solid transparent;
}

.info-left-item.active {
    background: #fff;
    color: #ff4444;
    border-left-color: #ff4444;
}

/* 右侧栏 */
.info-right {
    flex: 1 1 auto;
    padding: 12px;      /* 右侧栏字体距离顶部间距要和左侧栏一样 */
	margin: 0 0 6px;   /* 顶部 0，底部留一点行距 */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 14px;
    color: #333;
}

/* 遮罩层 */
.search-info-overlay {
    display: none;
    position: fixed;
    top: var(--portal-nav-total);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 2500;             /* 这个不是调高度的，是来决定抽屉和遮罩谁在上面、谁在下面（层级顺序），遮罩需小于抽屉的这个值*/
}

.search-info-overlay.show {
    display: block;
}

}

/* PC 端隐藏 */
@media (min-width: 769px) {
    .search-info-wrapper,
    .search-info-overlay {
        display: none !important;
    }
}
