/*
Theme Name: portal21
Theme URI:
Description: 全新黑白极简自适应SEO主题
Version: 2.0
Author: 豆包
Tags: 黑白,自适应,SEO,简洁
*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.7;
}
a {
  color: #222;
  text-decoration: none;
}
a:hover {
  color: #000;
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 15px;
}
.wrap {
  display: flex;
  gap: 30px;
  margin: 30px 0;
}
.content {
  flex: 1;
}
.sidebar {
  width: 280px;
}

/* 头部 */
.header {
  padding: 20px 0;
  border-bottom: 1px solid #eee;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}
.nav {
  text-align: right;
}
.nav a {
  margin-left: 15px;
  font-size: 14px;
}

/* 面包屑 */
.bread {
  background: #f7f7f7;
  padding: 10px 15px;
  font-size: 13px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* 文章列表 */
.item {
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.item .title {
  font-size: 19px;
  margin-bottom: 8px;
}
.item .info {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}
.item .info span {
  margin-right: 12px;
}
.item .excerpt {
  font-size: 14px;
  color: #444;
}

/* 分页 */
.pages {
  text-align: center;
  margin: 20px 0;
}
.pages a, .pages span {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #eee;
  margin: 0 3px;
}
.pages .current {
  background: #222;
  color: #fff;
  border-color: #222;
}

/* 侧边栏 */
.widget {
  margin-bottom: 30px;
}
.widget h3 {
  font-size: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #222;
  margin-bottom: 15px;
}
.widget ul {
  list-style: none;
}
.widget li {
  padding: 8px 0;
  border-bottom: 1px dashed #eee;
  font-size: 14px;
}
.side-box {
  display: flex;
  gap: 10px;
  align-items: center;
}
.side-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}

/* 内容页 */
.single .title {
  font-size: 24px;
  margin-bottom: 15px;
}
.single .info {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}
.single .content-body {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 30px;
}
.nav-links {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
  padding: 15px 0;
  margin-bottom: 30px;
}
.nav-links div {
  padding: 5px 0;
  font-size: 14px;
}
.related h3 {
  border-bottom: 2px solid #222;
  padding-bottom: 8px;
  margin-bottom: 15px;
}
.related li {
  padding: 6px 0;
}

/* 底部 */
.footer {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid #eee;
  font-size: 13px;
  color: #666;
}

/* 自适应 */
@media (max-width: 768px) {
  .wrap {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
  .nav {
    text-align: center;
  }
}