/* 默认 = A 墨青；内容区 max-width + 居中页脚 */
:root,
body.theme-ink-teal {
  --ink: #14201c;
  --muted: #5a6b66;
  --line: #d9e3df;
  --bg: #f4f7f6;
  --card: #ffffff;
  --accent: #0f766e;
  --accent-soft: #e6f3f1;
  --accent-glow: rgba(15, 118, 110, 0.12);
  --strip-bg: #fff8e6;
  --admin-bg: #e9eef6;
  --header-bg: rgba(255, 255, 255, 0.92);
  /* 兼容 po-share / po-editor 等使用的别名 */
  --text: var(--ink);
  --border: var(--line);
  --bg-soft: var(--card);
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --content-max: 1200px;
}
body.theme-slate-navy {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #ffffff;
  --accent: #1f4ea3;
  --accent-soft: #eef3fb;
  --accent-glow: rgba(31, 78, 163, 0.12);
  --strip-bg: #fff6d6;
  --admin-bg: #e9eef6;
  --header-bg: rgba(255, 255, 255, 0.92);
}
body.theme-klein {
  --ink: #111318;
  --muted: #5c6370;
  --line: #e3e5ea;
  --bg: #f2f3f5;
  --card: #ffffff;
  --accent: #002FA7;
  --accent-soft: #e8eefc;
  --accent-glow: rgba(0, 47, 167, 0.12);
  --strip-bg: #fff6d6;
  --admin-bg: #e8ecf6;
  --header-bg: rgba(255, 255, 255, 0.92);
}
/* D 玄夜墨青：对标视频站炭黑暗黑（近黑底 / 浅灰字 / 青绿强调） */
body.theme-night-teal {
  --ink: #f2f2f2;
  --muted: #999999;
  --line: #333336;
  --bg: #16161a;
  --card: #212124;
  --accent: #00c9b8;
  --accent-soft: #163735;
  --accent-glow: rgba(0, 201, 184, 0.22);
  --strip-bg: #2a2416;
  --admin-bg: #212124;
  --header-bg: rgba(22, 22, 26, 0.92);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --text: var(--ink);
  --border: var(--line);
  --bg-soft: var(--card);
}
body.theme-dark {
  color-scheme: dark;
}
body.theme-dark .po-page::before {
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(148, 163, 184, 0.08), transparent 50%);
}
body.theme-dark .err {
  background: color-mix(in srgb, #7f1d1d 40%, var(--card));
  color: #fecaca;
  border-color: #7f1d1d;
}
body.theme-dark .btn-danger,
body.theme-dark button.btn-danger,
body.theme-dark .user-mod-actions button.is-danger {
  color: #fecaca;
  border-color: #7f1d1d;
  background: color-mix(in srgb, #7f1d1d 28%, var(--card));
}
body.theme-dark .btn-danger:hover,
body.theme-dark .user-mod-actions button.is-danger:hover {
  background: color-mix(in srgb, #7f1d1d 42%, var(--card));
  color: #fee2e2;
  border-color: #991b1b;
}
body.theme-dark .user-batch-bar {
  background: var(--card);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4);
}
body.theme-dark .user-post-status.is-scheduled {
  background: color-mix(in srgb, #c2410c 22%, var(--card));
  color: #fdba74;
}
body.theme-dark .user-post-status.is-hidden {
  background: color-mix(in srgb, var(--line) 70%, var(--card));
  color: var(--muted);
}
body.theme-dark .user-post-type {
  background: var(--accent-soft);
  color: var(--accent);
}
body.theme-dark .user-mod-chip.is-warn,
body.theme-dark .user-mod-badge.is-warn {
  color: #fbbf24;
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
  background: color-mix(in srgb, #92400e 35%, var(--card));
}
body.theme-dark .user-mod-chip.is-danger,
body.theme-dark .user-mod-badge.is-danger {
  color: #fecaca;
  border-color: #7f1d1d;
  background: color-mix(in srgb, #7f1d1d 35%, var(--card));
}
body.theme-dark .user-mod-chip.is-ok,
body.theme-dark .user-mod-badge.is-ok {
  color: #6ee7b7;
  border-color: color-mix(in srgb, #059669 40%, var(--line));
  background: color-mix(in srgb, #065f46 35%, var(--card));
}
body.theme-dark .user-mod-chip.is-off,
body.theme-dark .user-mod-badge.is-off {
  color: var(--muted);
  border-color: var(--line);
  background: color-mix(in srgb, var(--line) 55%, var(--card));
}
body.theme-dark .po-ad-badge {
  background: rgba(0, 0, 0, 0.55);
}
body.theme-dark .po-board-picker-btn,
body.theme-dark .po-board-tile,
body.theme-dark .po-radio-tile-body {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line);
}
body.theme-dark .po-board-picker-btn:hover:not(.is-locked),
body.theme-dark .po-board-tile:hover,
body.theme-dark .po-board-tile.is-selected,
body.theme-dark .po-radio-tile:hover .po-radio-tile-body {
  background: var(--accent-soft);
  border-color: var(--accent);
}
body.theme-dark .po-radio-tile input:checked + .po-radio-tile-body .po-radio-tile-title {
  color: #fff;
}
body.theme-dark .po-editor-rich code,
body.theme-dark .po-editor-preview code,
body.theme-dark .body code {
  color: #5eead4;
  background: color-mix(in srgb, var(--accent) 18%, var(--card));
}
body.theme-dark .po-editor-rich pre,
body.theme-dark .po-editor-preview pre,
body.theme-dark .body pre {
  background: color-mix(in srgb, #000 35%, var(--card));
  border-color: var(--line);
  color: #e2e8f0;
}
body.theme-dark .po-editor-rich pre code,
body.theme-dark .po-editor-preview pre code,
body.theme-dark .body pre code {
  color: inherit;
  background: transparent;
}
body.theme-dark .po-editor-rich blockquote,
body.theme-dark .po-editor-preview blockquote,
body.theme-dark .body blockquote {
  color: #cbd5e1;
  background: color-mix(in srgb, var(--accent) 12%, var(--card));
}
body.theme-dark .po-board-tile.is-selected .po-board-tile-name,
body.theme-dark .po-board-picker-btn.has-value .po-board-picker-name,
body.theme-dark .po-board-picker-btn.is-locked .po-board-picker-name {
  color: #fff;
}
body.theme-dark .po-radio-tile-dot {
  background: var(--card);
  border-color: var(--line);
}
body.theme-dark .po-share-font-tools {
  background: var(--card);
  border-color: var(--line);
}
body.theme-dark .po-share-font-btn,
body.theme-dark .po-share-tool-btn {
  color: var(--ink);
}
body.theme-dark .po-share-font-value {
  color: var(--muted);
}
body.theme-dark .auth-graphic-captcha .captcha-inline-preview {
  background: var(--card);
}
.user-insights-teaser {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.user-insights-teaser-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--ink);
}
.user-insights-teaser-desc {
  margin: 0 0 10px;
  font-size: 13px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 15px/1.55 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* 顶区氛围 */
.po-page { position: relative; }
.po-page::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 280px;
  background:
    radial-gradient(ellipse 80% 60% at 10% -10%, var(--accent-glow), transparent 55%),
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(100, 116, 139, 0.1), transparent 50%);
  pointer-events: none;
  z-index: 0;
}
/* wrap 须高于页脚：否则 fixed 批量栏被困在 wrap 层内，透明页脚后绘会盖住底栏右侧 */
.po-page > .strip,
.po-page > .site-header,
.po-page > .wrap { position: relative; z-index: 1; }
.po-page > .site-footer { position: relative; z-index: 0; }

/* —— 顶栏（全宽 100%） —— */
.site-header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  box-sizing: border-box;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 0;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.site-header-bar {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  box-sizing: border-box;
}
.logo {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--accent);
  text-decoration: none;
  flex-shrink: 0;
  max-width: min(48vw, 16rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.logo:hover { text-decoration: none; }
.logo.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}
.site-logo .site-logo-icon {
  width: var(--logo-icon-size, 28px);
  height: var(--logo-icon-size, 28px);
  border-radius: 0.45rem;
  background: var(--logo-icon-color, #002fa7);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-logo .site-logo-icon.is-circle { border-radius: 50%; }
.site-logo .site-logo-icon i {
  font-size: calc(var(--logo-icon-size, 28px) * 0.55);
  line-height: 1;
  color: #fff;
}
.site-logo .site-logo-text {
  line-height: 1.2;
  font-size: var(--logo-font-size, 1.15rem);
  font-weight: 700;
  color: var(--logo-text-color, var(--accent));
  overflow: hidden;
  text-overflow: ellipsis;
}
.site-logo .site-logo-img {
  display: block;
  height: 1.85rem;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  flex: 1;
  min-width: 0;
}
.site-nav a {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--ink); background: var(--accent-soft); text-decoration: none; }
.site-nav a.on { color: var(--accent); font-weight: 600; background: var(--accent-soft); }
.site-nav a i { font-size: 1.05em; margin-right: 2px; vertical-align: -1px; }
.site-header-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
  flex-shrink: 0;
}
.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.site-nav-toggle:hover,
.site-nav-toggle:focus {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  outline: none;
}
body.site-nav-open { overflow: hidden; }
.top-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.top-auth-link {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.top-auth-link:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
/* 顶栏通知铃铛 */
.top-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 2px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.top-notify-btn .bx {
  font-size: 1.35rem;
  line-height: 1;
}
.top-notify-btn:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.top-notify-badge {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border: 2px solid var(--header-bg, #fff);
  box-sizing: content-box;
}
.top-auth-cta {
  padding: 6px 14px !important;
  font-size: 13px !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  margin-left: 2px;
}
.top-auth-cta:hover {
  text-decoration: none !important;
  color: #fff !important;
  filter: brightness(1.05);
}
.top-user-menu {
  position: relative;
  margin-left: 4px;
}
.top-user-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  max-width: 200px;
  transition: border-color .15s, box-shadow .15s;
}
.top-user-btn:hover,
.top-user-menu.is-open .top-user-btn {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.top-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  flex-shrink: 0;
}
.top-user-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 110px;
}
.top-user-caret {
  font-size: 16px;
  color: var(--muted);
  transition: transform .15s;
}
.top-user-menu.is-open .top-user-caret {
  transform: rotate(180deg);
  color: var(--accent);
}
.top-user-drop {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: max-content;
  min-width: 0;
  max-width: min(90vw, 280px);
  padding: 4px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  text-align: left;
}
.top-user-drop[hidden] { display: none !important; }
.top-user-drop a,
.top-user-drop .top-user-logout {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 9px 12px 9px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
}
.top-user-drop a:hover,
.top-user-drop .top-user-logout:hover {
  background: var(--accent-soft);
  color: var(--accent);
  text-decoration: none;
}
.top-user-drop .bx {
  font-size: 18px;
  flex: 0 0 1.25em;
  width: 1.25em;
  text-align: left;
}
.top-user-drop .top-user-logout {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 10px;
  color: #b91c1c;
}
.top-user-drop .top-user-logout:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.page-404 {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 640px);
  padding: 32px 16px;
}
.page-404-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  padding: 40px 28px 32px;
}
.page-404-code {
  font-size: clamp(64px, 12vw, 96px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.page-404-card h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}
.page-404-path {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.page-404-path code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  word-break: break-all;
}
.page-404-actions {
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
  gap: 8px;
}
.top-badge {
  display: inline-block;
  min-width: 1.15em;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  vertical-align: middle;
}
.strip {
  width: 100%;
  box-sizing: border-box;
  background: var(--strip-bg);
  padding: 8px clamp(1rem, 2.5vw, 2rem);
  padding-left: max(clamp(1rem, 2.5vw, 2rem), env(safe-area-inset-left, 0));
  padding-right: max(clamp(1rem, 2.5vw, 2rem), env(safe-area-inset-right, 0));
  font-size: 14px;
}
.strip a { color: var(--ink); }

/* —— 站点公告列表 / 详情 —— */
.announce-page { width: 100%; }
.announce-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.announce-count {
  font-size: 0.84rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--muted) 8%, var(--card));
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
}
.announce-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.announce-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.announce-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.announce-card.is-sticky {
  border-color: color-mix(in srgb, #f59e0b 45%, var(--line));
  background:
    linear-gradient(180deg, color-mix(in srgb, #fef3c7 55%, var(--card)), var(--card) 48%);
}
.announce-card-link {
  display: block;
  padding: 1.05rem 1.2rem 1rem;
  text-decoration: none;
  color: inherit;
}
.announce-card-link:hover { text-decoration: none; color: inherit; }
.announce-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.announce-card-titles {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  min-width: 0;
}
.announce-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}
.announce-card-arrow {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.announce-card:hover .announce-card-arrow { color: var(--accent); }
.announce-card-excerpt {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.announce-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.announce-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.announce-card-more {
  color: var(--accent);
  font-weight: 600;
}
.announce-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--muted) 4%, var(--card));
}
.announce-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
  opacity: 0.7;
}
.announce-detail {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.35rem 1.5rem 1.75rem;
}
.announce-detail-nav {
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.announce-detail-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  text-decoration: none;
}
.announce-detail-nav a:hover { color: var(--accent); }
.announce-detail-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.announce-detail-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
}
.announce-detail-head h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.announce-detail-meta {
  margin: 0.65rem 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}
.announce-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.announce-detail-body {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 640px) {
  .announce-detail { padding: 1.1rem 1rem 1.35rem; }
  .announce-detail-head h1 { font-size: 1.3rem; }
}

/* —— 页脚（居中） —— */
.site-footer {
  margin-top: auto;
  padding: 0.85rem 1.25rem 1.1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: transparent;
  font-size: 0.8125rem;
}
.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
}
.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.75rem;
  text-align: center;
}
.site-footer-mainline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}
.site-footer-copyright { font-size: 0.75rem; color: var(--muted); line-height: 1.4; }
.site-footer-meta {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.3rem 0.45rem;
  font-size: 0.75rem;
  line-height: 1.35;
}
.site-footer-clock {
  display: block;
  width: 100%;
  margin-top: 0.4rem;
  text-align: center;
  font-size: 0.72rem;
  line-height: 1.35;
  color: color-mix(in srgb, var(--muted) 58%, transparent);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.site-footer-sep { color: var(--line); user-select: none; }
.site-footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.08rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.35;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  white-space: nowrap;
}
.site-footer-badge .footer-link { color: inherit; font-weight: inherit; }
.site-footer-ver { color: inherit; }
.site-footer-sql {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.site-footer .footer-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}
.site-footer .footer-link:hover { color: var(--accent); text-decoration: none; }
.site-footer-compliance {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  margin-bottom: 0.5rem;
  text-align: center;
  font-size: 0.78rem;
  width: 100%;
}
.site-footer-compliance .footer-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.site-footer-compliance .footer-link:hover {
  color: color-mix(in srgb, var(--accent) 78%, #000);
}
/* 兼容旧 class */
.foot { display: none; }

/* —— 内容区骨架（默认 1200px；大屏略加宽） —— */
.wrap {
  width: 100%;
  max-width: var(--content-max);
  margin: 1.5rem auto 3rem;
  padding: 0 1.25rem;
  flex: 1 0 auto;
  min-height: 40vh;
}
@media (min-width: 1400px) {
  :root,
  body.theme-ink-teal,
  body.theme-slate-navy,
  body.theme-klein,
  body.theme-night-teal {
    --content-max: 1320px;
  }
}
@media (min-width: 1600px) {
  :root,
  body.theme-ink-teal,
  body.theme-slate-navy,
  body.theme-klein,
  body.theme-night-teal {
    --content-max: 1440px;
  }
}
.page { width: 100%; }
.page-narrow { max-width: 440px; margin: 0 auto; }
.po-breadcrumbs {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.po-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.po-breadcrumbs li {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
}
.po-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin: 0 8px;
  color: var(--line);
  font-weight: 400;
}
.po-breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.po-breadcrumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}
.po-breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(420px, 70vw);
}
.page-head {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
}
.page-head-bar {
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}
.page-head-bar h1 {
  flex: 1;
  min-width: 0;
  margin: 0;
}
.page-back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  text-decoration: none;
  font-size: 20px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.page-back-icon:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.page-head h1,
