/* ══ Search Results Page ══ */
.sr-page {
    background: var(--bg, #f8f9fb);
    min-height: 60vh;
    padding-bottom: 80px;
}

/* ── Search Header ── */
.sr-header {
    background: var(--bg2, #fff);
    border-bottom: 1px solid var(--border, rgba(0,0,0,.07));
    padding: 28px 0 0;
}
.sr-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px;
}
.sr-search-wrap {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}
.sr-input {
    flex: 1;
    padding: 11px 16px;
    font-size: 15px;
    border: 1.5px solid var(--border, rgba(0,0,0,.12));
    border-radius: 10px;
    background: var(--bg, #f8f9fb);
    color: var(--text, #1a1d2e);
    outline: none;
    font-family: inherit;
    transition: border-color .15s;
}
.sr-input:focus { border-color: var(--blue, #3b7ef6); }
.sr-btn {
    padding: 11px 24px;
    background: var(--blue, #3b7ef6);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    transition: background .15s;
}
.sr-btn:hover { background: #2563d4; }

.sr-summary {
    font-size: 13px;
    color: var(--text3, #9499b0);
    padding: 10px 0 0;
}
.sr-summary strong { color: var(--text, #1a1d2e); }

.sr-type-tabs {
    display: flex;
    gap: 0;
    margin-top: 16px;
    border-bottom: 1px solid var(--border, rgba(0,0,0,.07));
}
.sr-type-tab {
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text2, #5a5e72);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: all .15s;
    white-space: nowrap;
}
.sr-type-tab:hover { color: var(--blue, #3b7ef6); }
.sr-type-tab.active {
    color: var(--blue, #3b7ef6);
    border-bottom-color: var(--blue, #3b7ef6);
    font-weight: 700;
}
.sr-type-tab .sr-tab-count {
    display: inline-block;
    background: var(--bg3, #f0f2f5);
    color: var(--text3, #9499b0);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 4px;
}
.sr-type-tab.active .sr-tab-count {
    background: rgba(59,126,246,.1);
    color: var(--blue, #3b7ef6);
}

/* ── Results Body ── */
.sr-body { padding: 28px 0; }
.sr-section { margin-bottom: 32px; }
.sr-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text3, #9499b0);
    margin-bottom: 12px;
}
.sr-section-dot {
    width: 3px; height: 14px;
    background: var(--blue, #3b7ef6);
    border-radius: 2px;
}

/* ── Tool Result Cards ── */
.sr-tool-list { display: flex; flex-direction: column; gap: 8px; }
.sr-tool-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all .15s;
    position: relative;
}
.sr-tool-card:hover {
    border-color: var(--blue, #3b7ef6);
    box-shadow: 0 4px 16px rgba(59,126,246,.08);
    transform: translateY(-1px);
}
.sr-tool-avatar {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 800;
    flex-shrink: 0;
}
.sr-tool-info { flex: 1; min-width: 0; }
.sr-tool-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin-bottom: 3px;
}
.sr-tool-name em {
    color: var(--blue, #3b7ef6);
    font-style: normal;
    background: rgba(59,126,246,.08);
    border-radius: 3px;
    padding: 0 2px;
}
.sr-tool-desc {
    font-size: 13px;
    color: var(--text2, #5a5e72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sr-tool-tags {
    display: flex;
    gap: 5px;
    margin-top: 5px;
    flex-wrap: wrap;
}
.sr-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
}
.sr-tag-cat  { background: rgba(124,58,237,.08); color: #7c3aed; }
.sr-tag-free { background: rgba(16,185,129,.08);  color: #10b981; }
.sr-tag-paid { background: rgba(217,119,6,.08);   color: #d97706; }
.sr-tag-type { background: var(--bg3, #f0f2f5);   color: var(--text3, #9499b0); }
.sr-tool-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.sr-tool-score {
    font-size: 20px;
    font-weight: 900;
    color: var(--blue, #3b7ef6);
    line-height: 1;
}
.sr-tool-score-label { font-size: 10px; color: var(--text3, #9499b0); }
.sr-tool-trend {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 6px;
}
.sr-trend-up   { background: rgba(16,185,129,.1);  color: #10b981; }
.sr-trend-down { background: rgba(239,68,68,.1);   color: #ef4444; }
.sr-trend-same { background: var(--bg3, #f0f2f5);  color: var(--text3, #9499b0); }

/* ── Ranking Category Cards ── */
.sr-ranking-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.sr-ranking-card {
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    transition: all .15s;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.sr-ranking-card:hover {
    border-color: var(--blue, #3b7ef6);
    box-shadow: 0 4px 12px rgba(59,126,246,.08);
}
.sr-ranking-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.sr-ranking-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin-bottom: 3px;
}
.sr-ranking-sub { font-size: 12px; color: var(--text3, #9499b0); }
.sr-ranking-top { font-size: 11px; color: var(--text2, #5a5e72); margin-top: 4px; }

/* ── Page Result Cards ── */
.sr-page-list { display: flex; flex-direction: column; gap: 8px; }
.sr-page-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--bg2, #fff);
    border: 1px solid var(--border, rgba(0,0,0,.07));
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: inherit;
    transition: all .15s;
}
.sr-page-card:hover {
    border-color: var(--blue, #3b7ef6);
    box-shadow: 0 4px 12px rgba(59,126,246,.08);
}
.sr-page-icon {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: rgba(59,126,246,.08);
    color: var(--blue, #3b7ef6);
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.sr-page-info { flex: 1; }
.sr-page-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text, #1a1d2e);
    margin-bottom: 3px;
}
.sr-page-title em { color: var(--blue, #3b7ef6); font-style: normal; }
.sr-page-desc { font-size: 12px; color: var(--text2, #5a5e72); }
.sr-page-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: var(--bg3, #f0f2f5);
    color: var(--text3, #9499b0);
    flex-shrink: 0;
}

/* ── Empty State ── */
.sr-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text3, #9499b0);
}
.sr-empty-icon  { font-size: 48px; margin-bottom: 16px; }
.sr-empty-title { font-size: 18px; font-weight: 700; color: var(--text2, #5a5e72); margin-bottom: 8px; }
.sr-empty-desc  { font-size: 14px; margin-bottom: 24px; }
.sr-empty-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.sr-empty-link {
    padding: 8px 18px;
    border: 1px solid var(--border, rgba(0,0,0,.1));
    border-radius: 8px;
    font-size: 13px;
    color: var(--text2, #5a5e72);
    text-decoration: none;
    transition: all .15s;
}
.sr-empty-link:hover { border-color: var(--blue, #3b7ef6); color: var(--blue, #3b7ef6); }

@media (max-width: 640px) {
    .sr-inner { padding: 0 16px; }
    .sr-tool-right { display: none; }
    .sr-ranking-grid { grid-template-columns: 1fr 1fr; }
    .sr-type-tab { padding: 8px 12px; font-size: 12px; }
}
