/* 文章列表页面样式 */ .articles-main { padding-top: 6rem; max-width: 1200px; margin: 0 auto; padding-bottom: 4rem; } .articles-header { text-align: center; margin-bottom: 3rem; } .articles-header h1 { font-size: 2.5rem; color: #1e40af; margin-bottom: 1rem; } .articles-header p { color: #64748b; font-size: 1.2rem; } .articles-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; padding: 0 1rem; } .article-card { background: white; border-radius: 1rem; overflow: hidden; box-shadow: 0 4px 6px rgba(0,0,0,0.1); transition: transform 0.3s ease; } .article-card:hover { transform: translateY(-5px); } .article-image { width: 100%; height: 200px; overflow: hidden; } .article-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; } .article-card:hover .article-image img { transform: scale(1.05); } .article-content { padding: 1.5rem; } .article-content h2 { font-size: 1.25rem; color: #1e40af; margin-bottom: 0.5rem; line-height: 1.4; } .article-meta { color: #64748b; font-size: 0.875rem; margin-bottom: 1rem; } .article-excerpt { color: #4b5563; margin-bottom: 1.5rem; line-height: 1.6; } .article-link { color: #2563eb; text-decoration: none; font-weight: 500; display: inline-block; transition: color 0.3s ease; } .article-link:hover { color: #1d4ed8; } /* 导航栏激活状态 */ .nav-links a.active { color: #2563eb; font-weight: 500; } /* 响应式设计 */ @media (max-width: 768px) { .articles-main { padding-top: 5rem; } .articles-header h1 { font-size: 2rem; } .articles-grid { grid-template-columns: 1fr; } }