/* 塑铭塑胶 · 收藏与浏览历史 组件样式 v1.0
   左侧浮轨 + 抽屉面板 + 独立收藏页，全部数据存于本机 localStorage */
.smfh-rail{position:fixed;left:0;top:46%;transform:translateY(-50%);z-index:9990;display:flex;flex-direction:column;gap:8px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.smfh-rail button{border:0;cursor:pointer;display:flex;align-items:center;gap:6px;background:rgba(28,28,28,.86);color:#fff;height:42px;padding:0 12px 0 10px;border-radius:0 10px 10px 0;font-size:13px;line-height:1;box-shadow:0 4px 14px rgba(0,0,0,.18);transition:background .2s,width .2s;backdrop-filter:blur(4px)}
.smfh-rail button:hover{background:#b38d54}
.smfh-rail button.is-on{background:#b38d54}
.smfh-rail .smfh-ico{font-size:15px;line-height:1}
.smfh-rail .smfh-badge{min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#ff8a3d;color:#fff;font-size:11px;display:inline-flex;align-items:center;justify-content:center;font-weight:700}
.smfh-rail .smfh-badge[hidden]{display:none}
@media(max-width:700px){.smfh-rail button{height:38px;padding:0 9px}.smfh-rail .smfh-lbl{display:none}.smfh-rail .smfh-ico{font-size:16px}}

.smfh-mask{position:fixed;inset:0;background:rgba(15,18,22,.42);z-index:9996;opacity:0;pointer-events:none;transition:opacity .2s}
.smfh-mask.on{opacity:1;pointer-events:auto}

.smfh-panel{position:fixed;left:0;top:0;bottom:0;width:396px;max-width:92vw;background:#fff;z-index:9997;box-shadow:6px 0 34px rgba(0,0,0,.16);transform:translateX(-102%);transition:transform .26s ease;display:flex;flex-direction:column;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#2b2b2b}
.smfh-panel.on{transform:none}
.smfh-panel-head{background:#1c1c1c;color:#fff;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.smfh-panel-head b{font-size:15px;letter-spacing:.5px}
.smfh-panel-head span{display:block;font-size:11.5px;color:rgba(255,255,255,.55);margin-top:2px}
.smfh-close{border:0;background:rgba(255,255,255,.12);color:#fff;width:30px;height:30px;border-radius:50%;font-size:16px;cursor:pointer;line-height:1}
.smfh-close:hover{background:rgba(255,255,255,.24)}
.smfh-tabs{display:flex;border-bottom:1px solid #ece7de;background:#faf8f4}
.smfh-tab{flex:1;border:0;background:none;padding:12px 6px;font-size:14px;color:#707070;cursor:pointer;font-weight:600;position:relative}
.smfh-tab.on{color:#b38d54}
.smfh-tab.on::after{content:"";position:absolute;left:50%;bottom:-1px;transform:translateX(-50%);width:40px;height:3px;background:#b38d54;border-radius:2px}
.smfh-tab i{font-style:normal;font-size:11.5px;color:#9a9a9a;margin-left:3px}
.smfh-tab.on i{color:#b38d54}
.smfh-body{flex:1;overflow-y:auto;padding:6px 0 12px;-webkit-overflow-scrolling:touch}
.smfh-empty{padding:56px 24px;text-align:center;color:#9a9a9a;font-size:13.5px;line-height:2}
.smfh-empty b{display:block;font-size:15px;color:#5a5a5a;margin-bottom:6px}
.smfh-item{display:flex;align-items:flex-start;gap:8px;padding:11px 16px 11px 18px;border-bottom:1px dashed #f0ece3;position:relative}
.smfh-item:hover{background:#fbf9f5}
.smfh-item-main{flex:1;min-width:0}
.smfh-item a{display:block;font-size:13.5px;line-height:1.55;color:#222;text-decoration:none;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.smfh-item a:hover{color:#b38d54}
.smfh-meta{font-size:11.5px;color:#a09a90;margin-top:4px;display:flex;gap:8px;flex-wrap:wrap}
.smfh-meta .smfh-tag{background:#f4efe5;color:#9a7440;border-radius:3px;padding:0 5px}
.smfh-del{border:0;background:none;color:#c2bcb2;font-size:15px;cursor:pointer;padding:2px 4px;line-height:1;flex:0 0 auto}
.smfh-del:hover{color:#d9534f}
.smfh-foot{border-top:1px solid #ece7de;padding:10px 16px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between;background:#faf8f4}
.smfh-foot button{border:1px solid #ddd6c8;background:#fff;color:#7a7468;border-radius:6px;padding:6px 10px;font-size:12px;cursor:pointer}
.smfh-foot button:hover{border-color:#b38d54;color:#b38d54}
.smfh-foot a{font-size:12px;color:#b38d54;text-decoration:none}
.smfh-foot a:hover{text-decoration:underline}

.smfh-toast{position:fixed;left:50%;bottom:96px;transform:translate(-50%,12px);background:rgba(28,28,28,.92);color:#fff;padding:10px 18px;border-radius:24px;font-size:13.5px;z-index:10050;opacity:0;pointer-events:none;transition:all .24s;font-family:-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;max-width:86vw;text-align:center}
.smfh-toast.on{opacity:1;transform:translate(-50%,0)}

/* 独立收藏页 */
.smfh-page{display:grid;grid-template-columns:1fr 1fr;gap:26px;margin:6px 0 30px}
@media(max-width:860px){.smfh-page{grid-template-columns:1fr}}
.smfh-box{background:#fff;border:1px solid #e6e1d8;border-radius:4px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.04)}
.smfh-box-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid #ece7de;background:#faf8f4}
.smfh-box-h b{font-size:15.5px;color:#1c1c1c}
.smfh-box-h b em{font-style:normal;font-size:12px;color:#a09a90;font-weight:400;margin-left:6px}
.smfh-box-h button{border:1px solid #ddd6c8;background:#fff;color:#8a8478;border-radius:6px;padding:5px 10px;font-size:12px;cursor:pointer}
.smfh-box-h button:hover{border-color:#b38d54;color:#b38d54}
.smfh-box .smfh-item:last-child{border-bottom:0}
.smfh-box .smfh-empty{padding:40px 20px}
.smfh-page-tip{font-size:12.5px;color:#8b857a;line-height:1.9;margin:0 0 16px;padding:10px 14px;background:#faf8f4;border-left:3px solid #b38d54;border-radius:2px}
