/* ========================================
   搜索页面独特样式
   ======================================== */

/* 搜索项样式 */
.search-item {
    border-bottom: 1px solid #eee;
    padding: 1.25rem 0;
}
.search-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
}
.search-item p {
    color: #555;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}
.search-item .meta {
    font-size: 0.8rem;
    color: #777;
}
.search-item .meta-item {
    margin-right: 1rem;
}
.search-item .meta-item i {
    margin-right: 0.3rem;
}

/* 搜索结果图片 */
.search-item-image {
    width: 120px;
    height: 90px;
    flex-shrink: 0;
}
.search-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 高亮样式 */
mark {
    background-color: #fff8c6;
    padding: 0.1rem 0.2rem;
}

/* 侧边栏样式 */
.sidebar-block {
    margin-bottom: 1.5rem;
}
.sidebar-title {
    font-size: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
}
.hot-search-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.hot-search-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: #f0f2f5;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: #333;
    text-decoration: none;
}
.hot-search-tags a:hover {
    background-color: #e0e3e7;
}
.recent-list {
    list-style: none;
    padding: 0;
}
.recent-list li {
    margin-bottom: 0.75rem;
}
.recent-list li a {
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 0.2rem;
}
.recent-list li span {
    color: #777;
    font-size: 0.8rem;
}
.recommend-img {
    display: block;
    margin-bottom: 1rem;
    text-decoration: none;
    color: #333;
}
.recommend-img img {
    width: 100%;
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

/* 分页样式 */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2rem 0;
}
.pagination a,
.pagination span {
    padding: 0.375rem 0.75rem;
    border-radius: 0.25rem;
    text-decoration: none;
}
.pagination a {
    color: #333;
    border: 1px solid #dee2e6;
}
.pagination a:hover {
    background-color: #f8f9fa;
}
.pagination .current {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}
.pagination .disabled {
    color: #6c757d;
    pointer-events: none;
}
.pagination-summary {
    color: #6c757d;
    font-size: 0.9rem;
    margin-left: auto;
}

/* 无结果样式 */
.no-result {
    padding: 2rem 0;
    text-align: center;
}
.no-result p:first-child {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}
.search-random-list {
    list-style: none;
    padding: 0;
    max-width: 400px;
    margin: 1rem auto 0;
}
.search-random-list li {
    margin-bottom: 0.5rem;
    text-align: left;
}
.search-random-list a {
    color: #0d6efd;
    text-decoration: none;
}

/* 打赏弹窗样式 */
.download-limit-modal .modal-content {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.download-limit-modal .modal-body {
    padding: 2.5rem;
    background: linear-gradient(135deg, #fff9f9 0%, #fff 100%);
}

.download-limit-modal .icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #ffebee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-limit-modal .icon {
    font-size: 3rem;
    color: #e57373;
    animation: pulse 1.5s infinite;
}

.download-limit-modal h5 {
    color: #d32f2f;
    font-weight: 600;
    margin-bottom: 1rem;
}

.download-limit-modal .message {
    color: #5f5f5f;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.download-limit-modal .btn {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
}

.download-limit-modal .btn-primary {
    background: #e57373;
    border-color: #e57373;
}

.download-limit-modal .btn-outline-primary {
    color: #e57373;
    border-color: #e57373;
}

.download-limit-modal .btn-outline-primary:hover {
    background: #ffebee;
}

/* 打赏弹窗特殊样式 */
#donateModal .icon-wrapper {
    background: #fff5f5;
}

#donateModal .icon {
    color: #e74c3c !important;
    animation: heartbeat 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.1); }
    28% { transform: scale(1); }
    42% { transform: scale(1.1); }
    70% { transform: scale(1); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* 新增登录注册弹窗样式（Bootstrap模态框） */
.auth-modal .modal-dialog {
    max-width: 400px;
}

.auth-modal .modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.auth-modal .modal-title {
    font-weight: bold;
    color: #3498db;
}

.auth-modal .form-control {
    padding: 12px 15px;
}

.auth-modal .btn-submit {
    background-color: #3498db;
    border-color: #3498db;
    padding: 10px;
    font-weight: bold;
}

.auth-modal .form-footer {
    text-align: center;
    margin-top: 15px;
}

.auth-modal .form-footer a {
    color: #3498db;
    text-decoration: none;
}

.auth-modal .tab-content {
    padding: 20px 0;
}

.auth-modal .nav-tabs {
    border-bottom: none;
    justify-content: center;
}

.auth-modal .nav-tabs .nav-link {
    border: none;
    color: #666;
    font-weight: 500;
    padding: 10px 20px;
}

.auth-modal .nav-tabs .nav-link.active {
    color: #3498db;
    background-color: transparent;
    border-bottom: 2px solid #3498db;
}

/* 移动端顶部导航栏样式 */
@media (max-width: 991.98px) {
    .search-box {
        flex-grow: 1;
        margin: 0 0.5rem;
    }
}
