:root {
  --blue: #2e65b8;
  --blue-deep: #24549c;
  --blue-light: #e7effa;
  --link: #2d5d9f;
  --red: #e34636;
  --orange: #ff7b22;
  --text: #333;
  --text-mid: #666;
  --text-light: #999;
  --line: #d9dfe7;
  --line-soft: #e9edf2;
  --page: #eef2f6;
  --white: #fff;
  --green: #48a66b;
  --sans: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--page);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

a:hover {
  color: #e34636;
  text-decoration: underline;
}

svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #6a9bec;
  outline-offset: 1px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 500;
  top: 8px;
  left: 50%;
  padding: 7px 16px;
  color: var(--white);
  background: #1f2933;
  border-radius: 2px;
  transform: translate(-50%, -160%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.container {
  width: 1080px;
  max-width: calc(100% - 24px);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: 44px;
  background: var(--blue);
  box-shadow: 0 1px 3px rgba(20, 42, 78, 0.2);
}

.nav-inner {
  display: flex;
  align-items: center;
  width: 1080px;
  max-width: calc(100% - 24px);
  height: 44px;
  margin-inline: auto;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  color: white;
  white-space: nowrap;
}

.site-brand:hover {
  color: white;
  text-decoration: none;
}

.brand-bubble {
  display: grid;
  position: relative;
  width: 28px;
  height: 25px;
  color: var(--blue);
  background: white;
  border-radius: 6px 6px 6px 2px;
  font-size: 16px;
  font-weight: 700;
  place-items: center;
}

.brand-bubble::after {
  position: absolute;
  bottom: -4px;
  left: 2px;
  width: 0;
  height: 0;
  content: "";
  border-top: 5px solid white;
  border-right: 5px solid transparent;
  transform: rotate(8deg);
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-en {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.main-nav {
  display: flex;
  align-self: stretch;
  gap: 2px;
  margin-left: 25px;
}

.main-nav a {
  display: grid;
  padding: 0 13px;
  color: rgba(255, 255, 255, 0.88);
  place-items: center;
}

.main-nav a[hidden] {
  display: none;
}

.main-nav a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.main-nav a.active {
  color: white;
  background: rgba(20, 54, 108, 0.28);
  font-weight: 700;
}

.nav-spacer {
  flex: 1;
}

.forum-search {
  display: flex;
  width: 208px;
  height: 28px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}

.forum-search input {
  flex: 1;
  min-width: 0;
  padding: 0 9px;
  background: transparent;
  border: 0;
  font-size: 11px;
  outline: 0;
}

.forum-search input::placeholder {
  color: #aaa;
}

.forum-search button {
  display: grid;
  width: 34px;
  padding: 0;
  color: var(--blue);
  background: #f4f6f8;
  border: 0;
  border-left: 1px solid var(--line);
  place-items: center;
}

.forum-search button:hover {
  color: white;
  background: var(--blue-deep);
}

.forum-search svg {
  width: 15px;
  height: 15px;
}

.notice-button {
  position: relative;
  display: grid;
  width: 35px;
  height: 36px;
  margin-left: 7px;
  padding: 0;
  color: rgba(255, 255, 255, 0.88);
  background: transparent;
  border: 0;
  place-items: center;
}

.notice-button:hover {
  color: white;
}

.notice-button svg {
  width: 17px;
  height: 17px;
}

.notice-button > span {
  position: absolute;
  top: 1px;
  right: 2px;
  display: grid;
  width: 14px;
  height: 14px;
  color: white;
  background: var(--red);
  border: 1px solid var(--blue);
  border-radius: 50%;
  font-size: 8px;
  place-items: center;
}

.profile-entry {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-left: 5px;
  padding: 0 3px;
  color: white;
  background: transparent;
  border: 0;
  white-space: nowrap;
}

.profile-entry:hover {
  background: rgba(255, 255, 255, 0.08);
}

.profile-entry .avatar {
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  font-size: 10px;
}

.secondary-nav {
  height: 32px;
  background: #f8fafc;
  border-bottom: 1px solid #dbe2ea;
}

.secondary-inner {
  display: flex;
  align-items: center;
  height: 32px;
  color: var(--text-light);
  font-size: 11px;
}

.secondary-inner > a {
  color: #5d6d7e;
}

.secondary-inner > span {
  margin: 0 7px;
  color: #a7b1bc;
}

.secondary-inner strong {
  color: var(--text-mid);
  font-weight: 400;
}

.secondary-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.secondary-right > span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.secondary-right > a {
  color: var(--blue);
}

.online-dot {
  width: 6px;
  height: 6px;
  background: #41b56c;
  border-radius: 50%;
}

.page-main {
  padding-top: 14px;
  padding-bottom: 38px;
}

.forum-header {
  margin-bottom: 12px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 44, 72, 0.04);
}

.forum-banner {
  position: relative;
  height: 144px;
  overflow: hidden;
  color: white;
  background:
    linear-gradient(90deg, rgba(24, 61, 104, 0.93) 0%, rgba(33, 83, 127, 0.78) 45%, rgba(29, 66, 99, 0.22) 100%),
    url("assets/campus-sunset.svg") center 58% / cover no-repeat;
}

.forum-banner::after {
  position: absolute;
  right: 125px;
  bottom: -75px;
  width: 270px;
  height: 270px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.025), 0 0 0 72px rgba(255, 255, 255, 0.018);
}

.banner-shade {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to right, black, transparent 75%);
}

