/* 
   ============================================
   版权所有 © 2026 墨迹语CMS 
   https://www.mojiyucms.com/
   ============================================ 
*/
.search-page-wrapper {
    padding: 60px 0;
    min-height: 500px;
}

.search-info-box {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid #333;
}

.search-keyword {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-keyword i {
    color: #333;
    font-size: 20px;
}

.search-keyword strong {
    color: #333;
    font-weight: 700;
}

.search-count {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.search-count strong {
    color: #333;
    font-weight: 600;
}

/* 搜索结果列表 */
.search-results-list {
    margin-bottom: 40px;
}

.search-result-item {
    margin-bottom: 30px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-result-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: #333;
}

.search-result-item>a {
    display: flex;
    text-decoration: none;
    color: inherit;
}

.result-thumb {
    width: 280px;
    height: 200px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.search-result-item:hover .result-thumb img {
    transform: scale(1.05);
}

.result-content {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
}

.result-title {
    font-size: 20px;
    color: #333;
    font-weight: 600;
    margin: 0 0 15px 0;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.search-result-item:hover .result-title {
    color: #333;
}

.result-title mark {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 700;
}

.result-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    margin: 0 0 20px 0;
    flex: 1;
}

.result-desc mark {
    background: #fff3cd;
    color: #333;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.result-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.result-meta i {
    font-size: 12px;
}

.meta-more {
    margin-left: auto;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.search-result-item:hover .meta-more {
    transform: translateX(5px);
}

/* 无结果提示 */
.no-results-wrapper {
    padding: 80px 0;
    text-align: center;
}

.no-results-icon {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.no-results-title {
    font-size: 28px;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
}

.no-results-tips {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.no-results-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 40px;
    max-width: 500px;
    text-align: left;
}

.no-results-list li {
    font-size: 14px;
    color: #666;
    line-height: 2;
    padding-left: 30px;
    position: relative;
}

.no-results-list li i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #333;
}

.no-results-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.btn-home,
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-home {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    border: none;
}

.btn-home:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-back {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.btn-back:hover {
    background: #333;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 热门推荐区域 */
.hot-recommend-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid #e8e8e8;
}

.recommend-heading {
    font-size: 24px;
    color: #333;
    font-weight: 600;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.recommend-heading i {
    color: #ff6b6b;
    font-size: 22px;
    animation: flicker 2s infinite;
}

@keyframes flicker {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.recommend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.recommend-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.recommend-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: #333;
}

.recommend-card>a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recommend-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 16px;
    color: #333;
    font-weight: 600;
    margin: 0 0 10px 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.recommend-card:hover .card-title {
    color: #333;
}

.card-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 15px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-date {
    font-size: 12px;
    color: #999;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==================== 404页面样式 ==================== */
.error-page-wrapper {
    padding: 80px 0;
    min-height: 600px;
}

.error-content-box {
    text-align: center;
    margin-bottom: 80px;
}

.error-icon-wrapper {
    position: relative;
    margin-bottom: 40px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-number-display {
    font-size: 140px;
    font-weight: 900;
    background: linear-gradient(135deg, #333 0%, #555 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    letter-spacing: 10px;
    animation: glitch 3s infinite;
}

@keyframes glitch {

    0%,
    100% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }
}

.error-bg-text {
    position: absolute;
    font-size: 200px;
    font-weight: 900;
    color: #f8f8f8;
    z-index: 1;
    opacity: 0.5;
    letter-spacing: 20px;
}

.error-title-text {
    font-size: 32px;
    color: #333;
    font-weight: 700;
    margin-bottom: 15px;
}

.error-message-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
}

.error-action-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
}

.btn-primary-action,
.btn-secondary-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 35px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary-action {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    border: none;
}

.btn-primary-action:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.btn-secondary-action {
    background: #fff;
    color: #333;
    border: 2px solid #333;
}

.btn-secondary-action:hover {
    background: #333;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.error-search-box {
    max-width: 600px;
    margin: 0 auto;
}

.search-tip-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.search-form-wrapper {
    margin: 0;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 50px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.search-input-group:focus-within {
    border-color: #333;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-input-group>i {
    padding-left: 25px;
    color: #999;
    font-size: 16px;
}

.search-input-field {
    flex: 1;
    border: none;
    outline: none;
    padding: 15px 20px;
    font-size: 15px;
    color: #333;
}

.search-input-field::placeholder {
    color: #ccc;
}

.search-submit-btn {
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #fff;
    border: none;
    padding: 15px 40px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #555 0%, #333 100%);
}

/* 移动端适配 */
@media (max-width: 768px) {

    .search-page-wrapper,
    .error-page-wrapper {
        padding: 40px 0;
    }

    .search-keyword {
        font-size: 20px;
    }

    .search-result-item>a {
        flex-direction: column;
    }

    .result-thumb {
        width: 100%;
        height: 220px;
    }

    .result-content {
        padding: 20px;
    }

    .result-title {
        font-size: 18px;
    }

    .result-meta {
        flex-wrap: wrap;
        gap: 10px;
    }

    .meta-more {
        margin-left: 0;
        width: 100%;
    }

    .recommend-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .error-number-display {
        font-size: 100px;
    }

    .error-bg-text {
        font-size: 140px;
    }

    .error-title-text {
        font-size: 24px;
    }

    .error-action-buttons,
    .no-results-actions {
        flex-direction: column;
        gap: 15px;
    }

    .btn-home,
    .btn-back,
    .btn-primary-action,
    .btn-secondary-action {
        width: 100%;
        justify-content: center;
        max-width: 300px;
        margin: 0 auto;
    }

    .search-input-group {
        border-radius: 8px;
    }

    .search-input-group>i {
        padding-left: 15px;
    }

    .search-input-field {
        padding: 12px 15px;
        font-size: 14px;
    }

    .search-submit-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}