/* ===== 传奇SF发布网 全局样式 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "WenQuanYi Micro Hei", sans-serif;
    font-size: 15px; line-height: 1.8; color: #333;
    background: #f5f5f5; -webkit-font-smoothing: antialiased;
}
a { color: #b31217; text-decoration: none; transition: color .2s; }
a:hover { color: #ff6600; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 15px; }

/* ===== 头部 ===== */
.site-header {
    background: linear-gradient(90deg, #8a0d11 0%, #b31217 100%);
    color: #fff; padding: 18px 0; box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.logo a { color: #fff; font-size: 26px; }
.logo .slogan { display: block; font-size: 12px; color: #ffd9a0; margin-top: 4px; }
.main-nav ul { display: flex; flex-wrap: wrap; gap: 6px; }
.main-nav a {
    color: #fff; padding: 8px 16px; border-radius: 4px; font-size: 15px; display: block;
}
.main-nav a:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ===== 面包屑 ===== */
.breadcrumb { background: #fff; border-bottom: 1px solid #eee; padding: 10px 0; font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; }
.breadcrumb li { color: #999; }
.breadcrumb li + li::before { content: ">"; margin: 0 8px; color: #ccc; }
.breadcrumb a { color: #666; }
.breadcrumb a:hover { color: #b31217; }

/* ===== 布局 ===== */
.main-content { padding: 20px 0; }
.layout { display: flex; gap: 20px; align-items: flex-start; }
.content { flex: 1; min-width: 0; }
.sidebar { width: 300px; flex-shrink: 0; }

/* ===== 卡片通用 ===== */
.card { background: #fff; border-radius: 6px; padding: 18px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card h2 { font-size: 20px; color: #b31217; border-left: 4px solid #b31217; padding-left: 10px; margin-bottom: 14px; }

/* ===== 首页 ===== */
.hero { background: #fff; border-radius: 6px; padding: 26px; margin-bottom: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); text-align: center; }
.hero h1 { font-size: 26px; color: #b31217; margin-bottom: 12px; }
.hero p { color: #666; font-size: 15px; }
.hot-keywords { margin-top: 14px; }
.hot-keywords a { display: inline-block; margin: 4px; padding: 5px 14px; background: #fdecec; border-radius: 20px; font-size: 13px; }
.hot-keywords a:hover { background: #b31217; color: #fff; }

/* ===== 文章列表 ===== */
.article-list li { padding: 12px 0; border-bottom: 1px dashed #eee; display: flex; justify-content: space-between; gap: 12px; }
.article-list li:last-child { border-bottom: none; }
.article-list a { flex: 1; color: #333; font-size: 15px; }
.article-list a:hover { color: #b31217; }
.article-list .date { color: #999; font-size: 13px; white-space: nowrap; }

/* ===== 排行表 ===== */
.rank-table { width: 100%; border-collapse: collapse; }
.rank-table th, .rank-table td { padding: 10px 8px; border-bottom: 1px solid #eee; text-align: left; font-size: 14px; }
.rank-table th { background: #f8f8f8; color: #b31217; }
.rank-table .num { width: 40px; text-align: center; font-weight: bold; color: #b31217; }
.rank-table tr:hover td { background: #fdf5f5; }
.tag { display: inline-block; padding: 2px 8px; background: #b31217; color: #fff; border-radius: 3px; font-size: 12px; }
.tag.new { background: #ff6600; }
.tag.hot { background: #e60012; }

/* ===== 下载 ===== */
.download-item { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px dashed #eee; gap: 12px; }
.download-item .btn { background: #b31217; color: #fff; padding: 8px 18px; border-radius: 4px; font-size: 14px; white-space: nowrap; }
.download-item .btn:hover { background: #ff6600; color: #fff; }

/* ===== 文章详情 ===== */
.article-header { background: #fff; padding: 24px; border-radius: 6px 6px 0 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article-header h1 { font-size: 24px; color: #222; margin-bottom: 10px; line-height: 1.4; }
.article-meta { color: #999; font-size: 13px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.article-body { background: #fff; padding: 24px; border-radius: 0 0 6px 6px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.article-body p { margin-bottom: 16px; text-indent: 2em; line-height: 2; }
.article-body h2 { font-size: 19px; color: #b31217; margin: 22px 0 12px; border-left: 4px solid #b31217; padding-left: 10px; }

/* ===== 分页 ===== */
.pagination { text-align: center; margin: 20px 0; }
.pagination a, .pagination span { display: inline-block; padding: 6px 14px; margin: 0 3px; background: #fff; border-radius: 4px; color: #333; font-size: 14px; }
.pagination a:hover { background: #b31217; color: #fff; }
.pagination .current { background: #b31217; color: #fff; }

/* ===== 侧栏 ===== */
.sidebar .card h3 { font-size: 16px; color: #b31217; border-left: 4px solid #b31217; padding-left: 10px; margin-bottom: 12px; }
.sidebar ul li { padding: 8px 0; border-bottom: 1px dashed #eee; }
.sidebar ul li a { color: #444; font-size: 14px; display: block; }
.sidebar ul li a:hover { color: #b31217; }

/* ===== 页脚 ===== */
.site-footer { background: #2a2a2a; color: #bbb; padding: 30px 0 0; margin-top: 30px; }
.foot-links { display: flex; gap: 30px; flex-wrap: wrap; padding-bottom: 20px; }
.foot-col { flex: 1; min-width: 200px; }
.foot-col h3 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.foot-col p { font-size: 13px; line-height: 1.8; }
.foot-col ul li { padding: 4px 0; }
.foot-col ul li a { color: #bbb; font-size: 13px; }
.foot-col ul li a:hover { color: #ff6600; }
.foot-bottom { border-top: 1px solid #444; padding: 16px 0; text-align: center; font-size: 12px; color: #888; }
.foot-bottom .foot-keywords { margin-top: 6px; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
    .layout { flex-direction: column; }
    .sidebar { width: 100%; }
    .site-header .container { flex-direction: column; text-align: center; }
    .main-nav ul { justify-content: center; margin-top: 10px; }
    .hero h1 { font-size: 20px; }
    .article-header h1 { font-size: 19px; }
}
@media (max-width: 560px) {
    .article-list li { flex-direction: column; }
    .article-list .date { align-self: flex-start; }
    .rank-table .hide-sm { display: none; }
}