.banner-copy {
  position: absolute;
  z-index: 2;
  top: 27px;
  left: 25px;
}

.banner-copy > span {
  display: inline-block;
  padding: 3px 7px;
  color: #e8f2ff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.banner-copy h1 {
  margin: 7px 0 2px;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.banner-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.banner-stamp {
  position: absolute;
  z-index: 1;
  right: 27px;
  bottom: 22px;
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  color: rgba(255, 255, 255, 0.46);
}

.banner-stamp strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.08em;
}

.banner-stamp span {
  margin-top: 5px;
  font-size: 7px;
  letter-spacing: 0.2em;
}

.forum-summary {
  display: flex;
  align-items: flex-start;
  min-height: 112px;
  padding: 0 18px 16px;
}

.forum-logo {
  display: flex;
  position: relative;
  width: 82px;
  height: 82px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -33px;
  color: white;
  background: var(--blue);
  border: 3px solid white;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(27, 52, 86, 0.2);
}

.forum-logo::after {
  position: absolute;
  inset: 5px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.forum-logo span {
  position: relative;
  z-index: 1;
  font-family: "STSong", "SimSun", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}

.forum-logo small {
  position: relative;
  z-index: 1;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 9px;
  letter-spacing: 0.2em;
}

.forum-description {
  min-width: 0;
  flex: 1;
  padding: 15px 22px 0 14px;
}

.forum-name-line {
  display: flex;
  align-items: center;
  gap: 9px;
}

.forum-name-line h2 {
  margin: 0;
  color: #2b2f33;
  font-size: 20px;
  line-height: 1.2;
}

.official-badge {
  padding: 2px 6px;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid #cee0f8;
  border-radius: 2px;
  font-size: 9px;
}

.forum-description > p {
  margin: 8px 0 7px;
  color: var(--text-mid);
  font-size: 11px;
}

.forum-data {
  display: flex;
  gap: 19px;
  color: var(--text-light);
  font-size: 10px;
}

.forum-data b {
  color: var(--text-mid);
  font-weight: 400;
}

.forum-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 8px;
  padding-top: 25px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 34px;
  padding: 0 15px;
  border-radius: 2px;
  font-size: 12px;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-follow {
  color: var(--blue);
  background: white;
  border: 1px solid #9cb9dd;
}

.button-follow:hover {
  background: #f3f8ff;
}

.button-follow.following {
  color: var(--text-light);
  background: #f5f6f7;
  border-color: var(--line);
}

.button-primary {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.button-primary:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  align-items: start;
  gap: 16px;
}

.tb-box {
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(22, 44, 72, 0.035);
}

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

.forum-tabs {
  display: flex;
  align-items: stretch;
  min-height: 41px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}

.tab-list {
  display: flex;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.tab-list::-webkit-scrollbar {
  display: none;
}

.tab-list button {
  position: relative;
  flex-shrink: 0;
  padding: 0 10px;
  color: var(--text-mid);
  background: transparent;
  border: 0;
  font-size: 12px;
}

.tab-list button:hover {
  color: var(--blue);
}

.tab-list button.active {
  color: var(--blue);
  font-weight: 700;
}

.tab-list button.active::after {
  position: absolute;
  right: 7px;
  bottom: -1px;
  left: 7px;
  height: 2px;
  content: "";
  background: var(--blue);
}

.forum-sort {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  padding-left: 10px;
  border-left: 1px solid var(--line-soft);
}

.forum-sort button {
  padding: 4px 7px;
  color: var(--text-light);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.forum-sort button.active {
  color: var(--blue);
  background: var(--blue-light);
}

.quick-publish-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 12px 14px;
  padding: 9px;
  background: #f7f9fb;
  border: 1px solid var(--line);
}

.avatar {
  display: inline-grid;
  flex-shrink: 0;
  overflow: hidden;
  color: #3e4b55;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  place-items: center;
}

.quick-publish-bar > .avatar {
  width: 34px;
  height: 34px;
}

.avatar-me {
  color: white;
  background: #4e8ac8;
}

.avatar-1 {
  color: #874a38;
  background: #f4cbb8;
}

.avatar-2 {
  color: #315d87;
  background: #c9e0f5;
}

.avatar-3 {
  color: #7e662c;
  background: #efe0ad;
}

.avatar-4 {
  color: #744462;
  background: #ead1e2;
}

.avatar-5 {
  color: #356352;
  background: #cbe5d9;
}

.quick-publish-trigger {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 11px;
  color: #9b9fa4;
  background: white;
  border: 1px solid #d8dee6;
  border-radius: 2px;
  font-size: 11px;
  text-align: left;
}

.quick-publish-trigger:hover {
  color: var(--text-mid);
  border-color: #b8c6d7;
}

.quick-publish-trigger svg {
  width: 14px;
  height: 14px;
  color: #7b93ad;
}

.quick-tools {
  display: flex;
  gap: 2px;
}

.quick-tools button {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
  padding: 0 7px;
  color: var(--text-mid);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.quick-tools button:hover {
  color: var(--blue);
  background: white;
}

.quick-tools svg {
  width: 14px;
  height: 14px;
}

.forum-notice {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 14px 5px;
  padding: 7px 9px;
  color: #6f6653;
  background: #fffbea;
  border: 1px solid #f0e6c5;
  font-size: 10px;
}

.notice-label {
  flex-shrink: 0;
  padding: 2px 5px;
  color: #9b5e1d;
  background: #fff0c2;
  border-radius: 2px;
}

.forum-notice p {
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.forum-notice a {
  flex-shrink: 0;
  color: #9b5e1d;
}

.list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 3px 15px 0;
  border-bottom: 1px solid var(--line);
}

.list-heading h2 {
  margin: 0;
  color: #333;
  font-size: 13px;
}

.list-heading span {
  color: var(--text-light);
  font-size: 9px;
}

.filter-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 14px;
  color: #526274;
  background: #eef5ff;
  border-bottom: 1px solid #d9e7f8;
  font-size: 10px;
}

.filter-status[hidden] {
  display: none;
}

.filter-status button {
  padding: 0;
  color: var(--blue);
  background: transparent;
  border: 0;
  font-size: 10px;
}

.thread-list {
  min-height: 200px;
}

.thread-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 64px;
  gap: 11px;
  min-height: 104px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 120ms ease;
  animation: row-in 250ms both;
}

@keyframes row-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.thread-row:hover {
  background: #f8fbfe;
}

.thread-row.pinned {
  background: #fffdf5;
  border-left: 3px solid #f1a20d;
  padding-left: 12px;
}

.thread-row.pinned:hover {
  background: #fffbed;
}

.thread-avatar {
  width: 45px;
  height: 45px;
  margin-top: 2px;
  font-size: 13px;
}

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

.thread-title-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.thread-badge {
  flex-shrink: 0;
  padding: 1px 4px;
  color: var(--blue);
  background: #eef5ff;
  border: 1px solid #d8e7f9;
  border-radius: 2px;
  font-size: 9px;
  line-height: 16px;
}

.thread-badge.pinned-badge {
  color: #9e5f0b;
  background: #fff0c8;
  border-color: #f2d48a;
}

.thread-title-link {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--link);
  background: transparent;
  border: 0;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thread-title-link:hover {
  color: #d64736;
  text-decoration: underline;
}

.thread-body-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.thread-preview {
  display: -webkit-box;
  min-width: 0;
  flex: 1;
  margin: 0;
  overflow: hidden;
  color: var(--text-mid);
  font-size: 11px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.thread-thumb {
  width: 76px;
  height: 53px;
  flex-shrink: 0;
  object-fit: cover;
  background: #eef0f2;
  border: 1px solid #e0e3e7;
  border-radius: 2px;
}

.thread-meta {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  color: var(--text-light);
  font-size: 9px;
}

.thread-meta b {
  color: #6e7b88;
  font-weight: 400;
}

.thread-meta .from-client {
  color: #9aa6b2;
}

.thread-reply {
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  width: 53px;
  flex-direction: column;
  padding: 5px 0;
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 2px;
}

.thread-reply strong {
  color: #536372;
  font-size: 15px;
  line-height: 1.3;
}

.thread-reply span {
  color: var(--text-light);
  font-size: 9px;
}

.thread-reply:hover {
  background: var(--blue-light);
  border-color: #cedef1;
}

.empty-state {
  padding: 62px 20px;
  color: var(--text-light);
  text-align: center;
}

.empty-state span {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 25px;
  place-items: center;
}

.empty-state h3 {
  margin: 0 0 5px;
  color: var(--text-mid);
  font-size: 14px;
}

.empty-state p {
  margin: 0;
  font-size: 10px;
}

.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 11px 15px;
}

.load-more {
  height: 30px;
  padding: 0 12px;
  color: var(--blue);
  background: #f6f9fd;
  border: 1px solid #cfdeef;
  border-radius: 2px;
  font-size: 10px;
}

.load-more:hover {
  background: var(--blue-light);
}

.load-more.loading {
  opacity: 0.6;
  pointer-events: none;
}

.page-numbers {
  display: flex;
  gap: 3px;
}

.page-numbers button {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  color: #57687a;
  background: white;
  border: 1px solid #d6dee7;
  border-radius: 2px;
  font-size: 10px;
}

.page-numbers button:hover,
.page-numbers button.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.right-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.side-card {
  padding: 12px;
}

.side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.side-title h2 {
  position: relative;
  margin: 0;
  padding-left: 8px;
  color: #333;
  font-size: 13px;
}

.side-title h2::before {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 0;
  width: 3px;
  content: "";
  background: var(--blue);
}

.side-title a {
  color: var(--text-light);
  font-size: 9px;
}

.live-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #dc4a37;
  font-size: 8px;
}

