/* Discourse Theme v1.9.3 */
/* 导航栏自带搜索框显隐；首页横幅搜索框不受影响。 */
html[data-jxy-theme-header-search="hide"] #navSearchForm,
html[data-jxy-theme-header-search="hide"] #header .nav-icon-btn.d-xl-none:has(> .ti-search) {
  display: none !important;
}

/* Discourse 风格顶部页面加载进度条：始终从视口最左侧开始 */
html::before {
  content: "";
  position: fixed;
  z-index: 2147483646;
  top: 0;
  left: 0;
  width: var(--jxy-page-progress, 0%);
  height: 3px;
  pointer-events: none;
  opacity: 0;
  background: var(--jxy-accent, #0f82af);
  background: linear-gradient(90deg, var(--jxy-accent, #0f82af), color-mix(in srgb, var(--jxy-accent, #0f82af) 70%, #7a5cff));
  box-shadow: 0 0 8px color-mix(in srgb, var(--jxy-accent, #0f82af) 48%, transparent);
  transition: width .2s cubic-bezier(.2,.8,.2,1), opacity .12s ease;
  will-change: width;
}
html.jxy-theme-page-loading::before { opacity: 1; }
html.jxy-theme-page-finishing::before { transition-duration: .14s; }

/* bbs.lc 风格的五段式加载图标，始终位于视口水平、垂直中心。 */
.jxy-theme-page-loader {
  position: fixed;
  z-index: 2147483645;
  inset: 0;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  background: var(--jxy-page, #f6f7f8);
  transition: opacity .14s ease, visibility 0s linear .14s;
}
html.jxy-theme-page-loading .jxy-theme-page-loader {
  visibility: visible;
  opacity: 1;
  transition: opacity .14s ease, visibility 0s;
}
html.jxy-theme-page-loading body > *:not(.jxy-theme-page-loader) { visibility: hidden !important; }
html.jxy-theme-page-loading body > .jxy-theme-page-loader { visibility: visible !important; }
.jxy-theme-page-loader > span {
  width: 3px;
  height: 24px;
  border-radius: 3px;
  background: var(--jxy-accent, #2f6fff);
  transform-origin: center;
  animation: jxy-theme-loader-bars .84s ease-in-out infinite;
}
.jxy-theme-page-loader > span:nth-child(1),
.jxy-theme-page-loader > span:nth-child(5) { height: 14px; }
.jxy-theme-page-loader > span:nth-child(2),
.jxy-theme-page-loader > span:nth-child(4) { height: 21px; }
.jxy-theme-page-loader > span:nth-child(2) { animation-delay: -.66s; }
.jxy-theme-page-loader > span:nth-child(3) { animation-delay: -.48s; }
.jxy-theme-page-loader > span:nth-child(4) { animation-delay: -.30s; }
.jxy-theme-page-loader > span:nth-child(5) { animation-delay: -.12s; }
@keyframes jxy-theme-loader-bars {
  0%, 100% { transform: scaleY(.48); opacity: .58; }
  50% { transform: scaleY(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html::before, .jxy-theme-page-loader { transition-duration: .01ms !important; }
  .jxy-theme-page-loader > span { animation: none !important; opacity: 1; transform: none; }
}

:root,
[data-bs-theme="light"] {
  --jxy-accent: #0f82af;
  --jxy-accent-hover: #0b6f97;
  --jxy-accent-soft: #e8f4f8;
  --jxy-canvas: #ffffff;
  --jxy-page: #f6f7f8;
  --jxy-surface: #ffffff;
  --jxy-surface-muted: #f4f5f6;
  --jxy-text: #222222;
  --jxy-text-muted: #66717b;
  --jxy-border: #d9dde1;
  --jxy-border-strong: #b9c0c7;
  --jxy-header: rgba(255, 255, 255, 0.96);
  --jxy-shadow: 0 1px 2px rgba(20, 35, 45, 0.05), 0 8px 24px rgba(20, 35, 45, 0.05);
  --jxy-radius: 10px;
  --bs-primary: var(--jxy-accent);
  --bs-primary-rgb: 15, 130, 175;
  --bs-link-color: var(--jxy-accent);
  --bs-link-hover-color: var(--jxy-accent-hover);
  --bs-body-bg: var(--jxy-surface);
  --bs-body-color: var(--jxy-text);
  --bs-border-color: var(--jxy-border);
  --bs-secondary-color: var(--jxy-text-muted);
  --bs-tertiary-bg: var(--jxy-surface-muted);
  --x-page-bg: var(--jxy-page);
  --bs-border-radius: 6px;
  --bs-border-radius-lg: var(--jxy-radius);
}

[data-bs-theme="dark"] {
  --jxy-accent: #54b6d8;
  --jxy-accent-hover: #78c7e2;
  --jxy-accent-soft: rgba(84, 182, 216, 0.12);
  --jxy-canvas: #17191b;
  --jxy-page: #111315;
  --jxy-surface: #1b1e21;
  --jxy-surface-muted: #24282c;
  --jxy-text: #f3f4f5;
  --jxy-text-muted: #a7afb7;
  --jxy-border: #343a40;
  --jxy-border-strong: #515961;
  --jxy-header: rgba(27, 30, 33, 0.96);
  --jxy-shadow: none;
  --bs-primary: var(--jxy-accent);
  --bs-primary-rgb: 84, 182, 216;
  --bs-link-color: var(--jxy-accent);
  --bs-link-hover-color: var(--jxy-accent-hover);
  --bs-body-bg: var(--jxy-surface);
  --bs-body-color: var(--jxy-text);
  --bs-border-color: var(--jxy-border);
  --bs-secondary-color: var(--jxy-text-muted);
  --bs-tertiary-bg: var(--jxy-surface-muted);
  --x-page-bg: var(--jxy-page);
}

html { scroll-behavior: smooth; }
body {
  background: var(--jxy-page);
  color: var(--jxy-text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: 0;
}
a { text-underline-offset: 3px; }
a:hover { color: var(--jxy-accent-hover); }
::selection { background: rgba(var(--bs-primary-rgb), .18); }

#header.navbar {
  min-height: 64px;
  background: var(--jxy-header) !important;
  border-bottom: 1px solid var(--jxy-border);
  box-shadow: none !important;
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}
#header > .container { min-height: 64px; }
#header .col.col-xl-2 > a:not(.jxy-theme-logo) { display: none !important; }
.jxy-theme-logo { min-width: 0; color: var(--jxy-text); font-weight: 700; }
.jxy-theme-logo:hover { color: var(--jxy-text); }
.jxy-theme-logo__mobile-toggle { display: none !important; }
.jxy-theme-logo__image { width: 40px; height: 40px; object-fit: contain; flex: 0 0 40px; }
.jxy-theme-logo__name { margin-left: 10px; max-width: 150px; font-size: 1.04rem; letter-spacing: -.02em; }
#header .navbar-nav .nav-link {
  color: var(--jxy-text-muted);
  font-weight: 600;
  padding: .55rem .72rem;
  border-radius: 6px;
}
#header .navbar-nav .nav-link:hover,
#header .navbar-nav .nav-link.active {
  color: var(--jxy-text);
  background: var(--jxy-surface-muted);
}
#header .form-control,
#header .input-group-text {
  background: var(--jxy-surface-muted);
  border-color: transparent;
}
#header .form-control:focus {
  background: var(--jxy-surface);
  border-color: var(--jxy-accent);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .13);
}

#body { padding-top: 28px; padding-bottom: 48px; }
#body > .container, #header > .container, .bbs-footer > .container {
  width: 100%;
  max-width: none;
  padding-left: clamp(18px, 2.2vw, 40px);
  padding-right: clamp(18px, 2.2vw, 40px);
}
.x-card.card {
  background: var(--jxy-surface);
  border: 1px solid var(--jxy-border);
  border-radius: var(--jxy-radius);
  box-shadow: none;
  overflow: hidden;
}
.x-card.card:hover { border-color: var(--jxy-border-strong); }
.card-header { border-color: var(--jxy-border); }
.card-body { padding: 20px; }

.thread-nav-tabs { gap: 8px; border-bottom: 0 !important; }
.thread-nav-tabs .nav-link {
  position: relative;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  color: var(--jxy-text-muted);
  font-weight: 600;
  line-height: 1;
  padding: .62rem 1rem;
  border: 1px solid var(--jxy-border) !important;
  border-radius: 999px !important;
  background: var(--jxy-surface);
  box-shadow: 0 2px 7px rgba(15,23,42,.03);
}
.thread-nav-tabs .nav-link:hover { color: var(--jxy-accent); border-color: var(--jxy-accent) !important; background: color-mix(in srgb,var(--jxy-accent) 6%,var(--jxy-surface)); }
.thread-nav-tabs .nav-link.active { color: var(--jxy-accent); border-color: var(--jxy-accent) !important; background: color-mix(in srgb,var(--jxy-accent) 9%,var(--jxy-surface)); box-shadow: 0 5px 14px color-mix(in srgb,var(--jxy-accent) 13%,transparent); }
.thread-nav-tabs .nav-link.active::after {
  content: none !important;
  display: none !important;
}
.index-threadlist > .py-1 { border-bottom: 1px solid var(--jxy-border); padding-left: 4px; }
.threadlist.x-card { border-top-left-radius: 0; border-top-right-radius: 0; }
.thread-list-item {
  min-height: 78px;
  padding: 14px 18px !important;
  border-bottom: 1px solid var(--jxy-border);
  transition: background-color .16s ease;
}
.thread-list-item:last-child { border-bottom: 0; }
.thread-list-item:hover { background: var(--jxy-surface-muted); }
.thread-list-item .subject { font-size: 1rem; font-weight: 650; line-height: 1.4; }
.thread-list-item .subject > a { color: var(--jxy-text); text-decoration: none; }
.thread-list-item .subject > a:hover { color: var(--jxy-accent); }
.thread-list-meta { color: var(--jxy-text-muted); }
.thread-list-meta a.bg-body-tertiary {
  background: transparent !important;
  color: var(--jxy-accent) !important;
  padding: 0 !important;
  font-weight: 600;
}
.thread-list-interact { min-width: 52px; text-align: right; color: var(--jxy-text-muted); }
.avatar, [class*="avatar-"] { box-shadow: none; }

.announcement-badge {
  color: var(--jxy-accent);
  background: var(--jxy-accent-soft);
  border-radius: 6px;
  font-weight: 700;
  padding: .35rem .6rem;
  white-space: nowrap;
}
.announcement-link { color: var(--jxy-text); text-decoration: none; }

.btn {
  min-height: 38px;
  border-radius: 6px;
  font-weight: 650;
  box-shadow: none !important;
}
.btn-sm { min-height: 32px; }
.btn-primary {
  color: #fff;
  background: var(--jxy-accent);
  border-color: var(--jxy-accent);
}
.btn-primary:hover, .btn-primary:focus {
  color: #fff;
  background: var(--jxy-accent-hover);
  border-color: var(--jxy-accent-hover);
}
.btn-outline-secondary { color: var(--jxy-text-muted); border-color: var(--jxy-border-strong); }
.btn-outline-secondary:hover { color: var(--jxy-text); background: var(--jxy-surface-muted); border-color: var(--jxy-border-strong); }
.form-control, .form-select {
  min-height: 42px;
  background-color: var(--jxy-surface);
  border-color: var(--jxy-border-strong);
  border-radius: 6px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--jxy-accent);
  box-shadow: 0 0 0 3px rgba(var(--bs-primary-rgb), .13);
}
.badge { border-radius: 4px; font-weight: 650; }
.dropdown-menu { border: 1px solid var(--jxy-border) !important; border-radius: 8px; box-shadow: var(--jxy-shadow) !important; }
.dropdown-item { border-radius: 5px; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--jxy-surface-muted); }
.pagination { gap: 4px; }
.page-link { border-radius: 6px !important; border-color: var(--jxy-border); color: var(--jxy-text-muted); }
.page-link:hover { background: var(--jxy-surface-muted); color: var(--jxy-text); }
.active > .page-link { color: #fff; background: var(--jxy-accent); border-color: var(--jxy-accent); }

/* 首页无限滚动：保留当前阅读位置，在列表末尾追加下一页。 */
.jxy-theme-infinite-scroll__pagination{display:none!important}
.jxy-theme-infinite-scroll{position:relative;display:flex;width:160px;min-height:44px;margin:16px auto 24px;padding:0 18px;align-items:center;justify-content:center;border:1px solid var(--jxy-border);border-radius:24px;background:var(--jxy-surface);color:var(--jxy-accent);box-shadow:0 1px 2px rgba(0,0,0,.04);cursor:pointer}
.jxy-theme-infinite-scroll:hover,.jxy-theme-infinite-scroll:focus-visible{border-color:color-mix(in srgb,var(--jxy-accent) 48%,var(--jxy-border));background:var(--jxy-surface-muted);outline:0}
.jxy-theme-infinite-scroll:focus-visible{box-shadow:0 0 0 3px var(--jxy-accent-soft)}
.jxy-theme-infinite-scroll__indicator{display:flex;height:24px;align-items:center;justify-content:center;gap:3px}
.jxy-theme-infinite-scroll__indicator i{display:block;width:3px;height:8px;border-radius:2px;background:currentColor;transform-origin:center}
.jxy-theme-infinite-scroll__indicator i:nth-child(2),.jxy-theme-infinite-scroll__indicator i:nth-child(4){height:15px}
.jxy-theme-infinite-scroll__indicator i:nth-child(3){height:22px}
.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i{animation:jxy-theme-infinite-wave .8s ease-in-out infinite}
.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i:nth-child(2){animation-delay:.08s}
.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i:nth-child(3){animation-delay:.16s}
.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i:nth-child(4){animation-delay:.24s}
.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i:nth-child(5){animation-delay:.32s}
.jxy-theme-infinite-scroll__text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.jxy-theme-infinite-scroll[data-state="done"],.jxy-theme-infinite-scroll[data-state="error"]{width:auto;min-width:160px;color:var(--jxy-text-muted);cursor:default}
.jxy-theme-infinite-scroll[data-state="error"]{color:var(--jxy-accent);cursor:pointer}
.jxy-theme-infinite-scroll[data-state="done"] .jxy-theme-infinite-scroll__indicator,.jxy-theme-infinite-scroll[data-state="error"] .jxy-theme-infinite-scroll__indicator{display:none}
.jxy-theme-infinite-scroll[data-state="done"] .jxy-theme-infinite-scroll__text,.jxy-theme-infinite-scroll[data-state="error"] .jxy-theme-infinite-scroll__text{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto;font-size:.82rem;white-space:nowrap}
@keyframes jxy-theme-infinite-wave{0%,100%{transform:scaleY(.48);opacity:.52}50%{transform:scaleY(1);opacity:1}}
@media(prefers-reduced-motion:reduce){.jxy-theme-infinite-scroll[data-state="loading"] .jxy-theme-infinite-scroll__indicator i{animation:none}}

.card-thread .card-body { padding: 26px 30px; }
.card-thread h1 { font-size: clamp(1.45rem, 2.4vw, 2rem) !important; line-height: 1.25; letter-spacing: -.025em; }
.card-thread .message, .postlist .message { font-size: 1rem; line-height: 1.72; }
.card-thread .message img, .postlist .message img { border-radius: 8px; }
.card-thread blockquote, .postlist blockquote {
  margin: 1rem 0;
  padding: .85rem 1rem;
  color: var(--jxy-text-muted);
  background: var(--jxy-surface-muted);
  border-left: 4px solid var(--jxy-border-strong);
  border-radius: 0 6px 6px 0;
}
.thread-sidebar-btn { border-radius: 8px; }
.postlist > li { padding: 22px 4px; border-bottom: 1px solid var(--jxy-border); }
.postlist > li:last-child { border-bottom: 0; }
.replies-container { padding: 14px 16px; background: var(--jxy-surface-muted); border-radius: 8px; }

#sidebar-left .nav-link, #sidebar-right .nav-link { border-radius: 6px; color: var(--jxy-text-muted); }
#sidebar-left .nav-link:hover, #sidebar-right .nav-link:hover { background: var(--jxy-surface-muted); color: var(--jxy-text); }
.card-forum-info h6 { font-size: 1.05rem; }

.jxy-theme-footer-animal { width:100%; max-width:100%; margin:0; padding:0; overflow:hidden; line-height:0; background:var(--jxy-page); }
.jxy-theme-footer-animal__image { display:none; width:100%; height:auto; max-width:none; margin:0; object-fit:contain; }
.jxy-theme-footer-animal__image--classic { display:block; }
[data-jxy-theme-style="modern"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="pixel"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="glass"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="lol"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="cyber"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="blockcraft"] .jxy-theme-footer-animal__image,
[data-jxy-theme-style="darkrealm"] .jxy-theme-footer-animal__image { display:none; }
[data-jxy-theme-style="modern"] .jxy-theme-footer-animal__image--modern,
[data-jxy-theme-style="pixel"] .jxy-theme-footer-animal__image--pixel,
[data-jxy-theme-style="glass"] .jxy-theme-footer-animal__image--glass,
[data-jxy-theme-style="lol"] .jxy-theme-footer-animal__image--lol,
[data-jxy-theme-style="cyber"] .jxy-theme-footer-animal__image--cyber,
[data-jxy-theme-style="blockcraft"] .jxy-theme-footer-animal__image--blockcraft,
[data-jxy-theme-style="darkrealm"] .jxy-theme-footer-animal__image--darkrealm { display:block; }

.bbs-footer {
  background: transparent;
  border-top: 1px solid var(--jxy-border);
  color: var(--jxy-text-muted);
}
.bbs-footer a { color: var(--jxy-text-muted); }
.bbs-footer a:hover { color: var(--jxy-text); }

:focus-visible { outline: 3px solid rgba(var(--bs-primary-rgb), .32); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 1199.98px) {
  #body { padding-top: 18px; }
  #body > .container, #header > .container, .bbs-footer > .container { max-width: none; }
  .jxy-theme-logo__name { max-width: 180px; }
}
@media (max-width: 767.98px) {
  body { font-size: 14px; }
  #header.navbar, #header > .container { min-height: 58px; }
  #header > .container, #body > .container { padding-left: 14px; padding-right: 14px; }
  .jxy-theme-logo--desktop { display: none !important; }
  .jxy-theme-logo__image { width: auto; max-width: 36px; height: auto; max-height: 36px; flex-basis: auto; object-fit: contain; }
  .jxy-theme-logo__name { display: none; }
  .jxy-theme-logo__mobile-toggle {
    display: inline-grid !important;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: var(--jxy-text-muted);
    background: transparent;
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    line-height: 1;
    cursor: pointer;
  }
  .jxy-theme-logo__mobile-toggle:hover,
  .jxy-theme-logo__mobile-toggle:focus-visible { color: var(--jxy-accent); background: var(--jxy-surface-muted); }
  .jxy-theme-logo__mobile-toggle.is-active { color: var(--jxy-accent); background: transparent; }
  .jxy-theme-logo__mobile-toggle--home,
  .jxy-theme-logo__mobile-toggle--home.is-active { color: var(--jxy-text); background: transparent; font-size: 1.5rem; }
  #body { padding-top: 14px; padding-bottom: 32px; }
  .x-card.card { border-radius: 8px; }
  .card-body { padding: 16px; }
  .card-forum-info ~ .index-threadlist,
  body:has(.card-forum-info) .index-threadlist { margin-top: 14px; }
  .index-threadlist > .py-1 { padding-right: 11px !important; overflow-x: visible; }
  .index-threadlist > .py-1 > .d-flex { gap: 6px; flex-wrap: nowrap !important; }
  .thread-nav-tabs { flex: 1 1 auto; min-width: 0; flex-wrap: nowrap; white-space: nowrap; overflow-x: auto; }
  .thread-nav-tabs .nav-link { min-height: 36px; padding: .52rem .72rem; border-radius: 999px !important; font-size: .82rem; }
  .index-threadlist .btn-group { flex: 0 0 auto; margin-left: 0; }
  .index-threadlist .btn-group .btn { min-height: 32px; padding: .3rem .42rem; font-size: .72rem; white-space: nowrap; }
  .thread-list-item { min-height: 72px; padding: 12px 14px !important; align-items: flex-start !important; }
  .thread-list-item .subject { font-size: .98rem; }
  .thread-list-meta { flex-wrap: wrap; gap: 3px 0; }
  .thread-list-interact { margin-left: auto; }
  .card-thread .card-body { padding: 20px 18px; }
  .card-thread h1 { font-size: 1.45rem !important; }
  .postlist > li { padding: 18px 0; }
}


/* 首页图片卡片样式 */
.thread-list-item:has(.jxy-theme-thread-cover) {
  position: relative;
  min-height: 158px;
  padding-top: 18px !important;
  padding-right: 282px !important;
  padding-bottom: 18px !important;
  align-items: flex-start !important;
}
.thread-list-item:has(.jxy-theme-thread-cover) .subject {
  font-size: clamp(1.05rem, 1.35vw, 1.3rem);
  line-height: 1.35;
  font-weight: 750;
}
.jxy-theme-thread-excerpt {
  display: block;
  max-width: 78ch;
  margin-top: 12px;
  color: var(--jxy-text-muted);
  font-size: .92rem;
  font-weight: 400;
  line-height: 1.55;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jxy-theme-thread-cover {
  position: absolute;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 246px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--jxy-surface-muted);
  color: var(--jxy-accent);
  text-decoration: none;
}
.jxy-theme-thread-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .22s ease;
}
.thread-list-item:hover .jxy-theme-thread-cover img { transform: scale(1.025); }
.jxy-theme-thread-cover--empty {
  width: 54px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--jxy-accent) 13%, var(--jxy-surface-muted));
  font-size: 1.8rem;
}
.thread-list-item:has(.jxy-theme-thread-cover--empty) {
  min-height: 128px;
  padding-right: 88px !important;
}
[data-bs-theme="dark"] .jxy-theme-thread-cover { border: 1px solid var(--jxy-border); }

