* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', sans-serif;
  background-color: #f5f5f5;
}

a {
  text-decoration: none;
  color: #333;
}

.top {
  box-sizing: border-box;
  width: 100%;
  height: 48%;

  text-align: center;
  padding: 1.5vh;
}

.top .back {
  width: 100%;
  height: fit-content;
  font-size: large;
  font-weight: bold;
  padding: 1.5vh 0;
}


.shell {
  width: 60%;
  /* 垂直水平居中 */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #d4cac39f;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 游戏界面样式 */

.game-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 20px;
}

.tower {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}
.tower-1,
.tower-2,
.tower-3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 30%;
  height: 300px;
  border-radius: 5px;
}
/* 用伪元素制作塔底和塔柱 */
.tower-1::before,
.tower-2::before,
.tower-3::before {
  content: '';
  width: 10px;
  height: 200px;
  background-color: #333;
  border-radius: 5px;
}
.tower-1::after,
.tower-2::after,
.tower-3::after {
  content: '';
  width: 80%;
  height: 20px;
  background-color: #333;
  border-radius: 5px 5px 0 0;
}

/* 设置塔盘 */
/* TODO */



.min-step,
.step,
.result {
  margin: 10px 0;
}

.bottom{
  /* 内容居中 */
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.setting{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}
input{
  width: 100px;
  height: 30px;
  text-align: center;
  margin-right: 10px;
}
.setting button{
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
}

/* 设置游戏按钮 */
.btn {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 20px;
}

.btn button {
  padding: 5px 10px;
  margin: 0 10px;
  border: none;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
  cursor: pointer;
}

.btn button:hover {
  background-color: #666;
}