/* 飞书搜索插件样式 */

/* 确保样式被加载 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.feishu-search-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f8f9fa;
    min-height: 100vh;
}

/* 搜索头部 */
.search-header {
    text-align: center;
    margin-bottom: 60px;
}

.search-logo h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #1890ff, #722ed1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.search-logo p {
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 40px 0;
}

/* 搜索框 */
.search-box {
    margin-bottom: 40px;
}

.search-input-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

#search-input {
    width: 100%;
    padding: 16px 60px 16px 20px;
    font-size: 1.1rem;
    border: 2px solid #e1e5e9;
    border-radius: 50px;
    outline: none;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

#search-input:focus {
    border-color: #1890ff;
    box-shadow: 0 4px 20px rgba(24, 144, 255, 0.2);
}

#search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #1890ff, #722ed1);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

#search-btn:hover {
    transform: translateY(-50%) scale(1.05);
    box-shadow: 0 4px 15px rgba(24, 144, 255, 0.4);
}

/* 热门关键词 */
.hot-keywords {
    margin-bottom: 40px;
}

.hot-keywords h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.keyword-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.keyword-tag {
    display: inline-block;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e1e5e9;
    border-radius: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.keyword-tag:hover {
    background: #1890ff;
    color: white;
    border-color: #1890ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
}

/* 搜索结果 */
.search-results {
    min-height: 400px;
}

.results-placeholder {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.placeholder-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.results-placeholder p {
    font-size: 1.1rem;
    margin: 0;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #1890ff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    color: #666;
    font-size: 1.1rem;
    margin: 0;
}

/* 搜索结果列表 */
.results-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e1e5e9;
}

.results-header h3 {
    font-size: 1.3rem;
    color: #333;
    margin: 0 0 5px 0;
    font-weight: 600;
}

.results-header p {
    color: #666;
    margin: 0;
    font-size: 0.9rem;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-item {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.result-item:hover {
    border-color: #1890ff;
    box-shadow: 0 4px 20px rgba(24, 144, 255, 0.1);
    transform: translateY(-2px);
}

.result-item h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.result-item h4 a {
    color: #1890ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-item h4 a:hover {
    color: #722ed1;
}

.result-url {
    color: #28a745;
    font-size: 0.85rem;
    margin: 0 0 10px 0;
    word-break: break-all;
}

.result-description {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* 无结果状态 */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: #999;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 1.3rem;
    color: #666;
    margin: 0 0 10px 0;
}

.no-results p {
    font-size: 1rem;
    margin: 0;
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 60px 20px;
    color: #dc3545;
}

.error p {
    font-size: 1.1rem;
    margin: 0;
}

/* 搜索历史 */
.search-history {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e5e9;
}

.search-history h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.history-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 15px;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.history-tag:hover {
    background: #e9ecef;
    color: #495057;
}

.clear-history-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.clear-history-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .feishu-search-container {
        padding: 20px 15px;
    }
    
    .search-logo h1 {
        font-size: 2rem;
    }
    
    .search-logo p {
        font-size: 1rem;
    }
    
    #search-input {
        font-size: 1rem;
        padding: 14px 50px 14px 16px;
    }
    
    #search-btn {
        width: 40px;
        height: 40px;
    }
    
    .keyword-tags {
        gap: 8px;
    }
    
    .keyword-tag {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .result-item {
        padding: 15px;
    }
    
    .result-item h4 {
        font-size: 1rem;
    }
} 