.live-label i {
  width: 5px;
  height: 5px;
  background: #dc4a37;
  border-radius: 50%;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 10px 0 11px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.stats-grid div {
  padding: 8px 9px;
  background: #fbfcfd;
}

.stats-grid dt {
  color: var(--text-light);
  font-size: 9px;
}

.stats-grid dd {
  margin: 3px 0 0;
  color: #41556b;
  font-size: 15px;
  font-weight: 700;
}

.manager-line {
  display: flex;
  align-items: center;
  gap: 7px;
}

.manager-line .avatar {
  width: 30px;
  height: 30px;
}

.manager-line > span:not(.avatar) {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.manager-line small {
  color: var(--text-light);
  font-size: 8px;
}

.manager-line a {
  color: #526c88;
  font-size: 9px;
}

.manager-line > span:nth-of-type(2) {
  margin-left: auto;
}

.hot-list {
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
}

.hot-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed #edf0f3;
}

.hot-list li:last-child {
  border-bottom: 0;
}

.hot-rank {
  display: grid;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #8c99a5;
  background: #f1f4f6;
  border-radius: 2px;
  font-size: 9px;
  place-items: center;
}

.hot-rank.top {
  color: white;
  background: var(--orange);
}

.hot-list button {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 0;
  background: transparent;
  border: 0;
  text-align: left;
}

.hot-list button > span {
  overflow: hidden;
  max-width: 217px;
  color: #4d5e70;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-list button:hover > span {
  color: var(--red);
  text-decoration: underline;
}

.hot-list small {
  color: var(--text-light);
  font-size: 8px;
}

.active-users ul {
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
}

.active-users li {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 0;
}

.rank-number {
  width: 17px;
  color: #99a5b0;
  font-family: Georgia, serif;
  font-size: 10px;
  font-style: italic;
}

.active-users .avatar {
  width: 29px;
  height: 29px;
  font-size: 9px;
}

.active-users li > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.active-users b {
  color: #4e6072;
  font-size: 9px;
  font-weight: 400;
}

.active-users small {
  color: var(--text-light);
  font-size: 8px;
}

.event-card {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 8px;
}

.event-card .side-title,
.event-join {
  grid-column: 1 / -1;
}

.event-date-block {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 51px;
  color: white;
  background: var(--blue);
  border-radius: 2px;
}

.event-day {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1;
}

.event-date-block > span:last-child {
  font-size: 7px;
  line-height: 1.45;
}

.event-detail {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
}

.event-detail strong {
  color: #44576b;
  font-size: 10px;
}

.event-detail p {
  margin: 0;
  color: var(--text-light);
  font-size: 8px;
}

.event-detail span {
  color: var(--blue);
  font-size: 8px;
}

.event-join {
  height: 27px;
  color: var(--blue);
  background: #f3f8ff;
  border: 1px solid #d5e4f6;
  border-radius: 2px;
  font-size: 9px;
}

.event-join.joined {
  color: var(--text-light);
  background: #f5f6f7;
  border-color: var(--line);
}

.side-copyright {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 3px;
  color: #a5afb9;
  font-size: 8px;
}

.site-footer {
  padding: 20px 0 28px;
  color: var(--text-light);
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 15px;
}

.footer-links a {
  color: #6f7c89;
  font-size: 9px;
}

.footer-inner p {
  margin: 0;
  font-size: 9px;
}

.mobile-actionbar {
  display: none;
}

.modal-layer.auth-layer {
  z-index: 360;
}

.auth-dialog {
  width: min(430px, 100%);
  overflow: hidden;
  background: white;
  border-radius: 4px;
  box-shadow: 0 20px 65px rgba(13, 25, 40, 0.32);
  animation: dialog-in 180ms both;
}

.auth-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  color: white;
  background: var(--blue);
}

