/* 引入弹窗样式 */
/* @import url("./message.css");  */

/* 引入播放器样式 */
/* @import url("./Aplayer_cenguigui.css"); */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
}

/* font */
@font-face {
    font-family: GuiguiFontStyle;
    /*src:url("https://jsd.onmicrosoft.cn/gh/cenguigui/cdn@master/fonts/fonts.woff2") format("woff2");*/
    /*src: url("https://cdn.cenguigui.cn/fonts/fonts.woff2") format("woff2");*/
    /*src: url("https://api.kxzjoker.cn/api/123pan?key=9cUujv-1sMVv&type=down") format("woff2");*/
    /* src: url("https://vip.123pan.cn/1827909675/cdn/fonts.woff2") format("woff2"); */
    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;
}

.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;
}

.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;
}

.form-control {
    border: 2px solid #e0e6ed;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

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

.btn-primary {
    background: var(--secondary-color);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.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;
}

.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;
}
.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;
    }

    .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;
}

.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);
}

/* 添加 APlayer 暗黑模式样式 */
[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;
}
