@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    div[style*="max-width: 400px"] {
        width: 90%;
        margin: 10px auto;
        padding: 15px;
    }

    input,
    select {
        width: 100%;
    }

    button {
        width: 100%;
        padding: 12px;
    }
}

nav {
    display: flex;
    justify-content: space-between;
    padding: 10px;
}

.product-grid {
    display: flex;
    flex-wrap: wrap;
}

.product {
    margin: 10px;
}

.brg {
    text-align: left;
}

a {
    text-decoration: none;
}

* {
    cursor: default !important;
}

/* 音乐播放器样式 */
.music-player {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.player-btn {
    background-color: #0078d4;
    color: white;
    border: none;
    border-radius: 4px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    font-size: 16px;
}

.player-btn:hover {
    background-color: #005a9e;
}

#loop-btn {
    background-size: 24px 24px;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 4px;
    width: 50px;
    height: 50px;
    font-size: 0;
    /* 隐藏文本，只显示背景图片 */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移除Unicode字符，只使用外部图片 */
#loop-btn.loop-off::before,
#loop-btn.loop-list::before,
#loop-btn.loop-single::before,
#loop-btn.loop-random::before {
    content: none;
}

/* 顺序播放模式 */
#loop-btn.loop-off {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/play.png');
}

/* 列表循环模式 */
#loop-btn.loop-list {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/repeat.png');
}

/* 单曲循环模式 */
#loop-btn.loop-single {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/repeat-one.png');
}

/* 随机播放模式 */
#loop-btn.loop-random {
    background-image: url('https://img.icons8.com/ios-filled/50/ffffff/shuffle.png');
}

#loop-btn:hover {
    background-color: #005a9e;
}

.player-info {
    text-align: center;
    margin: 10px 0;
}

.current-song {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.player-status {
    font-size: 14px;
    color: #666;
}

.music-list {
    list-style: none;
    padding: 0;
    max-height: 300px;
    overflow-y: auto;
}

.music-item {
    padding: 10px;
    margin: 5px 0;
    background-color: #f5f5f5;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.music-item:hover {
    background-color: #e0e0e0;
}

.music-item.playing {
    background-color: #0078d4;
    color: white;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background-color: #ddd;
    border-radius: 3px;
    margin: 10px 0;
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: #0078d4;
    width: 0%;
    transition: width 0.1s;
}

/* 播放器容器布局 */
.player-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.player-main {
    flex: 1;
}

/* 分享按钮样式 */
#share-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.share-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

#share-link-btn {
    background-color: #0078d4;
    color: white;
}

#share-link-btn:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#share-wechat-btn {
    background-color: #07c160;
    color: white;
}

#share-wechat-btn:hover {
    background-color: #06a952;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

#share-qq-btn {
    background-color: #12b7f5;
    color: white;
}

#share-qq-btn:hover {
    background-color: #0f9bd4;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* 视频容器样式 */
.video-container {
    margin: 15px 0;
    transition: all 0.3s ease;
}

.video-container.hidden {
    display: none;
}

.video-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin: 0 5px;
    transition: background-color 0.3s;
}

.video-btn:hover {
    background-color: #218838;
}

.video-btn.hidden {
    display: none;
}

/* 进度条容器样式 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.current-time,
.total-time {
    font-size: 12px;
    color: #666;
    min-width: 40px;
}

/* 更多控制按钮容器 */
.more {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.video-div {
    display: flex;
    align-items: center;
}

/* 歌词容器样式 */
.lyrics-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 15px;
    margin: 20px auto;
    max-width: 600px;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    /* 自定义滚动条样式 */
    scrollbar-width: thin;
    scrollbar-color: #0078d4 rgba(0, 0, 0, 0.1);
}

/* Webkit浏览器自定义滚动条 */
.lyrics-container::-webkit-scrollbar {
    width: 12px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    margin: 5px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.lyrics-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #005a9e, #003d73);
}

.lyrics-container::-webkit-scrollbar-corner {
    background: transparent;
}

/* 歌词内容样式优化 */
.lyrics-content {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
    padding-right: 5px;
    /* 为滚动条留出空间 */
}

