/* 站内搜索结果页 */
.search-head {
    background: #f5f7fa;
    border-bottom: 1px solid #e6e9ef;
    padding: 34px 0 30px;
}
.search-breadcrumb { margin-bottom: 14px; }
.search-head h1 {
    font-size: 30px;
    line-height: 1.3;
    margin: 0 0 18px;
    color: #14181f;
    font-weight: 700;
}
.search-form {
    display: flex;
    max-width: 640px;
    box-shadow: 0 2px 10px rgba(20, 24, 31, .06);
}
.search-form input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 18px;
    font-size: 16px;
    border: 1px solid #dfe3ea;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    background: #fff;
}
.search-form input:focus { border-color: #d22027; }
.search-form button {
    height: 50px;
    padding: 0 24px;
    border: none;
    border-radius: 0 6px 6px 0;
    background: #d22027;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.search-form button:hover { background: #b81b21; }
.search-count {
    margin: 14px 0 0;
    font-size: 14px;
    color: #6b7280;
}

.search-body { padding: 44px 0 60px; }
.search-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 44px;
    align-items: start;
}
.search-group { margin-bottom: 42px; }
.search-group:last-child { margin-bottom: 0; }
.search-group h2 {
    font-size: 20px;
    color: #14181f;
    margin: 0 0 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f2f5;
    display: flex;
    align-items: center;
    gap: 10px;
}
.search-group-count {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    background: #f2f4f7;
    border-radius: 20px;
    padding: 2px 10px;
}

.search-list { display: flex; flex-direction: column; gap: 12px; }
.search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.search-item:hover {
    border-color: #d22027;
    box-shadow: 0 6px 18px rgba(20, 24, 31, .07);
    transform: translateY(-1px);
}
.search-item-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 64px;
    border-radius: 6px;
    overflow: hidden;
    background: #f2f4f7;
}
.search-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-item-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fdeaea;
    color: #d22027;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}
.search-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-item-text strong { font-size: 16px; color: #14181f; }
.search-item-text em {
    font-style: normal;
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.search-item i.fa-arrow-right { color: #c3c8d1; font-size: 14px; }

.search-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.search-product {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.search-product:hover {
    border-color: #d22027;
    box-shadow: 0 8px 20px rgba(20, 24, 31, .08);
    transform: translateY(-2px);
}
.search-product-img { display: block; aspect-ratio: 4 / 3; background: #f2f4f7; }
.search-product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.search-product-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.search-product-body strong { font-size: 14.5px; line-height: 1.4; color: #14181f; }
.search-product-cat {
    font-size: 12px;
    color: #d22027;
    background: #fdeaea;
    border-radius: 4px;
    padding: 2px 8px;
    align-self: flex-start;
}
.search-product-body em {
    font-style: normal;
    font-size: 12.5px;
    line-height: 1.5;
    color: #8a9099;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.search-side-card {
    background: #fff;
    border: 1px solid #e8ebf0;
    border-radius: 8px;
    padding: 20px;
}
.search-side-card h3 {
    font-size: 16px;
    margin: 0 0 12px;
    color: #14181f;
}
.search-side-card ul { list-style: none; margin: 0; padding: 0; }
.search-side-card li { border-bottom: 1px solid #f0f2f5; }
.search-side-card li:last-child { border-bottom: none; }
.search-side-card li a {
    display: block;
    padding: 9px 0;
    font-size: 14px;
    color: #3d4450;
    text-decoration: none;
}
.search-side-card li a:hover { color: #d22027; }
.search-side-cta { background: #14181f; border-color: #14181f; }
.search-side-cta h3 { color: #fff; }
.search-side-cta p { font-size: 13.5px; line-height: 1.6; color: #b6bcc6; margin: 0 0 14px; }
.search-side-cta .btn { width: 100%; justify-content: center; }

.search-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.search-tag {
    display: inline-block;
    padding: 9px 16px;
    background: #fff;
    border: 1px solid #dfe3ea;
    border-radius: 20px;
    font-size: 14px;
    color: #3d4450;
    text-decoration: none;
}
.search-tag:hover { border-color: #d22027; color: #d22027; }

.search-empty {
    text-align: center;
    padding: 20px 0 46px;
}
.search-empty i { font-size: 34px; color: #c3c8d1; }
.search-empty h2 { font-size: 22px; margin: 16px 0 8px; color: #14181f; }
.search-empty p { color: #6b7280; margin: 0; }

@media (max-width: 1024px) {
    .search-layout { grid-template-columns: 1fr; gap: 32px; }
    .search-side { position: static; }
    .search-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .search-head h1 { font-size: 23px; }
    .search-form button span { display: none; }
    .search-form button { padding: 0 18px; }
    .search-products { grid-template-columns: 1fr; }
    .search-item-thumb { flex: 0 0 64px; width: 64px; height: 52px; }
}