.wrap > h1,
.main > h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.page-title-with-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 10px;
}
.page-title-with-sub .page-subtitle {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 10px;
  line-height: 1.4;
  vertical-align: middle;
}
.page-head .page-desc,
.page-desc,
.hint {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.wrap > h2,
.main > h2,
.panel > h2,
.page h2 {
  margin: 12px 0;
  font-size: 1.15rem;
  font-weight: 650;
}
.panel {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.55rem 1.6rem;
  margin-bottom: 16px;
  overflow: hidden;
}
.panel + .panel { margin-top: 0; }
.empty {
  padding: 2.25rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.err {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  font-size: 14px;
}
.field-hint,
.form-text,
.form-text.small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  min-height: 1.2em;
  color: #94a3b8;
  font-weight: 400;
}
.field-hint.ok { color: var(--accent); }
.field-hint.bad { color: #b91c1c; }
.po-avatar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.po-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.muted { color: var(--muted); font-size: 13px; }
.meta { font-size: 13px; color: var(--muted); }
.meta a { color: var(--muted); }
.meta a:hover { color: var(--accent); }
.thread-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0;
}
.thread-meta .meta-board,
.thread-meta .meta-author,
.feed-meta .meta-board,
.feed-meta .meta-author {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  max-width: 100%;
}
.thread-meta .meta-board .bx,
.feed-meta .meta-board .bx {
  font-size: 1rem;
  line-height: 1;
  color: var(--accent);
}
.thread-meta .meta-avatar,
.thread-stats .meta-avatar,
.feed-meta .meta-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.feed-meta .meta-avatar {
  width: 18px;
  height: 18px;
}
.thread-meta .meta-sep,
.feed-meta .meta-sep {
  color: var(--muted);
  opacity: 0.7;
}
.thread-meta .meta-board:hover,
.thread-meta .meta-author:hover,
.thread-stats .meta-author:hover,
.feed-meta .meta-board:hover,
.feed-meta .meta-author:hover {
  color: var(--accent);
  text-decoration: none;
}
.feed-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.feed-meta .meta-views,
.feed-meta .meta-comments {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  text-decoration: none;
}
.feed-meta .meta-comments:hover {
  color: var(--accent);
}
.thread-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 14px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.thread-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: default;
}
a.thread-stat,
button.thread-stat {
  cursor: pointer;
}
a.thread-stat:hover,
button.thread-stat:hover {
  text-decoration: none !important;
}
.thread-stat .bx {
  font-size: 1.2rem;
  line-height: 1;
}
.thread-stat-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: 2px;
}
/* 金星收藏 + 蓝灰计数 + 红旗举报 */
.thread-fav .bx {
  color: #ffc107;
}
.thread-fav .thread-fav-count {
  color: #5b6b7c;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 0.75em;
}
.thread-fav:hover .bx,
.thread-fav.is-on .bx {
  color: #ffca2c;
}
.thread-report .bx {
  color: #dc3545;
}
.thread-report:hover .bx,
.thread-report:focus-visible .bx {
  color: #bb2d3b;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-left: 6px;
  color: var(--muted);
  background: var(--bg);
  vertical-align: middle;
}
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}
.feed-body .post-tags,
.search-page-item .post-tags {
  margin: 6px 0 0;
}
.feed-infinite-sentinel {
  padding: 16px 8px 8px;
  text-align: center;
  min-height: 28px;
}
.feed-infinite-status {
  font-size: 13px;
  color: var(--muted, #64748b);
}
.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.post-tag .bx {
  font-size: 13px;
  opacity: 0.9;
}
.post-tag:hover {
  background: color-mix(in srgb, var(--accent) 14%, var(--card));
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  color: var(--accent);
  text-decoration: none;
}
.po-tags-field .po-tag-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.po-tag-suggest-btn {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.po-tag-suggest-btn:hover,
.po-tag-suggest-btn.is-on {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  background: var(--accent-soft);
  color: var(--accent);
}
.page-title-main .bx {
  vertical-align: -2px;
  margin-right: 2px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* —— 排序标签 —— */
.sorts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}
.sorts a {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.sorts a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.sorts a.on {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 1px 0 var(--accent-glow);
}
.sorts a.on:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  filter: brightness(1.06);
}

/* —— 按钮 —— */
button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  text-decoration: none;
}
button[type="submit"],
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
button[type="submit"]:hover,
.btn-primary:hover {
  filter: brightness(1.05);
  color: #fff;
  border-color: var(--accent);
}
.btn-ghost,
button.btn-ghost {
  background: transparent;
}
.btn-danger,
button.btn-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.btn-danger:hover { background: #fef2f2; color: #991b1b; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— 表单（竖排标签，统一间距） —— */
.form-stack,
.auth-panel form,
.panel form,
.main form {
  max-width: 480px;
}
.form-stack.form-wide,
.panel form.form-wide { max-width: 640px; }
.form-stack.form-full,
.panel form.form-full { max-width: none; width: 100%; }

/* 隐私掩码：默认脱敏，hover/focus 临时全文；禁止 title 塞明文 */
.po-privacy-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 14px;
}
.po-privacy-field-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.po-privacy-hint { margin: -6px 0 14px; font-size: 12px; }
.po-privacy {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  word-break: break-all;
  outline: none;
}
.po-privacy:hover,
.po-privacy:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.po-privacy__full { display: none; }
.po-privacy:hover .po-privacy__mask,
.po-privacy:focus .po-privacy__mask { display: none; }
.po-privacy:hover .po-privacy__full,
.po-privacy:focus .po-privacy__full { display: inline; }
.wrap label,
.main label,
.form-stack label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.wrap label:has(input[type="checkbox"]),
.main label:has(input[type="checkbox"]),
.form-stack label:has(input[type="checkbox"]) {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.wrap input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wrap textarea,
.wrap select,
.main input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.main textarea,
.main select {
  width: 100%;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.wrap textarea,
.main textarea { min-height: 96px; resize: vertical; }
.wrap input:focus,
.wrap textarea:focus,
.wrap select:focus,
.main input:focus,
.main textarea:focus,
.main select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--card);
}
.wrap input[type="checkbox"],
.main input[type="checkbox"] {
  width: auto;
  max-width: none;
  margin: 0;
}

/* —— 站点广告位（F-33） —— */
.po-ad-slot {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 10px;
}
.po-ad-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-size: 11px;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 3px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  pointer-events: none;
}
.po-ad-link { display: block; color: inherit; text-decoration: none; }
.po-ad-link img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--bg-soft, #f4f6f8);
}
.po-ad-text {
  display: block;
  padding: 8px 4px 2px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--accent);
}
.po-ad-html { font-size: 13px; line-height: 1.5; overflow: hidden; }
.po-ad-html img { max-width: 100%; height: auto; }
.po-ad-slot--placeholder {
  border: 2px dashed #94a3b8;
  background: repeating-linear-gradient(
    -45deg,
    rgba(148, 163, 184, 0.08),
    rgba(148, 163, 184, 0.08) 8px,
    rgba(148, 163, 184, 0.16) 8px,
    rgba(148, 163, 184, 0.16) 16px
  );
  min-height: 88px;
}
.po-ad-slot--placeholder .po-ad-badge {
  background: #0f766e;
}
.po-ad-ph {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 4px 2px;
  min-height: 64px;
  justify-content: center;
}
.po-ad-ph-title {
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
}
.po-ad-ph-key {
  font-size: 12px;
  color: #0f766e;
  word-break: break-all;
}
.po-ad-ph-meta,
.po-ad-ph-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}
.po-ad-slot--thread_aside_card.po-ad-slot--placeholder,
.po-ad-slot--feed_aside_card.po-ad-slot--placeholder,
.po-ad-slot--board_aside_card.po-ad-slot--placeholder,
.po-ad-slot--discover_aside_card.po-ad-slot--placeholder,
.po-ad-slot--category_aside_card.po-ad-slot--placeholder {
  min-height: 180px;
}
.feed-item-ad {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}
.feed-item-ad .po-ad-slot { margin: 0; }
.feed-aside .po-ad-slot { margin: 0; }
.po-ad-slot--feed_list_inline,
.po-ad-slot--board_list_inline,
.po-ad-slot--thread_after_body { margin: 12px 0; }
.thread-article .thread-aside .po-ad-slot { margin: 0; }
.aside-card-board .aside-board-name {
  display: block;
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.3;
}
.aside-card-board .aside-board-name:hover {
  color: var(--accent);
  text-decoration: none;
}
.aside-board-desc {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}
.aside-board-stats {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--muted);
}
.aside-stat-sep { margin: 0 0.25em; color: var(--line); }
.aside-head-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-head-meta:hover { color: var(--accent); text-decoration: none; }
.aside-empty {
  margin: 4px 0 2px;
  font-size: 12px;
  line-height: 1.4;
}
.aside-card-author .aside-author {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  padding: 2px 0 4px;
}
.aside-card-author .aside-author:hover {
  text-decoration: none;
  color: inherit;
}
.aside-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--accent-soft);
}
.aside-author-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.aside-author-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-card-author .aside-author:hover .aside-author-name { color: var(--accent); }
.aside-author-stats {
  font-size: 12px;
  color: var(--muted);
}
.aside-card-board .aside-actions .aside-btn {
  cursor: pointer;
  font: inherit;
}
/* 板块页顶栏操作：横向胶囊组，复用侧栏按钮语义 */
.page-head-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.page-head-actions .page-action-btn {
  width: auto;
  min-width: 7.5rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  font-size: 13px;
}