/* 首页博客图文列表：参考 grbj.cn 的左图右文信息层级。 */
.thread-list-item:has(.jxy-theme-thread-cover--blog) {
  min-height: 154px;
  padding: 16px 18px 16px 222px !important;
  border-radius: 0;
  align-items: flex-start !important;
}
.thread-list-item:has(.jxy-theme-thread-cover--blog) .subject {
  font-size: 1.03rem;
  line-height: 1.42;
  font-weight: 650;
}
.thread-list-item:has(.jxy-theme-thread-cover--blog) .thread-list-meta { display: none; }
.jxy-theme-thread-cover--blog,
.jxy-theme-thread-cover--blog.jxy-theme-thread-cover--empty {
  top: 14px;
  right: auto;
  bottom: 14px;
  left: 14px;
  width: 190px;
  border-radius: 6px;
}
.jxy-theme-thread-cover--blog.jxy-theme-thread-cover--empty {
  display: grid;
  place-items: center;
  font-size: 1.65rem;
}
.jxy-theme-thread-excerpt--blog {
  max-width: none;
  margin-top: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.62;
}
.jxy-theme-thread-blog-meta {
  margin-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: color-mix(in srgb, var(--jxy-text-muted) 74%, transparent);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.3;
}
.jxy-theme-thread-blog-metrics { display: inline-flex; align-items: center; gap: 12px; }
.jxy-theme-thread-blog-metrics > span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
@media (min-width: 768px) {
  .thread-list-item:has(.jxy-theme-thread-cover--blog) > .me-2.flex-shrink-0 { display: none; }
}

/* 首页网格图文卡片：参考 xmosai.com 的三列封面卡片。 */
.threadlist:has(.jxy-theme-thread-cover--grid) {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  overflow: visible;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  clip-path: none !important;
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) {
  display: block !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
  margin: 0 !important;
  padding: calc(62.5% + 16px) 14px 42px !important;
  overflow: hidden;
  border: 1px solid var(--jxy-border) !important;
  border-radius: 6px !important;
  background: var(--jxy-surface);
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) > .me-2.flex-shrink-0 { display: none; }
.thread-list-item:has(.jxy-theme-thread-cover--grid) > input.form-check-input {
  position: absolute;
  z-index: 3;
  top: 10px;
  left: 10px;
  margin: 0 !important;
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) .thread-list-meta {
  display: none !important;
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) .thread-list-interact {
  display: none !important;
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) .subject {
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 650;
}
.thread-list-item:has(.jxy-theme-thread-cover--grid) .subject > a.hover-text-primary {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.jxy-theme-thread-cover--grid,
.jxy-theme-thread-cover--grid.jxy-theme-thread-cover--empty {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 0;
}
.jxy-theme-thread-cover--blog.jxy-theme-thread-cover--empty,
.jxy-theme-thread-cover--grid.jxy-theme-thread-cover--empty {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.16), transparent 34%),
    linear-gradient(135deg, #087ffc 0%, #006be9 100%);
  font-size: 1rem;
}
.jxy-theme-grid-cover-fallback {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  padding: 13px 15px;
  place-items: center;
  color: #fff;
  text-align: center;
}
.jxy-theme-grid-cover-fallback__logo {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 7px 18px rgba(0,42,120,.22);
  transform: translate(-50%, -50%);
}
.jxy-theme-grid-cover-fallback__logo img {
  width: 78%;
  height: 78%;
  object-fit: contain;
}
.jxy-theme-grid-cover-fallback__text {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.02em;
  text-shadow: 0 2px 5px rgba(0,36,105,.38);
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.jxy-theme-grid-cover-fallback--large .jxy-theme-grid-cover-fallback__text { font-size: clamp(1.45rem, 2.1vw, 2rem); }
.jxy-theme-grid-cover-fallback--medium .jxy-theme-grid-cover-fallback__text { font-size: clamp(1.2rem, 1.7vw, 1.6rem); }
.jxy-theme-grid-cover-fallback--small .jxy-theme-grid-cover-fallback__text { font-size: clamp(1.02rem, 1.4vw, 1.3rem); }
.jxy-theme-grid-cover-fallback--compact .jxy-theme-grid-cover-fallback__text { font-size: clamp(.88rem, 1.15vw, 1.08rem); line-height: 1.22; }
@media (max-width: 991.98px) {
  .jxy-theme-grid-cover-fallback { padding: 14px 18px; }
  .jxy-theme-grid-cover-fallback__logo { width: 52px; height: 52px; }
}

/* Rank page: pill tabs, top-three podium and compact ranking rows. */
#rank-content.jxy-theme-rank{overflow:visible!important;border:0!important;background:transparent!important;box-shadow:none!important}
#rank-content.jxy-theme-rank>.py-1{margin:0 0 22px;padding:0!important}
#rank-content.jxy-theme-rank>.py-1>.d-flex{justify-content:flex-start!important}
#rank-content.jxy-theme-rank .thread-nav-tabs{display:flex;gap:10px;margin:0;padding:0;border:0}
#rank-content.jxy-theme-rank .thread-nav-tabs .nav-link{display:inline-flex;min-height:42px;padding:9px 18px;align-items:center;gap:6px;border:1px solid var(--jxy-border)!important;border-radius:999px!important;background:var(--jxy-surface)!important;color:var(--jxy-text-muted)!important;font-size:.9rem;font-weight:600;line-height:1;text-decoration:none;box-shadow:0 2px 7px rgba(15,23,42,.03)}
#rank-content.jxy-theme-rank .thread-nav-tabs .nav-link:hover{border-color:var(--jxy-accent)!important;color:var(--jxy-accent)!important}
#rank-content.jxy-theme-rank .thread-nav-tabs .nav-link.active{border-color:var(--jxy-accent)!important;background:color-mix(in srgb,var(--jxy-accent) 9%,var(--jxy-surface))!important;color:var(--jxy-accent)!important;box-shadow:0 5px 14px color-mix(in srgb,var(--jxy-accent) 14%,transparent)}
#rank-content.jxy-theme-rank .jxy-theme-rank-tab-icon{font-size:1rem}
#rank-content.jxy-theme-rank>.card-body{overflow:visible;background:transparent!important}
#rank-content.jxy-theme-rank ul.list-none{display:grid;margin:0!important;padding:12px 16px 0!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 12px;align-items:end;background:linear-gradient(to bottom,color-mix(in srgb,var(--jxy-accent) 10%,var(--jxy-page)) 0 194px,transparent 194px);border-radius:12px;list-style:none}
#rank-content.jxy-theme-rank .thread-list-item{min-width:0;margin:0;border:1px solid color-mix(in srgb,var(--jxy-border) 78%,transparent);border-radius:12px;background:var(--jxy-surface);box-shadow:0 5px 18px rgba(15,23,42,.045)}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3){position:relative;display:flex!important;min-height:142px;padding:22px 10px 14px!important;flex-direction:column;justify-content:center;text-align:center}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(1){grid-column:2;grid-row:1;min-height:164px;box-shadow:0 10px 24px color-mix(in srgb,var(--jxy-accent) 12%,transparent)}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(2){grid-column:1;grid-row:1}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(3){grid-column:3;grid-row:1}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:first-child{position:absolute;z-index:2;top:-12px;left:50%;display:grid;width:30px!important;height:30px;margin:0!important;place-items:center;border-radius:50%;background:var(--jxy-surface);box-shadow:0 4px 12px rgba(15,23,42,.12);transform:translateX(-50%)}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(1)>.me-2:first-child{background:#ff9f0a;color:#fff}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:first-child .ti{font-size:1.05rem!important}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:nth-child(2):not(.flex-fill){margin:0 0 8px!important}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:nth-child(2):not(.flex-fill) .avatar,
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:nth-child(2):not(.flex-fill) img{width:62px!important;height:62px!important;border-radius:50%!important;object-fit:cover}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.flex-fill{display:block!important;width:100%;flex:0 1 auto!important}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3) .subject{display:block;overflow:hidden;font-weight:700;text-align:center;text-overflow:ellipsis;white-space:nowrap}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3) .thread-list-meta{justify-content:center!important;margin-top:7px!important;overflow:hidden;color:var(--jxy-text-muted);font-size:.75rem;white-space:nowrap}
#rank-content.jxy-theme-rank[data-jxy-rank-tab="users"] .thread-list-item:nth-child(-n+3) .thread-list-meta>*:not(:first-child),
#rank-content.jxy-theme-rank[data-jxy-rank-tab="credits"] .thread-list-item:nth-child(-n+3) .thread-list-meta>*:not(:first-child){display:none!important}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4){display:flex!important;min-height:78px;padding:11px 16px!important;grid-column:1/-1;align-items:center}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.me-2:first-child{display:grid;width:34px!important;height:34px;margin-right:12px!important;flex:0 0 34px!important;place-items:center;border-radius:50%;background:var(--jxy-surface-muted);color:var(--jxy-text-muted);font-weight:700}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.me-2:first-child .badge{padding:0;border:0;background:transparent!important;color:inherit!important;font-size:.82rem}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.me-2:nth-child(2):not(.flex-fill){margin-right:12px!important}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.me-2:nth-child(2):not(.flex-fill) .avatar,
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.me-2:nth-child(2):not(.flex-fill) img{width:44px!important;height:44px!important;border-radius:9px!important;object-fit:cover}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.flex-fill{display:grid!important;min-width:0;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:16px}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4) .subject{min-width:0;overflow:hidden;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
#rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4) .thread-list-meta{min-width:0;margin:0!important;justify-content:flex-end!important;color:var(--jxy-text-muted);white-space:nowrap}
#rank-content.jxy-theme-rank[data-jxy-rank-tab="users"] .thread-list-item:nth-child(n+4) .thread-list-meta>*:not(:first-child),
#rank-content.jxy-theme-rank[data-jxy-rank-tab="credits"] .thread-list-item:nth-child(n+4) .thread-list-meta>*:not(:first-child){display:none!important}
#rank-content.jxy-theme-rank[data-jxy-rank-tab="users"] .thread-list-item:nth-child(n+4) .thread-list-meta>:first-child,
#rank-content.jxy-theme-rank[data-jxy-rank-tab="credits"] .thread-list-item:nth-child(n+4) .thread-list-meta>:first-child{color:var(--jxy-accent)!important;font-weight:700}
#rank-content.jxy-theme-rank .jxy-theme-rank-uid{display:inline-flex;margin-left:5px;padding:2px 5px;vertical-align:1px;border-radius:5px;background:color-mix(in srgb,var(--jxy-accent) 13%,var(--jxy-surface));color:var(--jxy-accent);font-size:.65rem;font-weight:700;line-height:1.2}
@media(max-width:575.98px){
  #rank-content.jxy-theme-rank>.py-1{margin-bottom:16px}
  #rank-content.jxy-theme-rank .thread-nav-tabs{width:100%;gap:7px}
  #rank-content.jxy-theme-rank .thread-nav-tabs .nav-item{flex:1 1 0}
  #rank-content.jxy-theme-rank .thread-nav-tabs .nav-link{min-height:40px;padding:8px 10px;justify-content:center;font-size:.82rem;white-space:nowrap}
  #rank-content.jxy-theme-rank ul.list-none{padding:12px 8px 0!important;gap:9px 7px;background:linear-gradient(to bottom,color-mix(in srgb,var(--jxy-accent) 10%,var(--jxy-page)) 0 180px,transparent 180px)}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3){min-height:132px;padding:20px 6px 10px!important}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(1){min-height:150px}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:nth-child(2):not(.flex-fill) .avatar,
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3)>.me-2:nth-child(2):not(.flex-fill) img{width:52px!important;height:52px!important}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(-n+3) .subject{font-size:.78rem}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4){min-height:72px;padding:9px 10px!important}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4)>.flex-fill{column-gap:8px}
  #rank-content.jxy-theme-rank .thread-list-item:nth-child(n+4) .thread-list-meta{font-size:.72rem}
}
.jxy-theme-thread-excerpt--grid {
  display: none !important;
}
.jxy-theme-thread-grid-byline {
  display: flex;
  min-width: 0;
  margin-top: 8px;
  align-items: center;
  gap: 8px;
  color: var(--jxy-text-muted);
  font-size: .78rem;
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}
.jxy-theme-thread-grid-byline > a {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--jxy-accent);
  font-weight: 600;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jxy-theme-thread-grid-byline > span {
  flex: 0 0 auto;
  margin-left: auto;
  color: var(--jxy-text-muted);
  white-space: nowrap;
}
.jxy-theme-thread-grid-meta {
  position: absolute;
  right: 14px;
  bottom: 12px;
  left: 14px;
  margin-top: 0;
  padding-top: 9px;
  border-top: 1px solid var(--jxy-border);
}

