* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "Segoe UI", "PingFang SC", sans-serif;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: #1e272e;
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.menu-btn {
    font-size: 26px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
}
.menu-btn:hover { opacity: 0.8; }

.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: #1e272e;
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 20px;
    overflow-y: auto;
}
.sidebar.open { left: 0; }
.close-btn { text-align: right; padding: 12px 20px; }
.close-btn button {
    background: none; border: none; color: #fff; font-size: 28px; cursor: pointer;
}
.sidebar a {
    display: block;
    color: #dfe4ea;
    padding: 14px 28px;
    text-decoration: none;
    border-bottom: 1px solid #2f3a40;
    transition: background 0.2s;
}
.sidebar a:hover { background: #2c3e50; }

.overlay {
    position: fixed; top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.6); display: none; z-index:1000;
}
.overlay.show { display: block; }

.main-content { margin-top: 50px; }
body {
    background: #f4f7fc;
    color: #2d3436;
    line-height: 1.7;
    min-height: 100vh;
}

.blog-header {
    background: linear-gradient(135deg, #2c3e50, #1a2a36);
    color: white;
    padding: 40px 20px 30px;
    text-align: center;
}
.nav-links {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 24px;
}
.nav-links a { 
    color: #ecf0f1; 
    text-decoration: none; 
    font-weight: 500; 
    transition: color 0.2s;
    cursor: pointer;
}
.nav-links a:hover { color: #f1c40f; }

.container {
    max-width: 960px;
    margin: 40px auto;
    padding: 0 24px;
}
.article {
    background: white;
    padding: 28px;
    margin-bottom: 32px;
    border-radius: 24px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.article:hover { transform: translateY(-2px); }
.article .date {
    color: #636e72;
    font-size: 13px;
    border-left: 3px solid #74b9ff;
    padding-left: 12px;
    margin-bottom: 18px;
}

footer {
    text-align: center;
    padding: 30px 20px;
    color: #636e72;
    background: #fff9f0;
    font-size: 14px;
}

/* 唱片机样式 */
.music-player-container {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 1002;
}
.record-player {
    position: relative;
    cursor: pointer;
    width: 88px;
    height: 88px;
}
.record-disc {
    width: 88px;
    height: 88px;
    background: #111;
    border-radius: 50%;
    position: relative;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: transform 0.2s;
}
.record-disc:active { transform: scale(0.96); }
.record-image {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    background: #222;
}
.record-image.rotating {
    animation: spin 6s linear infinite;
}
@keyframes spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* 音频加载状态提示 */
.audio-loading {
    opacity: 0.6;
    cursor: wait;
}
.songlist-trigger {
    position: absolute;
    top: -12px;
    left: -12px;
    width: 36px;
    height: 36px;
    background: #2c3e50;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f39c12;
    color: white;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.2s;
}
.songlist-trigger:hover { background: #e67e22; transform: scale(1.05); }

.song-panel {
    position: absolute;
    bottom: 100px;
    right: 0;
    width: 280px;
    background: rgba(30, 30, 40, 0.98);
    backdrop-filter: blur(8px);
    border-radius: 24px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: 0.25s ease;
    z-index: 1100;
    box-shadow: 0 12px 28px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.15);
}
.song-panel.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.song-panel h4 {
    color: #f1c40f;
    padding: 12px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    font-size: 1rem;
}
.song-list-container {
    max-height: 320px;
    overflow-y: auto;
}
.song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.song-item:hover {
    background: rgba(255,255,255,0.15);
}
.song-thumb {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #2c3e50;
}
.song-info {
    flex: 1;
}
.song-name {
    font-size: 14px;
    color: #fff;
    font-weight: bold;
    line-height: 1.3;
}
.song-artist {
    font-size: 11px;
    color: #b0b0b0;
}

.now-playing-tip {
    position: absolute;
    bottom: -32px;
    right: 0;
    font-size: 10px;
    background: rgba(0,0,0,0.75);
    color: #ffd966;
    padding: 4px 10px;
    border-radius: 40px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(2px);
    font-weight: 500;
}

@media (max-width: 500px) {
    .music-player-container {
        bottom: 18px;
        right: 18px;
    }
    .song-panel {
        width: 260px;
        bottom: 90px;
    }
    .now-playing-tip {
        font-size: 9px;
        bottom: -28px;
    }
}