/* —— 信息流两栏 —— */
.feed-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}
.feed-main-col { min-width: 0; }
.feed-aside {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.aside-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 12px 10px;
}
.aside-card-quick { padding: 6px 12px 10px; }
.aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 6px;
  min-height: 0;
}
.aside-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.aside-title-link {
  color: inherit;
  text-decoration: none;
}
.aside-title-link:hover {
  color: var(--accent);
  text-decoration: none;
  line-height: 1.2;
}
.aside-head-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none !important;
  font-size: 18px;
  line-height: 1;
  transition: color .15s ease, background .15s ease;
}
.aside-head-icon:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none !important;
}
.aside-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.aside-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 2.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.aside-btn:hover,
.aside-btn:focus {
  text-decoration: none !important;
}
.aside-btn i { font-size: 1.15em; line-height: 1; flex-shrink: 0; }
.aside-btn span { line-height: 1.2; }
/* 主 CTA：实心强调 + 微光泽 */
.aside-btn-cta,
.aside-btn-post {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 44px;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 650;
  gap: 8px;
  border-radius: 10px;
  border: 0;
  color: #fff !important;
  background: var(--accent) !important;
  box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.45);
  text-decoration: none !important;
}
.aside-btn-cta:hover,
.aside-btn-post:hover {
  filter: brightness(1.05);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.5);
  transform: translateY(-1px);
}
.aside-btn-cta:active,
.aside-btn-post:active {
  transform: translateY(0);
  filter: brightness(0.98);
}
.aside-btn-cta,
a.aside-btn-cta,
button.aside-btn-cta,
.aside-btn-post,
a.aside-btn-post,
a.btn-primary.aside-btn-post,
a.btn-primary.aside-btn-cta,
.aside-btn-cta:hover,
.aside-btn-post:hover,
a.aside-btn-post:hover,
a.btn-primary.aside-btn-post:hover,
.aside-btn-cta:focus,
.aside-btn-post:focus,
.aside-btn-cta:active,
.aside-btn-post:active {
  text-decoration: none !important;
  color: #fff !important;
}
.aside-btn-cta span,
.aside-btn-cta i,
.aside-btn-post span,
.aside-btn-post i,
a.aside-btn-cta:hover span,
a.aside-btn-cta:hover i,
a.aside-btn-post:hover span,
a.aside-btn-post:hover i {
  position: relative;
  z-index: 1;
  text-decoration: none !important;
  color: inherit;
}
.aside-btn-cta::after,
.aside-btn-post::after {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.38) 50%,
    rgba(255, 255, 255, 0) 65%,
    transparent 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  z-index: 0;
  animation: aside-post-shine 2.8s ease-in-out infinite;
}
.aside-btn-cta:hover::after,
.aside-btn-post:hover::after {
  animation-duration: 1.6s;
}
.aside-btn-cta .aside-post-ico,
.aside-btn-post .aside-post-ico {
  font-size: 1.25em;
  display: inline-block;
  transform-origin: 50% 60%;
  transition: transform .25s ease;
}
.aside-btn-cta:hover .aside-post-ico,
.aside-btn-post:hover .aside-post-ico {
  animation: aside-post-wiggle .55s ease;
}
/* 次级操作：描边胶囊，与主 CTA 成组 */
.aside-btn-secondary {
  color: var(--accent) !important;
  background: var(--card) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: none;
}
.aside-btn-secondary:hover,
.aside-btn-secondary:focus {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  text-decoration: none !important;
}
.aside-btn-secondary:active {
  background: color-mix(in srgb, var(--accent-soft) 80%, var(--accent)) !important;
}
@keyframes aside-post-wiggle {
  0% { transform: rotate(0deg) scale(1); }
  25% { transform: rotate(-12deg) scale(1.08); }
  50% { transform: rotate(10deg) scale(1.08); }
  75% { transform: rotate(-6deg) scale(1.04); }
  100% { transform: rotate(0deg) scale(1); }
}
@keyframes aside-post-shine {
  0% { left: -45%; }
  55% { left: 120%; }
  100% { left: 120%; }
}
.aside-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aside-list li + li { border-top: 1px solid var(--line); }
.aside-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.aside-list a:hover { color: var(--accent); }
.aside-list-name {
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.aside-list-meta {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.aside-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aside-chips a {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  text-decoration: none;
}
.aside-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* —— 信息流 —— */
.feed { list-style: none; padding: 0; margin: 0; }
.feed li,
.feed-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.feed li:last-child,
.feed-item:last-child { margin-bottom: 0; }
.feed-body { flex: 1; min-width: 0; }
/* 有图帖：投票右侧缩略图框 */
.feed-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--accent-soft);
  align-self: center;
  display: block;
  text-decoration: none;
  box-shadow: 0 0 0 0 transparent;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.feed-thumb:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
  text-decoration: none;
}
.feed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.feed .title {
  display: block;
  font-weight: 650;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.4;
}
.feed .title:hover { color: var(--accent); }
.feed-excerpt {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.feed-body .meta { margin-top: 8px; }
.sticky-badge {
  margin-left: 0;
  margin-right: 4px;
  border-color: #fcd34d;
  color: #b45309;
  background: #fffbeb;
}
.sticky-zone {
  margin: 0 0 18px;
  padding: 0;
  border: none;
  background: none;
}
.sticky-zone-title {
  /* 区段大标题不展示；帖卡片内 sticky-badge 已标明置顶 */
  display: none;
}
.sticky-zone-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.sticky-zone-list .feed-item {
  border-color: #fcd34d;
  box-shadow: 0 0 0 1px rgba(252, 211, 77, 0.35), var(--shadow);
}
.sticky-until-hint {
  font-size: 12px;
  margin-left: 4px;
}
.po-sticky-field { margin: 0 0 14px; }
.po-sticky-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
}
.po-sticky-radio {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  cursor: pointer;
}
.po-sticky-readonly { margin: 0; font-size: 14px; }
.po-sticky-quota {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--muted);
}
.po-sticky-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.po-sticky-chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.3;
}
.po-sticky-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}
.po-sticky-chip.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, var(--card)));
  font-weight: 600;
}
body.theme-dark .po-sticky-chip {
  background: color-mix(in srgb, var(--line) 55%, var(--card));
  color: var(--ink);
}
body.theme-dark .po-sticky-chip.is-on {
  background: var(--accent-soft, color-mix(in srgb, var(--accent) 22%, var(--card)));
  color: var(--accent);
  border-color: var(--accent);
}
.po-sticky-clear-wrap { margin: 12px 0 0; }
.feed-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex-shrink: 0;
  min-width: 44px;
  padding: 6px 4px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  align-self: center;
}
a.feed-stat:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.feed-stat i { font-size: 18px; line-height: 1; }
.feed-stat--views {
  cursor: default;
  user-select: none;
}
.feed-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: stretch;
  flex-shrink: 0;
  min-width: 44px;
  gap: 8px;
}
.feed-side .feed-stat { align-self: flex-end; }
.feed-mod-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: 0 6px 2px 0;
  cursor: pointer;
}
.feed-mod-check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent, #002fa7);
  cursor: pointer;
}
.feed-mod-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  background: #fff;
  border-top: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
}
.feed-mod-bar[hidden] { display: none !important; }
.feed-mod-inner {
  max-width: var(--content-max, 1120px);
  margin: 0 auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 14px;
  overflow-x: auto;
}
.feed-mod-info { font-size: 14px; color: var(--muted); white-space: nowrap; }
.feed-mod-info strong { color: var(--ink); }
.feed-mod-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.feed-mod-bar .feed-mod-move {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.feed-mod-move select {
  min-width: 8.5rem;
  max-width: 14rem;
  height: 32px;
  border: 1px solid var(--line, #e2e8f0);
  border-radius: 8px;
  background: var(--card, #fff);
  color: var(--ink);
  padding: 0 8px;
}
body.has-feed-mod-bar .shell,
body.has-feed-mod-bar .site-footer { padding-bottom: 96px; }
body.theme-dark .feed-mod-bar {
  background: var(--card, #16161a);
  border-top-color: var(--line, #333);
}
.votes {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 40px;
  flex-shrink: 0;
  padding-top: 2px;
}
.votes button {
  padding: 2px 8px;
  min-width: 36px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}
.votes button:hover { color: var(--accent); background: var(--accent-soft); }
.votes span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  min-width: 1.5em;
  text-align: center;
}

/* —— 帖详情 / 评论 —— */
.thread-article .page-head h1 { font-size: 1.65rem; }
.body { font-size: 15px; line-height: 1.7; word-break: break-word; }
.body.po-md-body {
  max-width: 100%;
  overflow-x: auto;
  /* 给 hover 外阴影留边，避免贴边时左侧看不见 */
  padding: 4px;
  margin: -4px;
  color: var(--ink);
}
.body p { margin: 0 0 12px; }
.body img { max-width: 100%; height: auto; border-radius: 8px; }
/* 帖详情正文图：可点预览 + hover 描边（内外阴影，避免 outline 被 overflow 裁切） */
.po-md-body img.js-thread-viewer {
  cursor: zoom-in;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
  box-shadow: inset 0 0 0 0 transparent;
}
.po-md-body img.js-thread-viewer:hover {
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 0 2px var(--accent),
    0 6px 20px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
}
/* 帖详情轻量 lightbox（盖过 sticky 顶栏） */
.po-lb {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 3rem;
  box-sizing: border-box;
  background: rgba(15, 23, 42, 0.88);
  cursor: zoom-out;
}
.po-lb[hidden] { display: none !important; }
body.po-lb-open { overflow: hidden; }
body.po-lb-open .site-header.top { z-index: 1; }
.po-lb-stage {
  position: relative;
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: default;
}
.po-lb-img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  cursor: default;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}
.po-lb-img.is-zooming {
  transition: transform 0.12s ease-out;
}
.po-lb--zoomed .po-lb-img { cursor: grab; }
.po-lb--dragging .po-lb-img { cursor: grabbing; transition: none; }
/* 悬停图片时显示右上角放大/缩小 */
.po-lb-zoom {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: flex;
  gap: 0.35rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.po-lb-stage:hover .po-lb-zoom,
.po-lb-zoom:focus-within {
  opacity: 1;
  pointer-events: auto;
}
.po-lb-zoom button {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}
.po-lb-zoom button:hover:not(:disabled) {
  background: var(--accent, #0f766e);
}
.po-lb-zoom button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.po-lb-close,
.po-lb-prev,
.po-lb-next {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.po-lb-close:hover,
.po-lb-prev:hover,
.po-lb-next:hover { background: rgba(255, 255, 255, 0.22); }
.po-lb-close {
  top: 0.75rem;
  right: 0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: #dc2626;
  color: #fff;
}
.po-lb-close:hover {
  background: #b91c1c;
}
/* 几何绘制 ×，避免字体基线导致视觉偏斜 */
.po-lb-close-x {
  position: relative;
  display: block;
  width: 0.85rem;
  height: 0.85rem;
}
.po-lb-close-x::before,
.po-lb-close-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 1px;
}
.po-lb-close-x::before { transform: translate(-50%, -50%) rotate(45deg); }
.po-lb-close-x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.po-lb-prev,
.po-lb-next {
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font-size: 1.5rem;
}
.po-lb-prev .bx,
.po-lb-next .bx {
  display: block;
  line-height: 1;
  width: 1em;
  height: 1em;
  margin: 0;
  text-align: center;
}
.po-lb-prev { left: 0.5rem; }
.po-lb-next { right: 0.5rem; }
.po-lb-count {
  position: absolute;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  pointer-events: none;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.body h1, .body h2, .body h3, .body h4, .body h5, .body h6 {
  color: var(--ink);
  line-height: 1.35;
  scroll-margin-top: 5rem;
}
.body h1 {
  font-size: 1.55rem;
  margin: 1rem 0 0.55em;
  font-weight: 700;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
}
.body h2 {
  font-size: 1.35rem;
  margin: 0.95em 0 0.45em;
  font-weight: 700;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--line);
}
.body h3 { font-size: 1.2rem; margin: 0.85em 0 0.35em; font-weight: 650; }
.body h4 { font-size: 1.08rem; margin: 0.75em 0 0.3em; font-weight: 650; }
.body h5, .body h6 { font-size: 1rem; margin: 0.65em 0 0.25em; font-weight: 650; }
.body a { color: var(--accent); text-decoration: underline; }
.body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25em 0;
}
.body del, .body s { color: var(--muted); }
.body input[type="checkbox"] { margin-right: 0.4em; vertical-align: middle; }
.body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--accent-soft, #e6f3f1);
  color: #0f766e;
}
.body pre.po-code,
.body pre {
  margin: 0.7em 0;
  padding: 0.85em 1em;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent-soft, #e6f3f1) 70%, var(--card, #fff));
  border: 1px solid var(--line);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink);
}
.body pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: inherit;
  white-space: inherit;
}
.body blockquote {
  margin: 0.6em 0;
  padding: 0.55em 0.95em;
  border-left: 4px solid var(--accent);
  color: var(--muted);
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg));
  border-radius: 0 8px 8px 0;
}
.body blockquote p { margin: 0 0 0.4em; }
.body blockquote p:last-child { margin-bottom: 0; }
.body ul, .body ol { margin: 0.4em 0 0.8em 1.25em; }
/* 帖详情按需加载占位（真实图进视口后再换 src） */
.body.po-md-body img.po-img-lazy:not(.is-loaded),
.cmt-body.po-md-body img.po-img-lazy:not(.is-loaded) {
  min-height: 7.5rem;
  width: 100%;
  max-width: 100%;
  object-fit: cover;
  background: color-mix(in srgb, var(--line) 45%, var(--card));
  border-radius: 8px;
}
.body.po-md-body img.po-img-lazy.is-loaded,
.cmt-body.po-md-body img.po-img-lazy.is-loaded {
  min-height: 0;
  width: auto;
  object-fit: unset;
  background: transparent;
}
.body .po-md-table-wrap,
.po-md-body .po-md-table-wrap,
.po-editor-preview .po-md-table-wrap,
.po-editor-rich .po-md-table-wrap {
  margin: 0.75em 0 1.1em;
  max-width: 100%;
  overflow-x: visible;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.body .po-md-table,
.body table,
.po-md-body table,
.po-editor-preview .po-md-table,
.po-editor-rich .po-md-table,
.po-editor-rich table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 14px;
  line-height: 1.45;
  background: transparent;
}
.body .po-md-table th,
.body .po-md-table td,
.body table th,
.body table td,
.po-md-body table th,
.po-md-body table td,
.po-editor-preview .po-md-table th,
.po-editor-preview .po-md-table td,
.po-editor-rich .po-md-table th,
.po-editor-rich .po-md-table td,
.po-editor-rich table th,
.po-editor-rich table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
  max-width: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.body .po-md-table thead th,
