/* assets/styles/global.css */
@import './theme.css';

/* 全局基础样式 */
body {
  margin: 0;
  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-gradient);
  color: var(--text-color);
  transition: background var(--transition-duration), color var(--transition-duration);
  background-attachment: fixed;
}

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

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-color);
  border-radius: 3px;
  transition: background-color var(--transition-duration);
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--text-color-secondary);
}

/* 基础动画 Keyframes */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

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

@keyframes slideInLeft {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* 可复用的动画类 */
.fade-in {
  animation: fadeIn var(--transition-duration) ease-in-out;
}

.slide-in-up {
  animation: slideInUp var(--transition-duration) ease-in-out;
}

/* 私密笔记相关样式 */
.private-note {
  border-left: 3px solid var(--el-color-warning);
  opacity: 0.9;
}

.lock-icon {
  margin-left: 8px;
  color: var(--el-color-warning);
  font-size: 16px;
}

.private-note-notice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
  color: var(--el-text-color-secondary);
  background-color: var(--el-color-warning-light-9);
  border-radius: 4px;
  margin: 20px 0;
}

.private-note-notice .el-icon {
  font-size: 48px;
  color: var(--el-color-warning);
  margin-bottom: 16px;
}

.private-note-notice p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* 表单帮助文本 */
.form-item-help {
  margin-top: 4px;
  font-size: 12px;
  color: var(--el-text-color-secondary);
  line-height: 1.4;
}

/* 私密状态说明 */
.privacy-explanation {
  display: flex;
  align-items: center;
  margin-top: 16px;
  padding: 12px;
  background-color: var(--el-color-info-light-9);
  border-radius: 4px;
  color: var(--el-text-color-regular);
}

.privacy-explanation .el-icon {
  margin-right: 8px;
  color: var(--el-color-info);
  font-size: 18px;
}

.privacy-explanation span {
  font-size: 14px;
  line-height: 1.5;
}