.ali-smart-link {
  max-width: 760px;
  margin: 22px 0 28px;
  padding: 0;
  box-sizing: border-box;
}

.ali-smart-link__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #fff8fa 0%, #ffffff 100%);
  border: 1px solid #f3d6de;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(255, 79, 109, 0.07);
  font-family: Arial, sans-serif;
  color: #2d2d2d;
  text-decoration: none;
  box-sizing: border-box;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.ali-smart-link__inner:hover {
  transform: translateY(-1px);
  border-color: #86e3ad;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.11), 0 8px 22px rgba(255, 79, 109, 0.07);
}

.ali-smart-link__inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 42%;
  height: 100%;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}

.ali-smart-link__inner:hover::after {
  opacity: 1;
  animation: aliSmartShine 0.8s ease;
}

@keyframes aliSmartShine {
  0% {
    left: -70%;
  }

  100% {
    left: 130%;
  }
}

.ali-smart-link__status {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  min-height: 54px;
  padding: 0 22px;
  background: #222222;
  border: 1px solid #222222;
  border-radius: 999px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  box-sizing: border-box;
  box-shadow: 0 8px 18px rgba(34, 34, 34, 0.12);
}

.ali-smart-link__dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: aliSmartPulse 1.6s ease-in-out infinite;
}

@keyframes aliSmartPulse {
  0% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.26);
  }

  50% {
    opacity: 0.55;
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.09);
  }

  100% {
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.26);
  }
}

.ali-smart-link__rotator {
  position: relative;
  display: block;
  width: 100%;
  height: 20px;
  overflow: hidden;
}

.ali-smart-link__rotator span {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 20px;
  display: flex;
  align-items: center;
  opacity: 0;
  transform: translateY(100%);
  white-space: nowrap;
  line-height: 1;
  animation: aliSmartTextRotate 6s infinite;
}

.ali-smart-link__rotator span:nth-child(1) {
  animation-delay: 0s;
}

.ali-smart-link__rotator span:nth-child(2) {
  animation-delay: 3s;
}

@keyframes aliSmartTextRotate {
  0% {
    opacity: 0;
    transform: translateY(100%);
  }

  10% {
    opacity: 1;
    transform: translateY(0);
  }

  42% {
    opacity: 1;
    transform: translateY(0);
  }

  52% {
    opacity: 0;
    transform: translateY(-100%);
  }

  100% {
    opacity: 0;
    transform: translateY(-100%);
  }
}

.ali-smart-link__button {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 28px 0 18px;
  background: linear-gradient(135deg, #ff4f6d 0%, #ff3158 100%);
  color: #ffffff;
  border: 1px solid #ff4f6d;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 24px rgba(255, 79, 109, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.ali-smart-link__button-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-radius: 11px;
  line-height: 1;
  transition: transform 0.22s ease, background 0.22s ease;
}

.ali-smart-link__button-icon svg {
  display: block;
}

.ali-smart-link__inner:hover .ali-smart-link__button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  border-color: #1fb155;
  transform: translateX(2px);
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.ali-smart-link__inner:hover .ali-smart-link__button-icon {
  transform: translateY(-1px) scale(1.04);
  background: rgba(255, 255, 255, 0.24);
}

@media (max-width: 640px) {
  .ali-smart-link {
    margin: 20px 0 26px;
  }

  .ali-smart-link__inner {
    display: block;
    min-height: auto;
    padding: 15px;
  }

  .ali-smart-link__status {
    width: 100%;
    min-height: 54px;
    margin-bottom: 12px;
    padding: 0 20px;
    box-sizing: border-box;
  }

  .ali-smart-link__rotator {
    height: 20px;
  }

  .ali-smart-link__rotator span {
    height: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ali-smart-link__button {
    width: 100%;
    max-width: none;
    min-height: 54px;
    padding: 0 20px;
    box-sizing: border-box;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ali-smart-link__inner,
  .ali-smart-link__button,
  .ali-smart-link__button-icon {
    transition: none;
  }

  .ali-smart-link__dot,
  .ali-smart-link__rotator span,
  .ali-smart-link__inner:hover::after {
    animation: none;
  }

  .ali-smart-link__rotator span {
    opacity: 1;
    transform: none;
  }

  .ali-smart-link__rotator span:nth-child(2) {
    display: none;
  }
}