:root{--mt-search-width:320px}
.mt-search-box[data-search-box]{display:flex;align-items:center;gap:7px;width:var(--mt-search-width);max-width:100%;min-width:0;flex:0 1 var(--mt-search-width);padding:0;border:0;background:transparent;box-sizing:border-box}
.mt-search-box[data-search-box] .mt-search-field{position:relative;flex:1;min-width:0;width:0}
.mt-search-box[data-search-box] .mt-search-field>[data-search-input]{display:block;box-sizing:border-box;width:100%;max-width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:8px 31px 8px 10px;border:1px solid var(--mt-line,#dedee3);border-radius:4px;background:var(--mt-white,#fff);color:var(--mt-brand,#1d1d1f);font:inherit;font-size:12px;line-height:18px;outline-offset:2px}
.mt-search-box [data-search-input]::-webkit-search-cancel-button{display:none}
.mt-search-box[data-search-box] [data-search-submit]{flex:0 0 auto;box-sizing:border-box;min-width:62px;max-width:100%;height:36px;padding:7px 10px;border:1px solid var(--mt-line,#dedee3);border-radius:4px;background:var(--mt-white,#fff);color:var(--mt-brand,#1d1d1f);font:inherit;font-size:12px;line-height:20px;white-space:nowrap;cursor:pointer}
.mt-search-box[data-search-box] [data-search-submit]:hover{border-color:var(--mt-accent,#0071e3);color:var(--mt-accent,#0071e3)}
.mt-search-box[data-search-box] [data-search-clear]{position:absolute;right:4px;top:4px;display:block;width:28px;height:28px;min-width:0;margin:0;padding:0;border:0;border-radius:3px;background:transparent;color:var(--mt-muted,#6e6e73);font:inherit;font-size:19px;line-height:28px;text-align:center;cursor:pointer}
.mt-search-box[data-search-box] [data-search-clear]:hover{background:var(--mt-quiet,#f5f5f7);color:var(--mt-brand,#1d1d1f)}
.mt-search-box[data-search-box] [data-search-clear][hidden]{display:none}
/* 用户要求：点进搜索框只显示闪烁光标，不加粗框。 */
.mt-search-box[data-search-box] .mt-search-field>[data-search-input]:focus,.mt-search-box[data-search-box] .mt-search-field>[data-search-input]:focus-visible{outline:none;box-shadow:none;border-color:var(--mt-line,#dedee3)}
