/* RuoMen个人网站自定义样式 */

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.7);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #3b82f6, #8b5cf6);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #2563eb, #7c3aed);
}

/* 全局动画和过渡效果 */
.transition-all {
    transition-duration: 0.3s;
}

/* 渐变文字 */
.gradient-text {
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* 发光效果 */
.glow {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.glow-purple {
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.glow-pink {
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.5);
}

/* 卡片悬停效果 */
.card-hover:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

/* 按钮动画效果 */
.btn-hover:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.4);
}

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

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

/* 导航栏科技感增强样式 */
.tech-nav {
    position: relative;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.8), rgba(23, 36, 64, 0.8));
    border-bottom: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.2);
}

.tech-nav::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, 
        transparent 0%, 
        rgba(59, 130, 246, 0.8) 20%, 
        rgba(139, 92, 246, 0.8) 50%, 
        rgba(236, 72, 153, 0.8) 80%, 
        transparent 100%);
    animation: shimmer 4s infinite linear;
}

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

.nav-item {
    position: relative;
    padding: 0.5rem 0;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-item:hover::after,
.nav-item.active::after {
    width: 100%;
    left: 0;
}

/* 头像样式 */
.avatar {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

/* 模态窗口样式 */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: 16px;
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 2rem;
    z-index: 1001;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-container.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* 粒子背景调整 */
#particles-js {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}

/* 音乐播放器样式 */
.player-container {
    max-width: 400px;
    width: 100%;
    background: rgba(30, 41, 59, 0.7);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.player-progress {
    height: 6px;
    background: rgba(100, 116, 139, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
    cursor: pointer;
}

.player-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    border-radius: 3px;
    transition: width 0.1s ease;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.player-control-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(30, 41, 59, 0.8);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.player-control-btn:hover {
    background: rgba(59, 130, 246, 0.9);
    transform: scale(1.1);
}

.player-control-btn.play-pause {
    width: 60px;
    height: 60px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
}

.player-control-btn.play-pause:hover {
    background: linear-gradient(to right, #2563eb, #7c3aed);
}

/* 复制按钮样式 */
.copy-btn {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 4px;
    color: rgba(59, 130, 246, 0.9);
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: rgba(59, 130, 246, 0.3);
    color: white;
}

.copy-btn.copied {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.3);
    color: rgba(34, 197, 94, 0.9);
} 