html,
body,
#app {
  height: 100%;
}

body {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
  font-family:
    -apple-system-font, BlinkMacSystemFont, 'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei UI', 'Microsoft YaHei', Arial, sans-serif;
}

// 全局去除滚动条，hover才显示

/* 针对WebKit内核浏览器（Chrome, Safari等） */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
  background: transparent; /* 设置滚动条背景透明 */
}

::-webkit-scrollbar-thumb {
  background: transparent; /* 滑块透明 */
}

:hover::-webkit-scrollbar-thumb {
  cursor: pointer;
  border-radius: 4px;
  background-color: rgb(0 0 0 / 25%);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 版本升级弹窗样式 */
.version-upgrade-dialog {
  --el-messagebox-width: 520px;
  --el-messagebox-border-radius: 8px;

  padding: 12px 26px;
}

.version-upgrade-dialog .el-message-box__header {
  padding: 14px 0 10px;
  border-bottom: none;
}

.version-upgrade-dialog .el-message-box__title {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
  justify-content: start;
}

.version-upgrade-dialog .el-message-box__container {
  justify-content: start;
}

.version-upgrade-dialog .el-message-box__content {
  text-align: center;
}

.version-upgrade-dialog .el-message-box__message {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

.version-upgrade-dialog .el-message-box__btns {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-direction: row-reverse;
}

.version-upgrade-dialog .el-message-box__btns .el-button {
  width: 96px;
}

.version-upgrade-dialog .el-message-box__status {
  display: none;
}

.version-tooltip-content {
  display: flex;
  align-items: center;
  gap: 4px;
}
