/* 全景查看 · 全局搜索入口（对齐右上角其它 40×40 / 35px 图标） */
.vrshow_container_1_min .vr-gsearch-btn {
  display: none !important;
  position: relative;
  box-sizing: border-box;
  width: 40px;
  height: 40px;
  margin: 0 0 5px 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.vrshow_container_1_min .vr-gsearch-btn.is-on {
  display: block !important;
}
/* 圆形半透明灰底（提高不透明度便于辨认），与其它图标同为 35px、靠左对齐 */
.vrshow_container_1_min .vr-gsearch-btn::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  z-index: 0;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(72, 76, 86, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  pointer-events: none;
}
.vrshow_container_1_min .vr-gsearch-btn svg {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 35px;
  height: 35px;
  padding: 7px;
  box-sizing: border-box;
  color: #c4c8ce;
  display: block;
  pointer-events: none;
}
.vrshow_container_1_min .vr-gsearch-btn:hover::before {
  background: rgba(72, 76, 86, 0.9);
}
.vrshow_container_1_min .vr-gsearch-btn:hover svg {
  color: #e4e8ee;
}
.vrshow_container_1_min .vr-gsearch-btn:active {
  transform: none;
  opacity: 0.92;
}

/* 毛玻璃预设下保持可见灰圆 */
#fullscreenid[data-btn-style="glass"] .vrshow_container_1_min .vr-gsearch-btn::before {
  background: rgba(48, 52, 62, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}
#fullscreenid[data-btn-style="linear"] .vrshow_container_1_min .vr-gsearch-btn::before {
  background: rgba(60, 68, 82, 0.55);
  box-shadow: inset 0 0 0 1px rgba(90, 162, 255, 0.35);
}
#fullscreenid[data-btn-style="linear"] .vrshow_container_1_min .vr-gsearch-btn svg {
  color: #dce9ff;
  filter: drop-shadow(0 0 0.5px #5aa2ff) brightness(1.1);
}

/* —— 遮罩层 —— */
.vr-gsearch-mask {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  flex-direction: column;
  background: rgba(18, 22, 30, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  box-sizing: border-box;
}
.vr-gsearch-mask.is-open {
  display: flex;
}

/* 作品名称 + 简介（位于综合搜索栏上方） */
.vr-gsearch-work {
  flex-shrink: 0;
  padding: 18px 20px 8px;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.vr-gsearch-work-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  letter-spacing: 0.02em;
  word-break: break-word;
}
.vr-gsearch-work-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  max-height: 4.95em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  word-break: break-word;
  white-space: pre-wrap;
}
.vr-gsearch-work-desc.is-empty {
  display: none;
}

.vr-gsearch-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px;
  flex-wrap: wrap;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.vr-gsearch-brand {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.vr-gsearch-brand-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: #3b82f6;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.vr-gsearch-group {
  position: relative;
  flex-shrink: 0;
}
.vr-gsearch-group-btn {
  min-width: 44px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
}
.vr-gsearch-group-menu {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  min-width: 140px;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  border-radius: 10px;
  background: rgba(22, 26, 34, 0.96);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 5;
}
.vr-gsearch-group-menu.is-open {
  display: block;
}
.vr-gsearch-group-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.vr-gsearch-group-menu button:hover,
.vr-gsearch-group-menu button.is-on {
  background: rgba(59, 130, 246, 0.35);
}

.vr-gsearch-field-wrap {
  position: relative;
  flex: 1;
  min-width: 160px;
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.vr-gsearch-field {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
}
.vr-gsearch-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: #fff;
  font-size: 14px;
}
.vr-gsearch-field input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.vr-gsearch-clear {
  display: none;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  line-height: 22px;
  font-size: 14px;
  padding: 0;
  flex-shrink: 0;
}
.vr-gsearch-clear.is-on {
  display: inline-block;
}
.vr-gsearch-go {
  flex-shrink: 0;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.vr-gsearch-go svg {
  width: 16px;
  height: 16px;
}
.vr-gsearch-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.vr-gsearch-suggest {
  display: none;
  position: absolute;
  left: 0;
  right: 56px;
  top: calc(100% + 6px);
  max-height: 280px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  background: rgba(16, 20, 28, 0.95);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  z-index: 6;
}
.vr-gsearch-suggest.is-open {
  display: block;
}
.vr-gsearch-suggest-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin: 0 0 4px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 14px;
}
.vr-gsearch-suggest-item:hover {
  background: rgba(59, 130, 246, 0.28);
}
.vr-gsearch-suggest-item i.hit,
.vr-gsearch-card-name i.hit {
  color: #f5c242;
  font-style: normal;
  font-weight: 700;
}
.vr-gsearch-suggest-tag {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.7;
  font-size: 12px;
  flex-shrink: 0;
}
.vr-gsearch-suggest-empty {
  padding: 16px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 13px;
}

.vr-gsearch-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 8px 16px 12px;
  -webkit-overflow-scrolling: touch;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.vr-gsearch-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.vr-gsearch-card {
  position: relative;
  display: block;
  border: 0;
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1f28;
  cursor: pointer;
  aspect-ratio: 16 / 10;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.vr-gsearch-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #111;
}
.vr-gsearch-card-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.vr-gsearch-card.is-hit {
  outline: 2px solid #3b82f6;
  outline-offset: 1px;
}
.vr-gsearch-empty {
  padding: 60px 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
}

.vr-gsearch-foot {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 12px 18px;
  flex-wrap: wrap;
}
.vr-gsearch-page {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  color: rgba(255, 255, 255, 0.85);
  cursor: pointer;
  font-size: 13px;
}
.vr-gsearch-page.is-on {
  background: #3b82f6;
  color: #fff;
}
.vr-gsearch-page:disabled {
  opacity: 0.35;
  cursor: default;
}

@media (max-width: 1100px) {
  .vr-gsearch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .vr-gsearch-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .vr-gsearch-work {
    padding: 14px 12px 6px;
  }
  .vr-gsearch-work-title {
    font-size: 18px;
  }
  .vr-gsearch-work-desc {
    font-size: 12px;
    -webkit-line-clamp: 4;
    max-height: 6.6em;
  }
  .vr-gsearch-head {
    padding: 8px 12px 8px;
  }
  .vr-gsearch-brand {
    font-size: 13px;
  }
  .vr-gsearch-go span {
    display: none;
  }
  .vr-gsearch-suggest {
    right: 44px;
  }
}
@media (max-width: 520px) {
  .vr-gsearch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
