/* Hero Trial Badge - Enhanced Floating CTA Style */
.hero-trial-badge {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: cta-float 3s ease-in-out infinite;
    border-radius: 50px;
    background: linear-gradient(135deg, 
        rgba(255, 107, 107, 0.9) 0%, 
        rgba(255, 142, 142, 0.8) 50%, 
        rgba(255, 107, 107, 0.9) 100%);
    border: 2px solid rgba(255, 107, 107, 0.6);
    box-shadow: 
        0 10px 30px rgba(255, 107, 107, 0.3),
        0 0 40px rgba(255, 107, 107, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

/* 主要浮動動畫 */
@keyframes cta-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        box-shadow: 
            0 10px 30px rgba(255, 107, 107, 0.3),
            0 0 40px rgba(255, 107, 107, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.3);
        background: linear-gradient(135deg, 
            rgba(255, 107, 107, 0.9) 0%, 
            rgba(255, 142, 142, 0.8) 50%, 
            rgba(255, 107, 107, 0.9) 100%);
    }
    25% {
        transform: translateY(-8px) rotate(0.5deg);
        box-shadow: 
            0 15px 35px rgba(255, 107, 107, 0.4),
            0 0 50px rgba(255, 107, 107, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        background: linear-gradient(135deg, 
            rgba(255, 142, 142, 0.9) 0%, 
            rgba(255, 107, 107, 0.8) 50%, 
            rgba(255, 142, 142, 0.9) 100%);
    }
    50% {
        transform: translateY(-12px) rotate(0deg);
        box-shadow: 
            0 20px 40px rgba(255, 107, 107, 0.5),
            0 0 60px rgba(255, 107, 107, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.5);
        background: linear-gradient(135deg, 
            rgba(255, 71, 87, 0.9) 0%, 
            rgba(255, 107, 107, 0.8) 50%, 
            rgba(255, 71, 87, 0.9) 100%);
    }
    75% {
        transform: translateY(-8px) rotate(-0.5deg);
        box-shadow: 
            0 15px 35px rgba(255, 107, 107, 0.4),
            0 0 50px rgba(255, 107, 107, 0.3),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        background: linear-gradient(135deg, 
            rgba(255, 142, 142, 0.9) 0%, 
            rgba(255, 107, 107, 0.8) 50%, 
            rgba(255, 142, 142, 0.9) 100%);
    }
}

.hero-trial-badge:hover {
    transform: translateY(-5px) scale(1.08);
    animation-play-state: paused;
    box-shadow: 
        0 20px 50px rgba(255, 107, 107, 0.6),
        0 0 80px rgba(255, 107, 107, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    background: linear-gradient(135deg, 
        rgba(255, 71, 87, 1) 0%, 
        rgba(255, 107, 107, 0.9) 50%, 
        rgba(255, 71, 87, 1) 100%);
}

.hero-trial-badge:active {
    transform: translateY(-2px) scale(1.03);
    animation-play-state: paused;
    box-shadow: 
        0 8px 20px rgba(255, 107, 107, 0.4),
        0 0 30px rgba(255, 107, 107, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* 增強光澤掃過效果 */
.hero-trial-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.6),
        rgba(255, 255, 255, 0.4),
        transparent);
    transition: left 0.8s ease;
    z-index: 2;
    animation: auto-shine 4s ease-in-out infinite;
}

@keyframes auto-shine {
    0%, 90%, 100% { left: -100%; }
    10%, 80% { left: 100%; }
}

.hero-trial-badge:hover::before {
    left: 100%;
    animation-play-state: paused;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.6), 
        rgba(255, 255, 255, 0.8),
        rgba(255, 255, 255, 0.6),
        transparent);
}

/* 浮動粒子環繞效果 */
.hero-trial-badge::after {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    background: conic-gradient(
        transparent 0deg,
        rgba(255, 107, 107, 0.2) 45deg,
        transparent 90deg,
        rgba(255, 142, 142, 0.2) 135deg,
        transparent 180deg,
        rgba(255, 71, 87, 0.2) 225deg,
        transparent 270deg,
        rgba(255, 107, 107, 0.2) 315deg,
        transparent 360deg
    );
    border-radius: 50px;
    animation: particle-orbit 6s linear infinite;
    z-index: 0;
    opacity: 0.7;
}

