:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
}
@font-face {
    font-family: GuiguiFontStyle;
    src: url("https://cdn.cdnkk.xyz/fonts.woff2") format("woff2");
    font-display: swap;
}
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    background-color: var(--secondary-color);
}

::-webkit-scrollbar-track {
    box-shadow: inset 0 0 0 var(--secondary-color);
}
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    /* font-family: 'Segoe UI', system-ui, sans-serif; */
    font-family: GuiguiFontStyle !important;
}
.container {
    max-width: 800px;
    padding: 2rem;
    padding-bottom: 2rem; /* 增加底部内边距 */
}
.header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 2.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.1); /* 添加文字阴影 */
}

.card-form {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05); /* 添加边框增强层次感 */
}

.form-control {
    border: 2px solid #e0e6ed;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05); /* 添加内阴影 */
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.25);
}

.btn-primary {
    background: linear-gradient(to right, #3498db, #2c3e50); /* 添加渐变效果 */
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* 添加阴影 */
}

.btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #1a252f);
    transform: translateY(-3px); /* 增强悬停效果 */
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15); /* 增强阴影 */
}

.result-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 1px solid rgba(0, 0, 0, 0.05); /* 添加边框增强层次感 */
}

.song-info img {
    width: 100%;
    max-width: 300px;
    border-radius: 1rem;
    margin: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.song-info img:hover {
    transform: scale(1.03);
}

.aplayer {
    border-radius: 1rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.lyric-box {
    max-height: 300px;
    overflow-y: auto;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

/* 添加进度条样式 */
.progress-container {
    margin-top: 20px;
    margin-bottom: 30px;
}
.progress {
    height: 25px;
    border-radius: 13px;
    overflow: visible;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); /* 添加内阴影 */
}
.progress-bar {
    transition: width 0.3s ease;
    border-radius: 13px;
    position: relative;
}
#progress-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    .header h1 {
        font-size: 2rem;
    }
    
    .header {
        padding: 1.5rem;
    }
    
    .card-form, .result-card {
        padding: 1.5rem;
    }

    .form-control {
        font-size: 0.9rem;
    }
}
.search-results {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 0.75rem;
    background: #f8f9fa;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.search-result-item {
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    border-radius: 0.5rem; /* 添加圆角 */
    margin-bottom: 0.25rem; /* 增加间距 */
}
.search-result-item:hover {
    background-color: rgba(52, 152, 219, 0.1);
    border-left: 3px solid var(--secondary-color);
}
.search-result-item .badge {
    font-size: 0.7rem;
}
.search-result-item .song-title {
    font-weight: 600;
}
.search-result-item .song-artist {
    font-size: 0.85rem;
    color: #6c757d;
}
.search-result-item .song-album {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 768px) {
    .search-result-item .song-album {
        display: none;
    }
}
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    z-index: 100;
}
.theme-switch {
    display: inline-block;
    height: 28px;
    position: relative;
    width: 54px;
}
.theme-switch input {
    display: none;
}
.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
}
.slider:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 20px;
    z-index: 2;
}
input:checked + .slider {
    background-color: #2c3e50;
}
input:checked + .slider:before {
    transform: translateX(26px);
}
.slider.round {
    border-radius: 34px;
}
.slider.round:before {
    border-radius: 50%;
}
:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --bg-color: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --card-bg: rgba(255, 255, 255, 0.95);
    --text-color: #333;
    --text-muted: #6c757d;
    --border-color: #e0e6ed;
}
[data-theme="dark"] {
    --primary-color: #ecf0f1;
    --secondary-color: #3498db;
    --bg-color: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    --card-bg: rgba(44, 62, 80, 0.95);
    --text-color: #ecf0f1;
    --text-muted: #bdc3c7;
    --border-color: #34495e;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}
.header, .card-form, .result-card {
    background: var(--card-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
}
.header h1 {
    color: var(--primary-color);
}
.text-muted {
    color: var(--text-muted) !important;
}
.form-control {
    border-color: var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
}
.form-control:focus {
    background-color: var(--card-bg);
    color: var(--text-color);
}
[data-theme="dark"] .card {
    background-color: var(--card-bg);
    border-color: var(--border-color);
}
[data-theme="dark"] .card-header {
    background-color: rgba(44, 62, 80, 0.8);
    border-color: var(--border-color);
}
[data-theme="dark"] .btn-link {
    color: var(--text-color);
}
[data-theme="dark"] .list-group-item {
    background-color: var(--card-bg);
    color: var(--text-color);
    border-color: var(--border-color);
}
[data-theme="dark"] .list-group-item-action:hover {
    background-color: rgba(52, 73, 94, 0.7);
}
[data-theme="dark"] .badge.bg-light {
    background-color: rgba(52, 73, 94, 0.8) !important;
    color: #ecf0f1 !important;
}
[data-theme="dark"] .accordion-button {
    background-color: var(--card-bg);
    color: var(--text-color);
}
[data-theme="dark"] .accordion-body {
    background-color: var(--card-bg);
    color: var(--text-color);
}
[data-theme="dark"] .bg-light {
    background-color: rgba(44, 62, 80, 0.8) !important;
}
[data-theme="dark"] .bg-white {
    background-color: rgba(44, 62, 80, 0.9) !important;
}
[data-theme="dark"] .search-results {
    background-color: var(--card-bg);
}
[data-theme="dark"] .text-dark {
    color: #ecf0f1 !important;
}
[data-theme="dark"] .text-primary {
    color: #3498db !important;
}
[data-theme="dark"] .fa-music.text-muted,
[data-theme="dark"] .text-muted {
    color: #bdc3c7 !important;
}
[data-theme="dark"] .lyric-box {
    background-color: rgba(44, 62, 80, 0.7);
    color: var(--text-color);
}
[data-theme="dark"] .progress {
    background-color: rgba(242, 243, 245, 0.5);
}
[data-theme="dark"] .alert-light {
    background-color: rgba(44, 62, 80, 0.7);
    color: var(--text-color);
    border-color: #3498db !important;
}
[data-theme="dark"] .alert-light .fas.fa-exclamation-circle {
    color: #3498db !important;
}
[data-theme="dark"] .alert-light p {
    color: var(--text-color);
}
[data-theme="dark"] .aplayer {
    background-color: rgba(44, 62, 80, 0.9) !important;
    color: var(--text-color) !important;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] .aplayer .aplayer-info {
    border-top: none;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-music .aplayer-title,
[data-theme="dark"] .aplayer .aplayer-info .aplayer-music .aplayer-author {
    color: var(--text-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-time {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar {
    background: #4a5c6a !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-loaded {
    background: #5d7185 !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played {
    background: var(--secondary-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-bar-wrap .aplayer-bar .aplayer-played .aplayer-thumb {
    background: var(--secondary-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon path {
    fill: var(--text-muted) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-time .aplayer-icon:hover path {
    fill: var(--text-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar {
    background: #4a5c6a !important;
}
[data-theme="dark"] .aplayer .aplayer-info .aplayer-controller .aplayer-volume-wrap .aplayer-volume-bar-wrap .aplayer-volume-bar .aplayer-volume {
    background: var(--secondary-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-list {
    background-color: rgba(44, 62, 80, 0.9) !important;
}
[data-theme="dark"] .aplayer .aplayer-list ol li {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
}
[data-theme="dark"] .aplayer .aplayer-list ol li:hover {
    background: rgba(52, 73, 94, 0.8) !important;
}
[data-theme="dark"] .aplayer .aplayer-list ol li.aplayer-list-light {
    background: rgba(52, 73, 94, 0.8) !important;
}
[data-theme="dark"] .aplayer .aplayer-list ol li .aplayer-list-cur {
    background-color: var(--secondary-color) !important;
}
[data-theme="dark"] .aplayer .aplayer-list ol li .aplayer-list-index,
[data-theme="dark"] .aplayer .aplayer-list ol li .aplayer-list-title,
[data-theme="dark"] .aplayer .aplayer-list ol li .aplayer-list-author {
    color: var(--text-color) !important;
}
[data-theme="dark"] .aplayer-container {
    background-color: rgba(44, 62, 80, 0.7) !important;
    border-radius: 1rem;
    overflow: hidden;
}
[data-theme="dark"] .aplayer-lrc {
    text-shadow: 0 0 1px rgba(0, 0, 0, 0.5) !important;
    color: var(--text-color) !important;
    background-color: transparent !important;
}
[data-theme="dark"] .aplayer-lrc:before,
[data-theme="dark"] .aplayer-lrc:after {
    background: linear-gradient(180deg, rgba(44, 62, 80, 0.9) 0%, rgba(44, 62, 80, 0) 100%) !important;
}
[data-theme="dark"] .aplayer-lrc:after {
    background: linear-gradient(180deg, rgba(44, 62, 80, 0) 0%, rgba(44, 62, 80, 0.9) 100%) !important;
}
[data-theme="dark"] .aplayer-lrc-contents {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .aplayer-lrc-current {
    color: var(--secondary-color) !important;
    font-weight: bold;
}

/* 新增底部样式 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

[data-theme="dark"] .footer {
    background: rgba(44, 62, 80, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* 深色模式适配 - 按钮 */
[data-theme="dark"] .btn-primary {
    background: linear-gradient(to right, #3498db, #1a252f);
}

[data-theme="dark"] .btn-primary:hover {
    background: linear-gradient(to right, #2980b9, #15202b);
}

/* 深色模式适配 - 卡片边框 */
[data-theme="dark"] .card-form,
[data-theme="dark"] .result-card {
    border: 1px solid rgba(255, 255, 255, 0.05);
}