:root {
    --page: #eaf6f5;
    --page-2: #f8fbf7;
    --ink: #214f54;
    --ink-deep: #143b40;
    --muted: #68878b;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --line: rgba(89, 142, 148, 0.26);
    --aqua: #8fc9c6;
    --jade: #5b9e98;
    --rose: #e9b8b9;
    --gold: #cba96f;
    --cream: #fffaf1;
    --shadow: 0 22px 54px rgba(38, 91, 98, 0.18);
    --soft-shadow: 0 12px 32px rgba(38, 91, 98, 0.12);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background:
        linear-gradient(rgba(242, 250, 249, 0.82), rgba(224, 241, 240, 0.9)),
        url("tuzi-hero-bg.png") center top / cover fixed,
        linear-gradient(145deg, var(--page), var(--page-2));
    overflow-x: hidden;
    padding-bottom: 136px;
    letter-spacing: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        radial-gradient(circle at 17% 8%, rgba(255, 255, 255, 0.78), transparent 22%),
        radial-gradient(circle at 88% 18%, rgba(233, 184, 185, 0.24), transparent 24%),
        radial-gradient(circle at 52% 74%, rgba(203, 169, 111, 0.18), transparent 26%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.34) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
    background-size: 84px 84px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.25), transparent 62%);
}

.ambient-art {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.moon-charm,
.petal-field,
.sticker {
    position: absolute;
    display: block;
}

.moon-charm {
    left: 28px;
    top: 28px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 56% 42%, transparent 37%, rgba(255,255,255,0.85) 39%, rgba(255,255,255,0.08) 58%, transparent 62%);
    opacity: 0.72;
    filter: drop-shadow(0 18px 28px rgba(83, 140, 147, 0.16));
}

.petal-field {
    right: -58px;
    top: 18px;
    width: 330px;
    height: 330px;
    background: url("tuzi-stickers.png") 91% 48% / 360% auto no-repeat;
    opacity: 0.28;
    transform: rotate(4deg);
}

.sticker {
    width: 178px;
    height: 178px;
    background-image: url("6_打call.png");
    background-repeat: no-repeat;
    opacity: 0.72;
    filter: drop-shadow(0 14px 24px rgba(47, 91, 96, 0.14));
}

.sticker-bunny {
    right: 18px;
    bottom: 94px;
    background-position: 0 0;
}

.sticker-moon {
    left: 16px;
    bottom: 104px;
    background-position: 45% 47%;
    opacity: 0.44;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1260px, calc(100% - 34px));
    margin: 0 auto;
    padding: 24px 0 38px;
}

.hero {
    position: relative;
    min-height: 338px;
    display: grid;
    grid-template-columns: minmax(250px, 370px) 1fr;
    gap: 0;
    overflow: hidden;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    background:
        linear-gradient(90deg, rgba(255,255,255,0.22), rgba(255,255,255,0.64) 42%, rgba(255,255,255,0.36)),
        url("tuzi-hero-bg.png") center center / cover;
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 11px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    box-shadow: inset 0 0 0 1px rgba(91, 158, 152, 0.12);
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 18px;
    width: 178px;
    height: 118px;
    background: url("tuzi-stickers.png") 100% 100% / 360% auto no-repeat;
    opacity: 0.62;
    filter: drop-shadow(0 12px 24px rgba(43, 91, 98, 0.12));
    pointer-events: none;
}

.hero-portrait {
    position: relative;
    z-index: 1;
    min-height: 338px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,0.5) 88%, rgba(255,255,255,0.76)),
        url("tuzi-poster.png") 43% 20% / 255% auto no-repeat;
    mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}


.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    align-content: center;
    justify-items: center;
    min-width: 0;
    padding: 48px 64px 50px 14px;
}

