:root {
    --bg-dark: #0f1117;
    --bg-card: rgba(25, 28, 36, 0.95);
    --bg-hover: rgba(45, 50, 65, 0.85);
    --primary: #d4af37;
    --primary-dark: #b08d26;
    --accent: #ffd700;
    --text-primary: #f0f0f8;
    --text-secondary: #a0a8c0;
    --text-disabled: #666680;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --transition: all 1.2s ease;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    --glass: rgba(255, 255, 255, 0.05);
    --glow: 0 0 15px rgba(212, 175, 55, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans SC', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    padding: 15px 10px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* 移除页面背景上的淡金色光斑效果 */
    /* background: 
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 40%); */
    pointer-events: none;
    z-index: -2;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
   
    position: relative;
    z-index: 1;
}

.download-section {
    margin: 40px 0;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.download-section h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 10px 0;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.download-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.download-info {
    flex: 1;
}

.download-title {
    color: #fff;
    font-size: 16px;
    margin: 0;
}


.download-btn {
    background-color: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.download-btn:hover {
    background-color: var(--accent);
    transform: scale(1.05);
}

.download-btn-group {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* 下载按钮样式 */
.download-link {
    display: none;
}

.download-container {
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
}

.section-divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    margin: 40px 0;
}

/* 折叠功能样式 */
.collapsible-section {
    margin: 10px 0;
}

.collapsible-header {
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    padding: 15px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.collapsible-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.collapsible-header.active {
    background-color: var(--primary);
    color: #000;
}

.collapsible-content {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background-color: rgba(255, 255, 255, 0.02);
    border-radius: 0 0 8px 8px;
}

.collapsible-content.active {
    padding: 18px;
}

.collapsible-arrow {
    transition: transform 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.collapsible-header.active .collapsible-arrow {
    transform: rotate(90deg);
}

/* 头部样式 */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    position: relative;
    z-index: 100;
}

/* 搜索容器样式 */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0;
}

/* Search styles */
#s {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M11 19C15.4183 19 19 15.4183 19 11C19 6.58172 15.4183 3 11 3C6.58172 3 3 6.58172 3 11C3 15.4183 6.58172 19 11 19Z' stroke='%23d4af37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M21 21L16.65 16.65' stroke='%23d4af37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") 10px center no-repeat;
    background-size: 24px 24px;
    background-position: 10px center;
    display: inline-block;
    border: 1px solid transparent;
    width: 40px;
    height: 40px;
    border-radius: 20px;
    -webkit-transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    outline: none;
    padding: 0 15px 0 45px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    font-weight: inherit;
    font-size: 16px;
    font-family: inherit;
    color: transparent;
    vertical-align: baseline;
    background-color: rgba(0, 0, 0, 0);
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 0 rgba(212, 175, 55, 0);
}

/* 搜索框清除按钮样式 */
#s::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") center center no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#s:focus::-webkit-search-cancel-button {
    opacity: 1;
}

#s::-webkit-search-cancel-button:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

/* Firefox搜索框清除按钮样式 */
#s::-moz-search-cancel-button {
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E") center center no-repeat;
    background-size: 16px 16px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

#s:focus::-moz-search-cancel-button {
    opacity: 1;
}

#s::-moz-search-cancel-button:hover {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffd700' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
}

#s:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

#s:focus {
    width: 220px;
    color: var(--primary);
    cursor: text;
    border: 1px solid var(--primary);
    border-radius: 20px;
    background-color: rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    transform: scale(1);
    padding: 0 15px 0 45px;
    background-position: 10px center;
    background-size: 24px 24px;
    opacity: 1;
}

/* 电脑端搜索框宽度与歌曲列表一致 */
@media (min-width: 1024px) {
    #s:focus {
        width: 380px;
        max-width: 380px;
    }
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-md);
    margin-top: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background-color: rgba(212, 175, 55, 0.2);
    border-left: 3px solid var(--primary);
    padding-left: 13px;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* 无搜索结果样式 */
.search-result-item.no-results {
    text-align: center;
    color: var(--text-secondary);
    border-left: none;
    padding-left: 16px;
}

/* 下载项高亮样式 */
.download-item.highlighted {
    background-color: rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
    transition: all 0.3s ease;
}

/* 页脚样式 */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-card);
    color: var(--primary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: var(--shadow);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--bg-hover);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.back-to-top .svg-icon {
    width: 24px !important;
    height: 24px !important;
    fill: var(--primary) !important;
    color: var(--primary) !important;
}

/* 大屏幕样式（1400px以上）保持与index一致 */
@media (min-width: 1400px) {
    /* 容器样式 */
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
    
    /* 电脑端大屏幕横向菜单（大于1400px） */
}

/* 中等屏幕样式（768px-1400px） */
@media (min-width: 769px) and (max-width: 1399px) {
    .download-container {
        max-width: 100%;
        padding: 0 20px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-container {
        max-width: 100%;
        padding: 0 10px;
    }
    
    /* 调整下载区域边距 */
    .download-section {
        margin: 20px 0;
        padding: 10px;
    }
    
    /* 调整下载项样式 */
    .download-item {
        
       
        padding: 8px;
        margin: 8px 0;
    }
    
    /* 调整下载按钮 */
    .download-btn {
       
       
        padding: 8px 16px;
        font-size: 13px;
    }
    
    /* 调整搜索容器 */
    .search-container {
        max-width: 100%;
    }
    
    /* 调整搜索结果 */
    .search-results {
        left: -10px;
        right: -10px;
        max-height: 250px;
    }
    
    /* 调整折叠面板 */
    .collapsible-header {
        padding: 12px;
        font-size: 16px;
    }
    
    .collapsible-content {
        padding: 0 12px;
    }
    
    .collapsible-content.active {
        padding: 10px;
    }
}

/* 手机端适配 */
@media (max-width: 480px) {
    h1 {
        font-size: 24px;
        margin: 20px 0;
    }
    
    .download-section h2 {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    /* 调整回到顶部按钮 */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
    
    .back-to-top .svg-icon {
        width: 20px !important;
        height: 20px !important;
        fill: var(--primary) !important;
        color: var(--primary) !important;
    }
}

/* 小程序二维码样式 */
.qr-code-section {
    text-align: center;
}

.qr-code-section h1,
.qr-code-section h3 {
    text-align: center;
}

.qr-code-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 20px auto;
    width: 100%;
    max-width: 600px;
}

.qr-code-image {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.qr-code-image:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.qr-code-description {
    max-width: 600px;
    margin: 0 auto;
}

.qr-code-text {
    color: #fff;
    font-size: 16px;
    margin: 10px 0;
    line-height: 1.8;
    text-align: center;
}

/* 响应式二维码样式 */
@media (max-width: 768px) {
    .qr-code-image {
        padding: 12px;
    }
    
    .qr-code-image img {
        width: 160px !important;
        height: 160px !important;
    }
    
    .qr-code-text {
        font-size: 14px;
        padding: 0 10px;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 175, 55, 0.5);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}
