/* --- 列表页样式 --- */
.news-list { list-style: none; padding: 0; }
.news-list li {
    display: flex;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    transition: 0.2s;
}
.news-list li:hover { background: #f9f9f9; padding-left: 10px; }
.news-date {
    width: 70px;
    text-align: center;
    margin-right: 25px;
    flex-shrink: 0;
}
.news-date .day { display: block; font-size: 28px; color: #1ca4e5; font-weight: bold; line-height: 1; }
.news-date .month { display: block; font-size: 12px; color: #999; margin-top: 5px; }
.news-info h3 { margin: 0 0 12px; font-size: 18px; }
.news-info h3 a { color: #333; text-decoration: none; transition: 0.2s; }
.news-info h3 a:hover { color: #1ca4e5; }
.news-info .desc { margin: 0 0 15px; color: #666; font-size: 14px; line-height: 1.6; }
.news-meta { font-size: 12px; color: #999; }
.news-meta span { margin-right: 15px; }
.news-meta i { margin-right: 4px; }

/* --- 详情页样式 --- */
.detail-wrapper {
    display: flex;
    padding: 20px 0 50px;
    gap: 30px;
}
.article-main {
    flex: 1;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #eee;
}
.article-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 30px;
}
.article-header h1 { margin: 0 0 15px; color: #333; font-size: 28px; line-height: 1.4; }
.article-meta { color: #999; font-size: 14px; }
.article-meta span { margin-right: 20px; }
.article-meta i { margin-right: 5px; }

/* 文章内容排版 */
.article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}
.article-body img { max-width: 100%; height: auto; border-radius: 4px; }
.article-body p { margin-bottom: 20px; }
.article-body h2, .article-body h3 { margin-top: 30px; margin-bottom: 15px; color: #333; }

/* 上下篇导航 */
.article-nav {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
}
.article-nav a { color: #1ca4e5; text-decoration: none; }
.article-nav a:hover { text-decoration: underline; }

/* 侧边栏通用 */
.sidebar { width: 300px; flex-shrink: 0; }
.side-box { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 25px; margin-bottom: 20px; }
.side-box h3 { margin: 0 0 20px; padding-bottom: 10px; border-bottom: 1px solid #eee; font-size: 16px; color: #333; }
.side-box h3 i { color: #1ca4e5; margin-right: 5px; }

/* 侧边栏列表 */
.side-list { list-style: none; padding: 0; margin: 0; }
.side-list li { margin-bottom: 12px; }
.side-list li a { color: #666; text-decoration: none; display: block; padding: 8px 10px; background: #f9f9f9; border-radius: 4px; transition: 0.2s; }
.side-list li a:hover { background: #e3f2fd; color: #1ca4e5; }
.side-list .num { display: inline-block; width: 20px; height: 20px; line-height: 20px; text-align: center; background: #ccc; color: #fff; font-size: 12px; border-radius: 2px; margin-right: 8px; }
.side-list li:nth-child(1) .num { background: #ff5722; }
.side-list li:nth-child(2) .num { background: #ff9800; }
.side-list li:nth-child(3) .num { background: #ffc107; color: #333; }

/* 侧边栏联系 */
.side-contact { text-align: center; }
.side-contact h4 { color: #ff5722; font-size: 22px; margin: 15px 0; }
.btn-contact { display: inline-block; padding: 8px 20px; background: #1ca4e5; color: #fff; border-radius: 4px; text-decoration: none; margin-top: 10px; }

/* 标签云 */
.tag-cloud a { display: inline-block; padding: 5px 10px; margin: 0 5px 10px 0; background: #f5f5f5; color: #666; font-size: 12px; border-radius: 4px; text-decoration: none; transition: 0.2s; }
.tag-cloud a:hover { background: #1ca4e5; color: #fff; }

.mt-20 { margin-top: 20px; }

/* 响应式 */
@media (max-width: 768px) {
    .detail-wrapper { flex-direction: column; }
    .sidebar { width: 100%; }
    .article-main { padding: 20px; }
    .news-list li { flex-direction: column; }
    .news-date { width: 100%; text-align: left; margin-bottom: 10px; display: flex; align-items: center; gap: 10px; }
    .news-date .day { font-size: 20px; }
}