/*
 * 统一返回按钮样式
 * 用于统一电脑版和移动版的"返回番剧列表"按钮样式
 */

/* 通用返回按钮容器样式 */
.back-button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 15px;
  margin: 10px auto 20px;
  width: 90%;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--accent-color);
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(var(--accent-color-rgb), 0.3);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

/* 返回按钮图标样式 */
.back-button i {
  margin-right: 8px;
  transition: transform 0.3s ease;
}

/* 返回按钮悬停效果 */
.back-button:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-button:hover i {
  transform: translateX(-3px);
}

/* 返回按钮点击效果 */
.back-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* 深色模式下的返回按钮样式 */
.dark-mode .back-button {
  background: rgba(33, 33, 33, 0.8);
  color: var(--primary-color);
  border-color: rgba(var(--primary-color-rgb), 0.4);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.dark-mode .back-button:hover {
  background: rgba(40, 40, 40, 0.95);
  color: var(--accent-color);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* 移动端特定样式 */
#mobile-anime-list .back-button {
  margin-bottom: 12px;
  width: calc(100% - 20px);
}

/* 电脑版特定样式 */
#anime-list .back-button {
  margin-bottom: 15px;
  width: calc(100% - 20px);
}

/* 确保按钮内部没有额外的样式 */
button.back-button {
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  padding: 0;
  margin: 0;
  text-align: left;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

/* 确保按钮内部的图标正确显示 */
button.back-button i {
  margin-right: 8px;
}

/* 返回按钮动画 */
.back-button.animated {
  animation: backButtonEnter 0.4s ease-out forwards;
}

@keyframes backButtonEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 低性能设备上的简化样式 */
.low-performance .back-button {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.2s ease;
}
