@charset "UTF-8";
html, table {
  font-size: 14px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f3f5f8;
  color: #263241;
  font-family: "Helvetica Neue", Helvetica, "Microsoft Yahei", "Hiragino Sans GB", "WenQuanYi Micro Hei", "微软雅黑", "华文细黑", STHeiti, sans-serif;
}

#header, #body, #footer {
  width: 100%;
}

#header {
  flex: 0 0 auto;
}

#body {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

#body > .container {
  flex: 0 0 auto;
}

#footer {
  flex: 0 0 auto;
  margin-top: auto;
}

.bbs-footer {
  padding: 2rem 0 1.5rem;
  color: #8a96a6;
  background: transparent;
}

.bbs-footer-container {
  max-width: 1060px;
}

.bbs-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0.75rem 1rem;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 24px rgba(30, 48, 80, 0.03);
}

.bbs-footer-brand,
.bbs-footer-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.bbs-footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #526174;
}

.bbs-footer-brand a:hover {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-footer-brand b {
  font-weight: 800;
}

.bbs-footer-brand em {
  padding: 0.08rem 0.38rem;
  color: #1d73ff;
  border-radius: 999px;
  background: #eaf2ff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 800;
}

.bbs-footer-meta {
  justify-content: flex-end;
  color: #9aa4b2;
}

.bbs-footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.bbs-footer-meta b {
  color: #526174;
  font-weight: 800;
}

#body > .container > .row > .aside {
  padding-left: 0;
}

.table th,
.table > tbody > tr:first-child > td {
  border-top: none;
}

.card {
  margin-bottom: 1rem;
  background: #f8f9fa;
  box-shadow: 2px 2px 3px rgba(173, 181, 189, 0.25);
}

