/* 通用样式 */
body {
  font-family: 'PingFang', Arial, sans-serif;
  background-color: #fff;
  margin: 0;
  padding: 20px;
}

/* 导航栏样式 */
.navbar {
  background-color: #347dfb;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  position: relative;
  z-index: 150;
}

.navbar .logo {
  position: relative;
  background-color: #ffffff;
  padding: 10px 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: inline-block;
  height: 60px;
  width: 40px;
  margin-left: -10px;
  z-index: 200;
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), box-shadow 0.5s ease, width 0.65s cubic-bezier(0.42, 0, 0.58, 1);
}

.navbar .logo img {
  max-width: 500px;
  max-height: 350px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-top: -40px;
  margin-left: -24px;
  clip-path: inset(0 83% 0 0);
  transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1), clip-path 0.65s cubic-bezier(0.42, 0, 0.58, 1);
}

.navbar .logo:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  width: 465px;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  z-index: 99;
}

.navbar ul li {
  margin-left: 20px;
}

.navbar ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s ease;
}

.navbar ul li a:hover {
  color: #eff7ff;
}

/* 音频列表样式 */
.audio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  margin-top: 5px;
  position: relative;
  z-index: 100;
}

.audio-header, .audio-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  margin-bottom: 10px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.3s ease, transform 0.3s ease, border-radius 1s ease, filter 0.6s ease;
  z-index: 1;
}

.audio-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
  transform: translateY(-5px) translateX(-5px);
  border-radius: 26px;
}

.audio-header {
  background: #347dfb;
  font-weight: bold;
  font-size: 18px;
  color: #555;
  text-align: center;
  border-radius: 10px;
}

.audio-header span {
  flex: 1;
  text-align: center;
  font-size: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.audio-name, .audio-details, .audio-size, .audio-preview ,.audio-uploader ,.audio-upload-time ,.audio-download-ount {
  flex: 2;
  text-align: center;
  font-size: 18px;
  color: #555;
}

.audio-preview {
  flex: 2;
}

audio {
  width: 100%;
  border-radius: 10px;
  outline: none;
}

/* 右键菜单样式 */
.context-menu {
  display: block;
  position: absolute;
  z-index: 160;
  width: 150px;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out, top 0.3s ease-in-out, left 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.8);
}

.context-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.context-menu.hide {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
}

.context-menu-item {
  padding: 10px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

.context-menu-item:hover {
  background-color: #347dfb;
  color: #ffffff;
}

.blur-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5); /* 提供降级效果 */
  z-index: 149;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.6s ease;
}

@supports ((-webkit-backdrop-filter: blur(10px)) or (backdrop-filter: blur(10px))) {
  .blur-overlay {
    background: rgba(255, 255, 255, 0.3); /* 在支持的浏览器中使用较弱的背景 */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

.file-number {
  color: #ffffff;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 24px;
  white-space: nowrap;
}

.navbar-button {
  transition: transform 1s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.navbar-button:hover {
  transform: scale(1.05);
}
.audio-name-display {
  padding: 10px;
  font-size: 16px;
  color: #333;
  text-align: center;
  background-color: #f0f0f0;  /* 添加背景色 */
  border-radius: 8px 8px 0 0;  /* 只为顶部添加圆角 */
  -webkit-user-select: none; /* 放在前面 */
  user-select: none;  /* 禁用选择 */
  cursor: default;  /* 默认光标 */
}
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background-color: #347dfb;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 200; /* 设置为最高 z-index */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.scroll-to-top:hover {
  background-color: #2456a5;
}



/* 搜索框样式匹配音频标题样式 */
.search-form {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  margin-bottom: 10px;
  background: #347dfb;  /* 使用与 .audio-header 相同的背景色 */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.search-input {
  flex: 1;  /* 使输入框自适应宽度 */
  padding: 10px;
  color: #5e5e5e;
  border: none;  /* 移除边框 */
  border-radius: 10px;  /* 让四个角都有圆角 */
  font-size: 16px;
  outline: none;
  min-width: 100px;  /* 设置输入框最小宽度，防止过小 */
  box-sizing: border-box;
  margin-right: 10px;  /* 添加右边距，增加与按钮的间距 */
  transition: transform 0.65s ease, box-shadow 1s ease;  /* 添加过渡效果 */
}

.search-input:hover, 
.search-input:focus {
  transform: translate(-1px, -1px);  /* 轻微上浮并向左移动 */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);  /* 增加阴影 */
}




.search-button {
  padding: 9px 20px;
  background-color: #ffffff;
  color: #347dfb;
  border: none;
  border-radius: 10px;  /* 保持四角都有圆角 */
  cursor: pointer;
  flex-shrink: 0;  /* 确保按钮不会缩小 */
  transition: transform 0.65s ease, box-shadow 1s ease;  /* 添加过渡效果 */
}
.search-button:hover, 
.search-button:focus {
  transform: translate(-1px, -1px);  /* 轻微上浮并向左移动 */
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);  /* 增加阴影 */
}
.no-results {
  text-align: center;
  padding: 50px;
  background-color: #f9f9f9;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
  margin-bottom: 20px;
}

.no-results-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  opacity: 0.7;
}

.no-results p {
  font-size: 18px;
  color: #555;
  font-weight: bold;
}
.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination a {
  padding: 10px 15px;
  margin: 0 5px;
  background-color: #347dfb;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  transition: box-shadow 1s ease, transform 1s ease,background-color 1s ease;
}

.pagination a:hover {
  background-color: #2456a5;
  transform: translateY(-2px); /* 悬浮时轻微上移 */
}

.pagination a.active {
  background-color: #ffffff;
  color: #347dfb;
  cursor: default;
  box-shadow: 0 0 15px rgba(52, 125, 251, 0.8); /* 外发光效果 */
  transition: box-shadow 1s ease, transform 1s ease;
}

.pagination a:hover {

  box-shadow: 0 8px 20px rgba(0, 102, 255, 0.5); /* 悬浮效果的阴影 */
  transform: translateY(-2px); /* 悬浮时轻微上移 */
}
.pagination-dots {
  padding: 10px;
  color: #347dfb;
  font-size: 18px;
  -webkit-user-select: none; /* 为 Safari 浏览器添加兼容 */
  user-select: none; /* 禁用选择 */
}