@media (max-width: 767.98px) {
  .thread-list-item:has(.jxy-theme-thread-cover),
  .thread-list-item:has(.jxy-theme-thread-cover--empty) {
    min-height: 72px;
    padding: 12px 14px !important;
  }
  .thread-list-item:has(.jxy-theme-thread-cover) .subject { font-size: .98rem; }
  .jxy-theme-thread-cover { display: none; }
  .jxy-theme-thread-cover--blog,
  .jxy-theme-thread-cover--blog.jxy-theme-thread-cover--empty { display: none; }
  .jxy-theme-thread-excerpt {
    margin-top: 7px;
    font-size: .86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
  }
  .jxy-theme-thread-blog-meta { margin-top: 8px; font-size: .74rem; }
  .jxy-theme-thread-blog-metrics { gap: 8px; }
}
@media (max-width: 991.98px) {
  .threadlist:has(.jxy-theme-thread-cover--grid) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 767.98px) {
  .thread-list-item:has(.jxy-theme-thread-cover--grid) {
    min-height: 0;
    padding: calc(62.5% + 14px) 12px 40px !important;
  }
  .jxy-theme-thread-cover--grid { display: block; }
  .jxy-theme-thread-cover--grid.jxy-theme-thread-cover--empty { display: grid; }
  .jxy-theme-thread-excerpt--grid { display: none !important; }
  .jxy-theme-thread-grid-meta { right: 12px; bottom: 10px; left: 12px; }
}
@media (max-width: 575.98px) {
  .threadlist:has(.jxy-theme-thread-cover--grid) { grid-template-columns: 1fr; gap: 12px; }
}

/* 可选：手机版首页强制恢复 XIUNOX 默认帖子列表。 */
@media (max-width: 767.98px) {
  html[data-jxy-theme-mobile-home="default"] .threadlist:has(.jxy-theme-thread-cover--grid) {
    display: block !important;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--jxy-border) !important;
    border-radius: var(--jxy-radius) !important;
    background: var(--jxy-surface) !important;
    box-shadow: var(--jxy-shadow) !important;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover) {
    display: flex !important;
    min-height: 0;
    height: auto;
    margin: 0 !important;
    padding: 12px 14px !important;
    overflow: visible;
    border: 0 !important;
    border-bottom: 1px solid var(--jxy-border) !important;
    border-radius: 0 !important;
    background: transparent;
    align-items: center !important;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover):last-child {
    border-bottom: 0 !important;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover) > .me-2.flex-shrink-0 {
    display: block !important;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover) .subject {
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover) .subject > a.hover-text-primary {
    display: inline !important;
    overflow: visible;
    -webkit-line-clamp: unset;
    -webkit-box-orient: initial;
  }
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-cover) .thread-list-meta {
    display: block !important;
  }
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-thread-cover,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-thread-excerpt,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-thread-blog-meta {
    display: none !important;
  }
}



/* 首页图片样式 5：三行正文、原位置展开、图片置于正文下方。 */
.threadlist:has(.jxy-theme-thread-inline-marker){display:grid!important;gap:12px;overflow:visible;border:0!important;background:transparent!important;box-shadow:none!important}
.thread-list-item:has(.jxy-theme-thread-inline-marker){position:relative;min-height:0;margin:0!important;padding:16px!important;align-items:flex-start!important;border:1px solid var(--jxy-border)!important;border-radius:12px!important;background:var(--jxy-surface)!important;box-shadow:0 4px 16px rgba(25,36,58,.06);overflow:hidden}
.thread-list-item:has(.jxy-theme-thread-inline-marker):hover{background:var(--jxy-surface)!important;box-shadow:0 7px 22px rgba(25,36,58,.09)}
.thread-list-item:has(.jxy-theme-thread-inline-marker)>.me-2.flex-shrink-0{display:block!important;margin-right:11px!important}
.thread-list-item:has(.jxy-theme-thread-inline-marker)>.me-2.flex-shrink-0 :is(img,.avatar){width:44px!important;height:44px!important;border-radius:8px!important;object-fit:cover}
.thread-list-item:has(.jxy-theme-thread-inline-marker) .subject{display:flex;min-width:0;flex:1 1 auto;flex-direction:column;align-items:stretch;font-size:1rem;line-height:1.55;font-weight:400}
.thread-list-item:has(.jxy-theme-thread-inline-marker) .subject>a.hover-text-primary{order:1;display:-webkit-box;margin-top:10px;overflow:hidden;color:var(--jxy-text)!important;font-size:1.06rem;font-weight:700;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.thread-list-item:has(.jxy-theme-thread-inline-marker) .thread-list-meta{display:none!important}
.jxy-theme-inline-author{order:0;display:flex;min-width:0;flex-direction:column;align-items:flex-start;gap:5px;color:var(--jxy-text-muted);font-size:.76rem;line-height:1.25}
.jxy-theme-inline-author__identity{display:flex;min-width:0;max-width:100%;align-items:center;gap:8px;white-space:nowrap}
.jxy-theme-inline-author__identity strong{min-width:0;overflow:hidden;color:var(--jxy-accent);font-size:.9rem;text-overflow:ellipsis}
.jxy-theme-inline-author__group,.jxy-theme-inline-author__uid{display:inline-flex;min-height:22px;padding:2px 8px;align-items:center;border-radius:6px;font-size:.7rem;font-weight:700;line-height:1;white-space:nowrap}
.jxy-theme-inline-author__group{background:color-mix(in srgb,#e54848 12%,var(--jxy-surface));color:#d83b3b}
.jxy-theme-inline-author__uid{background:color-mix(in srgb,var(--jxy-accent) 14%,var(--jxy-surface));color:var(--jxy-accent)}
.jxy-theme-inline-author__meta{display:flex;align-items:center;gap:5px!important;color:var(--jxy-text-muted);white-space:nowrap}
.jxy-theme-inline-author__meta>span{display:inline-flex;align-items:center;gap:3px}
.jxy-theme-status-time-group{display:inline-flex!important;min-width:0;align-items:center;gap:5px!important;white-space:nowrap}
.jxy-theme-inline-status-icon{display:inline-flex!important;width:auto!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;align-items:center!important;align-self:auto!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--jxy-text-muted)!important;box-shadow:none!important;font-size:.76rem!important;line-height:1!important}
.jxy-theme-inline-status-icon .ti{font-size:.82rem;line-height:1}
.jxy-theme-inline-excerpt{order:2;display:-webkit-box;margin-top:8px;overflow:hidden;color:var(--jxy-text-muted);font-size:.94rem;line-height:1.72;white-space:normal;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.thread-list-item.is-expanded .jxy-theme-inline-excerpt{display:none!important}
.jxy-theme-inline-excerpt--measure{position:absolute!important;left:-99999px!important;display:block!important;max-height:none!important;margin:0!important;overflow:visible!important;visibility:hidden!important;white-space:normal!important;-webkit-line-clamp:unset!important}
.jxy-theme-inline-expand{order:3;display:inline-flex;width:max-content;min-height:32px;margin:2px 0 0;padding:4px 2px;align-items:center;gap:3px;border:0;background:transparent;color:var(--jxy-accent);font-size:.82rem;font-weight:650;line-height:1.2;cursor:pointer}
.jxy-theme-inline-expand[hidden]{display:none!important}
.jxy-theme-inline-expand:hover,.jxy-theme-inline-expand:focus-visible{color:var(--jxy-accent-hover);text-decoration:underline;outline:0}
.jxy-theme-thread-cover--inline{order:4;position:relative;inset:auto;display:block;width:100%;height:auto;max-height:none;margin-top:8px;overflow:hidden;border:1px solid var(--jxy-border);border-radius:8px;background:var(--jxy-surface-muted)}
.jxy-theme-thread-cover--inline img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;transition:none}
.thread-list-item:hover .jxy-theme-thread-cover--inline img{transform:none}
.jxy-theme-inline-gallery{order:4;display:grid;width:min(100%,760px);margin-top:8px;align-self:flex-start;gap:6px}
.jxy-theme-inline-gallery__item{display:block;min-width:0;padding:0;overflow:hidden;border:1px solid var(--jxy-border);border-radius:8px;background:var(--jxy-surface-muted);cursor:zoom-in}
.jxy-theme-inline-gallery__item img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .22s ease}
.jxy-theme-inline-gallery__item:hover img{transform:scale(1.025)}
.jxy-theme-inline-gallery--count-1{display:block;width:fit-content;max-width:min(100%,520px)}
.jxy-theme-inline-gallery--count-1 .jxy-theme-inline-gallery__item{display:block;width:fit-content;max-width:100%;max-height:360px}
.jxy-theme-inline-gallery--count-1 .jxy-theme-inline-gallery__item img{width:auto;max-width:100%;height:auto;max-height:360px;object-fit:contain}
.jxy-theme-inline-gallery--count-2{width:min(100%,680px);grid-template-columns:repeat(2,minmax(0,1fr))}
.jxy-theme-inline-gallery--count-2 .jxy-theme-inline-gallery__item{aspect-ratio:4/3}
.jxy-theme-inline-gallery--count-3,.jxy-theme-inline-gallery--count-4{grid-template-columns:repeat(3,minmax(0,1fr))}
.jxy-theme-inline-gallery--count-3 .jxy-theme-inline-gallery__item,.jxy-theme-inline-gallery--count-4 .jxy-theme-inline-gallery__item{aspect-ratio:1/1}
.jxy-theme-inline-full{order:2;display:block;min-width:0;max-width:100%;margin-top:8px;color:var(--jxy-text);font-size:.95rem;line-height:1.75;overflow-wrap:anywhere}
.jxy-theme-inline-full[hidden],.jxy-theme-inline-gallery[hidden],.jxy-theme-inline-excerpt[hidden]{display:none!important}
.jxy-theme-inline-full :where(p,ul,ol,blockquote,pre,h1,h2,h3,h4,h5,h6){max-width:100%}
.jxy-theme-inline-full img{max-width:100%;height:auto;cursor:zoom-in}
.jxy-theme-inline-image-link-disabled{cursor:zoom-in}
.jxy-theme-inline-full pre{max-width:100%;overflow:auto}
.thread-list-item.is-expanded .jxy-theme-inline-full{display:block!important}
.thread-list-item.is-expanded .jxy-theme-inline-gallery{display:none!important}
.jxy-theme-inline-actions{order:5;display:flex;width:calc(100% + 55px);min-height:45px;margin:14px 0 -16px -55px;padding:10px 0 10px 12px;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid var(--jxy-border);color:var(--jxy-text-muted);font-size:.8rem}
.jxy-theme-inline-actions__forum{display:inline-flex;min-height:28px;padding:4px 10px;align-items:center;gap:5px;border-radius:14px;background:var(--jxy-surface-muted);color:var(--jxy-text-muted);font-weight:600;text-decoration:none;white-space:nowrap}
.jxy-theme-inline-actions__forum:hover{color:var(--jxy-accent)}
.jxy-theme-inline-actions__metrics{display:flex;align-items:center;gap:28px;padding-right:2px}
.jxy-theme-inline-action{display:inline-flex;min-height:28px;padding:4px 9px;align-items:center;gap:5px;border:0;border-radius:14px;background:transparent;color:var(--jxy-text-muted);font:inherit;font-weight:600;line-height:1;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background-color .16s ease,color .16s ease,box-shadow .16s ease}
.jxy-theme-inline-action:hover,.jxy-theme-inline-action:focus-visible{background:var(--jxy-surface-muted);color:var(--jxy-accent);outline:0}
.jxy-theme-inline-action.is-active,.jxy-theme-inline-action[aria-pressed="true"]{background:color-mix(in srgb,var(--jxy-accent) 14%,var(--jxy-surface));color:var(--jxy-accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--jxy-accent) 26%,transparent)}
.jxy-theme-inline-action.is-loading{pointer-events:none;opacity:.58}
.jxy-theme-inline-action i{font-size:1.12rem}
.jxy-theme-thread-inline-marker{display:none!important}
@media(max-width:767.98px){
  html:not([data-jxy-theme-mobile-home="default"]) .threadlist:has(.jxy-theme-thread-inline-marker){gap:10px}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-inline-marker){margin:0 8px!important;padding:14px!important;border-radius:10px!important}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-inline-marker)>.me-2.flex-shrink-0 :is(img,.avatar){width:42px!important;height:42px!important}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-inline-marker) .subject>a.hover-text-primary{font-size:1rem}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-excerpt{font-size:.9rem;line-height:1.68}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-thread-cover--inline{display:block}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-gallery{width:100%;gap:5px}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-gallery--count-1{width:min(100%,420px)}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-gallery--count-1 .jxy-theme-inline-gallery__item,
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-gallery--count-1 .jxy-theme-inline-gallery__item img{max-height:300px}
  html:not([data-jxy-theme-mobile-home="default"]) :is(.jxy-theme-inline-gallery--count-3,.jxy-theme-inline-gallery--count-4){grid-template-columns:repeat(2,minmax(0,1fr))}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-actions{width:calc(100% + 52px);margin-right:0;margin-bottom:-14px;margin-left:-52px;padding-left:10px;font-size:.76rem}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-actions__metrics{gap:16px}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-inline-action{padding-right:7px;padding-left:7px}
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-inline-author,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-inline-excerpt,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-inline-expand,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-thread-cover--inline,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-inline-gallery,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-inline-actions{display:none!important}
}