.card > .card-header {
  color: #454d55;
  font-size: 14px;
  border-bottom: 1px solid #dee2e6;
  background-image: linear-gradient(0deg, #e9ecef, #f8f9fa);
}

.card-header-tabs > .nav-item > .nav-link:hover:not(.active) {
  border: 1px solid #dee2e6;
}

.card-header-tabs > .nav-item > .nav-link.active {
  background-image: linear-gradient(0deg, #f8f9fa, #fff);
  border-color: #dee2e6;
  border-bottom-color: #f8f9fa;
}

.breadcrumb {
  background-color: rgba(248, 249, 250, 0.8) !important;
  border: 1px solid #dee2e6;
  box-shadow: 1px 1px 2px rgba(233, 236, 239, 0.25);
}

.breadcrumb:hover {
  background-color: #fff !important;
}

.breadcrumb .breadcrumb-item {
  display: inline-flex;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.breadcrumb .breadcrumb-item a {
  max-width: 400px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.thread, .post {
  border-bottom: 1px solid #e9ecef;
  padding: 0.7rem 0;
}

.thread:hover {
  background-color: white;
}

.threadlist > .thread:last-child,
.postlist > .post:last-child {
  border-bottom: 0;
}

.postlist .media-body {
  width: 1%;
}

.message p {
  margin: 0.2rem 0;
  line-height: 1.7;
}

.message img {
  max-width: 100%;
  height: auto !important;
  border: 1px solid #dee2e6;
  margin-bottom: 0.5rem;
}

.thread .badge {
  font-weight: normal;
}

#message {
  height: 2.4rem;
  transition: height 0.2s;
}

.pagination {
  flex-wrap: wrap;
}

.addattach:hover {
  font-weight: 800;
}

.blockquote {
  font-size: 0.8rem;
  background-color: #e9ecef;
  background-image: url(../img/quote.png);
  background-repeat: no-repeat;
  background-position: top right;
  padding: 0.5rem 1rem !important;
}

li.quote {
  background-color: #e9ecef;
  background-image: url(../img/quote.png);
  background-repeat: no-repeat;
  background-position: top right;
}

.bbs-topbar {
  min-height: 42px;
  padding-top: 0;
  padding-bottom: 0;
  border-bottom: 1px solid #e9edf3;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: none;
}

.bbs-topbar > .container {
  max-width: 1060px;
}

.bbs-topbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  margin-right: 2.2rem;
  color: #343b47;
  font-size: 0.82rem;
  font-weight: 800;
}

.bbs-topbar .navbar-brand img {
  display: none;
}

.bbs-topbar-brand-text {
  display: inline-block;
}

.bbs-topbar .navbar-nav .nav-link {
  position: relative;
  padding: 0.78rem 1rem;
  color: #6d7888;
  font-size: 0.82rem;
}

.bbs-topbar .navbar-nav .nav-link:hover,
.bbs-topbar .navbar-nav .active > .nav-link {
  color: #1d73ff;
}

.bbs-topbar .navbar-nav .active > .nav-link:after {
  position: absolute;
  right: 1rem;
  bottom: 0;
  left: 1rem;
  height: 2px;
  content: "";
  border-radius: 99px;
  background: #1d73ff;
}

.bbs-topbar .username img {
  width: 18px;
  height: 18px;
}

.bbs-theme-toggle i {
  width: 1rem;
  text-align: center;
}

.bbs-home {
  position: relative;
  color: #182333;
}

.bbs-home:before {
  position: absolute;
  z-index: -1;
  top: -2rem;
  left: 50%;
  width: 100vw;
  height: 28rem;
  content: "";
  transform: translateX(-50%);
  pointer-events: none;
  background: radial-gradient(circle at 18% 14%, rgba(117, 163, 189, 0.16), transparent 28%), radial-gradient(circle at 82% 8%, rgba(127, 181, 167, 0.14), transparent 26%), linear-gradient(180deg, rgba(246, 250, 251, 0.82), rgba(222, 226, 230, 0));
}

.bbs-home a,
.bbs-feed a {
  transition: all 0.2s ease;
}

.bbs-feed {
  max-width: 1060px;
  margin: 0 auto;
  color: #222a36;
}

.bbs-feed:before {
  display: none;
}

.bbs-feed-grid {
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr) 224px;
  gap: 12px;
  align-items: start;
}

.bbs-feed-left,
.bbs-feed-right {
  position: sticky;
  top: 58px;
}

.bbs-feed-left-card,
.bbs-feed-side-card,
.bbs-feed-card,
.bbs-recommend-card,
.bbs-feed-tabs {
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 48, 80, 0.03);
}

.bbs-feed-left-card {
  overflow: hidden;
  padding: 10px;
}

.bbs-feed-left-item {
  display: flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 5px;
  padding: 7px 10px;
  color: #5e6877;
  border-radius: 8px;
}

.bbs-feed-left-item:last-child {
  margin-bottom: 0;
}

.bbs-feed-left-item:hover,
.bbs-feed-left-item.active {
  color: #1d73ff;
  text-decoration: none;
  background: #eaf2ff;
}

.bbs-feed-left-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-right: 8px;
  color: #9aa8b8;
  border-radius: 50%;
  background: #eef2f6;
}

.bbs-feed-left-item.active .bbs-feed-left-icon {
  color: #fff;
  background: #1d73ff;
}

.bbs-feed-left-icon img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.bbs-feed-left-item strong {
  overflow: hidden;
  flex: 1;
  font-size: 0.82rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbs-recommend-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: 42% minmax(0, 1fr);
  min-height: 210px;
  margin-bottom: 12px;
  color: #263241;
  text-decoration: none;
}

.bbs-recommend-card:hover {
  color: #263241;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(30, 48, 80, 0.08);
}

.bbs-recommend-cover {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 210px;
  padding: 28px;
  color: #fff;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.32), transparent 24%), linear-gradient(135deg, #2f7fff 0%, #7c3aed 48%, #ff4d75 100%);
  background-position: center;
  background-size: cover;
}

.bbs-recommend-cover.has-image:after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.42));
}

.bbs-recommend-cover span,
.bbs-recommend-cover strong {
  position: relative;
  z-index: 1;
  display: block;
}

