/* ============================================================
   传奇私服发布网 - 基础样式
   面向必应/Google 静态站：轻量、语义化、响应式
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: 15px;
  line-height: 1.85;
  color: #2b2b2b;
  background: #f4f5f7;
}
a { color: #b8131a; text-decoration: none; }
a:hover { color: #8a0d12; text-decoration: underline; }
img { max-width: 100%; border: 0; }
ul, ol { padding-left: 1.4em; }

/* ===== 顶部 ===== */
.topbar {
  background: #1f1f1f;
  color: #cfcfcf;
  font-size: 13px;
  padding: 6px 0;
}
.topbar .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
.topbar a { color: #ffd24d; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ===== 头部品牌区 ===== */
.site-header {
  background: linear-gradient(135deg, #b8131a 0%, #7a0a10 100%);
  color: #fff;
  padding: 22px 0;
}
.site-header h1 {
  font-size: 30px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.site-header h1 a { color: #fff; }
.site-header .slogan { font-size: 14px; opacity: .9; }

/* ===== 主导航 ===== */
.main-nav {
  background: #111;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
}
.main-nav li a {
  display: block;
  color: #eee;
  padding: 12px 18px;
  font-size: 15px;
}
.main-nav li a:hover,
.main-nav li a.active {
  background: #b8131a;
  color: #fff;
  text-decoration: none;
}

/* ===== 主体布局 ===== */
.container {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  padding: 24px 16px;
  max-width: 1180px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .container { grid-template-columns: 1fr; }
}

.card {
  background: #fff;
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  margin-bottom: 18px;
}
.card h2 {
  font-size: 20px;
  border-left: 4px solid #b8131a;
  padding-left: 10px;
  margin-bottom: 14px;
}
.card h3 { font-size: 17px; margin: 14px 0 8px; }

/* 面包屑 */
.breadcrumb {
  font-size: 13px;
  color: #777;
  margin-bottom: 10px;
}

/* 文章列表 */
.post-list { list-style: none; padding: 0; }
.post-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #e6e6e6;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.post-list li:last-child { border-bottom: 0; }
.post-list .date { color: #999; font-size: 13px; white-space: nowrap; }

/* 文章正文 */
.article-title { font-size: 24px; line-height: 1.4; margin-bottom: 8px; }
.article-meta { color: #888; font-size: 13px; margin-bottom: 18px; }
.article-content p { margin-bottom: 14px; text-indent: 2em; }
.article-content h2, .article-content h3 {
  font-size: 18px;
  margin: 20px 0 10px;
  padding-left: 8px;
  border-left: 3px solid #b8131a;
}
.article-content ul, .article-content ol { margin: 0 0 14px 1.4em; }

/* 上一篇/下一篇 */
.pager {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #eee;
  font-size: 14px;
}

/* ===== 侧栏 ===== */
.sidebar .card { padding: 16px 20px; }
.sidebar h3 {
  font-size: 16px;
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid #b8131a;
}
.sidebar ul { list-style: none; padding: 0; }
.sidebar ul li { padding: 5px 0; font-size: 14px; }
.sidebar ul li::before { content: "›"; color: #b8131a; margin-right: 6px; }

.tag-cloud a {
  display: inline-block;
  background: #f1f1f1;
  padding: 3px 10px;
  border-radius: 12px;
  margin: 0 6px 6px 0;
  font-size: 13px;
}

/* ===== 页脚 ===== */
.site-footer {
  background: #1f1f1f;
  color: #bbb;
  padding: 24px 0;
  font-size: 13px;
  margin-top: 30px;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.site-footer a { color: #ddd; }
.site-footer .disclaimer { line-height: 1.7; }

/* 提示条 */
.notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  padding: 10px 14px;
  border-radius: 4px;
  font-size: 13px;
  color: #7a5c00;
  margin-bottom: 16px;
}
