/* 组合系统导航特效 - 超科技未来风格 */
.portfolio-system-link {
    position: relative;
    background: linear-gradient(90deg, rgba(12, 127, 242, 0.1), rgba(12, 127, 242, 0.3), rgba(12, 127, 242, 0.1)) !important;
    border-radius: 4px !important;
    border: 1px solid rgba(12, 127, 242, 0.4) !important;
    box-shadow: 0 0 20px rgba(12, 127, 242, 0.5) !important;
    transform: scale(1.2) !important;
    padding: 8px 16px !important;
    margin: 0 6px !important;
    overflow: visible !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    padding-right: 2.5rem !important;
}

.portfolio-system-link:hover {
    background: linear-gradient(90deg, rgba(12, 127, 242, 0.3), rgba(12, 127, 242, 0.5), rgba(12, 127, 242, 0.3)) !important;
    box-shadow: 0 0 30px rgba(12, 127, 242, 0.7) !important;
    color: white !important;
    transform: scale(1.25) !important;
}

.portfolio-system-link span {
    position: relative;
    z-index: 10;
    font-family: 'Space Grotesk', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0.05em !important;
    text-transform: uppercase !important;
    background: linear-gradient(to right, #ffffff, #60a5fa, #ffffff);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: text-gradient 4s linear infinite !important;
    background-size: 200% auto !important;
    text-shadow: 0 0 5px rgba(12, 127, 242, 0.5) !important;
}

.portfolio-system-link:hover span {
    animation: text-gradient 2s linear infinite !important;
    text-shadow: 0 0 10px rgba(12, 127, 242, 0.8) !important;
}

/* 数据点阵动画 - 新增 */
.portfolio-system-link::before {
    content: '';
    position: absolute;
    inset: -2px;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(12, 127, 242, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 30% 70%, rgba(12, 127, 242, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 50% 30%, rgba(12, 127, 242, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 70% 90%, rgba(12, 127, 242, 0.6) 1px, transparent 1px),
        radial-gradient(circle at 90% 50%, rgba(12, 127, 242, 0.6) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: 0 0;
    border-radius: 4px;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
    animation: data-grid-pulse 4s ease infinite;
}

.portfolio-system-link:hover::before {
    opacity: 0.7;
}

/* 动态背景闪光效果 - 新增 */
.portfolio-system-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 20%, rgba(12, 127, 242, 0.2), transparent 80%);
    opacity: 0;
    z-index: 0;
    animation: bg-light-sweep 4s ease-in-out infinite;
}

.portfolio-system-link:hover::after {
    opacity: 1;
}

/* 顶部扫描线 */
.portfolio-system-pulse {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    width: 8px;
    height: 8px;
    background-color: #0c7ff2;
    border-radius: 50%;
    transform: translateY(-50%);
}

.portfolio-system-pulse::before,
.portfolio-system-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid #0c7ff2;
    border-radius: 50%;
    animation: pulse 2s linear infinite;
}

.portfolio-system-pulse::after {
    animation-delay: 0.5s;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* 浮动图标重新定位和样式 */
.portfolio-system-link .floating-icon {
    position: absolute;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-system-link .floating-icon:nth-child(1) {
    top: -8px;
    left: 10px;
}

.portfolio-system-link .floating-icon:nth-child(2) {
    bottom: -8px;
    right: 10px;
}

.portfolio-system-link .floating-icon:nth-child(3) {
    top: 50%;
    right: -8px;
    transform: translateY(-50%);
}

.portfolio-system-link:hover .floating-icon {
    opacity: 1;
}

.portfolio-system-link:hover .floating-icon:nth-child(1) {
    animation: icon-float-1 2s ease-in-out infinite;
}

.portfolio-system-link:hover .floating-icon:nth-child(2) {
    animation: icon-float-2 2s ease-in-out infinite;
}

.portfolio-system-link:hover .floating-icon:nth-child(3) {
    animation: floatIcon 3s ease-in-out infinite;
    top: -20px;
    right: 30px;
}

.portfolio-system-link:hover .floating-icon:nth-child(4) {
    animation: floatIcon 3s ease-in-out infinite 0.5s;
    top: -10px;
    right: 20px;
}

.portfolio-system-link:hover .floating-icon:nth-child(5) {
    animation: floatIcon 3s ease-in-out infinite 1s;
    top: 0;
    right: 10px;
}

@keyframes floatIcon {
    0% {
        opacity: 0;
        transform: translateY(0) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px) rotate(10deg);
    }
    100% {
        opacity: 0;
        transform: translateY(-40px) rotate(0deg);
    }
}

/* 添加数字雨效果 */
.portfolio-system-link .matrix-drop {
    position: absolute;
    color: rgba(12, 127, 242, 0.7);
    font-family: monospace;
    font-size: 8px;
    pointer-events: none;
    user-select: none;
    z-index: -1;
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-system-link .matrix-drop:nth-child(6) {
    top: 15%;
    left: 10%;
}

.portfolio-system-link .matrix-drop:nth-child(7) {
    top: 75%;
    left: 75%;
}

.portfolio-system-link .matrix-drop:nth-child(8) {
    top: 45%;
    left: 25%;
}

.portfolio-system-link:hover .matrix-drop {
    opacity: 1;
    animation: matrix-fall 3s linear infinite;
}

.portfolio-system-link:hover .matrix-drop:nth-child(6) {
    animation-delay: 0.5s;
}

.portfolio-system-link:hover .matrix-drop:nth-child(7) {
    animation-delay: 1.2s;
}

.portfolio-system-link:hover .matrix-drop:nth-child(8) {
    animation-delay: 0.8s;
}

/* 电子脉冲效果 - 新增 */
.electronic-pulse {
    position: absolute;
    top: 50%;
    right: 0.5rem;
    width: 2px;
    height: 10px;
    background: linear-gradient(to bottom, transparent, #0c7ff2, transparent);
    transform: translateY(-50%);
    opacity: 0;
}

.portfolio-system-link:hover .electronic-pulse {
    animation: electronicPulse 1s linear infinite;
}

@keyframes electronicPulse {
    0% {
        opacity: 0;
        transform: translateY(-50%) scaleY(1);
    }
    50% {
        opacity: 1;
        transform: translateY(-50%) scaleY(1.5);
    }
    100% {
        opacity: 0;
        transform: translateY(-50%) scaleY(1);
    }
}

@keyframes matrix-fall {
    0% { transform: translateY(-10px); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(50px); opacity: 0; }
}

/* 动画关键帧 */
@keyframes text-gradient {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* 数据点阵脉冲动画 - 新增 */
@keyframes data-grid-pulse {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.05); }
}

/* 背景光扫动画 - 新增 */
@keyframes bg-light-sweep {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes scan-line {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 0.7; }
    80% { opacity: 0.7; }
    100% { transform: translateY(1000%); opacity: 0; }
}

@keyframes icon-float-1 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-3px, -3px); }
}

@keyframes icon-float-2 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(3px, 3px); }
}

/* 移除不需要的样式 */
.portfolio-system-link .sparkle,
.portfolio-system-link .ripple,
.portfolio-system-link .data-line-vertical-1,
.portfolio-system-link .data-line-vertical-2,
.portfolio-system-glow {
    display: none;
}

/* 添加按钮动效 */
.portfolio-system-link:active {
    transform: scale(1.15) !important;
    box-shadow: 0 0 15px rgba(12, 127, 242, 0.5) !important;
} 