.jxy-theme-lightbox-open{overflow:hidden!important}
.jxy-theme-image-lightbox{position:fixed;z-index:10050;inset:0;display:flex;padding:24px;align-items:center;justify-content:center;background:rgba(8,10,14,.92);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.jxy-theme-image-lightbox[hidden]{display:none!important}
.jxy-theme-image-lightbox__image{display:block;max-width:calc(100vw - 96px);max-height:calc(100vh - 48px);object-fit:contain;box-shadow:0 12px 50px rgba(0,0,0,.46)}
.jxy-theme-image-lightbox button{position:absolute;z-index:2;display:grid;width:44px;height:44px;padding:0;place-items:center;border:1px solid rgba(255,255,255,.28);border-radius:50%;background:rgba(24,27,34,.72);color:#fff;font-size:1.35rem;cursor:pointer}
.jxy-theme-image-lightbox button:hover,.jxy-theme-image-lightbox button:focus-visible{background:rgba(255,255,255,.18);outline:2px solid rgba(255,255,255,.7);outline-offset:2px}
.jxy-theme-image-lightbox__close{top:18px;right:18px}
.jxy-theme-image-lightbox__prev{left:18px;top:50%;transform:translateY(-50%)}
.jxy-theme-image-lightbox__next{right:18px;top:50%;transform:translateY(-50%)}
@media(max-width:575.98px){.jxy-theme-image-lightbox{padding:12px}.jxy-theme-image-lightbox__image{max-width:calc(100vw - 24px);max-height:calc(100vh - 76px)}.jxy-theme-image-lightbox__prev{left:10px}.jxy-theme-image-lightbox__next{right:10px}.jxy-theme-image-lightbox__close{top:10px;right:10px}}

/* 首页图片样式 4：参考图中的简洁论坛帖子列表。 */
.threadlist:has(.jxy-theme-thread-compact-marker){
  display:block!important;
  overflow:hidden;
  border:1px solid var(--jxy-border)!important;
  border-radius:var(--jxy-radius);
  background:var(--jxy-surface)!important;
  box-shadow:none!important;
}
.thread-list-item:has(.jxy-theme-thread-compact-marker){
  position:relative;
  min-height:68px;
  margin:0!important;
  padding:10px 106px 10px 12px!important;
  border:0!important;
  border-bottom:1px solid var(--jxy-border)!important;
  border-radius:0!important;
  background:var(--jxy-surface)!important;
  align-items:center!important;
}
.thread-list-item:has(.jxy-theme-thread-compact-marker):last-child{border-bottom:0!important}
.thread-list-item:has(.jxy-theme-thread-compact-marker):hover{background:var(--jxy-surface-muted)!important}
.thread-list-item:has(.jxy-theme-thread-compact-marker)>.me-2.flex-shrink-0{margin-right:11px!important}
.thread-list-item:has(.jxy-theme-thread-compact-marker)>.me-2.flex-shrink-0 :is(img,.avatar){width:42px!important;height:42px!important;border-radius:7px!important;object-fit:cover}
.thread-list-item:has(.jxy-theme-thread-compact-marker) .subject{min-width:0;font-size:1rem;line-height:1.35;font-weight:500}
.thread-list-item:has(.jxy-theme-thread-compact-marker) .subject>a.hover-text-primary{display:block;overflow:hidden;color:var(--jxy-text)!important;text-overflow:ellipsis;white-space:nowrap}
.thread-list-item:has(.jxy-theme-thread-compact-marker) .thread-list-meta,
.thread-list-item:has(.jxy-theme-thread-compact-marker) .thread-list-interact{display:none!important}
.jxy-theme-thread-compact-marker{display:none!important}
.jxy-theme-compact-meta{display:flex;min-width:0;margin-top:7px;align-items:center;gap:9px;overflow:hidden;color:var(--jxy-text-muted);font-size:.76rem;font-weight:400;line-height:1.2;white-space:nowrap}
.jxy-theme-compact-meta>span,.jxy-theme-compact-meta>a{display:inline-flex;min-width:0;align-items:center;gap:3px;color:inherit;text-decoration:none;white-space:nowrap}
.jxy-theme-compact-meta i{flex:0 0 auto;font-size:.86rem}
.jxy-theme-compact-meta__author{color:var(--jxy-accent)!important}
.jxy-theme-compact-meta__forum{display:none!important}
.jxy-theme-compact-meta__last-user{max-width:110px;overflow:hidden;text-overflow:ellipsis}
.jxy-theme-compact-category{position:absolute;top:50%;right:12px;display:inline-flex;min-width:58px;max-width:82px;min-height:27px;padding:4px 9px;align-items:center;justify-content:center;overflow:hidden;border:1px solid var(--jxy-border);border-radius:4px;background:var(--jxy-surface-muted);color:var(--jxy-text-muted);font-size:.76rem;line-height:1.2;text-align:center;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;transform:translateY(-50%)}
.jxy-theme-compact-category:hover{border-color:var(--jxy-accent);color:var(--jxy-accent)}
@media(max-width:767.98px){
  html:not([data-jxy-theme-mobile-home="default"]) .threadlist:has(.jxy-theme-thread-compact-marker){border-right:0!important;border-left:0!important;border-radius:0}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-compact-marker){min-height:82px;padding:11px 10px!important;align-items:center!important}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-compact-marker)>.me-2.flex-shrink-0{margin-right:10px!important}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-compact-marker)>.me-2.flex-shrink-0 :is(img,.avatar){width:46px!important;height:46px!important;border-radius:8px!important}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-compact-marker) .subject{font-size:1rem;line-height:1.36}
  html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-compact-marker) .subject>a.hover-text-primary{display:-webkit-box;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-compact-meta{gap:7px;margin-top:8px;font-size:.74rem}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-compact-meta__forum{display:inline-flex!important;max-width:82px;overflow:hidden;text-overflow:ellipsis}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-compact-meta__last-user{display:none}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-compact-meta__time{overflow:hidden;text-overflow:ellipsis}
  html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-compact-category{display:none}
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-compact-marker){min-height:0;padding:12px 14px!important}
  html[data-jxy-theme-mobile-home="default"] .thread-list-item:has(.jxy-theme-thread-compact-marker) .thread-list-meta{display:block!important}
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-compact-meta,
  html[data-jxy-theme-mobile-home="default"] .jxy-theme-compact-category{display:none!important}
}

/* 首页图片卡片样式 1：微博卡片信息流 */
.threadlist:has(.jxy-theme-thread-cover--moments){display:grid;gap:12px;border:0!important;background:transparent!important;box-shadow:none!important}
.thread-list-item:has(.jxy-theme-thread-cover--moments){position:relative;min-height:0;margin:0!important;padding:18px 18px 0!important;align-items:flex-start!important;border:1px solid var(--jxy-border)!important;border-radius:12px!important;background:var(--jxy-surface)!important;box-shadow:0 5px 18px rgba(25,36,58,.07);overflow:hidden}
.thread-list-item:has(.jxy-theme-thread-cover--moments):hover{background:var(--jxy-surface)!important;box-shadow:0 8px 24px rgba(25,36,58,.11)}
.thread-list-item:has(.jxy-theme-thread-cover--moments)>.me-2.flex-shrink-0{display:block!important;margin-right:11px!important}
.thread-list-item:has(.jxy-theme-thread-cover--moments)>.me-2.flex-shrink-0 :is(img,.avatar){width:46px!important;height:46px!important;border-radius:50%!important;object-fit:cover}
.thread-list-item:has(.jxy-theme-thread-cover--moments) .subject{display:flex;flex:1 1 auto;flex-direction:column;align-items:stretch;width:min(100%,720px);min-width:0;font-size:1rem;line-height:1.6;font-weight:400}
.jxy-theme-moments-author{order:0;color:var(--jxy-text);font-size:1rem;font-weight:700;line-height:1.35}
.jxy-theme-moments-footer{order:1;display:flex;align-items:center;justify-content:space-between;width:100%;margin:3px 0 12px;color:var(--jxy-text-muted);font-size:.76rem;line-height:1.2}
.jxy-theme-moments-more{display:grid;width:28px;height:22px;place-items:center;border-radius:5px;color:var(--jxy-text-muted);font-size:1.05rem}
.jxy-theme-moments-more:hover{background:var(--jxy-surface-muted);color:var(--jxy-accent)}
.thread-list-item:has(.jxy-theme-thread-cover--moments) .subject>a.hover-text-primary{order:2;display:-webkit-box;color:var(--jxy-text)!important;font-size:1.03rem;font-weight:650;line-height:1.55;overflow:hidden;-webkit-line-clamp:3;-webkit-box-orient:vertical}
.jxy-theme-thread-excerpt--moments{order:3;display:-webkit-box;max-width:100%;margin-top:5px;color:var(--jxy-text);font-size:.95rem;line-height:1.65;white-space:normal;overflow:hidden;-webkit-line-clamp:5;-webkit-box-orient:vertical}
.jxy-theme-thread-cover--moments{order:4;position:relative;inset:auto;display:block;width:min(520px,100%);height:auto;max-height:520px;margin-top:12px;overflow:hidden;border:1px solid var(--jxy-border);border-radius:9px;background:var(--jxy-surface-muted)}
.jxy-theme-thread-cover--moments img{display:block;width:100%;height:auto;max-height:520px;object-fit:cover;transition:none}
.thread-list-item:hover .jxy-theme-thread-cover--moments img{transform:none}.jxy-theme-thread-cover--moments.jxy-theme-thread-cover--empty{display:none}
.jxy-theme-moments-engagement{order:5;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:calc(100% + 75px);margin:16px 0 0 -75px;padding:0;border-top:1px solid var(--jxy-border);border-radius:0;background:transparent;color:var(--jxy-text-muted);font-size:.82rem}
.jxy-theme-moments-engagement:before{display:none}
.jxy-theme-moments-engagement>span{display:flex;align-items:center;justify-content:center;gap:5px;min-height:43px;border-right:1px solid var(--jxy-border)}
.jxy-theme-moments-engagement>span:last-child{border-right:0}.jxy-theme-moments-engagement>span:hover{color:var(--jxy-accent);background:var(--jxy-surface-muted)}
.thread-list-item:has(.jxy-theme-thread-cover--moments) .thread-list-meta{display:none!important}
@media(max-width:767.98px){html:not([data-jxy-theme-mobile-home="default"]) .threadlist:has(.jxy-theme-thread-cover--moments){gap:10px}html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-cover--moments){min-height:0;margin:0 8px!important;padding:15px 14px 0!important;border-radius:10px!important}html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-cover--moments)>.me-2.flex-shrink-0{margin-right:9px!important}html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-cover--moments)>.me-2.flex-shrink-0 :is(img,.avatar){width:42px!important;height:42px!important}html:not([data-jxy-theme-mobile-home="default"]) .thread-list-item:has(.jxy-theme-thread-cover--moments) .subject{width:calc(100% - 51px)}html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-thread-cover--moments{display:block;width:100%;max-height:430px;margin-top:10px}html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-thread-cover--moments img{max-height:430px}html:not([data-jxy-theme-mobile-home="default"]) .jxy-theme-moments-engagement{width:calc(100% + 65px);margin-left:-65px}}