.mini-nav {
    position: absolute;
    top: 22px;
    right: 32px;
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    color: var(--ink-deep);
    background: rgba(255,255,255,0.62);
    border: 1px solid rgba(255,255,255,0.78);
    box-shadow: 0 8px 18px rgba(42, 93, 100, 0.09);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.mini-nav span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mini-nav span:nth-child(1)::before {
    content: "⌂";
}

.mini-nav span:nth-child(2)::before {
    content: "▦";
}

.mini-nav span:nth-child(3)::before {
    content: "♡";
    color: var(--rose);
}

h1 {
    margin: 0;
    color: var(--ink-deep);
    font-family: "STKaiti", "KaiTi", "Songti SC", "Microsoft YaHei", serif;
    font-size: 72px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 0;
    text-align: center;
    text-shadow: 0 6px 18px rgba(255,255,255,0.95), 0 1px 0 rgba(255,255,255,0.72);
}

h1::before,
h1::after {
    content: "";
    display: inline-block;
    width: 42px;
    height: 42px;
    margin: 0 12px;
    vertical-align: -4px;
    background: url("tuzi-stickers.png") 48% 46% / 390% auto no-repeat;
    opacity: 0.72;
}

h1::after {
    background-position: 71% 46%;
}

.hero-subtitle {
    margin: 14px 0 28px;
    color: #517a7f;
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0;
    text-align: center;
}

.hero-subtitle::before,
.hero-subtitle::after {
    content: "✦";
    margin: 0 14px;
    color: var(--gold);
}

.main-search {
    position: relative;
    display: block;
    width: min(650px, 100%);
}

.main-search input {
    width: 100%;
    height: 62px;
    padding: 0 66px 0 66px;
    border: 1px solid rgba(255,255,255,0.86);
    border-radius: 999px;
    outline: none;
    background: rgba(255,255,255,0.82);
    color: var(--ink-deep);
    box-shadow:
        inset 0 0 0 1px rgba(91, 158, 152, 0.16),
        0 18px 35px rgba(43, 91, 98, 0.13);
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    backdrop-filter: blur(16px);
}

.main-search input:focus {
    box-shadow:
        inset 0 0 0 1px rgba(91, 158, 152, 0.7),
        0 0 0 6px rgba(143, 201, 198, 0.18),
        0 18px 35px rgba(43, 91, 98, 0.13);
}

.bunny-dot,
.search-icon {
    position: absolute;
    z-index: 1;
    top: 50%;
    display: grid;
    place-items: center;
    transform: translateY(-50%);
}

.bunny-dot {
    left: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: transparent;
    background: url("tuzi-stickers.png") 0 0 / 395% auto no-repeat, rgba(255,255,255,0.62);
    box-shadow: 0 8px 18px rgba(43, 91, 98, 0.1);
}

.search-icon {
    right: 24px;
    color: var(--jade);
    font-size: 30px;
    line-height: 1;
}

.toolbar {
    position: relative;
    z-index: 2;
    margin: 18px auto 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(162px, 1fr)) auto auto auto;
    gap: 12px;
    align-items: end;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.76);
    background: rgba(255,255,255,0.66);
    box-shadow: var(--soft-shadow);
    backdrop-filter: blur(18px);
}

/*.toolbar::before,*/
/*.toolbar::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    pointer-events: none;*/
/*    background-image: url("tuzi-stickers.png");*/
/*    background-repeat: no-repeat;*/
/*    opacity: 0.42;*/
/*}*/

.toolbar::before {
    left: -12px;
    top: -32px;
    width: 86px;
    height: 86px;
    background-size: 400% auto;
    background-position: 90% 50%;
}

.toolbar::after {
    right: 10px;
    top: -36px;
    width: 92px;
    height: 92px;
    background-size: 360% auto;
    background-position: 69% 99%;
}

label {
    display: grid;
    gap: 7px;
    min-width: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
}

input,
select,
button {
    min-height: 46px;
    border-radius: 14px;
    font: inherit;
    letter-spacing: 0;
}

select {
    width: 100%;
    padding: 0 42px 0 14px;
    border: 1px solid rgba(255,255,255,0.86);
    outline: none;
    color: var(--ink-deep);
    background:
        linear-gradient(45deg, transparent 50%, var(--jade) 50%) calc(100% - 20px) 19px / 7px 7px no-repeat,
        linear-gradient(135deg, rgba(255,255,255,0.94), rgba(238,250,248,0.86));
    box-shadow: inset 0 0 0 1px rgba(91, 158, 152, 0.14);
    appearance: none;
    font-weight: 800;
}

select:focus {
    box-shadow:
        inset 0 0 0 1px rgba(91, 158, 152, 0.7),
        0 0 0 5px rgba(143, 201, 198, 0.18);
}

button {
    border: 0;
    padding: 0 18px;
    cursor: pointer;
    color: white;
    font-weight: 950;
    background: linear-gradient(135deg, #8bc7c1, #4f9691);
    box-shadow: 0 12px 25px rgba(73, 143, 138, 0.23);
    transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 31px rgba(73, 143, 138, 0.3);
}

button:active {
    transform: translateY(0);
}

button.ghost {
    color: var(--ink-deep);
    background: rgba(255,255,255,0.82);
    box-shadow: inset 0 0 0 1px rgba(91, 158, 152, 0.2);
}

.random-btn::before {
    content: "⤨ ";
}

.total-pill {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 18px;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, #83bcb9, #678f96);
    box-shadow: 0 12px 25px rgba(73, 143, 138, 0.17);
    white-space: nowrap;
    font-weight: 950;
}

.total-pill::after {
    content: "♪";
}

.status-line {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 14px 6px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
}

.status-line p {
    margin: 0;
}

#randomText {
    color: var(--ink-deep);
}

