/* 吃瓜资讯网 - 简约风格 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #f5f6fa; color: #2d3436; line-height: 1.6; }
a { text-decoration: none; color: #2d3436; transition: color 0.2s; }
a:hover { color: #e74c3c; }
img { max-width: 100%; height: auto; }

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

/* 头部 */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 24px; font-weight: 700; color: #e74c3c; }
.logo span { color: #2d3436; }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 15px; font-weight: 500; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a.active { color: #e74c3c; border-bottom-color: #e74c3c; }
.mobile-menu { display: none; font-size: 24px; cursor: pointer; }

/* 横幅 */
.banner { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); color: #fff; padding: 40px 0; margin-bottom: 30px; }
.banner h1 { font-size: 28px; margin-bottom: 10px; }
.banner p { font-size: 16px; opacity: 0.9; }
.banner .update-time { margin-top: 12px; font-size: 13px; opacity: 0.7; }

/* 主体布局 */
.main-layout { display: grid; grid-template-columns: 1fr 320px; gap: 30px; margin-bottom: 40px; }

/* 资讯卡片 */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-card { background: #fff; border-radius: 10px; padding: 20px; display: flex; gap: 16px; transition: box-shadow 0.2s, transform 0.2s; }
.news-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); transform: translateY(-2px); }
.news-card .thumb { width: 160px; min-width: 160px; height: 110px; border-radius: 8px; overflow: hidden; background: #eee; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .info { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.news-card .info h3 { font-size: 17px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .info h3:hover { color: #e74c3c; }
.news-card .meta { display: flex; align-items: center; gap: 16px; font-size: 13px; color: #999; }
.news-card .meta .tag { background: #fff0f0; color: #e74c3c; padding: 2px 8px; border-radius: 4px; font-size: 12px; }
.news-card .summary { font-size: 14px; color: #666; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 8px 0; }

/* 侧边栏 */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-box { background: #fff; border-radius: 10px; padding: 20px; }
.sidebar-box h3 { font-size: 16px; font-weight: 600; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid #e74c3c; }
.hot-list { list-style: none; }
.hot-list li { padding: 10px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: flex-start; gap: 10px; }
.hot-list li:last-child { border-bottom: none; }
.hot-list .rank { width: 22px; height: 22px; border-radius: 4px; background: #ddd; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hot-list li:nth-child(1) .rank { background: #e74c3c; }
.hot-list li:nth-child(2) .rank { background: #e67e22; }
.hot-list li:nth-child(3) .rank { background: #f39c12; }
.hot-list .title { font-size: 14px; line-height: 1.5; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 4px 12px; background: #f5f6fa; border-radius: 20px; font-size: 13px; color: #666; }
.tag-cloud a:hover { background: #e74c3c; color: #fff; }

/* 分类页 */
.page-title { font-size: 22px; font-weight: 700; margin: 30px 0 20px; padding-left: 12px; border-left: 4px solid #e74c3c; }
.breadcrumb { font-size: 14px; color: #999; margin-bottom: 20px; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #e74c3c; }

/* 文章详情 */
.article { background: #fff; border-radius: 10px; padding: 30px; margin-bottom: 30px; }
.article h1 { font-size: 24px; line-height: 1.5; margin-bottom: 16px; }
.article .article-meta { display: flex; gap: 20px; font-size: 14px; color: #999; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid #f0f0f0; }
.article .content { font-size: 16px; line-height: 2; }
.article .content p { margin-bottom: 16px; text-indent: 2em; }
.article .content img { display: block; margin: 20px auto; border-radius: 8px; }
.related-news { margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f0f0; }
.related-news h3 { font-size: 18px; margin-bottom: 16px; }
.related-news ul { list-style: none; }
.related-news li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.related-news li a { font-size: 15px; }

/* 评论区 */
.comments-section { margin-top: 30px; padding-top: 24px; border-top: 1px solid #f0f0f0; }
.comments-title { font-size: 18px; font-weight: 600; margin-bottom: 20px; }
.comments-title .comments-count { font-size: 14px; color: #999; font-weight: 400; }
.comments-list { display: flex; flex-direction: column; gap: 16px; }
.comment-item { display: flex; gap: 12px; padding: 16px; background: #f9fafb; border-radius: 8px; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #e74c3c, #f39c12); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; font-weight: 700; flex-shrink: 0; }
.comment-body { flex: 1; }
.comment-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.comment-name { font-size: 14px; font-weight: 600; color: #2d3436; }
.comment-time { font-size: 12px; color: #999; }
.comment-text { font-size: 14px; color: #555; line-height: 1.7; }
.comment-footer { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: #999; }
.comment-footer span { cursor: pointer; }
.comment-footer span:hover { color: #e74c3c; }

/* 分页 */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 30px 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 6px; font-size: 14px; }
.pagination a { background: #fff; border: 1px solid #eee; }
.pagination a:hover { background: #e74c3c; color: #fff; border-color: #e74c3c; }
.pagination .current { background: #e74c3c; color: #fff; }

/* 页脚 */
.footer { background: #2d3436; color: #b2bec3; padding: 40px 0 20px; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 30px; }
.footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.footer p { font-size: 14px; line-height: 2; }
.footer a { color: #b2bec3; font-size: 14px; }
.footer a:hover { color: #e74c3c; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #3d4a4d; font-size: 13px; }

/* 响应式 */
@media (max-width: 768px) {
    .main-layout { grid-template-columns: 1fr; }
    .sidebar { order: -1; }
    .news-card { flex-direction: column; }
    .news-card .thumb { width: 100%; height: 180px; }
    .nav { display: none; }
    .mobile-menu { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
    .banner h1 { font-size: 22px; }
    .header-inner { height: 56px; }
    .article { padding: 20px; }
    .comment-item { padding: 12px; }
}
