/* 财小云官网 · 页头搜索与“找答案”框（执行方案 B-1）。沿用页头与内容栏目条的颜色变量。 */
.cxy-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* —— 页头 —— */
.cxy-hsearch{position:relative;display:flex;align-items:center;margin-right:8px}
.cxy-hsearch-toggle{display:none;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--cxy-heading,#0b1f3a);align-items:center;justify-content:center;cursor:pointer}
.cxy-hsearch-toggle:hover,.cxy-hsearch[data-open] .cxy-hsearch-toggle{background:var(--cxy-tint)}
.cxy-hsearch-toggle:focus-visible{outline:2px solid var(--ztc-action);outline-offset:2px}
.cxy-hsearch-panel{position:relative;display:flex;align-items:center;width:176px;margin:0}
.cxy-hsearch-icon{position:absolute;left:14px;top:50%;transform:translateY(-50%);display:flex;color:var(--ztc-text-muted);pointer-events:none}
.cxy-hsearch-panel input{width:100%;height:40px;padding:0 14px 0 38px;border:1px solid var(--ztc-border);border-radius:999px;background:#f6f8fb;color:var(--ztc-text);font:400 14px/1.5 var(--ztc-sans);appearance:none;-webkit-appearance:none;transition:background .2s ease,border-color .2s ease,box-shadow .2s ease}
.cxy-hsearch-panel input::placeholder{color:#6b7787}
.cxy-hsearch-panel input::-webkit-search-cancel-button{-webkit-appearance:none}
.cxy-hsearch-panel input:focus{outline:none;background:#fff;border-color:var(--ztc-action);box-shadow:0 0 0 3px color-mix(in srgb,var(--ztc-action) 18%,transparent)}
.cxy-hsearch-results{position:absolute;top:calc(100% + 12px);right:0;z-index:70;width:min(420px,calc(100vw - 32px));max-height:min(70vh,520px);overflow:auto;padding:8px;background:#fff;border:1px solid var(--ztc-border);border-radius:16px;box-shadow:var(--cxy-shadow-hover,0 20px 44px rgba(11,31,58,.1))}
.cxy-hsearch-results [role=option]{display:block;padding:10px 12px;border-radius:10px;color:var(--ztc-text);text-decoration:none}
.cxy-hsearch-results [role=option][aria-selected=true],.cxy-hsearch-results [role=option]:hover{background:var(--cxy-tint)}
.cxy-hs-type{display:block;margin-bottom:2px;font-size:12px;line-height:1.5;color:var(--ztc-text-muted)}
.cxy-hs-title{display:block;font-size:15px;line-height:1.5;color:var(--cxy-heading,#0b1f3a)}
.cxy-hs-empty{margin:0;padding:12px;font-size:14px;color:var(--ztc-text-muted)}
.cxy-hs-more{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;margin-top:4px;padding:12px 12px 6px;border-top:1px solid var(--ztc-border);font-size:14px}
.cxy-hs-more a{color:var(--ztc-action);text-decoration:none}
.cxy-hs-more a:hover{color:var(--cxy-link-hover)}
.cxy-hs-more .cxy-hs-ai{margin-left:auto;font-weight:500;color:var(--cxy-heading,#0b1f3a)}

/* 窄屏电脑：放大镜，点开在页头下方出面板 */
@media (max-width:1360px){
  .cxy-hsearch-toggle{display:inline-flex}
  .cxy-hsearch-panel{display:none;position:absolute;top:calc(100% + 14px);right:-8px;z-index:70;width:400px;padding:12px;background:#fff;border:1px solid var(--ztc-border);border-radius:18px;box-shadow:var(--cxy-shadow-hover,0 20px 44px rgba(11,31,58,.1));flex-wrap:wrap}
  .cxy-hsearch[data-open] .cxy-hsearch-panel{display:flex}
  .cxy-hsearch-icon{left:26px;top:32px;transform:translateY(-50%)}
  .cxy-hsearch-results{position:static;width:100%;max-height:min(60vh,480px);margin-top:8px;padding:0;border:0;box-shadow:none}
}
/* 手机和平板（汉堡菜单）：面板铺满页头下方 */
@media (max-width:1100px){
  .cxy-hsearch{margin-right:0}
  .cxy-hsearch-panel{position:fixed;top:84px;left:16px;right:16px;width:auto}
}

/* —— 内容栏目条：右侧“找答案” —— */
.cxy-content-bar{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 36px;border-bottom:1px solid var(--ztc-border)}
.cxy-content-bar .cxy-content-nav{flex:1 1 auto;min-width:0;margin:0;border-bottom:0}
.cxy-content-search{flex:0 0 380px;padding-bottom:10px}
.cxy-find{margin:0}
.cxy-find-row{position:relative;display:flex;align-items:center;gap:8px}
.cxy-find-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);display:flex;color:var(--ztc-text-muted);pointer-events:none}
.cxy-find input{flex:1 1 auto;min-width:0;height:40px;padding:0 12px 0 34px;border:1px solid var(--ztc-border);border-radius:12px;background:#fff;color:var(--ztc-text);font:400 14px/1.5 var(--ztc-sans);appearance:none;-webkit-appearance:none}
.cxy-find input::placeholder{color:#6b7787}
.cxy-find input::-webkit-search-cancel-button{-webkit-appearance:none}
.cxy-find input:focus{outline:none;border-color:var(--ztc-action);box-shadow:0 0 0 3px color-mix(in srgb,var(--ztc-action) 18%,transparent)}
.cxy-find button{flex:0 0 auto;height:40px;padding:0 14px;border:0;border-radius:12px;background:var(--ztc-action);color:#fff;font:500 14px/1 var(--ztc-sans);cursor:pointer}
.cxy-find button:hover{background:var(--ztc-action-hover)}
.cxy-find button:focus-visible,.cxy-find-ai:focus-visible{outline:2px solid var(--ztc-action);outline-offset:2px}
.cxy-find-ai{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--cxy-heading,#0b1f3a);text-decoration:none}
.cxy-find-ai::before{content:"";width:8px;height:8px;border-radius:50%;background:linear-gradient(135deg,#006ed6,#7c6ff0)}
.cxy-find-ai:hover{color:var(--ztc-action)}
.cxy-find--nav{display:flex;align-items:center;gap:14px}
.cxy-find--nav .cxy-find-row{flex:1 1 auto;min-width:0}
.cxy-find--nav .cxy-find-ai{flex:none;white-space:nowrap}
.cxy-find--rail{margin-top:24px;padding-top:22px;border-top:1px solid var(--ztc-border)}
.cxy-find--rail .cxy-find-title{margin:0 0 12px;font-size:16px;line-height:1.6;color:var(--cxy-heading,#0b1f3a)}
.cxy-find--rail .cxy-find-ai{margin-top:12px}
.cxy-resource-aside .cxy-find--rail{border-top-color:color-mix(in srgb,var(--ztc-action) 14%,transparent)}
.cxy-resource-aside .cxy-find--rail .cxy-find-title{font-size:18px}

/* 页面自带目录搜索（知识首页、问答、本地办事目录）时栏目条不再放一个，免得两个搜索框挨着 */
.cxy-kb-wrap:has(.cxy-directory-search) .cxy-content-search,.cxy-resources:has(.cxy-resource-filters) .cxy-content-search{display:none}
/* 有右栏的页面：电脑上搜索放在右栏，栏目条不重复；右栏收起后回到栏目条 */
@media (min-width:1024px){ .cxy-content-bar.has-rail .cxy-content-search{display:none} }
@media (max-width:1023px){ .cxy-find--rail{display:none} }
@media (max-width:1100px){ .cxy-content-search{flex-basis:340px} }
@media (max-width:900px){
  .cxy-content-bar{display:block;border-bottom:0}
  .cxy-content-bar .cxy-content-nav{border-bottom:1px solid var(--ztc-border)}
  .cxy-content-search{padding:16px 0 0}
}
@media (max-width:767px){
  .cxy-content-bar{margin-bottom:24px}
  .cxy-find--nav{gap:12px}
  .cxy-find--nav .cxy-find-ai{font-size:13px}
}
@media (prefers-reduced-motion:reduce){ .cxy-hsearch-panel input{transition:none} }

/* 同名的指南和试算合成一条时，另一页的链接 */
.cxy-result-twin{margin:6px 0 0;font-size:14px}
.cxy-result-twin a{color:var(--ztc-action);text-decoration:none}
.cxy-result-twin a:hover{color:var(--cxy-link-hover)}

.cxy-find-ai svg {margin-inline-start:5px;vertical-align:-2px;}

/* —— 资源中心与知识栏目统一横幅搜索栏（整合站内搜索 + 问财小云 AI） —— */
.cxy-hub-search{margin-top:24px;max-width:780px}
.cxy-hub-search-form{display:flex;align-items:stretch;gap:12px;margin:0}
.cxy-hub-search-field{position:relative;flex:1 1 auto;min-width:0;display:flex;align-items:center;height:52px;padding:5px 6px 5px 16px;border:1px solid color-mix(in srgb,var(--ztc-action) 20%,var(--ztc-border));border-radius:16px;background:#fff;box-shadow:0 8px 24px -14px rgba(11,31,58,.14),0 1px 2px rgba(11,31,58,.04);transition:border-color .18s ease,box-shadow .18s ease}
.cxy-hub-search-field:focus-within{border-color:var(--ztc-action);box-shadow:0 12px 28px -12px rgba(0,110,214,.22),0 0 0 3px color-mix(in srgb,var(--ztc-action) 14%,transparent)}
.cxy-hub-search-icon{flex:none;display:inline-flex;color:var(--ztc-text-muted);margin-right:10px;pointer-events:none}
.cxy-hub-search-field input{flex:1 1 auto;min-width:0;height:100%;padding:0 8px 0 0;border:0;background:transparent;color:var(--cxy-heading,#0b1f3a);font:400 15px/1.5 var(--ztc-sans);appearance:none;-webkit-appearance:none;outline:none}
.cxy-hub-search-field input::placeholder{color:#6b7787}
.cxy-hub-search-field input::-webkit-search-cancel-button{-webkit-appearance:none}
.cxy-hub-search-submit{flex:none;height:40px;padding:0 20px;border:0;border-radius:12px;background:var(--ztc-action);color:#fff;font:500 14px/1 var(--ztc-sans);cursor:pointer;transition:background-color .16s ease}
.cxy-hub-search-submit:hover{background:var(--ztc-action-hover)}
.cxy-hub-search-submit:focus-visible{outline:2px solid var(--ztc-action);outline-offset:2px}
.cxy-hub-search-results{left:0;right:0;width:auto;top:calc(100% + 8px)}
.cxy-hub-search-ai{flex:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:52px;padding:0 20px;border:1px solid color-mix(in srgb,var(--ztc-action) 26%,white);border-radius:16px;background:rgba(255,255,255,.92);color:var(--cxy-heading,#0b1f3a);font:500 14.5px/1 var(--ztc-sans);text-decoration:none;white-space:nowrap;box-shadow:0 8px 24px -16px rgba(0,110,214,.20);transition:border-color .16s ease,background-color .16s ease,color .16s ease,transform .16s ease}
.cxy-hub-search-ai:hover,.cxy-hub-search-ai:focus-visible{border-color:var(--ztc-action);background:#fff;color:var(--ztc-action);transform:translateY(-1px)}
.cxy-hub-search-ai .cxy-ai-entry-mark{width:19px;height:19px;flex:none}
.cxy-hub-search-quick{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:12px;font-size:13px;line-height:1.5}
.cxy-hub-quick-label{color:var(--ztc-text-muted);font-weight:500}
.cxy-hub-search-quick a{display:inline-flex;align-items:center;min-height:30px;padding:2px 11px;border-radius:999px;background:rgba(255,255,255,.78);border:1px solid color-mix(in srgb,var(--ztc-border) 85%,transparent);color:var(--cxy-text,#24344d);text-decoration:none;transition:border-color .14s ease,color .14s ease,background-color .14s ease}
.cxy-hub-search-quick a:hover,.cxy-hub-search-quick a:focus-visible{background:#fff;border-color:var(--ztc-action);color:var(--ztc-action)}
@media (max-width:767px){
  .cxy-hub-search{margin-top:18px}
  .cxy-hub-search-form{flex-direction:column;gap:10px}
  .cxy-hub-search-field{height:48px;padding:4px 5px 4px 14px;border-radius:14px}
  .cxy-hub-search-field input{font-size:16px}
  .cxy-hub-search-submit{height:38px;padding:0 16px;border-radius:10px}
  .cxy-hub-search-ai{height:44px;border-radius:14px}
}
@media (prefers-reduced-motion:reduce){
  .cxy-hub-search-field,.cxy-hub-search-submit,.cxy-hub-search-ai,.cxy-hub-search-quick a{transition:none}
  .cxy-hub-search-ai:hover{transform:none}
}
