/* 
 * 作者：json
 * 搜索框样式文件
 */

/* 搜索区域容器 */
.search-container {
    max-width: 75rem;
    margin: 0 auto 1.5rem;
    padding: 0 1rem;
    position: relative;
}  

/* 搜索框样式 */
.search-box {
    display: flex;
    position: relative;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    border-radius: 2rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.search-box:focus-within {
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

/* 搜索输入框 */
.search-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-right: none;
    border-radius: 2rem 0 0 2rem;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* 搜索按钮 */
.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 2rem 2rem 0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.search-button:hover {
    background-color: #0c7cd5;
}

/* 搜索结果提示 */
.search-results-info {
    text-align: center;
    margin: 1rem 0;
    color: #666;
    font-size: 0.9rem;
}

/* 搜索空状态样式 */
.search-empty-state {
    text-align: center;
    padding: 3rem 1rem;
    margin: 2rem auto;
    max-width: 40rem;
    background-color: #f9f9f9;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.05);
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #999;
}

.search-empty-state h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.75rem;
}

.search-empty-state p {
    color: #666;
    line-height: 1.5;
}

.reset-search-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}

.reset-search-link:hover {
    text-decoration: underline;
}

/* 响应式调整 */
@media screen and (max-width: 48rem) {
    .search-container {
        margin-bottom: 1rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .search-input {
        padding: 0.6rem 1rem;
    }
    
    .search-button {
        padding: 0.6rem 1.25rem;
    }
}

@media screen and (max-width: 30rem) {
    .search-input {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}