/* 软件展示页面详情链接按钮样式 */

/* 导航器区域的详情链接按钮 */
.details-link-wrapper {
    margin-top: 8px;
    text-align: center;
}

.details-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.details-link-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.details-link-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.details-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.details-link-btn:hover::before {
    left: 100%;
}

.link-icon {
    margin-right: 6px;
    font-size: 16px;
    animation: pulse 2s infinite;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.link-text {
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 主内容区域的详情链接按钮 */
.main-details-link-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.main-details-link-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
}

.main-details-link-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
    color: white;
    text-decoration: none;
    background: linear-gradient(135deg, #ff5252 0%, #d63031 100%);
}

.main-details-link-btn:active {
    transform: translateY(-1px) scale(1.02);
}

.main-details-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.main-details-link-btn:hover::before {
    left: 100%;
}

.main-link-icon {
    margin-right: 6px;
    font-size: 16px;
    animation: bounce 2s infinite;
}

.main-link-text {
    font-weight: 700;
    letter-spacing: 0.8px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 动画效果 */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .details-link-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .main-details-link-btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .main-details-link-wrapper {
        top: 15px;
        right: 15px;
    }
}

/* 悬停时的光晕效果 */
.details-link-btn:hover,
.main-details-link-btn:hover {
    animation: glow 1.5s ease-in-out infinite alternate;
}

/* 新增：按钮点击效果 */
.details-link-btn:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

/* 新增：按钮焦点效果 */
.details-link-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3), 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* 新增：按钮加载状态 */
.details-link-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.details-link-btn.loading .link-icon {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(102, 126, 234, 0.5),
                    0 0 10px rgba(102, 126, 234, 0.3),
                    0 0 15px rgba(102, 126, 234, 0.1);
    }
    to {
        box-shadow: 0 0 10px rgba(102, 126, 234, 0.8),
                    0 0 20px rgba(102, 126, 234, 0.5),
                    0 0 30px rgba(102, 126, 234, 0.3);
    }
}

.main-details-link-btn:hover {
    animation: mainGlow 1.5s ease-in-out infinite alternate;
}

@keyframes mainGlow {
    from {
        box-shadow: 0 0 5px rgba(255, 107, 107, 0.5),
                    0 0 10px rgba(255, 107, 107, 0.3),
                    0 0 15px rgba(255, 107, 107, 0.1);
    }
    to {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.8),
                    0 0 20px rgba(255, 107, 107, 0.5),
                    0 0 30px rgba(255, 107, 107, 0.3);
    }
} 