* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    padding: 5px;
    justify-content: center;
    align-items: flex-start;
    background-image: url("http://static.simpledesktops.com/uploads/desktops/2017/10/02/polymagnet.png.625x385_q100.png");
    background-size: 100% 100%;
    /**点击背景蓝色隐藏**/
    -webkit-tap-highlight-color: transparent;
}

.search-container {
    width: 100%;
    max-width: 750px;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin: 5px;
    height: calc(100vh - 2rem);
    max-height: 900px;
}


/* 头部 — 深色文字醒目 */

.header {
    text-align: center;
    color: #1e4a6e;
    flex-shrink: 0;
}

.header .icon {
    font-size: 2.5rem;
    color: #196090;
    margin-bottom: 0.3rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.05));
}

.header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    letter-spacing: 3px;
    /* 深色渐变 — 优雅深色文字效果 */
    background: linear-gradient(135deg, #0a2639, #196090);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* 搜索框 — 实心浅色风格，无毛玻璃 */

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 3rem;
    padding: 0.5rem 0.5rem 0.5rem 1.5rem;
    border: 1px solid #bdd8e8;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    flex-shrink: 0;
    transition: all 0.2s;
}

.search-box:focus-within {
    border-color: #3498db;
    box-shadow: 0 4px 14px rgba(52, 152, 219, 0.15);
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 0.7rem 0.5rem;
    font-size: 1rem;
    color: #0a2639;
    caret-color: #3498db;
    min-width: 0;
}

.search-box input::placeholder {
    color: #8bb3c4;
}

.search-box button {
    background: #3498db;
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 2.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
    outline: none;
    transition: background 0.2s;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.2);
}

.search-box button:hover {
    background: #196090;
}

.clear-btn {
    background: none;
    border: none;
    color: #7fadc4;
    cursor: pointer;
    padding: 0.5rem;
    display: none;
    font-size: 1rem;
}

.clear-btn.visible {
    display: block;
}


/* 筛选标签 — 浅色底，深色文字 */

.filter-row {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.filter-tag {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    cursor: pointer;
    background: #ffffffcc;
    background: #fff;
    border: 1px solid #c2ddee;
    color: #196090;
    transition: 0.2s;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.filter-tag.active {
    background: #3498db;
    border-color: #3498db;
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}


/* 搜索结果区域 — 去除毛玻璃，纯浅色柔光 */

.results-section {
    background: #ffffffdd;
    background: #ffffff;
    border-radius: 1.8rem;
    border: 1px solid #cfe3ef;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.results-section {
    overflow: auto;
    scrollbar-width: thin;
}

.results-section::-webkit-scrollbar {
    width: 5px;
    height: 5px;
    display: block;
}

.results-section::-webkit-scrollbar-track {
    background: #e2f0f7;
    border-radius: 5px;
}

.results-section::-webkit-scrollbar-thumb {
    background: #8bc4ea;
    border-radius: 5px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.2rem 0.5rem;
    color: #196090;
    font-size: 0.85rem;
    font-weight: 500;
    flex-shrink: 0;
    border-bottom: 1px solid #e2f0f7;
    background: #ffffff;
}


/* 滚动内容区 */

.results-scroll {
    padding: 8px;
    overflow-y: auto;
    flex: 1;
}


/* 歌曲卡片 — 浅色优雅，深色文字 */

.song-item {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 1.2rem;
    cursor: pointer;
    background: #f9fdfe;
    border: 1px solid #e2f0f5;
    transition: 0.15s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.song-item:hover,
.song-item:active {
    background: #eef7fc;
    border-color: #bcd9ec;
    transform: translateY(-1px);
}

.song-index {
    width: 28px;
    color: #5f9cbb;
    font-size: 0.8rem;
    text-align: center;
    flex-shrink: 0;
    font-weight: 500;
}

.song-cover {
    width: 55px;
    height: 55px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.8rem;
    color: #196090;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.song-info {
    flex: 1;
    min-width: 0;
}

.song-name {
    font-weight: 700;
    color: #0a2639;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-meta {
    font-size: 0.75rem;
    color: #5d8eaa;
    margin-top: 0.2rem;
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.song-actions {
    display: flex;
    gap: 0.2rem;
    color: #5f9cbb;
    flex-shrink: 0;
}

.song-actions i {
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.1s;
}

.song-actions i:hover {
    background: #d9eef9;
    color: #196090;
}

.load-more {
    text-align: center;
    padding: 1rem;
    color: #3498db;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-top: 1px solid #e2eef6;
    background: #ffffff;
}

.load-more:hover {
    color: #196090;
    background: #f5fbfe;
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1rem;
    color: #7faccc;
}

.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #8bc4ea;
}

.highlight {
    color: #e67e22;
    font-weight: 700;
    background: #fff0e0;
    border-radius: 4px;
    padding: 0 2px;
}


/* 移动端适配 */

@media (max-width: 500px) {
    .search-box {
        padding: 0.3rem 0.3rem 0.3rem 1rem;
    }
    .search-box button {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        outline: none;
    }
    .song-cover {
        width: 38px;
        height: 38px;
        margin: 0 0.5rem;
    }
    .song-name {
        font-size: 0.9rem;
    }
    .filter-tag {
        padding: 0.3rem 0.8rem;
        font-size: 0.72rem;
        margin: 0px;
    }
    .filter-row {
        gap: 0.4rem;
    }
}


/* 辅助深色文字强调，符合需求：浅色底，深色文字 */

.results-header span:first-child {
    color: #0a2639;
    font-weight: 600;
}

.song-name strong,
.highlight {
    color: #c4450c;
}

.filter-tag {
    font-weight: 500;
}


/* 去掉任何毛玻璃相关属性：backdrop-filter全部移除 */

.search-box,
.results-section,
.filter-tag,
.song-item {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}