/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; font-size: 14px; line-height: 1.6; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* 头部导航 */
.site-header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo img { display: block; }
.main-nav ul { display: flex; gap: 30px; }
.main-nav a { font-size: 16px; color: #333; padding: 10px 0; position: relative; display: flex; align-items: center; gap: 8px; }
.main-nav a:hover { color: #007bff; }
.nav-toggle { display: none; background: none; border: none; font-size: 24px; cursor: pointer; }

/* Hero区域 */
.hero { background: linear-gradient(135deg, #007bff 0%, #00d4ff 100%); color: #fff; padding: 80px 0; text-align: center; }
.hero-content h1 { font-size: 48px; margin-bottom: 20px; font-weight: 700; }
.hero-content p { font-size: 18px; opacity: 0.9; max-width: 600px; margin: 0 auto; }

/* 内容区域 */
.content-wrapper { padding: 50px 0; }
.content-grid { display: grid; grid-template-columns: 1fr 300px; gap: 30px; }

/* 标题样式 */
.section-title { font-size: 24px; color: #333; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #007bff; display: flex; align-items: center; gap: 10px; }
.section-title i { color: #007bff; }

/* 文章卡片 */
.article-card { background: #fff; border-radius: 10px; overflow: hidden; margin-bottom: 25px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); transition: transform 0.3s, box-shadow 0.3s; }
.article-card:hover { transform: translateY(-5px); box-shadow: 0 5px 25px rgba(0,0,0,0.15); }
.article-thumb { position: relative; height: 200px; overflow: hidden; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.article-card:hover .article-thumb img { transform: scale(1.1); }
.article-category { position: absolute; top: 15px; left: 15px; background: #007bff; color: #fff; padding: 5px 12px; border-radius: 20px; font-size: 12px; }
.article-content { padding: 20px; }
.article-title { font-size: 18px; margin-bottom: 10px; line-height: 1.4; }
.article-title a:hover { color: #007bff; }
.article-meta { display: flex; gap: 20px; color: #999; font-size: 13px; margin-bottom: 15px; }
.article-meta span { display: flex; align-items: center; gap: 5px; }
.article-desc { color: #666; font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-footer { padding: 15px 20px; border-top: 1px solid #eee; }
.read-more { display: inline-flex; align-items: center; gap: 8px; color: #007bff; font-weight: 500; }
.read-more:hover { gap: 12px; }

/* 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 25px; }
.sidebar-widget { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 2px 15px rgba(0,0,0,0.08); }
.widget-title { font-size: 16px; color: #333; margin-bottom: 15px; padding-bottom: 10px; border-bottom: 2px solid #007bff; display: flex; align-items: center; gap: 8px; }
.widget-title i { color: #007bff; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { display: block; color: #666; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color 0.3s; }
.sidebar-list a:hover { color: #007bff; }

/* 标签云 */
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-item { display: inline-block; padding: 6px 14px; background: #f0f0f0; border-radius: 20px; font-size: 13px; color: #666; transition: all 0.3s; }
.tag-item:hover { background: #007bff; color: #fff; }

/* 页脚 */
.site-footer { background: #2c3e50; color: #fff; padding: 40px 0; }
.footer-grid { margin-bottom: 20px; }
.footer-col h4 { margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.footer-col ul li { padding: 8px 0; }
.footer-col a { color: #fff; opacity: 0.8; }
.footer-col a:hover { opacity: 1; color: #007bff; }
.footer-bottom { padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; }
.footer-bottom p { opacity: 0.7; font-size: 13px; }

/* 响应式 */
@media (max-width: 992px) { 
    .content-grid { grid-template-columns: 1fr; }
    .main-nav { display: none; }
    .main-nav.active { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.1); }
    .main-nav ul { flex-direction: column; gap: 0; }
    .nav-toggle { display: block; }
    .hero-content h1 { font-size: 32px; }
}
@media (max-width: 768px) { 
    .hero { padding: 50px 0; } 
    .hero-content h1 { font-size: 28px; } 
    .article-thumb { height: 180px; } 
}
