.search-page {
    background: #F5F5F5;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(180deg, #E8384F 0%, #C41E3A 100%);
}

.back-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    border: none;
    color: white;
    font-size: 17px;
    cursor: pointer;
    flex-shrink: 0;
    transition: color 0.2s;
}

.back-btn:hover, .back-btn:active {
    color: rgba(255,255,255,0.8);
}

.search-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 22px;
    padding: 10px 16px;
    position: relative;
}

.search-input-wrapper i {
    font-size: 14px;
    color: #999;
    flex-shrink: 0;
}

.search-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    outline: none;
}

.search-input-wrapper input::placeholder {
    color: #999;
}

.search-clear {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
}

.search-clear i {
    font-size: 10px;
    color: #666;
}

.search-cancel-btn {
    font-size: 15px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 16px;
    background: transparent;
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed;
    white-space: nowrap;
    flex-direction: row;
    margin: 0;
}

.search-content {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.search-content::-webkit-scrollbar {
    display: none;
}

.search-section {
    margin-bottom: 24px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.clear-history {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s;
}

.clear-history:hover {
    background: #f5f5f5;
}

.clear-history i {
    font-size: 12px;
}

.history-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-tag {
    font-size: 13px;
    color: var(--text-dark);
    background: var(--white);
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    transition: all 0.2s;
}

.history-tag:active {
    transform: scale(0.85);
    background: #f5f5f5;
}

.hot-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hot-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.hot-item:active {
    background: rgba(196,30,58,0.05);
}

.hot-rank {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #999;
    background: #f5f5f5;
    border-radius: 4px;
    flex-shrink: 0;
}

.hot-rank.top-three {
    color: var(--white);
    background: linear-gradient(135deg, #FF6B6B, #C41E3A);
}

.hot-name {
    font-size: 14px;
    color: var(--text-dark);
}

.search-results {
    margin-bottom: 16px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.results-header h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.results-header span {
    font-size: 12px;
    color: var(--text-gray);
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result-card {
    display: flex;
    gap: 14px;
    background: var(--white);
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s;
    margin-bottom: 10px;
}

.result-card:active {
    transform: scale(0.88);
    background: #f9f9f9;
}

.result-image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-image i {
    font-size: 28px;
    color: #C41E3A;
}

.result-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-title {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-address {
    font-size: 13px;
    color: var(--text-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-bottom: 6px;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.result-tag {
    font-size: 11px;
    color: #fff;
    background: linear-gradient(135deg, #FF6B6B, #C41E3A);
    padding: 3px 8px;
    border-radius: 4px;
    flex-shrink: 0;
}

.result-action {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-link {
    font-size: 13px;
    color: #C41E3A;
    font-weight: 500;
}

.search-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #C41E3A;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-loading p {
    font-size: 14px;
    color: var(--text-gray);
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 15px;
    color: var(--text-gray);
    margin-bottom: 4px;
}

.no-results-hint {
    font-size: 13px !important;
    color: var(--text-light) !important;
}

.search-footer {
    padding: 20px 0 60px;
    text-align: center;
}

.search-powered {
    font-size: 11px;
    color: var(--text-light);
}