﻿/* 搜索容器样式 */
.search-container {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 搜索框容器 */
.search-box {
    display: flex;
    position: relative;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden; /* 确保按钮圆角与输入框统一 */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

/* 输入框样式 */
.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 1.05rem;
    outline: none;
    background: white;
}

/* 搜索按钮样式 */
.search-button {
    padding: 0 25px;
    background: linear-gradient(135deg, #1e88e5 0%, #0d6bb8 100%);
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 1px solid rgba(255,255,255,0.3); /* 分割线 */
}

/* 交互效果 */
.search-box:hover {
    border-color: #1e88e5;
    box-shadow: 0 4px 12px rgba(30, 136, 229, 0.15);
}

.search-button:hover {
    background: linear-gradient(135deg, #0d6bb8 0%, #1e88e5 100%);
}

.search-input:focus {
    box-shadow: inset 0 0 0 2px rgba(30, 136, 229, 0.2);
}


/* 关键词区域样式 */
.keywords-container {
    background: white;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.keywords-title {
    font-size: 0.95rem;
    color: #334155; /* 从浅灰色改为深灰色 */
    margin: 0 0 0 0; /* 恢复底部间距 */
    font-weight: 600; /* 从500调整为600 */
    display: flex;
    align-items: center;
    letter-spacing: 0.5px; /* 增加字间距 */
    text-transform: uppercase; /* 字母大写（可选） */
}

    .keywords-title::before {
        content: "";
        display: inline-block;
        width: 4px;
        height: 16px;
        background: #1e88e5;
        margin-right: 8px;
        border-radius: 2px;
    }
    /* 可选：添加小图标 */
    .keywords-title::after {
        content: "🔥"; /* 或使用Unicode箭头 → */
        margin-left: 8px;
        font-size: 0.9em;
    }

.keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.keyword-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f1f5f9;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #334155;
    text-decoration: none;
    transition: all 0.2s ease;
}

    .keyword-tag:hover {
        background: #1e88e5;
        color: white;
        transform: translateY(-1px);
    }

/* 热门关键词列表容器 */
#hotlist {
    list-style: none;
    padding: 0;
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 3px; /* 关键词间距 */
    align-items: center;
}

    /* 关键词链接样式 */
    #hotlist a {
        display: inline-block;
        padding: 4px 8px;
        background-color: #f0f4f8;
        color: #334155;
        text-decoration: none;
        border-radius: 8px;
        font-size: 0.95rem;
        transition: all 0.2s ease;
        border: 1px solid #e2e8f0;
        white-space: nowrap; /* 防止长文本换行 */
    }



    /* 悬停效果 */
    #hotlist a:hover {
        background-color: #1e88e5;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
    }

