/* ===== page search (compiled from Vue SCSS) ===== */
@charset "UTF-8";
.search-page {
  min-height: 80vh;
  min-height: 80dvh;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

/* 核心大号搜索框 */
.huge-search-input {
  padding: 16px 120px 16px 24px; /* 为右侧搜索按钮和清空按钮留出空间*/
  font-size: 18px;
  border: 2px solid #d9e5e0;
  border-radius: 40px;
  color: #1e2b27;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.huge-search-input:focus {
  border-color: #0b6b5a;
  box-shadow: 0 0 0 4px rgba(11, 107, 90, 0.1);
}

.clear-btn {
  position: absolute;
  top: 50%;
  right: 76px;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
}
.clear-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.search-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  width: 60px;
  border: none;
  border-radius: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 联想面板 */
.suggestion-panel {
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  box-shadow: 0 12px 24px rgba(11, 107, 90, 0.12);
  border-radius: 8px;
  overflow: hidden;
  padding: 0; /* 去除默认 card padding*/
}

.suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.suggestion-list .suggestion-item:last-child {
  border-bottom: none;
}

/* 快捷入口列表 */
.styled-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.styled-list li {
  position: relative;
  padding-left: 16px;
}
.styled-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: #0b6b5a;
  font-weight: bold;
}

/* Reverted from utilities.scss */
.py-8 {
  padding-top: 48px;
  padding-bottom: 80px;
}

.mb-8 {
  margin-bottom: 80px;
}

.mb-6 {
  margin-bottom: 48px;
}

.mb-4 {
  margin-bottom: 24px;
}

.text-center {
  text-align: center;
}

.text-secondary {
  color: #66736e;
}

.text-main {
  color: #1e2b27;
}

.text-sm {
  font-size: 14px;
}

.line-height-lg {
  line-height: 1.8;
}

.max-w-1000 {
  max-width: 1000px;
  margin: 0 auto;
}

.border-bottom {
  border-bottom: 1px solid #d9e5e0;
}

.cursor-pointer {
  cursor: pointer;
}

.hover-primary {
  transition: color 0.3s;
}
.hover-primary:hover {
  color: #0b6b5a;
}

.mb-2 {
  margin-bottom: 12px;
}

.mr-2 {
  margin-right: 12px;
}

.text-primary {
  color: #0b6b5a;
}

.max-w-600 {
  max-width: 600px;
}

.d-flex {
  display: flex;
}

.align-items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.py-10 {
  padding-top: 80px;
  padding-bottom: 80px;
}

.p-4 {
  padding: 24px;
}

.px-4 {
  padding-left: 24px;
  padding-right: 24px;
}

.py-3 {
  padding-top: 16px;
  padding-bottom: 16px;
}

.px-3 {
  padding-left: 16px;
  padding-right: 16px;
}

.py-1 {
  padding-top: 8px;
  padding-bottom: 8px;
}

.px-2 {
  padding-left: 12px;
  padding-right: 12px;
}

.pb-4 {
  padding-bottom: 24px;
}

.m-0 {
  margin: 0;
}

.mt-3 {
  margin-top: 16px;
}

.mr-3 {
  margin-right: 16px;
}

.text-left {
  text-align: left;
}

.text-white {
  color: #ffffff;
}

.text-xs {
  font-size: 12px;
}

.max-w-800 {
  max-width: 800px;
}

.opacity-50 {
  opacity: 0.5;
}

.bg-light {
  background-color: #f7faf9;
}

.bg-primary {
  background-color: #0b6b5a;
}

.bg-primary-light {
  background-color: #eaf6f2;
}

.border {
  border: 1px solid #d9e5e0;
}

.rounded {
  border-radius: 8px;
}

.position-relative {
  position: relative;
}

.position-absolute {
  position: absolute;
}

.justify-between {
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.gap-8 {
  gap: 80px;
}

.gap-3 {
  gap: 16px;
}

.w-full {
  width: 100%;
}

.transition-colors {
  transition: color 0.3s;
}

.hover-bg-light {
  transition: background-color 0.2s;
}
.hover-bg-light:hover {
  background-color: rgba(11, 107, 90, 0.05);
}

.hover-up {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-up:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(11, 107, 90, 0.08);
}

.interactive-btn {
  transition: transform 0.2s ease;
}
.interactive-btn:hover, .interactive-btn:focus {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}
.interactive-btn:active {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
  transform: scale(0.96) translateY(2px);
}

.no-hover-bg:hover, .no-hover-bg:focus {
  background-color: #0b6b5a !important;
  color: #ffffff !important;
  border-color: #0b6b5a !important;
}

.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  /* 移除固定高度，在移动端自适应*/
}

.gap-4 {
  gap: 24px;
}

.pt-8 {
  padding-top: 80px;
}

.px-6 {
  padding-left: 48px;
  padding-right: 48px;
}

/* Reverted responsive */
@media (max-width: 767px) {
  .line-clamp-2 {
    height: auto;
  }
}
@media (min-width: 768px) {
  .line-clamp-2 {
    height: 36px;
  }
}
@media (max-width: 767px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .huge-search-input {
    font-size: 16px;
    padding: 12px 90px 12px 20px; /* 调整移动端右侧 padding，避免文字超过清空按钮*/
  }
  .clear-btn {
    right: 56px; /* 调整移动端清空按钮的位置，适应缩小的 search-btn*/
  }
  .search-btn {
    width: 48px;
  }
}

/* 2026-09-05 12:44（北京）：新增搜索结果类型 Tab 与关键词高亮。 */
.search-type-tabs { display: flex; gap: 18px; overflow-x: auto; border-bottom: 1px solid var(--hesora-border); scrollbar-width: none; }
.search-type-tabs::-webkit-scrollbar { display: none; }
.search-type-tabs .tab-item { flex: 0 0 auto; padding: 10px 2px; border-bottom: 2px solid transparent; color: var(--hesora-text-secondary); }
.search-type-tabs .tab-item.is-active { color: var(--hesora-primary); border-bottom-color: var(--hesora-primary); font-weight: 600; }
.search-highlight { background: transparent; color: var(--hesora-primary); font-weight: 700; }

