/* ====================================================
   🔍 搜索結果頁專用樣式
   ==================================================== */
.search-result-header {
  padding: 14px 12px 10px;
  font-size: 14px;
  color: #999;
  border-bottom: 1px solid #f0f0f0;
}
.search-result-header strong {
  color: #3097fd;
}

/* 搜索結果列表 */
.search-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.search-item {
  display: flex;
  gap: 12px;
  padding: 12px 10px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  margin-bottom: 8px;
  border-radius: 0;
  -webkit-tap-highlight-color: transparent;
}
.search-item:active {
  background: #f5f7fa;
}

/* 封面圖 */
.search-item-cover {
  flex-shrink: 0;
  width: 110px;
  height: 147px;
  border-radius: 6px;
  overflow: hidden;
  background: #f0f0f0;
}
.search-item-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 右側文字 */
.search-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.search-item-title {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-item-cat {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11px;
  color: #3097fd;
  background: #e8f2ff;
  border-radius: 10px;
  align-self: flex-start;
}
.search-item-meta {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
}
.search-item-tags {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 加載狀態 */
.search-loading {
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #999;
  display: none;
}
.search-end {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #ccc;
  display: none;
}

/* 無結果 */
.search-no-data {
  text-align: center;
  padding: 60px 20px;
  font-size: 15px;
  color: #999;
}

/* ====================================================
   💻 平板 (768px+)
   ==================================================== */
@media screen and (min-width: 768px) {
  html { font-size: 16px !important; }
  body { background: #eef0f4 !important; }

  .wrapper {
    max-width: 960px !important;
    margin: 0 auto !important;
    background: #f5f5f5 !important;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
    min-height: 100vh;
    overflow-x: hidden !important;
  }

  .search-result-header {
    padding: 16px 16px 12px;
    font-size: 15px;
  }

  .search-item {
    gap: 16px;
    padding: 16px;
    margin: 0 16px 10px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
  }
  .search-item:first-child {
    margin-top: 10px;
  }
  .search-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }
  .search-item-cover {
    width: 140px;
    height: 187px;
    border-radius: 8px;
  }
  .search-item-title {
    font-size: 16px;
  }
  .search-item-cat {
    font-size: 12px;
    padding: 3px 10px;
  }
  .search-item-meta {
    font-size: 13px;
  }
  .search-item-tags {
    font-size: 13px;
  }
}

/* ====================================================
   💻 小桌面 (1024px+)
   ==================================================== */
@media screen and (min-width: 1024px) {
  .wrapper { max-width: 1200px !important; }

  .search-item-cover {
    width: 160px;
    height: 213px;
  }
  .search-item-title {
    font-size: 17px;
  }
}

/* ====================================================
   💻 大桌面 (1440px+)
   ==================================================== */
@media screen and (min-width: 1440px) {
  .wrapper { max-width: 1400px !important; }
}