/* 自定义样式增强极简主义风格 */

/* 平滑滚动 */
html {
    scroll-behavior: smooth;
}

/* 导航栏滚动效果 */
nav.scrolled {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* 资源卡片悬停效果 */
.resource-card {
    transition: all 0.3s ease;
}

.resource-card:hover {
    transform: translateY(-2px);
}

/* 技术栈图标悬停效果 */
.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: scale(1.05);
}

/* 博客文章链接悬停效果 */
.blog-link {
    position: relative;
}

.blog-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: black;
    transition: width 0.3s ease;
}

.blog-link:hover::after {
    width: 100%;
}

/* 资源标签活跃状态 */
.resource-tab.active {
    background-color: black;
    color: white;
}

/* 按钮悬停效果 */
a.px-6.py-3.border {
    transition: all 0.3s ease;
}

/* 响应式调整 */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem !important;
    }
    
    h2 {
        font-size: 2rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    #tech .grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.8s ease-out;
}

/* 字体优化 */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 博客文章卡片效果 */
.blog-post {
    transition: all 0.3s ease;
}

.blog-post:hover {
    opacity: 0.9;
}