.song-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.song-card {
    position: relative;
    min-height: 154px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 15px;
    align-items: center;
    padding: 18px;
    border: 1px solid rgba(255,255,255,0.8);
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(255,255,255,0.88), rgba(238,250,248,0.7)),
        radial-gradient(circle at 0 0, rgba(233,184,185,0.23), transparent 36%);
    box-shadow: 0 14px 35px rgba(38, 91, 98, 0.13);
    cursor: pointer;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
    user-select: none;
}

.song-card:hover,
.song-card:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(91, 158, 152, 0.48);
    box-shadow: 0 24px 46px rgba(38, 91, 98, 0.21);
    outline: none;
}

.song-card::before {
    content: "";
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.75) 0 18%, transparent 19%),
        url("tuzi-disc-art.png") center / cover;
    box-shadow:
        inset 0 0 0 6px rgba(255,255,255,0.6),
        inset 0 0 0 1px rgba(203,169,111,0.35),
        0 10px 24px rgba(38, 91, 98, 0.16);
}

.song-card::after {
    content: "复制点歌";
    position: absolute;
    right: 14px;
    bottom: 12px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ink-deep);
    background: rgba(255,255,255,0.72);
    border: 1px solid rgba(95, 151, 154, 0.2);
    box-shadow: 0 8px 18px rgba(42, 93, 100, 0.08);
    font-size: 12px;
    font-weight: 900;
}

.song-info {
    min-width: 0;
    padding-right: 78px;
}

.song-title {
    position: relative;
    z-index: 1;
    margin: 0 0 9px;
    color: var(--ink-deep);
    font-size: 20px;
    font-weight: 950;
    line-height: 1.32;
    word-break: break-word;
    letter-spacing: 0;
}

.song-title::after {
    content: " ♥";
    color: var(--rose);
    font-size: 15px;
}

.badges {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border-radius: 999px;
    color: #416f73;
    background: rgba(218, 241, 236, 0.78);
    border: 1px solid rgba(255,255,255,0.68);
    font-size: 12px;
    font-weight: 900;
}

.badge:first-child::before {
    content: "◇ ";
    color: var(--gold);
}

.badge:last-child::before {
    content: "✿ ";
    color: var(--rose);
}

.empty-card {
    grid-template-columns: 1fr;
    min-height: 112px;
}

.empty-card::before,
.empty-card::after {
    display: none;
}

.empty-state {
    margin-top: 22px;
    padding: 26px;
    border-radius: var(--radius);
    background: rgba(255,255,255,0.75);
    box-shadow: var(--shadow);
}

.empty-state code {
    padding: 3px 7px;
    border-radius: 8px;
    background: #e8f6f2;
    color: var(--jade);
}

mark {
    padding: 0 2px;
    border-radius: 6px;
    background: rgba(255, 232, 190, 0.82);
    color: inherit;
}

.player-bar {
    position: fixed;
    left: 50%;
    bottom: 16px;
    z-index: 30;
    width: min(1210px, calc(100% - 36px));
    min-height: 104px;
    display: grid;
    grid-template-columns: 76px minmax(150px, 260px) auto minmax(180px, 1fr) 150px;
    gap: 18px;
    align-items: center;
    transform: translateX(-50%);
    padding: 14px 22px;
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.78);
    background:
        linear-gradient(rgba(255,255,255,0.76), rgba(255,255,255,0.82)),
        url("tuzi-player-bg.png") center center / cover;
    box-shadow: 0 20px 55px rgba(33, 79, 84, 0.23);
    backdrop-filter: blur(20px);
}

.player-bar::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.64);
    pointer-events: none;
}

.player-art {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(255,255,255,0.72) 0 18%, transparent 19%),
        url("tuzi-poster.png") 43% 31% / 320% auto no-repeat;
    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,0.62),
        0 10px 24px rgba(37, 88, 95, 0.18);
}

.player-meta {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 3px;
    min-width: 0;
}

.player-meta span,
.player-meta small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.player-meta strong {
    overflow: hidden;
    color: var(--ink-deep);
    font-size: 21px;
    line-height: 1.25;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-meta strong::after {
    content: " ♥";
    color: var(--rose);
    font-size: 15px;
}

.player-controls {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.control-mini,
.control-main {
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: white;
    background: linear-gradient(135deg, #89c6c1, #4f9691);
    box-shadow: 0 10px 22px rgba(73, 143, 138, 0.26);
    font-weight: 950;
}

.control-mini {
    width: 44px;
    height: 44px;
    font-size: 19px;
}

.control-main {
    width: 60px;
    height: 60px;
    font-size: 25px;
}

.player-progress,
.player-volume {
    position: relative;
    z-index: 1;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(94, 143, 148, 0.22);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
}

.player-progress span,
.player-volume span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--jade), var(--rose), var(--gold));
}