.bbs-recommend-cover span {
  font-size: 0.82rem;
  font-weight: 800;
  opacity: 0.82;
}

.bbs-recommend-cover strong {
  max-width: 360px;
  margin-top: 8px;
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.bbs-recommend-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 24px 26px;
}

.bbs-recommend-kicker {
  margin-bottom: 10px;
  color: #1d73ff;
  font-size: 0.78rem;
  font-weight: 900;
}

.bbs-recommend-kicker i {
  margin-right: 5px;
}

.bbs-recommend-body h1 {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 10px;
  color: #263241;
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bbs-recommend-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 16px;
  color: #5f6b7a;
  font-size: 0.86rem;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.bbs-recommend-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  color: #7c8796;
  font-size: 0.78rem;
}

.bbs-recommend-meta span {
  display: inline-flex;
  align-items: center;
}

.bbs-recommend-meta img {
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  object-fit: cover;
}

.bbs-recommend-meta i {
  margin-right: 5px;
}

.bbs-feed-tabs {
  display: flex;
  align-items: center;
  height: 42px;
  margin-bottom: 12px;
  padding: 0 18px;
  border-radius: 0;
  border-right: 0;
  border-left: 0;
  box-shadow: none;
}

.bbs-feed-tabs a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 42px;
  margin-right: 34px;
  color: #697586;
  font-size: 0.82rem;
  font-weight: 700;
}

.bbs-feed-tabs a:hover,
.bbs-feed-tabs a.active {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-feed-tabs a.active:after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  border-radius: 99px;
  background: #1d73ff;
}

.bbs-feed-card {
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  padding: 20px 22px 14px;
  border-bottom: 0;
}

.bbs-feed-card:hover {
  background: #fff;
  box-shadow: 0 12px 28px rgba(30, 48, 80, 0.06);
}

