.site-search{margin:4px 0 26px;padding:22px 24px;background:#fff;border:1px solid #dce5f2;border-radius:18px;box-shadow:0 5px 20px #173d8506;color:#17243b}
.site-search *{box-sizing:border-box}.search-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.search-top h2{font-size:18px;margin:0}.search-top p{font-size:13px;color:#64748b;margin:4px 0 0}.search-types{display:flex;gap:4px;border:0;padding:4px;margin:0;background:#f0f5ff;border-radius:12px;flex-shrink:0}.search-types legend{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.search-types label{position:relative;cursor:pointer}.search-types input{position:absolute;opacity:0;width:1px}.search-types span{display:flex;align-items:center;justify-content:center;min-width:72px;min-height:44px;padding:8px 16px;border-radius:9px;font-size:14px;font-weight:600;color:#60708c}.search-types input:checked+span{background:#2563eb;color:white;box-shadow:0 2px 6px #2563eb25}.search-types input:focus-visible+span{outline:3px solid #93b4ff;outline-offset:2px}.search-row{display:flex;gap:10px}.search-row input{width:100%;min-width:0;border:1px solid #d0dcec;background:#f8faff;border-radius:11px;padding:12px 14px;font:inherit;color:#17243b;min-height:48px}.search-row button,.search-pager button{min-height:44px;border:0;border-radius:10px;padding:10px 22px;font:inherit;font-weight:600;cursor:pointer;background:#2563eb;color:white;white-space:nowrap}.site-search button:disabled{opacity:.45;cursor:default}.site-search button,.search-title a{transition:background .2s,color .2s}.site-search button:focus-visible,.search-title a:focus-visible,.search-row input:focus-visible{outline:3px solid #93b4ff;outline-offset:3px}.search-state{font-size:13px;color:#64748b;margin:10px 0 0;min-height:20px}.search-results{margin-top:16px}.search-item{padding:18px 0;border-top:1px solid #e5ecf7}.search-meta{display:flex;gap:8px;align-items:center;font-size:12px;color:#64748b;margin-bottom:7px}.search-badge{display:inline-block;background:#eaf1ff;color:#173d85;border-radius:5px;padding:2px 7px}.search-title{font-size:16px;line-height:1.65;margin:0}.search-title button,.search-title a{font:inherit;font-weight:600;color:#173d85;text-align:left;overflow-wrap:anywhere}.search-title button{background:none;border:0;padding:0;cursor:pointer;min-height:44px;width:100%}.search-title a{display:inline-block;min-height:44px;text-decoration:none;padding:8px 0}.search-title button:hover,.search-title a:hover{color:#2563eb}.search-excerpt{font-size:14px;line-height:1.8;color:#60708c;margin:5px 0 0;overflow-wrap:anywhere}.search-detail{margin-top:12px;padding:16px;background:#f4f7fc;border-radius:12px;overflow-wrap:anywhere;font-size:14px;line-height:1.85}.search-detail p{margin:0 0 10px;white-space:pre-wrap}.search-detail p:last-child{margin-bottom:0}.search-detail strong{display:block;color:#173d85;margin-bottom:6px}.search-detail ol{padding-left:22px;margin:0 0 14px}.search-pager{display:flex;gap:12px;align-items:center;justify-content:center;flex-wrap:wrap;margin:16px 0 0;font-size:13px}.search-pager button{background:#eaf1ff;color:#173d85;padding:8px 16px}.site-search [hidden]{display:none!important}
@media(max-width:600px){.site-search{padding:16px;margin-bottom:20px;border-radius:14px}.search-top{align-items:flex-start;gap:10px}.search-top h2{font-size:17px}.search-top p{max-width:180px;line-height:1.7}.search-types{gap:0;padding:3px}.search-types span{min-width:53px;padding:8px 10px}.search-row{gap:8px}.search-row button{padding:10px 16px}.search-row input{font-size:16px;padding:10px 12px}.search-detail{padding:13px}}
@media(prefers-reduced-motion:reduce){.site-search *{transition:none!important}}

/* Compact entry: no result/filter surface until a search is submitted. */
.site-search{margin:2px 0 20px;padding:0;background:none;border:0;border-radius:0;box-shadow:none}
.search-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.site-search .search-row{gap:8px;max-width:760px}.site-search .search-row input{height:40px;min-height:40px;padding:8px 12px;font-size:14px;background:white;border-radius:10px;flex:1;min-width:0}.site-search .search-row>button{height:40px;min-height:40px;padding:8px 20px;font-size:14px;border-radius:10px}
.search-output{margin-top:12px;padding:16px 20px;background:white;border:1px solid #dce5f2;border-radius:14px}.search-results-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.search-filters{display:flex;gap:4px}.search-filters button,.site-search .search-close{min-height:36px;border:0;border-radius:8px;padding:7px 12px;font:inherit;font-size:13px;cursor:pointer;background:transparent;color:#64748b}.search-filters button[aria-pressed=true]{background:#eaf1ff;color:#173d85;font-weight:650}.site-search .search-close{white-space:nowrap;font-size:12px;padding:7px 5px}.search-output .search-results{margin-top:10px}.site-search [hidden]{display:none!important}
@media(max-width:600px){.site-search{padding:0;margin:0 0 16px}.site-search .search-row{max-width:none}.site-search .search-row input{font-size:16px}.site-search .search-row>button{padding:8px 16px}.search-output{padding:12px;margin-top:10px}.search-filters{gap:2px}.search-filters button{padding:8px 11px}.search-results-head{gap:4px}.search-close{font-size:12px}}

/* 搜索结果里的存卡按钮 */
.search-meta .search-save{margin-left:auto;min-height:32px;padding:4px 12px;border:1px solid #cfe0f7;
  background:#f3f8ff;color:#1d54ce;border-radius:8px;font:inherit;font-size:12px;font-weight:600;
  cursor:pointer;white-space:nowrap;transition:background .15s,border-color .15s,color .15s}
.search-meta .search-save:hover{background:#e6f0ff;border-color:#9dbcf2}
.search-meta .search-save:disabled{background:#eef4fb;color:#8a99b0;border-color:#e1e9f5;cursor:default}
.search-meta .search-save.saved{background:#fff;color:#8a99b0;border-color:#e1e9f5}
.search-meta .search-save.saved:hover{background:#fff7f7;color:#d64545;border-color:#f0c9c9}

/* 题目结果：题干 + 完整解析直接展开，不再折叠 */
.search-title{color:#173d85;font-weight:600;overflow-wrap:anywhere}
.search-analysis{font-size:14px;line-height:1.85;color:#60708c;margin:8px 0 0;
  white-space:pre-wrap;overflow-wrap:anywhere}
