/* YHZL 产品目录页搜索 —— 样式（自包含，不依赖 Tailwind 是否加载成功） */
#yhzlCatalogSearch { max-width: 720px; margin: 0 auto; padding: 26px 16px 4px; position: relative; }
#yhzlCatalogSearch .yhzl-cs-form {
    display: flex; align-items: center; gap: 8px;
    background: #fff; border: 2px solid #e2e8f0; border-radius: 999px;
    padding: 7px 7px 7px 20px; box-shadow: 0 6px 20px rgba(16,24,40,.08);
    transition: border-color .15s;
}
#yhzlCatalogSearch .yhzl-cs-form:focus-within { border-color: #f97316; }
#yhzlCatalogSearch .yhzl-cs-ico { width: 20px; height: 20px; flex: none; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; }
#yhzlCatalogSearch input[type="search"] {
    flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
    font-size: 16px; color: #111827; padding: 12px 0; font-family: inherit;
}
#yhzlCatalogSearch input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
#yhzlCatalogSearch .yhzl-cs-submit {
    flex: none; border: 0; border-radius: 999px; background: #f97316; color: #fff;
    font-size: 15px; font-weight: 700; padding: 13px 24px; min-height: 46px; cursor: pointer;
    font-family: inherit;
}
#yhzlCatalogSearch .yhzl-cs-submit:hover { background: #ea580c; }
#yhzlCatalogSearch .yhzl-cs-results {
    position: absolute; left: 16px; right: 16px; top: calc(100% - 4px); z-index: 40;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    box-shadow: 0 20px 48px rgba(16,24,40,.18);
    max-height: min(66vh, 540px); overflow-y: auto; text-align: left;
}
#yhzlCatalogSearch .yhzl-cs-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px; border-bottom: 1px solid #eef2f7;
    font-size: 13px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #64748b;
}
#yhzlCatalogSearch .yhzl-cs-close { border: 0; background: none; font-size: 22px; line-height: 1; color: #64748b; width: 32px; height: 32px; cursor: pointer; }
#yhzlCatalogSearch .yhzl-cs-hit {
    display: flex; gap: 13px; align-items: center; padding: 12px 16px;
    border-bottom: 1px solid #f4f7fb; color: inherit; text-decoration: none;
}
#yhzlCatalogSearch .yhzl-cs-hit:hover { background: #f8fafc; text-decoration: none; }
#yhzlCatalogSearch .yhzl-cs-hit img {
    width: 52px; height: 52px; flex: none; object-fit: contain;
    border: 1px solid #e8edf4; border-radius: 7px; background: #fff;
}
#yhzlCatalogSearch .yhzl-cs-hit-body { min-width: 0; display: block; }
#yhzlCatalogSearch .yhzl-cs-hit-name {
    display: block; font-size: 14.5px; font-weight: 700; color: #111827;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#yhzlCatalogSearch .yhzl-cs-hit-meta {
    display: block; font-size: 12.5px; color: #64748b;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#yhzlCatalogSearch .yhzl-cs-hit-meta b { color: #1e3a8a; font-family: ui-monospace, Menlo, monospace; }
#yhzlCatalogSearch .yhzl-cs-empty { padding: 22px 18px; }
#yhzlCatalogSearch .yhzl-cs-empty p { margin: 8px 0 14px; font-size: 14px; color: #475569; }
#yhzlCatalogSearch .yhzl-cs-btn {
    display: inline-block; background: #f97316; color: #fff; text-decoration: none;
    padding: 11px 20px; border-radius: 8px; font-weight: 700; font-size: 14px;
}
#yhzlCatalogSearch .yhzl-cs-btn:hover { background: #ea580c; text-decoration: none; color: #fff; }

@media (min-width: 768px) {
    #yhzlCatalogSearch { padding-top: 34px; }
}
/* 阿拉伯语页面（RTL）：图标与按钮顺序镜像 */
[dir="rtl"] #yhzlCatalogSearch .yhzl-cs-form { padding: 7px 20px 7px 7px; }
