/* search.css - 搜索页面样式 */

.post-content-container {
    width: 90%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.post-detail {
    width: 100%;
}

.post-title {
    font-size: 28px;
    color: #333333;
    margin-bottom: 20px;
    text-align: center;
}

.search-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

.search-form input[type="text"] {
    width: 60%;
    max-width: 500px;
    padding: 10px 15px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
    margin-bottom: 15px;
}

.search-form input[type="text"]:focus {
    border-color: #007bff;
}

.search-options {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.search-options label {
    font-size: 16px;
    color: #333333;
}

.search-options input[type="checkbox"] {
    margin-right: 5px;
}

.date-range {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.date-range label {
    font-size: 16px;
    color: #333333;
}

.date-range input[type="date"] {
    padding: 5px 10px;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    font-size: 16px;
    transition: border-color 0.3s;
}

.date-range input[type="date"]:focus {
    border-color: #007bff;
}

.search-form button {
    padding: 10px 20px;
    border: 2px solid #007bff;
    background-color: #007bff;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s, border-color 0.3s;
}

.search-form button:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

.search-summary {
    font-size: 18px;
    color: #555555;
    margin-bottom: 20px;
    text-align: center;
}

.search-results {
    list-style: none;
    padding: 0;
}

.search-result-item {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ccc;
}

.search-result-item a {
    font-size: 20px;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s;
}

.search-result-item a:hover {
    color: #0056b3;
}

.post-time {
    color: #777777;
    font-size: 14px;
    margin-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination a {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #f4f4f4;
    color: #333333;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.pagination a.active {
    background-color: #007bff;
    color: white;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

/* 高亮样式 */
mark {
    background-color: yellow;
    color: black;
}

/* 无结果提示样式 */
.no-results {
    font-size: 18px;
    color: #555555;
    text-align: center;
    margin-top: 20px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .post-title {
        font-size: 24px;
    }

    .search-form input[type="text"] {
        width: 80%;
    }

    .search-options {
        flex-direction: column;
        align-items: center;
    }

    .search-options label {
        font-size: 14px;
    }

    .date-range {
        flex-direction: column;
        align-items: center;
    }

    .date-range label {
        font-size: 14px;
    }

    .search-form button {
        width: 60%;
    }

    .search-result-item a {
        font-size: 18px;
    }

    .pagination a {
        padding: 6px 10px;
    }
}
