@carousel-prefix-cls: ~"@{css-prefix}carousel";
@carousel-item-prefix-cls: ~"@{css-prefix}carousel-item";

.@{carousel-prefix-cls} {
  position: relative;

  &-horizontal {
    overflow-x: hidden;
  }

  &-vertical {
    overflow-y: hidden;
  }

  &-container {
    position: relative;
    height: 300px;
  }

  &-arrow {
    display: block;
    border: none;
    outline: 0;
    padding: 0;
    margin: 0;
    height: 18px;
    width: 18px;
    cursor: pointer;
    -webkit-transition: 0.3s;
    transition: 0.3s;
    border-radius: 2px;
    background-color: rgba(31, 45, 61, 0.11); // ★待定
    color: @color-functional-white;
    position: absolute;
    top: 50%;
    z-index: 10;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    text-align: center;
    font-size: 12px;
  }

  &-arrow-left {
    left: 16px;
  }

  &-arrow-right {
    right: 16px;
  }

  &-arrow-right:hover {
    background-color: rgba(0, 0, 0, 0.1) !important; // ★待定
  }

  &-arrow-left:hover {
    background-color: rgba(0, 0, 0, 0.1)!important; // ★待定
  }

  &-arrow i {
    cursor: pointer;
  }

  &-indicators {
    position: absolute;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 2;
  }
  &-indicators-number{
    position: absolute;
    bottom: 16px;
    z-index: 10;
    display:flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    // transform: translate(-50%,0);
    color: @color-functional-white;
  }

  &-indicators-horizontal {
    bottom: 0;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  &-indicators-vertical {
    right: 0;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
  }

  &-indicators-outside {
    bottom: 26px;
    text-align: center;
    position: static;
    -webkit-transform: none;
    transform: none;
  }

  &-indicators-outside &-indicator:hover button {
    opacity: 0.64;
  }

  &-indicators-outside button {
    background-color: #c0c4cc; // ★待定
    opacity: 0.24;
  }

  &-indicators-labels {
    left: 0;
    right: 0;
    -webkit-transform: none;
    transform: none;
    text-align: center;
  }

  &-indicators-labels &-button {
    height: auto;
    width: auto;
    padding: 2px 18px;
    font-size: 12px;
  }

  &-indicators-labels &-indicator {
    padding: 6px 4px;
  }

  &-indicator {
    background-color: transparent;
    cursor: pointer;
  }

  &-indicator:hover button {
    opacity: 0.72;
  }

  &-indicator-horizontal {
    display: inline-block;
    padding: 12px 4px;
  }

  &-indicator-vertical {
    padding: 4px 12px;
  }

  &-indicator-vertical &-button {
    width: 2px;
    height: 15px;
  }

  &-indicator.is-active button {
    opacity: 1;
  }

  &-button {
    display: block;
    opacity: 0.48;
    width: 30px;
    height: 2px;
    background-color: @white;
    border: none;
    outline: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    -webkit-transition: 0.3s;
    transition: 0.3s;
  }
  &-mask {
    width: 100%;
    background-color:@white;
    opacity: 0.24;
    -webkit-transition: 0.2s;
    transition: 0.2s;
  }
}

.@{carousel-item-prefix-cls},
.@{carousel-prefix-cls}-mask {
  position: absolute;
  height: 100%;
  top: 0;
  left: 0;
}

.@{carousel-item-prefix-cls} {
  width: 100%;
  display: inline-block;
  overflow: hidden;
  z-index: 0;

  &.is-active {
    z-index: 2;
  };

  &.is-animating {
    -webkit-transition: -webkit-transform 0.4s ease-in-out;
    transition: -webkit-transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
  }

  &-card {
    width: 50%;
    -webkit-transition: -webkit-transform 0.4s ease-in-out;
    transition: -webkit-transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out;
    transition: transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
  }

  &-card.is-in-stage {
    cursor: pointer;
    z-index: 1;
  }

  &-card.is-in-stage.is-hover .@{carousel-prefix-cls}-mask,
  &-card.is-in-stage:hover .@{carousel-prefix-cls}-mask {
    opacity: 0.12;
  }

  &-card.is-active {
    z-index: 2;
  }
}

.carousel-arrow-left-enter,
.carousel-arrow-left-leave-active {
  -webkit-transform: translateY(-50%) translateX(-10px);
  transform: translateY(-50%) translateX(-10px);
  opacity: 0;
}

.carousel-arrow-right-enter,
.carousel-arrow-right-leave-active {
  -webkit-transform: translateY(-50%) translateX(10px);
  transform: translateY(-50%) translateX(10px);
  opacity: 0;
}

// .haloe-carousel {
//   position: relative;
// }
// .haloe-carousel-horizontal {
//   overflow-x: hidden;
// }
// .haloe-carousel-vertical {
//   overflow-y: hidden;
// }
// .haloe-carousel-container {
//   position: relative;
//   height: 300px;
// }
// .haloe-carousel-arrow {
//   display: block;
//   border: none;
//   outline: 0;
//   padding: 0;
//   margin: 0;
//   height: 36px;
//   width: 36px;
//   cursor: pointer;
//   -webkit-transition: 0.3s;
//   transition: 0.3s;
//   border-radius: 50%;
//   background-color: rgba(31, 45, 61, 0.11);
//   color: #fff;
//   position: absolute;
//   top: 50%;
//   z-index: 10;
//   -webkit-transform: translateY(-50%);
//   transform: translateY(-50%);
//   text-align: center;
//   font-size: 12px;
// }
// .haloe-carousel-arrow-left {
//   left: 16px;
// }
// .haloe-carousel-arrow-right {
//   right: 16px;
// }
// .haloe-carousel-arrow:hover {
//   background-color: rgba(31, 45, 61, 0.23);
// }
// .haloe-carousel-arrow i {
//   cursor: pointer;
// }
// .haloe-carousel-indicators {
//   position: absolute;
//   list-style: none;
//   margin: 0;
//   padding: 0;
//   z-index: 2;
// }
// .haloe-carousel-indicators-horizontal {
//   bottom: 0;
//   left: 50%;
//   -webkit-transform: translateX(-50%);
//   transform: translateX(-50%);
// }
// .haloe-carousel-indicators-vertical {
//   right: 0;
//   top: 50%;
//   -webkit-transform: translateY(-50%);
//   transform: translateY(-50%);
// }
// .haloe-carousel-indicators-outside {
//   bottom: 26px;
//   text-align: center;
//   position: static;
//   -webkit-transform: none;
//   transform: none;
// }
// .haloe-carousel-indicators-outside .haloe-carousel-indicator:hover button {
//   opacity: 0.64;
// }
// .haloe-carousel-indicators-outside button {
//   background-color: #c0c4cc;
//   opacity: 0.24;
// }
// .haloe-carousel-indicators-labels {
//   left: 0;
//   right: 0;
//   -webkit-transform: none;
//   transform: none;
//   text-align: center;
// }
// .haloe-carousel-indicators-labels .haloe-carousel-button {
//   height: auto;
//   width: auto;
//   padding: 2px 18px;
//   font-size: 12px;
// }
// .haloe-carousel-indicators-labels .haloe-carousel-indicator {
//   padding: 6px 4px;
// }
// .haloe-carousel-indicator {
//   background-color: transparent;
//   cursor: pointer;
// }
// .haloe-carousel-indicator:hover button {
//   opacity: 0.72;
// }
// .haloe-carousel-indicator-horizontal {
//   display: inline-block;
//   padding: 12px 4px;
// }
// .haloe-carousel-indicator-vertical {
//   padding: 4px 12px;
// }
// .haloe-carousel-indicator-vertical .haloe-carousel-button {
//   width: 2px;
//   height: 15px;
// }
// .haloe-carousel-indicator.is-active button {
//   opacity: 1;
// }
// .haloe-carousel-button {
//   display: block;
//   opacity: 0.48;
//   width: 30px;
//   height: 2px;
//   background-color: #fff;
//   border: none;
//   outline: 0;
//   padding: 0;
//   margin: 0;
//   cursor: pointer;
//   -webkit-transition: 0.3s;
//   transition: 0.3s;
// }

// .haloe-carousel-item,
// .haloe-carousel-mask {
//   position: absolute;
//   height: 100%;
//   top: 0;
//   left: 0;
// }

// .haloe-carousel-item {
//   width: 100%;
//   display: inline-block;
//   overflow: hidden;
//   z-index: 0;
// }

// .haloe-carousel-item.is-active {
//   z-index: 2;
// }

// .haloe-carousel-item.is-animating {
//   -webkit-transition: -webkit-transform 0.4s ease-in-out;
//   transition: -webkit-transform 0.4s ease-in-out;
//   transition: transform 0.4s ease-in-out;
//   transition: transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
// }

// .haloe-carousel-item-card {
//   width: 50%;
//   -webkit-transition: -webkit-transform 0.4s ease-in-out;
//   transition: -webkit-transform 0.4s ease-in-out;
//   transition: transform 0.4s ease-in-out;
//   transition: transform 0.4s ease-in-out, -webkit-transform 0.4s ease-in-out;
// }

// .haloe-carousel-item-card.is-in-stage {
//   cursor: pointer;
//   z-index: 1;
// }

// .haloe-carousel-item-card.is-in-stage.is-hover .haloe-carousel-mask,
// .haloe-carousel-item-card.is-in-stage:hover .haloe-carousel-mask {
//   opacity: 0.12;
// }

// .haloe-carousel-item-card.is-active {
//   z-index: 2;
// }

// .haloe-carousel-mask {
//   width: 100%;
//   background-color: #fff;
//   opacity: 0.24;
//   -webkit-transition: 0.2s;
//   transition: 0.2s;
// }