@charset "UTF-8";
html {
  font-size: 125%;
}

img {
  vertical-align: middle;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
}

/*定义滚动条高宽及背景 高宽分别对应横竖滚动条的尺寸*/
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background-color: #11111100;
}

/*定义滑块 内阴影+圆角*/
::-webkit-scrollbar-thumb {
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.2);
}

:host {
  display: flex;
  position: fixed;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
:host .yc-dialog {
  background: #fff;
  position: relative;
  z-index: 10005;
  border-radius: 0.3rem;
  width: 250px;
  max-width: 90%;
  padding: 20px;
  box-sizing: border-box;
  transform: translate(0, 50%);
  opacity: 0;
  transition: 0.3s;
}
:host .yc-dialog__countdown {
  font-size: 0.7rem;
  color: #8c8c8c;
  margin: 0;
  position: absolute;
  right: 1rem;
  top: 1rem;
}
:host .yc-dialog__close {
  font-size: 1rem;
  color: #8c8c8c;
  margin: 0;
  position: absolute;
  right: 0.8rem;
  top: 0.8rem;
  cursor: pointer;
}
:host .yc-dialog__title {
  font-size: 0.9rem;
  font-weight: normal;
  color: #262626;
  margin: 0;
  text-align: left;
}
:host .yc-dialog__title:not(:empty) {
  margin-bottom: 1rem;
}
:host .yc-dialog__content {
  font-size: 0.8rem;
  color: #262626;
}
:host .yc-dialog__footer {
  display: flex;
  flex-direction: row;
  margin: 0 -1rem -1rem -1rem;
}
:host .yc-dialog__footer:not(:empty) {
  margin-top: 1rem;
}
:host .yc-dialog__footer_item {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin: 0;
  height: 2.4rem;
}
:host .yc-dialog__footer_item:not(:first-child) {
  position: relative;
  color: #262626;
}
:host .yc-dialog__footer_item:not(:first-child)::after {
  content: "";
  box-sizing: border-box;
  border-radius: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 200%;
  background: #e6e6e6;
  transform: scale(0.5);
  transform-origin: 0 0;
}
:host .yc-dialog__footer_item:last-child {
  color: #2170D9;
}
:host .yc-mask {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: 0.3s;
  z-index: -1;
}

:host([effect=zoom]) .yc-dialog {
  transform: translate(0, 0) scale(0.1);
  opacity: 0;
}

:host([effect=slidedown]) .yc-dialog {
  transform: translate(0, -100%);
  opacity: 0;
}

:host([effect=slideup]) .yc-dialog {
  transform: translate(0, 100%);
  opacity: 0;
}

:host([effect=zoomdown]) .yc-dialog {
  transform: translate(0, -200%) scale(0.1);
  opacity: 0;
}

:host([effect=zoomup]) .yc-dialog {
  transform: translate(0, 200%) scale(0.1);
  opacity: 0;
}

:host([effect=fade]) .yc-dialog {
  transform: translate(0, 0);
  opacity: 0;
}

:host([visible]) {
  z-index: 1000000000;
}
:host([visible]) .yc-dialog {
  transform: translate(0, 0);
  opacity: 1;
}
:host([visible]) .yc-mask {
  opacity: 1;
  z-index: 10000;
  transition: 0.2s;
}