
.ssb, .ss {
  --ss-blue: #0a1636; --ss-orange: #ff6436; --ss-ink2: #5b6472; --ss-line: #d5dce6; --ss-arctic: #E8EEF3;
  --ss-serif: "Spectral", Georgia, "Times New Roman", serif;
  --ss-display: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ssb {
  display: inline-flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box;
  width: 32px; height: 40px; margin: 0 -8px 0 0; padding: 0; border: 0; border-radius: 4px; background: none;
  color: var(--ss-blue); cursor: pointer; transition: color .2s ease; -webkit-tap-highlight-color: transparent;
}
.ssb svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.ssb[aria-expanded="true"] { color: var(--ss-orange); }
@media (hover: hover) {
  .ssb:hover, .ss__clear:hover, .ss__sug:hover, .ss__none-d a:hover { color: var(--ss-orange); }
  .ss__opt:hover { background: var(--ss-arctic); }
  .ss__opt:hover .ss__t { color: var(--ss-orange); }
}
.ssb:focus-visible { outline: 2px solid var(--ss-blue); outline-offset: 2px; }
@media (max-width: 767px) { .ssb { width: 44px; height: 44px; margin: 0; } }

html.ss-open { overflow: hidden; scrollbar-gutter: stable; }
.ss { position: fixed; top: var(--bar-h, 80px); right: 0; bottom: 0; left: 0; z-index: 70; font-family: var(--ss-display); color: var(--ss-blue); text-align: left; }
.ss[hidden] { display: none; }
.ss__veil { position: absolute; top: 0; right: 0; bottom: 0; left: 0; background: rgba(10, 22, 54, .2); opacity: 0; transition: opacity .18s ease; }
.ss__sheet {
  position: relative; max-height: calc(100dvh - var(--bar-h, 80px) - 48px); overflow-y: auto; overscroll-behavior: contain;
  background: #fff; box-shadow: 0 1px 0 var(--ss-line), 0 24px 48px rgba(10, 22, 54, .12);
  opacity: 0; transform: translateY(-6px); transition: opacity .18s ease, transform .18s ease;
}
.ss.is-open .ss__veil { opacity: 1; }
.ss.is-open .ss__sheet { opacity: 1; transform: none; }
.ss__in { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 24px; }

.ss__top { display: flex; align-items: center; gap: 16px; }
.ss__field { position: relative; display: flex; flex: 1; align-items: center; gap: 16px; min-width: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ss-blue); }
.ss__field:focus-within { box-shadow: 0 1px 0 var(--ss-blue); }
.ss__glass { display: block; flex: none; width: 24px; height: 24px; fill: none; stroke: var(--ss-blue); stroke-width: 1.6; stroke-linecap: round; }
.ss__input {
  flex: 1; min-width: 0; height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  font-family: var(--ss-serif); font-size: 28px; font-weight: 400; line-height: 1.2; letter-spacing: -.01em; color: var(--ss-blue);
  -webkit-appearance: none; appearance: none; outline: none;
}
#siteSearch .ss__input:is(:focus, :focus-visible) { outline: none; box-shadow: none; }
.ss__input::placeholder { color: var(--ss-ink2); opacity: 1; }
.ss__input::-webkit-search-cancel-button, .ss__input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
html:lang(zh) .ss__input { font-family: var(--ss-display); letter-spacing: 0; }
.ss__clear {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 4px;
  background: none; color: var(--ss-ink2); cursor: pointer; transition: color .2s ease;
}
.ss__clear[hidden] { display: none; }
.ss__clear svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
:is(.ss__clear, .ss__close, .ss__sug, .ss__all):focus-visible { outline: 2px solid var(--ss-blue); outline-offset: 2px; }
.ss__esc, .ss__foot kbd {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-width: 24px; height: 24px; padding: 0 8px;
  border: 1px solid var(--ss-line); border-radius: 4px; background: #fff; font-family: var(--ss-display); font-size: 13px; font-weight: 500; line-height: 1;
  color: var(--ss-ink2);
}
.ss__close { display: none; }

