@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
}
body {
    background-color: #0f0c29;
    background: linear-gradient(to bottom, #0f0c29, #302b63, #24243e);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* 动画定义 */
@keyframes scroll-road {
    0% { background-position: 0 0; }
    100% { background-position: -80px 0; }
}
@keyframes float-clouds {
    from { transform: translateX(0); }
    to { transform: translateX(-200px); }
}
@keyframes glow-moon {
    0% { box-shadow: 0 0 20px #fff; opacity: 0.8; }
    50% { box-shadow: 0 0 60px #ffeb3b, 0 0 10px #ffeb3b; opacity: 1; }
    100% { box-shadow: 0 0 20px #fff; opacity: 0.8; }
}
@keyframes pedal-wheel {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}
@keyframes bobbing {
    from { transform: translateY(0); }
    to { transform: translateY(-3px); }
}

/* 场景容器 */
.scene {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* 天空与月亮 */
.sky {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60%;
}
.moon {
    position: absolute;
    top: 20%;
    right: 20%;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, #ffff00, #ffaa00);
    border-radius: 50%;
    animation: glow-moon 4s infinite ease-in-out;
}

/* 云层 */
.clouds {
    position: absolute;
    top: 20px;
    width: 100%;
    height: 150px;
    opacity: 0.3;
    pointer-events: none;
}
.cloud-fast svg { animation: float-clouds 20s linear infinite; }
.cloud-slow svg { animation: float-clouds 35s linear infinite; }

/* 地面 */
.ground {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 40%;
    background-color: #1a1a2e;
    border-top: 2px solid #3e89f5;
}

/* 道路线 - 横向虚线滚动，模拟前进 */
.road-line {
    position: absolute;
    left: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(90deg, #ffffff 0, #ffffff 25px, transparent 25px, transparent 50px);
    animation: scroll-road 1s linear infinite;
}
.line-1 { 
    top: 45%; 
    opacity: 0.4; 
    animation-duration: 1.8s;
    transform: scaleY(0.8);
}
.line-2 { 
    top: 60%; 
    animation-duration: 0.8s;
    opacity: 0.9;
}

/* 主体角色容器 */
.character-container {
    position: absolute;
    bottom: 18%;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    z-index: 10;
}
.bicycle-svg {
    width: 100%;
    height: 100%;
}

/* 车轮单独旋转 */
#wheel-back {
    transform-origin: 60px 120px;
    animation: pedal-wheel 1.5s linear infinite;
}
#wheel-front {
    transform-origin: 220px 120px;
    animation: pedal-wheel 1.5s linear infinite;
}

/* 鹈鹕身体上下浮动效果 */
.character-container svg ellipse,
.character-container svg circle:not(.wheel circle),
.character-container svg path:not(#wing-anim) {
    transform-origin: center;
    animation: bobbing 0.8s ease-in-out infinite alternate;
}

.text-overlay {
    position: absolute;
    bottom: -40px;
    width: 100%;
    text-align: center;
    color: #e0e0e0;
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 2px;
}
.text-overlay h1 { font-size: 1.5rem; text-shadow: 0 0 10px #3e89f5; }
.text-overlay p { font-size: 0.8rem; opacity: 0.7; margin-top: 5px; }

/* 复古MP3播放器样式 */
.music-player.mp3-style {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    background: linear-gradient(145deg, #d0d0d0, #a8a8a8);
    border-radius: 12px;
    padding: 12px;
    box-shadow: 
        0 6px 15px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.6),
        inset 0 -1px 0 rgba(0,0,0,0.2);
    z-index: 100;
    border: 1px solid #888;
}
.mp3-screen {
    background: #0a192f;
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 12px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
    border: 1px solid #333;
}
.mp3-title {
    color: #64ffda;
    font-family: 'Orbitron', monospace;
    font-size: 0.75rem;
    margin-bottom: 8px;
    text-shadow: 0 0 5px rgba(100,255,218,0.5);
    letter-spacing: 1px;
}
.progress-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
}

/* 进度条 - 适配液晶屏幕 */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    background: #64ffda;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 4px rgba(100,255,218,0.8);
    transition: transform 0.1s;
}
.slider::-webkit-slider-thumb:hover { transform: scale(1.2); }

.time-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: #64ffda;
    font-family: monospace;
    text-shadow: 0 0 3px rgba(100,255,218,0.5);
}

/* 音量控制条 */
.volume-container {
    display: flex;
    align-items: center;
    gap: 6px;
}
.volume-slider {
    -webkit-appearance: none;
    flex: 1;
    height: 3px;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 8px;
    height: 8px;
    background: #64ffda;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 3px rgba(100,255,218,0.8);
}

/* 控制按钮区 */
.mp3-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.ctrl-btn {
    background: linear-gradient(145deg, #f0f0f0, #c0c0c0);
    border: none;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}
.ctrl-btn:hover { transform: scale(1.05); }
.ctrl-btn:active { transform: scale(0.95); }
.ctrl-btn.active {
    background: linear-gradient(145deg, #64ffda, #00bfa5);
    box-shadow: 0 0 8px rgba(100,255,218,0.6);
}
.ctrl-btn.active svg { fill: #fff; }

.play-control {
    background: linear-gradient(145deg, #f0f0f0, #c0c0c0);
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 
        0 3px 6px rgba(0,0,0,0.3),
        inset 0 1px 0 rgba(255,255,255,0.8);
    transition: all 0.2s ease;
}
.play-control:hover { 
    transform: scale(1.05); 
    box-shadow: 
        0 4px 8px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.9);
}
.play-control:active {
    transform: scale(0.95);
    box-shadow: 
        0 1px 2px rgba(0,0,0,0.3),
        inset 0 1px 2px rgba(0,0,0,0.2);
}