:root {
  --bg: #eef2f8;
  --card: #ffffff;
  --card-soft: #f6f8fb;
  --line: #e7ebf0;
  --line-soft: #edf1f5;
  --text: #444c55;
  --text-soft: #9aa4b2;
  --blue: rgba(25, 121, 255, 0.83);
  --blue-deep: #1979ff;
  --green: #4fc277;
  --cyan: #1499f8;
  --orange: #ff8800;
  --radius: 5px;
  --shadow: 0 0 0 rgba(0, 0, 0, 0);
  --shell: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-width: 0;
  color: var(--text);
  font: 14px/1.7 "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg) url("../image/bg.webp") center top / cover fixed no-repeat;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, opacity .18s ease;
}

img {
  display: block;
  max-width: 100%;
  border: 0;
}

button,
input {
  font: inherit;
}

ul,
ol,
p,
h1,
h2,
h3,
h4 {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.wp-shell {
  width: min(var(--shell), calc(100% - 30px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(36, 54, 77, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 60px;
}

.site-logo img,
.m-logo img {
  width: auto;
  height: 32px;
}

.site-nav {
  flex: 1;
  min-width: 0;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__list > li {
  position: relative;
}

.site-nav__list > li > a {
  display: block;
  height: 34px;
  line-height: 34px;
  padding: 0 12px;
  color: #737b86;
  border-radius: 2px;
}

.site-nav__list > li.is-active > a,
.site-nav__list > li > a:hover {
  color: var(--blue-deep);
  background: rgba(25, 121, 255, 0.08);
}

.site-subnav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 150px;
  display: none;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.site-subnav li a {
  display: block;
  padding: 6px 8px;
  border-radius: 3px;
}

.site-subnav li a:hover {
  background: #2a2d32;
  color: var(--blue-deep);
}

.site-nav__list > li:hover .site-subnav {
  display: block;
}

.site-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-search {
  position: relative;
  width: 220px;
  height: 36px;
  border: 1px solid #e8edf2;
  border-radius: 999px;
  background: #f8fafc;
}

.site-search input {
  width: 100%;
  height: 100%;
  padding: 0 44px 0 14px;
  border: 0;
  outline: 0;
  color: #59636f;
  background: transparent;
  font-size: 12px;
}

.site-search input::placeholder {
  color: #a1a9b4;
}

.site-search button,
.m-search-btn {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 0;
  border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center/14px 14px no-repeat;
  cursor: pointer;
}

.site-user {
  position: relative;
}

.site-user__avatar img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.site-user__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 140px;
  display: none;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.site-user__menu a {
  display: block;
  padding: 8px 10px;
  border-radius: 3px;
  color: #6d7680;
}

.site-user__menu a:hover {
  color: var(--blue-deep);
  background: #f6f8fb;
}

.site-user:hover .site-user__menu {
  display: block;
}

.m-header {
  display: none;
}

.m-header__inner {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(36, 54, 77, 0.06);
}

.m-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.m-search-btn {
  position: relative;
  top: auto;
  right: auto;
  margin: 0;
}

.m-toggle {
  width: 34px;
  height: 34px;
  padding: 7px;
  border: 0;
  background: none;
}

.m-toggle span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #59636f;
}

.mobile-drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: none;
  background: rgba(0, 0, 0, 0.36);
}

.mobile-drawer-mask.is-active {
  display: block;
}

.page-wrap {
  padding: 15px 0 40px;
}

.whole-box {
  min-height: calc(100vh - 123px);
}

.forum-layout {
  display: grid;
  grid-template-columns: 175px 645px 270px;
  gap: 15px;
  align-items: start;
}

.thread-layout {
  position: relative;
  display: grid;
  grid-template-columns: 80px 740px 270px;
  gap: 15px;
  align-items: start;
}

.thread-layout--page {
  grid-template-columns: 740px 270px;
}

.leftbar__sticky {
  position: sticky;
  top: 75px;
}

.left-card,
.banner-card,
.top-card,
.feed-card,
.forum-head-card,
.thread-table-card,
.side-card,
.viewbox,
.reply-section,
.author-card,
.tag-board,
.reply-box {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.left-card + .left-card,
.side-card + .side-card {
  margin-top: 15px;
}

.left-card {
  overflow: hidden;
}

.left-tabs {
  padding: 10px 10px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.left-tabs a {
  display: block;
  height: 32px;
  line-height: 32px;
  padding: 0 12px;
  border-radius: 3px;
  color: #5f6975;
}

.left-tabs a.is-active,
.left-tabs a:hover {
  color: var(--blue-deep);
  background: #edf5ff;
}

.left-forum-list {
  padding: 8px 0 10px;
  background: #fff;
}

.left-forum-list li {
  padding: 0 0 7px;
}

.left-forum-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 10px;
  padding: 4px 10px;
  color: #626b76;
  border-left: 3px solid transparent;
  background: #fff;
}

.left-forum-list a:hover {
  color: var(--blue-deep);
  border-left-color: var(--blue-deep);
  background: #f7fbff;
}

.left-forum-list em {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5298ff, #91bdd3);
}

.left-card--notice {
  padding: 0;
}

.left-card__title {
  padding: 12px 15px 10px;
  border-bottom: 1px solid var(--line);
  color: #4b5560;
  font-size: 15px;
}

.left-card__title small {
  color: #999;
  font-size: 11px;
}

.left-notice {
  padding: 12px 15px 14px;
  font-size: 12px;
  color: #7d8793;
}

.left-notice span {
  display: block;
  margin-bottom: 6px;
}

.forum-main {
  min-width: 0;
}

.banner-card {
  padding: 10px;
  margin-bottom: 15px;
}

.banner-card__stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.banner-card__item {
  position: relative;
}

.banner-card__item img {
  width: 100%;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
}

.banner-card__item span {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
  color: #fff;
  font-size: 10px;
}

.top-card {
  margin-bottom: 15px;
}

.top-card__head {
  padding: 12px 18px 8px;
  border-bottom: 1px solid var(--line);
}

.top-card__head span {
  display: inline-block;
  color: #4a5560;
  font-size: 15px;
}

.top-card__list {
  padding: 8px 18px 10px;
}

.top-card__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.top-card__title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-card__title a {
  color: #cfc8bd;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-card__list li span {
  flex: none;
  color: #999;
  font-size: 12px;
}

.top-flag {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5e7f;
}

.top-1 {
  background: #ff6922;
}

.top-2 {
  background: #ff8800;
}

.feed-card {
  overflow: hidden;
}

.feed-thread {
  display: flex;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #e9edf2;
}

.feed-thread:last-child {
  border-bottom: 0;
}

.feed-thread__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.feed-thread__body {
  flex: 1;
  min-width: 0;
}

.feed-thread__author,
.feed-thread__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feed-thread__author strong {
  color: #4b5661;
  font-size: 14px;
  font-weight: 500;
}

.uid-badge,
.author-badge,
.cate-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 0 8px;
  height: 20px;
  line-height: 20px;
  border-radius: 999px;
  font-size: 11px;
}

.uid-badge {
  color: #fff;
  background: #4c8fe1;
}

.author-badge {
  color: #fff;
  background: #5bc0de;
}

.feed-thread__date,
.feed-thread__last,
.thread-row__meta,
.thread-row__date,
.thread-row__count,
.thread-row__author,
.top-card__list li span,
.side-rank span,
.reply-box__meta span,
.post-content__meta,
.thread-titlebar__stats,
.author-card__desc {
  color: var(--text-soft);
  font-size: 12px;
}

.feed-thread__title {
  margin: 8px 0 6px;
  color: #495560;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.feed-thread__title a:first-child:hover,
.thread-row__title:hover,
.top-card__title a:hover,
.side-rank a:hover,
.side-topic strong:hover,
.side-simple-list a:hover {
  color: var(--blue-deep);
}

.cate-pill {
  margin-left: 10px;
  color: #b97312;
  background: #fff1db;
  font-weight: 400;
}

.feed-thread__brief {
  display: -webkit-box;
  overflow: hidden;
  color: #7b8794;
  font-size: 12px;
  line-height: 1.75;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.feed-thread__images {
  margin: 10px 0 8px;
  max-width: 100%;
}

.forum-layout--home .feed-thread__images img {
  width: 165px;
  height: 110px;
  object-fit: cover;
  border-radius: 16px;
  -webkit-clip-path: inset(0 0 15% 0) !important;
  clip-path: inset(0 0 15% 0) !important;
}

.feed-thread__meta {
  margin-top: 10px;
}

.feed-thread__meta > div span {
  position: relative;
  margin-right: 14px;
  padding-left: 18px;
  color: #7f8994;
  font-size: 12px;
}

.meta-view::before,
.meta-reply::before,
.meta-fav::before,
.backtop::before,
.thread-rail__btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 13px;
  height: 13px;
  margin-top: -6px;
  border-radius: 50%;
  background: #c8d0d8;
}

.meta-reply::before {
  background: #d9b978;
}

.meta-fav::before {
  background: #ffb64b;
}

.feed-thread__last span {
  margin-left: 6px;
}

.forum-head-card {
  padding: 18px 20px;
  margin-bottom: 15px;
}

.forum-head-card__title h1 {
  color: #495560;
  font-size: 24px;
  font-weight: 400;
}

.forum-head-card__title p {
  margin-top: 6px;
  color: #8a95a3;
  font-size: 13px;
}

.thread-table-card {
  overflow: hidden;
}

.thread-types {
  padding: 15px 20px 0;
  border-top: 1px solid #eceff4;
}

.thread-types a {
  display: inline-block;
  margin-right: 18px;
  color: #69737f;
  font-size: 14px;
}

.thread-types a.is-active,
.thread-types a:hover {
  color: var(--blue-deep);
}

.thread-table__head,
.thread-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px 70px 88px;
  gap: 14px;
  align-items: center;
}

.thread-table__head {
  padding: 14px 20px 12px;
  border-bottom: 1px solid var(--line-soft);
  color: #999;
  font-size: 12px;
}

.thread-row {
  padding: 12px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.thread-row:last-child {
  border-bottom: 0;
}

.thread-row__subject {
  min-width: 0;
}

.thread-row__title {
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4a5560;
  font-size: 15px;
}

.thread-row__meta {
  display: flex;
  gap: 10px;
}

.thread-row__meta a {
  color: #97a1ae;
}

.thread-row__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-row__author strong {
  display: block;
  color: #6d7680;
  font-weight: 400;
}

.pager {
  padding: 16px 20px 20px;
}

.pager a,
.pager strong,
.pager span {
  display: inline-block;
  min-width: 36px;
  height: 34px;
  line-height: 34px;
  margin: 0 6px 6px 0;
  padding: 0 12px;
  color: #6f7a86;
  text-align: center;
  border: 1px solid #dfe5ec;
  border-radius: 4px;
  background: #fff;
}

.pager a:hover,
.pager strong {
  color: #fff;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
}

.rightbar {
  min-width: 0;
}

.side-card {
  padding: 16px 18px;
}

.side-card__title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1f5;
  color: #4b5560;
  font-size: 18px;
  font-weight: 400;
}

.side-profile {
  padding: 0 0 18px;
  overflow: hidden;
  text-align: center;
  background: #fff;
}

.side-profile__banner {
  height: 80px;
  background: linear-gradient(to right, #29323c, #485563);
}

.side-profile__avatar {
  margin-top: -35px;
}

.side-profile__avatar img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #fff;
}

.side-profile h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 400;
}

.side-profile p {
  margin-top: 4px;
  color: #9b9b9b;
  font-size: 12px;
}

.side-profile__stats {
  display: flex;
  margin: 15px 0 0;
  background: #fff;
}

.side-profile__stats p {
  flex: 1;
  padding: 12px 0;
  color: #8b95a1;
}

.side-profile__stats p + p {
  border-left: 1px solid #edf1f5;
}

.side-profile__stats strong {
  display: block;
  color: #4b5560;
  font-size: 20px;
  font-weight: 400;
}

.side-main-btn,
.thread-side__btn {
  display: block;
  height: 40px;
  line-height: 40px;
  margin: 15px 18px 0;
  color: #fff;
  font-size: 16px;
  text-align: center;
  background: var(--blue);
}

.side-dual,
.thread-side__dual {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin: 15px 18px 0;
}

.side-dual__item,
.thread-side__dual a {
  flex: 1;
  height: 40px;
  line-height: 40px;
  color: #fff;
  font-size: 13px;
  text-align: center;
}

.is-blue {
  background: var(--cyan);
}

.is-green {
  background: var(--green);
}

.side-rank li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.side-rank em {
  display: block;
  width: 25px;
  height: 25px;
  line-height: 25px;
  color: #9aa4b1;
  font-size: 14px;
  font-style: normal;
  text-align: center;
  background: #f1f4f8;
}

.side-rank li:nth-child(1) em {
  color: var(--blue-deep);
  background: #e5f3ff;
}

.side-rank a {
  display: block;
  color: #4b5661;
  margin-bottom: 3px;
  line-height: 1.55;
}

.side-topic-list {
  display: grid;
  gap: 14px;
}

.side-topic {
  display: block;
}

.side-topic span {
  display: block;
  margin-bottom: 6px;
  color: var(--blue-deep);
  font-size: 12px;
}

.side-topic strong {
  display: block;
  margin-bottom: 5px;
  color: #4a5560;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

.side-topic small {
  color: #96a0ad;
  font-size: 14px;
}

.side-tags,
.tag-board__list,
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
}

.side-tags a,
.tag-board__list a,
.post-tags a {
  display: inline-block;
  padding: 0 10px;
  line-height: 28px;
  color: #757575;
  font-size: 13px;
  background: #eee;
  border: 1px solid #eee;
}

.side-tags a:hover,
.tag-board__list a:hover,
.post-tags a:hover {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.thread-rail {
  position: relative;
}

.thread-rail__inner {
  position: sticky;
  top: 72px;
  width: 80px;
  text-align: center;
  color: #9aa4b2;
}

.thread-rail__btn {
  position: relative;
  display: block;
  width: 48px;
  height: 48px;
  margin: 16px auto 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 18px rgba(31, 45, 61, 0.08);
}

.thread-rail__btn::before {
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  background: #343a40;
}

.thread-rail__btn--reply::before {
  background: #f6af5d;
}

.thread-rail__btn--like::before {
  background: #f60;
}

.thread-main {
  min-width: 0;
}

.viewbox {
  overflow: hidden;
}

.thread-titlebar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 46px;
  padding: 0 20px;
  background: #fff;
  border-bottom: 1px solid #edf1f5;
}

.thread-titlebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.thread-titlebar__user img {
  width: 28px;
  height: 28px;
  padding: 2px;
  border: 1px solid #e3e8ef;
  border-radius: 50%;
  background: #202328;
}

.thread-titlebar__user a {
  color: #4c8fe1;
  font-size: 16px;
}

.post-table {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
}

.post-table--single {
  display: block;
}

.post-author {
  padding-top: 35px;
  background: #fafbfd;
  border-right: 1px solid #edf1f5;
  text-align: center;
}

.post-author__avatar img {
  width: 92px;
  height: 92px;
  margin: 0 auto 8px;
  padding: 5px;
  border: 1px solid #e3e8ef;
  border-radius: 50%;
  background: #202328;
}

.post-author__name {
  color: #4b5661;
  font-size: 16px;
}

.post-author__meta {
  margin-top: 2px;
  color: #9aa4b2;
  font-size: 12px;
}

.post-author__stats {
  display: flex;
  margin: 14px 13px 10px;
  background: #f6f8fb;
}

.post-author__stats p {
  flex: 1;
  padding: 8px 0;
  color: #9aa4b2;
  font-size: 12px;
}

.post-author__stats strong {
  display: block;
  color: #495560;
}

.post-content {
  min-width: 0;
  padding: 0 20px;
}

.post-content--single {
  padding: 0 28px;
}

.post-content__head {
  padding: 15px 0 13px;
  border-bottom: 1px solid #edf1f5;
}

.post-content__head h1 {
  font-size: 30px;
  line-height: 1.45;
  color: #4a5560;
  font-weight: 700;
}

.topic-chip {
  display: inline-block;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  color: #3f8cff;
  background: #eef5ff;
  border-radius: 4px;
}

.post-editor-line {
  padding: 30px 0 12px;
  color: #9aa4b2;
  text-align: center;
  font-size: 12px;
}

.post-content__meta {
  display: flex;
  gap: 14px;
  margin-top: 8px;
}

.post-content__body {
  padding: 20px 0 10px;
}

.post-cover {
  margin-bottom: 20px;
}

.thread-layout .post-cover img {
  width: 100%;
  border-radius: 4px;
  -webkit-clip-path: inset(0 0 15% 0) !important;
  clip-path: inset(0 0 15% 0) !important;
}

.entry-content,
.entry-content p,
.entry-content td {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
}

.thread-layout .entry-content img {
  max-width: 100%;
  height: auto;
  -webkit-clip-path: inset(0 0 15% 0) !important;
  clip-path: inset(0 0 15% 0) !important;
}

.post-content__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0 20px;
}

.post-actions a {
  display: inline-block;
  margin-left: 15px;
  color: #999;
}

.post-actions a:hover {
  color: var(--blue-deep);
}

.post-nav {
  display: grid;
  gap: 10px;
  padding: 18px 0 24px;
  border-top: 1px solid #edf1f5;
}

.post-nav a {
  display: block;
  padding: 12px 14px;
  border: 1px solid #e5eaf0;
  border-radius: 3px;
  background: #f8fafc;
}

.post-nav span {
  display: block;
  margin-bottom: 6px;
  color: #999;
  font-size: 12px;
}

.post-nav strong {
  display: block;
  color: #4b5661;
  font-weight: 400;
}

.reply-section {
  margin-top: 15px;
  padding: 0 0 15px;
}

.reply-section__head {
  height: 58px;
  padding: 0 30px;
  border-bottom: 1px solid #edf1f5;
}

.reply-section__head h2 {
  height: 58px;
  line-height: 58px;
  color: #4b5661;
  font-size: 20px;
  font-weight: 400;
}

.reply-section__body {
  padding: 18px 20px 0;
}

.reply-section--list {
  padding: 15px 20px;
}

.reply-box {
  display: flex;
  gap: 15px;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid #edf1f5;
}

.reply-box:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.reply-box__avatar img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.reply-box__body {
  min-width: 0;
  flex: 1;
}

.reply-box__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.reply-box__content {
  color: #4c5560;
  line-height: 1.9;
}

.reply-box__link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue-deep);
}

