/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: #123;
  overflow-y: scroll;
  height: 100%;
  word-break: break-word;
  font-family: Arial, Helvetica, sans-serif;
}

h1 {
  font-size: 1.2em;
  margin: 0.2em 0;
}

h2 {
  font-size: 1em;
  font-weight: bold;
}

h3 {
  font-size: 0.8em;
  font-weight: bold;
}

/* 工具类 */
.clear {
  clear: both;
}

.tcenter {
  text-align: center;
}

.fleft {
  float: left;
}

.fright {
  float: right;
}

.gray {
  color: gray;
}

.fs12 {
  font-size: 12px;
}

.x-small-p {
  font-size: smaller;
  line-height: 1.4em;
  color: #666;
}

.noborder {
  border: none;
}

.mp0 {
  margin: 0;
  padding: 0;
}

.mtem {
  margin-bottom: 1em;
}

.mb-half-em {
  margin-bottom: 0.5em;
}

.w460 {
  width: 300px;
}

.pointer,
a[href],
input[type='submit'],
input[type='image'],
label[for],
select,
button {
  cursor: pointer;
}

.alert-danger {
  color: red;
}

/* 主体布局 */
.content-wrap {
  max-width: 100%;
  margin: 0 auto;
}

.mainfieldset {
  width: 764px;
  margin: 0 auto;
  background-color: #eec;
}

.mainfieldset input {
  margin-bottom: 3px;
}

.main {
  padding: 0;
  margin: 1em 0 0.5em;
  color: #333;
  background-color: #123;
  line-height: 1.6875em;
}

.main-div-center {
  color: #333;
  background-color: #eec;
  border-radius: 8px;
  padding: 1em;
  min-height: 600px;
}

/* 导航 */
.custom-wrapper {
  padding: 0 1em;
  background-color: #357;
  -webkit-font-smoothing: antialiased;
  height: 2.1em;
  overflow: hidden;
  transition: height 0.5s;
}

.custom-wrapper.open {
  height: auto;
}

.custom-brand {
  padding: 0.2em 1em;
  font-size: 1.2em;
}

.custom-menu-3 {
  text-align: right;
}

.custom-toggle {
  width: 34px;
  height: 34px;
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  display: none;
}

.custom-toggle .bar {
  background-color: #ccc;
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 100px;
  position: absolute;
  top: 18px;
  right: 17px;
  transition: all 0.5s;
}

.custom-toggle .bar:first-child {
  transform: translateY(-6px);
}

.custom-toggle.x .bar {
  transform: rotate(45deg);
}

.custom-toggle.x .bar:first-child {
  transform: rotate(-45deg);
}

#menu a {
  color: #fff;
}

.pure-menu-active > .pure-menu-link,
.pure-menu-link:hover,
.pure-menu-link:focus {
  background-color: #345;
}

