:root {
    --rj_bg: 240, 248, 255;
    --rj_wz: 15, 23, 42;
    --rj_hs: 100, 116, 139;
    --rj_zy: 59, 130, 246;
    --rj_fj: 139, 92, 246;

    --yj_bg: 15, 23, 42;
    --yj_wz: 248, 250, 252;
    --yj_hs: 148, 163, 184;
    --yj_zy: 76, 201, 240;
    --yj_fj: 67, 97, 238;

    --dq_bg: var(--rj_bg);
    --dq_wz: var(--rj_wz);
    --dq_hs: var(--rj_hs);
    --dq_zy: var(--rj_zy);
    --dq_fj: var(--rj_fj);

    --xn_ys: 231, 76, 60;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: linear-gradient(135deg, rgba(var(--dq_bg), 1) 0%, rgba(220, 230, 245, 1) 100%);
    color: rgba(var(--dq_wz), 1);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
    touch-action: manipulation;
    transition: all 0.8s ease;
}

body.yj_ms {
    --dq_bg: var(--yj_bg);
    --dq_wz: var(--yj_wz);
    --dq_hs: var(--yj_hs);
    --dq_zy: var(--yj_zy);
    --dq_fj: var(--yj_fj);
    background: linear-gradient(135deg, rgba(var(--yj_bg), 1) 0%, rgba(30, 41, 59, 1) 100%);
}

.container {
    text-align: center;
    padding: 1.5rem;
    max-width: 800px;
    width: 100%;
    z-index: 2;
    animation: fadeIn 1s ease-out;
}

.logo {
    margin-bottom: 1.5rem;
}

.studio-logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    background-image: url('/image/icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    animation: float 3s ease-in-out infinite;
    transition: all 0.8s ease;
}

body.yj_ms .studio-logo {
    filter: brightness(1.2) contrast(1.1) saturate(1.1);
}

h1 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    background: linear-gradient(to right,
            rgba(var(--dq_zy), 1),
            rgba(var(--dq_fj), 1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.8s ease;
}

.subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(var(--dq_hs), 1);
    font-weight: 300;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.8s ease;
}

.construction-text {
    font-size: 1.2rem;
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(var(--dq_wz), 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(var(--dq_zy), 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: rgba(var(--dq_wz), 1);
    transition: all 0.8s ease;
}

.countdown-container {
    margin: 1.5rem 0;
    padding: 1rem;
    background: rgba(var(--dq_wz), 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(var(--xn_ys), 1);
    backdrop-filter: blur(5px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    color: rgba(var(--dq_wz), 1);
    transition: all 0.8s ease;
}

.countdown-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: rgba(var(--xn_ys), 1);
    font-weight: 500;
}

.countdown-timer {
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(var(--dq_wz), 1);
    font-family: monospace;
    min-height: 2rem;
}

.progress-container {
    width: 90%;
    max-width: 300px;
    height: 6px;
    background: rgba(var(--dq_wz), 0.1);
    border-radius: 3px;
    margin: 1.5rem auto;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg,
            rgba(var(--dq_zy), 1),
            rgba(var(--dq_fj), 1));
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.progress-bar:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.3),
            rgba(255, 255, 255, 0));
    animation: shimmer 2s infinite;
}

.beian {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(var(--dq_wz), 0.1);
    font-size: 0.8rem;
    color: rgba(var(--dq_hs), 1);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.beian a {
    color: #6c9;
    text-decoration: none;
    margin: 0.2rem 0;
    transition: color 0.3s ease;
    word-break: break-all;
    text-align: center;
    padding: 0 0.5rem;
}

.beian a:hover {
    color: rgba(var(--dq_zy), 1);
    text-decoration: underline;
}

.beian img {
    width: 20px;
    height: 20px;
    vertical-align: middle;
    margin-right: 5px;
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.7rem;
}

.skeleton {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    opacity: 0.05;
    overflow: hidden;
}

.bone {
    position: absolute;
    bottom: 0;
    width: 30px;
    height: 80px;
    background: rgba(var(--dq_wz), 0.7);
    border-radius: 15px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.bone:nth-child(1) {
    left: 10%;
    animation: rise 8s ease-in-out infinite;
}

.bone:nth-child(2) {
    left: 30%;
    height: 60px;
    animation: rise 10s ease-in-out infinite 1s;
}

.bone:nth-child(3) {
    left: 50%;
    height: 100px;
    animation: rise 12s ease-in-out infinite 2s;
}

.bone:nth-child(4) {
    left: 70%;
    height: 70px;
    animation: rise 9s ease-in-out infinite 0.5s;
}

.bone:nth-child(5) {
    left: 90%;
    height: 50px;
    animation: rise 11s ease-in-out infinite 1.5s;
}

.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    z-index: 1000;
}

.theme-switch {
    width: 50px;
    height: 50px;
    background: rgba(var(--dq_wz), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--dq_wz), 0.2);
    transition: all 0.8s ease;
}

