06-countdown/css/countdown.less
@font-face {
  font-family: "supperBubble";
  src: url(../fonts/SuperBubble-Rpaj3.ttf);
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-image: linear-gradient(
    45deg,
    #ff9a9e 0%,
    #fad0c4 99%,
    #fad0c4 100%
  );
  color: #fff9df;
  font-family: "supperBubble";
  font-family: monospace, serif;
  font-size: 14px;
  line-height: 1.42857143;
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(215, 215, 215, 0.45);
    z-index: -1;
  }
}

input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* 将图标颜色反转为白色 */
}
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1); /* 将图标颜色反转为白色 */
}

h1 {
  text-align: center;
  font-size: 50px;
  font-family: "supperBubble";
  color: #7b7cac;
}
.input-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  width: 100%;
  height: 60px;
  margin-top: 30px;
  line-height: 60px;
  box-sizing: border-box;
  p {
    margin: 0;
    font-size: 18px;
    height: 60px;
    color: #587aa7;
  }
  .input-date,
  .input-time,
  .start-btn {
    // box-sizing: border-box;
    margin-left: 20px;
  }
  .input-date input,
  .input-time input {
    color: #f5f5f5;
    background-color: #fdc55e;
    border: #f5f5f5;
    border-radius: 4px;
    padding: 0 10px;
    height: 30px;
    margin: 10px 0;
    &:focus {
      outline: none;
      box-shadow: 0 0 5px #fdc55e;
    }
  }
}

.start-btn {
  background-color: #7b7cac;
  color: #fdc55e;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 15px;
  height: 30px;
  line-height: 30px;
  margin-left: 20px;
  padding: 0 12px;
  transition: all 0.3s ease;
  &:hover {
    background-color: #3e8e41;
    color: #fff9df;
  }
}

.countdown-box {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 20px;
  box-sizing: border-box;
  margin-top: 40px;
  div {
    margin: 0 40px;
    text-align: center;
    width: 120px;
    height: 120px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 20px 25px -5px,
      rgba(0, 0, 0, 0.04) 0px 10px 10px -5px;
    #days,
    #hours,
    #minutes,
    #seconds {
      font-size: 40px;
      font-weight: bold;
      margin-bottom: 10px;
    }
    #days {
      color: #fff9df;
    }
    #hours {
      color: #587aa7;
    }
    #minutes {
      color: #95b0b7;
    }
    #seconds {
      color: #fdc55e;
    }
    span {
      display: block;
      color: white;
    }
  }
  .days {
    background-color: #7b7cac;
  }
  .hours {
    background-color: #b9e0c1;
  }
  .minutes {
    background-color: #fdc55e;
  }
  .seconds {
    background-color: #3e8e41;
  }
}
