/* 全局 */
* { 
  box-sizing: border-box; 
  margin: 0; 
  padding: 0; 
  font-family: "Microsoft Yahei","Segoe UI",Tahoma,Arial; 
}
html,body { height: 100%; }
body {
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 20px 12px;
  min-height: 100vh;
}
canvas#sakura-canvas { 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;           /* 始终置顶 */
  pointer-events: none;
}

/* 容器 */
.container {
  width: 100%; 
  max-width: 1200px;
  border-radius: 20px;
  padding: 28px;
  position: relative; 
  z-index:2;
  display:flex; 
  flex-direction:column; 
  min-height:100vh;

  /* ✅ 毛玻璃效果 */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

/* 头像 */
.profile { text-align:center; padding-top:6px; padding-bottom:18px; }
.avatar-wrap { width:120px; height:120px; margin:0 auto; border-radius:50%; padding:6px; }
.avatar { 
  width:18%; height:18%; 
  border-radius:50%; object-fit:cover; 
  border:4px solid #e08cff; 
  box-shadow:0 0 12px rgba(224,140,255,0.45); 
}
.profile h2 { margin-top:14px; font-size:20px; color:#3b3b3b; }

/* 控制区 */
.controls { 
  display:flex; flex-wrap:wrap; 
  gap:12px; align-items:center; 
  justify-content:center; 
  margin-top:22px; 
}

/* 下拉框 */
.controls select {
  min-width:120px; max-width:180px;
  padding:8px 14px; border-radius:20px;
  border:1px solid rgba(0,0,0,0.06);
  background:#f6edff; font-size:14px;
  transition: all 0.25s ease;
}

/* 搜索外壳 */
.controls .search-box {
  display:flex; align-items:center; flex:1;
  min-width:200px; max-width:400px;
  background:#f6edff; border-radius:26px;
  padding:6px 10px; border:1px solid rgba(0,0,0,0.06);
}
.controls .search-box input {
  border:0; outline:0; font-size:14px; width:100%;
  background: transparent;
}
.controls .search-box button {
  width:36px; height:36px; border-radius:50%; border:0;
  cursor:pointer;
  background: linear-gradient(90deg,#ff9ee6,#b98bff);
  color:#fff;
  transition: all 0.25s ease;
}

/* 随便听按钮 */
.controls .random {
  padding:8px 14px; font-size:14px;
  border-radius:20px;
  border:1px solid rgba(0,0,0,0.06);
  background:#f6edff; cursor:pointer;
  transition: all 0.25s ease;
}

/* 固定曲风按钮 */
.genres { display:flex; justify-content:center; margin-top:14px; }
.genres button {
  padding:8px 14px; border-radius:20px;
  border:1px solid rgba(0,0,0,0.06);
  background:#fff; cursor:pointer; margin:4px;
  transition: all 0.25s ease;
}
.genres button.active {
  background: linear-gradient(90deg,#ff9ee6,#b98bff);
  color:#fff; border:0;
}

/* 表格 */
table {
  width:100%; border-collapse:collapse; min-width:0;
  border-radius:12px; overflow:hidden;
  background:rgba(230, 220, 255, 0.6); /* ✅ 紫色底 */
  margin-top:22px;
}
thead { background:rgba(180,150,255,0.9); color:#fff; }
th {
  padding:12px 16px; font-weight:600;
  font-size:14px; text-align:left; white-space:nowrap;
  border-bottom:1px solid rgba(180,150,255,0.3);
}
td {
  padding:12px 16px; font-size:14px;
  text-align:left; border-bottom:1px solid rgba(180,150,255,0.3);
}
tbody tr:hover { background: rgba(200, 170, 255, 0.4); cursor:pointer; }

/* 分页 */
.pagination {
  display:flex; justify-content:center;
  gap:6px; padding:12px;
  flex-wrap:wrap; margin-top:auto;
}
.pagination button {
  padding:6px 10px; border-radius:6px;
  border:1px solid rgba(0,0,0,0.08);
  background:#fff; cursor:pointer;
  min-width:36px;
  transition: all 0.25s ease;
}
.pagination button.active {
  background: linear-gradient(90deg,#ff9ee6,#b98bff);
  color:#fff; border:0;
}
.pagination button:disabled { opacity:0.5; cursor:not-allowed; }

/* 底部版权 */
.footer {
  margin-top:18px; padding-top:12px;
  text-align:center; color:#666; font-size:13px;
}

.toast {
  position: fixed !important;
  top: 20px !important;            /* 改成顶部显示 */
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99999 !important;

  padding: 12px 24px !important;
  border-radius: 16px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #fff !important;

  /* ✅ 半透明玻璃感 */
  background: rgba(255, 255, 255, 0.15) !important;  /* 半透明白色 */
  backdrop-filter: blur(12px) saturate(160%) !important;
  -webkit-backdrop-filter: blur(12px) saturate(160%) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;

  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25) !important;
  animation: fadeInOut 2s ease forwards !important;
}

/* ✅ 动画 */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translate(-50%, 0px); }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}


/* 个人空间 / 直播间按钮 */
.profile .actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.profile .actions a {
  text-decoration: none;
  color: inherit;
}
.profile .actions button {
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 28px;
  border: none;
  background: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: all 0.25s ease;
}
.profile .actions button:hover,
.profile .actions button:focus {
  background: linear-gradient(90deg, #ff9ee6, #b98bff);
  color: #fff;
  transform: scale(1.05);
}

/* 📱 移动端按钮等比例缩小 */
@media (max-width: 768px) {
  .profile .actions button,
  .controls button,
  .genres button,
  .pagination button {
    transform: scale(0.85);
    transform-origin: center;
  }
}

/* 下拉框 hover 优化 */
.controls select:hover,
.controls select:focus {
  background: linear-gradient(90deg, #ff9ee6, #b98bff) !important;
  color: #333 !important;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(185, 139, 255, 0.3);
  border-color: transparent;
}
/* 按钮 hover 统一效果 */
.controls .random:hover,
.controls .random:focus,
.controls .search-box button:hover,
.controls .search-box button:focus {
  background: linear-gradient(90deg, #ff9ee6, #b98bff) !important;
  color: #fff !important;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(185, 139, 255, 0.3);
  border-color: transparent;
}
.controls select:focus,
.controls input:focus,
.controls button:focus {
  outline: none !important;
}
/* 表头背景浅紫 */
table thead {
  background: #f6edff !important;   /* 浅紫色 */
  color: #333 !important;           /* 深色文字，保证清晰 */
}

/* 表头文字加粗 */
table thead th {
  font-weight: 600;
  padding: 10px 12px;
}
