/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html, body {
  font-family: "Microsoft Yahei", sans-serif;
  background: #100a08;
  color: #e5d8b7;
  line-height: 1.6;
}
a {
  color: #e5d8b7;
  text-decoration: none;
  transition: all 0.2s;
}
a:hover {
  color: #ffcc00;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
ul, ol {
  list-style: none;
}

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

/* 头部导航 */
.header {
  background: #221612;
  padding: 12px 0;
  border-bottom: 2px solid #b92614;
}
.header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.logo img {
  height: 50px;
}

/* 顶部导航 */
.nav ul {
  display: flex;
  gap: 22px;
}
.nav a {
  font-size: 15px;
  font-weight: bold;
  color: #f2e4c8;
}
.nav a:hover {
  color: #ffcc00;
}

/* Banner */
.banner {
  margin: 10px 0;
  border-radius: 4px;
  overflow: hidden;
}
.banner img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* 金刚位 */
.king-box {
  display: flex;
  flex-wrap: wrap;
  background: #221612;
  padding: 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.king-item {
  flex: 0 0 16.666%;
  text-align: center;
  padding: 8px 4px;
}
.king-item img {
  width: 60px;
  height: 60px;
  margin: 0 auto 4px;
  object-fit: cover;
  border-radius: 6px;
  background: #1a100d;
}
.king-item span {
  font-size: 13px;
  color: #e5d8b7;
}

/* 专题推荐 */
.topic-recommend {
  background: #221612;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.topic-recommend h3 {
  font-size: 16px;
  color: #ffcc00;
  margin-bottom: 10px;
  padding-left: 8px;
  border-left: 3px solid #b92614;
}
.topic-list {
  display: flex;
  flex-wrap: wrap;
}
.topic-item {
  flex: 0 0 20%;
  padding: 6px;
  text-align: center;
}
.topic-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 6px;
}
.topic-item p {
  font-size: 13px;
}

/* 主内容区 */
.main-wrap {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.main {
  flex: 1;
  min-width: 0;
}
.sidebar {
  width: 320px;
}

/* 栏目区块 2×2 排版 */
.category-section {
  background: #221612;
  padding: 12px;
  border-radius: 4px;
}
.cat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.cat-item {
  flex: 1;
  background: #1a100d;
  padding: 10px;
  border-radius: 4px;
}
.cat-item h3 {
  font-size: 15px;
  color: #ffcc00;
  padding: 6px 8px;
  background: #33201a;
  border-radius: 3px;
  margin-bottom: 10px;
}

/* 文章排版：大图+文字+大图+文字 */
.big-item {
  margin-bottom: 10px;
}
.big-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 3px;
  margin-bottom: 6px;
}
.big-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
}
.big-item p {
  font-size: 12px;
  color: #bfa887;
  line-height: 1.5;
}

/* 文字列表 */
.cat-item li {
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed #3a2a22;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cat-item li:last-child {
  border-bottom: none;
}

/* 友情链接 */
.friend-link {
  background: #221612;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
}
.friend-link a {
  display: inline-block;
  margin-right: 12px;
  margin-bottom: 6px;
}

/* 侧边栏小工具 */
.widget {
  background: #221612;
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 12px;
}
.widget-title {
  font-size: 15px;
  color: #ffcc00;
  padding-bottom: 8px;
  margin-bottom: 10px;
  border-bottom: 1px solid #3a2a22;
}

/* 列表页 */
.page-title {
  font-size: 18px;
  color: #ffcc00;
  background: #221612;
  padding: 10px 12px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.post-list {
  background: #221612;
  padding: 12px;
  border-radius: 4px;
}
.list-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed #3a2a22;
}
.list-item:last-child {
  border-bottom: none;
}
.list-item img {
  width: 110px;
  height: 70px;
  object-fit: cover;
  border-radius: 3px;
}
.list-item h3 {
  font-size: 15px;
  margin-bottom: 4px;
}
.list-item p {
  font-size: 12px;
  color: #bfa887;
}

