/* 全站搜索 */
.search-page { padding: 1.5rem; }
.search-form {
    display: flex;
    gap: 0.6rem;
    margin: 1rem 0 1.4rem;
}
.search-form input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #f0e6dc;
    border-radius: 11px;
    background: #fdfaf7;
    color: #5a4a42;
    font-family: inherit;
    font-size: 0.9rem;
}
.search-form input:focus {
    outline: none;
    border-color: #e67e22;
    background: #fff;
}
.search-form button {
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 11px;
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    cursor: pointer;
}
.search-tip { color: #a99a92; font-size: 0.86rem; }
.search-empty { padding: 2.5rem 0; text-align: center; color: #b3a59d; }
.search-section { margin-bottom: 1.3rem; }
.search-section h2 {
    margin: 0 0 0.55rem;
    color: #5a4a42;
    font-size: 0.95rem;
}
.search-section h2 span {
    display: inline-block;
    margin-left: 0.3rem;
    padding: 0.05rem 0.45rem;
    border-radius: 20px;
    background: #fff3e6;
    color: #d35400;
    font-size: 0.7rem;
}
.search-result {
    display: block;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    border-bottom: 1px dashed #f2e9e1;
    color: #5a4a42;
    text-decoration: none;
}
.search-result:hover { background: #fdf8f3; }
.search-result strong { display: block; font-size: 0.9rem; margin-bottom: 0.15rem; }
.search-result p { margin: 0 0 0.15rem; color: #8a7a72; font-size: 0.82rem; line-height: 1.65; }
.search-result time { color: #b3a59d; font-size: 0.72rem; }
.search-users { display: flex; flex-direction: column; gap: 0.45rem; }
.search-user-card {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.8rem;
    border-radius: 10px;
    border: 1px solid #f2e9e1;
    color: inherit;
    text-decoration: none;
}
.search-user-card:hover { border-color: #e67e22; }
.search-user-card img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.search-user-card strong { display: block; color: #5a4a42; font-size: 0.86rem; }
.search-user-card small { color: #a99a92; font-size: 0.74rem; }
body.dark-mode .search-form input { background: #1d1d1d; border-color: #3a3a3a; color: #eee; }
body.dark-mode .search-result, body.dark-mode .search-user-card { color: #ddd; border-color: #333; }
body.dark-mode .search-result:hover { background: #242424; }
body.dark-mode .search-section h2, body.dark-mode .search-user-card strong { color: #eee; }