.bbs-feed-check {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.bbs-feed-ribbon {
  position: absolute;
  top: 0;
  right: 0;
  width: 46px;
  height: 46px;
  padding-top: 7px;
  padding-left: 14px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  transform: rotate(45deg) translate(7px, -18px);
  text-align: center;
  background: #2d7cff;
}

.bbs-feed-card-head {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.bbs-feed-avatar,
.bbs-feed-avatar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.bbs-feed-avatar {
  flex: 0 0 auto;
  margin-right: 10px;
}

.bbs-feed-avatar img {
  border: 2px solid #ff5b5b;
  object-fit: cover;
}

.bbs-feed-author a {
  display: block;
  color: #263241;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.2;
}

.bbs-feed-author a:hover {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-feed-author span {
  display: block;
  margin-top: 3px;
  color: #8a96a6;
  font-size: 0.75rem;
}

.bbs-feed-card-body h2 {
  margin-bottom: 8px;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.55;
}

.bbs-feed-card-body h2 a {
  color: #263241;
}

.bbs-feed-card-body h2 a:hover {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-feed-card-body p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: 8px;
  color: #5f6b7a;
  font-size: 0.84rem;
  line-height: 1.85;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bbs-feed-meta-line {
  margin-bottom: 12px;
  color: #9aa4b2;
  font-size: 0.74rem;
}

.bbs-feed-meta-line:before {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 7px;
  vertical-align: middle;
  border-radius: 50%;
  background: #c8d0dc;
  content: "";
}

.bbs-feed-preview {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: center;
  margin: 8px 0 10px;
  padding: 28px;
  color: #fff;
  border-radius: 9px;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.36), transparent 22%), linear-gradient(135deg, #ff7a2d 0%, #ff3f55 46%, #2f7fff 100%);
}

.bbs-feed-preview:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.bbs-feed-preview span {
  font-size: 1rem;
  font-weight: 800;
  opacity: 0.86;
}

.bbs-feed-preview strong {
  display: block;
  max-width: 360px;
  margin-top: 8px;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.bbs-feed-card-foot {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  color: #6d7786;
  font-size: 0.86rem;
}

.bbs-feed-card-foot span {
  display: inline-flex;
  align-items: center;
}

.bbs-feed-card-foot i {
  margin-right: 5px;
  color: #566172;
}

.bbs-feed-empty {
  padding: 32px;
  text-align: center;
  color: #8a96a6;
  border-radius: 10px;
  background: #fff;
}

.bbs-feed-pagination {
  margin: 16px 0 0;
}

.bbs-feed-side-card {
  overflow: hidden;
  margin-bottom: 12px;
  padding: 12px;
}

.bbs-feed-side-title {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  color: #263241;
  font-size: 0.88rem;
  font-weight: 900;
}

.bbs-feed-side-title i {
  margin-right: 8px;
  color: #1d73ff;
}

.bbs-feed-hot-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bbs-feed-hot-list li {
  display: flex;
  align-items: center;
  min-height: 25px;
}

.bbs-feed-hot-list li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  color: #758398;
  font-size: 0.7rem;
  font-weight: 800;
  border-radius: 3px;
  background: #edf1f6;
}

.bbs-feed-hot-list li:nth-child(-n+3) span {
  color: #fff;
  background: #4c7dff;
}

.bbs-feed-hot-list a {
  overflow: hidden;
  flex: 1;
  color: #4e5b6b;
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbs-feed-hot-list a:hover {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-feed-side-tabs {
  display: flex;
  justify-content: space-between;
  margin: -2px 0 10px;
  border-bottom: 1px solid #edf1f6;
}

.bbs-feed-side-tabs a {
  position: relative;
  padding: 0 0 8px;
  color: #778294;
  font-size: 0.76rem;
  font-weight: 800;
}

.bbs-feed-side-tabs a:hover,
.bbs-feed-side-tabs a.active {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-feed-side-tabs a.active:after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: #1d73ff;
}

.bbs-feed-user-rank a {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f0f3f7;
}

.bbs-feed-user-rank a:last-child {
  border-bottom: 0;
}

.bbs-feed-user-rank a:hover {
  text-decoration: none;
}

.bbs-feed-user-rank img {
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border-radius: 50%;
  object-fit: cover;
}

.bbs-feed-user-rank span {
  overflow: hidden;
  flex: 1;
}

.bbs-feed-user-rank strong,
.bbs-feed-user-rank em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bbs-feed-user-rank strong {
  color: #344052;
  font-size: 0.78rem;
  font-weight: 900;
}

.bbs-feed-user-rank em {
  color: #8a96a6;
  font-size: 0.72rem;
  font-style: normal;
}

.bbs-feed-user-rank b {
  color: #ff4d75;
  font-size: 0.78rem;
}

.bbs-feed-stat-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 0;
}

.bbs-feed-stat-card div {
  padding: 12px 6px;
  text-align: center;
  border-right: 1px solid #edf1f6;
}

.bbs-feed-stat-card div:last-child {
  border-right: 0;
}

.bbs-feed-stat-card span,
.bbs-feed-stat-card strong {
  display: block;
}

.bbs-feed-stat-card span {
  color: #8a96a6;
  font-size: 0.72rem;
}

.bbs-feed-stat-card strong {
  margin-top: 4px;
  color: #263241;
  font-size: 0.92rem;
  font-weight: 900;
}

.bbs-feed-float-action {
  position: fixed;
  right: 28px;
  bottom: 110px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #718096;
  border: 1px solid #edf1f6;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(30, 48, 80, 0.08);
}

.bbs-feed-float-action:hover {
  color: #1d73ff;
  text-decoration: none;
}

.bbs-post-brief {
  min-height: 76px;
  resize: vertical;
}

.bbs-md-editor {
  overflow: hidden;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
}

.bbs-md-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid #e7ebf2;
  background: #f8fafc;
}

.bbs-md-toolbar button {
  height: 30px;
  padding: 0 10px;
  color: #344052;
  border: 1px solid #dce2eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
}

.bbs-md-toolbar button:hover,
.bbs-md-toolbar button.active {
  color: #1d73ff;
  border-color: #b9d2ff;
  background: #eef5ff;
}

.bbs-md-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 360px;
}

.bbs-md-textarea {
  min-height: 360px;
  border: 0;
  border-radius: 0;
  resize: vertical;
  line-height: 1.75;
}

.bbs-md-textarea:focus {
  box-shadow: none;
}

.bbs-md-preview {
  min-height: 360px;
  padding: 16px;
  overflow: auto;
  border-left: 1px solid #e7ebf2;
  background: #fbfcfe;
  color: #263241;
  line-height: 1.8;
}

.bbs-md-editor.preview-on .bbs-md-workspace {
  grid-template-columns: 1fr;
}

.bbs-md-editor.preview-on .bbs-md-textarea {
  display: none;
}

.bbs-md-editor.preview-on .bbs-md-preview {
  display: block;
  min-height: 460px;
  border-left: 0;
}

.bbs-md-tips {
  padding: 8px 12px;
  color: #8a96a6;
  border-top: 1px solid #e7ebf2;
  background: #fbfcfe;
  font-size: 0.78rem;
}

.bbs-recommend-setting {
  padding: 12px 14px;
  border: 1px solid #e7ebf2;
  border-radius: 8px;
  background: #f8fafc;
}

.bbs-recommend-setting label {
  color: #263241;
  font-weight: 800;
}

.bbs-recommend-setting input {
  margin-right: 6px;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 0.8em 0 0.45em;
  color: #172033;
  font-weight: 800;
}

.markdown-body p {
  margin-bottom: 0.8em;
}

.markdown-body blockquote {
  margin: 0 0 1em;
  padding: 10px 14px;
  color: #667386;
  border-left: 4px solid #1d73ff;
  background: #eef5ff;
}

.markdown-body pre {
  padding: 12px;
  overflow: auto;
  color: #dbe7ff;
  border-radius: 8px;
  background: #1d2433;
}

.markdown-body code {
  padding: 2px 5px;
  color: #e83e8c;
  border-radius: 4px;
  background: #f1f3f7;
}

.markdown-body pre code {
  padding: 0;
  color: inherit;
  background: transparent;
}

.markdown-body img {
  max-width: 100%;
  border-radius: 8px;
}

.bbs-theme-dark body {
  background: #111827;
  color: #d7deea;
}

.bbs-theme-dark a {
  color: #8ab4ff;
}

.bbs-theme-dark a:hover {
  color: #b7d0ff;
}

.bbs-theme-dark .bbs-topbar {
  border-bottom-color: #223047;
  background: rgba(15, 23, 42, 0.96);
}

.bbs-theme-dark .bbs-topbar .navbar-brand,
.bbs-theme-dark .bbs-topbar .navbar-nav .nav-link {
  color: #b8c4d8;
}

.bbs-theme-dark .bbs-topbar .navbar-nav .nav-link:hover,
.bbs-theme-dark .bbs-topbar .navbar-nav .active > .nav-link,
.bbs-theme-dark .bbs-theme-toggle[aria-pressed="true"] {
  color: #60a5fa;
}

.bbs-theme-dark .card,
.bbs-theme-dark .breadcrumb,
.bbs-theme-dark .bbs-footer-inner,
.bbs-theme-dark .bbs-recommend-card,
.bbs-theme-dark .bbs-feed-left-card,
.bbs-theme-dark .bbs-feed-side-card,
.bbs-theme-dark .bbs-feed-card,
.bbs-theme-dark .bbs-feed-tabs,
.bbs-theme-dark .bbs-feed-empty,
.bbs-theme-dark .bbs-feed-float-action {
  color: #d7deea;
  border-color: #253149;
  background: #172033;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.bbs-theme-dark .card > .card-header {
  color: #d7deea;
  border-bottom-color: #253149;
  background-image: linear-gradient(0deg, #172033, #1d293d);
}

.bbs-theme-dark .breadcrumb:hover,
.bbs-theme-dark .thread:hover,
.bbs-theme-dark .bbs-feed-card:hover {
  background: #1d293d !important;
}

.bbs-theme-dark .thread,
.bbs-theme-dark .post,
.bbs-theme-dark .bbs-feed-side-tabs,
.bbs-theme-dark .bbs-feed-user-rank a,
.bbs-theme-dark .bbs-feed-stat-card div {
  border-color: #253149;
}

.bbs-theme-dark .bbs-feed,
.bbs-theme-dark .bbs-home,
.bbs-theme-dark .bbs-recommend-body h1,
.bbs-theme-dark .bbs-feed-author a,
.bbs-theme-dark .bbs-feed-card-body h2 a,
.bbs-theme-dark .bbs-feed-side-title,
.bbs-theme-dark .bbs-feed-user-rank strong,
.bbs-theme-dark .bbs-feed-stat-card strong,
.bbs-theme-dark .markdown-body h1,
.bbs-theme-dark .markdown-body h2,
.bbs-theme-dark .markdown-body h3,
.bbs-theme-dark .markdown-body h4,
.bbs-theme-dark .markdown-body h5,
.bbs-theme-dark .markdown-body h6 {
  color: #eef4ff;
}

.bbs-theme-dark .bbs-feed-author span,
.bbs-theme-dark .bbs-footer,
.bbs-theme-dark .bbs-footer-meta,
.bbs-theme-dark .bbs-recommend-body p,
.bbs-theme-dark .bbs-recommend-meta,
.bbs-theme-dark .bbs-feed-card-body p,
.bbs-theme-dark .bbs-feed-meta-line,
.bbs-theme-dark .bbs-feed-card-foot,
.bbs-theme-dark .bbs-feed-hot-list a,
.bbs-theme-dark .bbs-feed-side-tabs a,
.bbs-theme-dark .bbs-feed-user-rank em,
.bbs-theme-dark .bbs-feed-stat-card span,
.bbs-theme-dark .text-muted,
.bbs-theme-dark .text-grey {
  color: #93a4bd !important;
}

.bbs-theme-dark .bbs-feed-left-item {
  color: #aab8cf;
}

.bbs-theme-dark .bbs-feed-left-item:hover,
.bbs-theme-dark .bbs-feed-left-item.active {
  color: #bfdbfe;
  background: #1e3a5f;
}

.bbs-theme-dark .bbs-feed-left-icon,
.bbs-theme-dark .bbs-feed-hot-list li span {
  color: #9fb0c8;
  background: #253149;
}

.bbs-theme-dark .bbs-feed-left-item.active .bbs-feed-left-icon,
.bbs-theme-dark .bbs-feed-hot-list li:nth-child(-n+3) span {
  color: #fff;
  background: #2563eb;
}

.bbs-theme-dark .form-control,
.bbs-theme-dark .custom-select,
.bbs-theme-dark input,
.bbs-theme-dark textarea,
.bbs-theme-dark select {
  color: #dbe7f6;
  border-color: #33425c;
  background-color: #111827;
}

.bbs-theme-dark .form-control:focus,
.bbs-theme-dark .custom-select:focus {
  color: #eef4ff;
  border-color: #3b82f6;
  background-color: #111827;
}

.bbs-theme-dark .bbs-md-editor,
.bbs-theme-dark .bbs-md-toolbar,
.bbs-theme-dark .bbs-md-preview,
.bbs-theme-dark .bbs-md-tips,
.bbs-theme-dark .bbs-recommend-setting {
  border-color: #253149;
  background: #172033;
}

.bbs-theme-dark .bbs-recommend-setting label {
  color: #d7deea;
}

.bbs-theme-dark .bbs-md-toolbar button {
  color: #cbd7ea;
  border-color: #33425c;
  background: #111827;
}

.bbs-theme-dark .bbs-md-toolbar button:hover,
.bbs-theme-dark .bbs-md-toolbar button.active {
  color: #bfdbfe;
  border-color: #3b82f6;
  background: #1e3a5f;
}

.bbs-theme-dark .bbs-md-preview {
  color: #d7deea;
}

.bbs-theme-dark .markdown-body blockquote {
  color: #b7c5da;
  background: #1e3a5f;
}

.bbs-theme-dark .markdown-body code {
  color: #f0abfc;
  background: #253149;
}

.bbs-theme-dark .markdown-body pre {
  color: #dbe7ff;
  background: #0b1120;
}

.bbs-theme-dark .modal-content,
.bbs-theme-dark .dropdown-menu {
  color: #d7deea;
  border-color: #253149;
  background: #172033;
}

.bbs-theme-dark .dropdown-item {
  color: #d7deea;
}

.bbs-theme-dark .dropdown-item:hover {
  color: #fff;
  background: #1e3a5f;
}

.bbs-theme-dark .bbs-footer-brand a,
.bbs-theme-dark .bbs-footer-meta b {
  color: #d7deea;
}

.bbs-theme-dark .bbs-footer-brand a:hover {
  color: #60a5fa;
}

.bbs-theme-dark .bbs-footer-brand em {
  color: #bfdbfe;
  background: #1e3a5f;
}

@media (max-width: 576px) {
  #body {
    padding-top: 0.5rem;
  }
  #body > .container > .row > div {
    padding: 0.5rem;
  }
  .bbs-topbar .navbar-brand {
    margin-right: 0.8rem;
  }
  .bbs-feed-tabs {
    overflow-x: auto;
    padding: 0 12px;
  }
  .bbs-feed-tabs a {
    flex: 0 0 auto;
    margin-right: 24px;
  }
  .bbs-feed-card {
    padding: 16px;
  }
  .bbs-feed-preview {
    min-height: 170px;
    padding: 20px;
  }
  .bbs-feed-preview strong {
    font-size: 1.45rem;
  }
  .bbs-feed-right {
    grid-template-columns: 1fr;
  }
  .bbs-feed-float-action {
    right: 16px;
    bottom: 72px;
  }
  .bbs-footer {
    padding: 1.2rem 0 1rem;
  }
  .bbs-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }
  .bbs-recommend-card {
    grid-template-columns: 1fr;
  }
  .bbs-footer-meta {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .bbs-md-workspace {
    grid-template-columns: 1fr;
  }
  .bbs-md-preview {
    display: none;
    border-top: 1px solid #e7ebf2;
    border-left: 0;
  }
  .bbs-md-editor.preview-on .bbs-md-preview {
    display: block;
  }
}

@media (max-width: 992px) {
  #nav {
    padding-top: 1.5rem;
    padding-left: 0.5rem;
  }
  #nav > ul:first-child > li:not(:first-child) {
    padding-left: 3rem;
  }
  #nav > ul > li > a.nav-link {
    border-bottom: 1px solid rgba(134, 142, 150, 0.3);
  }
  .bbs-feed-grid {
    grid-template-columns: 1fr;
  }
  .bbs-feed-left,
  .bbs-feed-right {
    position: static;
  }
  .bbs-feed-left-card {
    display: flex;
    overflow-x: auto;
    padding: 8px;
  }
  .bbs-feed-left-item {
    flex: 0 0 auto;
    margin-right: 8px;
    margin-bottom: 0;
  }
  .bbs-feed-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .bbs-recommend-card {
    grid-template-columns: 38% minmax(0, 1fr);
  }
  .bbs-feed-side-card {
    margin-bottom: 0;
  }
}

