* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  background: radial-gradient(circle at 20% 0%, rgba(132, 204, 22, 0.08), transparent 38%), var(--bg-page);
  color: var(--text-main);
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

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


.forum-bottom {
  margin-top: 8px;
}

.forum-bottom-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  align-items: stretch;
}

.forum-bottom-grid > .sw {
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.forum-bottom-grid > .sw .sw-b {
  flex: 1;
}

.sec-label {
  background: var(--bg-soft);
  border: 1px solid var(--line-main);
  padding: 10px 16px;
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sec-label span {
  color: var(--text-soft);
  font-size: 14px;
  margin-left: 8px;
}

.sw {
  background: var(--bg-subtle);
  border: 1px solid var(--line-main);
  margin-bottom: 6px;
  box-shadow: var(--shadow-1);
}

.sw-h {
  background: linear-gradient(180deg, #434343, #262626);
  color: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.sw-b {
  padding: 14px;
}

.sw-b-compact {
  padding: 10px 14px;
}

.st-row {
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
}

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

.st-row strong {
  color: var(--text-main);
}

.st-hot {
  color: #1f8a3b;
}

.online-txt {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.online-total {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.st-today {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-soft);
}

.st-today-title {
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 700;
  margin-bottom: 4px;
}

.st-today-line {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  padding: 2px 0;
}

.lp {
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
}

.lp:last-child {
  border-bottom: 0;
}

.lp a {
  font-weight: 700;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.lp-m {
  font-size: 12px;
  color: var(--text-soft);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  background: var(--bg-soft);
  border: 1px solid var(--line-main);
  padding: 9px 14px;
  margin-bottom: 6px;
  color: var(--text-soft);
  font-size: 13px;
}

.breadcrumbs__sep {
  color: var(--text-soft);
}

.pagination {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line-main);
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 13px;
  border-radius: 2px;
}

.pagination .active {
  background: #444;
  border-color: #333;
  color: #fff;
}

.pagination .dots {
  border-color: transparent;
  background: transparent;
}

.btn {
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-primary {
  background: linear-gradient(180deg, #505050, #2d2d2d);
  border-color: #111;
  color: #fff;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #616161, #393939);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  color: rgba(255, 255, 255, 0.85);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.site-footer {
  margin-top: 18px;
  border-top: 1px solid var(--line-main);
  background: var(--bg-subtle);
}

.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-soft);
}

.site-footer__links {
  display: flex;
  gap: 12px;
}

@media (max-width: 980px) {
  .forum-bottom-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .wrap {
    padding: 10px;
  }

  .sec-label {
    font-size: 15px;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
