html {
  font-family: '微软雅黑', arial, Helvetica, sans-serif;
}

body, h1, p, input, ul, li, button{
  margin: 0;
  padding: 0;
}

ul {
  list-style: none;
}

body {
  background: #373737;
}

[name=box] {
  width: 816px;
  height: 206px;
  margin: 20px auto;
  box-sizing: border-box;
}

.create > .create-edit {
  width: 80%;
  height: 50px;
  border-radius: 5px;
  box-sizing: border-box;
  margin: 40px 0 0 10%;
  font-size: 30px;
  color: #000;
  text-align: center;
  background: #c2c3c3;
  box-shadow: 1px 1px 3px #666 inset;
  outline: 0;
}

.create > .create-edit:focus {
  box-shadow: 0;
  outline: 0;
}

.create > .tool-btn {
  width: 43px;
  height: 43px;
  float: right;
  background-color: #f58723;
  border-radius: 50px;
  margin: 43px 30px 0 0;
  box-shadow: 0 1px 1px #d9781f;
  cursor: pointer;
}

.create > .tool-btn > img {
  width: 70%;
  margin: 6px 0 0 7px;
}

.create > .tool-btn:active {
  box-shadow: 0 0 1px 1px #373737 inset;
}

.keisan-all {
  overflow: hidden;
}

.keisan-all > ul {
  -webkit-transition: 1s cubic-bezier(.68,-0.88,.48,2.02);
  transition: 1s cubic-bezier(.68,-0.88,.48,2.02);
}

.keisan-all > ul > li {
  width: 800px;
  height: 250px;
  float: left;
}

.keisan > [class^=keisan-box] {
  width: 150px;
  height: 80px;
  border-radius: 6px;
  background: #c2c3c3;
  box-shadow: 1px 1px 3px #666 inset;
  float: left;
  margin: 80px 0 0 10%;
}

.keisan > [class^=keisan-box] > .num-div,
.keisan > [class^=keisan-box] > .num-div > .div-info {
  background: #da463e;
}

.keisan > [class^=keisan-box] > .num-div > .div-info:before {
  border-top-color: #da463e;
}

.keisan > [class^=keisan-box] > .num-div > .div-del {
  background: #da463e;
}

.keisan > .keisan-box-2 {
  margin-left: 20px;
}

.keisan > .operator {
  width: 80px;
  height: 80px;
  float: left;
  margin: 80px 0 0 20px;
}

.keisan > .operator > li {
  position: relative;
  width: 30px;
  height: 30px;
  background: #f58723;
  border-radius: 5px;
  float: left;
  -webkit-transition: .2s linear;
  transition: .2s linear;
}

.keisan > .operator > li:hover {
  background: #da463e;
  cursor: pointer;
}

.keisan > .operator > li.choose {
  background: #da463e;
  box-shadow: 0 0 0 1px #da463e;
}

.operator > .add {
  margin: 8px 5px 0 8px;
}

.add:before, .add:after, .multiply > span:before, .multiply > span:after  {
  content: '';
  position: absolute;
  background: #fff;
}

.add:before {
  width: 18px;
  height: 2px;
  left: 6px;
  top: 14px;
}

.add:after {
  width: 2px;
  height: 18px;
  left: 14px;
  top: 6px;
}

.operator > .subtract {
  margin: 8px 0 0;
}

.subtract:before {
  content: '';
  position: absolute;
  background: #fff;
  width: 18px;
  height: 2px;
  left: 6px;
  top: 14px;
}

.operator > .multiply {
  margin: 5px 0 0 8px;
}

.multiply > span {
  position: absolute;
  width: 18px;
  height: 18px;
  left: 6px;
  top: 6px;
  -webkit-transform: rotate(45deg);
          transform: rotate(45deg);
}


.multiply > span:before {
  width: 18px;
  height: 2px;
  top: 8px;
}

.multiply > span:after {
  width: 2px;
  height: 18px;
  left: 8px;
}

.operator > .divide {
  margin: 5px 0 0 5px;
}

.divide > span {
  position: absolute;
  background: #fff;
  width: 18px;
  height: 2px;
  left: 6px;
  top: 14px;
}

.divide > span:before, .divide > span:after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 4px;
  background: #fff;
  left: 7px;
}

.divide > span:before {
  top: 5px;
}

.divide > span:after {
  bottom: 5px;
}

.all-box .keisan-box-3 {
  margin: 100px 0 0 17%;
}

.all-box .keisan-box-4 {
  margin: 20px 0 0 0%;
}