@keyframes particle-orbit {
    0% {
        transform: rotate(0deg);
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.7;
    }
}

.hero-trial-badge:hover::after {
    animation-duration: 3s;
    opacity: 1;
    background: conic-gradient(
        transparent 0deg,
        rgba(255, 107, 107, 0.4) 45deg,
        transparent 90deg,
        rgba(255, 142, 142, 0.4) 135deg,
        transparent 180deg,
        rgba(255, 71, 87, 0.4) 225deg,
        transparent 270deg,
        rgba(255, 107, 107, 0.4) 315deg,
        transparent 360deg
    );
}

/* 增強文字浮動發光動畫 */
.hero-trial-badge .glitch-text {
    position: relative;
    z-index: 3;
    font-weight: 800;
    color: #ffffff;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(255, 107, 107, 0.6);
    animation: text-float-glow 2.5s ease-in-out infinite;
    letter-spacing: 0.5px;
}

@keyframes text-float-glow {
    0%, 100% {
        transform: translateY(0px);
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.9),
            0 2px 4px rgba(0, 0, 0, 0.8),
            0 0 20px rgba(255, 107, 107, 0.6);
    }
    25% {
        transform: translateY(-2px);
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 1),
            0 2px 6px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(255, 107, 107, 0.7);
    }
    50% {
        transform: translateY(-3px);
        text-shadow: 
            0 0 15px rgba(255, 255, 255, 1),
            0 3px 8px rgba(0, 0, 0, 0.9),
            0 0 30px rgba(255, 107, 107, 0.8),
            0 0 40px rgba(255, 71, 87, 0.4);
    }
    75% {
        transform: translateY(-2px);
        text-shadow: 
            0 0 12px rgba(255, 255, 255, 1),
            0 2px 6px rgba(0, 0, 0, 0.8),
            0 0 25px rgba(255, 107, 107, 0.7);
    }
}

/* 圖標浮動閃爍動畫 */
.hero-trial-badge .icon-zap {
    position: relative;
    z-index: 3;
    color: #ffffff;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
            drop-shadow(0 0 15px rgba(255, 107, 107, 0.5));
    animation: icon-float-spark 2.2s ease-in-out infinite;
}

@keyframes icon-float-spark {
    0%, 100% {
        transform: translateY(0px) rotate(0deg) scale(1);
        filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8))
                drop-shadow(0 0 15px rgba(255, 107, 107, 0.5));
    }
    25% {
        transform: translateY(-3px) rotate(3deg) scale(1.05);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1))
                drop-shadow(0 0 20px rgba(255, 107, 107, 0.7));
    }
    50% {
        transform: translateY(-4px) rotate(0deg) scale(1.1);
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 1))
                drop-shadow(0 0 25px rgba(255, 107, 107, 0.8))
                drop-shadow(0 0 35px rgba(255, 71, 87, 0.5));
    }
    75% {
        transform: translateY(-3px) rotate(-3deg) scale(1.05);
        filter: drop-shadow(0 0 12px rgba(255, 255, 255, 1))
                drop-shadow(0 0 20px rgba(255, 107, 107, 0.7));
    }
}

/* 磁場脈衝效果 */
.hero-trial-badge {
    position: relative;
    animation: cta-float 3s ease-in-out infinite, 
               breathing-glow 4s ease-in-out infinite;
}

@keyframes breathing-glow {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(255, 107, 107, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(255, 107, 107, 0.6))
                drop-shadow(0 0 40px rgba(255, 107, 107, 0.3));
    }
}

/* 點擊波紋效果 */
.hero-trial-badge:active::before {
    animation: click-ripple 0.6s ease-out !important;
}

@keyframes click-ripple {
    0% {
        transform: scale(1);
        opacity: 0.8;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.8), 
            transparent);
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
        background: linear-gradient(90deg, 
            transparent, 
            rgba(255, 255, 255, 0.4), 
            transparent);
    }
}

/* 懸停時的磁場增強 */
.hero-trial-badge:hover {
    filter: drop-shadow(0 0 40px rgba(255, 107, 107, 0.8))
            drop-shadow(0 0 60px rgba(255, 107, 107, 0.5)) !important;
}