/* 横幅 */
.banner {
  padding: 0.3em 1em;
  color: #ccc;
  background-color: #586;
  text-align: center;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.banner a {
  color: #fff;
  text-decoration: none;
}

.banner a:hover {
  text-decoration: underline;
}

/* 面包屑 */
.breadcrumbs {
  color: #666;
}

.breadcrumbs a {
  text-decoration: none;
}

.breadcrumbs ol {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 4px;
}

.breadcrumbs ol li {
  display: inline-block;
}

.login-bar {
  float: right;
}

.main-nav {
  margin-top: 1em;
}

.bottom-line {
  border-bottom: 1px solid #ccc;
}

/* 按钮色值 */
.button-success,
.button-error,
.button-warning,
.button-secondary {
  color: white;
  border-radius: 4px;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.button-success {
  background: rgb(28, 184, 65);
}

.button-error {
  background: rgb(202, 60, 60);
}

.button-warning {
  background: rgb(223, 117, 20);
}

.button-secondary {
  background: rgb(66, 184, 221);
}

.btn-pd-4 a,
.btn-pd-4 button {
  margin-bottom: 0.4em;
}

/* 区块 */
.fenqu-bar {
  border-bottom: 1px solid #ccc;
}

.fenqu-about {
  padding: 0.1em 1em;
  background-color: #ddd;
}

.my-shuju {
  padding: 0.1em 1em;
  background-color: #E6EFC2;
  color: #222;
  border: 1px solid #ccc;
}

.my-shuju label {
  cursor: pointer;
}

.my-shuju label:hover {
  color: #fff;
  background-color: #586;
}

.shuju-review {
  margin: 0.5em 0;
  padding: 1em;
  color: #234;
  background-color: #eee;
}

/* 列表 */
.jilulist,
.shuxinglist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jilulist {
  margin-top: 20px;
}

.related-shuxing {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
  list-style: none;
  padding: 0;
}

.related-shuxing li:hover {
  background-color: #ccc;
}

.jiluyear .pure-menu-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 统计 */
.fenqu-tongji ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fenqu-tongji ul li {
  padding: 0.5em;
  border-bottom: 1px solid #ccc;
  background-color: #ddd;
}

.fenqu-tongji ul li.first-li {
  background-color: #ccc;
}

.fenqu-detail {
  width: 100%;
}

.fenqu-detail ul {
  margin: 0;
  padding: 0.5em 0;
  background-color: #ddd;
  list-style: none;
}

.fenqu-detail ul li {
  line-height: 1.61875em;
  border-bottom: 1px solid #eec;
  padding: 0.1em 0;
}

.fenqu-detail ul li label {
  cursor: pointer;
  padding: 4px;
}

.fenqu-detail ul li label:hover {
  color: #fff;
  background-color: #357;
}

.fenqu-detail ul li a {
  color: #006400;
  text-decoration: none;
}

.fenqu-detail ul li a:hover {
  color: red;
}

/* 搜索 */
.search-form input[type=text] {
  width: 100px;
  display: inline-block;
}

.search-form button[type=submit] {
  margin: 0;
  display: inline-block;
}

/* 颜色 */
.qishu {
  color: #006400;
}

.cur_qishu {
  color: #880000;
}

.red, .redt, .redtxt {
  color: red;
}

/* 背景 */
.hisbg {
  padding: 10px 0;
  color: #000;
  background-color: #ddd;
}

.hisbg li {
  margin-bottom: 4px;
}

.hisbg_tj {
  padding: 10px 0;
  color: #000;
  background-color: #ddd;
}

.hisbg_tj li {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
  word-wrap: break-word;
}

.self-tj {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* 置顶 */
#stickThis {
  padding: 5px;
  background-color: #eee;
  width: 80%;
  max-width: 700px;
  border: 1px solid #ccc;
  border-radius: 10px;
}

#stickThis.stick {
  margin-top: 0;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  border-radius: 0 0 10px 10px;
}

/* 回到顶部 */
#go-to-top {
  display: none;
  position: fixed;
  right: 60px;
  bottom: 66px;
  padding: 10px;
  color: #666;
  background: #ddd;
  font: 24px/12px Helvetica, Arial, Verdana, sans-serif;
  opacity: 0.7;
  border-radius: 5px;
  text-decoration: none;
}

/* 内容输入输出 */
.tj-main-con {
  background-color: #eec;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.tj-left, .tj-right {
  flex: 1;
  min-width: 280px;
  margin-top: 2em;
}

#tj-input, #tj-output {
  width: 100%;
  resize: vertical;
  font-size: 0.85em;
  line-height: 1.5em;
}

#tj-input {
  min-height: 156px;
}

#tj-output {
  min-height: 256px;
}

/* ===================== sx-items 标签按钮（已优化自动换行） ===================== */
.sx-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 0 0 8px;
  margin-bottom: 0.3em;
  border-bottom: 1px solid #ccc;
}

.sx-items span {
  white-space: nowrap;
  position: relative;
  cursor: pointer;
  padding: 0 0.8em;
  height: 34px;
  background: #E6E6E6;
  border-radius: 5px;
  box-shadow: 0 3px rgba(0, 0, 0, 0.15);
  color: rgba(0,0,0,.8);
  line-height: 34px;
  text-align: center;
  user-select: none;
  transition: all 0.2s ease;
}

