/*
Theme Name: WP Discuz 论坛主题
Theme URI: https://744h.com
Author: 老何
Author URI: https://744h.com
Description: 仿Discuz!窄版左右两栏响应式论坛主题，支持文章置顶、标题加粗、自定义颜色、在线更新、侧边栏
Version: 4.0
License: GPL2
Text Domain: wp-discuz
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 12px;
}
.wrapper {
  display: flex;
  gap: 15px;
  margin: 15px 0;
}
.main {
  flex: 1;
}
.sidebar {
  width: 240px;
}
@media (max-width: 768px) {
  .wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
  }
}
a {
  text-decoration: none;
  color: #333;
}
a:hover {
  color: #06c;
}

.thread-item.sticky {
  background: #fff9e6;
  border-left: 4px solid #ff7f00;
}
.thread-title-col a.bold {
  font-weight: bold;
}

.sidebar-box {
  background: #fff;
  border: 1px solid #eee;
  margin-bottom: 15px;
}
.sidebar-head {
  background: #f5fafe;
  padding: 10px;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}
.sidebar-body {
  padding: 10px;
}
.sidebar-body li {
  list-style: none;
  padding: 6px 0;
  border-bottom: 1px dashed #eee;
}
.sidebar-body li:last-child {
  border-bottom: none;
}

.header {
  background: #2d3741;
  color: #fff;
  padding: 12px 0;
  margin-bottom: 0;
}
.header .nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.header a { color: #eee; }

.forum-title {
  background: #fff;
  padding: 15px;
  border: 1px solid #e5e5e5;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: bold;
}
.forum-list {
  background: #fff;
  border: 1px solid #e5e5e5;
  margin-bottom: 15px;
}
.forum-head {
  background: #f5fafe;
  padding: 10px 15px;
  border-bottom: 1px solid #e5e5e5;
  font-weight: bold;
  color: #369;
}
.forum-item {
  padding: 15px;
  border-bottom: 1px solid #f5f5f5;
  display: flex;
  align-items: center;
}
.forum-info { flex:1; }
.forum-name { font-size:16px; font-weight:bold; }
.forum-desc { font-size:12px; color:#999; }
.forum-stats { width:120px; text-align:center; font-size:12px; color:#666; }

.thread-list { background:#fff; border:1px solid #eee; }
.thread-head {
  background:#f5fafe; padding:10px 15px; display:flex; font-size:12px; color:#666;
}
.thread-title-col{flex:1}
.thread-author-col{width:120px;text-align:center}
.thread-time-col{width:160px;text-align:center}
.thread-item{padding:12px 15px;border-bottom:1px solid #f5f5f5;display:flex;align-items:center}
.thread-content{background:#fff;padding:20px;border:1px solid #eee;margin-bottom:15px}
.thread-single-title{font-size:20px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid #eee}
.thread-meta{font-size:12px;color:#999;margin-bottom:20px}
.comments-area{background:#fff;padding:20px;border:1px solid #eee}
.comment-list{list-style:none}
.comment-item{padding:15px;border-bottom:1px solid #eee}
.pagination{text-align:center;margin:20px 0}
.pagination a,.pagination span{display:inline-block;padding:6px 12px;background:#fff;border:1px solid #eee;margin:0 3px}
.pagination .current{background:#369;color:#fff;border-color:#369}
.footer{background:#2d3741;color:#fff;text-align:center;padding:20px 0;margin-top:20px;font-size:12px}