.auth-head h2 {
  margin: 0;
  font-size: 16px;
}

.auth-head span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 8px;
}

.auth-close {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 0;
  place-items: center;
}

.auth-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.auth-close svg {
  width: 16px;
  height: 16px;
}

.auth-view {
  padding: 19px;
}

.auth-view[hidden] {
  display: none;
}

.auth-intro {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.auth-emblem {
  display: grid;
  width: 45px;
  height: 45px;
  flex-shrink: 0;
  color: white;
  background: var(--blue);
  border-radius: 12px 12px 12px 3px;
  font-family: "STSong", "SimSun", serif;
  font-size: 22px;
  font-weight: 700;
  place-items: center;
}

.auth-intro h3 {
  margin: 0;
  color: #33495f;
  font-size: 14px;
}

.auth-intro p {
  margin: 3px 0 0;
  color: var(--text-light);
  font-size: 9px;
}

.phone-login-form > label:not(.auth-consent) {
  display: block;
  margin: 11px 0 5px;
  color: #596a7b;
  font-size: 10px;
}

.phone-field,
.code-field {
  display: flex;
  align-items: center;
  width: 100%;
  height: 39px;
  overflow: hidden;
  background: #fbfcfd;
  border: 1px solid #d2d9e1;
  border-radius: 2px;
}

.phone-field:focus-within,
.code-field:focus-within {
  background: white;
  border-color: #8fb0d8;
  box-shadow: 0 0 0 2px rgba(46, 101, 184, 0.08);
}

.phone-field > span {
  display: grid;
  width: 48px;
  height: 100%;
  flex-shrink: 0;
  color: #66788a;
  background: #f3f6f9;
  border-right: 1px solid #dde3ea;
  font-size: 10px;
  place-items: center;
}

.phone-field input,
.code-field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 10px;
  background: transparent;
  border: 0;
  font-size: 11px;
  outline: 0;
}

.phone-field input::placeholder,
.code-field input::placeholder {
  color: #a7afb7;
}

.code-field button {
  width: 91px;
  height: 29px;
  flex-shrink: 0;
  margin-right: 4px;
  color: var(--blue);
  background: #eef5ff;
  border: 1px solid #d3e2f5;
  border-radius: 2px;
  font-size: 9px;
}

