/* =====================================================================
   杨老师著作馆 · 检索记忆（公众侧）
   2026-11-10 · 不改 app.js，纯外围增强：关键词记忆 + 历史下拉
   ===================================================================== */

/* 搜索框外包装：接管 #searchBox 的弹性宽度，给下拉面板定位用 */
.smw{position:relative;display:flex;flex:1 1 auto;min-width:230px;max-width:380px}
.smw #searchBox{flex:1 1 auto;width:100%;min-width:0;max-width:none}

/* 下拉面板 */
.sm-pan{position:absolute;z-index:60;top:calc(100% + 8px);left:0;right:0;background:#fff;
 border:1px solid rgba(10,33,54,.16);border-radius:12px;box-shadow:0 16px 38px rgba(10,33,54,.18);
 overflow:hidden}
.sm-pan[hidden]{display:none}
.sm-head{display:flex;justify-content:space-between;align-items:center;gap:10px;
 padding:9px 12px 7px;border-bottom:1px solid rgba(10,33,54,.07);
 font-size:10.5px;letter-spacing:1.6px;color:#93A2AC}
.sm-head button{background:none;border:none;padding:2px 0;cursor:pointer;font-family:inherit;
 font-size:11px;color:#B33A2B}
.sm-head button:hover{text-decoration:underline}
.sm-list{max-height:min(50vh,310px);overflow:auto;padding:5px}
.sm-it{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:8px;
 cursor:pointer;font-size:13.5px;color:#0A2136;line-height:1.35}
.sm-it:hover,.sm-it.on{background:#F4F1E6}
.sm-it .tx{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sm-it .tx b{color:#8A6D0F;font-weight:700}
.sm-it .n{flex:0 0 auto;font-size:10.5px;color:#A0AEB8}
.sm-it .del{flex:0 0 auto;width:22px;height:22px;line-height:20px;text-align:center;border-radius:5px;
 color:#B6C2CA;font-size:15px;font-style:normal}
.sm-it .del:hover{color:#B33A2B;background:rgba(179,58,43,.1)}
.sm-empty{padding:15px 12px;text-align:center;font-size:12px;color:#A0AEB8}
.sm-foot{padding:7px 12px 9px;border-top:1px solid rgba(10,33,54,.06);
 font-size:10.5px;color:#9BA9B3;letter-spacing:.3px}

@media (max-width:640px){
 .smw{flex:1 1 100%;max-width:none}
 .sm-foot{display:none}
 .sm-list{max-height:44vh}
}
