* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    min-height: 100%;
}
body {
    background-image: url("/bg-light.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    position: relative;
}
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-color: rgba(255,255,255,0.75);
    z-index: -1;
    transition: all 0.3s;
}
/* 深色模式 */
.dark body {
    background-image: url("/bg-dark.jpg");
}
.dark body::after {
    background-color: rgba(15,23,42,0.78);
}
.main-wrapper {
    width: 100%;
}
.search-box {
    display: flex;
    width: 100%;
    height: 48px;
}
#search-input {
    flex: 1;
    border: 1px solid #d8dee8;
    border-radius: 999px 0 0 999px;
    padding: 0 20px;
    font-size: 16px;
    outline: none;
    transition: 0.25s;
    background: #fff;
    color: #333;
}
#search-input:focus {
    border-color: #3b82f6;
}
.dark #search-input:focus {
    border-color: #3b82f6;
}
#search-btn {
    width: 56px;
    background-color: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 0 999px 999px 0;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.2s;
}
#search-btn:hover {
    background-color: #2563eb;
}

/* 标签容器：横排布局，空间不足自动换行 */
.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.quick-tag {
    padding: 5px 14px;
    background: #f7f8fa;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #444;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}
.quick-tag:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: #eff6ff;
}
.dark .quick-tag {
    background: #334155;
    border-color: #475569;
    color: #cbd5e1;
}
.dark .quick-tag:hover {
    background: #1e293b;
    border-color: #3b82f6;
    color: #60a5fa;
}
.bookmark-group {
    transition: 0.3s;
}
.bookmark-group:hover {
    box-shadow: 0 4px 18px rgba(59,130,246,0.08);
}