/* -- Search Page -- */
.search-page {
  padding: 40px 0 72px;
}

.search-hero {
  margin-bottom: 48px;
}

.search-hero h1 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
}

.search-keyword {
  color: var(--primary);
}

.search-summary {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* -- Company Results -- */
.company-directory {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 0;
}

.company-line {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #dce4de;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.company-line:hover {
  background: rgba(15, 118, 110, 0.04);
}

.company-line:nth-last-child(-n + 3) {
  border-bottom: none;
}


.section-head {
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: 1.6rem;
  font-weight: 600;
}

.section-head p {
  margin-top: 4px;
  color: var(--muted);
}


/* -- Section divider -- */
.search-section {
  padding-bottom: 30px;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 30px;
}

.search-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

/* 特殊处理：company section下方的分割线上方距离设为18px */
.search-section--company {
  padding-bottom: 18px;
}


/* search-specific card hover */
.search-section .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.search-section .card:hover {
  transform: scale(1.02);
  box-shadow: 0 14px 28px rgba(20, 40, 45, 0.12);
}

/* -- Empty state -- */
.search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

.search-empty i {
  font-size: 2.5rem;
  margin-bottom: 16px;
  opacity: 0.35;
}

.search-empty p {
  font-size: 1.05rem;
}

.search-empty-hint {
  margin-top: 8px;
  font-size: 0.92rem;
}

.search-empty-hint a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.search-empty-hint a:hover {
  text-decoration: underline;
}

/* -- Responsive -- */
@media (max-width: 980px) {
  .company-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

  .company-line {
    border-bottom: 1px solid #dce4de;
  }

  .company-line:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .search-page {
    padding: 24px 0 48px;
  }

  .section-head h2 {
    font-size: 1.25rem;
  }

  .company-directory {
    grid-template-columns: 1fr;
    column-gap: 0;
  }

  .company-line {
    grid-template-columns: 44px 1fr;
    gap: 10px;
    min-height: 68px;
    padding: 7px 0;
    border-bottom: 1px solid #dce4de;
  }

  .company-line:last-child {
    border-bottom: none;
  }

}


.company-directory,
.series-showcase,
.card-grid.card-grid--three {
  margin-top: 12px;
}

.series-showcase {
  padding: 0;
}

.card-grid.card-grid--three {
  padding: 0;
}

.section-head--accent h2,
.section-head--accent p {
  line-height: 1;
}

.section-head--accent::before {
  top: 0;
  bottom: 0;
}
