/* ========== Search Page – 天眼查风格 (无圆角/无阴影) ========== */

/* --- Search Bar --- */
.search-bar {
    background: #fff;
    padding: 20px 0 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e8e8e8;
}
.search-bar-inner {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    border: 2px solid var(--color-primary);
}
.search-input {
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: none;
    font-size: 14px;
    outline: none;
    background: #fff;
}
.search-btn {
    height: 40px;
    padding: 0 28px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background .12s;
    white-space: nowrap;
}
.search-btn:hover {
    background: var(--color-primary-hover);
}

/* --- Super Admin Quick Create Bar --- */
.sa-quick-create-bar {
    max-width: 600px;
    margin: 8px auto 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}
.sa-quick-create-bar strong {
    color: var(--color-primary);
}
.sa-quick-create-btn {
    padding: 4px 14px;
    background: #ff6a00;
    color: #fff;
    border: none;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .12s;
}
.sa-quick-create-btn:hover {
    background: #e55d00;
}
.sa-empty-create {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #e8e8e8;
}
.sa-empty-hint {
    font-size: 12px;
    color: #999;
    margin: 0 0 8px;
}

/* --- Layout --- */
.search-layout {
    display: flex;
    gap: 12px;
    max-width: var(--page-max-width);
    margin: 0 auto;
    padding-bottom: 40px;
}

/* --- Sidebar --- */
.search-sidebar {
    width: 200px;
    flex-shrink: 0;
}
.filter-group {
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 12px;
    margin-bottom: -1px;
}
.filter-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}
.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.filter-list li {
    margin-bottom: 1px;
}
.filter-item {
    display: block;
    padding: 5px 8px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: all .1s;
}
.filter-item:hover {
    background: #fafafa;
    color: #333;
}
.filter-item.active {
    background: #e8f3ff;
    color: var(--color-primary);
    font-weight: 500;
}
.filter-count {
    float: right;
    font-size: 11px;
    color: #999;
    font-weight: 400;
    min-width: 16px;
    text-align: right;
}
.filter-item.active .filter-count {
    color: var(--color-primary);
    opacity: .7;
}

/* Claim status tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-tag {
    display: inline-block;
    padding: 3px 10px;
    border: 1px solid #e8e8e8;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: all .1s;
}
.filter-tag:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.filter-tag.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* --- Results Header --- */
.search-results {
    flex: 1;
    min-width: 0;
}
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #e8e8e8;
    padding: 10px 14px;
    margin-bottom: -1px;
}
.results-count {
    font-size: 13px;
    color: #666;
}
.results-count strong {
    color: var(--color-primary);
}
.results-sort {
    display: flex;
    gap: 2px;
}
.sort-item {
    padding: 3px 8px;
    font-size: 13px;
    color: #999;
    text-decoration: none;
    transition: all .1s;
}
.sort-item:hover {
    color: #333;
}
.sort-item.active {
    color: var(--color-primary);
    font-weight: 500;
}

/* --- Result Cards --- */
.result-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-top: none;
    padding: 14px 16px;
    display: flex;
    gap: 12px;
    transition: background .1s;
}
.result-card:hover {
    background: #fafafa;
}
.result-logo {
    width: 44px;
    height: 44px;
    background: #e8f3ff;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}
.result-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.result-body {
    flex: 1;
    min-width: 0;
}
.result-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.result-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}
.result-name:hover {
    color: var(--color-primary);
}
.claim-badge {
    display: inline-block;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 400;
}
.claim-badge.claimed {
    border: 1px solid #00b578;
    color: #00b578;
}
.claim-badge.unclaimed {
    border: 1px solid #ff8800;
    color: #d97706;
}
.result-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.result-desc .highlight {
    color: var(--color-primary);
    font-weight: 500;
}
.result-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.result-tag {
    display: inline-block;
    padding: 1px 6px;
    background: #f5f5f5;
    font-size: 12px;
    color: #666;
    border: 1px solid #e8e8e8;
}
.btn-claim {
    padding: 3px 12px;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    transition: all .1s;
}
.btn-claim:hover {
    background: var(--color-primary);
    color: #fff;
}

/* --- Empty State --- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #e8e8e8;
}
.empty-icon { margin-bottom: 10px; }
.empty-text { font-size: 16px; font-weight: 600; color: #333; margin: 0 0 4px; }
.empty-sub { font-size: 14px; color: #999; margin: 0 0 16px; }

/* --- Pagination --- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 16px 0;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border: 1px solid #e8e8e8;
    font-size: 13px;
    color: #666;
    text-decoration: none;
}
.pagination a:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}
.pagination .active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.pagination .disabled {
    color: #ccc;
    pointer-events: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .search-bar { padding: 16px 0 12px; }
    .search-layout { flex-direction: column; }
    .search-sidebar { width: 100%; display: flex; flex-direction: row; gap: 0; overflow-x: auto; padding-bottom: 8px; }
    .filter-group { flex-shrink: 0; min-width: 160px; margin-bottom: 0; margin-right: -1px; }
    .results-header { flex-direction: column; gap: 6px; align-items: flex-start; }
    .result-card { flex-direction: column; padding: 12px; }
    .result-logo { width: 36px; height: 36px; font-size: 14px; }
    .result-name { font-size: 14px; }
    .result-desc { font-size: 12px; }
    .result-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
    .search-sidebar { flex-direction: column; }
    .filter-group { min-width: auto; width: 100%; margin-right: 0; margin-bottom: -1px; }
    .result-card { padding: 10px; }
}
