/* TOOPIC_VISION — 顶栏搜索（保留原背景色系） */
.header,
.header .fixed,
.header .layout-r,
.header .search-form { overflow: visible; }
.header .search-form.sv-ready { position: relative; z-index: 80; }
.header .search-form.sv-ready .s-txt,
.header .search-form.sv-ready #search-keyword {
  width: 320px !important; height: 38px !important;
  padding: 0 138px 0 16px !important; font-size: 13px !important;
  color: #fff !important; -webkit-text-fill-color: #fff !important;
  caret-color: #fff !important; outline: none; box-sizing: border-box;
  border-radius: 19px !important;
}
.header .search-form.sv-ready .s-txt::placeholder,
.header .search-form.sv-ready #search-keyword::placeholder {
  color: rgba(255,255,255,.38) !important;
  -webkit-text-fill-color: rgba(255,255,255,.38) !important; opacity: 1;
}
.header .search-form.sv-ready .s-txt:focus,
.header .search-form.sv-ready #search-keyword:focus {
  width: 320px !important; color: #fff !important; -webkit-text-fill-color: #fff !important;
}
.header .search-form.sv-ready .search-form-icon {
  left: auto !important; right: 4px !important; top: 4px !important;
  width: 30px !important; height: 30px !important; padding: 7px; box-sizing: border-box;
  border-radius: 50%;
color: #12161e !important;
  z-index: 4; display: inline-flex !important; align-items: center; justify-content: center;
}
.header .search-form.sv-ready .search-form-icon:hover,
.header .search-form.sv-ready .s-txt:focus ~ .search-form-icon,
.header .search-form.sv-ready:focus-within .search-form-icon {
  color: #12161e !important; background: #f3f4f6 !important;
}
.sv-wrap { position: static; }
.sv-btn {
  position: absolute; right: 40px; top: 4px; bottom: 4px; padding: 0 8px;
  border: 0; border-radius: 14px; background: transparent;
  color: rgba(255,255,255,.72); font-size: 12px; font-weight: 500;
  white-space: nowrap; cursor: pointer; display: inline-flex !important;
  align-items: center; gap: 5px; z-index: 3; font-family: inherit; line-height: 1;
  visibility: visible !important; opacity: 1 !important;
}
.sv-btn:hover, .header .search-form.sv-open .sv-btn {
  color: #fff; background: rgba(255,255,255,.12);
}
.sv-btn svg { flex-shrink: 0; width: 14px; height: 14px; }
.sv-btn-label { pointer-events: none; }
.sv-pop {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  width: 320px;
  padding: 14px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(16, 18, 24, .18);
  z-index: 90;
  text-align: left;
  box-sizing: border-box;
}
.header .search-form.sv-open .sv-pop { display: block; }
.sv-arrow {
  position: absolute;
  top: -5px;
  left: var(--arrow-x, 258px);
  width: 10px;
  height: 10px;
  margin: 0;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
  box-shadow: -1px -1px 0 rgba(16, 18, 24, .08);
  pointer-events: none;
}
.sv-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.sv-hd .ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(20, 150, 255, .1);
  color: #1496ff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.sv-hd h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1496ff;
  margin: 0;
}
.sv-hd p {
  margin: 2px 0 0;
  font-size: 12px;
  color: #8a9099;
  line-height: 1.4;
}
.sv-drop {
  height: 132px;
  border: 1px dashed #d5dae2;
  border-radius: 10px;
  background:
    linear-gradient(#f7f8fb, #f7f8fb) padding-box,
    repeating-linear-gradient(-45deg, transparent, transparent 6px, rgba(0,0,0,.015) 6px, rgba(0,0,0,.015) 7px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}
.sv-drop:hover,
.sv-drop.over {
  border-color: #9aa7b8;
  background: #f1f4f8;
}
.sv-drop-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fff;
  color: #3c4450;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 2px rgba(16, 18, 24, .06);
}
.sv-drop b {
  font-size: 13px;
  font-weight: 600;
  color: #242830;
}
.sv-ways {
  display: flex;
  gap: 6px;
}
.sv-ways span {
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #e6e9ee;
  font-size: 11px;
  color: #6a717c;
  display: inline-flex;
  align-items: center;
}
.sv-hint {
  margin-top: 10px;
  font-size: 11px;
  color: #9aa0a8;
  text-align: center;
}
.sv-err {
  margin-top: 8px;
  font-size: 12px;
  color: #c0392b;
  text-align: center;
  display: none;
}

/* 选图后显示在搜索胶囊内，点白圆搜索再提交 */
.sv-chip {
  display: none;
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  right: 138px;
  align-items: center;
  gap: 8px;
  z-index: 2;
  min-width: 0;
  pointer-events: none;
}
.header .search-form.sv-has-img .sv-chip {
  display: flex;
}
.header .search-form.sv-has-img .s-txt,
.header .search-form.sv-has-img #search-keyword {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  caret-color: transparent !important;
}
.header .search-form.sv-has-img .s-txt::placeholder,
.header .search-form.sv-has-img #search-keyword::placeholder {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}
.sv-chip img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,.12);
}
.sv-chip-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sv-chip-x {
  pointer-events: auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  margin: 0;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 14px;
  line-height: 22px;
  cursor: pointer;
  flex-shrink: 0;
  font-family: inherit;
}
.sv-chip-x:hover {
  background: rgba(0,0,0,.14);
}
@media (max-width: 960px) {
  .sv-wrap,
  .sv-btn,
  .sv-pop,
  .sv-chip { display: none !important; }
  .header .search-form.sv-ready .s-txt,
  .header .search-form.sv-ready #search-keyword {
    width: 200px !important;
    height: 36px !important;
    padding: 0 16px 0 36px !important;
  }
  .header .search-form.sv-ready .search-form-icon {
    left: 12px !important;
    right: auto !important;
    top: auto !important;
    width: 16px !important;
    height: 16px !important;
    padding: 0;
    background: transparent !important;
    color: rgba(26,31,42,.35) !important;
    border-radius: 0;
    box-shadow: none;
  }
}

