/* 搜索页面专用样式 */


.search-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    padding: 40px 20px;
    margin-bottom: 40px;
}

.search-box-wrapper {
    position: relative;
}

.search-input-group {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.search-input {
    border: none;
    padding: 16px 20px;
    font-size: 16px;
    background: white;
}

.search-input:focus {
    box-shadow: none;
    border: none;
}

.search-btn {
    border: none;
    padding: 16px 24px;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.suggestion-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

.hot-searches {
    text-align: center;
}

.hot-label {
    color: #666;
    margin-right: 12px;
}

.hot-tag {
    display: inline-block;
    padding: 6px 12px;
    margin: 4px;
    background: white;
    color: #666;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hot-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background: white;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.product-image {
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}


.product-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-info {
    padding: 16px;
}

.product-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.product-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.4;
}


.product-price {
    margin-bottom: 12px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 8px;
}

.original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.highlight {
    background-color: yellow;
    font-weight: 600;
}

.results-stats {
    color: #666;
}

/* 空搜索状态样式 */
.empty-search {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    margin: 40px 0;
}

.empty-search-content {
    max-width: 600px;
    margin: 0 auto;
}

.empty-search-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    background: linear-gradient(135deg, #ff6900 0%, #ff8533 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(255, 105, 0, 0.3);
    animation: pulse 2s infinite;
}

.empty-search-icon i {
    font-size: 48px;
    color: white;
}

.empty-search-title {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
}

.empty-search-desc {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}


@keyframes pulse {
    0% {
        box-shadow: 0 8px 32px rgba(255, 105, 0, 0.3);
    }

    50% {
        box-shadow: 0 8px 32px rgba(255, 105, 0, 0.5);
        transform: scale(1.05);
    }

    100% {
        box-shadow: 0 8px 32px rgba(255, 105, 0, 0.3);
    }
}

.no-results {
    padding: 80px 20px;
}

/* 分页样式 */
.pagination .page-link {
    color: #212529bf;
    background-color: #e9ecef;
    border-color: #e9ecef;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    color: #ffffff;
    background-color: #ff6900;
    border-color: #ff6900;
}

.pagination .page-item.active .page-link {
    color: #ffffff;
    background-color: #ff6900;
    border-color: #ff6900;
}

.pagination .page-item.disabled .page-link {
    color: #212529bf;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

.margin-0-20 {
    margin: 20px;
}

/* iPad Pro 1024px */
@media (min-width: 821px) and (max-width: 1024px) {
    .product-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* iPad Air 820px */
@media (min-width: 769px) and (max-width: 820px) {
    .product-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

/* iPad Mini 768px */
@media (max-width: 768px) and (min-width: 481px) {
    .product-item {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }

    /* iPad Mini 显示分页 */
    .pagination {
        display: flex !important;
    }
}

@media (max-width: 767px) {
    .margin-0-20 {
        margin: 0;
    }

    .search-header {
        padding: 20px;
        border-radius: 0 !important;
        margin-bottom: 16px;
    }

    .text-muted {
        padding-left: 10px;
    }

    .hot-searches {
        margin-top: 20px;
    }

    /* 手机端去掉商品项圆角 */
    .product-item .product-card {
        border-radius: 0 !important;
    }

    /* 移动端隐藏分页 */
    .pagination {
        display: none !important;
    }

    /* 移动端空搜索状态 */
    .empty-search {
        padding: 60px 20px;
        margin: 20px 0;
    }

    .empty-search-icon {
        width: 100px;
        height: 100px;
        margin-bottom: 24px;
    }

    .empty-search-icon i {
        font-size: 40px;
    }

    .empty-search-title {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .empty-search-desc {
        font-size: 16px;
        margin-bottom: 30px;
    }

}