:root {
    --primary-color: #6c63ff;
    --secondary-color: #4a44e0;
    --accent-color: #ff6584;
    --light-color: #f8f9ff;
    --dark-color: #2d2b57;
    --text-dark: #333;
    --text-light: #f5f5f7;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 16px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-color);
    color: var(--text-dark);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.background-video {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    width: auto !important;
    height: auto !important;
    transform: translate(-50%, -50%) !important;
    object-fit: cover !important;
    z-index: -1 !important;
    opacity: 0.6 !important;
    display: block !important;
    transition: opacity 0.5s ease !important;
}
/* 本地图片背景 - 作为视频不可用时的备选 */
.background-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-image: url('/backgrounds/main-bg.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -1 !important;
    opacity: 0 !important;
    transition: opacity 0.5s ease !important;
}
/* 当视频加载失败时，显示图片背景 */
.background-video.fail {
    display: none !important;
}

.overlay {
	position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    /* 减少透明度值，使遮罩更薄 */
    background: linear-gradient(135deg, rgba(45, 43, 87, 0.3), rgba(108, 99, 255, 0.2)) !important;
    z-index: 0 !important;
    transition: opacity 0.3s ease !important;
}

/* 主容器 - 模糊效果 */
.main-container {
    position: relative;
    z-index: 10;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* 响应式容器 */
@media (min-width: 768px) {
    .main-container {
        padding: 40px 20px;
    }
	.footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .beian-info, .copyright {
        margin: 0;
    }
}

/* 头像区域 */
.profile-section {
    margin-bottom: 30px;
}

.profile-card {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (min-width: 768px) {
    .profile-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    margin-bottom: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .profile-avatar {
        margin-bottom: 0;
        margin-right: 25px;
    }
}

.profile-info {
    flex: 1;
}

.profile-title {
    color: var(--text-light);
    font-weight: 700;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.profile-description {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.song-count {
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-light);
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-weight: 500;
    margin-top: 10px;
}

/* 搜索区域 */
.search-section {
    margin-bottom: 25px;
}

.search-container {
    display: flex;
    gap: 12px;
    flex-direction: column;
}

@media (min-width: 768px) {
    .search-container {
        flex-direction: row;
    }
}

#search-input {
    flex: 1;
    border-radius: 50px;
    padding: 12px 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(255, 101, 132, 0.3);
}

.btn-music {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border: none;
    color: white;
    border-radius: 50px;
    padding: 12px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(108, 99, 255, 0.4);
}

.btn-music:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 99, 255, 0.6);
    background: linear-gradient(45deg, var(--secondary-color), #3a33c0);
}

.btn-music:active {
    transform: translateY(1px);
}

/* 表格区域 */
.table-section {
    width: 100%;
}

.table-container {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.song-table {
    margin-bottom: 0;
    color: var(--text-light);
    background: transparent;
}

.song-table thead th {
    background: rgba(0, 0, 0, 0.2);
    color: white;
    font-weight: 600;
    padding: 15px 20px;
}

.song-table tbody tr {
    cursor: pointer;
    transition: all 0.2s ease;
}

.song-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.song-table td {
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.song-table td:first-child {
    font-weight: 600;
    color: var(--accent-color);
}

/* 复制提示 */
.notification {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(200%);
    transition: transform 0.3s ease;
    z-index: 1000;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.notification.show {
    transform: translateX(0);
}

/* 响应式设计 */
@media (max-width: 767px) {
    .profile-title {
        font-size: 1.8rem;
    }
    
    .profile-description {
        font-size: 0.95rem;
    }
    
    .song-table td, 
    .song-table th {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .song-table th:nth-child(4),
    .song-table th:nth-child(5),
    .song-table td:nth-child(4),
    .song-table td:nth-child(5) {
        display: none;
    }
    
    .main-container {
        padding: 15px;
    }
	
	.footer-container {
        padding: 15px;
        margin: 0 15px;
    }
    
    .beian-info a {
        font-size: 0.95rem;
        padding: 4px 10px;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .profile-avatar {
        width: 90px;
        height: 90px;
    }
    
    .btn-music {
        width: 100%;
        padding: 10px;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .notification {
        bottom: 20px;
        left: 50%;
        right: auto;
        transform: translate(-50%, 200%);
    }
    
    .notification.show {
        transform: translate(-50%, 0);
    }
}

/* 设备适配 */
@media (min-width: 1200px) {
    .main-container {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .profile-card {
        padding: 15px;
    }
    
    .profile-title {
        font-size: 1.6rem;
    }
    
    .song-table td, 
    .song-table th {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    
    .search-container {
        gap: 10px;
    }
    
    #search-input, .btn-music {
        padding: 10px 15px;
        font-size: 14px;
    }
	  .global-nav {
		top: 10px;
		right: 10px;
	}
  
	.btn-return {
		padding: 5px 10px;
		font-size: 0.85rem;
	}
}
@media (max-width: 768px) {
    .background-video {
        display: none !important;
    }
    .background-image {
        opacity: 0.85 !important;
    }
	 .global-nav {
		top: 15px;
		right: 15px;
  }
  
	.btn-return {
		padding: 6px 12px;
		font-size: 0.9rem;
  }
}

/* 低带宽/性能模式 */
@media (prefers-reduced-motion: reduce) {
    .background-video {
        display: none;
    }
    
    .background-image {
        opacity: 0.9;
    }
}
/* 背景视频样式 */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.site-footer {
    position: relative;
    z-index: 10;
    margin-top: 40px;
    padding: 20px 0;
    width: 100%;
}
.footer-container {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 15px 25px;
    margin: 0 auto;
    max-width: 1200px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.beian-info {
    margin-bottom: 8px;
}
.beian-info a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgba(108, 99, 255, 0.2);
    display: inline-block;
}

.beian-info a:hover {
    color: white;
    background: rgba(108, 99, 255, 0.4);
    transform: translateY(-1px);
}
.copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 5px;
}
/* 全局导航按钮 - 固定在页面右上角 */
/* 全局导航按钮 - 固定在页面右上角 */
.global-nav {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000; /* 确保在所有内容之上 */
  display: flex;
  gap: 12px;
}
.btn-return {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-return:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
  color: white;
}
.btn-return:active {
  transform: translateY(0);
}
