/* ========== 搜索页专属样式 ========== */
.search-page {
    padding: 50px 0;
}
.search-header {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.search-header h1 {
    font-size: 28px;
    color: #1f2a3e;
    margin-bottom: 10px;
}
.search-header .search-keyword {
    color: #1a5aaa;
    font-weight: 600;
}
.search-header .search-count {
    font-size: 14px;
    color: #8a9aaa;
    margin-top: 10px;
}
.search-stats {
    background: #eef5ff;
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}
.search-info span {
    color: #1a5aaa;
    font-weight: 600;
}
.search-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}
.view-toggle {
    display: flex;
    gap: 8px;
}
.view-btn {
    background: transparent;
    border: 1px solid #c0d4f0;
    padding: 6px 12px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    color: #4a5568;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.view-btn.active {
    background: #1a5aaa;
    border-color: #1a5aaa;
    color: #fff;
}
.view-btn:hover:not(.active) {
    background: #eef3fc;
}
.sort-buttons {
    display: flex;
    gap: 8px;
}
.sort-btn {
    background: transparent;
    border: 1px solid #c0d4f0;
    padding: 6px 14px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    transition: 0.2s;
    color: #4a5568;
}
.sort-btn.active {
    background: #1a5aaa;
    border-color: #1a5aaa;
    color: #fff;
}
.sort-btn:hover:not(.active) {
    background: #eef3fc;
}

/* 网格视图 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}
.product-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}
.product-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f5f7fa;
}
.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}
.product-info {
    padding: 16px;
    text-align: center;
}
.product-info h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.product-info h3 a {
    color: #1f2a3e;
    text-decoration: none;
}
.product-info h3 a:hover {
    color: #1a5aaa;
}
.product-model {
    font-size: 12px;
    color: #8a9aaa;
    margin-bottom: 10px;
}
.product-desc {
    font-size: 13px;
    color: #5a6e8a;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}
.product-more {
    display: inline-block;
    font-size: 12px;
    color: #1a5aaa;
    text-decoration: none;
    border-bottom: 1px dashed #bbd4f0;
}

/* 列表视图 */
.product-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}
.product-list-item {
    display: flex;
    gap: 25px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 20px;
}
.product-list-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.list-img {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 16px;
    overflow: hidden;
    background: #f5f7fa;
}
.list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.list-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}
.list-info h3 a {
    color: #1f2a3e;
    text-decoration: none;
}
.list-info h3 a:hover {
    color: #1a5aaa;
}
.list-model {
    font-size: 13px;
    color: #8a9aaa;
    margin-bottom: 10px;
}
.list-desc {
    font-size: 14px;
    color: #5a6e8a;
    margin-bottom: 12px;
    line-height: 1.5;
}
.list-more {
    display: inline-block;
    font-size: 13px;
    color: #1a5aaa;
    text-decoration: none;
    border-bottom: 1px dashed #bbd4f0;
    align-self: flex-start;
}

/* 分页 */
.pagination {
    margin-top: 30px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: #fff;
    border-radius: 10px;
    text-decoration: none;
    color: #4a5568;
    font-size: 14px;
    border: 1px solid #e2edf7;
}
.pagination a.active {
    background: #1a5aaa;
    color: #fff;
    border-color: #1a5aaa;
}

/* 无结果提示 */
.no-result {
    background: #fff;
    border-radius: 24px;
    padding: 60px 20px;
    text-align: center;
}
.no-result-icon { font-size: 64px; margin-bottom: 20px; }
.no-result h3 { font-size: 22px; margin-bottom: 10px; }
.no-result p { color: #8a9aaa; margin-bottom: 20px; }
.search-again {
    max-width: 400px;
    margin: 20px auto 0;
    display: flex;
    gap: 10px;
}
.search-again input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e0e6ed;
    border-radius: 40px;
    font-size: 14px;
}
.search-again button {
    background: #1a5aaa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    cursor: pointer;
}
.hot-words {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hot-words a {
    background: #f0f4f9;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    text-decoration: none;
    color: #1a5aaa;
    transition: 0.2s;
}
.hot-words a:hover {
    background: #1a5aaa;
    color: #fff;
}

/* 响应式 */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .product-grid { grid-template-columns: repeat(2, 1fr); }
    .product-list-item { flex-direction: column; align-items: center; text-align: center; }
    .list-img { width: 100%; height: auto; aspect-ratio: 1/1; max-width: 280px; }
    .search-stats { flex-direction: column; align-items: stretch; }
    .search-actions { justify-content: flex-start; }
}