/* ===== 搜索页样式 ===== */

.search-hero {
    width: 100%;
    padding-top: 180px;
    padding-bottom: 60px;
    text-align: center;
}
.search-hero-title {
    font-size: 40px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 2px;
}
.search-hero-desc {
    font-size: 14px;
    color: rgba(0,0,0,0.48);
    margin-top: 16px;
}
.search-hero-input-wrap {
    display: flex;
    max-width: 640px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 50px;
    box-shadow: 0 8px 48px #3452ff00;
    overflow: hidden;
    transition: all 0.3s;
    -moz-transition: all 0.3s;
    -webkit-transition: all 0.3s;
    border: 3px solid #3452ff;
}
.search-hero-input-wrap:hover {
    box-shadow: 0 8px 48px #3452ff30;
}
.search-hero-input {
    flex: 1;
    border: none !important;
    outline: none;
    padding: 16px 24px;
    font-size: 16px;
    color: #1a1a2e;
    background: transparent;
}
.search-hero-input::placeholder {
    color: #aaa;
}
.search-hero-btn {
    border: none;
    background: #3452ff;
    color: #fff;
    padding: 0 24px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
}
.search-hero-btn:hover {
    background: #2639cc;
}

/* Tab */
.search-tabs {
    width: 100%;
    background: #fff;
    position: relative;
    z-index: 50;
}
.search-tabs-list {
    display: flex;
    gap: 0;
    overflow-x: auto;
}
.search-tab {
    border: none;
    background: none;
    padding: 14px 24px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}
.search-tab:hover {
    color: #3452ff;
}
.search-tab.active {
    color: #3452ff;
    border-bottom-color: #3452ff;
    font-weight: 600;
}

/* 结果区 */
.search-results {
    width: 100%;
    min-height: 400px;
    padding: 40px 0 100px;
    background: #f3f4f9;
}
.search-results-header {
    margin-bottom: 24px;
    font-size: 14px;
    color: #999;
}
.search-results-header strong {
    color: #3452ff;
}
.search-loading {
    text-align: center;
    padding: 60px 0;
    color: #999;
    font-size: 14px;
}

/* 结果卡片 */
.search-card {
    display: flex;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 16px;
    text-decoration: none !important;
    color: inherit;
    transition: box-shadow 0.2s, transform 0.2s;
}
.search-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.search-card-body {
    flex: 1;
    min-width: 0;
}
.search-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2329;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-card-desc {
    font-size: 14px;
    color: #646a73;
    line-height: 1.6;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}
.search-card-cat {
    font-size: 12px;
    color: #3452ff;
    background: #eef1ff;
    padding: 2px 12px;
    border-radius: 20px;
}
.search-card-date {
    font-size: 12px;
    color: #999;
}
.search-card-img {
    width: 160px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-left: 24px;
    flex-shrink: 0;
    background: #f0f0f0;
}
.search-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 空态 */
.search-empty {
    text-align: center;
    padding: 80px 0;
}
.search-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}
.search-empty-title {
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}
.search-empty-desc {
    font-size: 14px;
    color: #999;
}

/* 分页 */
.search-pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination {
    display: inline-flex;
    gap: 8px;
}
.page-btn {
    border: 1px solid #dde0e5;
    background: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    transition: all 0.2s;
}
.page-btn:hover:not(:disabled) {
    border-color: #3452ff;
    color: #3452ff;
}
.page-btn.active {
    background: #3452ff;
    color: #fff;
    border-color: #3452ff;
}
.page-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* 响应式 */
@media (max-width: 768px) {
    .search-hero { padding-top: 140px; padding-bottom: 40px; }
    .search-hero-title { font-size: 28px; }
    .search-hero-input-wrap { max-width: 90%; }
    .search-tab { padding: 12px 16px; font-size: 13px; }
    .search-card { flex-direction: column-reverse; padding: 20px; }
    .search-card-img { width: 100%; height: 180px; margin-left: 0; margin-bottom: 16px; }
    .search-card-title { font-size: 16px; }
}