.lyrics-header {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.lyrics-content {
    font-size: 14px;
    line-height: 1.6;
    text-align: center;
}

.lyric-current {
    color: #0078d4;
    font-weight: bold;
    font-size: 16px;
    margin: 5px 0;
    cursor: pointer;
}

.lyric-normal {
    color: #666;
    margin: 3px 0;
    cursor: pointer;
}

.lyric-normal:hover {
    color: #333;
}

.lyric-current {
    color: #0078d4;
    font-weight: bold;
    font-size: 16px;
    background-color: rgba(0, 120, 212, 0.1);
    border-radius: 5px;
    padding: 8px 0;
    transition: all 0.3s ease;
    transform: scale(1.05);
    cursor: pointer;
}

.lyric-current:hover {
    background-color: rgba(0, 120, 212, 0.2);
}

.lyric-current {
    color: #0078d4;
    font-weight: bold;
    font-size: 16px;
    background-color: rgba(0, 120, 212, 0.1);
    border-radius: 5px;
    padding: 8px 0;
    transition: all 0.3s ease;
    transform: scale(1.05);
    cursor: pointer;
}

.lyric-current:hover {
    background-color: rgba(0, 120, 212, 0.2);
}

/* VIP音乐样式 */
.music-item.vip {
    background-color: #fff3cd !important;
    border-left: 4px solid #ffc107 !important;
    position: relative;
}

.vip-badge {
    background-color: #ffc107;
    color: #856404;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.music-item-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 下载按钮样式 */
.download-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.download-btn:hover:not(:disabled) {
    background-color: #218838;
}

.download-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 下载进度条样式 */
.download-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 5px 0;
    width: 100%;
}

.download-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.download-progress {
    height: 100%;
    background: linear-gradient(90deg, #28a745, #20c997);
    width: 0%;
    transition: width 0.5s ease-in-out;
    border-radius: 4px;
}

.download-progress-text {
    font-size: 12px;
    color: #495057;
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

/* 下载状态提示 */
.download-status {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin: 5px 0;
    font-style: italic;
}

/* 下载状态提示 */
.download-status {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin: 5px 0;
    font-style: italic;
}

/* 专业下载信息样式 */
.download-info-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 10px 0;
    font-size: 11px;
    color: #495057;
}

.download-info-item {
    display: flex;
    align-items: center;
    gap: 5px;
    background-color: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.download-info-label {
    font-weight: bold;
    color: #6c757d;
}

.download-info-value {
    color: #495057;
}

/* 连接节点显示 */
.connection-nodes {
    display: flex;
    gap: 5px;
    margin: 5px 0;
}

.connection-node {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #28a745;
    animation: pulse 2s infinite;
}

.connection-node.inactive {
    background-color: #6c757d;
    animation: none;
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.3;
    }
}

/* 下载队列样式 */
.download-queue {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-width: 300px;
    display: none;
}

.queue-header {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #495057;
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 5px;
}

.queue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 5px;
    border-radius: 4px;
    margin-bottom: 5px;
    background-color: #f8f9fa;
}

.queue-item.active {
    background-color: #e3f2fd;
    border-left: 3px solid #0078d4;
}

.queue-item-name {
    flex: 1;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.queue-item-progress {
    width: 40px;
    text-align: right;
    font-size: 11px;
    font-weight: bold;
}

.export-link-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    max-width: 600px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.export-header {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.export-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.export-controls select {
    flex: 1;
    padding: 8px;
    border: 1px solid #0078d4;
    border-radius: 4px;
    outline: none;
}

.export-controls button {
    background-color: #0078d4;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.export-controls button:hover {
    background-color: #005a9e;
}

.export-result {
    display: none;
}

.export-result input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.export-result button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.export-result button:hover {
    background-color: #218838;
}

.export-result ul {
    margin: 5px 0;
    padding-left: 20px;
}

.export-result li {
    margin-bottom: 3px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .export-controls {
        flex-direction: column;
    }

    .export-link-container {
        margin: 10px;
        padding: 15px;
    }
}

/* 基础样式重置和现代化设计 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: default !important;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

/* 导航栏美化 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-brand {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #34495e;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-links a:hover {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

/* 主容器美化 */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* 音乐播放器现代化设计 */
.music-player {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-player:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
}

/* 播放器控制按钮美化 */
.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin: 25px 0;
}

.player-btn {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 120, 212, 0.3);
}

.player-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(0, 120, 212, 0.4);
}

.player-btn:active {
    transform: scale(0.95);
}

/* 播放器信息美化 */
.player-info {
    text-align: center;
    margin: 20px 0;
}

.current-song {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.player-status {
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 500;
}

/* 音乐列表现代化设计 */
.music-list {
    list-style: none;
    padding: 0;
    max-height: 400px;
    overflow-y: auto;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.8);
    margin: 20px 0;
}

.music-list::-webkit-scrollbar {
    width: 8px;
}

.music-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.music-list::-webkit-scrollbar-thumb {
    background: #0078d4;
    border-radius: 4px;
}

.music-list::-webkit-scrollbar-thumb:hover {
    background: #005a9e;
}

.music-item {
    padding: 15px 20px;
    margin: 8px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.music-item:hover {
    background: rgba(0, 120, 212, 0.1);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.music-item.playing {
    background: linear-gradient(135deg, #0078d4, #005a9e);
    color: white;
    transform: scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.3);
}

/* 进度条美化 */
.progress-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 25px 0;
}

.current-time,
.total-time {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    min-width: 50px;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #0078d4, #00b7ff);
    width: 0%;
    transition: width 0.1s ease;
    border-radius: 4px;
    position: relative;
}

.progress::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background: #0078d4;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 120, 212, 0.5);
}

/* VIP音乐特殊样式 */
.vip-badge {
    background: linear-gradient(135deg, #ffc107, #ffd54f);
    color: #856404;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
}

/* 下载按钮美化 */
.download-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.download-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .main-container {
        padding: 20px 10px;
    }

    .music-player {
        margin: 10px;
        padding: 20px;
        border-radius: 15px;
    }

    .player-controls {
        gap: 10px;
    }

    .player-btn {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }

    .current-song {
        font-size: 20px;
    }

    .music-item {
        padding: 12px 15px;
        margin: 5px;
    }

    .nav {
        flex-direction: column;
        gap: 10px;
        padding: 10px 20px;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.music-player,
.lyrics-container {
    animation: fadeIn 0.6s ease-out;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

#video-div {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.video-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 120px;
}

#video {
    background-color: #0078d4;
    color: white;
}

#video:hover {
    background-color: #005a9e;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hidden {
    display: none;
}