.body table thead th,
.po-md-body table thead th,
.po-editor-preview .po-md-table thead th,
.po-editor-rich .po-md-table thead th,
.po-editor-rich table thead th {
  background: color-mix(in srgb, var(--accent) 10%, var(--bg));
  color: var(--ink);
  font-weight: 650;
  white-space: normal;
}
.body .po-md-table tbody tr:nth-child(even),
.body table tbody tr:nth-child(even),
.po-md-body table tbody tr:nth-child(even),
.po-editor-preview .po-md-table tbody tr:nth-child(even) {
  background: color-mix(in srgb, var(--line) 35%, var(--card));
}
body.theme-dark .body .po-md-table thead th,
body.theme-dark .body table thead th,
body.theme-dark .po-md-body table thead th,
body.theme-dark .po-editor-preview .po-md-table thead th {
  background: color-mix(in srgb, var(--accent) 16%, var(--card));
}
body.theme-dark .body.po-md-body,
body.theme-dark .body.po-md-body p,
body.theme-dark .body.po-md-body li,
body.theme-dark .body.po-md-body td,
body.theme-dark .body.po-md-body th,
body.theme-dark .cmt-body.po-md-body,
body.theme-dark .cmt-body.po-md-body td,
body.theme-dark .cmt-body.po-md-body th {
  color: var(--ink);
}
.po-md-body ul.contains-task-list,
.body ul.contains-task-list {
  list-style: none;
  margin-left: 0.25em;
  padding-left: 0.25em;
}
.comments { list-style: none; padding: 0; margin: 0; }
.comments li {
  --cmt-depth: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin: 0 0 10px;
  margin-left: calc(var(--cmt-depth) * 28px);
}
.comments li.cmt-nested {
  background: var(--bg);
  border-left: 2px solid color-mix(in srgb, var(--accent) 35%, var(--line));
}
.comments li.is-preferred {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 0 0 1px var(--accent-soft);
}
.comments .body { margin-top: 8px; }
.thread-cmt-sort-hint {
  font-size: 13px;
  font-weight: 500;
  margin-left: 6px;
}
.cmt-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.cmt-preferred {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
}
.cmt-preferred .bx { font-size: 14px; }