@media (max-width: 576px) {
  .bbs-recommend-card {
    grid-template-columns: 1fr;
  }
  .bbs-recommend-cover {
    min-height: 160px;
    padding: 22px;
  }
  .bbs-recommend-cover strong {
    font-size: 1.45rem;
  }
  .bbs-recommend-body {
    padding: 20px;
  }
  .bbs-recommend-body h1 {
    font-size: 1.12rem;
  }
}

@media (min-width: 576px) {
  #body {
    padding-top: 1rem;
  }
}

@media (min-width: 1200px) {
  #body > .bbs-feed-container {
    width: calc(100% - 80px);
    max-width: 1320px;
  }
  .bbs-topbar > .container {
    width: calc(100% - 80px);
    max-width: 1320px;
  }
  .bbs-footer-container {
    width: calc(100% - 80px);
    max-width: 1320px;
  }
  .bbs-feed {
    max-width: 1320px;
  }
  .bbs-feed-grid {
    grid-template-columns: 210px minmax(0, 1fr) 285px;
    gap: 16px;
  }
  .bbs-feed-left-card,
  .bbs-feed-side-card,
  .bbs-feed-card,
  .bbs-recommend-card,
  .bbs-feed-tabs {
    border-radius: 12px;
  }
  .bbs-feed-left-card {
    padding: 12px;
  }
  .bbs-feed-left-item {
    min-height: 46px;
    margin-bottom: 8px;
    padding: 10px 14px;
    border-radius: 10px;
  }
  .bbs-feed-left-icon {
    width: 30px;
    height: 30px;
    margin-right: 12px;
  }
  .bbs-feed-left-icon img {
    width: 22px;
    height: 22px;
  }
  .bbs-feed-left-item strong,
  .bbs-feed-tabs a {
    font-size: 0.94rem;
  }
  .bbs-feed-tabs {
    height: 52px;
    margin-bottom: 16px;
    padding: 0 26px;
  }
  .bbs-feed-tabs a {
    height: 52px;
    margin-right: 44px;
  }
  .bbs-feed-card {
    min-height: 138px;
    margin-bottom: 16px;
    padding: 26px 30px 20px;
  }
  .bbs-feed-card-head {
    margin-bottom: 16px;
  }
  .bbs-feed-avatar,
  .bbs-feed-avatar img {
    width: 46px;
    height: 46px;
  }
  .bbs-feed-avatar {
    margin-right: 14px;
  }
  .bbs-feed-author a {
    font-size: 0.92rem;
  }
  .bbs-feed-author span {
    font-size: 0.82rem;
  }
  .bbs-feed-card-body h2 {
    margin-bottom: 10px;
    font-size: 1.08rem;
  }
  .bbs-feed-card-body p {
    font-size: 0.86rem;
  }
  .bbs-feed-card-foot {
    gap: 24px;
    font-size: 0.96rem;
  }
  .bbs-feed-preview {
    min-height: 330px;
    padding: 42px;
    border-radius: 12px;
  }
  .bbs-feed-preview span {
    font-size: 1.2rem;
  }
  .bbs-feed-preview strong {
    max-width: 520px;
    font-size: 2.75rem;
  }
  .bbs-feed-side-card {
    margin-bottom: 16px;
    padding: 16px;
  }
  .bbs-feed-side-title {
    margin-bottom: 14px;
    font-size: 0.98rem;
  }
  .bbs-feed-hot-list li {
    min-height: 31px;
  }
  .bbs-feed-hot-list li span {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    font-size: 0.76rem;
  }
  .bbs-feed-hot-list a {
    font-size: 0.86rem;
  }
  .bbs-feed-side-tabs a {
    padding-bottom: 10px;
    font-size: 0.86rem;
  }
  .bbs-feed-user-rank a {
    padding: 10px 0;
  }
  .bbs-feed-user-rank img {
    width: 38px;
    height: 38px;
    margin-right: 10px;
  }
  .bbs-feed-user-rank strong {
    font-size: 0.88rem;
  }
  .bbs-feed-user-rank em {
    font-size: 0.78rem;
  }
  .bbs-feed-stat-card div {
    padding: 16px 8px;
  }
  .bbs-feed-stat-card span {
    font-size: 0.78rem;
  }
  .bbs-feed-stat-card strong {
    font-size: 1.05rem;
  }
  .bbs-feed-float-action {
    right: 44px;
    bottom: 118px;
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 1.1rem;
  }
}

@media (min-width: 1440px) {
  #body > .bbs-feed-container,
  .bbs-topbar > .container,
  .bbs-footer-container {
    max-width: 1380px;
  }
  .bbs-feed {
    max-width: 1380px;
  }
  .bbs-feed-grid {
    grid-template-columns: 220px minmax(0, 1fr) 300px;
    gap: 18px;
  }
}
