.ying-ac-open {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 36px; height: 36px; min-width: 0; margin: 0; padding: 0; border: 0;
  border-radius: 8px; background: transparent; color: var(--ls-text, #475569);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer; box-sizing: border-box;
}
.ying-ac-open i { font-size: inherit; line-height: 1; }
.ying-ac-open:hover { background: var(--ls-bg, #f1f5f9); color: var(--ls-primary, #568bd2); }
.ls-ma-toolbar .ying-ac-open { width: 38px; height: 38px; font-size: 20px; color: var(--ls-text-secondary, #667085); }
.ying-ac-open:focus-visible, .ying-ac-result:focus-visible, .ying-ac-close:focus-visible, .ying-ac-more:focus-visible, a.ying-article-card:focus-visible { outline: 2px solid var(--ls-primary, #568bd2); outline-offset: 2px; }
.ying-ac-mask, .ying-ac-mask *, .ying-article-card, .ying-article-card * { box-sizing: border-box; }
.ying-ac-mask { position: fixed; inset: 0; z-index: 10030; display: grid; place-items: center; padding: 24px; background: rgb(20 29 42 / 46%); font-family: inherit; }
.ying-ac-dialog { display: flex; flex-direction: column; width: min(740px, 100%); max-height: min(82vh, 760px); max-height: min(82dvh, 760px); overflow: hidden; border: 1px solid var(--ls-border-light, #e8ebef); border-radius: 14px; background: var(--ls-card-bg, var(--ls-bg-card, #fff)); box-shadow: 0 24px 70px #10182835; color: var(--ls-text, #252a34); }
.ying-ac-dialog-head { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 10px 20px; border-bottom: 1px solid var(--ls-border-light, #eceef1); }
.ying-ac-dialog-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; font-size: 19px; font-weight: 600; line-height: 1.5; }
.ying-ac-dialog-head h2 > i { color: var(--ls-primary, #568bd2); font-size: 22px; font-weight: 400; }
.ying-ac-close { display: grid; place-items: center; flex: none; width: 32px; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ls-text-secondary, #8a919a); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ying-ac-close:hover { background: var(--ls-bg, #f2f4f7); color: var(--ls-text, #343a46); }
.ying-ac-search { flex: none; padding: 14px 20px 0; }
.ying-ac-search-box { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--ls-border-light, #dbe1e8); border-radius: 6px; transition: border-color .15s, box-shadow .15s; cursor: text; }
.ying-ac-search-box:focus-within { border-color: var(--ls-primary, #78a5df); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ls-primary, #568bd2) 12%, transparent); }
.ying-ac-search-box > i { flex: none; color: var(--ls-text-secondary, #939ba5); font-size: 20px; }
.ying-ac-search-box input { appearance: auto; width: 0; min-width: 0; flex: 1; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; box-shadow: none; background: transparent; color: var(--ls-text, #28313d); font: inherit; font-size: 15px; }
.ying-ac-search-box input::placeholder { color: var(--ls-text-secondary, #969ea8); opacity: .9; }
.ying-ac-summary { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px 9px; color: var(--ls-text-secondary, #8a919b); font-size: 13px; line-height: 1.5; }
.ying-ac-count { color: var(--ls-primary, #568bd2); font-weight: 600; }
.ying-ac-results { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: auto; padding: 0 20px 16px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d3d7dc transparent; }
.ying-ac-items { display: flex; flex-direction: column; gap: 8px; }
.ying-ac-result { display: flex; flex: none; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 8px; border: 1px solid var(--ls-border-light, #e3e7ec); border-radius: 12px; background: var(--ls-bg, #f7f8fa); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ying-ac-result:hover { border-color: color-mix(in srgb, var(--ls-primary, #568bd2) 42%, #e3e7ec); background: color-mix(in srgb, var(--ls-primary, #568bd2) 4%, var(--ls-card-bg, #fff)); }
.ying-ac-result > img.ying-ac-result-cover { display: block !important; flex: 0 0 132px !important; align-self: center; width: 132px !important; height: 86px !important; min-height: 86px !important; max-width: none; margin: 0; border: 0; border-radius: 8px; object-fit: cover; }
.ying-ac-result > .ying-ac-result-content { display: flex !important; min-width: 0; min-height: 86px; flex: 1; flex-direction: column; justify-content: center; align-self: center; align-items: flex-start; }
.ying-ac-result-title { display: -webkit-box !important; overflow: hidden; width: 100%; margin: 0 !important; color: var(--ls-text, #292f39); font-size: 15px !important; font-weight: 600; line-height: 1.35 !important; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ying-ac-result-excerpt { display: -webkit-box !important; overflow: hidden; width: 100%; margin-top: 3px !important; color: var(--ls-text-secondary, #858c96); font-size: 13px !important; line-height: 1.4 !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ying-ac-result-insert { display: inline-flex !important; align-items: center; gap: 3px; margin-top: 3px !important; color: var(--ls-primary, #568bd2); font-size: 13px !important; font-weight: 500; line-height: 1.3 !important; }
.ying-ac-state:not(:empty) { display: flex; flex: 1 0 180px; min-height: 180px; align-items: center; justify-content: center; gap: 10px; padding: 24px 16px; color: var(--ls-text-secondary, #8992a0); font-size: 14px; line-height: 1.6; text-align: center; }
.ying-ac-state.is-loading::before { width: 20px; height: 20px; border: 2px solid color-mix(in srgb, var(--ls-primary, #568bd2) 20%, transparent); border-top-color: var(--ls-primary, #568bd2); border-radius: 50%; content: ""; animation: ying-ac-spin .75s linear infinite; }
@keyframes ying-ac-spin { to { transform: rotate(360deg); } }
.ying-ac-more { display: block; flex: none; margin: 16px auto 0; padding: 7px 16px; border: 1px solid var(--ls-border-light, #e2e6ed); border-radius: 7px; background: transparent; color: var(--ls-primary, #568bd2); font: inherit; font-size: 13px; cursor: pointer; }
.ying-ac-more[hidden] { display: none; }
a.ying-article-card { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; margin: 18px 0; padding: 14px 16px; border: 1px solid var(--ls-border-light, #e7e9ed); border-radius: 12px; background: var(--ls-card-bg, var(--ls-bg-card, #fff)); color: var(--ls-text, #252a34); text-decoration: none !important; box-shadow: 0 3px 12px #17255408; font-style: normal; line-height: 1.5; transition: border-color .15s, box-shadow .15s; }
a.ying-article-card:hover { border-color: #cbd9eb; box-shadow: 0 5px 18px #1725540d; }
a.ying-article-card img.ying-article-card-cover { display: block; flex: 0 0 104px; width: 104px; height: 104px; max-width: none; margin: 0; padding: 0; border: 0; border-radius: 6px; object-fit: cover; }
.ying-article-card-body { display: block; min-width: 0; flex: 1; }
.ying-article-card-label { display: block; margin-bottom: 2px; color: var(--ls-primary, #568bd2); font-size: 13px; font-weight: 600; }
.ying-article-card-title { display: block; overflow: hidden; color: var(--ls-text, #222832); font-size: 16px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.ying-article-card-excerpt { display: block; overflow: hidden; margin-top: 2px; color: var(--ls-text-secondary, #858b95); font-size: 14px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.ying-article-card-meta { display: block; overflow: hidden; margin-top: 3px; color: var(--ls-text-secondary, #9298a2); font-size: 12px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.ying-article-card-arrow { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--ls-primary, #568bd2) 9%, transparent); color: var(--ls-primary, #568bd2); font-size: 18px; line-height: 1; }
@media (max-width: 600px) {
  .ying-ac-mask { padding: 12px; }
  .ying-ac-dialog { max-height: 90vh; max-height: 90dvh; border-radius: 14px; }
  .ying-ac-dialog-head { min-height: 58px; padding: 12px 16px; }
  .ying-ac-dialog-head h2 { font-size: 17px; }
  .ying-ac-search { padding: 14px 16px 0; }
  .ying-ac-search-box { height: 44px; padding: 0 10px; }
  .ying-ac-search-box input { font-size: 16px; }
  .ying-ac-summary { gap: 8px; padding: 12px 16px 10px; font-size: 12px; }
  .ying-ac-results { padding: 0 12px 16px; }
  .ying-ac-items { gap: 9px; }
  .ying-ac-result { gap: 10px; padding: 7px; border-radius: 9px; }
  .ying-ac-result > img.ying-ac-result-cover { flex-basis: 76px !important; width: 76px !important; height: 76px !important; min-height: 76px !important; border-radius: 6px; }
  .ying-ac-result > .ying-ac-result-content { min-height: 76px; }
  .ying-ac-result-title { font-size: 14px !important; }
  .ying-ac-result-excerpt { margin-top: 3px !important; font-size: 12px !important; }
  .ying-ac-result-insert { margin-top: 3px !important; font-size: 12px !important; }
  a.ying-article-card { gap: 10px; margin: 14px 0; padding: 10px; border-radius: 10px; }
  a.ying-article-card img.ying-article-card-cover { flex-basis: 76px; width: 76px; height: 76px; }
  .ying-article-card-label { margin-bottom: 2px; font-size: 11px; }
  .ying-article-card-title { font-size: 14px; }
  .ying-article-card-excerpt { margin-top: 2px; font-size: 12px; }
  .ying-article-card-meta { margin-top: 3px; font-size: 11px; }
  .ying-article-card-arrow { flex-basis: 24px; width: 24px; height: 24px; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ying-ac-result, .ying-ac-search-box, a.ying-article-card { transition: none; } }
