/* ============================================
   搜索页面样式
   ============================================ */
 
/* 搜索区域 */
.search-section {
    padding: 150px 0 60px;
    background: #f6f6f6;
    min-height: 500px;
}

.search-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 搜索头部 */
.search-header {
    text-align: center;
    margin-bottom: 30px;
}

  

/* 搜索表单 */
.search-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
}

.search-form {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.search-input-group {
    display: flex;
    gap: 12px; 
}

.search-input {
    flex: 1;
    height: 50px; 
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #f7b700;;
    box-shadow: 0 0 0 3px rgba(164, 90, 38, 0.1);
}

.search-btn {
    height: 50px;
    padding: 0 30px;
    background: #f7b700;;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    background: #8a6d1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(164, 90, 38, 0.3);
}

.search-btn:active {
    transform: translateY(0);
}
 
/* 搜索结果 */
.search-results {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.results-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin: 0;
}
/* 搜索结果高亮样式 */
.result-title .highlight,
.result-excerpt .highlight {
    color: #f7b700;;;
    font-weight: 600;
    background: rgba(164, 90, 38, 0.1);
    padding: 0 2px;
    border-radius: 3px;
    display: inline-block;
}
.results-count {
    color: #666;
    font-size: 14px;
}

.results-count strong {
    color: #f7b700;;
    font-size: 18px;
}

/* 结果列表 */
.results-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.result-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #fafafa;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.result-item:hover {
    background: #fff;
    border-color: #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateX(5px);
}

/* 缩略图 */
.result-thumb {
    flex-shrink: 0;
    width: 180px;
    height: 120px;
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.result-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}

.result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.result-item:hover .result-thumb img {
    transform: scale(1.05);
}

/* 结果信息 */
.result-info {
    flex: 1;
}

.result-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.result-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-title a:hover {
    color: #f7b700;;
}

.result-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 12px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #999;
}

.meta-item i {
    font-size: 12px;
}

.meta-item.price {
    color: #f7b700;;
    font-weight: 500;
}

/* 空状态 */
.no-results,
.search-empty {
    text-align: center;
    padding: 60px 20px;
}

.no-results i,
.search-empty i {
    font-size: 80px;
    color: #ddd;
    margin-bottom: 20px;
}

.no-results h3,
.search-empty h3 {
    font-size: 24px;
    color: #333;
    margin-bottom: 15px;
}

.no-results p,
.search-empty p {
    color: #999;
    font-size: 16px;
    margin-bottom: 30px;
}

.search-suggestions {
    max-width: 400px;
    margin: 0 auto;
    text-align: left;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.search-suggestions h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
}

.search-suggestions ul {
    margin: 0;
    padding-left: 20px;
}

.search-suggestions li {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}
 /* ============================================
   搜索页面样式 - 移动端适配
   ============================================ */

/* 平板及手机适配 (992px及以下) */
@media (max-width: 992px) {
    .search-section {
        padding: 80px 0 30px;
    }
    
    .search-form-wrapper {
        max-width: 100%;
        padding: 0 ;
    }
    
    .search-form {
        padding: 15px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-input {
        height: 45px;
        font-size: 14px;
    }
    
    .search-btn {
        height: 45px;
        width: 100%;
        justify-content: center;
    }
    
    /* 搜索结果 */
    .search-results {
        padding:15px;
        margin: 0 0px;
    }
    
    .results-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .results-header h2 {
        font-size: 18px;
    }
    
    .results-count strong {
        font-size: 16px;
    }
    
    /* 结果列表 */
    .results-list {
        gap: 20px;
    }
    
    .result-item {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    /* 缩略图 */
    .result-thumb {
        width: 100%;
        height: 160px;
    }
    
    .result-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .result-excerpt {
        font-size: 13px;
        -webkit-line-clamp: 3;
    }
    
    .result-meta {
        gap: 12px;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    /* 空状态 */
    .no-results,
    .search-empty {
        padding: 40px 20px;
    }
    
    .no-results i,
    .search-empty i {
        font-size: 60px;
    }
    
    .no-results h3,
    .search-empty h3 {
        font-size: 20px;
    }
    
    .no-results p,
    .search-empty p {
        font-size: 14px;
    }
    
    .search-suggestions {
        padding: 15px;
    }
    
    .search-suggestions h4 {
        font-size: 14px;
    }
    
    .search-suggestions li {
        font-size: 13px;
    }
}

 
 