.code-field button:hover:not(:disabled) {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.code-field button:disabled {
  color: #9ba6b1;
  background: #f1f3f5;
  border-color: #e0e4e8;
  cursor: default;
}

.auth-demo-tip {
  margin-top: 8px;
  padding: 7px 8px;
  color: #756b53;
  background: #fffbea;
  border: 1px solid #f0e5c1;
  font-size: 8px;
}

.auth-demo-tip > span {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 4px;
  color: #975e18;
  background: #fff0bf;
  border-radius: 2px;
}

.auth-demo-tip b {
  color: #b64935;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.auth-consent {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 11px;
  color: #7d8994;
  font-size: 8px;
  line-height: 1.5;
  cursor: pointer;
}

.auth-consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fake-checkbox {
  position: relative;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  margin-top: 0;
  background: white;
  border: 1px solid #bfc8d1;
  border-radius: 2px;
}

.auth-consent input:checked + .fake-checkbox {
  background: var(--blue);
  border-color: var(--blue);
}

.auth-consent input:checked + .fake-checkbox::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 3px;
  height: 7px;
  content: "";
  border-right: 1.5px solid white;
  border-bottom: 1.5px solid white;
  transform: rotate(42deg);
}

.auth-consent input:focus-visible + .fake-checkbox {
  outline: 2px solid #6a9bec;
  outline-offset: 2px;
}

.auth-error {
  min-height: 16px;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 9px;
}

.auth-submit {
  width: 100%;
  height: 37px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
}

.auth-submit:hover {
  background: var(--blue-deep);
}

.auth-submit:disabled {
  opacity: 0.55;
  cursor: default;
}

.auth-footnote {
  margin: 10px 0 0;
  color: #9aa4ae;
  font-size: 8px;
  text-align: center;
}

.account-view {
  padding-top: 17px;
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line-soft);
}

.account-avatar {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.account-profile > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-profile strong {
  color: #33495e;
  font-size: 14px;
}

.account-profile span:not(.avatar):not(.account-level) {
  color: var(--text-light);
  font-size: 9px;
}

.account-level {
  margin-left: auto;
  padding: 2px 6px;
  color: #9a641e;
  background: #fff4d8;
  border: 1px solid #f1dfb3;
  border-radius: 2px;
  font-size: 8px;
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0;
  background: #f7f9fb;
  border: 1px solid var(--line-soft);
}

.account-stats span {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 2px;
  padding: 9px 5px;
  color: var(--text-light);
  border-right: 1px solid var(--line-soft);
  font-size: 8px;
}

.account-stats span:last-child {
  border-right: 0;
}

.account-stats b {
  color: #41566b;
  font-size: 15px;
}

.account-security {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  background: #fbfcfd;
  border: 1px solid var(--line-soft);
}

.account-security > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.account-security span {
  color: var(--text-light);
  font-size: 8px;
}

.account-security strong {
  color: #536577;
  font-size: 10px;
  font-weight: 400;
}

.verified-label {
  color: var(--green) !important;
}

.logout-button {
  width: 100%;
  height: 35px;
  margin-top: 15px;
  color: #b54d40;
  background: #fff8f7;
  border: 1px solid #efd6d2;
  border-radius: 2px;
  font-size: 10px;
}

.logout-button:hover {
  color: white;
  background: #c95343;
  border-color: #c95343;
}

.modal-layer {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(22, 31, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: fade-in 150ms both;
}

.modal-layer[hidden] {
  display: none;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.thread-dialog {
  display: flex;
  width: min(1020px, 100%);
  height: min(860px, calc(100vh - 40px));
  flex-direction: column;
  overflow: hidden;
  background: #f4f6f8;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(13, 25, 40, 0.28);
  animation: dialog-in 180ms both;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.thread-dialog-head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  min-height: 46px;
  padding: 0 13px;
  color: white;
  background: var(--blue);
}

.back-button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  border: 0;
  font-size: 11px;
}

.back-button:hover {
  color: white;
  background: rgba(255, 255, 255, 0.09);
}

.back-button svg {
  width: 15px;
  height: 15px;
}

.thread-head-actions {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
}

.thread-head-actions button:not(.thread-close) {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 29px;
  padding: 0 8px;
  color: rgba(255, 255, 255, 0.86);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 9px;
}

.thread-head-actions button:not(.thread-close):hover,
.thread-head-actions button.active {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
}

.thread-head-actions svg {
  width: 14px;
  height: 14px;
}

.thread-close {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: 5px;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  place-items: center;
}

.thread-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.thread-detail-scroll {
  flex: 1;
  overflow-y: auto;
}

.thread-origin {
  padding: 18px 22px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.thread-kicker {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-light);
  font-size: 9px;
}

.thread-kicker a {
  color: #5d7188;
}

.thread-origin h1 {
  margin: 8px 0 7px;
  color: #26384a;
  font-size: 21px;
  line-height: 1.45;
}

.thread-origin-meta {
  display: flex;
  gap: 12px;
  color: var(--text-light);
  font-size: 9px;
}

.floor-list {
  padding: 12px 18px 0;
}

.floor {
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr);
  margin-bottom: 10px;
  background: white;
  border: 1px solid var(--line);
}

.floor-side {
  display: flex;
  align-items: center;
  flex-direction: column;
  padding: 17px 12px;
  background: #f8fafc;
  border-right: 1px solid var(--line-soft);
}

.floor-user-link {
  display: flex;
  align-items: center;
  flex-direction: column;
}

.floor-avatar {
  width: 57px;
  height: 57px;
  font-size: 17px;
}

.floor-user-name {
  margin-top: 6px;
  color: #395b7b;
  font-size: 11px;
  font-weight: 700;
}

.floor-user-title {
  margin-top: 4px;
  color: #9aa4ad;
  font-size: 8px;
}

.floor-badges {
  display: flex;
  gap: 3px;
  margin-top: 6px;
}

.floor-badges span {
  padding: 1px 4px;
  color: #6f7b88;
  background: #eef1f4;
  border: 1px solid #e2e6ea;
  border-radius: 2px;
  font-size: 7px;
}

.floor-main {
  min-width: 0;
  padding: 13px 17px 15px;
}

.floor-head {
  display: flex;
  align-items: center;
  color: var(--text-light);
  font-size: 9px;
}

.floor-number {
  margin-left: auto;
}

.floor-number b {
  color: #536170;
  font-size: 11px;
}

.floor-body {
  padding: 13px 0 18px;
  color: #333;
  font-size: 13px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.floor-body p {
  margin: 0;
  white-space: pre-line;
}

.floor-body .inline-topic {
  color: var(--blue);
}

.floor-media {
  display: block;
  width: min(100%, 530px);
  max-height: 330px;
  margin-top: 13px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.floor-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 9px 0 0;
}

.floor-tags button {
  padding: 2px 6px;
  color: var(--blue);
  background: #f2f7fd;
  border: 1px solid #dbe8f7;
  border-radius: 2px;
  font-size: 9px;
}

.floor-actions {
  display: flex;
  gap: 3px;
  margin-top: 5px;
  padding-top: 8px;
  border-top: 1px dashed #e7ebef;
}

.floor-actions button {
  padding: 3px 6px;
  color: var(--text-light);
  background: transparent;
  border: 0;
  font-size: 9px;
}

.floor-actions button:hover {
  color: var(--blue);
  background: #f5f8fb;
}

.floor.reply-floor .floor-side {
  padding-top: 14px;
}

.floor.reply-floor .floor-avatar {
  width: 45px;
  height: 45px;
  font-size: 13px;
}

.floor.reply-floor .floor-body {
  padding-bottom: 8px;
}

.empty-replies {
  margin-bottom: 10px;
  padding: 28px 15px;
  color: var(--text-light);
  background: white;
  border: 1px solid var(--line);
  font-size: 10px;
  text-align: center;
}

.reply-composer {
  margin: 0 18px 20px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
}

.reply-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
}

.reply-heading strong {
  color: #405467;
  font-size: 12px;
}

.reply-heading span {
  color: var(--text-light);
  font-size: 8px;
}

.reply-input-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.reply-input-row .avatar {
  width: 35px;
  height: 35px;
}

.reply-input-row textarea {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  resize: vertical;
  background: #fbfcfd;
  border: 1px solid #d8dee5;
  border-radius: 2px;
  font-size: 11px;
  outline: 0;
}

.reply-input-row textarea:focus {
  background: white;
  border-color: #9db9dc;
  box-shadow: 0 0 0 2px rgba(46, 101, 184, 0.07);
}

.reply-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 9px 0 0 44px;
}