.thread-side {
  min-width: 0;
}

.author-card {
  overflow: hidden;
  text-align: center;
}

.author-card__top {
  padding: 20px 20px 15px;
}

.author-card__top img {
  width: 70px;
  height: 70px;
  margin: 0 auto;
  border-radius: 50%;
}

.author-card__name {
  display: block;
  margin: 10px 0;
  color: #4b5661;
  font-size: 16px;
}

.author-card__stats {
  display: flex;
  background: #fff;
}

.author-card__stats p {
  flex: 1;
  padding: 12px 0;
}

.author-card__stats p + p {
  border-left: 1px solid #edf1f5;
}

.author-card__stats strong {
  display: block;
  color: #4b5661;
  font-size: 20px;
  font-weight: 400;
}

.thread-side__dual,
.thread-side__btn {
  margin-left: 0;
  margin-right: 0;
}

.side-simple-list li {
  margin-bottom: 12px;
}

.side-simple-list li:last-child {
  margin-bottom: 0;
}

.side-simple-list a {
  display: block;
  color: #5c6772;
  line-height: 1.7;
}

.site-footer {
  padding: 18px 0 28px;
  color: #98a2af;
  font-size: 12px;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__links a {
  margin-left: 16px;
}

.backtop {
  position: fixed;
  right: 24px;
  bottom: 40px;
  z-index: 60;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: none;
  background: #d44f49;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.backtop::before {
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: #fff;
}

.backtop.is-visible {
  display: block;
}

.error-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #eef2f8;
}