.sx-items span:hover {
  background: #9c89f6;
  box-shadow: 0 4px #6b54d3;
  color: white;
}

.sx-items span:active {
  box-shadow: 0 0 #6b54d3;
  top: 3px;
}

.sx-hr {
  display: block;
  height: 0.5em;
  clear: both;
}

/* 话题 */
.topic-li {
  border-bottom: 1px solid #ccc;
  margin-bottom: 0.5em;
  padding-bottom: 0.5em;
}

.topic-li-title {
  font-size: larger;
  line-height: 2em;
}

.topic-li-title a {
  color: #333;
  text-decoration: none;
}

.topic-li-title a:hover {
  text-decoration: underline;
}

.topic-li-meta {
  color: #6a737d;
  font-size: smaller;
}

.topic-li-meta a {
  font-weight: bold;
}

.pagination {
  margin-top: 15px;
  padding: 1em 0;
}

.topic-title {
  border-bottom: 1px solid #ccc;
}

.topic-meta {
  font-size: smaller;
  color: #6a737d;
}

.topic-relate {
  background-color: #E6E6E6;
  padding-left: 0.3em;
  margin-bottom: 2em;
}

.topic-relate li {
  line-height: 2em;
  border-bottom: 1px solid #eec;
  list-style: none;
}

.topic-relate li a {
  color: #333;
  text-decoration: none;
}

.topic-relate li a:hover {
  text-decoration: underline;
}

.topic-con-input {
  height: 300px;
}

.comment-con-input {
  height: 160px;
  margin-bottom: 1em;
}

/* 计数 */
.item-count {
  font-size: 12px;
  line-height: 14px;
  font-weight: bold;
  border-radius: 14px;
  display: inline-block;
  background-color: #AAB0C6;
  color: #FFF;
  padding: 2px 10px;
  text-decoration: none;
}

.item-count:visited {
  color: #AAA;
  background-color: #E5E5E5;
}

.item-count:hover {
  background-color: #778087;
}

.node-link {
  color: #666;
  text-decoration: none;
}

.node-link:hover {
  text-decoration: underline;
}

.comment-count {
  line-height: 14px;
  display: inline-block;
  background-color: #d6d6d6;
  color: #666;
  padding: 2px 10px;
  text-decoration: none;
}

.comment-nav {
  border-bottom: 1px solid #ccc;
  background-color: #E6E6E6;
  margin-bottom: 0.5em;
}

.comment-li {
  border-bottom: 1px solid #ccc;
  margin-bottom: 1.2em;
}

/* 提示框 */
.errorlist, .info {
  margin: 0.8em;
  padding: 0.8em;
  border: 1px solid #ddd;
}

.errorlist {
  background: #FBE3E4;
  color: #8a1f11;
  border-color: #FBC2C4;
}

.info {
  background: #E6EFC2;
  color: #264409;
  border-color: #C6D880;
}

/* 底部 */
.footer {
  padding: 0.5em 1em;
  color: #999;
}

.footer a {
  color: #ccc;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .content {
  padding: 0.5em 1em;
  text-align: center;
  background-color: #357;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.footer p {
  font-size: smaller;
  line-height: 1.6em;
}

/* markdown */
.markdown-body {
  line-height: 1.618em;
  padding: 1em 0;
  border: 0;
  border-radius: 0;
  word-break: break-word;
}

.markdown-body a:hover {
  text-decoration: underline;
}

/* 移动端 */
@media (max-width: 47.999em) {
  .custom-wrapper {
    padding: 0 0.1em;
  }

  .custom-menu-3 {
    text-align: left;
  }

  .custom-toggle {
    display: block;
  }

  .custom-brand {
    padding: 0.2em 0.2em;
  }

  .banner {
    padding: 0.5em 0.1em;
  }

  .jilulist li {
    font-size: smaller;
  }

  .main-div-center {
    padding: 1em 0.5em;
  }

  .footer {
    padding: 0.5em 0;
  }

  #go-to-top {
    right: 30px;
    bottom: 40px;
  }
}