/* 
   ============================================
   版权所有 © 2026 墨迹语CMS 
   https://www.mojiyucms.com/
   ============================================ 
*/
.search-page {
    padding: 58px 0;
    min-height: 500px;
}

/* 搜索信息 */
.search-info {
    margin-bottom: 38px;
    padding-bottom: 18px;
    border-bottom: 2px solid #f20f0f;
}

.search-keyword {
    font-size: 28px;
    margin-bottom: 12px;
    color: #181818;
}

.search-keyword i {
    color: #f20f0f;
    margin-right: 8px;
}

.search-keyword strong {
    color: #f20f0f;
    font-weight: 600;
}

.search-count {
    font-size: 16px;
    color: #686868;
}

.search-count strong {
    color: #f20f0f;
    font-weight: 600;
    font-size: 18px;
}

/* 搜索结果列表 */
.search-results {
    display: block;
}

.search-item {
    display: block;
    margin-bottom: 28px;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 28px;
    transition: all 0.3s ease;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item>a {
    display: flex;
    gap: 28px;
    align-items: flex-start;
}

.search-item:hover {
    transform: translateX(5px);
}

.search-thumb {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
}

.search-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-item:hover .search-thumb img {
    transform: scale(1.1);
}

.search-content {
    flex: 1;
}

.search-title {
    font-size: 22px;
    margin-bottom: 12px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.search-item:hover .search-title {
    color: #f20f0f;
}

.search-title mark {
    background: linear-gradient(135deg, #f20f0f 0%, #ff6b6b 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
}

.search-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #686868;
    margin-bottom: 12px;
}

.search-desc mark {
    background: #fff3cd;
    color: #856404;
    padding: 1px 4px;
    border-radius: 2px;
}

.search-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    color: #989898;
}

.search-meta span {
    display: inline-flex;
    align-items: center;
}

.search-meta i {
    margin-right: 4px;
}

.search-more {
    margin-left: auto;
    color: #f20f0f;
    font-weight: 500;
}

.search-item:hover .search-more {
    color: #d00c0c;
}

/* 搜索分页 */
.search-pagination {
    margin-top: 48px;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 88px 0;
}

.no-results-icon {
    font-size: 88px;
    color: #e8e8e8;
    margin-bottom: 28px;
}

.no-results-title {
    font-size: 28px;
    color: #181818;
    margin-bottom: 18px;
}

.no-results-tips {
    font-size: 16px;
    color: #686868;
    margin-bottom: 18px;
}

.no-results-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 38px;
}

.no-results-list li {
    font-size: 15px;
    color: #686868;
    line-height: 2;
    padding-left: 20px;
    position: relative;
}

.no-results-list li i {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #f20f0f;
}

.no-results-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
}

