:root {
  --color-bg: #ffffff;
  --color-bg-secondary: #f8f9fa;
  --color-bg-card: #ffffff;
  --color-text: #1a1a2e;
  --color-text-secondary: #6c757d;
  --color-text-muted: #adb5bd;
  --color-border: #e9ecef;
  --color-primary: #4361ee;
  --color-primary-hover: #3651d4;
  --color-accent: #7209b7;
  --color-link: #4361ee;
  --color-link-hover: #3651d4;
  --color-badge-cat-bg: #e8eaf6;
  --color-badge-cat-text: #3949ab;
  --color-badge-tag-bg: #e0f2f1;
  --color-badge-tag-text: #00796b;
  --color-reply-bg: #f8f9fa;
  --color-reply-border: #e9ecef;
  --color-encrypted-bg: #fff3e0;
  --color-encrypted-border: #ffcc02;
  --color-header-bg: #ffffff;
  --color-footer-bg: #f8f9fa;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Fira Code", "Fira Mono", Menlo, monospace;
  --max-width: 1080px;
  --header-height: 60px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0d1117;
    --color-bg-secondary: #161b22;
    --color-bg-card: #161b22;
    --color-text: #e6edf3;
    --color-text-secondary: #8b949e;
    --color-text-muted: #6e7681;
    --color-border: #30363d;
    --color-primary: #58a6ff;
    --color-primary-hover: #79b8ff;
    --color-accent: #bc8cff;
    --color-link: #58a6ff;
    --color-link-hover: #79b8ff;
    --color-badge-cat-bg: #1c2541;
    --color-badge-cat-text: #79b8ff;
    --color-badge-tag-bg: #0d2818;
    --color-badge-tag-text: #56d364;
    --color-reply-bg: #161b22;
    --color-reply-border: #30363d;
    --color-encrypted-bg: #2a1f00;
    --color-encrypted-border: #9e6a03;
    --color-header-bg: #161b22;
    --color-footer-bg: #0d1117;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.4);
  }
}

/* Reset */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--color-link-hover);
}

img {
  max-width: 100%;
  height: auto;
}

