.search-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.search {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 10px;
}

.search-bar {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    max-width: 400px;
}

.search-bar input {
    padding: 8px;
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    outline: none;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.search-bar button {
    width: 60px;
    background: #000;
    border: 2px solid #eeeeee2e;
    color: #ffffff;
    border-radius: 30px;
    padding: 10px;
    margin-top: 0%;
    /* 调节页脚按钮大小 */
    font-size: 14px;
    cursor: pointer;
}

.search-bar button:hover {
    border: 2px solid #eeeeee2e;
    background: #000000ca;
    transition: 0.0s;
}

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

.tag-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

/* 隐藏原生复选框 */
.tag-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* 自定义样式 */
.tag-item span {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    background-color: #f0f0f0;
    color: #333;
    font-size: 14px;
    transition: all 0.2s ease;
    user-select: none;
    border: 1px solid #ccc;
}

/* 选中效果 */
.tag-item input[type="checkbox"]:checked+span {
    background-color: #000000;
    /* 主色（紫蓝） */
    color: #fff;
    border-color: #000000;
    box-shadow: 0 2px 6px rgba(79, 70, 229, 0.3);
}

/* 悬停效果 */
.tag-item span:hover {
    background-color: #e5e7eb;
}


.nodes {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

/* 每一列 */
.nodes-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* 卡片样式 */
.node {
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
    overflow: hidden;
}

.node img {
    width: 100%;
    height: auto;
    display: block;
}

.node-body {
    padding: 0.75rem 0.5rem;
}

.node h2 {
    font-size: 1rem;
    margin: 0 0 0.5rem;
}

.node p {
    font-size: 0.875rem;
    margin: 0;
}

.node .more {
    text-align: right;
}

@media screen and (max-width: 768px) {
    .search-container {
        flex-direction: row;
        align-items: normal;
    }
    .search {
        width: 100%;
    }
    .search-bar {
        width: 100%;
    }
    .search-bar input {
        width: 100%;
    }
}