
/* 基础重置 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Noto Sans SC", sans-serif; font-size: 16px; line-height: 1.6; color: #333; background: #f5f5f5; }
a { color: #1a73e8; text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; }

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

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.1); padding: 15px 0; }
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; font-size: 1.2rem; font-weight: bold; color: #333; }
.logo-icon { width: 40px; height: 40px; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 1.5rem; }
.nav { display: flex; gap: 20px; }
.nav a { color: #666; padding: 8px 15px; border-radius: 5px; transition: all 0.3s; }
.nav a:hover, .nav a.active { background: #f0f7ff; color: #1a73e8; }
.menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }
.mobile-nav { display: none; background: #fff; padding: 15px; }
.mobile-nav.hidden { display: none; }

/* 面包屑 */
.breadcrumb { padding: 15px 0; color: #666; font-size: 0.9rem; }
.breadcrumb a { color: #1a73e8; }
.breadcrumb-separator { margin: 0 8px; color: #999; }

/* 内容区 */
.content-wrapper { display: flex; gap: 30px; }
.main-content { flex: 1; background: #fff; border-radius: 12px; padding: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.sidebar { width: 300px; }

/* 文章 */
.article-header { margin-bottom: 25px; }
.article-tag { display: inline-block; background: #e8f4fd; color: #1a73e8; padding: 4px 12px; border-radius: 15px; font-size: 0.8rem; margin-bottom: 15px; }
.article-title { font-size: 1.8rem; font-weight: bold; margin-bottom: 15px; line-height: 1.4; }
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; color: #999; font-size: 0.85rem; }
.author { display: flex; align-items: center; gap: 8px; }
.author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }

.article-body { line-height: 1.8; }
.article-excerpt { background: #f8f9fa; padding: 20px; border-radius: 8px; margin-bottom: 25px; border-left: 4px solid #1a73e8; }
.image-container { margin: 20px 0; text-align: center; }
.image-container img { border-radius: 8px; max-height: 400px; }
.article-content h1, .article-content h2, .article-content h3 { margin: 25px 0 15px; color: #222; }
.article-content p { margin-bottom: 15px; }
.article-content ul, .article-content ol { margin: 15px 0 15px 20px; }
.article-content li { margin-bottom: 8px; }

/* 标签 */
.tags-container { margin-top: 30px; padding-top: 20px; border-top: 1px solid #eee; }
.tags-title { font-weight: bold; margin-bottom: 15px; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: #f0f7ff; padding: 4px 12px; border-radius: 12px; font-size: 0.8rem; color: #1a73e8; }

/* 侧边栏 */
.sidebar-widget { background: #fff; border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.sidebar-title { font-size: 1rem; font-weight: bold; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.search-box { display: flex; align-items: center; background: #f5f5f5; border-radius: 25px; padding: 10px 15px; }
.search-icon { margin-right: 10px; }
.search-box input { border: none; background: none; outline: none; flex: 1; }
.toc-list { font-size: 0.9rem; }
.toc-list li { padding: 8px 0; border-bottom: 1px solid #f0f0f0; }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { color: #666; }
.toc-list a:hover { color: #1a73e8; }

/* 相关文章 */
.related-articles { margin-top: 30px; }
.related-title { font-size: 1.2rem; font-weight: bold; margin-bottom: 20px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.article-item { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,0.05); }
.article-item img { width: 100%; height: 150px; object-fit: cover; }
.article-item-content { padding: 15px; }
.article-item-category { font-size: 0.75rem; color: #999; }
.article-item-title { font-size: 0.95rem; font-weight: bold; margin: 8px 0; line-height: 1.4; }
.article-item-meta { font-size: 0.8rem; color: #999; }

/* 页脚 */
.footer { background: #2c3e50; color: #fff; padding: 40px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.footer-col h3 { font-size: 1rem; margin-bottom: 15px; }
.footer-col ul { font-size: 0.9rem; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #bdc3c7; }
.footer-col a:hover { color: #fff; }
.copyright { text-align: center; margin-top: 30px; padding-top: 20px; border-top: 1px solid #3d566e; font-size: 0.85rem; color: #95a5a6; }

/* 回到顶部 */
.back-to-top { position: fixed; bottom: 30px; right: 30px; width: 45px; height: 45px; background: #1a73e8; color: #fff; border: none; border-radius: 50%; font-size: 1.2rem; cursor: pointer; display: none; box-shadow: 0 4px 15px rgba(26,115,232,0.3); }
.back-to-top:hover { background: #1557b0; }

/* 进度条 */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; background: linear-gradient(90deg, #667eea, #764ba2); z-index: 9999; width: 0; }

/* SEO隐藏内容 */
.seo-content { position: absolute; left: -9999px; }

/* 响应式 */
@media (max-width: 768px) {
    .content-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .articles-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
    .nav { display: none; }
    .menu-toggle { display: block; }
    .mobile-nav { display: block; }
}