/* Header */
.l0 {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.l1 {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 100%;
  gap: 2rem;
}

.l2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.l2:hover {
  color: var(--color-primary);
}

.l3 {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.l4 {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease, color 0.15s ease;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.l4:hover {
  color: var(--color-text);
  background-color: var(--color-bg-secondary);
}

.l7 {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.l5 {
  position: relative;
}

.l8 {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 0;
  z-index: 200;
}

.l5.open .l8 {
  display: block;
}

.l8 a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--color-text);
  transition: background-color 0.1s ease;
}

.l8 a:hover {
  background-color: var(--color-bg-secondary);
}

.l9 {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.l9 span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.l9.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.l9.active span:nth-child(2) {
  opacity: 0;
}

.l9.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Main content */
.la {
  flex: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  width: 100%;
}

/* Footer */
.lb {
  background: var(--color-footer-bg);
  border-top: 1px solid var(--color-border);
  padding: 1.5rem 0;
  margin-top: auto;
}

.lc {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Page Header */
.c0 {
  margin-bottom: 2rem;
}

.c0 h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.c1 {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 48rem;
  margin-bottom: 0.5rem;
}

.c2 {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

/* Post Cards */
.c3 {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.c4 {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.c4:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.c5 {
  padding: 1.25rem 1.5rem;
}

.c6 {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

.c6 a {
  color: var(--color-text);
}

.c6 a:hover {
  color: var(--color-primary);
}

.c7 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.75rem;
}

.c8 {
  color: var(--color-text-muted);
}

.cb {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cc {
  font-size: 0.825rem;
  color: var(--color-text-muted);
}

.cd {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.cd::before {
  content: "\1F4AC";
  font-size: 0.8em;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}

.badge-category {
  background: var(--color-badge-cat-bg);
  color: var(--color-badge-cat-text);
}

.badge-tag {
  background: var(--color-badge-tag-bg);
  color: var(--color-badge-tag-text);
}

/* Lock icon */
.lock-icon {
  font-size: 0.9em;
  margin-right: 2px;
}

.t1y {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

/* Discourse-like detail page */
.t0 {
  background: #ffffff;
  color: #1f2328;
}

.t0 .l0 {
  background: #ffffff;
  border-bottom: 1px solid #eceff3;
  box-shadow: none;
}

.t0 .l1 {
  max-width: 1240px;
  gap: 1.5rem;
}

.t0 .l2 {
  font-size: 1.05rem;
  font-weight: 600;
}

.t0 .l4 {
  font-size: 0.95rem;
  color: #6b7280;
}

.t0 .l4:hover {
  background: #f4f6f8;
  color: #20242a;
}

.t0 .la {
  max-width: 1240px;
  padding: 1.75rem 2rem 4rem;
}

.t0 .lb {
  background: #ffffff;
  border-top: 1px solid #eceff3;
}

.t0 .lc {
  color: #98a1ab;
}

.t0 .badge {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.t0 .badge-category {
  background: #ebf3fb;
  color: #3d6f99;
}

.t0 .badge-tag {
  background: #f3f5f7;
  color: #66727f;
}

.t1 {
  max-width: 1000px;
  margin: 0 auto;
}

.t2 {
  padding-bottom: 0.95rem;
  margin-bottom: 0.35rem;
  border-bottom: 1px solid #eceff3;
}

.t3 {
  font-size: clamp(1.55rem, 2.35vw, 2.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #191d22;
}

.t4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.7rem;
  margin-top: 0.45rem;
}

.t5 {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #65717d;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.2;
}

.t5::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #c7ced6;
  flex: 0 0 auto;
}

.t6 {
  color: #5f6f81;
}

.t6::before {
  background: #97a8b8;
}

.t7 {
  color: #5d7767;
}

.t7::before {
  background: #73b57c;
}

.t8 {
  color: #6f6587;
}

.t8::before {
  background: #9984c9;
}

.t9 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.85rem;
  font-size: 0.84rem;
  color: #7c8794;
}

.ta {
  margin-top: 0.55rem;
}

.topic-page-separator {
  color: #bcc3cb;
}

.topic-page-context {
  color: #7c8794;
}

.tb {
  color: #8e98a2;
}

.topic-version-switcher {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid #e5e9ef;
  border-radius: 14px;
  background: #f8fafc;
}

.topic-version-current {
  font-size: 0.84rem;
  font-weight: 700;
  color: #334155;
}

.topic-version-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topic-version-link {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d6dde6;
  color: #556271;
  font-size: 0.8rem;
  text-decoration: none;
}

.topic-version-link:hover {
  border-color: #8ea0b5;
  color: #27313d;
}

.topic-version-link.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #ffffff;
}

.topic-version-notice {
  margin-top: 0.7rem;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.84rem;
}

.topic-version-notice a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: none;
}

.tc {
  display: flex;
  flex-direction: column;
}

.td {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid #eceff3;
}

.te {
  border-top: none;
  padding-top: 0.9rem;
}

.tf {
  display: flex;
  justify-content: center;
  padding-top: 0.15rem;
}

.tg {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: none;
  background: #eef1f5;
}

.th {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5f6873;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
}

.ti {
  min-width: 0;
}

.tj {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.tk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.6rem;
}

.tl {
  font-size: 1.05rem;
  font-weight: 700;
  color: #30353b;
}

.tm {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 0.4rem;
  background: #1593e6;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.tn {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-top: 0.1rem;
}

.to {
  font-size: 0.95rem;
  color: #8d96a0;
}

.tp {
  font-size: 1rem;
  color: #2999d0;
  font-weight: 600;
  white-space: nowrap;
}

.tp:hover {
  color: #167cab;
}

.tq {
  margin-top: 0.55rem;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.tr {
  margin-top: 1rem;
  color: #1aa8e3;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: right;
}

.ts {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.72rem;
  margin-top: 0.7rem;
  color: #8f959d;
}

.tt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.84rem;
  color: #8f959d;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.tt:hover {
  color: #5c6670;
}

.tu {
  line-height: 1;
  font-size: 0.8rem;
}

.tv {
  font-size: 0.76rem;
  font-weight: 600;
}

.tx {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 1.05rem;
}

.tx .ts {
  margin-top: 0;
  flex: 0 0 auto;
}

.t1b {
  flex: 1 1 auto;
  min-width: 0;
}

.t1b summary {
  list-style: none;
}

.t1b summary::-webkit-details-marker {
  display: none;
}

.t1c {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  background: #f1f2f4;
  color: #565d67;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
}

.t1d {
  white-space: nowrap;
}

.t1e {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transform: rotate(180deg);
  transition: transform 0.15s ease;
}

.t1b[open] .t1e {
  transform: rotate(0deg);
}

.t1f {
  position: relative;
  margin-top: 0.6rem;
  padding-left: 2rem;
}

.t1f::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0;
  bottom: 3.5rem;
  width: 2px;
  background: #e3e7ec;
}

.t1g {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.t1h {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
}

.t1i {
  display: flex;
  justify-content: center;
  padding-top: 0.1rem;
}

.t1j {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  background: #eef1f5;
}

.t1k {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #66707b;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.t1l {
  min-width: 0;
}

.t1m {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.t1n {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
}

.t1o {
  font-size: 0.98rem;
  font-weight: 700;
  color: #3b4047;
}

.t1p {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.t1q {
  margin-top: 0.45rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #252a31;
}

.t1r {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
  margin-left: 0.25rem;
  color: #8a929c;
  font-size: 0.98rem;
  font-weight: 500;
}

.t1r:hover {
  color: #5f6873;
}

.t12 {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  margin: 0 0 0.2rem;
  padding: 0.95rem 0 1rem 4.9rem;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
}

.t13 {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.t14 {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.t15 {
  font-size: 2rem;
  line-height: 1;
  font-weight: 500;
  color: #1aa0d5;
}

.t16 {
  font-size: 0.86rem;
  color: #8d96a0;
}

.t17 {
  display: flex;
  align-items: center;
}

.t18 {
  width: 34px;
  height: 34px;
  margin-left: -0.35rem;
  border-radius: 50%;
  overflow: hidden;
  background: #edf2f7;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e7ebf0;
}

.t18:first-child {
  margin-left: 0;
}

.t18 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.t19 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #66707b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Post detail */
.post-detail {
  max-width: 800px;
  margin: 0 auto;
}

.post-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.post-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.c9 {
  font-weight: 500;
}

.cf {
  font-size: 0.9rem;
  color: #278fc3;
}

.cf:hover {
  color: #167cab;
}

/* Post content */
.t1s {
  line-height: 1.8;
  font-size: 1rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.t1s h1,
.t1s h2,
.t1s h3,
.t1s h4,
.t1s h5,
.t1s h6 {
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  font-weight: 600;
  line-height: 1.35;
}

.t1s h1 { font-size: 1.5rem; }
.t1s h2 { font-size: 1.35rem; }
.t1s h3 { font-size: 1.2rem; }

.t1s p {
  margin-bottom: 1em;
}

.t1s ul,
.t1s ol {
  margin-bottom: 1em;
  padding-left: 2em;
}

.t1s li {
  margin-bottom: 0.25em;
}

.t1s blockquote {
  margin: 1em 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid var(--color-primary);
  background: var(--color-bg-secondary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-secondary);
}

.t1s pre {
  margin: 1em 0;
  padding: 1rem 1.25rem;
  background: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
}

.t1s code {
  font-family: var(--font-mono);
  font-size: 0.875em;
  padding: 0.15em 0.35em;
  background: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
}

.t1s pre code {
  padding: 0;
  background: transparent;
  border-radius: 0;
  font-size: inherit;
}

.t1s table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9rem;
}

.t1s th,
.t1s td {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.t1s th {
  background: var(--color-bg-secondary);
  font-weight: 600;
}

.t1s img {
  border-radius: var(--radius-sm);
  margin: 0.5em 0;
}

.t1s a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.t1s hr {
  margin: 2em 0;
  border: none;
  border-top: 1px solid var(--color-border);
}

.t0 .t1s,
.t0 .t1t {
  font-size: 1rem;
  line-height: 1.68;
  color: #1e2329;
}

.t0 .t1s p,
.t0 .t1t p {
  margin-bottom: 0.9em;
}

.t0 .t1s blockquote,
.t0 .t1t blockquote {
  margin: 1.1em 0;
  padding: 0.85rem 1.25rem;
  background: #f7f9fb;
  border-left: 4px solid #49a5d8;
  color: #4d5965;
}

.t0 .t1s pre,
.t0 .t1t pre {
  background: #f8fafc;
  border-color: #e6ebf1;
}

.t0 .t1s code,
.t0 .t1t code {
  background: #f3f6f8;
}

.t0 .t1u .lightbox-wrapper {
  display: block;
  max-width: 100%;
  margin: 0.75em 0;
}

.t0 .t1u .lightbox {
  display: inline-block;
  max-width: 100%;
  line-height: 0;
}

.t0 .t1u .lightbox img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.t0 .t1u .lightbox .meta {
  display: none;
}

/* Encrypted content */
.t1v {
  margin: 2rem 0;
}

.t1w {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--color-encrypted-bg);
  border: 1px solid var(--color-encrypted-border);
  border-radius: var(--radius-lg);
}

.t1w p {
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
}

.t22 {
  font-size: 0.875rem;
  font-style: italic;
}

.t1z {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.t20 {
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  width: 220px;
}

.t20:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
}

.t21 {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.t1x {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
  padding: 2rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
}

/* Replies */
.tz {
  margin-top: 0.15rem;
  padding-top: 0;
  border-top: none;
}

.t10 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ty {
  position: relative;
}

.t11 {
  font-size: 0.92rem;
  color: #8b95a1;
  background: none;
  padding: 0;
  border-radius: 0;
}

.t1t {
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: break-word;
  word-break: break-word;
}

.t1t p {
  margin-bottom: 0.5em;
}

.t1t p:last-child {
  margin-bottom: 0;
}

.t1t pre {
  margin: 0.75em 0;
  padding: 0.75rem 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
}

.t1t code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  padding: 0.1em 0.3em;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
}

.t1t pre code {
  padding: 0;
  background: transparent;
}

.t1t img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.t1t blockquote {
  margin: 0.5em 0;
  padding: 0.5rem 1rem;
  border-left: 3px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* Pagination */
.ce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.ce a,
.ce span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  transition: background-color 0.15s ease;
}

.ce a {
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.ce a:hover {
  background-color: var(--color-bg-secondary);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.ce .current {
  background-color: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
}

.ce .ellipsis {
  border: none;
  color: var(--color-text-muted);
}

/* Search */
.search-container {
  max-width: 700px;
  margin: 0 auto;
}

.s3 {
  margin-bottom: 2rem;
}

.s4 {
  width: 100%;
  padding: 0.75rem 1.25rem;
  font-size: 1.05rem;
  font-family: inherit;
  background: var(--color-bg);
  color: var(--color-text);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.s4:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.12);
}

.s7 {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  padding: 2rem 0;
}

.s5 .c4 {
  margin-bottom: 0.75rem;
}

.search-result-item {
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.5rem;
  transition: border-color 0.15s ease;
}

.search-result-item:hover {
  border-color: var(--color-primary);
}

.search-result-item h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.search-result-item h3 a {
  color: var(--color-text);
}

.search-result-item h3 a:hover {
  color: var(--color-primary);
}

.search-result-item p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.s9 {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem 0;
}

/* Homepage forum shell */
.f0 {
  background: #ffffff;
  color: #2c3440;
}

.f0 .l0 {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e8edf1;
  box-shadow: none;
  backdrop-filter: blur(10px);
}

.f0 .l1,
.f0 .lc {
  max-width: 1300px;
}

.f0 .l2 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #2c3440;
}

.f0 .l4 {
  color: #6d7580;
}

.f0 .l4:hover {
  color: #27313d;
  background: #f4f7f9;
}

.f0 .la {
  max-width: 1300px;
  padding: 1.5rem 1.5rem 3rem;
}

.f0 .lb {
  background: #ffffff;
  border-top: 1px solid #e8edf1;
}

.f0 .lc {
  color: #8f978f;
}

.f1 {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.f2 {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
}

.f3 {
  padding: 1rem 1.1rem 1.1rem;
  background: #ffffff;
  border: 1px solid #e8edf1;
  border-radius: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.f4 {
  color: #89a3b1;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.f5 {
  margin-top: 0.5rem;
  font-size: 1.55rem;
  line-height: 1.08;
  color: #2a323d;
}

.f6 {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #79828c;
}

.f7 {
  margin-top: 0.85rem;
  color: #a06b3c;
  font-size: 0.86rem;
  font-weight: 600;
}

.forum-sidebar-generated {
  margin-top: 0.75rem;
  color: #8894a0;
  font-size: 0.76rem;
}

.forum-sidebar-generator-version {
  margin-top: 0.35rem;
  color: #95a0aa;
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
}

.f8 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 0.6rem;
  background: #ffffff;
  border: 1px solid #e8edf1;
  border-radius: 1rem;
}

.f9 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 0.8rem;
  border-radius: 0.8rem;
  color: #5a6270;
  transition: background-color 0.15s ease, color 0.15s ease,
    transform 0.15s ease;
}

.f9:hover {
  color: #20262f;
  background: #f5f8fa;
  transform: translateX(2px);
}

.f9.is-active {
  background: #f1f5f8;
  color: #20262f;
  font-weight: 600;
}

.f9.is-empty {
  color: #9ba3ab;
}

.fa {
  min-width: 0;
  font-size: 0.98rem;
}

.fb {
  color: #8faab4;
  font-size: 0.8rem;
  font-weight: 700;
}

.fc {
  min-width: 0;
}

.fd {
  background: #ffffff;
  border: 1px solid #e8edf1;
  border-radius: 1.1rem;
  overflow: hidden;
}

.fe,
.fj {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px 108px;
  gap: 1rem;
  align-items: start;
}

.fe {
  padding: 0.95rem 1.2rem 0.9rem;
  border-bottom: 1px solid #e8edf1;
  color: #989890;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.fg,
.fh,
.fw,
.fx {
  text-align: right;
}

.fi {
  display: flex;
  flex-direction: column;
}

.fj {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid #edf1f4;
}

.fj:last-child {
  border-bottom: none;
}

.fk {
  min-width: 0;
}

.fl {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.45;
  color: #323947;
}

.fl a {
  min-width: 0;
  color: #323947;
}

.fl a:hover {
  color: #1f8cb8;
}

.fm {
  flex: 0 0 auto;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d8e0e7;
}

.fn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.32rem;
  color: #8d9199;
  font-size: 0.84rem;
}

.fo {
  color: #c1b8ab;
}

.fp {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.46rem;
  border-radius: 0.45rem;
  background: #f3f6f8;
  color: #65717c;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.fq {
  background: #edf4f8;
  color: #607384;
}

.fr {
  background: #f1f4ee;
  color: #66755e;
}

.fs {
  background: #f5f1fb;
  color: #6f6587;
}

.ft {
  background: #f4f6f8;
  color: #6b7179;
}

.fu {
  color: #6a7079;
}

.f0 .badge {
  padding: 0.12rem 0.45rem;
  border-radius: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
}

.f0 .badge-tag {
  background: #efede6;
  color: #68735e;
}

.fv {
  margin-top: 0.38rem;
  color: #5f6670;
  font-size: 0.95rem;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fw {
  padding-top: 0.2rem;
  color: #d78027;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.2;
}

.fx {
  padding-top: 0.25rem;
  color: #7baeb2;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
}

.f0 .ce {
  justify-content: flex-start;
  gap: 0.4rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: none;
}

.f0 .ce a,
.f0 .ce span {
  border-radius: 999px;
  min-width: 2.35rem;
  height: 2.2rem;
}

.f0 .ce a {
  background: #ffffff;
  border-color: #e8edf1;
}

.f0 .ce .current {
  background: #2f88ae;
  border-color: #2f88ae;
}

/* Search refresh */
.s0 {
  background: #f7f4ef;
}

.s0 .la {
  max-width: 980px;
  padding: 2rem 1.5rem 3.5rem;
}

.s1 {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.s2 {
  padding: 1.4rem;
  background: rgba(255, 252, 248, 0.88);
  border: 1px solid #e8dfd3;
  border-radius: 1.1rem;
}

.s2 .c0 {
  margin-bottom: 1rem;
}

.s0 .c0 h1 {
  font-size: 1.6rem;
}

.s0 .c1 {
  max-width: 34rem;
  color: #7d858f;
}

.s3 {
  margin-bottom: 0;
}

.s0 .s4 {
  padding: 0.95rem 1.15rem;
  font-size: 1rem;
  border: 1px solid #d7dfe5;
  border-radius: 0.9rem;
  background: #ffffff;
}

.s0 .s4:focus {
  border-color: #4ea7cb;
  box-shadow: 0 0 0 4px rgba(94, 180, 216, 0.14);
}

.s5 {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.s6 {
  padding: 1.3rem 1.1rem;
  border: 1px dashed #d8dfe4;
  border-radius: 1rem;
  background: rgba(255, 252, 248, 0.88);
  color: #7f8791;
  text-align: center;
}

.s8 {
  color: #b15b43;
  border-color: #ecc8bd;
  background: #fff5f0;
}

.sa {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1rem 1.1rem;
  background: rgba(255, 252, 248, 0.9);
  border: 1px solid #e8dfd3;
  border-radius: 1rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.sa:hover {
  border-color: #bfdbe8;
  transform: translateY(-1px);
}

.sb {
  min-width: 0;
}

.sc {
  color: #8ba0aa;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sd {
  margin-top: 0.3rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sd a {
  color: #2f3540;
}

.sd a:hover {
  color: #1f8cb8;
}

.se {
  margin-top: 0.45rem;
  color: #626a74;
  font-size: 0.92rem;
  line-height: 1.65;
}

.sf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: #e8f4fb;
  color: #2c7da3;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .f1 {
    grid-template-columns: 1fr;
  }

  .f2 {
    position: static;
  }

  .f8 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }
}

/* Responsive */
@media (max-width: 768px) {
  .l3 {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-header-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem 0;
    box-shadow: var(--shadow-md);
  }

  .l3.open {
    display: flex;
  }

  .l9 {
    display: flex;
  }

  .l5 .l8 {
    position: static;
    box-shadow: none;
    border: none;
    padding-left: 1rem;
  }

  .la {
    padding: 1.25rem 1rem;
  }

  .f0 .la,
  .s0 .la {
    padding: 1.15rem 0.9rem 2.5rem;
  }

  .f1 {
    gap: 1rem;
  }

  .f3 {
    padding: 1rem;
  }

  .f8 {
    grid-template-columns: 1fr 1fr;
    padding: 0.45rem;
  }

  .fe {
    display: none;
  }

  .fj {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }

  .fl {
    font-size: 1rem;
  }

  .fn {
    gap: 0.3rem;
  }

  .forum-topic-metrics {
    display: flex;
  }

  .fw,
  .fx {
    padding-top: 0;
    text-align: left;
  }

  .fw::before {
    content: "回复 ";
    color: #96a0aa;
    font-size: 0.82rem;
    font-weight: 500;
  }

  .fx::before {
    content: "时间 ";
    color: #96a0aa;
    font-size: 0.82rem;
    font-weight: 500;
    margin-right: 0.25rem;
  }

  .s2 {
    padding: 1rem;
  }

  .sa {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .sf {
    justify-self: flex-start;
  }

  .t3 {
    font-size: 1.55rem;
  }

  .t12 {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.95rem 0;
  }

  .t17 {
    margin-left: 0;
  }

  .td {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.75rem;
  }

  .tg {
    width: 46px;
    height: 46px;
  }

  .tj {
    flex-direction: column;
    gap: 0.45rem;
  }

  .tn {
    gap: 0.7rem;
  }

  .tx {
    flex-direction: column;
    align-items: stretch;
  }

  .tx .ts {
    justify-content: flex-start;
  }

  .t1f {
    padding-left: 1.35rem;
  }

  .t1f::before {
    left: 0.55rem;
  }

  .t1h {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .t1j {
    width: 36px;
    height: 36px;
  }

  .c0 h1 {
    font-size: 1.375rem;
  }

  .post-title {
    font-size: 1.375rem;
  }

  .c5 {
    padding: 1rem 1.125rem;
  }

  .ty {
    margin-left: 0;
  }

  .t1z {
    flex-direction: column;
    align-items: center;
  }

  .t20 {
    width: 100%;
    max-width: 260px;
  }

  .ce {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .td {
    grid-template-columns: 1fr;
  }

  .tf {
    justify-content: flex-start;
    padding-top: 0;
  }

  .tj {
    flex-direction: column;
    gap: 0.5rem;
  }

  .t1m {
    flex-direction: column;
    gap: 0.35rem;
  }

  .t1c {
    width: 100%;
    justify-content: space-between;
  }

  .ts {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .tr {
    text-align: left;
  }

  .t13 {
    gap: 1rem;
    flex-wrap: wrap;
  }

  .c7 {
    gap: 0.35rem;
  }

  .f8 {
    grid-template-columns: 1fr;
  }

  .fw,
  .fx {
    font-size: 0.95rem;
  }
}