.reply-footer span {
  color: #a4adb7;
  font-size: 8px;
}

.reply-footer button {
  height: 29px;
  padding: 0 14px;
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 2px;
  font-size: 10px;
}

.composer-layer {
  align-items: flex-start;
  overflow-y: auto;
  padding-top: 7vh;
}

.composer-dialog {
  width: min(570px, 100%);
  background: white;
  border-radius: 3px;
  box-shadow: 0 18px 50px rgba(13, 25, 40, 0.3);
  animation: dialog-in 180ms both;
}

.composer-head {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 19px;
  color: white;
  background: var(--blue);
}

.composer-head h2 {
  margin: 0;
  font-size: 16px;
}

.composer-head span {
  color: rgba(255, 255, 255, 0.63);
  font-size: 8px;
}

.composer-close {
  display: grid;
  width: 30px;
  height: 30px;
  margin-left: auto;
  padding: 0;
  color: rgba(255, 255, 255, 0.75);
  background: transparent;
  border: 0;
  place-items: center;
}

.composer-close:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
}

.composer-close svg {
  width: 16px;
  height: 16px;
}

.composer-dialog form {
  padding: 17px 19px 18px;
}

.post-type-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
}

.post-type-row > label:first-child,
.field-label {
  color: #596a7b;
  font-size: 10px;
}

.post-type-row select {
  height: 28px;
  padding: 0 25px 0 8px;
  color: #465a6e;
  background: #f6f8fa;
  border: 1px solid #d5dce4;
  border-radius: 2px;
  font-size: 10px;
  outline: 0;
}

.anonymous-option {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: var(--text-light);
  font-size: 9px;
  cursor: pointer;
}

.anonymous-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.anonymous-option > span {
  position: relative;
  width: 26px;
  height: 14px;
  background: #cbd2da;
  border-radius: 20px;
  transition: background 150ms ease;
}

.anonymous-option > span::after {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  content: "";
  background: white;
  border-radius: 50%;
  transition: transform 150ms ease;
}

.anonymous-option input:checked + span {
  background: var(--blue);
}

.anonymous-option input:checked + span::after {
  transform: translateX(12px);
}

.anonymous-option input:focus-visible + span {
  outline: 2px solid #6a9bec;
  outline-offset: 2px;
}

.field-label {
  display: block;
  margin: 11px 0 5px;
}

