/* Footer 组件 - 赛博朋克风格 - 完整版，避免重复定义 */

/* 基础容器 - 只保留背景和边框样式，其他由Tailwind处理 */
footer {
    background: linear-gradient(135deg, var(--bg-dark) 0%, var(--theme-black-light) 50%, var(--theme-black-lighter) 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

footer:hover {
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 255, 136, 0.4);
}

/* 全息背景效果 - 这是自定义的，Tailwind没有 */
footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.05) 50%, transparent 70%);
    background-size: 20px 20px;
    animation: hologramShift 4s linear infinite;
    pointer-events: none;
}

@keyframes hologramShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

/* Logo容器 - 自定义 - 赛博朋克霓虹风格 */
footer .w-12 {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    box-shadow: 
        0 0 15px rgba(0, 255, 136, 0.4),
        0 4px 20px rgba(0, 0, 0, 0.3),
        inset 0 0 10px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    color: var(--bg-dark) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 霓虹边框效果 */
footer .w-12::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--primary));
    z-index: -1;
    opacity: 0.8;
}

/* 光泽扫过动画 */
footer .w-12::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: logoShine 3s linear infinite;
}

@keyframes logoShine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

footer .w-12:hover {
    box-shadow: 
        0 0 25px rgba(0, 255, 136, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.4),
        inset 0 0 15px rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Logo文字 - 自定义 */
footer .text-2xl {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% {
        text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    }
    50% {
        text-shadow: 0 0 40px rgba(0, 255, 136, 0.8);
    }
}

/* 标题 - 自定义 */
footer h4 {
    color: var(--primary);
    position: relative;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

footer h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transition: width 0.3s ease;
}

footer h4:hover::after {
    width: 100%;
}

/* 链接 - 自定义 */
footer a {
    color: var(--text-secondary);
    position: relative;
    transition: all 0.3s ease;
    display: inline-block;
}

footer a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

footer a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    transform: translateY(-50%);
}

footer a:hover::before {
    width: 8px;
}

/* 社交图标 - 自定义 */
footer .card-3d {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

footer .card-3d:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.3),
        0 8px 25px rgba(0, 0, 0, 0.4);
}

footer .card-3d::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

footer .card-3d:hover::before {
    left: 100%;
}

/* 版权信息 - 自定义 */
footer .border-t {
    border-color: rgba(0, 255, 136, 0.1);
    position: relative;
}

footer .border-t::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: borderGlow 3s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

/* 全息效果 - 自定义 */
footer .hologram {
    position: relative;
    overflow: hidden;
}

footer .hologram::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(0, 255, 136, 0.1) 50%, transparent 70%);
    animation: hologramScan 2s linear infinite;
    pointer-events: none;
}

@keyframes hologramScan {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 霓虹发光效果 - 自定义 */
footer .neon-glow {
    animation: footerNeonGlow 2s ease-in-out infinite;
}

@keyframes footerNeonGlow {
    0%, 100% {
        box-shadow: 
            0 0 5px rgba(0, 255, 136, 0.3),
            0 0 10px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 
            0 0 15px rgba(0, 255, 136, 0.5),
            0 0 25px rgba(0, 255, 136, 0.3);
    }
}

/* 故障效果 - 自定义 */
footer .glitch-effect {
    animation: footerGlitch 0.3s ease-in-out infinite;
}

@keyframes footerGlitch {
    0%, 100% {
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    10% {
        transform: translateX(-1px);
        filter: hue-rotate(90deg);
    }
    20% {
        transform: translateX(1px);
        filter: hue-rotate(180deg);
    }
}

/* 渐变文字 - 自定义 */
footer .bg-gradient-to-r {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

footer .bg-gradient-to-r::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

footer .bg-gradient-to-r:hover::before {
    opacity: 1;
}

/* 玻璃态效果 - 自定义 */
footer .glass-morphism {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 过渡效果 - 自定义 */
footer .transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

footer .transition-all {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

footer .duration-300 {
    transition-duration: 300ms;
}

/* 悬停效果 - 自定义 */
footer .hover\:text-yellow-400:hover {
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

footer .hover\:scale-110:hover {
    transform: scale(1.1);
}

/* 响应式设计 - 自定义 */
@media (max-width: 768px) {
    footer .md\:grid-cols-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    footer .space-x-4 {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    footer .md\:grid-cols-4 {
        grid-template-columns: 1fr;
        text-align: center;
    }
}