.error-box {
  width: min(420px, calc(100% - 30px));
  padding: 40px 30px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.error-box strong {
  display: block;
  color: var(--blue-deep);
  font-size: 56px;
  line-height: 1;
}

.error-box h1 {
  margin: 18px 0 8px;
  font-size: 24px;
  font-weight: 500;
}

.error-box p {
  color: #8f9aa7;
}

.error-box a {
  display: inline-block;
  margin-top: 18px;
  padding: 0 22px;
  height: 40px;
  line-height: 40px;
  color: #fff;
  background: var(--blue);
  border-radius: 999px;
}

@media (max-width: 1100px) {
  .forum-layout {
    grid-template-columns: 175px minmax(0, 1fr);
  }

  .rightbar {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .side-card + .side-card {
    margin-top: 0;
  }

  .thread-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }

  .thread-rail {
    display: none;
  }
}

@media (max-width: 800px) {
  .site-header {
    position: fixed;
    top: 0;
    right: -280px;
    bottom: 0;
    left: auto;
    width: 260px;
    z-index: 220;
    display: block;
    background: #fff;
    transition: right .25s ease;
  }

  .m-header {
    display: block;
    position: sticky;
    top: 0;
    z-index: 210;
  }

  .site-header.is-open {
    right: 0;
  }

  .site-header__inner {
    display: block;
    height: auto;
    padding: 72px 16px 24px;
  }

  .site-logo,
  .site-tools {
    display: none;
  }

  .site-nav {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    overflow-y: auto;
  }

  .site-nav__list {
    display: block;
  }

  .site-nav__list > li > a {
    color: #5f6975;
    padding: 0 10px;
  }

  .site-subnav {
    position: static;
    display: block;
    padding: 4px 0 6px 10px;
    border: 0;
    background: transparent;
  }

  .page-wrap {
    padding-top: 12px;
  }

  .whole-box {
    min-height: calc(100vh - 201px);
  }

  .forum-layout,
  .thread-layout,
  .thread-layout--page {
    grid-template-columns: 1fr;
  }

  .leftbar,
  .thread-side {
    order: 2;
  }

  .rightbar {
    order: 3;
    grid-template-columns: 1fr;
  }

  .leftbar__sticky {
    position: static;
  }

  .banner-card,
  .top-card,
  .feed-card,
  .forum-head-card,
  .thread-table-card,
  .reply-section,
  .viewbox {
    border-radius: 5px;
  }

  .feed-thread {
    padding: 12px;
    gap: 10px;
  }

  .feed-thread__images {
    max-width: 100%;
  }

  .forum-layout--home .feed-thread__images img {
    width: 100%;
    height: 160px;
    -webkit-clip-path: inset(0 0 15% 0) !important;
    clip-path: inset(0 0 15% 0) !important;
  }

  .thread-table__head {
    display: none;
  }

  .thread-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .thread-row__author,
  .thread-row__count,
  .thread-row__date {
    font-size: 12px;
  }

  .post-table {
    grid-template-columns: 1fr;
  }

  .post-author {
    padding: 18px 15px 6px;
    border-right: 0;
    border-bottom: 1px solid #edf1f5;
  }

  .post-author__stats {
    margin-left: 0;
    margin-right: 0;
  }

  .post-content {
    padding: 0 12px;
  }

  .post-content__head h1 {
    font-size: 20px;
    line-height: 1.5;
  }

  .entry-content,
  .entry-content p,
  .entry-content td {
    font-size: 14px;
    line-height: 1.9;
  }

  .thread-layout .post-cover img,
  .thread-layout .entry-content img {
    -webkit-clip-path: inset(0 0 15% 0) !important;
    clip-path: inset(0 0 15% 0) !important;
  }

  .reply-section__head {
    padding: 0 15px;
  }

  .reply-section__body {
    padding: 15px 12px 0;
  }

  .site-footer__inner {
    display: block;
    text-align: center;
  }

  .site-footer__links {
    margin-top: 10px;
  }

  .site-footer__links a {
    margin: 0 8px;
  }
}
