/* 首页搜索横幅 — 站点风格，居中对齐 */
/* 顶栏/底栏/主按钮等 UI 统一见 xix-ui.css */

/* 撤掉页头原搜索 */
.site-header .toggle-search,
.site-header .navbar-search {
  display: none !important;
}

.home-widget.home-search-box,
.widget.home-search-box {
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

/* 与站点主色一致：参考 --ri-primary / --xix-primary */
.xix-search-hero {
  --xix-hero-from: #1e88ff;
  --xix-hero-to: #19d3c5;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--xix-hero-from) 0%, #3d9cff 48%, var(--xix-hero-to) 100%);
  min-height: 248px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 60px;
  box-sizing: border-box;
  /* 与下方浅灰底自然过渡，减少硬边白块感 */
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

.xix-search-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 40% 60% at 15% 30%, rgba(255, 255, 255, 0.14), transparent 60%),
    radial-gradient(ellipse 35% 50% at 85% 70%, rgba(255, 255, 255, 0.1), transparent 55%);
}

.xix-search-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
}

.xix-search-hero__main {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xix-search-hero__title {
  margin: 0 0 14px;
  width: 100%;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgba(0, 40, 80, 0.12);
}

.xix-search-hero__desc {
  margin: 0 0 28px;
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(0.875rem, 1.8vw, 1rem);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.04em;
}

.xix-search-hero__form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  height: 54px;
  padding: 0 8px 0 24px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 60, 120, 0.15);
  box-sizing: border-box;
  transition: box-shadow 0.2s;
}

.xix-search-hero__form:focus-within {
  box-shadow: 0 8px 24px rgba(15, 60, 120, 0.2);
}

.xix-search-hero__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.9375rem;
  color: #24364b;
  line-height: 1.4;
  padding: 0;
  margin: 0;
  text-align: left;
  -webkit-appearance: none;
  appearance: none;
}

.xix-search-hero__input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.xix-search-hero__btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xix-hero-from), var(--xix-hero-to));
  color: #fff;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.15s, transform 0.15s;
  line-height: 1;
}

.xix-search-hero__btn:hover {
  opacity: 0.92;
  color: #fff;
}

.xix-search-hero__btn:active {
  transform: scale(0.96);
}

.xix-search-hero__hots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  width: 100%;
  max-width: 860px;
  margin: 22px auto 0;
  padding: 0;
  box-sizing: border-box;
}

.xix-search-hero__hots a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-decoration: none;
  padding: 0;
  margin: 0;
  border: 0;
  white-space: nowrap;
  transition: color 0.15s, opacity 0.15s;
}

.xix-search-hero__hots a:hover {
  color: #fff;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 575.98px) {
  .xix-search-hero {
    min-height: auto;
    padding: 36px 16px 40px;
  }

  .xix-search-hero__title {
    font-size: 1.35rem;
    margin-bottom: 10px;
  }

  .xix-search-hero__desc {
    font-size: 0.875rem;
    margin-bottom: 20px;
  }

  .xix-search-hero__form {
    height: 48px;
    padding: 0 5px 0 16px;
    max-width: 100%;
  }

  .xix-search-hero__input {
    font-size: 0.875rem;
  }

  .xix-search-hero__btn {
    width: 38px;
    height: 38px;
    font-size: 0.9rem;
  }

  .xix-search-hero__hots {
    max-width: 100%;
    margin-top: 16px;
    gap: 8px 14px;
  }

  .xix-search-hero__hots a {
    font-size: 0.75rem;
  }
}

@media (min-width: 576px) and (max-width: 991.98px) {
  .xix-search-hero {
    padding: 44px 20px 48px;
  }

  .xix-search-hero__form,
  .xix-search-hero__hots {
    max-width: 100%;
  }
}