#postTitle {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  background: #fbfcfd;
  border: 1px solid #d2d9e1;
  border-radius: 2px;
  font-size: 11px;
  outline: 0;
}

#postContent {
  width: 100%;
  min-height: 150px;
  padding: 10px;
  resize: vertical;
  background: #fbfcfd;
  border: 1px solid #d2d9e1;
  border-radius: 2px;
  font-size: 12px;
  line-height: 1.7;
  outline: 0;
}

#postTitle:focus,
#postContent:focus {
  background: white;
  border-color: #9db9dc;
  box-shadow: 0 0 0 2px rgba(46, 101, 184, 0.07);
}

#postTitle::placeholder,
#postContent::placeholder {
  color: #a5aeb7;
}

.content-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: #9ca5ae;
  font-size: 8px;
}

.content-meta b {
  color: #697785;
  font-weight: 400;
}

.image-upload {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin-top: 11px;
  padding: 8px 9px;
  color: #6d7c89;
  background: #f9fafb;
  border: 1px dashed #ccd5df;
  border-radius: 2px;
  text-align: left;
}

.image-upload:hover {
  background: #f3f7fb;
  border-color: #9db9d9;
}

.image-upload > svg {
  width: 18px;
  height: 18px;
  color: #7e97af;
}

.image-upload > span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.image-upload b {
  font-size: 9px;
}

.image-upload small {
  color: #9da7b0;
  font-size: 8px;
}

.image-upload > strong {
  margin-left: auto;
  color: #9ca7b1;
  font-size: 16px;
  font-weight: 400;
}

.image-upload.has-image {
  color: #477259;
  background: #f3faf5;
  border-style: solid;
  border-color: #bad8c5;
}

.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid #e7ebef;
}

.composer-footer > span {
  color: #a0a9b2;
  font-size: 8px;
}

.composer-footer > div {
  display: flex;
  gap: 6px;
}

.composer-footer .button {
  height: 31px;
  padding: 0 15px;
  font-size: 10px;
}

.cancel-button {
  color: #697787;
  background: #f6f8fa;
  border: 1px solid #d7dee5;
}

.publish-button.is-publishing {
  pointer-events: none;
  opacity: 0.65;
}