/* —— 发现 / 板块列表 —— */
.boards { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.boards li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.boards li a { font-weight: 650; color: var(--ink); }
.boards li a:hover { color: var(--accent); }
.boards li p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.boards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.boards-grid li {
  display: flex;
  flex-direction: column;
  min-height: 118px;
}
.board-card-title {
  font-size: 15px;
  text-decoration: none;
}
.board-card-cat {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.boards-grid li p {
  flex: 1;
  margin-top: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-card-link {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent) !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.board-card-link:hover { text-decoration: underline; }
.board-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.board-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.board-card-meta i { font-size: 14px; }
.cat-page-desc { margin: 0 0 14px; }
.cat-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.cat-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 10px;
  text-align: center;
}
.cat-stat strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.cat-stat span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.cat-sec-title {
  margin: 8px 0 12px;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--ink);
}
@media (max-width: 720px) {
  .cat-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.cat-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cat-list a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  text-decoration: none;
}
.cat-list a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

/* —— 分类总览 /category —— */
.category-index-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.category-index-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.category-index-card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.category-index-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.05rem 1.15rem 1rem;
  text-decoration: none;
  color: inherit;
}
.category-index-link:hover { text-decoration: none; color: inherit; }
.category-index-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}
.category-index-name {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}
.category-index-arrow {
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}
.category-index-card:hover .category-index-arrow,
.category-index-card:hover .category-index-name { color: var(--accent); }
.category-index-desc {
  margin: 0.55rem 0 0;
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.category-index-desc.is-empty { opacity: 0.75; }
.category-index-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  margin-top: 0.85rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.category-index-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.category-index-more {
  margin-left: auto;
  color: var(--accent);
  font-weight: 650;
}
@media (max-width: 720px) {
  .category-index-grid { grid-template-columns: 1fr; }
  .category-index-more { margin-left: 0; width: 100%; }
}

/* —— 通用列表（用户中心等） —— */
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list > li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.list > li:last-child { border-bottom: 0; }
.list > li .meta { margin-top: 4px; }

/* —— 用户中心通知列表 —— */
.user-notice-list > li.user-notice-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}
.user-notice-main { flex: 1; min-width: 0; }
.user-notice-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.user-notice-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--ink);
}
.user-notice-kind {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background: var(--accent-soft);
}
.user-notice-kind.is-mod {
  color: #b45309;
  border-color: #fcd34d;
  background: #fffbeb;
}
.user-notice-body {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  word-break: break-word;
}
.user-notice-meta { margin-top: 8px; }
.user-notice-link {
  flex-shrink: 0;
  align-self: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--accent-soft);
}
.user-notice-link:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