/* UI 预设：现代柔光 */
[data-jxy-theme-style="modern"] {
  --jxy-accent: #6366f1;
  --jxy-accent-hover: #4f46e5;
  --jxy-accent-soft: rgba(99, 102, 241, .12);
  --jxy-page: #f4f5fb;
  --jxy-surface-muted: #f1f2f8;
  --jxy-border: rgba(85, 88, 118, .14);
  --jxy-border-strong: rgba(85, 88, 118, .24);
  --jxy-radius: 16px;
  --jxy-shadow: 0 2px 4px rgba(45, 48, 80, .04), 0 16px 42px rgba(45, 48, 80, .08);
  --bs-primary: var(--jxy-accent);
  --bs-primary-rgb: 99, 102, 241;
  --x-page-bg: var(--jxy-page);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 16px;
}
[data-bs-theme="dark"][data-jxy-theme-style="modern"] {
  --jxy-page: #11121a;
  --jxy-surface: #1a1b25;
  --jxy-surface-muted: #242633;
  --jxy-border: rgba(202, 204, 255, .12);
  --jxy-border-strong: rgba(202, 204, 255, .22);
  --jxy-shadow: 0 18px 48px rgba(0, 0, 0, .24);
}
[data-jxy-theme-style="modern"] body { background: radial-gradient(circle at 15% 0%, rgba(99,102,241,.10), transparent 34%), var(--jxy-page); }
[data-jxy-theme-style="modern"] #header.navbar { border-bottom-color: transparent; box-shadow: 0 1px 0 var(--jxy-border), 0 8px 30px rgba(45,48,80,.05) !important; }
[data-jxy-theme-style="modern"] .x-card.card { border-color: transparent; box-shadow: var(--jxy-shadow); }
[data-jxy-theme-style="modern"] .thread-list-item { margin: 8px; border: 0; border-radius: 12px; }
[data-jxy-theme-style="modern"] .thread-list-item:hover { background: linear-gradient(135deg, rgba(var(--bs-primary-rgb),.10), var(--jxy-surface-muted)); }
[data-jxy-theme-style="modern"] .btn-primary { border: 0; background: linear-gradient(135deg, #6366f1, #8b5cf6); }
[data-jxy-theme-style="modern"] .jxy-theme-thread-cover { border-radius: 13px; }

/* UI 预设：像素街机 */
[data-jxy-theme-style="pixel"] {
  --jxy-accent: #1f8fff;
  --jxy-accent-hover: #006fd6;
  --jxy-accent-soft: rgba(31, 143, 255, .12);
  --jxy-page: #eef4f7;
  --jxy-surface: #ffffff;
  --jxy-surface-muted: #e6edf1;
  --jxy-text: #14212b;
  --jxy-text-muted: #536572;
  --jxy-border: #243746;
  --jxy-border-strong: #14212b;
  --jxy-radius: 0;
  --jxy-shadow: 5px 5px 0 #243746;
  --bs-primary: var(--jxy-accent);
  --bs-primary-rgb: 31, 143, 255;
  --x-page-bg: var(--jxy-page);
  --bs-border-radius: 0;
  --bs-border-radius-lg: 0;
}
[data-bs-theme="dark"][data-jxy-theme-style="pixel"] {
  --jxy-page: #091117;
  --jxy-surface: #111d25;
  --jxy-surface-muted: #182935;
  --jxy-text: #eaf7ff;
  --jxy-text-muted: #9ab1bf;
  --jxy-border: #537489;
  --jxy-border-strong: #b5ddf5;
  --jxy-shadow: 5px 5px 0 #05090c;
}
[data-jxy-theme-style="pixel"] body {
  font-family: "Courier New", "Noto Sans SC", monospace;
  background-color: var(--jxy-page);
  background-image: linear-gradient(rgba(var(--bs-primary-rgb),.055) 1px, transparent 1px), linear-gradient(90deg, rgba(var(--bs-primary-rgb),.055) 1px, transparent 1px);
  background-size: 16px 16px;
}
[data-jxy-theme-style="pixel"] #header.navbar,
[data-jxy-theme-style="pixel"] .x-card.card,
[data-jxy-theme-style="pixel"] .btn,
[data-jxy-theme-style="pixel"] .form-control,
[data-jxy-theme-style="pixel"] .form-select,
[data-jxy-theme-style="pixel"] .badge,
[data-jxy-theme-style="pixel"] .dropdown-menu,
[data-jxy-theme-style="pixel"] .jxy-theme-thread-cover { border-radius: 0 !important; }
[data-jxy-theme-style="pixel"] #header.navbar { border-bottom: 3px solid var(--jxy-border-strong); }
[data-jxy-theme-style="pixel"] .x-card.card { border: 2px solid var(--jxy-border-strong); box-shadow: var(--jxy-shadow); }
[data-jxy-theme-style="pixel"] .thread-list-item { border-bottom: 2px dashed var(--jxy-border); }
[data-jxy-theme-style="pixel"] .thread-nav-tabs .nav-link.active::after { height: 4px; border-radius: 0; box-shadow: 3px 0 0 var(--jxy-accent); }
[data-jxy-theme-style="pixel"] .btn { border-width: 2px; text-transform: uppercase; letter-spacing: .02em; }
[data-jxy-theme-style="pixel"] .btn-primary { box-shadow: 3px 3px 0 var(--jxy-border-strong) !important; }
[data-jxy-theme-style="pixel"] .jxy-theme-logo__image { image-rendering: pixelated; }

/* UI 预设：玻璃拟态 */
[data-jxy-theme-style="glass"] {
  --jxy-accent: #3182f6;
  --jxy-accent-hover: #1c6fd5;
  --jxy-accent-soft: rgba(49, 130, 246, .13);
  --jxy-page: #eaf1fb;
  --jxy-surface: rgba(255, 255, 255, .66);
  --jxy-surface-muted: rgba(255, 255, 255, .44);
  --jxy-border: rgba(255, 255, 255, .72);
  --jxy-border-strong: rgba(116, 143, 179, .34);
  --jxy-header: rgba(255, 255, 255, .58);
  --jxy-radius: 18px;
  --jxy-shadow: 0 12px 36px rgba(48, 75, 112, .14);
  --bs-primary: var(--jxy-accent);
  --bs-primary-rgb: 49, 130, 246;
  --x-page-bg: var(--jxy-page);
  --bs-border-radius: 10px;
  --bs-border-radius-lg: 18px;
}
[data-bs-theme="dark"][data-jxy-theme-style="glass"] {
  --jxy-page: #0c1220;
  --jxy-surface: rgba(24, 33, 52, .68);
  --jxy-surface-muted: rgba(39, 52, 78, .52);
  --jxy-border: rgba(255, 255, 255, .13);
  --jxy-border-strong: rgba(255, 255, 255, .22);
  --jxy-header: rgba(15, 22, 36, .62);
  --jxy-shadow: 0 18px 45px rgba(0, 0, 0, .24);
}
[data-jxy-theme-style="glass"] body { background: radial-gradient(circle at 12% 12%, rgba(49,130,246,.24), transparent 34%), radial-gradient(circle at 88% 8%, rgba(154,81,255,.20), transparent 32%), var(--jxy-page); background-attachment: fixed; }
[data-jxy-theme-style="glass"] #header.navbar,
[data-jxy-theme-style="glass"] .x-card.card,
[data-jxy-theme-style="glass"] .dropdown-menu { backdrop-filter: blur(22px) saturate(145%); -webkit-backdrop-filter: blur(22px) saturate(145%); }
[data-jxy-theme-style="glass"] .x-card.card { border: 1px solid var(--jxy-border); box-shadow: var(--jxy-shadow); }
[data-jxy-theme-style="glass"] .thread-list-item:hover { background: rgba(var(--bs-primary-rgb), .09); }
[data-jxy-theme-style="glass"] .btn-primary { border: 1px solid rgba(255,255,255,.24); background: linear-gradient(135deg, rgba(49,130,246,.94), rgba(111,76,255,.92)); }
[data-jxy-theme-style="glass"] .jxy-theme-thread-cover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }

/* UI 预设：英雄联盟风格 */
[data-jxy-theme-style="lol"] {
  --jxy-accent:#c99b3f;--jxy-accent-hover:#e0bd63;--jxy-accent-soft:rgba(201,155,63,.14);
  --jxy-page:#051522;--jxy-surface:#0b2233;--jxy-surface-muted:#102f43;--jxy-text:#f0e6d2;--jxy-text-muted:#a7b8bf;
  --jxy-border:#315468;--jxy-border-strong:#c99b3f;--jxy-header:rgba(5,21,34,.96);--jxy-radius:6px;
  --jxy-shadow:0 10px 30px rgba(0,0,0,.34);--x-page-bg:var(--jxy-page);
  --bs-primary:#c99b3f;--bs-primary-rgb:201,155,63;
  --bs-body-bg:#0b2233;--bs-body-bg-rgb:11,34,51;--bs-body-color:#f0e6d2;--bs-body-color-rgb:240,230,210;
  --bs-emphasis-color:#fff4d8;--bs-emphasis-color-rgb:255,244,216;
  --bs-secondary-color:#a7b8bf;--bs-secondary-color-rgb:167,184,191;--bs-secondary-bg:#102f43;--bs-secondary-bg-rgb:16,47,67;
  --bs-tertiary-color:#8fa5ae;--bs-tertiary-color-rgb:143,165,174;--bs-tertiary-bg:#102f43;--bs-tertiary-bg-rgb:16,47,67;
  --bs-heading-color:#f0e6d2;--bs-link-color:#d8ae55;--bs-link-color-rgb:216,174,85;--bs-link-hover-color:#f0d58a;--bs-link-hover-color-rgb:240,213,138;
  --bs-border-color:#315468;--bs-border-color-translucent:rgba(167,184,191,.22);
}
/* 英雄联盟风格：补齐 Bootstrap 语义色，并修复正文、发现页、用户中心与表格的深色文字。 */
[data-jxy-theme-style="lol"] .text-body { color:var(--jxy-text)!important; }
[data-jxy-theme-style="lol"] .text-body-secondary,
[data-jxy-theme-style="lol"] .form-text { color:var(--jxy-text-muted)!important; }
[data-jxy-theme-style="lol"] .form-control,
[data-jxy-theme-style="lol"] .form-select,
[data-jxy-theme-style="lol"] .input-group-text { color:var(--jxy-text);background-color:#0a1d2b;border-color:var(--jxy-border-strong); }
[data-jxy-theme-style="lol"] .form-control::placeholder { color:#91a7b0;opacity:1; }
[data-jxy-theme-style="lol"] .form-control:disabled,
[data-jxy-theme-style="lol"] .form-control[readonly] { color:#d9cdb8;background-color:#132f40;opacity:1; }
[data-jxy-theme-style="lol"] .bg-light { color:var(--jxy-text)!important;background-color:#102f43!important;box-shadow:inset 0 0 0 1px var(--jxy-border); }
[data-jxy-theme-style="lol"] .alert-light { --bs-alert-color:#f0e6d2;--bs-alert-bg:#102f43;--bs-alert-border-color:#315468;color:#f0e6d2;background-color:#102f43;border-color:#315468!important; }
[data-jxy-theme-style="lol"] .alert-info { --bs-alert-color:#d7edf5;--bs-alert-bg:#0d3548;--bs-alert-border-color:#397189;color:#d7edf5;background-color:#0d3548;border-color:#397189; }
[data-jxy-theme-style="lol"] .alert-info .text-body-secondary,
[data-jxy-theme-style="lol"] .alert-light .text-body-secondary { color:#b8cbd1!important; }
[data-jxy-theme-style="lol"] .table {
  --bs-table-color:var(--jxy-text);--bs-table-bg:transparent;--bs-table-border-color:var(--jxy-border);
  --bs-table-striped-color:var(--jxy-text);--bs-table-striped-bg:rgba(201,155,63,.045);
  --bs-table-active-color:var(--jxy-text);--bs-table-active-bg:rgba(201,155,63,.12);
  --bs-table-hover-color:var(--jxy-text);--bs-table-hover-bg:rgba(201,155,63,.08);
  color:var(--jxy-text);
}
[data-jxy-theme-style="lol"] .message.aie-content { color:var(--jxy-text);background-color:transparent; }
[data-jxy-theme-style="lol"] .message.aie-content :where(p,ul,ol,li,h1,h2,h3,h4,h5,h6,strong,em,span) { color:var(--jxy-text)!important; }
[data-jxy-theme-style="lol"] .message.aie-content a { color:var(--jxy-accent-hover)!important; }
/* 英雄联盟风格：帖子代码块使用深色高对比度语法高亮。 */
[data-jxy-theme-style="lol"] .message.aie-content pre,
[data-jxy-theme-style="lol"] .message.aie-content pre.hljs,
[data-jxy-theme-style="lol"] .message.aie-content pre code,
[data-jxy-theme-style="lol"] .message.aie-content code.hljs,
[data-jxy-theme-style="lol"] .message.aie-content .aie-codeblock-wrapper { color:#dce7e5!important;background:#071923!important; }
[data-jxy-theme-style="lol"] .message.aie-content pre { margin:.8rem 0;padding:14px 16px!important;border:1px solid #315468;border-radius:6px;box-shadow:inset 3px 0 0 #c99b3f;overflow:auto; }
[data-jxy-theme-style="lol"] .message.aie-content pre code { display:block;padding:0!important;border:0!important;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.9rem;line-height:1.65;white-space:pre; }
[data-jxy-theme-style="lol"] .message.aie-content :not(pre)>code { color:#f0d58a!important;background:#102f43!important;border:1px solid #315468;padding:.12em .38em;border-radius:4px; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-comment,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-quote { color:#7f929b!important;font-style:italic; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-keyword,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-selector-tag,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-doctag { color:#d9a0e8!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-string,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-regexp,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-addition,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-attribute { color:#a9d58c!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-number,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-literal,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-variable,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-template-variable { color:#e7bd74!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-title,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-section,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-function,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-name { color:#79bde8!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-built_in,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-type,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-class { color:#f0d58a!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-meta,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-symbol,
[data-jxy-theme-style="lol"] .message.aie-content .hljs-bullet { color:#65c5cf!important; }
[data-jxy-theme-style="lol"] .message.aie-content .hljs-deletion { color:#eb8b8b!important; }
[data-jxy-theme-style="lol"] .message.aie-content .copy-code { color:#071724!important;background:#d8ae55!important;border:1px solid #f0d58a!important;border-radius:4px; }
[data-jxy-theme-style="lol"] .message.aie-content .copy-code i,
[data-jxy-theme-style="lol"] .message.aie-content .copy-code svg { color:#071724!important;fill:#071724!important; }
[data-jxy-theme-style="lol"] .discover-item span { color:var(--jxy-text)!important; }
[data-jxy-theme-style="lol"] .thread-sidebar-btn { color:var(--jxy-text-muted);background-color:#0b2233;border:1px solid var(--jxy-border); }
[data-jxy-theme-style="lol"] .thread-sidebar-btn:hover { color:var(--jxy-text);border-color:var(--jxy-border-strong); }
[data-jxy-theme-style="lol"] .thread-sidebar-badge { color:#071724!important;font-size:12px;font-weight:700;box-shadow:0 0 0 2px #051522; }
[data-jxy-theme-style="lol"] .thread-sidebar-badge.bg-secondary { background-color:#a7b8bf!important; }
[data-jxy-theme-style="lol"] .thread-sidebar-badge.bg-primary { background-color:#d8ae55!important; }
[data-jxy-theme-style="lol"] .thread-sidebar-btn[data-tip]::before { color:#071724;background-color:#f0e6d2;font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.32); }
[data-jxy-theme-style="lol"] .thread-sidebar-btn[data-tip]:hover::before { opacity:1; }
[data-jxy-theme-style="lol"] body { background:radial-gradient(circle at 50% -15%,rgba(25,105,130,.38),transparent 42%),linear-gradient(135deg,#03101a,#071d2b 52%,#04121d);background-attachment:fixed; }
[data-jxy-theme-style="lol"] #header.navbar { border-bottom:1px solid #7c6533;box-shadow:0 6px 24px rgba(0,0,0,.3)!important; }
[data-jxy-theme-style="lol"] .x-card.card { border:1px solid #315468;box-shadow:inset 0 1px rgba(201,155,63,.12),var(--jxy-shadow); }
[data-jxy-theme-style="lol"] .card-header { background:linear-gradient(90deg,rgba(201,155,63,.10),transparent)!important; }
[data-jxy-theme-style="lol"] .btn-primary { color:#071724;background:linear-gradient(#e0bd63,#aa7928);border-color:#f0d58a;text-shadow:0 1px rgba(255,255,255,.25); }
[data-jxy-theme-style="lol"] .thread-nav-tabs .nav-link.active::after { box-shadow:0 0 10px rgba(201,155,63,.65); }

/* UI 预设：赛博霓虹 */
[data-jxy-theme-style="cyber"] {
  --jxy-accent:#00eef6;--jxy-accent-hover:#74fbff;--jxy-accent-soft:rgba(0,238,246,.12);
  --jxy-page:#070711;--jxy-surface:#10101d;--jxy-surface-muted:#19152a;--jxy-text:#f5f7ff;--jxy-text-muted:#aaa7c5;
  --jxy-border:#3f315c;--jxy-border-strong:#ff2bd6;--jxy-header:rgba(7,7,17,.94);--jxy-radius:2px;
  --jxy-shadow:8px 8px 0 rgba(255,43,214,.11);--x-page-bg:var(--jxy-page);
  --bs-primary:#00eef6;--bs-primary-rgb:0,238,246;
  --bs-body-bg:#10101d;--bs-body-bg-rgb:16,16,29;--bs-body-color:#f5f7ff;--bs-body-color-rgb:245,247,255;
  --bs-emphasis-color:#ffffff;--bs-emphasis-color-rgb:255,255,255;
  --bs-secondary-color:#aaa7c5;--bs-secondary-color-rgb:170,167,197;--bs-secondary-bg:#19152a;--bs-secondary-bg-rgb:25,21,42;
  --bs-tertiary-color:#8e8baa;--bs-tertiary-color-rgb:142,139,170;--bs-tertiary-bg:#19152a;--bs-tertiary-bg-rgb:25,21,42;
  --bs-heading-color:#f5f7ff;--bs-link-color:#00eef6;--bs-link-color-rgb:0,238,246;--bs-link-hover-color:#74fbff;--bs-link-hover-color-rgb:116,251,255;
  --bs-border-color:#3f315c;--bs-border-color-translucent:rgba(170,167,197,.22);
  --jxy-control-bg:#0b0b18;--jxy-disabled-bg:#211b32;--jxy-disabled-text:#d2cfe4;
  --jxy-info-bg:#0a2a35;--jxy-info-text:#c8fbff;--jxy-info-border:#176d79;
  --jxy-code-bg:#080813;--jxy-code-text:#e8f9ff;--jxy-code-border:#3f315c;--jxy-code-marker:#00eef6;--jxy-code-inline:#74fbff;
  --jxy-code-comment:#8193a6;--jxy-code-keyword:#ff79dc;--jxy-code-string:#7ef7b8;--jxy-code-number:#ffd166;--jxy-code-title:#74c7ff;--jxy-code-built:#00eef6;--jxy-code-meta:#c792ea;--jxy-code-delete:#ff6b8a;
  --jxy-tip-bg:#00eef6;--jxy-tip-text:#061114;--jxy-badge-bg:#aaa7c5;--jxy-badge-active:#00eef6;--jxy-badge-text:#070711;
}
[data-jxy-theme-style="cyber"] body { background-color:var(--jxy-page);background-image:linear-gradient(rgba(0,238,246,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,43,214,.035) 1px,transparent 1px),radial-gradient(circle at 80% 0,rgba(255,43,214,.16),transparent 34%);background-size:30px 30px,30px 30px,auto; }
[data-jxy-theme-style="cyber"] #header.navbar { border-bottom:2px solid #00eef6;box-shadow:0 3px 0 #ff2bd6!important; }
[data-jxy-theme-style="cyber"] .x-card.card { border:1px solid #3f315c;box-shadow:var(--jxy-shadow);clip-path:polygon(0 0,calc(100% - 14px) 0,100% 14px,100% 100%,14px 100%,0 calc(100% - 14px)); }
[data-jxy-theme-style="cyber"] .btn { border-radius:0;clip-path:polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px); }
[data-jxy-theme-style="cyber"] .btn-primary { color:#061114;background:linear-gradient(90deg,#00eef6,#72fff1);border:0;box-shadow:4px 4px 0 #ff2bd6!important; }
[data-jxy-theme-style="cyber"] .thread-list-item:hover { background:linear-gradient(90deg,rgba(0,238,246,.09),rgba(255,43,214,.07)); }

/* UI 预设：方块生存 */
[data-jxy-theme-style="blockcraft"] {
  --jxy-accent:#5f9f3d;--jxy-accent-hover:#477c2e;--jxy-accent-soft:rgba(95,159,61,.14);
  --jxy-page:#cfe5ee;--jxy-surface:#f4ecd7;--jxy-surface-muted:#e2d5b7;--jxy-text:#263523;--jxy-text-muted:#61705a;
  --jxy-border:#725337;--jxy-border-strong:#3f3022;--jxy-header:#e9dfc7;--jxy-radius:0;
  --jxy-shadow:5px 5px 0 #725337;--bs-primary:#5f9f3d;--bs-primary-rgb:95,159,61;--x-page-bg:var(--jxy-page);--bs-border-radius:0;--bs-border-radius-lg:0;
}
[data-bs-theme="dark"][data-jxy-theme-style="blockcraft"] { --jxy-page:#111912;--jxy-surface:#202a20;--jxy-surface-muted:#2d3a2b;--jxy-text:#ecf2df;--jxy-text-muted:#b3c3a4;--jxy-header:#1b241b;--jxy-border:#776247;--jxy-border-strong:#b59b72; }
[data-jxy-theme-style="blockcraft"] body { background-color:var(--jxy-page);background-image:linear-gradient(45deg,rgba(255,255,255,.10) 25%,transparent 25%),linear-gradient(-45deg,rgba(255,255,255,.10) 25%,transparent 25%);background-size:32px 32px; }
[data-jxy-theme-style="blockcraft"] #header.navbar,[data-jxy-theme-style="blockcraft"] .x-card.card,[data-jxy-theme-style="blockcraft"] .btn,[data-jxy-theme-style="blockcraft"] .form-control,[data-jxy-theme-style="blockcraft"] .form-select,[data-jxy-theme-style="blockcraft"] .jxy-theme-thread-cover { border-radius:0!important; }
[data-jxy-theme-style="blockcraft"] #header.navbar { border-bottom:5px solid #5f9f3d;box-shadow:0 4px 0 #725337!important; }
[data-jxy-theme-style="blockcraft"] .x-card.card { border:2px solid var(--jxy-border-strong);box-shadow:var(--jxy-shadow); }
[data-jxy-theme-style="blockcraft"] .btn-primary { border:2px solid #2c4b20;background:linear-gradient(#70b84b,#4d8732);box-shadow:inset 0 2px rgba(255,255,255,.22),3px 3px 0 #2c4b20!important; }
[data-jxy-theme-style="blockcraft"] .thread-list-item { border-bottom:2px dotted var(--jxy-border); }

/* UI 预设：暗黑秘境 */
[data-jxy-theme-style="darkrealm"] {
  --jxy-accent:#c84b34;--jxy-accent-hover:#e46c50;--jxy-accent-soft:rgba(200,75,52,.14);
  --jxy-page:#0d0b0a;--jxy-surface:#181310;--jxy-surface-muted:#251b17;--jxy-text:#e9dfcf;--jxy-text-muted:#a99a8d;
  --jxy-border:#51372f;--jxy-border-strong:#8e4939;--jxy-header:rgba(13,11,10,.97);--jxy-radius:3px;
  --jxy-shadow:0 14px 34px rgba(0,0,0,.48),inset 0 0 24px rgba(116,32,24,.05);--x-page-bg:var(--jxy-page);
  --bs-primary:#c84b34;--bs-primary-rgb:200,75,52;
  --bs-body-bg:#181310;--bs-body-bg-rgb:24,19,16;--bs-body-color:#e9dfcf;--bs-body-color-rgb:233,223,207;
  --bs-emphasis-color:#fff1dc;--bs-emphasis-color-rgb:255,241,220;
  --bs-secondary-color:#a99a8d;--bs-secondary-color-rgb:169,154,141;--bs-secondary-bg:#251b17;--bs-secondary-bg-rgb:37,27,23;
  --bs-tertiary-color:#8f8074;--bs-tertiary-color-rgb:143,128,116;--bs-tertiary-bg:#251b17;--bs-tertiary-bg-rgb:37,27,23;
  --bs-heading-color:#e9dfcf;--bs-link-color:#df6a51;--bs-link-color-rgb:223,106,81;--bs-link-hover-color:#f28a6e;--bs-link-hover-color-rgb:242,138,110;
  --bs-border-color:#51372f;--bs-border-color-translucent:rgba(169,154,141,.22);
  --jxy-control-bg:#120e0c;--jxy-disabled-bg:#2c211c;--jxy-disabled-text:#d1c3b3;
  --jxy-info-bg:#2a1b18;--jxy-info-text:#f0d8ca;--jxy-info-border:#754236;
  --jxy-code-bg:#100b09;--jxy-code-text:#eadfd2;--jxy-code-border:#51372f;--jxy-code-marker:#c84b34;--jxy-code-inline:#f0a080;
  --jxy-code-comment:#8f7f73;--jxy-code-keyword:#e58b75;--jxy-code-string:#c5b477;--jxy-code-number:#e0ad68;--jxy-code-title:#d49a7f;--jxy-code-built:#efb08f;--jxy-code-meta:#b78fa8;--jxy-code-delete:#e06a62;
  --jxy-tip-bg:#e9dfcf;--jxy-tip-text:#241712;--jxy-badge-bg:#b7a89a;--jxy-badge-active:#c84b34;--jxy-badge-text:#1a100d;
}
[data-jxy-theme-style="darkrealm"] body { background:radial-gradient(circle at 50% 110%,rgba(151,42,29,.22),transparent 36%),repeating-linear-gradient(135deg,rgba(255,255,255,.012) 0 2px,transparent 2px 7px),var(--jxy-page);background-attachment:fixed; }
[data-jxy-theme-style="darkrealm"] #header.navbar { border-bottom:1px solid #7d3a2f;box-shadow:0 8px 28px #000!important; }
[data-jxy-theme-style="darkrealm"] .x-card.card { border:1px solid #51372f;box-shadow:var(--jxy-shadow); }
[data-jxy-theme-style="darkrealm"] .card-title,[data-jxy-theme-style="darkrealm"] .card-thread h1 { font-family:Georgia,"Noto Serif SC",serif;letter-spacing:.015em; }
[data-jxy-theme-style="darkrealm"] .btn-primary { background:linear-gradient(#a83c2c,#641d18);border-color:#c36a54;box-shadow:inset 0 1px rgba(255,214,188,.18)!important; }
[data-jxy-theme-style="darkrealm"] .thread-nav-tabs .nav-link.active::after { background:linear-gradient(90deg,transparent,#c84b34,transparent);box-shadow:0 0 12px rgba(200,75,52,.55); }

/* 深色预设可读性修复：赛博霓虹与暗黑秘境同步英雄联盟风格的修复范围。 */
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .text-body { color:var(--jxy-text)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .text-body-secondary,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-text { color:var(--jxy-text-muted)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-control,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-select,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .input-group-text { color:var(--jxy-text);background-color:var(--jxy-control-bg);border-color:var(--jxy-border-strong); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-control::placeholder { color:var(--jxy-text-muted);opacity:.9; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-control:disabled,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .form-control[readonly] { color:var(--jxy-disabled-text);background-color:var(--jxy-disabled-bg);opacity:1; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .bg-light { color:var(--jxy-text)!important;background-color:var(--jxy-surface-muted)!important;box-shadow:inset 0 0 0 1px var(--jxy-border); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .alert-light { --bs-alert-color:var(--jxy-text);--bs-alert-bg:var(--jxy-surface-muted);--bs-alert-border-color:var(--jxy-border);color:var(--jxy-text);background-color:var(--jxy-surface-muted);border-color:var(--jxy-border)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .alert-info { --bs-alert-color:var(--jxy-info-text);--bs-alert-bg:var(--jxy-info-bg);--bs-alert-border-color:var(--jxy-info-border);color:var(--jxy-info-text);background-color:var(--jxy-info-bg);border-color:var(--jxy-info-border); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .alert-info .text-body-secondary,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .alert-light .text-body-secondary { color:var(--jxy-text-muted)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .table {
  --bs-table-color:var(--jxy-text);--bs-table-bg:transparent;--bs-table-border-color:var(--jxy-border);
  --bs-table-striped-color:var(--jxy-text);--bs-table-striped-bg:color-mix(in srgb,var(--jxy-accent) 5%,transparent);
  --bs-table-active-color:var(--jxy-text);--bs-table-active-bg:color-mix(in srgb,var(--jxy-accent) 13%,transparent);
  --bs-table-hover-color:var(--jxy-text);--bs-table-hover-bg:color-mix(in srgb,var(--jxy-accent) 9%,transparent);
  color:var(--jxy-text);
}
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content { color:var(--jxy-text);background-color:transparent; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content :where(p,ul,ol,li,h1,h2,h3,h4,h5,h6,strong,em,span) { color:var(--jxy-text)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content a { color:var(--jxy-accent-hover)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .discover-item span { color:var(--jxy-text)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-btn { color:var(--jxy-text-muted);background-color:var(--jxy-surface);border:1px solid var(--jxy-border); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-btn:hover { color:var(--jxy-text);border-color:var(--jxy-border-strong); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-badge { color:var(--jxy-badge-text)!important;font-size:12px;font-weight:700;box-shadow:0 0 0 2px var(--jxy-page); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-badge.bg-secondary { background-color:var(--jxy-badge-bg)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-badge.bg-primary { background-color:var(--jxy-badge-active)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-btn[data-tip]::before { color:var(--jxy-tip-text);background-color:var(--jxy-tip-bg);font-weight:700;box-shadow:0 4px 12px rgba(0,0,0,.42); }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .thread-sidebar-btn[data-tip]:hover::before { opacity:1; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content pre,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content pre.hljs,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content pre code,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content code.hljs,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .aie-codeblock-wrapper { color:var(--jxy-code-text)!important;background:var(--jxy-code-bg)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content pre { margin:.8rem 0;padding:14px 16px!important;border:1px solid var(--jxy-code-border);border-radius:var(--jxy-radius);box-shadow:inset 3px 0 0 var(--jxy-code-marker);overflow:auto; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content pre code { display:block;padding:0!important;border:0!important;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.9rem;line-height:1.65;white-space:pre; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content :not(pre)>code { color:var(--jxy-code-inline)!important;background:var(--jxy-surface-muted)!important;border:1px solid var(--jxy-code-border);padding:.12em .38em;border-radius:4px; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-comment,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-quote { color:var(--jxy-code-comment)!important;font-style:italic; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-keyword,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-selector-tag,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-doctag { color:var(--jxy-code-keyword)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-string,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-regexp,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-addition,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-attribute { color:var(--jxy-code-string)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-number,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-literal,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-variable,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-template-variable { color:var(--jxy-code-number)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-title,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-section,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-function,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-name { color:var(--jxy-code-title)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-built_in,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-type,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-class { color:var(--jxy-code-built)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-meta,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-symbol,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-bullet { color:var(--jxy-code-meta)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .hljs-deletion { color:var(--jxy-code-delete)!important; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .copy-code { color:var(--jxy-tip-text)!important;background:var(--jxy-code-marker)!important;border:1px solid var(--jxy-accent-hover)!important;border-radius:4px; }
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .copy-code i,
:is([data-jxy-theme-style="cyber"],[data-jxy-theme-style="darkrealm"]) .message.aie-content .copy-code svg { color:var(--jxy-tip-text)!important;fill:var(--jxy-tip-text)!important; }

/* 左侧导航模式与收缩控制 */
.jxy-theme-sidebar-tools { display: none; }
@media (min-width: 992px) {
  html.jxy-theme-sidebar-measuring body { visibility: hidden !important; }
  html.jxy-theme-sidebar-measuring .sidebar-left,
  html.jxy-theme-sidebar-measuring .jxy-theme-sidebar-column,
  html.jxy-theme-sidebar-measuring .jxy-theme-main-column { transition: none !important; }
  #body > .container > .row.g-4:has(.sidebar-left) { align-items: flex-start; flex-wrap: nowrap; }
  #body > .container > .row.g-4:has(.sidebar-left) > div:has(.sidebar-left),
  #body > .container > .row.g-4:has(.sidebar-left) > div:has(.sidebar-left) + div {
    transition: width .28s cubic-bezier(.2,.8,.2,1), flex-basis .28s cubic-bezier(.2,.8,.2,1);
    backface-visibility: hidden;
  }
  #body > .container > .row.g-4:has(.sidebar-left) > div:has(.sidebar-left) { flex: 0 0 16.666667%; width: 16.666667%; }
  #body > .container > .row.g-4:has(.sidebar-left) > div:has(.sidebar-left) + div { flex: 0 0 58.333333%; width: 58.333333%; max-width: none; }
  .sidebar-left .menu-text {
    display: inline-block;
    max-width: 180px;
    overflow: hidden;
    opacity: 1;
    transform: translateX(0);
    white-space: nowrap;
    vertical-align: middle;
    transition: max-width .24s cubic-bezier(.2,.8,.2,1), opacity .18s ease, transform .24s cubic-bezier(.2,.8,.2,1);
  }
  .sidebar-left .side-nav-title {
    max-height: 54px;
    overflow: hidden;
    opacity: 1;
    transition: max-height .24s cubic-bezier(.2,.8,.2,1), opacity .16s ease, margin .24s ease, padding .24s ease;
  }
  .jxy-theme-sidebar-tools {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-start;
    padding: 3px 4px 5px;
  }
  .jxy-theme-sidebar-toggle {
    width: 40px;
    height: 40px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 7px;
    color: #c9c9c6;
    background: transparent;
    font-size: 1rem;
    line-height: 1;
    transform: translateX(-3px);
    cursor: pointer;
    transition: color .15s ease, background-color .15s ease;
  }
  .jxy-theme-sidebar-toggle:hover { background: var(--jxy-surface-muted); color: #777773; }
  .jxy-theme-sidebar-toggle.is-active { color: #30302e; }
  [data-bs-theme="dark"] .jxy-theme-sidebar-toggle { color: #767676; }
  [data-bs-theme="dark"] .jxy-theme-sidebar-toggle:hover { color: #b8b8b8; }
  [data-bs-theme="dark"] .jxy-theme-sidebar-toggle.is-active { color: #f0f0f0; }

  [data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) {
    position: sticky;
    top: 66px;
    align-self: flex-start;
    box-sizing: border-box;
    height: calc(100vh - 66px);
    margin-top: -28px;
    overflow: hidden;
    padding-top: 0;
    padding-right: 18px;
    border-right: 1px solid var(--jxy-border);
  }
  [data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) > .mb-3 {
    height: 100%;
    margin-bottom: 0 !important;
  }
  html[data-jxy-theme-fixed-sidebar-ready="1"][data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) {
    position: relative;
    top: auto;
    height: auto;
    overflow: visible;
    padding-right: 0;
    border-right: 0;
  }
  html[data-jxy-theme-fixed-sidebar-ready="1"][data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) > .mb-3 {
    position: fixed;
    z-index: 1020;
    top: var(--jxy-theme-fixed-sidebar-top, 66px);
    bottom: var(--jxy-theme-fixed-sidebar-bottom, 0px);
    left: var(--jxy-theme-fixed-sidebar-left);
    width: var(--jxy-theme-fixed-sidebar-width);
    height: auto;
    box-sizing: border-box;
    margin: 0 !important;
    overflow: hidden;
    padding-left: 12px;
    padding-right: 18px;
    border-right: 1px solid var(--jxy-border);
  }
  html[data-jxy-theme-fixed-sidebar-ready="1"].jxy-theme-sidebar-collapsed[data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) > .mb-3 {
    padding-left: 8px;
    padding-right: 8px;
  }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left.x-card.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent;
    box-shadow: none !important;
  }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left.x-card.card:hover { border-color: transparent !important; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left #sidenav-menu { flex: 1 1 auto; min-height: 0; overflow: hidden; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav { height: 100%; box-sizing: border-box; margin: 0; padding: 4px 0 20px; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-title {
    margin: 10px 0 5px;
    padding: 12px 10px 4px;
    border-top: 1px solid var(--jxy-border);
    color: var(--jxy-text-muted);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .02em;
  }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-title:first-child { margin-top: 0; padding-top: 5px; border-top: 0; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-link {
    min-height: 40px;
    margin: 2px 0;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--jxy-text-muted);
    font-size: .9rem;
    line-height: 1.35;
  }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-link:hover { color: var(--jxy-text); background: var(--jxy-surface-muted); }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-item.active .side-nav-link,
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-link.active { color: var(--jxy-text); background: var(--jxy-surface-muted); font-weight: 650; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-link .menu-icon { width: 22px; min-width: 22px; color: var(--jxy-text-muted); font-size: 1rem; }
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-item.active .menu-icon,
  [data-jxy-theme-sidebar-mode="fixed"] .sidebar-left .side-nav-link:hover .menu-icon { color: var(--jxy-accent); }

  .jxy-theme-sidebar-collapsed #body > .container > .row.g-4 > div:has(.sidebar-left) {
    flex: 0 0 72px;
    width: 72px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .jxy-theme-sidebar-collapsed #body > .container > .row.g-4 > div:has(.sidebar-left) + div {
    flex: 0 0 calc(75% - 72px);
    width: calc(75% - 72px);
    max-width: none;
  }
  .jxy-theme-sidebar-collapsed .sidebar-left .menu-text {
    max-width: 0;
    opacity: 0;
    transform: translateX(-8px);
  }
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav-title {
    max-height: 0;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0;
    opacity: 0;
  }
  .jxy-theme-sidebar-collapsed .jxy-theme-sidebar-tools {
    width: 40px !important;
    min-width: 40px !important;
    justify-content: flex-start;
    margin: 0 !important;
    padding: 0 !important;
  }
  .jxy-theme-sidebar-tools {
    min-height: 40px !important;
    height: 40px !important;
  }
  html.jxy-theme-desktop-axis-ready .sidebar-left .jxy-theme-sidebar-toggle {
    position: fixed !important;
    left: var(--jxy-theme-fixed-toggle-left) !important;
    top: var(--jxy-theme-fixed-toggle-top) !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    transition: none !important;
    z-index: 1045;
  }
  .jxy-theme-sidebar-collapsed .sidebar-left #sidenav-menu,
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav,
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav-item {
    width: 40px !important;
    min-width: 40px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav-link {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    display: grid !important;
    place-items: center;
    gap: 0 !important;
    margin: 2px 0 !important;
    padding: 0 !important;
  }
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav-link .menu-icon {
    width: 24px !important;
    min-width: 24px !important;
    height: 24px;
    display: grid !important;
    place-items: center;
    margin: 0 !important;
    padding: 0 !important;
    text-align: center;
    line-height: 1;
    transform: none !important;
  }
  .sidebar-left .side-nav-link {
    /* 收缩状态按钮位置为永久基准；展开与收缩时导航图标都跟随该固定中轴。 */
    transform: translateX(var(--jxy-theme-nav-lock-x, 0px)) !important;
  }
  .jxy-theme-sidebar-collapsed .sidebar-left .side-nav-link .menu-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  [data-jxy-theme-sidebar-mode="fixed"] #body > .container > .row.g-4 > div:has(.sidebar-left) { margin-top: -18px; }
  #body > .container > .row.g-4:has(.sidebar-left) > div:has(.sidebar-left) + div { flex-basis: 83.333333%; width: 83.333333%; }
  .jxy-theme-sidebar-collapsed #body > .container > .row.g-4 > div:has(.sidebar-left) + div { flex-basis: calc(100% - 72px); width: calc(100% - 72px); }
}

/* 页面显示宽度：由插件设置中的“宽屏模式 / 窄屏模式”控制。 */
@media (min-width: 1200px) {
  html[data-jxy-theme-width-mode="wide"] :is(#body > .container, #header > .container, .bbs-footer > .container) {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(18px, 2vw, 36px);
    padding-right: clamp(18px, 2vw, 36px);
  }
  html[data-jxy-theme-width-mode="narrow"] :is(#body > .container, #header > .container, .bbs-footer > .container) {
    width: 100% !important;
    max-width: 1180px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* 右侧内容布局：Discourse 居中 */
@media (min-width: 1200px) {
  .jxy-theme-smart-right-sidebar {
    position: sticky !important;
    top: var(--jxy-theme-right-sticky-top, 16px);
    align-self: start;
    height: max-content;
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) {
    display: grid;
    grid-template-columns: 16.666667% minmax(18px, 1fr) minmax(0, 780px) minmax(260px, 340px) minmax(18px, 1fr);
    align-items: start;
    transition: grid-template-columns .28s cubic-bezier(.2,.8,.2,1);
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) > div:has(.sidebar-left, .thread-action-bar) {
    grid-column: 1;
    width: auto !important;
    max-width: none;
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) > div:has(.sidebar-left, .thread-action-bar) + div {
    grid-column: 3;
    width: auto !important;
    max-width: none;
    min-width: 0;
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) > div:has(.sidebar-left, .thread-action-bar) + div + div {
    grid-column: 4;
    width: auto !important;
    max-width: none;
    min-width: 0;
  }
  html[data-jxy-theme-content-layout="discourse"].jxy-theme-sidebar-collapsed #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) {
    grid-template-columns: 72px minmax(18px, 1fr) minmax(0, 780px) minmax(260px, 340px) minmax(18px, 1fr);
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) {
    display: grid;
    grid-template-columns: 16.666667% minmax(18px, 1fr) minmax(0, 900px) minmax(18px, 1fr);
    align-items: start;
    transition: grid-template-columns .28s cubic-bezier(.2,.8,.2,1);
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) > div:has(.sidebar-left, .thread-action-bar) {
    grid-column: 1;
    width: auto !important;
    max-width: none;
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) > div:has(.sidebar-left, .thread-action-bar) + div {
    grid-column: 3;
    width: auto !important;
    max-width: none;
    min-width: 0;
  }
  html[data-jxy-theme-content-layout="discourse"].jxy-theme-sidebar-collapsed #body > .container > .row.g-4:has(.sidebar-left, .thread-action-bar) {
    grid-template-columns: 72px minmax(18px, 1fr) minmax(0, 900px) minmax(18px, 1fr);
  }
}

/* 发帖、回复与编辑表单：Discourse 居中 */
@media (min-width: 992px) {
  html[data-jxy-theme-content-layout="discourse"] #body > .container > form#form[data-autosave] {
    width: min(100%, 1120px);
    margin-left: auto;
    margin-right: auto;
  }
}

/* 帖子详情操作栏：贴近居中的帖子主体 */
@media (min-width: 1200px) {
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.thread-action-bar),
  html[data-jxy-theme-content-layout="discourse"].jxy-theme-sidebar-collapsed #body > .container > .row.g-4:has(.thread-action-bar) {
    grid-template-columns: minmax(18px, 1fr) 72px minmax(0, 780px) minmax(260px, 340px) minmax(18px, 1fr);
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.thread-action-bar) > div:has(.thread-action-bar) {
    grid-column: 2;
  }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.thread-action-bar),
  html[data-jxy-theme-content-layout="discourse"].jxy-theme-sidebar-collapsed #body > .container > .row.g-4:has(.thread-action-bar) {
    grid-template-columns: minmax(18px, 1fr) 72px minmax(0, 900px) minmax(18px, 1fr);
  }
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.thread-action-bar) > div:has(.thread-action-bar) {
    grid-column: 2;
  }
}

/* 帖子详情操作栏：向左留出安全间距，避免覆盖帖子 */
@media (min-width: 992px) {
  html[data-jxy-theme-content-layout="discourse"] #body > .container > .row.g-4:has(.thread-action-bar) > div:has(.thread-action-bar) {
    /* 帖子页左侧点赞、收藏、浏览操作栏整体向右移动 10px。 */
    transform: translateX(-82px);
  }
}


/* 首页顶部 Discourse 导航横幅：桌面端仅占中栏与右栏，左侧导航保持原位 */
.jxy-theme-home-hero {
  position: relative;
  isolation: isolate;
  width: min(1188px, 100%);
  margin: -18px auto 28px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--jxy-radius);
  background: transparent;
  color: var(--jxy-text);
}
.jxy-theme-home-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  padding: 32px 24px 18px;
  box-sizing: border-box;
  text-align: center;
}
.jxy-theme-home-hero h1 {
  margin: 0;
  color: var(--jxy-text);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.1;
  font-weight: 850;
  letter-spacing: -.045em;
}
.jxy-theme-home-hero h1 span { font-weight: 900; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .jxy-theme-home-hero--title-gradient h1 {
    width: fit-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    color: transparent;
    background: linear-gradient(90deg, #0897a7 0%, #89cf35 22%, #ffd000 42%, #ff7a18 61%, #f72585 79%, #20bff3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    clip-path: inset(0 100% 0 0);
    animation: jxy-theme-home-title-write 1.65s cubic-bezier(.22,.8,.3,1) .12s forwards;
  }
}
@keyframes jxy-theme-home-title-write {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
.jxy-theme-home-search {
  width: min(500px, 100%);
  min-height: 54px;
  margin: 28px auto 42px;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--jxy-border);
  border-radius: 28px;
  background: var(--jxy-surface);
  box-shadow: var(--jxy-shadow);
}
.jxy-theme-home-search > i { color: var(--jxy-text-muted); font-size: 1.25rem; }
.jxy-theme-home-search input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0 2px;
  border: 0;
  outline: 0;
  color: var(--jxy-text);
  background: transparent;
  font: inherit;
}
.jxy-theme-home-search input::placeholder { color: var(--jxy-text-muted); opacity: 1; }
.jxy-theme-home-search button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--jxy-text-muted);
  background: transparent;
  font-size: 1.15rem;
}
.jxy-theme-home-search button:hover { color: var(--jxy-accent); background: var(--jxy-accent-soft); }
.jxy-theme-home-search:focus-within { border-color: var(--jxy-accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--jxy-accent) 16%, transparent); }
.jxy-theme-home-hero__actions {
  width: calc(100% + 48px);
  margin-left: -24px;
  margin-right: -24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.jxy-theme-home-hero__action {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--jxy-border);
  border-radius: var(--jxy-radius);
  color: var(--jxy-text);
  background: var(--jxy-surface);
  box-shadow: var(--jxy-shadow);
  font-size: 1.08rem;
  font-weight: 750;
  text-align: left;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease;
}
.jxy-theme-home-hero__action:hover { color: var(--jxy-text); transform: translateY(-2px); border-color: var(--jxy-accent); }
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__action {
  justify-content: space-between;
  gap: 18px;
  padding: 14px 22px;
  border: 0;
  color: #fff;
  background: linear-gradient(to right, rgb(53, 139, 255), rgb(21, 198, 255));
  box-shadow: 0 10px 24px rgba(53, 139, 255, .22);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__action--purple {
  background: linear-gradient(to right, rgb(255, 102, 85), rgb(255, 191, 55));
  box-shadow: 0 10px 24px rgba(255, 132, 70, .22);
}
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__action--pink {
  background: linear-gradient(to right, rgb(24, 231, 174), rgb(30, 235, 235));
  box-shadow: 0 10px 24px rgba(26, 220, 190, .22);
}
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__action:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(28, 48, 84, .24);
  filter: saturate(1.08) brightness(1.03);
}
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__action:focus-visible {
  outline: 3px solid color-mix(in srgb, #fff 82%, transparent);
  outline-offset: -6px;
}
.jxy-theme-home-hero__icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 0;
  color: var(--jxy-accent);
  background: transparent;
  box-shadow: none;
  font-size: 1.75rem;
}
.jxy-theme-home-hero--gradient .jxy-theme-home-hero__icon { order: 2; color: #fff; font-size: 2rem; opacity: .96; }
.jxy-theme-home-hero__all {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--jxy-accent);
  font-weight: 700;
  text-decoration: none;
}
.jxy-theme-home-hero__all:hover { color: var(--jxy-accent-hover); }

/* 横幅绝对定位到中栏 + 右栏；只给这两栏预留高度，不改变左侧导航。 */
@media (min-width: 992px) {
  #body > .container:has(> .jxy-theme-home-hero:not([hidden])) { position: relative; }
  #body > .container > .jxy-theme-home-hero:not([hidden]) {
    position: absolute;
    z-index: 3;
    top: 28px;
    left: var(--jxy-theme-home-hero-left, 16.666667%);
    width: var(--jxy-theme-home-hero-width, 83.333333%);
    margin: 0;
  }
  #body > .container:has(> .jxy-theme-home-hero:not([hidden])) > .row.g-4 > div:nth-child(2),
  #body > .container:has(> .jxy-theme-home-hero:not([hidden])) > .row.g-4 > div:nth-child(3) {
    padding-top: var(--jxy-theme-home-hero-space, 410px);
  }
}
@media (max-width: 991.98px) {
  .jxy-theme-home-hero { width: 100%; margin: -18px auto 20px; }
}
@media (max-width: 767.98px) {
  .jxy-theme-home-hero__inner { width: 100%; padding: 24px 16px 16px; }
  .jxy-theme-home-hero h1 { font-size: clamp(1.65rem, 8vw, 2.25rem); line-height: 1.16; }
  .jxy-theme-home-search { width: 100%; min-height: 52px; margin: 20px auto 24px; grid-template-columns: 44px 1fr 44px; }
  .jxy-theme-home-search input { height: 50px; font-size: .92rem; }
  .jxy-theme-home-hero__actions {
    width: calc(100% + 32px);
    margin-left: -16px;
    margin-right: -16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .jxy-theme-home-hero__action {
    min-width: 0;
    min-height: 60px;
    gap: 7px;
    padding: 8px;
    font-size: .95rem;
    white-space: nowrap;
  }
  .jxy-theme-home-hero--gradient .jxy-theme-home-hero__action { padding: 8px 12px; }
  .jxy-theme-home-hero__icon { width: 28px; height: 38px; flex: 0 0 28px; font-size: 1.35rem; }
  .jxy-theme-home-hero__all { min-height: 42px; margin-top: 6px; }
}
@media (max-width: 359.98px) {
  .jxy-theme-home-hero__inner { padding: 20px 12px 14px; }
  .jxy-theme-home-hero h1 { font-size: clamp(1.45rem, 7.8vw, 1.8rem); }
  .jxy-theme-home-search { margin: 18px auto 20px; grid-template-columns: 40px minmax(0, 1fr) 40px; }
  .jxy-theme-home-search input { font-size: .84rem; }
  .jxy-theme-home-search button { width: 40px; height: 40px; }
  .jxy-theme-home-hero__actions { width: calc(100% + 24px); margin-left: -12px; margin-right: -12px; gap: 6px; }
  .jxy-theme-home-hero__action { min-height: 54px; gap: 5px; padding: 6px; font-size: .88rem; }
  .jxy-theme-home-hero__icon { width: 24px; height: 34px; flex-basis: 24px; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .jxy-theme-home-hero__action { transition: none; }
  .jxy-theme-home-hero--title-gradient h1 { clip-path: none; animation: none; }
}



/* 首页底部精选图文区：沿用当前主题变量，自动适配全部 UI。 */
.jxy-theme-featured{box-sizing:border-box;width:var(--jxy-theme-featured-width,var(--jxy-theme-home-hero-width,83.333333%));margin:48px 0 34px var(--jxy-theme-featured-left,var(--jxy-theme-home-hero-left,16.666667%));padding:0;color:var(--jxy-text)}
.jxy-theme-featured__title{display:flex;align-items:center;justify-content:center;gap:10px;margin:0 0 26px;font-size:1.75rem;font-weight:850;color:var(--jxy-text);letter-spacing:-.02em}.jxy-theme-featured__title i{font-size:2rem;color:var(--jxy-accent)}
.jxy-theme-featured__cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.jxy-theme-featured-card{display:flex;min-width:0;min-height:306px;flex-direction:column;overflow:hidden;border:1px solid var(--jxy-border);border-radius:16px;background:var(--jxy-surface);color:var(--jxy-text);box-shadow:var(--jxy-shadow);text-decoration:none;transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease}.jxy-theme-featured-card:hover{color:var(--jxy-text);transform:translateY(-4px);border-color:var(--jxy-accent);box-shadow:0 18px 40px color-mix(in srgb,var(--jxy-accent) 18%,transparent)}
.jxy-theme-featured-card__media{display:block;position:relative;width:100%;height:auto;aspect-ratio:16/9;overflow:hidden;background:var(--jxy-accent-soft)}.jxy-theme-featured-card__media:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,color-mix(in srgb,var(--jxy-surface) 24%,transparent))}.jxy-theme-featured-card__media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;transition:transform .35s ease}.jxy-theme-featured-card:hover img{transform:scale(1.045)}
.jxy-theme-featured-card__body{display:flex;flex:1;flex-direction:column;padding:16px 17px 17px}.jxy-theme-featured-card__meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:var(--jxy-accent);font-size:.78rem;font-weight:700}.jxy-theme-featured-card__meta span:last-child{display:flex;align-items:center;gap:4px;color:var(--jxy-text-muted)}.jxy-theme-featured-card__body strong{display:-webkit-box;overflow:hidden;min-height:3em;font-size:1rem;line-height:1.5;-webkit-box-orient:vertical;-webkit-line-clamp:2}.jxy-theme-featured-card__link{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:14px;color:var(--jxy-accent);font-size:.88rem;font-weight:750}
.jxy-theme-featured__cta{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;margin-top:30px;padding:17px 20px;border:1px solid var(--jxy-accent);border-radius:16px;background:color-mix(in srgb,var(--jxy-accent) 8%,var(--jxy-surface));color:var(--jxy-text);text-decoration:none}.jxy-theme-featured__cta:hover{color:var(--jxy-text);background:color-mix(in srgb,var(--jxy-accent) 13%,var(--jxy-surface))}.jxy-theme-featured__cta-icon{display:grid;width:42px;height:42px;place-items:center;border-radius:50%;background:var(--jxy-accent-soft);color:var(--jxy-accent);font-size:1.3rem}.jxy-theme-featured__cta-copy{display:flex;min-width:0;flex-direction:column;gap:4px}.jxy-theme-featured__cta-copy strong{font-size:1.05rem}.jxy-theme-featured__cta-copy small{overflow:hidden;color:var(--jxy-text-muted);text-overflow:ellipsis;white-space:nowrap}.jxy-theme-featured__cta-button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:9px 16px;border-radius:999px;background:var(--jxy-accent);color:var(--jxy-accent-contrast,#fff);font-size:.88rem;font-weight:750;white-space:nowrap}
@media(max-width:1199.98px){.jxy-theme-featured{width:100%;margin:38px auto 28px;padding:0}}
@media(max-width:767.98px){.jxy-theme-featured{margin-top:28px}.jxy-theme-featured__title{margin-bottom:18px;font-size:1.4rem}.jxy-theme-featured__cards{grid-template-columns:1fr;gap:14px}.jxy-theme-featured-card{min-height:0}.jxy-theme-featured-card__media{height:auto;aspect-ratio:16/9}.jxy-theme-featured__cta{grid-template-columns:auto minmax(0,1fr);padding:15px}.jxy-theme-featured__cta-button{grid-column:1/-1;width:100%}.jxy-theme-featured__cta-copy small{white-space:normal}}
@media(prefers-reduced-motion:reduce){.jxy-theme-featured-card,.jxy-theme-featured-card__media img{transition:none}}

/* 前台用户 UI 样式切换器：显示在原主题明暗设置按钮左侧。 */
#header .jxy-theme-ui-switcher { position: relative; }
#header .jxy-theme-ui-menu {
  width: min(390px, calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  padding: 0;
  overflow: hidden;
  color: var(--jxy-text);
  background: color-mix(in srgb, var(--jxy-surface) 96%, transparent);
  border: 1px solid var(--jxy-border) !important;
  border-radius: max(10px, var(--jxy-radius));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 46px rgba(0,0,0,.2) !important;
}
#header .jxy-theme-ui-menu__head,
#header .jxy-theme-ui-menu__foot { display:flex;align-items:center;justify-content:space-between;gap:14px; }
#header .jxy-theme-ui-menu__head { padding:15px 16px 12px;border-bottom:1px solid var(--jxy-border); }
#header .jxy-theme-ui-menu__head strong,
#header .jxy-theme-ui-menu__head small { display:block; }
#header .jxy-theme-ui-menu__head small { margin-top:2px;color:var(--jxy-text-muted);font-size:.76rem; }
#header .jxy-theme-ui-menu__count { flex:0 0 auto;padding:3px 8px;color:var(--jxy-accent);background:var(--jxy-accent-soft);border-radius:999px;font-size:.72rem;font-weight:700; }
#header .jxy-theme-ui-menu__grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:12px;max-height:min(60vh,470px);overflow:auto; }
#header .jxy-theme-ui-option { position:relative;min-width:0;padding:10px;text-align:left;color:var(--jxy-text);background:var(--jxy-surface);border:1px solid var(--jxy-border);border-radius:max(7px,calc(var(--jxy-radius) - 2px));transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease; }
#header .jxy-theme-ui-option:hover { transform:translateY(-1px);border-color:var(--jxy-border-strong); }
#header .jxy-theme-ui-option.is-active { border-color:var(--jxy-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--jxy-accent) 18%,transparent); }
#header .jxy-theme-ui-option__preview { display:flex;align-items:center;gap:5px;height:28px;margin-bottom:8px;padding:6px;border-radius:5px;background:linear-gradient(135deg,var(--jxy-accent-soft),var(--jxy-surface-muted));overflow:hidden; }
#header .jxy-theme-ui-option__preview>span { display:block;height:6px;border-radius:4px;background:var(--jxy-accent); }
#header .jxy-theme-ui-option__preview>span:first-child { width:28%; }
#header .jxy-theme-ui-option__preview>span:last-child { width:52%;opacity:.48; }
#header .jxy-theme-ui-option__copy strong,
#header .jxy-theme-ui-option__copy small { display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; }
#header .jxy-theme-ui-option__copy strong { padding-right:19px;font-size:.8rem; }
#header .jxy-theme-ui-option__copy strong .ti { margin-right:4px;color:var(--jxy-accent); }
#header .jxy-theme-ui-option__copy small { margin-top:2px;color:var(--jxy-text-muted);font-size:.67rem; }
#header .jxy-theme-ui-option__check { position:absolute;right:8px;bottom:26px;color:var(--jxy-accent);font-size:15px;opacity:0;transform:scale(.7);transition:opacity .15s ease,transform .15s ease; }
#header .jxy-theme-ui-option.is-active .jxy-theme-ui-option__check { opacity:1;transform:scale(1); }
#header .jxy-theme-ui-option__preview--modern { background:linear-gradient(135deg,#eae5ff,#f7f2ff); }
#header .jxy-theme-ui-option__preview--modern>span { background:#7c5cff; }
#header .jxy-theme-ui-option__preview--pixel { border-radius:0;background:#fff1d7;box-shadow:3px 3px 0 #6e4f35; }
#header .jxy-theme-ui-option__preview--pixel>span { border-radius:0;background:#e98024; }
#header .jxy-theme-ui-option__preview--glass { background:linear-gradient(135deg,rgba(70,170,255,.6),rgba(174,95,255,.45)); }
#header .jxy-theme-ui-option__preview--glass>span { background:#fff; }
#header .jxy-theme-ui-option__preview--lol { background:linear-gradient(135deg,#071a2f,#0b3551);border:1px solid #c99b3f; }
#header .jxy-theme-ui-option__preview--lol>span { background:#d8b65b; }
#header .jxy-theme-ui-option__preview--cyber { background:linear-gradient(135deg,#090818,#251048);clip-path:polygon(0 0,94% 0,100% 30%,100% 100%,6% 100%,0 70%); }
#header .jxy-theme-ui-option__preview--cyber>span:first-child { background:#00f5ff; }
#header .jxy-theme-ui-option__preview--cyber>span:last-child { background:#ff2bd6; }
#header .jxy-theme-ui-option__preview--blockcraft { border-radius:0;background:linear-gradient(#65a83f 0 38%,#795236 38%);box-shadow:3px 3px 0 #2e3929; }
#header .jxy-theme-ui-option__preview--blockcraft>span { background:#f4ecd7; }
#header .jxy-theme-ui-option__preview--darkrealm { background:radial-gradient(circle at 50% 120%,#9c2419,#17100f 58%);border:1px solid #7a3329; }
#header .jxy-theme-ui-option__preview--darkrealm>span { background:#d96a50; }
#header .jxy-theme-ui-menu__foot { padding:11px 12px;border-top:1px solid var(--jxy-border);background:var(--jxy-surface-muted); }
#header .jxy-theme-ui-menu__foot>span { color:var(--jxy-text-muted);font-size:.7rem; }
#header .jxy-theme-ui-menu__foot .btn { flex:0 0 auto;color:var(--jxy-text);border-color:var(--jxy-border-strong); }
#header .jxy-theme-ui-menu__foot .btn:hover { color:var(--jxy-surface);background:var(--jxy-accent);border-color:var(--jxy-accent); }
@media(max-width:575.98px){
  #header .jxy-theme-ui-menu { position:fixed!important;top:62px!important;right:10px!important;left:10px!important;width:auto;max-width:none;transform:none!important; }
  #header .jxy-theme-ui-menu__grid { max-height:55vh; }
}
@media(max-width:379.98px){
  #header .jxy-theme-ui-menu__grid { grid-template-columns:1fr; }
}
@media(prefers-reduced-motion:reduce){
  #header .jxy-theme-ui-option { transition:none; }
}



/* 手机端：复制 PC 左侧导航内容的独立抽屉，宽度为视口三分之二。 */
.jxy-theme-mobile-sidebar-head,
.jxy-theme-mobile-sidebar-backdrop,
.jxy-theme-mobile-drawer { display: none; }
@media (max-width: 991.98px) {
  .jxy-theme-mobile-drawer {
    display: flex;
    position: fixed;
    z-index: 2000;
    top: 0;
    bottom: 0;
    left: 0;
    width: 66.666667vw;
    max-width: 66.666667vw;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
    color: var(--jxy-text);
    background: var(--jxy-surface);
    border-right: 1px solid var(--jxy-border);
    box-shadow: 12px 0 32px rgba(0,0,0,.16);
    transform: translateX(-105%);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s;
  }
  html.jxy-theme-mobile-sidebar-open .jxy-theme-mobile-drawer {
    visibility: visible;
    transform: translateX(0);
    transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s;
  }
  .jxy-theme-mobile-sidebar-head {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 auto;
    gap: 12px;
    padding: 8px 12px 8px 16px;
    border-bottom: 1px solid var(--jxy-border);
  }
  .jxy-theme-mobile-sidebar-head__title { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--jxy-text); font-size: 1.05rem; font-weight: 650; }
  .jxy-theme-mobile-sidebar-head__title .ti { color: var(--jxy-accent); font-size: 1.3rem; }
  .jxy-theme-mobile-sidebar-close {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: var(--jxy-text-muted);
    background: var(--jxy-surface-muted);
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
  }
  .jxy-theme-mobile-sidebar-close:hover,
  .jxy-theme-mobile-sidebar-close:focus-visible { color: var(--jxy-text); background: color-mix(in srgb, var(--jxy-surface-muted) 72%, var(--jxy-border)); }
  .jxy-theme-mobile-drawer__content {
    flex: 1 1 auto;
    min-height: 0;
    padding: 8px 12px max(18px, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .jxy-theme-mobile-drawer__status { padding: 24px 10px; color: var(--jxy-text-muted); text-align: center; font-size: .88rem; }
  .jxy-theme-mobile-drawer__content > * { display: block !important; visibility: visible !important; opacity: 1 !important; }
  .jxy-theme-mobile-drawer .jxy-theme-sidebar-tools,
  .jxy-theme-mobile-drawer .jxy-theme-mobile-sidebar-head { display: none; }
  .jxy-theme-mobile-drawer > .jxy-theme-mobile-sidebar-head { display: flex; }
  .jxy-theme-mobile-drawer .side-nav { display: block !important; margin: 0; padding: 4px 0 20px; }
  .jxy-theme-mobile-drawer .side-nav-title { display: block !important; margin: 10px 0 5px; padding: 12px 10px 4px; color: var(--jxy-text-muted); font-size: .76rem; font-weight: 700; }
  .jxy-theme-mobile-drawer .side-nav-item { display: block !important; }
  .jxy-theme-mobile-drawer .side-nav-link { display: flex !important; min-height: 44px; margin: 2px 0; padding: 10px; align-items: center; border-radius: 8px; color: var(--jxy-text-muted); font-size: .92rem; text-decoration: none; }
  .jxy-theme-mobile-drawer .side-nav-link:hover,
  .jxy-theme-mobile-drawer .side-nav-link.active,
  .jxy-theme-mobile-drawer .side-nav-item.active .side-nav-link { color: var(--jxy-text); background: var(--jxy-surface-muted); }
  .jxy-theme-mobile-drawer .side-nav-link .menu-icon { width: 24px; min-width: 24px; margin-right: 8px; color: var(--jxy-text-muted); text-align: center; }
  .jxy-theme-mobile-sidebar-backdrop {
    position: fixed;
    z-index: 1990;
    inset: 0;
    width: 100%;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(0,0,0,.36);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  html.jxy-theme-mobile-sidebar-open .jxy-theme-mobile-sidebar-backdrop { display: block; opacity: 1; pointer-events: auto; }
  html.jxy-theme-mobile-sidebar-open body { overflow: hidden; }
}