.all-box .keisan-box-5 {
  margin: 80px 0 0 25%;
}

.all-box .keisan-box-6 {
  margin: 110px 0 0 1%;
}

.all-box .keisan-box-7 {
  margin: 85px 0 0 1%;
}

.all-box .keisan-box-8 {
  margin: 85px 0 0 12%;
}

.all-box .keisan-box-9 {
  margin: 85px 0 0 1%;
}

.all-box .random > span:first-of-type {
  color: #f58723;
  font-size: 100px;
  float: left;
  display: block;
  margin: 55px 0 0 1%;
}

.all-box .log > span:first-of-type {
  color: #f58723;
  font-size: 75px;
  float: left;
  display: block;
  margin: 55px 0 0 8%;
}

.keisan > .div-create {
  float: left;
  margin: 105px 0 0 20px;
  width: 60px;
  height: 35px;
  color: #f58723;
  border-radius: 4px;
  border: 2px solid #f58723;
  font-size: 40px;
  font-weight: 600;
  font-family: '微软雅黑';
  line-height: 30px;
  text-align: center;
}

.keisan > .div-create:hover {
  color: #fff;
  background: #f58723;
  cursor: pointer;
}

.all-box > .sqrt {
  background: url(../img/reagan.png) no-repeat;
  background-position: 24% 37%;
}

.num-div {
  width: 96px;
  height: 61.8px;
  background: #f58723;
  border-radius: 5px;
  padding: 0 14px;
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  top: 175px;
  -webkit-transform: translate3d(0,0,0);
          transform: translate3d(0,0,0);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  -webkit-perspective: 1000;
          perspective: 1000;
  -webkit-transition: box-shadow 200ms ease, -webkit-transform 200ms ease;
  transition: box-shadow 200ms ease, -webkit-transform 200ms ease;
  transition: transform 200ms ease, box-shadow 200ms ease;
  transition: transform 200ms ease, box-shadow 200ms ease, -webkit-transform 200ms ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08),
              0 2px 2px rgba(0,0,0,0.15);
}

.num-div:hover {
  -webkit-transform: translateY(-4px);
          transform: translateY(-4px);
  box-shadow: 0 6px 7px rgba(0, 0, 0, 0.25),
              0 11px 20px rgba(0, 0, 0, 0.25);
  z-index: 10;
}

.num-div.hide {
  -webkit-animation: hide .5s ease-in-out forwards;
          animation: hide .5s ease-in-out forwards;
}

.num-div > .div-answer {
  width: 100%;
  text-align: center;
  color: #fff;
  font-size: 20px;
  line-height: 61.8px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: move;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.num-div > .div-answer:hover + .div-info {
  top: -35px;
  opacity: 1;
}

.num-div > .div-info {
  position: absolute;
  left: -20px;
  top: -25px;
  width: 155px;
  text-align: center;
  padding: 3px 5px;
  background: #f58723;
  color: #fff;
  border-radius: 5px;
  font-size: 10px;
  opacity: 0;
  -webkit-transition: .4s cubic-bezier(.68,-0.88,.48,2.02);
  transition: .4s cubic-bezier(.68,-0.88,.48,2.02);
}

.num-div > .div-info:before {
  content: '';
  position: absolute;
  margin: auto;
  left: 0;
  right: 0;
  bottom: -9px;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  border-top-color: #f58723;
}

.num-div > .div-tips-input {
  font-family: '微软雅黑';
  border: 0;
  border-radius: 1px;
  width: 94px;
  margin-top: 3px;
  text-align: center;
  display: none;
}

.num-div > .div-tips-input.show {
  display: block;
  -webkit-animation: input .5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
          animation: input .5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
}

.num-div > .div-tips {
  text-align: center;
  color: #fff;
  position: absolute;
  left: 0;
  right: 0;
  bottom: -20px;
  font-size: 12px;
}

.num-div > .div-del {
  background: #f58723;
  border-radius: 50px;
  position: absolute;
  right: -10px;
  top: -10px;
  width: 30px;
  height: 30px;
  text-align: center;
  cursor: pointer;
  display: none;
}

.num-div > .div-del.show {
  display: block;
  -webkit-animation: del 1s cubic-bezier(.68,-0.88,.48,2.02) forwards;
          animation: del 1s cubic-bezier(.68,-0.88,.48,2.02) forwards;
}

.num-div > .div-del:before, .num-div > .div-del:after {
  content: '';
  position: absolute;
}

.num-div > .div-del:before {
  border-top: 2px solid #fff;
  width: 74%;
  left: 13%;
  top: 48%;
}

.num-div > .div-del:after {
  border-left: 2px solid #fff;
  height: 74%;
  left: 48%;
  top: 13%;
}

.keisan-choose {
  width: 510px;
  margin: 50px auto;
}

.keisan-choose > li {
  float: left;
  width: 100px;
  height: 30px;
  color: #f58723;
  text-align: center;
  line-height: 30px;
  border-radius: 3px;
  cursor: pointer;
}

.keisan-choose > li.choose {
  background: #f58723;
  color: #fff;
}

/* mio精灵 */
.mio {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 5;
}

.mio > img {
  width: 120px;
  border-radius: 60px;
  cursor: pointer;
  -webkit-animation: show 1s cubic-bezier(.68,-0.88,.48,2.02);
          animation: show 1s cubic-bezier(.68,-0.88,.48,2.02);
}

.mio > .chat {
  position: absolute;
  width: 200px;
  left: -200px;
  top: -90px;
  background: #f58723;
  padding: 10px;
  border-radius: 5px;
  font-size: 10px;
  opacity: 0;
  -webkit-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  -webkit-transform-origin: right bottom;
          transform-origin: right bottom;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08),
              0 2px 3px rgba(0,0,0,0.15);
}