/* —— 用户中心批量管理 —— */
.user-manage-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--muted);
}
.user-check-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  margin: 0;
}
.user-manage-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.user-manage-item-post {
  align-items: center;
  gap: 14px;
}
.user-manage-check {
  flex-shrink: 0;
  margin: 2px 0 0;
  cursor: pointer;
}
.user-manage-item-post .user-manage-check { margin-top: 0; }
.user-manage-body { flex: 1; min-width: 0; }
.user-manage-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}
.user-manage-title-row > a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.user-manage-title-row > a:hover {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.user-manage-title-muted { color: var(--muted); }
.user-manage-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 0;
  margin-top: 6px;
}
.user-manage-meta .bx {
  font-size: 14px;
  margin-right: 3px;
  vertical-align: -1px;
}
.user-manage-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(52px, 1fr));
  gap: 4px;
  flex: 0 0 auto;
  width: min(42%, 280px);
  min-width: 220px;
}
.user-manage-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.2;
}
a.user-manage-stat:hover {
  color: var(--accent);
  background: var(--accent-soft);
  text-decoration: none;
}
.user-manage-stat .bx {
  font-size: 16px;
  line-height: 1;
}
.user-manage-stat strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.user-manage-stat em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
@media (max-width: 720px) {
  .user-manage-item-post {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .user-manage-stats {
    width: 100%;
    min-width: 0;
    margin-left: 26px;
  }
}
.user-post-status {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 999px;
}
.user-post-status.is-public {
  background: var(--accent-soft, #e6f3f1);
  color: var(--accent);
}
.user-post-status.is-scheduled {
  background: #fff7ed;
  color: #c2410c;
}
.user-post-status.is-hidden {
  background: #f1f5f9;
  color: var(--muted);
}
.user-post-type {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
}
.user-manage-cmt-body {
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.user-batch-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  /* 实底，避免与页脚文字叠透 */
  background: #fff;
  border-top: 1px solid var(--line, #e2e8f0);
  box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
  padding: 12px 16px;
}
.user-batch-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px 14px;
}
.user-batch-info { font-size: 14px; color: var(--muted); flex-shrink: 0; }
.user-batch-info strong { color: var(--ink); }
.user-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-left: 0;
}
body.has-user-batch-bar .shell {
  padding-bottom: 88px;
}
body.has-user-batch-bar .site-footer {
  /* 内容抬高，避免被底栏遮住；层级保持 0，勿盖过批量栏 */
  padding-bottom: 88px;
  z-index: 0;
}

/* —— 前台返回顶部 —— */
.po-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1210;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, color-mix(in srgb, var(--accent) 72%, #fff) 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 14px var(--accent-glow, rgba(15, 118, 110, 0.35));
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease, bottom 0.2s ease;
}
.po-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.po-back-to-top:hover {
  box-shadow: 0 6px 18px var(--accent-glow, rgba(15, 118, 110, 0.45));
  text-decoration: none;
}
.po-back-to-top i {
  font-size: 1.35rem;
  line-height: 1;
}
body.has-user-batch-bar .po-back-to-top {
  bottom: 88px;
}
@media (max-width: 960px) {
  .po-back-to-top { right: 16px; bottom: 128px; }
  body.has-user-batch-bar .po-back-to-top { bottom: 168px; }
}
@media (max-width: 768px) {
  .po-back-to-top { right: 16px; bottom: 128px; }
  body.has-user-batch-bar .po-back-to-top { bottom: 168px; }
}
.admin-batch-bar {
  position: fixed;
  left: var(--po-admin-sidebar, 212px);
  right: 0;
  bottom: 0;
  z-index: 1200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 12px 20px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.08);
}
.admin-batch-info { font-size: 14px; color: #64748b; }
.admin-batch-info strong { color: #0f172a; }
.admin-batch-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.has-admin-batch-bar .admin-content {
  padding-bottom: 88px;
}
@media (max-width: 900px) {
  .admin-batch-bar { left: 0; }
}

/* —— 表格 —— */
table, .table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 14px;
}
td, th {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
}
th {
  background: var(--bg);
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}
.table-wrap { overflow-x: auto; margin: 0 -2px; }

/* —— 用户中心：我的附件 —— */
.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;
}
.user-attach-wrap .col-check { width: 2.25rem; text-align: center; vertical-align: middle; }
.user-attach-wrap .col-check .user-manage-check { margin: 0; display: inline-flex; }
.user-attach-wrap .col-thumb { width: 4.5rem; }
.user-attach-wrap .col-num { width: 5.5rem; text-align: right; white-space: nowrap; }
.user-attach-wrap .col-actions { width: 3rem; text-align: center; }
.user-attach-thumb {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: var(--bg);
}
.user-attach-thumb:hover {
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.user-attach-file-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  font-size: 1.35rem;
}
.user-attach-name {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}
.user-attach-name:hover { color: var(--accent); }
.user-attach-type {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin-right: 6px;
}
.user-attach-ext {
  font-size: 12px;
  color: var(--muted);
}
.user-attach-del {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: background .15s, border-color .15s, color .15s;
}
.user-attach-del:hover {
  background: color-mix(in srgb, #fecaca 55%, var(--card));
  border-color: #fecaca;
  color: #991b1b;
}
body.theme-dark .user-attach-del {
  color: #fca5a5;
}
body.theme-dark .user-attach-del:hover {
  background: color-mix(in srgb, #7f1d1d 40%, var(--card));
  border-color: #7f1d1d;
  color: #fecaca;
}

/* —— 用户版主台举报列表（对齐后台队列信息） —— */
.user-mod-lead { margin: -4px 0 14px; }
.user-mod-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 8px;
}
.user-mod-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}
.user-mod-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
}
.user-mod-chip.is-warn { color: #b45309; border-color: #fde68a; background: #fffbeb; }
.user-mod-chip.is-danger { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.user-mod-chip.is-ok { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.user-mod-chip.is-off { color: #64748b; border-color: #e2e8f0; background: #f8fafc; }
.user-mod-table .col-id { width: 64px; color: var(--muted); font-variant-numeric: tabular-nums; }
.user-mod-table .col-actions { width: 220px; white-space: nowrap; }
.user-mod-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.user-mod-type {
  display: inline-flex;
  align-self: flex-start;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
}
.user-mod-title {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.user-mod-title:hover { color: var(--accent); }
.user-mod-sub { font-size: 12px; }
.user-mod-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
.user-mod-badge.is-warn { color: #b45309; background: #fffbeb; border-color: #fde68a; }
.user-mod-badge.is-danger { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.user-mod-badge.is-info { color: var(--accent); background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.user-mod-badge.is-ok { color: #047857; background: #ecfdf5; border-color: #a7f3d0; }
.user-mod-badge.is-off { color: #64748b; background: #f8fafc; border-color: #e2e8f0; }
.user-mod-badge.is-muted { color: var(--muted); }
.user-mod-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
}
.user-mod-actions button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}
.user-mod-actions button.is-danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}
.user-mod-actions button.is-danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
}
@media (max-width: 720px) {
  .user-mod-table .col-actions { width: auto; }
}

/* —— KPI —— */
.kpi { display: flex; gap: 12px; flex-wrap: wrap; margin: 4px 0 16px; }
.kpi div {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 16px 18px;
  min-width: 120px;
  border-radius: var(--radius);
  flex: 1;
  max-width: 180px;
}
.kpi strong { font-size: 1.4rem; letter-spacing: -0.02em; }

/* —— 用户中心壳 —— */
.shell {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.side {
  width: 168px;
  flex-shrink: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.side-nav,
.side-foot {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-foot {
  margin-top: 2px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.side a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.3;
}
.side a > span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side a > .bx {
  flex-shrink: 0;
  width: 1.15em;
  font-size: 17px;
  text-align: center;
  color: var(--muted);
}
.side a:hover { background: var(--bg); text-decoration: none; }
.side a:hover > .bx { color: var(--accent); }
.side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side a.on > .bx { color: var(--accent); }
.side-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: auto;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  font-style: normal;
  line-height: 1;
  flex-shrink: 0;
}
/* H5 抽屉：桌面隐藏触发器/遮罩/抽屉头 */
.po-drawer-fab,
.po-drawer-backdrop,
.po-drawer-panel-head {
  display: none;
}
.po-drawer-fab {
  position: fixed;
  z-index: 1180;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
}
.po-drawer-fab > .bx { font-size: 1.25rem; }
.po-drawer-fab-left { left: 12px; bottom: 72px; }
.po-drawer-fab-right { right: 12px; bottom: 72px; }
.po-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 23, 42, 0.45);
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.po-drawer-panel-head {
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 12px 10px;
  margin: -8px -8px 6px;
  border-bottom: 1px solid var(--line);
}
.po-drawer-panel-head-aside {
  margin: 0 0 8px;
  padding: 4px 2px 10px;
  border-radius: 0;
}
.po-drawer-panel-head strong {
  font-size: 15px;
  font-weight: 700;
}
.po-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1.4rem;
}
.po-drawer-close:hover {
  background: var(--bg);
  color: var(--ink);
}
body.po-drawer-lock {
  overflow: hidden;
  touch-action: none;
}
body.theme-dark .po-drawer-fab {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
body.theme-dark .po-drawer-backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.main {
  flex: 1;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.45rem 1.55rem 1.6rem;
}
.main > h1:first-child { margin-top: 0; }
.main .panel {
  background: var(--bg);
  box-shadow: none;
  margin-bottom: 14px;
}

/* —— 附件工具条 —— */
.po-attach-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 14px; }
.po-cmt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 0;
}
.po-cmt-actions[hidden] {
  display: none !important;
}
.form-stack .po-cmt-actions {
  margin-bottom: 0;
}
.po-cmt-actions .po-cmt-captcha {
  order: 0;
  flex: 1 1 100%;
  width: 100%;
  margin: 0 0 4px;
}
.po-cmt-actions .po-cmt-submit {
  order: 1;
  margin: 0;
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
}
.po-cmt-actions .po-cmt-attach {
  order: 2;
  margin: 0;
  flex: 0 0 auto;
  min-width: 0;
}
.po-cmt-actions .po-cmt-attach-btn {
  position: relative;
  width: 2.4rem;
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
  overflow: visible;
}
.po-cmt-actions .po-cmt-attach-btn .bx {
  display: block;
  line-height: 2.3rem;
}
.po-attach-progress { font-size: 13px; color: var(--muted); }

/* —— 后台壳已迁至 admin.css（Youtem 式固定侧栏） —— */

/* —— 后台外观页（左右 50%：配置 | 实时预览） —— */
.appear-presets-wrap {
  margin-bottom: 1rem;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.appear-presets-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.appear-presets-hint {
  margin: 0 0 12px;
  font-size: 12px;
  color: #64748b;
  line-height: 1.45;
}
.appear-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.appear-preset {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 8px 6px 6px;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.appear-preset:focus-visible {
  outline: 2px solid #1f4ea3;
  outline-offset: 2px;
}
.appear-preset-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 2px 2px 2px;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  pointer-events: none;
}
.appear-preset-swatches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.appear-preset-chip {
  display: block;
  width: 100%;
  height: 28px;
  min-height: 28px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.appear-preset-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
  border-color: rgba(15, 23, 42, 0.35);
}
.appear-preset-chip:focus-visible {
  outline: 2px solid #1f4ea3;
  outline-offset: 2px;
}
.appear-preset-chip-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  line-height: 1.2;
}
.appear-preset-text {
  display: block;
  min-width: 0;
  width: 100%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.appear-preset-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #eef3fb;
  color: #1f4ea3;
  border: 1px solid #c7d7f5;
}
.appear-preset:hover {
  border-color: #94a3b8;
  background: #fff;
}
.appear-preset.is-active {
  border-color: #1f4ea3;
  background: #eef3fb;
  box-shadow: 0 0 0 1px rgba(31, 78, 163, 0.28);
}
@media (max-width: 1100px) {
  .appear-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .appear-presets {
    grid-template-columns: 1fr;
  }
}
.appear-colors-preview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}
.appear-colors-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}
.appear-preview-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.appear-preview-head {
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.appear-preview-head-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.appear-preview-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.appear-preview-hint {
  margin: 0;
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
}
.appear-preview-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.appear-preview-tab {
  margin: 0;
  padding: 5px 11px;
  border: 1px solid #dbe3ef;
  border-radius: 999px;
  background: #fff;
  color: #64748b;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.appear-preview-tab:hover {
  border-color: #94a3b8;
  color: #334155;
}
.appear-preview-tab.on {
  background: #eef3fb;
  border-color: #1f4ea3;
  color: #1f4ea3;
}
.appear-preview-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}
.appear-preview-stage .theme-preview {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.appear-custom {
  margin: 0 0 16px;
  padding: 16px 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}
.appear-custom-title { margin: 0 0 6px; font-size: 15px; color: #1e293b; }
.appear-custom-desc { margin: 0 0 14px; font-size: 13px; color: #64748b; line-height: 1.45; }
.appear-custom-fields { display: flex; flex-direction: column; gap: 14px; margin-bottom: 14px; }
.appear-custom-field > label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.appear-custom-input {
  display: flex; align-items: center; gap: 10px;
}
.appear-color-square {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #94a3b8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  background: #cbd5e1;
  cursor: pointer;
  overflow: hidden;
}
.appear-color-square input[type="color"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
}
.appear-custom-input input[type="text"] {
  flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid #dbe3ef; border-radius: 8px; font: inherit; font-size: 13px;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
.appear-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 16px;
}
.appear-actions .btn-primary {
  background: #1f4ea3; color: #fff; border: 0; padding: 10px 18px; border-radius: 8px; cursor: pointer; font: inherit;
}
.appear-actions .btn-ghost {
  background: #fff; color: #1e293b; border: 1px solid #dbe3ef; padding: 10px 18px; border-radius: 8px; cursor: pointer; font: inherit;
  display: inline-flex; text-decoration: none;
}
@media (max-width: 1100px) {
  .appear-colors-preview-row {
    grid-template-columns: 1fr;
  }
  .appear-preview-col {
    order: -1;
    height: auto;
  }
  .appear-colors-col {
    height: auto;
  }
  .appear-preview-stage .theme-preview {
    min-height: 420px;
  }
}
.theme-stage { border: 1px solid #dbe3ef; border-radius: 12px; overflow: hidden; background: #fff; }
.theme-stage-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; font-size: 13px; color: #64748b;
}
.theme-preview {
  --ink: #14201c; --muted: #5a6b66; --line: #d9e3df; --bg: #f4f7f6;
  --card: #fff; --accent: #0f766e; --accent-soft: #e6f3f1; --strip-bg: #fff8e6;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--ink); font: 14px/1.5 var(--font); min-height: 520px;
  transition: background .2s ease, color .2s ease;
}
.theme-preview.theme-ink-teal {
  --ink: #14201c; --muted: #5a6b66; --line: #d9e3df; --bg: #f4f7f6;
  --card: #fff; --accent: #0f766e; --accent-soft: #e6f3f1; --strip-bg: #fff8e6;
}
.theme-preview.theme-slate-navy {
  --ink: #1e293b; --muted: #64748b; --line: #e2e8f0; --bg: #f8fafc;
  --card: #fff; --accent: #1f4ea3; --accent-soft: #eef3fb; --strip-bg: #fff6d6;
}
.theme-preview.theme-klein {
  --ink: #111318; --muted: #5c6370; --line: #e3e5ea; --bg: #f2f3f5;
  --card: #fff; --accent: #002FA7; --accent-soft: #e8eefc; --strip-bg: #fff6d6;
}
.theme-preview.theme-night-teal,
.theme-preview.theme-dark {
  --ink: #f2f2f2; --muted: #999999; --line: #333336; --bg: #16161a;
  --card: #212124; --accent: #00c9b8; --accent-soft: #163735; --strip-bg: #2a2416;
  --header-bg: rgba(22, 22, 26, 0.92);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}
.tp-strip { background: var(--strip-bg); padding: 8px 16px; font-size: 13px; flex-shrink: 0; }
.tp-top {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: var(--card); border-bottom: 1px solid var(--line); padding: 12px 16px;
  flex-shrink: 0;
}
.tp-logo { font-weight: 700; color: var(--accent); }
.tp-nav a { margin-right: 12px; color: var(--ink); text-decoration: none; font-size: 13px; }
.tp-nav a.on { color: var(--accent); font-weight: 600; }
.tp-scenes {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: auto;
}
.tp-scene { display: none; flex: 1; }
.tp-scene.is-on { display: flex; flex-direction: column; }
.tp-body { padding: 16px; flex: 1; }
.tp-card {
  display: flex; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 8px; padding: 12px; margin-bottom: 10px;
}
.tp-card-flat { display: block; }
.tp-votes { min-width: 36px; text-align: center; color: var(--muted); font-size: 12px; }
.tp-title { font-weight: 600; color: var(--ink); margin: 0 0 4px; }
.tp-meta { font-size: 12px; color: var(--muted); margin: 0; }
.tp-h { margin: 0 0 6px; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.tp-btn {
  display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 6px;
  background: var(--accent); color: #fff; border: 0; font: inherit; cursor: default;
}
.tp-btn-ghost {
  display: inline-block; margin-top: 4px; padding: 6px 12px; border-radius: 6px;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); font: inherit; cursor: default;
}
.tp-chip {
  display: inline-block; margin-top: 8px; margin-right: 4px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}
.tp-shell {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}
.tp-side {
  background: var(--card);
  border-right: 1px solid var(--line);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tp-side-user {
  margin: 0 8px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.tp-side a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
}
.tp-side a.on,
.tp-side a:hover {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.tp-badge {
  display: inline-flex;
  min-width: 1.1em;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 1.5;
  justify-content: center;
}
.tp-main { padding: 16px; flex: 1; }
.tp-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.tp-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
}
.tp-stat strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
  line-height: 1.2;
}
.tp-stat span {
  font-size: 12px;
  color: var(--muted);
}
.tp-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.tp-sorts {
  display: flex;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.tp-sorts .on {
  color: var(--accent);
  font-weight: 700;
}
.tp-thread-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 8px 0 12px;
  font-size: 12px;
  color: var(--muted);
}
.tp-thread-stats .tp-chip { margin: 0; }
.tp-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}
.tp-article p { margin: 0 0 8px; }
.tp-article p:last-child { margin-bottom: 0; }
.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.tp-link { color: var(--accent); font-weight: 600; }

@media (min-width: 769px) {
  .site-header-bar { flex-wrap: nowrap; }
  .site-nav {
    order: 2;
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
    margin-left: 0.35rem;
  }
  .site-header-tools {
    order: 3;
    margin-left: 0;
  }
  .site-nav-toggle { display: none !important; }
}

@media (max-width: 960px) {
  .feed-layout {
    grid-template-columns: 1fr;
  }
  .boards-grid { grid-template-columns: 1fr; }
  /* H5：右栏改为右侧抽屉，不再挤在正文下方 */
  .po-drawer-fab-right { display: inline-flex; }
  body.feed-aside-open .po-drawer-backdrop { display: block; }
  .feed-aside {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 88vw);
    z-index: 1200;
    margin: 0;
    padding: 12px;
    order: unset;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18);
    transform: translateX(105%);
    transition: transform 0.28s ease;
    overscroll-behavior: contain;
  }
  .feed-aside .po-drawer-panel-head { display: flex; }
  body.feed-aside-open .feed-aside {
    transform: translateX(0);
  }
  body.theme-dark .feed-aside {
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.45);
  }
  .thread-article .feed-layout {
    display: block;
  }
  .thread-article .feed-main-col {
    display: block;
  }
  .thread-article .thread-aside .po-ad-slot { position: static; }
}

@media (max-width: 768px) {
  .shell { display: block; }
  .po-drawer-fab-left { display: inline-flex; }
  body.user-side-open .po-drawer-backdrop { display: block; }
  .side {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 1200;
    margin: 0;
    border-radius: 0;
    border: 0;
    border-right: 1px solid var(--line);
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.18);
    flex-direction: column;
    gap: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(-105%);
    transition: transform 0.28s ease;
    overscroll-behavior: contain;
  }
  .side .po-drawer-panel-head { display: flex; }
  body.user-side-open .side {
    transform: translateX(0);
  }
  body.theme-dark .side {
    box-shadow: 12px 0 32px rgba(0, 0, 0, 0.45);
  }
  .side-nav,
  .side-foot {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 2px;
  }
  .side-foot {
    margin-top: 2px;
    padding-top: 8px;
  }
  .side a {
    margin: 0;
    max-width: 100%;
  }
  .main { padding: 16px; border-radius: var(--radius); }
  .user-notice-list > li.user-notice-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .user-notice-link { align-self: flex-start; }
  .panel, .empty { border-radius: var(--radius); }
  .comments li { margin-left: calc(var(--cmt-depth) * 14px); }
  .feed-stat { min-width: 36px; }
  .site-header-bar {
    padding: 0.7rem 1rem;
    gap: 0.5rem;
  }
  .site-nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    order: 4;
    width: 100%;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.35rem 0 0.1rem;
    border-top: 1px solid var(--line);
    margin-top: 0.1rem;
  }
  .site-header.is-nav-open .site-nav { display: flex; }
  .site-nav a {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
  }
  .top-user-name {
    max-width: 22vw;
  }
  .top-user-btn {
    max-width: min(200px, 42vw);
  }
  .site-footer {
    padding: 0.55rem 0.85rem max(0.55rem, env(safe-area-inset-bottom, 0));
  }
  .site-footer-inner { flex-direction: column; gap: 0.2rem; }
  .site-footer-sep-main { display: none; }
  .site-footer-clock { margin-top: 0.3rem; }
}

