﻿
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --bg: #ffffff;
    --surface: #f8fafc;
    --text: #1e293b;
    --text-secondary: #64748b;
    --border: #e2e8f0;
    --shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

/* 搜索组件容器 - 便于嵌入任何布局 */
.search-component {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 居中标题区域 */
.search-header {
    text-align: center;
    margin-bottom: 32px;
}

.search-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

    .search-icon svg {
        width: 28px;
        height: 28px;
        fill: white;
    }

.search-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.search-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}


/* 功能特性展示 */
.search-features {
    display: flex;
    justify-content: center;
    gap: 16px;
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 20px 16px;
    background: var(--surface);
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

    .feature:hover {
        background: white;
        transform: translateY(-3px);
        box-shadow: var(--shadow);
        border-color: var(--primary);
    }

.feature-icon {
    font-size: 1.75rem;
    margin-bottom: 12px;
    display: block;
}

.feature h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 6px 0;
}

.feature p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}

/* 动画效果 */


.search-component {
    animation: fadeIn 0.6s ease-out;
}

.loading {
    animation: pulse 1.5s infinite;
}

/* 响应式设计 */


.search-button {
    padding: 16px 24px;
    justify-content: center;
    width: 100%;
}

.search-features {
    gap: 12px;
}

.feature {
    min-width: calc(50% - 12px);
    padding: 16px 12px;
}

.search-header h1 {
    font-size: 1.5rem;
}




.search-icon {
    width: 48px;
    height: 48px;
}

    .search-icon svg {
        width: 24px;
        height: 24px;
    }

/* 紧凑模式 */
.search-component.compact .search-header {
    margin-bottom: 24px;
}

.search-component.compact .search-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
}

.search-component.compact .search-group {
    margin-bottom: 24px;
}

.search-component.compact .search-features {
    display: none;
}

/* 搜索框容器 */
.search-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 400px;
}

/* 搜索框组 - 水平排列 */
.search-box {
    display: flex;
    width: 100%;
    max-width: 350px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .search-box:focus-within {
        transform: translateY(2px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    }


/* 输入框样式 */
.search-input {
    flex: 1;
    padding: 0 20px;
    font-size: 16px;
    border: none;
    outline: none;
    background: white;
    color: #333;
    font-weight: 350;
}

    .search-input::placeholder {
        color: #999;
        font-weight: normal;
    }

/* 搜索按钮 */
.search-btn {
    width: 140px;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 350;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .search-btn:hover {
        background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    }

    .search-btn:active {
        transform: scale(0.98);
    }


