body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}
.container {
  max-width: 600px;
  margin: 0px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
}
.logo-title-container {
  display: flex;
  align-items: center;
  /* justify-content: center; */
  padding: 20px 0;
}

.logo-title-container img {
  box-shadow: -8px 5px 10px rgba(0, 0, 0, 0.5); /* 添加投影效果 */
  margin-right: 20px;
}

.title {
  text-align: center;
  color: #333;
  font-size: 24px;
  margin-bottom: 20px;
  padding: 10px 0;
}

.theme-switch{
    font-size: 12px;
    background-color: #4CAF50;
    color: #EEEEEE;
    padding: 10px 15px; /* 添加内边距 */
    /*border: none;  移除边框 */
    border-radius: 4px; /* 圆角边框 */
    transition: background-color 0.3s; /* 添加过渡效果 */
    text-decoration: none;
}

/* 鼠标悬停时的样式 */
.theme-switch:hover {
  background-color: #2a832d;
}

/* 鼠标点击时的样式 */
.theme-switch:active {
  background-color: #2a832d;
}

.switch, #dragon-level {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.dragon-level{
  color: orange;
}


.s1-level{
  color: orange;
}

.s1level{
  transform: translateY(15px);
}

.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 27.2px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20.8px;
  width: 20.8px;
  left: 3.2px;
  bottom: 3.2px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(20.8px);
  -ms-transform: translateX(20.8px);
  transform: translateX(20.8px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 27.2px;
}

.slider.round:before {
  border-radius: 50%;
}



/* 保存按钮的基础样式 */
.container button, a {
  padding: 5px 20px;
  border: none;
  background: linear-gradient(to right, #b221ff, #14b7ff);
  border-radius: 4px; /* 圆角边框 */
  color: white;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* 鼠标悬停时的样式 */
.container button:hover, a:hover {
  /*background-color: #2a832d;*/
}

/* 鼠标点击时的样式 */
.container button:active, a:active {
  /*background-color: #2a832d;*/
}

/* 保存成功提示的样式 */
#saveSuccess {
  visibility: hidden; /* 默认不可见 */
  opacity: 0; /* 默认透明 */
  min-width: 250px;
  margin-left: -125px; /* 使提示框居中 */
  background-color: #4CAF50;
  color: white;
  text-align: center;
  border-radius: 2px;
  padding: 16px;
  position: fixed;
  z-index: 1;
  left: 50%;
  top: 30px; /* 最终位置 */
  font-size: 17px;
  transition: top 0.5s ease, opacity 0.5s ease, visibility 0.5s ease;
}

/* 提示框显示时的样式 */
#saveSuccess.show {
  visibility: visible;
  opacity: 1; /* 完全不透明 */
}

/* 提示框消失时的样式 */
#saveSuccess.hide {
  visibility: hidden;
  opacity: 0; /* 完全透明 */
  top: 0px; /* 向上移动 */
}

.img-flag {
  height: 20px;
  width: 20px;
  margin-right: 6px;
}

.level-img{
  width: 65px;
  height: 20px;
}

.input-group {
  margin-top: 20px;
}
.input-group label {
  display: block;
  color: #666;
  margin-bottom: 5px;
  font-weight: 600;
}
.input-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  transition: border-color 0.3s;
}
.input-group input:focus {
  border-color: #5cb85c;
  outline: none;
}
.result {
  margin-top: 20px;
  padding: 10px;
  background-color: #e7f3fe;
  border: 1px solid #b3d8fd;
  border-radius: 4px;
  color: #333;
  display: none;
}

.button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background-color: #5cb85c;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.button:hover {
  background-color: #4cae4c;
}

.rhy {
  width: 50%;
  padding: 10px;
  /*background-color: #5cb85c;*/
  background: linear-gradient(to right, #b221ff, #14b7ff);
  text-decoration: none;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex; /* 添加这行 */
  justify-content: center; /* 添加这行 */
  align-items: center; /* 添加这行 */
}

.rhy:hover {
  background-color: #4cae4c;
}
/* 暗色主题的基础样式 */
body.dark-mode {
  /* background: url("../images/bg.gif") repeat; */
   background-color: #222831; /*暗色背景 */
  color: #fff; /* 浅色文本 */
}

/* 暗色主题下的容器样式 */
.dark-mode .container {
  /* background: url("../images/bg.gif") repeat; */
  background-color: #393E46;  /*暗色背景 */
  color: #EEEEEE; /* 浅色文本 */
  box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1); /* 亮色阴影 */
}

/* 暗色主题下的标题样式 */
.dark-mode .title {
  color: #00ADB5;
}

.dark-mode .select2-container--default .select2-selection--single {
  border-color: #00ADB5;
  background-color: #393e46;
}

.dark-mode .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  line-height: 28px
}

.dark-mode .select2-container--default .select2-search--dropdown .select2-search__field{
  color: #fff;
  background-color:#393e46 ;
}

.dark-mode .select2-dropdown {
  background-color: #393e46;
}

.dark-mode .input-group label{
  color: #EEEEEE;
}

/* 暗色主题下的主题切换按钮样式 */
.dark-mode .theme-switch {
  background-color: #222831; /* 暗色主题按钮背景 */
  color: #EEEEEE; /* 暗色主题按钮文本 */
}

/* 暗色主题下的保存按钮样式 */
.dark-mode button {
  background-color: #222831; /* 暗色主题按钮背景 */
  color: #EEEEEE; /* 暗色主题按钮文本 */
}

/* 暗色主题下的保存成功提示样式 */
.dark-mode #saveSuccess {
  background-color: #00ADB5; /* 暗色背景 */
  color: #EEEEEE; /* 浅色文本 */
}

/* 暗色主题下的输入框样式 */
.dark-mode .input-group input {
  background-color: #393E46; /* 暗色背景 */
  color: #EEEEEE; /* 浅色文本 */
  border-color: #00ADB5; /* 暗色主题边框颜色 */
}

.dark-mode .input-group input:focus {
  border-color: #EEEEEE; /* 焦点时的边框颜色 */
}

/* 暗色主题下的结果样式 */
.dark-mode .result {
  background-color: #393E46; /* 暗色背景 */
  border-color: #00ADB5; /* 暗色主题边框颜色 */
  color: #EEEEEE; /* 浅色文本 */
}

/* 暗色主题下的按钮样式 */
.dark-mode .button {
  background-color: #222831; /* 暗色主题按钮背景 */
  color: #EEEEEE; /* 暗色主题按钮文本 */
}

/* 暗色主题下的按钮样式 */
.dark-mode .rhy {
  background-color: #222831; /* 暗色主题按钮背景 */
  color: #EEEEEE; /* 暗色主题按钮文本 */
}

/* 暗色主题下的图片样式 */
.dark-mode .logo-title-container img {
  box-shadow: -8px 5px 10px rgb(0 173 181 / 75%); /* 亮色阴影 */
}

/* 添加暗色主题下的悬停和点击效果 */
@media (hover: hover) {
  .dark-mode .theme-switch:hover,
  .dark-mode button:hover,
  .dark-mode .button:hover,
  .dark-mode .rhy:hover{
    background-color: #00ADB5;
    color: #000;
  }
}

.dark-mode .theme-switch:active,
.dark-mode button:active,
.dark-mode .button:active {
  background-color: #009DAE; /* 按钮按下时的背景颜色 */
  color: #000; /* 保持文字颜色不变 */
}