/* —— 公开个人主页 —— */
.profile-hero {
  position: relative;
  margin: 0 0 1.35rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.profile-hero-bg {
  height: 88px;
  background:
    radial-gradient(120% 140% at 10% 0%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 55%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--bg)), var(--card) 70%);
  border-bottom: 1px solid var(--line);
}
.profile-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.25rem;
  align-items: flex-start;
  padding: 0 1.35rem 1.1rem;
  margin-top: -40px;
  position: relative;
}
.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  background: var(--bg);
  flex-shrink: 0;
}
/* 昵称落在头图色带底线之上（与头像上半重叠），避免挤在白区显得压抑 */
.profile-hero-main { flex: 1; min-width: 200px; padding-top: 4px; }
.profile-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  min-height: 2rem;
}
.profile-display {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  text-shadow: 0 1px 0 color-mix(in srgb, var(--card) 70%, transparent);
}
.profile-self-badge {
  font-size: 12px;
  font-weight: 650;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.profile-handle {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.profile-bio {
  margin: 0.7rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46rem;
  white-space: pre-wrap;
}
.profile-bio-empty { color: var(--muted); }
.profile-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.profile-joined {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.profile-joined i { font-size: 1rem; }
.profile-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  margin: 0;
  padding: 0;
}
.profile-block-btn {
  background: var(--card);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.profile-stats {
  list-style: none;
  margin: 0;
  padding: 0.85rem 1.35rem 1.1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--muted) 5%, var(--card));
}
.profile-stats li {
  text-align: center;
  padding: 0.45rem 0.35rem;
  border-radius: 12px;
}
.profile-stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.2;
}
.profile-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.profile-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
}
.profile-section-head h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.profile-section-meta {
  font-size: 0.82rem;
  color: var(--muted);
}
.profile-score {
  display: inline-block;
  min-width: 2rem;
  text-align: center;
  font-weight: 750;
  font-size: 0.95rem;
  color: var(--ink);
  padding-top: 0.2rem;
}
.profile-empty { margin-top: 0.25rem; }
.profile-feed .meta-time,
.profile-feed .meta-views {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
}
@media (max-width: 640px) {
  .profile-hero-bg { height: 72px; }
  .profile-avatar { width: 80px; height: 80px; }
  .profile-hero-inner { margin-top: -34px; padding: 0 1rem 1rem; }
  .profile-hero-main { padding-top: 2px; }
  .profile-actions { top: 10px; right: 10px; }
  .profile-display { font-size: 1.3rem; }
  .profile-stats { padding: 0.75rem 1rem 0.95rem; }
}