/* ---- 以图搜图结果页 ---- */
.sv-page { padding: 0 50px 60px; width: 100%; box-sizing: border-box; }
.sv-page-hero { display: flex; align-items: baseline; justify-content: space-between; padding: 24px 0 16px; gap: 12px; flex-wrap: wrap; }
.sv-page-hero h1 { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0; }
.sv-page-hero p { margin: 0; font-size: 14px; color: #888; }
.sv-page-hero em { color: #1496ff; font-style: normal; font-weight: 700; }
.sv-tabs { display: flex; gap: 4px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 8px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.sv-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 10px; color: #777; font-size: 14px; text-decoration: none; }
.sv-tab span, .sv-tab-on span { display: inline-flex; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 11px; font-weight: 600; background: rgba(0,0,0,0.06); color: #999; align-items: center; justify-content: center; }
.sv-tab.active, .sv-tab-on { color: #333; background: #f0f7ff; font-weight: 700; }
.sv-tab.active span, .sv-tab-on span { background: rgba(20,150,255,0.12); color: #1496ff; }
.sv-sec { margin: 0 0 28px; }
.sv-sec h2 { font-size: 16px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; letter-spacing: .02em; }
.sv-sec + .sv-sec { padding-top: 8px; border-top: 1px solid rgba(0,0,0,.06); }
.sv-page-grid { display: block; margin: 0; padding: 0; list-style: none; }
.sv-page-grid li { list-style: none; box-sizing: border-box; padding: 0 9px 18px; width: 25%; float: left; }
.sv-page-grid.grid-mobile li, .sv-page-grid.sv-grid-mobile li { width: 16.666%; }
.sv-page-card { display: block; text-decoration: none; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); color: inherit; }
.sv-page-card img { width: 100%; height: auto; display: block; border: 0; }
.sv-page-card-t { padding: 10px 12px 12px; font-size: 14px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-page-clear { clear: both; height: 0; }
.sv-page-empty { text-align: center; padding: 80px 20px; clear: both; color: #999; }
.sv-page-empty a { color: #1496ff; text-decoration: none; margin: 0 4px; }
@media (max-width: 1200px) {
  .sv-page-grid li { width: 33.333%; }
}
@media (max-width: 768px) {
  .sv-page { padding: 0 16px 40px; }
  .sv-page-grid li,
  .sv-page-grid.grid-mobile li,
  .sv-page-grid.sv-grid-mobile li { width: 50%; }
}


.header .search-form.sv-ready .s-txt::-webkit-search-cancel-button,
.header .search-form.sv-ready #search-keyword::-webkit-search-cancel-button {
  -webkit-appearance: none; appearance: none; display: none;
}
.header .search-form.sv-ready .s-txt,
.header .search-form.sv-ready #search-keyword {
  transition: width .2s ease, padding .2s ease;
}
.header .search-form.sv-ready.sv-filled .s-txt,
.header .search-form.sv-ready.sv-filled #search-keyword,
.header .search-form.sv-ready.sv-filled .s-txt:focus,
.header .search-form.sv-ready.sv-filled #search-keyword:focus {
  width: 280px !important;
  padding: 0 72px 0 16px !important;
}
.header .search-form.sv-ready.sv-filled .sv-btn,
.header .search-form.sv-ready.sv-filled .sv-wrap { display: none !important; }
.header .search-form.sv-filled .sv-chip { right: 72px; }
.sv-clear {
  display: none; position: absolute; right: 40px; top: 50%; margin-top: -11px;
  width: 22px; height: 22px; border: 0; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 14px; line-height: 22px;
  text-align: center; cursor: pointer; z-index: 5; font-family: inherit;
}
.sv-clear.sv-clear-on { display: block; }
.sv-clear:hover { background: rgba(255,255,255,.24); }



/* search icon: bright bg + dark outline only */
.header .search-form.sv-ready .search-form-icon {
  background: #ffffff !important;
  color: #1a1f2a !important;
  opacity: 1 !important;
}
.header .search-form.sv-ready .search-form-icon svg {
  color: #1a1f2a !important;
  fill: none !important;
  stroke: #1a1f2a !important;
}
.header .search-form.sv-ready .search-form-icon svg * {
  fill: none !important;
  stroke: #1a1f2a !important;
  stroke-width: 2 !important;
  stroke-linecap: round !important;
  stroke-linejoin: round !important;
}
.header .search-form.sv-ready .search-form-icon:hover,
.header .search-form.sv-ready:focus-within .search-form-icon {
  background: #ffffff !important;
  color: #1a1f2a !important;
}
/* TOOPIC_VISION_HIDE_BTN */
.header .search-form .sv-wrap,
.header .search-form .sv-btn,
.header .search-form .sv-pop,
.header .search-form .sv-chip {
  display: none !important;
}
.header .search-form.sv-ready .s-txt,
.header .search-form.sv-ready #search-keyword,
.header .search-form.sv-ready .s-txt:focus,
.header .search-form.sv-ready #search-keyword:focus,
.header .search-form.sv-ready.sv-filled .s-txt,
.header .search-form.sv-ready.sv-filled #search-keyword {
  width: 280px !important;
  padding: 0 48px 0 16px !important;
}
