/* 搜索页面样式 */
.search-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    background: linear-gradient(to bottom, #ffffff, #f2f2f2);
    border: 1px solid #aaa;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    font-family: 'Microsoft YaHei', 'Segoe UI', Tahoma, sans-serif;
}

.search-form {
    display: flex;
    margin-bottom: 20px;
}

.search-input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.search-input:focus {
    outline: none;
    border-color: #4a8af4;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1), 0 0 5px rgba(74,138,244,0.5);
}

.search-button {
    padding: 10px 20px;
    background: linear-gradient(to bottom, #4d90fe, #4787ed);
    color: white;
    border: 1px solid #3079ed;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-weight: bold;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.search-button:hover {
    background: linear-gradient(to bottom, #5a9bff, #5494f1);
}

.search-button:active {
    background: linear-gradient(to bottom, #3e7fe8, #3a7ae4);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
}

.search-options {
    display: flex;
    margin-bottom: 20px;
    background-color: #f5f5f5;
    padding: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.search-option {
    margin-right: 15px;
    cursor: pointer;
}

.search-option input {
    margin-right: 5px;
    cursor: pointer;
}

.search-results {
    margin-top: 20px;
}

.search-result {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s;
}

.search-result:hover {
    background-color: #f9f9f9;
}

.search-result h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.search-result h3 a {
    color: #1a0dab;
    text-decoration: none;
}

.search-result h3 a:hover {
    text-decoration: underline;
}

.search-result-url {
    color: #006621;
    font-size: 14px;
    margin-bottom: 5px;
}

.search-result-excerpt {
    color: #545454;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 8px;
}

.highlight {
    background-color: #ffff99;
    font-weight: bold;
    padding: 0 2px;
    border-radius: 2px;
}

.search-meta {
    margin-bottom: 20px;
    color: #666;
    font-size: 13px;
    padding: 5px 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.popular-keywords {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.popular-keywords h3 {
    margin-top: 0;
    color: #333;
    font-size: 16px;
}

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.keyword-tag {
    display: inline-block;
    padding: 5px 10px;
    background: linear-gradient(to bottom, #f8f8f8, #e8e8e8);
    color: #333;
    text-decoration: none;
    border-radius: 15px;
    font-size: 13px;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.keyword-tag:hover {
    background: linear-gradient(to bottom, #4d90fe, #4787ed);
    color: white;
    border-color: #3079ed;
    text-decoration: none;
}

.back-home {
    display: inline-block;
    margin-top: 20px;
    color: #4a8af4;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.back-home:hover {
    background-color: #f0f0f0;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .search-container {
        margin: 10px;
        padding: 15px;
    }
    
    .search-options {
        flex-wrap: wrap;
    }
    
    .search-option {
        margin-bottom: 5px;
    }
}

/* 无结果提示样式 */
.no-results {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

.no-results p {
    margin-top: 0;
    font-weight: bold;
    color: #333;
}

.no-results ul {
    margin-bottom: 0;
    padding-left: 20px;
}

.no-results li {
    margin-bottom: 5px;
    color: #555;
}