.theme-switch:hover {
    background: rgba(var(--dq_wz), 0.2);
    transform: scale(1.1);
}

.theme-icon {
    font-size: 1.5rem;
    transition: all 0.8s ease;
}

.music-control {
    width: 50px;
    height: 50px;
    background: rgba(var(--dq_wz), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--dq_wz), 0.2);
    transition: all 0.8s ease;
}

.music-control:hover {
    background: rgba(var(--dq_wz), 0.2);
    transform: scale(1.1);
}

.music-icon {
    font-size: 1.5rem;
}

/* 11月13日 新增遮罩层 */
.music-mask {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 999;
    display: none;
}

.music-panel.active~.music-mask {
    display: block;
}

/* 11月13日 新增遮罩层 */

.music-panel {
    width: 200px;
    background: rgba(var(--dq_bg), 0.8);
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--dq_wz), 0.2);
    display: none;
    flex-direction: column;
    align-items: center;
    transition: all 0.8s ease;
    z-index: 1000;
}

.music-panel.active {
    display: flex;
}

.song-info {
    width: 100%;
    text-align: center;
    margin-bottom: 1rem;
    color: rgba(var(--dq_wz), 0.9);
}

.song-title {
    font-weight: bold;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-artist {
    font-size: 0.8rem;
    opacity: 0.7;
}

.music-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(var(--dq_wz), 0.1);
    border-radius: 2px;
    margin: 0.5rem 0;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.music-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg,
            rgba(var(--dq_zy), 1),
            rgba(var(--dq_fj), 1));
    border-radius: 2px;
    position: relative;
    transition: width 0.1s linear;
}

.music-progress-thumb {
    width: 8px;
    height: 8px;
    background: rgba(var(--dq_wz), 0.9);
    border-radius: 50%;
    position: absolute;
    right: -4px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.music-progress-container:hover .music-progress-thumb,
.music-progress-container.dragging .music-progress-thumb {
    opacity: 1;
}

.music-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.music-btn {
    width: 30px;
    height: 30px;
    background: rgba(var(--dq_wz), 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(var(--dq_wz), 0.8);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(var(--dq_zy), 0.8);
    color: white;
    transform: scale(1.1);
}

/* 音乐播放器样式增强 */
.playlist-selector {
    margin-bottom: 1rem;
    width: 100%;
}

.playlist-selector select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid rgba(var(--dq_wz), 0.2);
    border-radius: 5px;
    background: rgba(var(--dq_bg), 0.8);
    color: rgba(var(--dq_wz), 0.9);
    font-size: 0.9rem;
}

.music-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: center;
}

.music-btn {
    width: 40px;
    height: 40px;
    background: rgba(var(--dq_wz), 0.1);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(var(--dq_wz), 0.8);
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.music-btn:hover {
    background: rgba(var(--dq_zy), 0.8);
    color: white;
    transform: scale(1.1);
}



@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes rise {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    25% {
        transform: translateY(-20px) rotate(5deg);
    }

    50% {
        transform: translateY(-40px) rotate(0);
    }

    75% {
        transform: translateY(-20px) rotate(-5deg);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 600px) {
    .studio-logo {
        width: 150px;
        height: 150px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .construction-text {
        font-size: 1.4rem;
    }

    .countdown-title {
        font-size: 1.4rem;
    }

    .countdown-timer {
        font-size: 1.8rem;
    }
}

@media (min-width: 1024px) {
    .studio-logo {
        width: 180px;
        height: 180px;
    }

    h1 {
        font-size: 3.5rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .construction-text {
        font-size: 1.8rem;
    }

    .countdown-title {
        font-size: 1.6rem;
    }

    .countdown-timer {
        font-size: 2rem;
    }
}

/* 响应式调整 */
@media (max-width: 600px) {
    .music-buttons {
        gap: 0.3rem;
    }

    .music-btn {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}