:root {
  --search-bg: #f6f8ff;
  --search-card: #ffffff;
  --search-primary: #2a6df5;
  --search-primary-dark: #1f55c7;
  --search-text: #0f172a;
  --search-muted: #6b7280;
  --search-border: #dbe4f3;
  --search-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

body.search-page {
  margin: 0;
  font-family: "Manrope", "Microsoft YaHei", sans-serif;
  background: #ffffff;
  color: var(--search-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.search-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.search-shell::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 18%, rgba(42, 109, 245, 0.10) 0%, rgba(42, 109, 245, 0.035) 28%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
  z-index: -2;
}

.search-hero {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px clamp(20px, 4vw, 48px) 20px;
  position: relative;
}

.search-card {
  width: min(980px, 100%);
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  border: none;
  text-align: center;
}

.search-logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(42, 109, 245, 0.25) 0%, rgba(42, 109, 245, 0.10) 100%);
  box-shadow: 0 18px 44px rgba(42, 109, 245, 0.18);
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
}

.search-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.search-title {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 800;
  margin: 0;
  color: #1f4fd0;
  letter-spacing: 0.2px;
}

.search-desc {
  margin: 10px auto 0;
  max-width: 620px;
  font-size: 14px;
  color: #7b8aa6;
  line-height: 1.6;
}

.search-bar {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.search-bar .search-form {
  position: relative;
  width: min(560px, 100%);
  height: 58px;
  border-radius: 999px;
  border: 1px solid rgba(30, 64, 175, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
  padding: 8px 10px;
  transition: all .2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar .search-form:focus-within {
  border-color: rgba(42, 109, 245, 0.42);
  box-shadow: 0 20px 56px rgba(42, 109, 245, 0.16);
}

.search-bar .search-form .word {
  width: calc(100% - 118px);
  height: 42px;
  margin-left: 16px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #0f172a;
}

.search-bar .search-form .word::placeholder {
  color: rgba(100, 116, 139, 0.85);
}

.search-bar .search-form .btn-submit {
  position: absolute;
  top: 7px;
  right: 8px;
  height: 44px;
  width: 92px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f6ef6 0%, #1f56d1 100%);
  border: 1px solid rgba(31, 86, 209, 0.6);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.search-bar .search-form .btn-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.search-main {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) 60px;
}

.search-alert {
  margin-bottom: 18px;
}

.search-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(219, 228, 243, 0.9);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.05);
}

.search-panel .btn {
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  border-color: rgba(219, 228, 243, 0.9);
  background: rgba(248, 250, 252, 0.9);
}

.search-panel .btn:focus,
.search-panel .btn:active {
  outline: none;
  box-shadow: none;
}

.search-panel .btn-group.open .dropdown-toggle {
  box-shadow: none;
  background: rgba(42, 109, 245, 0.12);
  color: var(--search-primary-dark);
}

.search-panel__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-panel__right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--search-muted);
  font-size: 13px;
}

.search-count strong {
  color: var(--search-primary-dark);
}

.search-tag {
  padding: 4px 10px;
  border-radius: 999px;
}

.search-results {
  margin-top: 20px;
}

.search-results .search-list {
  margin-top: 12px;
}

.search-results .item {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(219, 228, 243, 0.8);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
  padding: 12px 16px;
}

.search-results .item .wrapper .info .btn-buy .glyphicon {
  margin-right: 6px;
  vertical-align: -1px;
}

.search-results .item + .item {
  margin-top: 14px;
}

@media (max-width: 768px) {
  .search-hero {
    padding: 28px 16px 12px;
  }

  .search-logo {
    width: 56px;
    height: 56px;
  }

  .search-logo img {
    width: 36px;
    height: 36px;
  }

  .search-title {
    font-size: 24px;
  }

  .search-desc {
    font-size: 13px;
    margin-top: 8px;
  }

  .search-bar {
    margin-top: 16px;
  }

  .search-bar .search-form {
    width: 100%;
    padding: 6px 10px;
    height: auto;
    border-radius: 20px;
  }

  .search-bar .search-form .word {
    margin-left: 0;
    font-size: 14px;
    flex: 1;
    width: auto;
  }

  .search-bar .search-form .btn-submit {
    position: static;
    width: auto;
    min-width: 76px;
    height: 38px;
    font-size: 14px;
    padding: 0 14px;
    box-shadow: none;
  }

  .search-main {
    padding: 0 16px 40px;
  }

  .search-panel {
    padding: 12px;
  }

  .search-panel__right {
    width: 100%;
    justify-content: space-between;
  }

  .search-results .item {
    padding: 12px;
  }

  .search-results .subnodes {
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.6;
    border-radius: 12px;
    word-break: break-word;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .search-results .item .mode,
  .search-results .item .wrapper,
  .search-results .item .share,
  .search-results .item .operation {
    float: none;
    width: 100%;
  }

  .search-results .item .wrapper {
    margin-right: 0;
  }

  .search-results .item .wrapper .info {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .search-results .item .wrapper .info .pea,
  .search-results .item .wrapper .info .btn-buy,
  .search-results .item .wrapper .info .size,
  .search-results .item .wrapper .info .transaction-refund-ratio,
  .search-results .item .wrapper .info .block {
    float: none;
    margin: 0;
    line-height: 20px;
    height: auto;
    padding: 8px 10px;
    border-radius: 12px;
    max-width: 100%;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .search-results .item .wrapper .info .pea {
    border-radius: 12px;
    border-right: 1px solid #e5e5e5;
  }

  .search-results .item .wrapper .info .pea,
  .search-results .item .wrapper .info .size,
  .search-results .item .wrapper .info .access-code {
    padding-left: 34px;
    background-position: 10px center;
    background-size: 16px 16px;
  }

  .search-results .item .wrapper .info .btn-buy {
    border-radius: 12px;
  }

  .search-results .item .wrapper .info .btn-buy .glyphicon {
    margin-right: 6px;
    font-size: 14px;
    vertical-align: -1px;
  }

  .search-results .item .wrapper .info .transaction-refund-ratio a {
    display: inline;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 520px) {
  .search-bar .search-form {
    height: auto;
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .search-bar .search-form .word {
    width: 100%;
    margin: 0;
    height: 40px;
  }

  .search-bar .search-form .btn-submit {
    position: static;
    width: 100%;
    height: 40px;
    margin-top: 0;
  }

  .search-results .subnodes {
    padding: 10px;
    font-size: 11px;
  }

  .search-results .subnodes p {
    margin: 4px 0;
  }

  .search-results .item .wrapper .info {
    gap: 6px;
  }

  .search-results .item .wrapper .info .pea,
  .search-results .item .wrapper .info .btn-buy,
  .search-results .item .wrapper .info .size,
  .search-results .item .wrapper .info .transaction-refund-ratio {
    width: 100%;
  }
}