/* —— 图形验证码：左输入、右图，focus 后显示 —— */
.auth-graphic-captcha {
  margin: 0 0 14px;
}
.auth-graphic-captcha > .auth-cap-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.auth-captcha-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.auth-captcha-row .captcha-input-group {
  flex: 0 0 auto;
  width: fit-content;
  max-width: 100%;
  display: flex;
  align-items: stretch;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
}
.auth-captcha-row .captcha-input-group input[type="text"] {
  flex: 0 0 auto;
  width: 8ch;
  box-sizing: content-box;
  padding: 0 12px;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0;
  letter-spacing: 0.06em;
}
.captcha-refresh-btn {
  flex-shrink: 0;
  width: 40px;
  border: 0;
  border-left: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.captcha-refresh-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.auth-graphic-captcha .captcha-inline-preview {
  margin: 0;
  padding: 0 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  height: 40px;
  min-width: 110px;
}
/* 未 focus / 未加载：连 CSS 未到也靠 [hidden] 隐藏，避免空 src 图裂闪一下 */
.auth-graphic-captcha .captcha-inline-preview.is-hidden,
.auth-graphic-captcha .captcha-inline-preview[hidden] {
  display: none !important;
}
.captcha-inline-preview-img {
  max-width: 120px;
  height: 36px;
  width: auto;
  cursor: pointer;
  display: block;
}
.captcha-inline-preview-img:not([src]),
.captcha-inline-preview-img[src=""] {
  opacity: 0;
  visibility: hidden;
}

/* F-36 发帖质量助手（手动检测弹窗） */
.po-quality-modal-q {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: var(--muted, #64748b);
}
.po-quality-modal-q strong {
  color: var(--accent, #0f766e);
  font-size: 1.15rem;
  font-weight: 700;
}
.po-quality-modal-tips {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink, #0f172a);
}
.po-quality-modal-tips li + li { margin-top: 0.35rem; }

/* —— 站内跳转：顶端细进度条（替代内容区骨架） —— */
.po-nav-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2000;
  pointer-events: none;
  background: transparent;
  opacity: 0;
}
.po-nav-progress[hidden] { display: none !important; }
html.po-nav-pending .po-nav-progress,
.po-nav-progress.is-on {
  display: block !important;
  opacity: 1;
}
.po-nav-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 75%, #fff),
    var(--accent),
    color-mix(in srgb, var(--accent) 70%, #000)
  );
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 45%, transparent);
  transition: width 0.18s ease-out;
  border-radius: 0 2px 2px 0;
}
/* JS 未接管前：顶端条先缓慢推进，避免空白 */
html.po-nav-pending:not(.po-nav-js) .po-nav-progress-bar {
  width: 28%;
  animation: po-nav-trickle 1.1s ease-out forwards;
}
@keyframes po-nav-trickle {
  to { width: 72%; }
}
.po-nav-progress.is-done .po-nav-progress-bar {
  transition: width 0.12s ease-out, opacity 0.16s ease;
  opacity: 0;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .po-nav-progress-bar { transition: none; animation: none !important; }
}
