* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-1Thin.woff2') format('woff2');
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-2ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-3Light.woff2') format('woff2');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-4Regular.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-5Medium.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-6SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-7Bold.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-8ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Paperozi';
    src: url('https://cdn.jsdelivr.net/gh/projectnoonnu/2408-3@1.0/Paperlogy-9Black.woff2') format('woff2');
    font-weight: 900;
    font-display: swap;
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f8f8f8;
    color: #333;
    overflow-x: hidden;
}

/* Search Header */
.search-header {
    background-color: #fff;
    padding: 8px 12px;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.back-btn {
    background: none;
    border: none;
    font-size: 18px;
    color: #333;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.back-btn:hover {
    background-color: #f0f0f0;
}

.search-input-container {
    flex: 1;
    position: relative;
    background-color: #f5f5f5;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
}

.search-icon {
    color: #999;
    margin-right: 8px;
    font-size: 14px;
}

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

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

.camera-btn {
    background: none;
    border: none;
    color: #666;
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
}

.search-btn {
    background: none;
    border: none;
    color: #ff0050;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.search-btn:hover {
    background-color: #f0f0f0;
}

/* Search Content */
.search-content {
    margin-top: 70px;
    padding: 0 16px;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 0 8px 0;
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3 i {
    color: #ff4757;
}

.clear-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
}

/* History Section */
.history-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}

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

.history-tag {
    background-color: #f5f5f5;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.history-tag:hover {
    background-color: #e8e8e8;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    color: #666;
    font-size: 14px;
}

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

.more-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    margin-left: auto;
}

.search-suggestions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.suggestion-text {
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.suggestion-text:hover {
    color: #007AFF;
}

.suggestion-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
}

.suggestion-badge.hot {
    background-color: #ff4757;
}

.suggestion-badge.new {
    background-color: #ffa502;
}

.suggestion-badge.trending {
    background-color: #ff6b35;
}

/* Hot Topics Section */
.hot-topics-section {
    background-color: #fff;
    border-radius: 12px;
    padding: 16px;
}

.hot-topics-list {
    display: flex;
    flex-direction: column;
}

.topic-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.topic-item:last-child {
    border-bottom: none;
}

.topic-item:hover {
    background-color: #f8f8f8;
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
}

.topic-rank {
    width: 20px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    margin-right: 12px;
}

.topic-item:nth-child(1) .topic-rank,
.topic-item:nth-child(2) .topic-rank,
.topic-item:nth-child(3) .topic-rank {
    color: #ff4757;
}

.topic-title {
    flex: 1;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
    margin-right: 8px;
}

.topic-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    color: white;
    margin-right: 8px;
}

.topic-badge.hot {
    background-color: #ff4757;
}

.topic-badge.new {
    background-color: #ffa502;
}

.topic-badge.trending {
    background-color: #ff6b35;
}

.topic-count {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
}

/* Responsive Design */
@media (max-width: 375px) {
    .search-content {
        padding: 0 12px;
    }
    
    .history-section,
    .hot-topics-section {
        padding: 12px;
    }
    
    .suggestion-item {
        gap: 8px;
    }
    
    .topic-item {
        padding: 10px 0;
    }
}

/* Scrollbar Styling */
.search-content::-webkit-scrollbar {
    width: 4px;
}

.search-content::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.search-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.search-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-content {
    animation: fadeIn 0.3s ease;
}