/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}

html {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #333333;
    line-height: 1.6;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #ffffff;
    z-index: 1000;
    height: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    font-size: 1.2rem;
}

.nav-logo a::before {
    content: "Y";
    background: #2563eb;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    font-size: 0.9rem;
    font-weight: bold;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
}

.nav-item {
    margin: 0;
}

.nav-link {
    text-decoration: none;
    color: #333333;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.nav-link:hover {
    background-color: #f5f5f5;
}

.nav-link.active {
    background-color: #333333;
    color: #ffffff;
}

/* 主要内容区域 */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 项目展示区域 */
.projects-section {
    padding: 40px 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
}

/* 左侧过滤侧边栏 */
.section-header {
    text-align: left;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #333333;
}

.section-subtitle {
    font-size: 0.9rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 20px;
    text-transform: uppercase;
}

/* 过滤器样式 */
.filter-options {
    list-style: none;
}

.filter-option {
    margin-bottom: 12px;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 6px;
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
}

.filter-option label:hover {
    background-color: #e9ecef;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
}

/* 右侧项目列表 */
.projects-container {
    padding-left: 20px;
}

.projects-count {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 20px;
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 项目卡片 */
.project-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
    cursor: pointer;
    position: relative;
}

.project-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.project-date {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.project-authors {
    font-size: 0.9rem;
    color: #666666;
    margin-bottom: 12px;
}

.project-description {
    font-size: 0.9rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    background-color: #f8f9fa;
    color: #333333;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    border: 1px solid #e9ecef;
}

.project-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #666666;
    font-size: 1.2rem;
}

/* 页脚 */
.footer {
    background-color: #f8f9fa;
    padding: 40px 0 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 12px;
    color: #333333;
    font-size: 1rem;
}

.footer-section p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
}

.social-links a:hover {
    color: #333333;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
    color: #666666;
    font-size: 0.8rem;
}

/* Back to Top 按钮 */
.back-to-top {
    background: #ffffff;
    border: 1px solid #e9ecef;
    color: #333333;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.back-to-top:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .projects-container {
        padding-left: 0;
    }
    
    .nav-menu {
        gap: 10px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 0 15px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}

/* Page transition */
html.is-transitioning, body.is-transitioning {
    pointer-events: none;
}

.page-enter {
    opacity: 0;
}

.page-enter-active {
    opacity: 1;
    transition: opacity 250ms ease;
}

.page-leave {
    opacity: 1;
}

.page-leave-active {
    opacity: 0;
    transition: opacity 200ms ease;
} 