.mio > .chat.show {
  -webkit-animation: chat .5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
          animation: chat .5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
}

.mio > .chat:after {
  content: "";
  position: absolute;
  bottom: -39px;
  right: 0;
  width: 32px;
  height: 50px;
  border: 0 solid transparent;
  border-top: 19px solid #f58723;
  border-radius: 100px 0 0 0;
  -webkit-transform: rotate(270deg);
          transform: rotate(270deg);
}

.mio > .chat > p {
  color: #fff;
}

.mio > .chat > p > span{
  display: block;
  font-size: 16px;
  text-align: center;
}

/* 虚拟计算器 */
.keyboard {
  position: fixed;
  width: 500px;
  height: 370px;
  margin: auto;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  border-radius: 5px;
  background: #373737;
  box-shadow: 0px 0px 1px 3px #eee;
  box-sizing: border-box;
  padding: 20px;
  color: #fff;
  font-size: 30px;
  text-align: center;
  line-height: 50px;
  font-weight: 900;
  display: none;
  -webkit-transition: 1s;
  transition: 1s;
  overflow: hidden;
  opacity: 0;
  -webkit-user-select:none;
     -moz-user-select:none;
      -ms-user-select:none;
          user-select:none;
}

.keyboard.show {
  display: block;
  -webkit-animation: show2 1.5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
          animation: show2 1.5s cubic-bezier(.68,-0.88,.48,2.02) forwards;
}

.keyboard > li {
  margin-bottom: 30px;
  height: 40px;
}

.keyboard > li:last-of-type {
  margin-bottom: 0;
}

.keyboard > li > ul > li {
  width: 100px;
  height: 50px;
  float: left;
  margin-right: 20px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0px 0px 1px 2px #d9781f;
}

.keyboard > li > ul > li:active {
  background: #f58723;
}

.keyboard > li > ul > li:last-of-type {
  margin-right: 0;
}

.keyboard .width {
  width: 220px;
}

@-webkit-keyframes show {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  80% {
    opacity: 1;
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes show {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  80% {
    opacity: 1;
    -webkit-transform: scale(0.9);
            transform: scale(0.9);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@-webkit-keyframes show2 {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@keyframes show2 {
  0% {
    opacity: 0;
    -webkit-transform: translateY(20px);
            transform: translateY(20px);
  }
  100% {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}

@-webkit-keyframes chat {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@keyframes chat {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  100% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}

@-webkit-keyframes del {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: rotate(45deg) scale(1);
            transform: rotate(45deg) scale(1);
  }
}

@keyframes del {
  0% {
    opacity: 0;
    -webkit-transform: scale(0);
            transform: scale(0);
  }
  50% {
    opacity: 1;
    -webkit-transform: scale(1);
            transform: scale(1);
  }
  100% {
    -webkit-transform: rotate(45deg) scale(1);
            transform: rotate(45deg) scale(1);
  }
}

@-webkit-keyframes input {
  0% {
    margin-top: 1px;
    opacity: 0;
  }
  100% {
    margin-top: 5px;
    opacity: 1;
  }
}

@keyframes input {
  0% {
    margin-top: 1px;
    opacity: 0;
  }
  100% {
    margin-top: 5px;
    opacity: 1;
  }
}

@-webkit-keyframes hide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 150px;
  }
}

@keyframes hide {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    top: 150px;
  }
}
