/* Alinket mirror — search overlay styles */

/* Hide 凡科's built-in language switcher (EN/中文/繁体/日本語) and the original
   header search magnifier (non-functional on the static mirror). Both are
   replaced by the custom alkSearchTrigger button + search overlay. */
.localer,
.localerPanel_8,
#localer { display: none !important; }
.fk-newSearchBox,
.fk-searchBoxBtn,
#module859 { display: none !important; }

.alk-search {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
}
.alk-search.is-open { display: block; }
.alk-search__mask {
  position: absolute;
  inset: 0;
  background: rgba(8, 28, 42, 0.55);
  backdrop-filter: blur(2px);
}
.alk-search__panel {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: min(680px, 92vw);
  margin-top: 8vh;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  overflow: hidden;
  animation: alkSearchIn 0.18s ease-out;
}
@keyframes alkSearchIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.alk-search__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eef1f4;
  background: #f7f9fb;
}
.alk-search__icon { color: #1367c8; flex: 0 0 auto; }
.alk-search__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-size: 17px;
  color: #123;
  font-family: inherit;
}
.alk-search__input::placeholder { color: #9aa7b3; }
.alk-search__close {
  flex: 0 0 auto;
  border: none;
  background: #eef1f4;
  color: #4a5a68;
  width: 30px; height: 30px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.alk-search__close:hover { background: #e0e6ec; color: #123; }
.alk-search__results {
  max-height: 56vh;
  overflow-y: auto;
  padding: 6px 0;
}
.alk-search__hint {
  padding: 18px 16px;
  color: #8a97a3;
  font-size: 14px;
}
.alk-search__empty {
  padding: 18px 16px;
  color: #6b7884;
  font-size: 14px;
}
.alk-search__item {
  display: block;
  padding: 11px 16px;
  text-decoration: none;
  border-bottom: 1px solid #f1f4f7;
  color: inherit;
}
.alk-search__item:hover { background: #f3f8ff; }
.alk-search__item-title {
  font-size: 15px;
  font-weight: 600;
  color: #0b3b6f;
  margin-bottom: 2px;
}
.alk-search__item-url {
  font-size: 12px;
  color: #1367c8;
  margin-bottom: 3px;
  word-break: break-all;
}
.alk-search__item-snip {
  font-size: 13px;
  color: #5a6671;
  line-height: 1.45;
}
.alk-search__item-snip mark,
.alk-search__item-title mark {
  background: #fff2b8;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

/* Always-visible search trigger pinned to the top bar (right of the language switch) */
.alk-search-trigger {
  position: fixed;
  top: 12px;
  right: 16px;
  z-index: 99998;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 18px;
  background: #1367c8;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(19, 103, 200, 0.42);
  font-family: inherit;
}
.alk-search-trigger:hover { background: #0f56ad; }
.alk-search-trigger svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .alk-search-trigger { right: 12px; padding: 0; width: 34px; justify-content: center; }
  .alk-search-trigger span { display: none; }
}

/* Alinket mirror — language switcher (shared by all 114 凡科 pages + JA/zh-Hant pages) */
.alk-lang{position:fixed;z-index:99998;font-family:inherit;font-size:13px}
.alk-lang--inline{position:relative;z-index:auto}
.alk-lang__btn{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 12px;border:1px solid #c9d8e6;border-radius:18px;background:#fff;color:#0b3b6f;font:inherit;font-size:13px;font-weight:600;cursor:pointer;box-shadow:0 2px 8px rgba(8,40,66,.16);white-space:nowrap}
.alk-lang__btn:hover{background:#f2f7fc}
.alk-lang__caret{font-size:11px;line-height:1;opacity:.75}
.alk-lang--inline .alk-lang__btn{background:transparent;border-color:rgba(255,255,255,.42);color:#fff;box-shadow:none}
.alk-lang--inline .alk-lang__btn:hover{background:rgba(255,255,255,.12)}
.alk-lang__list{display:none;position:absolute;top:calc(100% + 7px);right:0;min-width:150px;margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #dfe6ed;border-radius:10px;box-shadow:0 12px 34px rgba(8,40,66,.22)}
.alk-lang.is-open .alk-lang__list{display:block}
.alk-lang__list li{margin:0;padding:0}
.alk-lang__list a{display:block;padding:8px 12px;border-radius:6px;color:#12324f;font-size:13px;white-space:nowrap;text-decoration:none}
.alk-lang__list a:hover{background:#f2f7fc;text-decoration:none}
.alk-lang__list a[aria-current="true"]{background:#eaf2fa;font-weight:600;color:#0b3b6f}
@media(max-width:600px){.alk-lang__btn{padding:0 9px;font-size:12px}}

/* 凡科's runtime injects an inline SVG sprite (#__SVG_SPRITE_NODE__) whose
   <symbol> definitions carry Simplified-Chinese labels (e.g. 热门 in
   #icon_top4). Those are hidden definition nodes, not page copy, yet Chrome
   still exposes their <text> through document.body.innerText - which makes
   JA / zh-Hant pages fail a strict language-purity check. Hide just the
   label glyphs; the icon shapes (<path>/<circle>) are untouched and <use>
   references keep working. */
#__SVG_SPRITE_NODE__ symbol text,
#__SVG_SPRITE_NODE__ > text { display: none !important; }