.toast {
  position: fixed;
  z-index: 500;
  bottom: 28px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  color: white;
  background: #273849;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2px;
  box-shadow: 0 8px 25px rgba(10, 23, 37, 0.2);
  font-size: 10px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast svg {
  width: 13px;
  height: 13px;
  color: #84d6a4;
}

@media (max-width: 1110px) {
  .main-nav {
    gap: 0;
    margin-left: 14px;
  }

  .main-nav a {
    padding-inline: 9px;
  }

  .forum-search {
    width: 180px;
  }
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .content-layout {
    display: block;
  }

  .right-column {
    display: none;
  }

  .site-footer {
    padding-bottom: 80px;
  }
}

@media (max-width: 680px) {
  body {
    background: #f2f4f6;
  }

  .container,
  .nav-inner {
    max-width: calc(100% - 12px);
  }

  .nav-inner {
    gap: 6px;
  }

  .site-brand {
    gap: 5px;
  }

  .brand-bubble {
    width: 26px;
    height: 23px;
    font-size: 14px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-en {
    display: none;
  }

  .forum-search {
    width: auto;
    flex: 1;
    min-width: 82px;
    height: 27px;
  }

  .forum-search input {
    font-size: 10px;
  }

  .forum-search button {
    width: 29px;
  }

  .notice-button {
    width: 27px;
    margin-left: 0;
  }

  .notice-button > span,
  .profile-entry > span:last-child,
  .secondary-nav {
    display: none;
  }

  .profile-entry {
    margin-left: 0;
  }

  .profile-entry .avatar {
    width: 25px;
    height: 25px;
  }

  .page-main {
    padding-top: 7px;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .forum-header {
    margin-bottom: 7px;
  }

  .forum-banner {
    height: 111px;
    background-position: center 62%;
  }

  .banner-copy {
    top: 19px;
    left: 15px;
  }

  .banner-copy > span {
    font-size: 8px;
  }

  .banner-copy h1 {
    margin-top: 4px;
    font-size: 26px;
  }

  .banner-copy p {
    max-width: 270px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .banner-stamp {
    display: none;
  }

  .forum-summary {
    display: grid;
    grid-template-columns: 58px 1fr;
    min-height: 0;
    padding: 0 11px 11px;
  }

  .forum-logo {
    grid-row: 1 / 3;
    width: 58px;
    height: 58px;
    margin-top: -22px;
    border-width: 2px;
  }

  .forum-logo span {
    font-size: 22px;
  }

  .forum-description {
    padding: 9px 0 0 9px;
  }

  .forum-name-line h2 {
    font-size: 17px;
  }

  .official-badge {
    font-size: 8px;
  }

  .forum-description > p {
    margin: 5px 0 4px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .forum-data {
    gap: 10px;
    font-size: 8px;
  }

  .forum-data span:last-child {
    display: none;
  }

  .forum-actions {
    grid-column: 1 / -1;
    gap: 6px;
    padding-top: 9px;
  }

  .forum-actions .button {
    flex: 1;
    height: 32px;
    font-size: 10px;
  }

  .forum-tabs {
    min-height: 39px;
    padding: 0 7px;
  }

  .tab-list {
    margin-right: -5px;
  }

  .tab-list button {
    padding: 0 8px;
    font-size: 11px;
  }

  .forum-sort {
    display: none;
  }

  .quick-publish-bar {
    margin: 8px;
    padding: 7px;
  }

  .quick-publish-bar > .avatar {
    width: 29px;
    height: 29px;
    font-size: 9px;
  }

  .quick-publish-trigger {
    height: 29px;
    font-size: 9px;
  }

  .quick-tools {
    display: none;
  }

  .forum-notice {
    margin: 0 8px 4px;
    padding: 6px 7px;
    font-size: 9px;
  }

  .forum-notice a {
    display: none;
  }

  .list-heading {
    min-height: 33px;
    padding-inline: 10px;
  }

  .thread-row {
    grid-template-columns: 34px minmax(0, 1fr) 42px;
    gap: 7px;
    min-height: 95px;
    padding: 11px 9px;
  }

  .thread-row.pinned {
    padding-left: 6px;
  }

  .thread-avatar {
    width: 34px;
    height: 34px;
    font-size: 10px;
  }

  .thread-title-link {
    font-size: 12px;
  }

  .thread-badge {
    padding-inline: 3px;
    font-size: 8px;
  }

  .thread-body-line {
    margin-top: 4px;
  }

  .thread-preview {
    font-size: 10px;
    line-height: 1.5;
  }

  .thread-thumb {
    width: 54px;
    height: 41px;
  }

  .thread-meta {
    gap: 6px;
    margin-top: 5px;
    font-size: 8px;
  }

  .thread-meta .from-client {
    display: none;
  }

  .thread-reply {
    width: 38px;
    padding: 4px 0;
  }

  .thread-reply strong {
    font-size: 13px;
  }

  .thread-reply span {
    font-size: 8px;
  }

  .list-footer {
    min-height: 50px;
    padding: 8px 10px;
  }

  .page-numbers {
    display: none;
  }

  .load-more {
    width: 100%;
  }

  .mobile-actionbar {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1.6fr 1fr;
    height: calc(54px + env(safe-area-inset-bottom));
    padding: 5px 12px env(safe-area-inset-bottom);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 15px rgba(22, 44, 72, 0.08);
    backdrop-filter: blur(10px);
  }

  .mobile-actionbar button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    color: #6f7d8b;
    background: transparent;
    border: 0;
    font-size: 9px;
  }

  .mobile-actionbar svg {
    width: 17px;
    height: 17px;
  }

  .mobile-actionbar .mobile-publish {
    margin: 2px 13px;
    color: white;
    background: var(--blue);
    border-radius: 2px;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-publish span {
    font-size: 17px;
    font-weight: 400;
  }

  .site-footer {
    display: none;
  }

  .thread-dialog {
    width: 100%;
    height: calc(100vh - 18px);
    margin-top: 18px;
    border-radius: 0;
  }

  .modal-layer {
    align-items: flex-end;
    padding: 0;
  }

  .thread-dialog-head {
    min-height: 44px;
    padding-inline: 7px;
  }

  .back-button {
    font-size: 0;
  }

  .back-button svg {
    width: 18px;
    height: 18px;
  }

  .thread-head-actions button:not(.thread-close) span {
    display: none;
  }

  .thread-head-actions button:not(.thread-close) {
    width: 29px;
    padding: 0;
    justify-content: center;
  }

  .thread-origin {
    padding: 13px 12px;
  }

  .thread-origin h1 {
    margin-top: 6px;
    font-size: 17px;
  }

  .floor-list {
    padding: 7px 7px 0;
  }

  .floor {
    display: block;
    margin-bottom: 7px;
  }

  .floor-side {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 7px;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .floor-user-link {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .floor-avatar,
  .floor.reply-floor .floor-avatar {
    width: 31px;
    height: 31px;
    font-size: 9px;
  }

  .floor-user-name {
    margin-top: 0;
    font-size: 10px;
  }

  .floor-user-title {
    margin-top: 0;
    margin-left: auto;
    font-size: 7px;
  }

  .floor-badges {
    display: none;
  }

  .floor-main {
    padding: 10px 11px;
  }

  .floor-body {
    padding: 10px 0 12px;
    font-size: 12px;
  }

  .floor-media {
    max-height: 230px;
  }

  .reply-composer {
    margin: 0 7px 10px;
    padding: 11px;
  }

  .reply-input-row .avatar {
    display: none;
  }

  .reply-footer {
    margin-left: 0;
  }

  .composer-layer {
    justify-content: center;
    align-items: flex-end;
    overflow-y: auto;
    padding: 0;
  }

  .auth-layer {
    align-items: flex-end;
    overflow-y: auto;
    padding: 0;
  }

  .auth-dialog {
    width: 100%;
    max-height: calc(100vh - 18px);
    overflow-y: auto;
    border-radius: 0;
  }

  .auth-head {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 52px;
  }

  .auth-view {
    padding: 16px 15px calc(18px + env(safe-area-inset-bottom));
  }

  .composer-dialog {
    width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    border-radius: 0;
  }

  .composer-head {
    position: sticky;
    z-index: 2;
    top: 0;
    min-height: 52px;
  }

  .composer-dialog form {
    padding: 14px;
  }

  .composer-footer > span {
    display: none;
  }

  .composer-footer > div {
    width: 100%;
  }

  .composer-footer .button {
    flex: 1;
    height: 34px;
  }

  .toast {
    bottom: 66px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