.ss__body { margin-top: 24px; }
.ss__label, .ss__gh { margin: 0; font-size: 13px; font-weight: 500; line-height: 16px; letter-spacing: .06em; text-transform: uppercase; color: var(--ss-ink2); }
html:lang(zh) :is(.ss__label, .ss__gh) { letter-spacing: .02em; }
.ss__try[hidden] { display: none; }
.ss__sugs { display: flex; flex-wrap: wrap; gap: 0 24px; margin: 8px 0 0; padding: 0; list-style: none; }
.ss__sug {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; cursor: pointer;
  font-family: var(--ss-display); font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ss-blue); text-align: left; transition: color .2s ease;
}
.ss__none-t { margin: 0; font-family: var(--ss-serif); font-size: 22px; font-weight: 400; line-height: 32px; color: var(--ss-blue); }
html:lang(zh) .ss__none-t { font-family: var(--ss-display); }
.ss__none-d { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: var(--ss-ink2); }
.ss__none-d a { color: var(--ss-blue); text-decoration: underline; text-underline-offset: 3px; transition: color .2s ease; }
.ss__none:not([hidden]) ~ .ss__try, .ss__fail:not([hidden]) ~ .ss__try { margin-top: 32px; }
.ss__note { margin: 16px 0 0; font-size: 13px; line-height: 20px; color: var(--ss-ink2); }
.ss__note[hidden] { display: none; }

.ss__results:empty { display: none; }
.ss__g + .ss__g { margin-top: 24px; }
.ss__gh { padding-bottom: 8px; }
.ss__list { margin: 0; padding: 0; list-style: none; }
.ss__opt {
  display: block; box-sizing: border-box; min-height: 48px; margin: 0 -16px; padding: 8px 16px; border-radius: 4px; color: var(--ss-blue);
  text-decoration: none; cursor: pointer; scroll-margin: 8px;
}
.ss__opt.is-active { background: var(--ss-arctic); }
.ss__t { font-size: 16px; font-weight: 400; line-height: 24px; color: var(--ss-blue); transition: color .2s ease; }
.ss__t b { font-weight: 600; }
.ss__tag {
  display: inline-block; margin-left: 8px; padding: 0 8px; border: 1px solid var(--ss-line); border-radius: 4px; vertical-align: 1px;
  font-size: 13px; font-weight: 500; line-height: 16px; letter-spacing: .04em; color: var(--ss-ink2);
}
.ss__m { display: block; overflow: hidden; font-size: 13px; line-height: 20px; color: var(--ss-ink2); white-space: nowrap; text-overflow: ellipsis; }
.ss__m > span + span::before { content: "·"; padding: 0 8px; }
.ss__all { display: flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 500; line-height: 16px; letter-spacing: .02em; color: var(--ss-blue); }

.ss__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--ss-line); font-size: 13px; line-height: 16px; color: var(--ss-ink2); }
.ss__foot kbd + span { margin-right: 8px; }
.ss__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (hover: none) { .ss__esc, .ss__foot { display: none; } }

@media (max-width: 767px) {
  .ss { top: 0; z-index: 80; }
  .ss__veil, .ss__esc, .ss__foot { display: none; }
  .ss__sheet { height: 100dvh; max-height: none; box-shadow: none; }
  .ss__in { width: auto; padding: 8px 16px 32px; }
  .ss__top { min-height: 48px; }
  .ss__field { gap: 8px; }
  .ss__glass { width: 20px; height: 20px; }
  .ss__input { height: 44px; font-size: 22px; }
  .ss__clear { width: 44px; height: 44px; }
  .ss__close {
    display: inline-flex; align-items: center; flex: none; min-height: 44px; padding: 0 8px; margin-right: -8px; border: 0; background: none; cursor: pointer;
    font-family: var(--ss-display); font-size: 14px; font-weight: 500; line-height: 16px; color: var(--ss-blue);
  }
  .ss__sugs { flex-direction: column; gap: 0; }
  .ss__opt { margin: 0 -8px; padding: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .ss__veil, .ss__sheet, .ssb, .ss__t, .ss__sug, .ss__clear { transition: none; }
  .ss__sheet { transform: none; }
}
