/* 查询中心：搜索优先 + 可见筛选 + 卡片结果 */
.query-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.query-head h1{font-size:27px;margin:4px 0 6px}
.query-head p{margin:0;font-size:13px;color:#6b7c93}
.query-head-badge{flex:none;margin-top:6px;font-size:11.5px;font-weight:700;color:#45658f;background:#edf3fd;border:1px solid #d8e4f6;border-radius:999px;padding:7px 11px;white-space:nowrap}
.query-panel{padding:18px 20px 14px;margin:0 0 16px;background:#fff;border:1px solid #e3e8ef;border-radius:16px}
.query-search-row{display:flex;align-items:stretch;gap:10px}
.query-searchbox{display:flex;flex-direction:row;align-items:center;gap:9px;flex:1;min-width:0;margin:0;background:#f7f9fc;border:1px solid #d8e0eb;border-radius:12px;padding:0 10px 0 14px;min-height:52px;transition:border-color .15s,background .15s,box-shadow .15s}
.query-searchbox:focus-within{border-color:#1763e8;background:#fff;box-shadow:0 0 0 3px rgba(23,99,232,.10)}
.query-search-icon{width:19px;height:19px;line-height:1;color:#7d8fa6;flex:none}
.query-searchbox input{flex:1;min-width:0;border:0;background:transparent;padding:0;min-height:50px;font-size:15px;font-weight:600;color:#182538}
.query-searchbox input:focus{outline:0}
.query-searchbox input::placeholder{color:#9aa9bb;font-weight:500}
.query-search-clear{display:none;place-items:center;flex:none;width:28px;height:28px;min-height:28px;padding:0;border:0;border-radius:50%;background:#e6ecf5;color:#5d7088;font-size:16px;line-height:1}
.query-searchbox.has-value .query-search-clear{display:grid}
.query-submit{min-width:92px;border-radius:12px;font-weight:750}
.query-filter-row{display:flex;align-items:flex-start;gap:12px;padding:12px 0 0;margin-top:12px;border-top:1px solid #eef2f7}
.query-filter-label{flex:none;width:62px;padding-top:8px;font-size:12px;font-weight:700;color:#718099}
.query-chips{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}
.query-chip{min-height:34px;padding:5px 12px;border-radius:9px;border:1px solid #dde5ef;background:#fbfcfe;color:#40556f;font-size:12.5px;font-weight:600;white-space:nowrap}
.query-chip:hover{border-color:#b9cdef;background:#f7faff;color:#145acb}
.query-chip.active{background:#eef4ff;border-color:#1763e8;color:#145acb;font-weight:750;box-shadow:0 0 0 1px rgba(23,99,232,.06) inset}
.query-custom-range{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:9px 0 0 74px}
.query-custom-range[hidden]{display:none}
.query-custom-range label{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0;font-size:12px;color:#718099}
.query-custom-range input{width:150px;min-height:36px;padding:6px 9px;font-size:12.5px}
.query-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid #eef2f7}
.query-reset{min-height:32px;padding:4px 8px;font-size:12px;color:#5b6e84}
.query-foot .muted{font-size:11.5px}
.query-results-panel{background:#fff;border:1px solid #e3e8ef;border-radius:16px;overflow:hidden}
.query-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid #eef2f7}
.query-results-head h2{font-size:16px;margin:0 0 3px}
.query-results-head .muted{font-size:11.5px}
.query-export{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.query-export button{min-height:34px;padding:5px 11px;font-size:12px;white-space:nowrap}
.query-export p{margin:0;font-size:11px;color:#718099}
.query-export p:empty{display:none}
.query-list{display:grid}
.query-card{display:flex;align-items:flex-start;gap:12px;width:100%;min-height:76px;padding:15px 20px;border:0;border-bottom:1px solid #eef2f7;border-radius:0;background:#fff;text-align:left}
.query-card:last-child{border-bottom:0}
.query-card:hover{background:#f8fbff}
.query-kind-icon{width:40px;height:40px;border-radius:12px;font-size:14px}
.query-card-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.query-card-title{display:flex;align-items:center;justify-content:space-between;gap:10px}
.query-card-title strong{min-width:0;font-size:14.5px;line-height:1.4;color:#182538;overflow-wrap:anywhere}
.query-card-meta{font-size:12px;color:#64758b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.query-card-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:11px;color:#93a1b3}
.query-card-type{color:#5b7bab;background:#f1f5fb;border-radius:6px;padding:1px 6px}
.query-card-arrow{flex:none;align-self:center;color:#b3c0d0;font-size:20px;line-height:1}
.query-loading,.query-empty{padding:46px 20px;text-align:center;color:#718099;font-size:13px}
.query-empty strong{display:block;margin:9px 0 4px;font-size:15px;color:#33465e}
.query-empty p{margin:0 0 14px;font-size:12.5px}
.query-empty-icon{width:46px;height:46px;margin:0 auto;border-radius:14px;background:#f1f5fb;color:#8aa0bb;display:grid;place-items:center;font-size:23px;line-height:1}
.query-empty button{min-height:36px;padding:6px 12px;font-size:12.5px}
@media(max-width:760px){
  .query-head{flex-direction:column;gap:8px;margin-bottom:14px}
  .query-head h1{font-size:24px}
  .query-head p{font-size:12.5px;line-height:1.6}
  .query-head-badge{display:none}
  .query-panel{padding:13px;border-radius:14px}
  .query-search-row{gap:8px}
  .query-searchbox{min-height:46px;padding:0 8px 0 12px}
  .query-searchbox input{min-height:44px;font-size:14px}
  .query-submit{min-width:70px;padding:0 14px}
  .query-filter-row{flex-direction:column;gap:6px;padding-top:9px;margin-top:9px}
  .query-filter-label{width:auto;padding-top:0;font-size:11.5px}
  .query-chip{min-height:34px;padding:5px 11px}
  .query-custom-range{margin-left:0;width:100%}
  .query-custom-range label{flex:1;min-width:128px}
  .query-custom-range input{width:100%}
  .query-foot{flex-direction:column;align-items:flex-start;gap:4px;margin-top:9px;padding-top:8px}
  .query-foot .muted{display:none}
  .query-results-head{align-items:flex-start;padding:13px 14px}
  .query-export{justify-content:flex-end}
  .query-export p{width:100%;text-align:right}
  .query-card{gap:10px;padding:13px 14px}
  .query-kind-icon{width:38px;height:38px;border-radius:11px}
  .query-card-title{align-items:flex-start;gap:8px}
  .query-card-title strong{flex:1}
  .query-card-title .badge{flex:none;margin-top:2px;font-size:10.5px;padding:3px 7px}
  .query-card-meta{white-space:normal;line-height:1.45}
}
@media(max-width:390px){
  .query-searchbox input{font-size:13.5px}
  .query-chip{font-size:12px;padding:6px 10px}
  .query-results-head{gap:8px}
  .query-export{width:auto;justify-content:flex-end}
  .query-export p{text-align:right}
}