.player-progress span {
    width: 38%;
}

.player-volume span {
    width: 66%;
}

.copy-toast {
    position: fixed;
    left: 50%;
    bottom: 132px;
    z-index: 99;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: calc(100vw - 32px);
    padding: 14px 18px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #7bbcb4, #3f8e86);
    box-shadow: 0 16px 34px rgba(61, 143, 130, 0.32);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.copy-toast span {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,0.22);
}

.copy-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (max-width: 980px) {
    body {
        padding-bottom: 122px;
    }

    .hero {
        grid-template-columns: 220px 1fr;
        min-height: 286px;
    }

    .hero-portrait {
        min-height: 286px;
        background-size: 330% auto;
    }

    .hero-content {
        padding: 42px 28px 38px 0;
    }

    h1 {
        font-size: 52px;
    }

    .toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .total-pill,
    .random-btn,
    button.ghost {
        width: 100%;
    }

    .song-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }

    .player-bar {
        grid-template-columns: 66px minmax(120px, 1fr) auto;
        min-height: 92px;
    }

    .player-progress,
    .player-volume {
        display: none;
    }

    .player-art {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 680px) {
    body {
        padding-bottom: 104px;
        background:
            linear-gradient(rgba(242,250,249,0.92), rgba(226,241,240,0.96)),
            url("tuzi-hero-bg.png") center top / cover fixed;
    }

    .ambient-art,
    .mini-nav,
    .hero::after,
    h1::before,
    h1::after {
        display: none;
    }

    .page-shell {
        width: min(100% - 18px, 1260px);
        padding-top: 10px;
        padding-bottom: 22px;
    }

    .hero {
        min-height: 205px;
        grid-template-columns: 92px 1fr;
        border-radius: 22px;
    }

    .hero::before {
        inset: 7px;
        border-radius: 17px;
    }

    .hero-portrait {
        min-height: 205px;
        background-position: 42% 16%;
        background-size: 520% auto;
    }

    .hero-portrait::before {
        display: none;
    }

    .hero-content {
        align-content: center;
        justify-items: stretch;
        padding: 17px 13px 17px 0;
    }

    h1 {
        font-size: 34px;
        line-height: 1.15;
        text-align: left;
    }

    .hero-subtitle {
        display: none;
    }

    .main-search {
        margin-top: 14px;
    }

    .main-search input {
        height: 46px;
        padding-left: 48px;
        padding-right: 42px;
        border-radius: 14px;
        font-size: 14px;
    }

    .bunny-dot {
        left: 8px;
        width: 32px;
        height: 32px;
    }

    .search-icon {
        right: 14px;
        font-size: 24px;
    }

    .toolbar {
        margin-top: 10px;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        padding: 10px;
        border-radius: 18px;
    }

    .toolbar::before,
    .toolbar::after,
    label > span {
        display: none;
    }

    select,
    button,
    .total-pill {
        min-height: 42px;
        border-radius: 12px;
        font-size: 13px;
    }

    .total-pill {
        padding: 0 10px;
    }

    .status-line {
        margin: 10px 2px;
        font-size: 12px;
    }

    #randomText {
        display: none;
    }

    .song-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .song-card {
        min-height: 90px;
        grid-template-columns: 1fr;
        padding: 12px;
        border-radius: 15px;
    }

    .song-card::before,
    .song-card::after,
    .badges {
        display: none;
    }

    .song-info {
        padding-right: 0;
    }

    .song-title {
        margin: 0;
        font-size: 16px;
        line-height: 1.36;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .song-title::after {
        content: "";
    }

    .player-bar {
        bottom: 10px;
        width: calc(100% - 18px);
        min-height: 82px;
        grid-template-columns: 52px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 10px 12px;
        border-radius: 20px;
    }

    .player-bar::before {
        inset: 6px;
        border-radius: 15px;
    }

    .player-art {
        width: 50px;
        height: 50px;
    }

    .player-meta span,
    .player-meta small {
        font-size: 11px;
    }

    .player-meta strong {
        font-size: 16px;
    }

    .player-controls {
        gap: 7px;
    }

    .control-mini {
        display: none;
    }

    .control-main {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .copy-toast {
        bottom: 102px;
        padding: 12px 15px;
        font-size: 14px;
    }
}
