/* === removing default button style ===*/
.logobutton {
    margin: 0;
    height: auto;
    background: transparent;
    padding: 0;
    border: none;
    cursor: pointer;
}

/* button styling */
.logobutton {
    --border-right: 6px;
    --text-stroke-color: rgba(255, 255, 255, 0.3);
    --animation-color: var(--gradient-primary);
    --fs-size: 2em;
    letter-spacing: 3px;
    text-decoration: none;
    font-size: var(--fs-size);
    font-family: 'Poppins', 'Microsoft YaHei', sans-serif;
    position: relative;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--text-stroke-color);
    background: var(--gradient-primary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 3s ease infinite, glow 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
    transition: var(--transition);
}

.logobutton::before {
    background: var(--gradient-secondary);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-shift 4s ease infinite reverse;
    filter: blur(3px);
}

.logobutton::after {
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 100%);
    -webkit-background-clip: text;
    background-clip: text;
    animation: shimmer 2.5s ease-in-out infinite;
}

/* this is the text, when you hover on button */
.hover-text {
    position: absolute;
    box-sizing: border-box;
    content: attr(data-text);
    color: var(--animation-color);
    width: 0%;
    inset: 0;
    border-right: var(--border-right) solid var(--primary-color);
    overflow: hidden;
    transition: var(--transition);
    -webkit-text-stroke: 1px var(--primary-color);
}

/* hover */
.logobutton:hover .hover-text {
    width: 100%;
    /* 雾状发散效果 */
    background: var(--gradient-vip);

    /* 添加半透明遮罩 */
    --text-stroke-color: rgba(255, 255, 255, 0.5);
    animation-duration: 1.5s, 1s;
}

/* 如果需要更强的雾状效果，可以添加伪元素 */
.logobutton:hover .hover-text::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: rgba(255, 255, 255, 0.1);
    filter: blur(15px);
    z-index: -1;
    border-radius: inherit;
    opacity: 0.7;
    animation: fogPulse 2s infinite alternate;
}

/* 添加缺失的动画定义 */
@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0% { filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)); }
    100% { filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5)); }
}

@keyframes shimmer {
    0% { background-position: -100% 0; }
    100% { background-position: 100% 0; }
}

@keyframes fogPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.1); }
}