/* 详情页 */
.single-article {
  background: #221612;
  padding: 20px;
  border-radius: 4px;
}
.single-article h1 {
  font-size: 22px;
  color: #ffcc00;
  margin-bottom: 10px;
}
.meta {
  font-size: 12px;
  color: #bfa887;
  margin-bottom: 15px;
}
.content {
  font-size: 15px;
  line-height: 1.8;
  color: #e5d8b7;
}
.content p {
  margin-bottom: 1em;
}
.content img {
  margin: 1em 0;
  border-radius: 4px;
}

/* 底部 */
.footer {
  background: #221612;
  border-top: 2px solid #b92614;
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #bfa887;
  margin-top: 10px;
}

/* 手机适配 */
@media (max-width: 768px) {
  .main-wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .cat-row {
    flex-direction: column;
  }
  .king-item {
    flex: 0 0 33.333%;
  }
  .topic-item {
    flex: 0 0 50%;
  }
  .nav ul {
    margin-top: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
  }
}
/* 详情页 SEO 样式（柔和版 · 主次分明） */
.breadcrumbs {
  font-size: 12px;
  color: #888;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px dashed #333;
}
.breadcrumbs a {
  color: #ccc;
}
.entry-title {
  font-size: 22px;
  color: #ffcc00;
  margin-bottom: 25px;
}
.entry-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 35px;
  opacity: 0.8;
}
.entry-content {
  font-size: 15px;
  line-height: 1.9;
  color: #e5d8b7;
  margin-bottom: 40px;
}
/* TAG标签（弱化、不醒目） */
.entry-tags {
  font-size: 12px;
  color: #999;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}
.entry-tags span {
  background: #2a1d18;
  padding: 3px 8px;
  border-radius: 3px;
  color: #aaa;
  font-size: 12px;
}
.entry-tags span:hover {
  background: #b92614;
  color: #fff;
}
/* 上一篇下一篇 */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 18px;
  background: #1a100d;
  border-radius: 5px;
  margin-bottom: 40px;
  font-size: 14px;
}
.post-nav a {
  color: #ffcc00;
}
/* 相关推荐（独立模块） */
.related-posts-box {
  background: #221612;
  padding: 25px;
  border-radius: 6px;
  margin-top: 20px;
}
.related-posts-box h3 {
  color: #ffcc00;
  font-size: 16px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 3px solid #b92614;
}
.related-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.related-item {
  background: #1a100d;
  border-radius: 5px;
  overflow: hidden;
}
.related-item img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}
.related-item h4 {
  padding: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.related-item a {
  color: #e5d8b7;
}
.related-item a:hover {
  color: #ffcc00;
}
/* 手机适配 */
@media(max-width:768px){
  .related-list {
    grid-template-columns: 1fr;
  }
}
/* 分类列表优化 */
.list-item {
  display: flex;
  align-items: center;
  background: #1a100d;
  margin-bottom: 10px;
  border-radius: 5px;
  overflow: hidden;
}
.list-item img {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.list-info {
  padding: 10px 15px;
  flex: 1;
}
.list-info h3 {
  font-size: 16px;
  margin-bottom: 5px;
}
.list-meta {
  font-size: 12px;
  color: #999;
}
/* 数字分页样式 */
.pagination-wrap {
  margin: 30px 0;
  text-align: center;
}
.pagination-wrap ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pagination-wrap a,
.pagination-wrap span {
  display: inline-block;
  padding: 8px 12px;
  background: #1a100d;
  color: #e5d8b7;
  border-radius: 4px;
  font-size: 14px;
  min-width: 36px;
  text-align: center;
}
.pagination-wrap a:hover {
  background: #b92614;
  color: #fff;
}
.pagination-wrap .current {
  background: #b92614;
  color: #fff;
  font-weight: bold;
}