/* =========================================================
 * 壹梦·简洁搜索条（老 ripro app.css「Home search」+ 壹梦 diy.css
 * 覆盖后的最终效果，.ymwl-so 作用域）
 * ========================================================= */

/* 容器：透明渐变底（diy 覆盖）+ 蓝色内描边圆角；padding 20px 来自老 ripro */
.ymwl-so .home-filter--content {
    display: block;
    width: 100%;
    z-index: 2;
    position: relative;
    padding-top: 20px;
    padding-bottom: 20px;
    background: linear-gradient(to right, #fff0, #fff0, #fff0);
    /* box-shadow: inset 0 0 0 1px rgb(29 104 252); */
    border-radius: 8px;
}
.ymwl-so .home-filter--content:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: rgba(91, 91, 91, 0);
    z-index: -1;
}

/* 表单盒：半透明白底 + padding 10px（老 ripro），左右边距 diy 置 0 */
.ymwl-so .home-filter--content .form-box {
    padding: 10px;
    background-color: rgba(255, 255, 255, .5);
    border-radius: 4px;
    position: relative;
    margin-bottom: 60px;
    margin-right: 0;
    margin-left: 0;
    z-index: 999;
}

/* 输入框（老 ripro 规则：1px 灰边框 + 圆角） */
.ymwl-so .home-filter--content .form-box input[type="text"].home_search_input {
    width: 100% !important;
    margin: 0;
    height: 44px;
    line-height: 42px;
    padding-right: 6em;
    padding-left: 1em;
    border: 1px solid #cccc;
    border-radius: 4px;
    outline: none;
    background: #fff;
    box-shadow: none;
    font-size: 15px;
    color: #333;
}
.ymwl-so .home-filter--content .form-box input[type="text"].home_search_input:focus {
    outline: none;
}

/* 搜索按钮：壹梦 diy.css 蓝渐变覆盖透明样式 */
.ymwl-so .home-filter--content .form-box input[type="submit"].button.transparent {
    height: 44px;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    background: linear-gradient(-125deg, #0295f9 0%, #2f49fd 100%) !important;
    -webkit-box-shadow: 0 8px 10px rgba(32, 160, 255, .3);
    box-shadow: 0 8px 10px rgba(32, 160, 255, .3);
    transition: all .3s ease;
}
.ymwl-so .home-filter--content .form-box input[type="submit"].button.transparent:hover {
    opacity: .9;
}

/* 实时搜索下拉结果（老 ripro app.css 规则） */
.ymwl-so .home-filter--content .home-search-results {
    position: absolute;
    top: 65px;
    width: 100%;
    left: 0;
    background-color: #ffffff;
    overflow: hidden;
    z-index: 999;
    border-radius: 4px;
    display: none;
    box-shadow: 0 10px 20px rgba(213, 213, 213, .4);
    border: 1px solid #dcdcdc;
    padding: 0;
    margin: 0;
}
.ymwl-so .home-search-results li {
    list-style: none;
    padding: 8px 13px;
    line-height: 1;
    padding-left: 100px;
    overflow: hidden;
}
.ymwl-so .home-search-results li:hover {
    background-color: #f9f9f9;
}
.ymwl-so .home-search-results li strong {
    text-align: center;
    padding: 10px 0;
    width: 100%;
    display: inline-block;
    padding-right: 100px;
    font-size: 15px;
    font-weight: normal;
}
.ymwl-so .home-search-results li a.focus {
    float: left;
    margin-left: -90px;
    width: 80px;
    height: auto;
    border-radius: 6px;
    overflow: hidden;
    max-height: 55px;
    display: block;
}
.ymwl-so .home-search-results li a.focus img {
    width: 100%;
    height: auto;
    display: block;
}
.ymwl-so .home-search-results li h2 {
    font-size: 16px;
    line-height: 1.3;
    margin: 15px 0;
    font-weight: normal;
    max-height: 40px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.ymwl-so .home-search-results li h2 a {
    color: #333;
    text-decoration: none;
}

/* 响应式（老 ripro 规则） */
@media (max-width: 768px) {
    .ymwl-so .home-filter--content .form-box {
        /* margin-top: 20px; */
        margin-bottom: 20px;
        /* margin-right: 5%; */
        /* margin-left: 5%; */
    }
    .ymwl-so .home-filter--content .form-box input[type="text"].home_search_input {
        /* margin-top: 10px; */
        margin-bottom: 10px;
    }
}

/* 夜间模式（v5 用 Bootstrap data-bs-theme 机制：html[data-bs-theme="dark"]） */
[data-bs-theme="dark"] .ymwl-so .home-filter--content {
    /* background: linear-gradient(to right, #232425, #232425, #232425); */
    /* box-shadow: inset 0 0 0 1px rgb(29 104 252); */
    border-radius: 8px;
}
[data-bs-theme="dark"] .ymwl-so .form-box {
    background-color: #171819;
}
[data-bs-theme="dark"] .ymwl-so .home-filter--content .form-box input[type="text"].home_search_input {
    border: 1px solid #1d1e1f;
    border-radius: 4px;
    background-color: #232425;
    color: #eee;
    box-shadow: 8px 8px 9pt #212121;
}
[data-bs-theme="dark"] .ymwl-so .home-filter--content .form-box input[type="submit"].button.transparent {
    background: linear-gradient(-125deg, #ffca26 0%, #fdc007 100%) !important;
    -webkit-box-shadow: 0 8px 10px rgba(0, 0, 0, .12);
    box-shadow: 0 8px 10px rgba(0, 0, 0, .12);
    color: #fff;
}
[data-bs-theme="dark"] .ymwl-so .home-filter--content .home-search-results {
    background-color: #232425;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .4);
    border: 1px solid #212121;
}
[data-bs-theme="dark"] .ymwl-so .home-search-results li h2 a {
    color: #eee;
}
[data-bs-theme="dark"] .ymwl-so .home-search-results li:hover {
    background-color: #1d1e1f;
}
