/* 赛博朋克风格 CSS 样式 */

/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700&family=Rajdhani:wght@300;400;500;600;700&display=swap');

/* 颜色变量 */
:root {
    --neon-pink: #ff2a6d;
    --neon-blue: #05d9e8;
    --neon-purple: #d300c5;
    --card-bg: rgba(15, 14, 23, 0.7);
}

/* 霓虹文字效果 */
.neon-text-pink {
    text-shadow: 0 0 5px #ff2a6d, 0 0 10px #ff2a6d, 0 0 20px #ff2a6d;
}

.neon-text-blue {
    text-shadow: 0 0 5px #05d9e8, 0 0 10px #05d9e8, 0 0 20px #05d9e8;
}

.neon-text-purple {
    text-shadow: 0 0 5px #d300c5, 0 0 10px #d300c5, 0 0 20px #d300c5;
}

/* 霓虹边框效果 */
.neon-border-pink {
    box-shadow: 0 0 5px #ff2a6d, 0 0 10px #ff2a6d;
}

.neon-border-blue {
    box-shadow: 0 0 5px #05d9e8, 0 0 10px #05d9e8;
}

/* 网格背景 */
.grid-bg {
    background-image: 
        linear-gradient(rgba(5, 217, 232, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(5, 217, 232, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* 代码雨画布样式 */
#code-rain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* 不阻挡页面元素的交互 */
    z-index: -1; /* 置于页面最底层 */
    opacity: 0.15; /* 透明度，可根据需要调整 */
}

/* 扫描线效果 */
.scanlines {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.03) 50%,
        rgba(255, 255, 255, 0) 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
}

/* 噪点效果 */
.noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* 像素化效果 */
.pixelate {
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* 故障文字效果 */
.glitch-effect {
    position: relative;
}

.glitch-effect::before,
.glitch-effect::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-effect::before {
    left: 2px;
    text-shadow: -2px 0 #ff2a6d;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim 3s infinite linear alternate-reverse;
}

.glitch-effect::after {
    left: -2px;
    text-shadow: -2px 0 #05d9e8;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim2 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(44px, 9999px, 56px, 0); }
    5% { clip: rect(75px, 9999px, 14px, 0); }
    10% { clip: rect(27px, 9999px, 62px, 0); }
    15% { clip: rect(0, 9999px, 0, 0); }
    20% { clip: rect(0, 9999px, 0, 0); }
    25% { clip: rect(0, 9999px, 0, 0); }
    30% { clip: rect(0, 9999px, 0, 0); }
    35% { clip: rect(0, 9999px, 0, 0); }
    40% { clip: rect(0, 9999px, 0, 0); }
    45% { clip: rect(0, 9999px, 0, 0); }
    50% { clip: rect(0, 9999px, 0, 0); }
    55% { clip: rect(0, 9999px, 0, 0); }
    60% { clip: rect(0, 9999px, 0, 0); }
    65% { clip: rect(0, 9999px, 0, 0); }
    70% { clip: rect(0, 9999px, 0, 0); }
    75% { clip: rect(0, 9999px, 0, 0); }
    80% { clip: rect(0, 9999px, 0, 0); }
    85% { clip: rect(0, 9999px, 0, 0); }
    90% { clip: rect(0, 9999px, 0, 0); }
    95% { clip: rect(0, 9999px, 0, 0); }
    100% { clip: rect(0, 9999px, 0, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(62px, 9999px, 12px, 0); }
    5% { clip: rect(22px, 9999px, 78px, 0); }
    10% { clip: rect(92px, 9999px, 34px, 0); }
    15% { clip: rect(0, 9999px, 0, 0); }
    20% { clip: rect(0, 9999px, 0, 0); }
    25% { clip: rect(0, 9999px, 0, 0); }
    30% { clip: rect(0, 9999px, 0, 0); }
    35% { clip: rect(0, 9999px, 0, 0); }
    40% { clip: rect(0, 9999px, 0, 0); }
    45% { clip: rect(0, 9999px, 0, 0); }
    50% { clip: rect(0, 9999px, 0, 0); }
    55% { clip: rect(0, 9999px, 0, 0); }
    60% { clip: rect(0, 9999px, 0, 0); }
    65% { clip: rect(0, 9999px, 0, 0); }
    70% { clip: rect(0, 9999px, 0, 0); }
    75% { clip: rect(0, 9999px, 0, 0); }
    80% { clip: rect(0, 9999px, 0, 0); }
    85% { clip: rect(0, 9999px, 0, 0); }
    90% { clip: rect(0, 9999px, 0, 0); }
    95% { clip: rect(0, 9999px, 0, 0); }
    100% { clip: rect(0, 9999px, 0, 0); }
}

/* 按钮悬停效果 */
.btn-hover:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 15px currentColor;
}

/* 卡片悬停效果 */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(5, 217, 232, 0.5);
}

/* 赛博朋克按钮 */
.btn-cyber {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff2a6d, #05d9e8, #d300c5, #ff2a6d);
    z-index: -1;
    animation: glowing 3s linear infinite;
    background-size: 400%;
    border-radius: 0.375rem;
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

/* 浮动动画 */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* 脉冲动画 */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.animate-pulse-slow {
    animation: pulse-slow 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 通用动画 */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .glitch-effect::before,
    .glitch-effect::after {
        display: none;
    }
}

/* 页码颜色现在会继承主题默认设置 */

/* 修复侧边栏统计模块图标和文字对齐问题 */
.webinfo-item-title {
    display: flex !important;
    align-items: center !important;
}

.webinfo-item-title i {
    line-height: 1 !important;
    vertical-align: middle !important;
}

.webinfo-item-title .item-name {
    line-height: 1 !important;
    vertical-align: middle !important;
    margin: 0 !important;
}