.no-results-actions .btn-primary,
.no-results-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 38px;
    border-radius: 28px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.no-results-actions .btn-primary {
    background: linear-gradient(135deg, #f20f0f 0%, #d00c0c 100%);
    color: #fff;
}

.no-results-actions .btn-primary:hover {
    background: linear-gradient(135deg, #d00c0c 0%, #b00a0a 100%);
    box-shadow: 0 4px 12px rgba(242, 15, 15, 0.3);
}

.no-results-actions .btn-secondary {
    background: #f8f8f8;
    color: #181818;
}

.no-results-actions .btn-secondary:hover {
    background: #e8e8e8;
}

/* 热门推荐 */
.hot-recommend {
    margin-top: 58px;
    padding-top: 38px;
    border-top: 1px solid #e8e8e8;
}

.recommend-title {
    font-size: 24px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recommend-title i {
    color: #f20f0f;
    font-size: 22px;
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.recommend-item {
    display: block;
    background: #f8f8f8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.recommend-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.recommend-item>a {
    display: block;
}

.recommend-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.recommend-item:hover img {
    transform: scale(1.05);
}

.recommend-item span {
    display: block;
    padding: 18px;
}

.recommend-item h4 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    transition: color 0.3s ease;
}

.recommend-item:hover h4 {
    color: #f20f0f;
}

.recommend-item p {
    font-size: 14px;
    line-height: 1.6;
    color: #686868;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.recommend-item u {
    font-size: 13px;
    color: #989898;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.recommend-item u i {
    margin-right: 4px;
}

/* ==================== 404页面样式 ==================== */
.error-page {
    padding: 88px 0;
    min-height: 600px;
}

.error-content {
    text-align: center;
    padding-bottom: 58px;
}

.error-icon {
    position: relative;
    margin-bottom: 38px;
}

.error-number {
    font-size: 128px;
    font-weight: 900;
    background: linear-gradient(135deg, #f20f0f 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    position: relative;
    z-index: 2;
    line-height: 1;
}

.error-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 180px;
    font-weight: 900;
    color: #f8f8f8;
    z-index: 1;
    opacity: 0.5;
}

.error-title {
    font-size: 38px;
    color: #181818;
    margin-bottom: 18px;
}

.error-message {
    font-size: 16px;
    color: #686868;
    margin-bottom: 38px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-bottom: 48px;
}

.error-actions .btn-primary,
.error-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 38px;
    border-radius: 28px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.error-actions .btn-primary {
    background: linear-gradient(135deg, #f20f0f 0%, #d00c0c 100%);
    color: #fff;
}

.error-actions .btn-primary:hover {
    background: linear-gradient(135deg, #d00c0c 0%, #b00a0a 100%);
    box-shadow: 0 4px 12px rgba(242, 15, 15, 0.3);
}

.error-actions .btn-secondary {
    background: #f8f8f8;
    color: #181818;
}

.error-actions .btn-secondary:hover {
    background: #e8e8e8;
}

/* 错误页搜索框 */
.error-search {
    max-width: 600px;
    margin: 0 auto;
}

.search-tip {
    font-size: 15px;
    color: #686868;
    margin-bottom: 18px;
}

.search-form {
    display: block;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 28px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.search-input-wrap:focus-within {
    border-color: #f20f0f;
}

.search-input-wrap>i {
    padding: 0 18px;
    color: #989898;
    font-size: 16px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px 0;
    font-size: 15px;
}

.search-btn {
    background: linear-gradient(135deg, #f20f0f 0%, #d00c0c 100%);
    color: #fff;
    border: none;
    padding: 12px 38px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: linear-gradient(135deg, #d00c0c 0%, #b00a0a 100%);
}

/* ==================== 响应式设计 ==================== */
@media(max-width: 1200px) {
    .search-page {
        padding: 38px 0;
    }

    .search-info {
        margin-bottom: 28px;
    }

    .search-keyword {
        font-size: 24px;
    }

    .search-thumb {
        width: 200px;
        height: 140px;
    }

    .recommend-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .error-page {
        padding: 58px 0;
    }

    .error-number {
        font-size: 100px;
    }

    .error-bg {
        font-size: 140px;
    }
}

@media(max-width: 767px) {
    .search-page {
        padding: 28px 0;
    }

    .search-info {
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .search-keyword {
        font-size: 20px;
    }

    .search-count {
        font-size: 14px;
    }

    .search-item {
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .search-item>a {
        flex-direction: column;
        gap: 12px;
    }

    .search-thumb {
        width: 100%;
        height: 200px;
    }

    .search-title {
        font-size: 18px;
    }

    .search-desc {
        font-size: 14px;
    }

    .search-meta {
        flex-wrap: wrap;
        gap: 12px;
        font-size: 13px;
    }

    .search-more {
        margin-left: 0;
    }

    .no-results {
        padding: 48px 0;
    }

    .no-results-icon {
        font-size: 68px;
    }

    .no-results-title {
        font-size: 22px;
    }

    .no-results-actions {
        flex-direction: column;
        gap: 12px;
    }

    .no-results-actions .btn-primary,
    .no-results-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .hot-recommend {
        margin-top: 38px;
        padding-top: 28px;
    }

    .recommend-title {
        font-size: 20px;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .recommend-item img {
        height: 220px;
    }

    .error-page {
        padding: 38px 0;
    }

    .error-content {
        padding-bottom: 38px;
    }

    .error-number {
        font-size: 80px;
    }

    .error-bg {
        font-size: 100px;
    }

    .error-title {
        font-size: 28px;
    }

    .error-message {
        font-size: 14px;
        margin-bottom: 28px;
    }

    .error-actions {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 38px;
    }

    .error-actions .btn-primary,
    .error-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .error-search {
        padding: 0 18px;
    }

    .search-input-wrap>i {
        padding: 0 12px;
    }

    .search-input {
        padding: 10px 0;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 28px;
        font-size: 14px;
    }
}