/* 咖游搜索框 v2.0.0
   模仿参考图：暗色半透明胶囊条 + 左搜索图标 + 右蓝色「搜索」文字按钮。
   占位文字由 PHP 服务端直出（option_zibll_options filter）。 */

/* ===== 主页 Hero 搜索框：暗色胶囊条 ===== */
.header-slider-search {
  width: min(640px, 92%);
  margin: 0 auto;
}
.header-slider-search .search-input {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 999px;
  padding: 4px 4px 4px 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.header-slider-search .search-input:focus-within {
  border-color: rgba(14, 165, 233, 0.55);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(14, 165, 233, 0.12);
}
/* 输入框透明 */
.header-slider-search .line-form { background: transparent; box-shadow: none; }
.header-slider-search .line-form-input {
  font-size: 16px !important;
  color: #e2e8f0 !important;
  padding-left: 10px;
  caret-color: #0ea5e9;
}
.header-slider-search .scale-placeholder {
  color: rgba(226, 232, 240, 0.5) !important;
  font-size: 16px !important;
  padding-left: 10px;
}
.header-slider-search .line-form-line { display: none; }

/* 搜索图标（左侧）——用 ::before 在输入框前注入 */
.header-slider-search .search-input::before {
  content: '';
  /* 图标由 zibll 原生 SVG 提供，这里只留位 */
}

/* 提交按钮：蓝色渐变「搜索」文字按钮（圆角药丸） */
.header-slider-search .abs-right { right: 4px !important; }
.header-slider-search .abs-right button {
  width: auto;
  min-width: 68px;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #0ea5e9, #3b82f6) !important;
  color: #fff !important;
  border: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: opacity 0.2s ease, transform 0.15s ease;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.35);
}
.header-slider-search .abs-right button:hover {
  opacity: 0.9;
  transform: scale(1.03);
}
.header-slider-search .abs-right button svg,
.header-slider-search .abs-right .icon { color: #fff !important; }
/* 隐藏按钮里的 SVG 图标（我们用文字「搜索」），但保留 SVG 以防无文字时 fallback */
.header-slider-search .abs-right button svg { display: none; }

/* 热门标签：已禁用 */
.kauiu-hot-tags { display: none !important; }

/* ===== 顶栏搜索框 ===== */
.navbar-form .search-input.focus-show {
  border-radius: 999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.navbar-form .search-input.focus-show:focus,
.navbar-form .search-input.focus-show:focus-within {
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12) !important;
}

/* ===== 暗夜模式（hero 区本身就是暗色，保持一致）===== */
.dark-theme .header-slider-search .search-input {
  background: rgba(15, 23, 42, 0.75);
  border-color: rgba(148, 163, 184, 0.2);
}
.dark-theme .header-slider-search .search-input:focus-within { border-color: rgba(14, 165, 233, 0.55); }
.dark-theme .header-slider-search .line-form-input { color: #e2e8f0 !important; }
.dark-theme .header-slider-search .scale-placeholder { color: rgba(226, 232, 240, 0.45) !important; }

/* ===== 移动端 ===== */
@media (max-width: 640px) {
  .header-slider-search { width: 94%; }
  .header-slider-search .line-form-input,
  .header-slider-search .scale-placeholder { font-size: 15px !important; padding-left: 8px; }
  .header-slider-search .abs-right button { min-width: 58px; height: 36px; padding: 0 14px; font-size: 14px; }
}

/* ===== 浅色模式（默认）hero 搜索框适配：白胶囊 + 品牌绿 CTA ===== */
.white-theme .header-slider-search .search-input {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(15, 23, 42, .12);
  box-shadow: 0 4px 24px rgba(15, 23, 42, .10);
}
.white-theme .header-slider-search .search-input:focus-within {
  border-color: rgba(47, 161, 79, .55);
  box-shadow: 0 4px 28px rgba(15, 23, 42, .14), 0 0 0 3px rgba(47, 161, 79, .12);
}
.white-theme .header-slider-search .line-form-input { color: #1e293b !important; caret-color: #2fa14f; }
.white-theme .header-slider-search .scale-placeholder { color: rgba(30, 41, 59, .45) !important; }
.white-theme .header-slider-search .abs-right button {
  background: linear-gradient(135deg, #2fa14f, #1f7d3c) !important;
  box-shadow: 0 2px 10px rgba(47, 161, 79, .35);
}
.white-theme .header-slider-search .abs-right button:hover { opacity: .92; }
