body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9edf5 100%);
    color: #2c3e50;
    font-family: 'HarmonyOS Sans SC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a2639;
}

.search-box {
    position: relative;
    margin-bottom: 24px;
}

.search-box .search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: #7f8c8d;
}

.search-box input {
    width: 100%;
    padding: 12px 20px 12px 44px;
    font-size: 1rem;
    border: 2px solid rgba(0, 0, 0, 0.08);
    border-radius: 30px;
    outline: none;
    background: rgba(255, 255, 255, 0.8);
    color: #2c3e50;
}

.search-box input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

.list {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    overflow: hidden;
}

.list th {
    text-align: left;
    padding: 14px 12px;
    background: rgba(74, 111, 165, 0.08);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a6fa5;
}

.list td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.list tbody tr:hover {
    background: rgba(74, 111, 165, 0.06);
}

.name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon {
    font-size: 1.2rem;
    width: 28px;
    text-align: center;
}

.song-title {
    user-select: text;
    cursor: text;
    font-weight: 500;
    color: #1e293b;
    flex: 1;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    opacity: 0.7;
    color: inherit;
}

.play-btn:hover {
    opacity: 1;
    background: rgba(74, 111, 165, 0.1);
}

.size,
.date {
    color: #5f6b7a;
    font-size: 0.85rem;
    white-space: nowrap;
}

.duration {
    color: #7f8c8d;
    font-size: 0.85rem;
}

.empty,
.loading {
    text-align: center;
    padding: 48px 20px;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.empty::before {
    content: "🎵";
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.loading::after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {

    0%,
    20% {
        content: ".";
    }

    40% {
        content: "..";
    }

    60%,
    100% {
        content: "...";
    }
}

/* ========== 分页控件 ========== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 12px 12px;
    flex-wrap: wrap;
}

.page-btn {
    padding: 6px 14px;
    border: 1px solid rgba(74, 111, 165, 0.25);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.7);
    color: #4a6fa5;
    font-size: 0.85rem;
    cursor: pointer;
}

.page-btn:hover:not(:disabled):not(.active) {
    background: rgba(74, 111, 165, 0.1);
}

.page-btn.active {
    background: #4a6fa5;
    color: #fff;
    border-color: #4a6fa5;
    font-weight: 600;
}

.page-btn:disabled {
    color: #c0c6cc;
    border-color: rgba(0, 0, 0, 0.06);
    cursor: not-allowed;
}

.page-info {
    margin-left: 10px;
    font-size: 0.82rem;
    color: #7f8c8d;
}

/* ========== 跳页输入框 ========== */
.page-jump input {
    width: 56px;
    padding: 4px 6px;
    border: 1px solid rgba(74, 111, 165, 0.25);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.7);
    color: #2c3e50;
    font-size: 0.85rem;
    text-align: center;
    outline: none;
    margin-left: 6px;
}

.page-jump input:focus {
    border-color: #4a6fa5;
    box-shadow: 0 0 0 3px rgba(74, 111, 165, 0.1);
}

/* ========== 分页下方总数 ========== */
.pagination-summary {
    text-align: center;
    padding: 4px 20px 0;
    font-size: 0.9rem;
    color: #4a6fa5;
    font-weight: 500;
}

/* ================================================================
   手机端适配 (≤768px) — 表格转卡片布局
   ================================================================ */
@media (max-width: 768px) {
    .container {
        padding: 16px 12px;
    }

    h1 {
        font-size: 1.3rem;
        margin-bottom: 12px;
        text-align: center;
    }

    .search-box {
        margin-bottom: 16px;
    }

    .search-box input {
        padding: 14px 16px 14px 40px;
        font-size: 1rem;
        border-radius: 24px;
    }

    .search-box .search-icon {
        left: 14px;
        font-size: 1rem;
    }

    /* 表格 → 卡片 */
    .list {
        display: block;
        background: transparent;
        border-radius: 0;
        overflow: visible;
    }

    .list thead {
        display: none;
    }

    .list tbody {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .list tbody tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 14px;
        padding: 14px;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
        border-bottom: none;
    }

    .list tbody tr:hover {
        background: rgba(255, 255, 255, 0.92);
    }

    .list td {
        padding: 4px 0;
        border-bottom: none;
    }

    /* 歌曲名占整行 */
    .list td:first-child {
        width: 100%;
        padding-bottom: 8px;
    }

    .name-cell {
        gap: 8px;
    }

    .icon {
        font-size: 1.4rem;
        width: 32px;
    }

    .song-title {
        font-size: 1rem;
        line-height: 1.4;
        word-break: break-all;
    }

    .play-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
        border-radius: 10px;
        flex-shrink: 0;
    }

    /* 时长 · 大小 · 日期 排列在一行 */
    .list td.duration,
    .list td.size,
    .list td.date {
        font-size: 0.78rem;
        padding: 2px 6px;
        color: #6b7280;
    }

    .list td.duration::before {
        content: "⏱ ";
    }

    .list td.size::before {
        content: "· ";
        margin: 0 2px;
    }

    .list td.date {
        width: 100%;
        padding-top: 4px;
        font-size: 0.75rem;
        color: #9ca3af;
    }

    /* 分页控件简化 */
    .pagination {
        gap: 4px;
        padding: 20px 4px 8px;
    }

    .page-btn {
        padding: 8px 10px;
        font-size: 0.8rem;
        border-radius: 6px;
        min-width: 32px;
        text-align: center;
    }

    .page-info {
        display: none;
    }

    .page-jump input {
        width: 48px;
        padding: 6px 4px;
        font-size: 0.8rem;
    }

    .pagination-summary {
        font-size: 0.82rem;
        padding: 4px 12px 0;
    }
}

/* ================================================================
   小屏手机适配 (≤480px) — 进一步精简
   ================================================================ */
@media (max-width: 480px) {
    .container {
        padding: 12px 8px;
    }

    h1 {
        font-size: 1.15rem;
        margin-bottom: 10px;
    }

    .search-box input {
        padding: 12px 12px 12px 36px;
        font-size: 0.95rem;
    }

    .search-box .search-icon {
        left: 12px;
    }

    .list tbody {
        gap: 8px;
    }

    .list tbody tr {
        padding: 12px 10px;
        border-radius: 12px;
    }

    .song-title {
        font-size: 0.95rem;
    }

    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 1.4rem;
        border-radius: 12px;
    }

    .list td.duration,
    .list td.size {
        font-size: 0.75rem;
    }

    /* 小屏隐藏日期列 */
    .list td.date {
        display: none;
    }

    .icon {
        font-size: 1.3rem;
        width: 28px;
    }

    .page-btn {
        padding: 7px 8px;
        font-size: 0.75rem;
        min-width: 28px;
    }

    .page-jump {
        display: none;
    }

    .pagination-summary {
        font-size: 0.78rem;
    }
}