.zr-search-app {
  --zr-search-page-bg: linear-gradient(180deg, #eef2f8 0%, #f7f9fc 100%);
  --zr-search-card-bg: #ffffff;
  --zr-search-card-border: #e5e7eb;
  --zr-search-text: #111827;
  --zr-search-subtle: #667085;
  --zr-search-primary: #2f6eb5;
  --zr-search-primary-strong: #285d96;
  --zr-search-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  display: block;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--zr-search-text);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  isolation: isolate;
}

.zr-search-app,
.zr-search-app * {
  box-sizing: border-box;
}

.zr-search-app :where(h1, h2, h3, p) {
  margin: 0;
  color: inherit;
}

.zr-search-app :where(a) {
  color: inherit;
  text-decoration: none;
}

.zr-search-app :where(button, input, textarea) {
  font: inherit;
  color: inherit;
}

.zr-search-page {
  margin: 0;
  padding: 36px 0 56px;
  background: var(--zr-search-page-bg);
  color: var(--zr-search-text);
}

.zr-search-page a {
  color: inherit;
  text-decoration: none;
}

.zr-search-shell {
  width: 1200px;
  max-width: calc(100% - 32px);
  margin: 0 auto;
}

.zr-search-hero {
  padding: 42px 40px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(47, 110, 181, 0.16), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.98));
  box-shadow: var(--zr-search-shadow);
}

.zr-search-eyebrow {
  margin: 0 0 10px;
  color: var(--zr-search-primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.zr-search-title {
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
}

.zr-search-description {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--zr-search-subtle);
  font-size: 16px;
  line-height: 1.8;
}

.zr-search-form {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 28px;
}

.zr-search-field {
  display: block;
  flex: 1 1 auto;
}

.zr-search-field-label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.zr-search-input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid #d8e1ec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--zr-search-text);
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.zr-search-input:focus {
  border-color: rgba(47, 110, 181, 0.7);
  box-shadow: 0 0 0 4px rgba(47, 110, 181, 0.12);
}

.zr-search-submit {
  flex: 0 0 auto;
  min-width: 148px;
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #2f6eb5, #1f5f9f);
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.zr-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(31, 95, 159, 0.24);
}

.zr-search-results-section {
  margin-top: 26px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--zr-search-shadow);
  backdrop-filter: blur(14px);
}

.zr-search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.zr-search-results-head h2 {
  margin: 0;
  font-size: 24px;
}

.zr-search-summary {
  margin: 8px 0 0;
  color: var(--zr-search-subtle);
  font-size: 14px;
  line-height: 1.7;
}

.zr-search-loading[hidden],
.zr-search-state[hidden],
.zr-search-results[hidden],
.zr-search-pagination[hidden] {
  display: none !important;
}

.zr-search-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 240px;
}

.zr-search-loading-panel,
.zr-search-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--zr-search-card-border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--zr-search-subtle);
  text-align: center;
}

.zr-search-state-error {
  color: #b42318;
  background: rgba(254, 242, 242, 0.96);
  border-color: #fecaca;
}

.zr-search-loading-spinner {
  width: 50px;
  height: 50px;
  animation: zr-search-spin 1s linear infinite;
}

.zr-search-loading-path {
  stroke: var(--zr-search-primary);
  stroke-linecap: round;
  stroke-width: 4;
  stroke-dasharray: 120;
  stroke-dashoffset: 70;
}

.zr-search-loading-text {
  margin: 0;
  color: var(--zr-search-subtle);
  font-size: 15px;
}

.zr-search-results {
  display: grid;
  gap: 18px;
}

.zr-search-card {
  border-radius: 22px;
  background: var(--zr-search-card-bg);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.zr-search-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
}

.zr-search-card.is-no-excerpt .zr-search-card-link {
  min-height: 176px;
}

.zr-search-card.is-no-excerpt .zr-search-card-body {
  justify-content: center;
}

.zr-search-card-link {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 220px;
}

.zr-search-card-media {
  position: relative;
  min-height: 100%;
  background: #eef2f7;
  overflow: hidden;
}

.zr-search-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zr-search-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 26px;
}

.zr-search-card-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.25;
}

.zr-search-card-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  color: var(--zr-search-subtle);
  font-size: 13px;
}

.zr-search-card-meta span {
  display: inline-flex;
  align-items: center;
}

.zr-search-card-meta span + span::before {
  content: "";
  width: 1px;
  height: 12px;
  margin-right: 14px;
  background: #d0d8e2;
}

.zr-search-card-excerpt {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.9;
}

.zr-search-card-action {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--zr-search-primary);
  font-size: 14px;
  font-weight: 700;
}

.zr-search-card-action::after {
  content: ">";
  font-size: 14px;
}

.zr-search-card.is-no-excerpt .zr-search-card-action {
  margin-top: 2px;
}

.zr-search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.zr-search-page-button,
.zr-search-page-gap {
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
}

.zr-search-page-button {
  border: 1px solid #d8e1ec;
  background: #ffffff;
  color: #414141;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.2s ease;
}

.zr-search-page-button:hover:not(:disabled) {
  border-color: var(--zr-search-primary);
  color: var(--zr-search-primary);
}

.zr-search-page-button.is-current {
  border-color: var(--zr-search-primary);
  background: var(--zr-search-primary);
  color: #ffffff;
}

.zr-search-page-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.zr-search-page-gap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: #8a8a8a;
}

@keyframes zr-search-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .zr-search-hero {
    padding: 28px 22px;
  }

  .zr-search-title {
    font-size: 34px;
  }

  .zr-search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .zr-search-submit {
    width: 100%;
  }

  .zr-search-results-section {
    padding: 20px;
  }

  .zr-search-card-link {
    grid-template-columns: 1fr;
  }

  .zr-search-card-media {
    height: 240px;
  }

  .zr-search-card-body {
    padding: 20px;
  }

  .zr-search-card-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .zr-search-page {
    padding: 22px 0 40px;
  }

  .zr-search-shell {
    max-width: calc(100% - 20px);
  }

  .zr-search-title {
    font-size: 29px;
  }

  .zr-search-description {
    font-size: 14px;
  }

  .zr-search-results-section {
    margin-top: 18px;
    padding: 16px;
    border-radius: 20px;
  }

  .zr-search-card-media {
    height: 210px;
  }

  .zr-search-card-title {
    font-size: 21px;
  }

  .zr-search-card-excerpt {
    font-size: 14px;
  }
}
