@charset "utf-8";

:root {
  --jx-bg: #f4f6f9;
  --jx-surface: #ffffff;
  --jx-text: #1a1d23;
  --jx-muted: #5c6370;
  --jx-border: #e2e6ee;
  --jx-blue: #3b82f6;
  --jx-blue-dim: #2563eb;
  --jx-green: #22c55e;
  --jx-orange: #f97316;
  --jx-radius: 12px;
  --jx-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  --jx-header-h: 72px;
  --jx-maxw: 1360px;
  /* 侧栏模块间距：用 flex gap 控制，避免侧栏列被拉高后视觉上的「大块空白」 */
  --jx-sidebar-gap: 12px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--jx-header-h) + 12px);
  overflow-x: visible;
  overflow-y: auto;
}

body {
  margin: 0;
  overflow-x: visible;
  font-family: "Segoe UI", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--jx-text);
  background: var(--jx-bg);
}

/* 页面风格主题（与昼夜模式并存） */
html.jxu-style-mist body {
  background:
    radial-gradient(1200px 600px at 18% -10%, rgba(176, 196, 206, 0.45), transparent 56%),
    radial-gradient(1000px 540px at 84% -8%, rgba(195, 207, 216, 0.42), transparent 58%),
    linear-gradient(180deg, #edf2f5 0%, #e7edf1 42%, #e6ebf0 100%);
}

html.jxu-style-mist .jx-header {
  background: rgba(243, 247, 250, 0.92);
  border-bottom-color: #d9e1e7;
}

html.jxu-style-mist .jx-card,
html.jxu-style-mist .jxu-card,
html.jxu-style-mist .jx-single-body,
html.jxu-style-mist .jx-sidebar .function {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d9e1e7;
}

html.jxu-style-future body {
  background:
    radial-gradient(960px 520px at 12% -8%, rgba(56, 189, 248, 0.2), transparent 58%),
    radial-gradient(960px 520px at 88% -10%, rgba(99, 102, 241, 0.18), transparent 60%),
    linear-gradient(180deg, #e8f5ff 0%, #e9f0ff 40%, #e8eefc 100%);
}

html.jxu-style-future .jx-header {
  background: rgba(236, 245, 255, 0.9);
  border-bottom-color: rgba(56, 189, 248, 0.45);
}

html.jxu-style-future .jx-card,
html.jxu-style-future .jxu-card,
html.jxu-style-future .jx-single-body,
html.jxu-style-future .jx-sidebar .function {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.16), 0 14px 34px rgba(30, 41, 59, 0.08);
}

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

a:hover {
  color: var(--jx-blue-dim);
  text-decoration: underline;
}

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

.jx-skip {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.jx-wrap {
  max-width: var(--jx-maxw);
  margin: 0 auto;
  padding: 0 18px;
}

/* 顶部广告位 */
#jx-ad-top {
  min-height: 0;
}

#jx-ad-top.jx-ad-slot {
  margin: 0 auto;
  max-width: var(--jx-maxw);
  padding: 10px 18px 0;
}

/* 固定导航（高度随内容，避免多行菜单挤出容器） */
.jx-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--jx-header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--jx-border);
  backdrop-filter: blur(10px);
}

.jx-header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--jx-header-h);
  padding: 10px 0;
}

.jx-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-inline-start: 14px;
  font-weight: 700;
  color: var(--jx-text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.jx-logo:hover {
  text-decoration: none;
  color: var(--jx-blue);
}

.jx-logo > img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.jx-logo-text small {
  display: block;
  font-weight: 400;
  font-size: 13px;
  color: var(--jx-muted);
}

.jx-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.jx-mobile-sidebar-head,
.jx-mobile-sidebar-user,
.jx-mobile-sidebar-title,
.jx-mobile-sidebar-modules,
.jx-nav-mask {
  display: none;
}

#mobile-sidebar,
#sidebar-mask {
  display: none;
}

.jxu-float-tools {
  position: fixed;
  right: 14px;
  top: 62%;
  transform: translateY(-50%);
  z-index: 1180;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jxu-float-tools__btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(232, 240, 253, 0.92) 100%);
  color: #1e3a8a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.18);
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity 0.28s ease, transform 0.28s ease, box-shadow 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.jxu-float-tools__btn:hover {
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
  color: #1d4ed8;
}

.jxu-float-tools__btn:active {
  transform: translateY(1px) scale(0.98);
}

.jxu-float-tools.is-idle .jxu-float-tools__btn {
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
}

.jxu-float-tools__btn.is-hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
}

html.theme-dark .jxu-float-tools__btn {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(71, 85, 105, 0.86) 0%, rgba(51, 65, 85, 0.9) 100%);
  color: #e2e8f0;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.42);
}

html.theme-dark .jxu-float-tools__btn:hover {
  border-color: rgba(148, 163, 184, 0.44);
  color: #f8fafc;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.56);
}

body.jx-nav-drawer-open {
  overflow: hidden;
}
body.jx-nav-drawer-open .jxu-float-tools {
  opacity: 0;
  pointer-events: none;
}

body.index .jx-main .breadcrumb,
body.index .jx-main .jx-breadcrumb {
  display: none !important;
}

/* 仅顶层菜单：单行横向滚动，避免子级 ul 被当成同一行 flex */
.jx-nav > ul {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 2px 6px;
  list-style: none;
  margin: 0;
  padding: 0 4px;
  max-width: 100%;
  overflow-x: visible;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.jx-nav > ul::-webkit-scrollbar {
  display: none;
}

.jx-nav > ul > li {
  position: relative;
  flex: 0 0 auto;
  list-style: none;
}
.jx-nav > ul > li::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 10px;
}

/* 下拉子菜单（后台导航含多级时） */
.jx-nav li ul {
  position: absolute;
  left: 0;
  top: calc(100% + 2px);
  margin: 0;
  padding: 6px 0;
  min-width: 200px;
  list-style: none;
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: 10px;
  box-shadow: var(--jx-shadow);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease, visibility 0.12s ease;
}

.jx-nav li:hover > ul,
.jx-nav li:focus-within > ul {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.jx-nav li ul li {
  list-style: none;
}

.jx-nav li ul a {
  display: block;
  padding: 8px 14px;
  border-radius: 0;
  white-space: nowrap;
}

.jx-nav li ul a:hover {
  background: rgba(59, 130, 246, 0.08);
}

.jx-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--jx-text);
  font-size: 15px;
}

.jx-nav > ul > li > a {
  white-space: nowrap;
}

.jx-nav li.jx-nav-item--has-sub > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 5px;
  font-size: 11px;
  line-height: 1;
  opacity: 0.72;
  transform: translateY(-1px);
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.jx-nav li.jx-nav-item--has-sub:hover > a::after,
.jx-nav li.jx-nav-item--has-sub:focus-within > a::after {
  opacity: 1;
  transform: translateY(-1px) rotate(180deg);
}

.jx-nav > ul > li > a:hover {
  background: rgba(59, 130, 246, 0.1);
  text-decoration: none;
}

.jx-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.jx-search {
  display: flex;
  align-items: center;
  background: var(--jx-bg);
  border: 1px solid var(--jx-border);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  min-width: 0;
}

.jx-search input[type="text"] {
  border: 0;
  background: transparent;
  outline: none;
  width: 140px;
  font-size: 14px;
  color: var(--jx-text);
}

.jx-search button {
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--jx-blue);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
}

.jx-search button:hover {
  background: var(--jx-blue-dim);
}

.jx-top-search {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.jx-top-search .jx-search {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: 320px;
  max-width: min(320px, calc(100vw - 24px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  box-shadow: var(--jx-shadow);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.jx-top-search .jx-search input[type="text"] {
  width: 220px;
}

.jx-top-search.is-open .jx-search {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.jx-top-search.is-open .jx-search-icon {
  border-color: var(--jxu-accent, #007bff);
}

.jx-theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.jx-fx-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

.jx-style-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

.jx-music-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  transition: all 0.2s ease;
}

.jx-music-toggle.is-playing {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.32);
}

html.jxu-style-mist .jx-fx-toggle {
  border-color: #c6d3dc;
  background: rgba(247, 251, 255, 0.95);
}

html.jxu-style-future .jx-fx-toggle {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18);
  background: rgba(237, 246, 255, 0.95);
}

html.jxu-style-mist .jx-style-toggle {
  border-color: #c6d3dc;
  background: rgba(247, 251, 255, 0.95);
}

html.jxu-style-future .jx-style-toggle {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18);
  background: rgba(237, 246, 255, 0.95);
}

html.jxu-style-mist .jx-music-toggle {
  border-color: #c6d3dc;
  background: rgba(247, 251, 255, 0.95);
}

html.jxu-style-future .jx-music-toggle {
  border-color: rgba(56, 189, 248, 0.48);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.18);
  background: rgba(237, 246, 255, 0.95);
}

.jx-fx-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 35;
}

.jx-fx-canvas {
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.jx-fx-item {
  position: absolute;
  top: -12vh;
  user-select: none;
  will-change: transform, opacity;
  animation-name: jx-fx-fall;
  animation-timing-function: linear;
  animation-iteration-count: 1;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.08));
}

.jx-fx-item--snow {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.75);
}

.jx-fx-item--leaf {
  transform-origin: center center;
  animation-name: jx-fx-fall-rotate;
}

.jx-fx-item--sakura {
  animation-name: jx-fx-fall-sway;
}

@keyframes jx-fx-fall {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--jx-fx-drift, 0px), 110vh, 0) rotate(180deg);
    opacity: 0.2;
  }
}

@keyframes jx-fx-fall-rotate {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--jx-fx-drift, 0px), 110vh, 0) rotate(520deg);
    opacity: 0.22;
  }
}

@keyframes jx-fx-fall-sway {
  0% {
    transform: translate3d(0, -10vh, 0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  50% {
    transform: translate3d(calc(var(--jx-fx-drift, 0px) * 0.45), 50vh, 0) rotate(120deg);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(var(--jx-fx-drift, 0px), 110vh, 0) rotate(280deg);
    opacity: 0.2;
  }
}

.jx-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

/* 布局 */
.jx-mainlayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  padding: 24px 0 48px;
  align-items: start;
  align-content: start;
}

.jx-mainlayout.no-sidebar {
  grid-template-columns: 1fr;
}

/* 文章页：左侧内容自适应填满，右栏适度加宽，减少两栏视觉空隙 */
body.jxu-body.single .jx-mainlayout {
  grid-template-columns: minmax(0, 1fr) clamp(320px, 27vw, 360px);
  gap: 14px;
}

/* 文章页右侧模块顶部与正文板块顶部对齐 */
body.jxu-body.single .jx-sidebar {
  margin-top: 56px;
}

body.jxu-body.single .jx-sidebar-inner {
  top: calc(var(--jx-header-h) + 24px);
}

/* 覆盖 ultimate.css 的 max-width:1200，避免左列未占满时产生大空隙 */
body.jxu-body.single .jx-main.jxu-single-wrap {
  max-width: none;
  width: 100%;
}

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

/* 侧栏列与主栏同高：便于内层 sticky 的止点 = 主栏底（含评论 #comments），不会压到页脚 */
.jx-sidebar {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

/* 真正吸附的是内层：在整列高度内 position:sticky，顶到导航下沿、底不越过主栏（含评论区）下沿 */
.jx-sidebar-inner {
  position: sticky;
  top: calc(var(--jx-header-h) + 16px);
  flex: 0 0 auto;
  align-self: flex-start;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--jx-sidebar-gap);
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

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

/* 面包屑 */
.jx-breadcrumb {
  font-size: 14px;
  color: var(--jx-muted);
  padding: 6px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.jx-breadcrumb__here {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--jx-muted);
}

.jx-breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.jx-breadcrumb li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.jx-breadcrumb li::after {
  content: ">";
  margin-left: 4px;
  color: var(--jx-border);
}

.jx-breadcrumb li:last-child::after {
  content: "";
  margin: 0;
}

.jx-breadcrumb a {
  color: var(--jx-muted);
  text-decoration: none;
}

.jx-breadcrumb__home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1e40af;
}

.jx-breadcrumb__homeicon {
  font-size: 14px;
  line-height: 1;
}

.jx-breadcrumb__hometext {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.jx-breadcrumb__home:hover {
  background: rgba(59, 130, 246, 0.18);
}

.jx-breadcrumb a:hover {
  color: var(--jx-text);
}

.jx-breadcrumb li:last-child a {
  color: var(--jx-text);
  pointer-events: none;
  text-decoration: none;
}

body.jxu-body.single .jx-single-breadcrumb {
  display: flex;
  justify-content: flex-start;
  margin: 0 0 10px;
}

body.jxu-body.single .jx-single-breadcrumb .jx-breadcrumb {
  justify-content: flex-start;
  text-align: left;
}

/* 列表页标题条 */
.jx-page-head {
  margin-bottom: 18px;
}

.jx-page-title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.jx-page-desc {
  margin: 0;
  font-size: 14px;
  color: var(--jx-muted);
}

/* 卡片网格 */
.jx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

/* 分类列表：单列交错大图卡片 */
.jx-grid--cat-zigzag {
  grid-template-columns: 1fr;
  gap: 22px;
}

.jx-card {
  background: var(--jx-surface);
  border-radius: var(--jx-radius);
  box-shadow: var(--jx-shadow);
  border: 1px solid var(--jx-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
}

.jx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.jx-card-media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1e293b, #334155);
  overflow: hidden;
}

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

.jx-card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jx-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.jx-card-title a {
  color: var(--jx-text);
  text-decoration: none;
}

.jx-card-title a:hover {
  color: var(--jx-blue);
}

.jx-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  color: var(--jx-muted);
}

.jx-card-meta span {
  white-space: nowrap;
}

.jx-intro {
  margin: 0;
  font-size: 13px;
  color: var(--jx-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.jx-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  pointer-events: none;
}

.jx-badge-free {
  background: linear-gradient(135deg, var(--jx-green), #16a34a);
}

.jx-badge-paid {
  background: linear-gradient(135deg, var(--jx-orange), #ea580c);
}

.jx-badge-top {
  left: 10px;
  right: auto;
  background: rgba(59, 130, 246, 0.95);
}

/* 分页 */
.jx-pagebar {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.jx-pagebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.jx-pagebar a,
.jx-pagebar span {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  font-size: 14px;
  color: var(--jx-text);
}

.jx-pagebar .page-numbers,
.jx-pagebar span.current {
  border-color: var(--jx-blue);
  background: rgba(59, 130, 246, 0.12);
  color: var(--jx-blue-dim);
  font-weight: 600;
}

/* ZBlog 默认分页 class */
.jx-pagebar .page {
  display: inline-block;
  min-width: 38px;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  font-size: 14px;
  color: var(--jx-text);
}

.jx-pagebar .now-page {
  border-color: var(--jx-blue);
  background: rgba(59, 130, 246, 0.12);
  color: var(--jx-blue-dim);
  font-weight: 600;
}

.jx-pagebar a {
  text-decoration: none;
}

.jx-pagebar {
  position: relative;
  z-index: 3;
}

.jx-pagebar,
.jx-pagebar * {
  pointer-events: auto;
}

.jx-pagebar--desktop {
  display: flex;
}

/* 首页（电脑端）右侧有侧栏时：分页容器按主内容列宽居中，避免整体偏右 */
body.jxu-body.index .jx-mainlayout:not(.no-sidebar) + #jx-pagebar-wrap {
  width: calc(100% - 324px);
  max-width: 100%;
  margin-top: 6px;
  margin-left: 0;
  margin-right: auto;
}

.jx-pagebar--mobile {
  display: none;
}

.jx-pagebar--simple {
  gap: 10px;
  align-items: center;
}

.jx-pagebar--simple .jx-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  color: var(--jx-text);
  font-size: 16px;
  text-decoration: none;
  white-space: nowrap;
}

.jx-pagebar--simple .jx-page-btn.is-current {
  min-width: 44px;
  font-weight: 700;
}
.jx-pagebar--simple .jx-page-btn--nav {
  min-width: 38px;
  padding: 0 8px;
  font-size: 18px;
}

.jx-pagebar--simple .jx-page-btn.is-disabled {
  opacity: 0.45;
}

/* 侧栏模块（间距由 .jx-sidebar-inner 的 gap 统一控制） */
.jx-sidebar .function {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius);
  box-shadow: var(--jx-shadow);
  margin: 0;
  flex: 0 0 auto;
  overflow: hidden;
}

.jx-sidebar .function_t {
  margin: 0;
  padding: 12px 44px 12px 16px;
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid var(--jx-border);
  background: rgba(59, 130, 246, 0.04);
  position: relative;
  color: var(--jx-text);
}

.jx-sidebar .function_t::after {
  content: "⚔️";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  line-height: 1;
  opacity: 0.9;
}

.jx-sidebar #jx_side_random .function_t::after {
  content: "";
}

.jx-sidebar .function_c {
  margin: 0;
  padding: 12px 16px;
  font-size: 14px;
  color: var(--jx-text);
}

.jx-sidebar ul {
  margin: 0;
  padding-left: 18px;
}

.jx-sidebar .function_c a {
  color: var(--jx-blue);
}

/* 主题专属模块：热门文章（后台模块管理可调用 jx_side_hot） */
.jx-hotmod {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jx-hotmod__item {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.jx-hotmod__item:last-child {
  border-bottom: 0;
  padding-bottom: 4px;
}

.jx-linksmod {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.jx-linksmod__item {
  display: inline;
  width: auto;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #334155;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
}

.jx-linksmod__item:hover {
  color: #1f2937;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.jx-linksmod__dot {
  display: none;
}

.jx-linksmod__txt {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.2;
}

.jx-linksmod__item:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin-left: 10px;
  color: rgba(51, 65, 85, 0.45);
  font-weight: 400;
}

.jx-linksmod--empty {
  color: #94a3b8;
  font-size: 13px;
}

.jx-hotmod__thumb {
  display: block;
  width: 92px;
  height: 58px;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.jx-hotmod__item--member {
  grid-template-columns: 62px minmax(0, 1fr);
}

/* 会员类卡片（荣耀榜/最新留言）不显示头像旁排名数字角标 */
.jx-hotmod__item--member .jx-hotmod__rank {
  display: none !important;
}

.jx-hotmod__thumb--member {
  width: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: auto;
  overflow: visible;
  background: transparent;
}

.jx-hotmod__avatarbox {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
}

.jx-hotmod__avatarbox img {
  border-radius: 50%;
}

.jx-hotmod__pendant {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(100% + 10px);
  height: calc(100% + 10px);
  transform: translate(-50%, -50%) scale(0.88);
  background-image: var(--jx-hotmod-pendant);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  pointer-events: none;
  z-index: 2;
}

.jx-hotmod__thumb--member.has-pendant .jx-hotmod__pendant {
  display: block;
}

.jx-hotmod__thumb-points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  max-width: 120px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.14);
  font-size: 12px;
  line-height: 1.2;
  color: #1d4ed8;
  font-weight: 700;
  white-space: nowrap;
  overflow: visible;
  text-overflow: ellipsis;
  position: relative;
  margin-top: 2px;
  z-index: 1;
}

.jx-hotmod__thumb-points::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid rgba(59, 130, 246, 0.2);
  border-top: 1px solid rgba(59, 130, 246, 0.2);
  background: #f5f9ff;
  z-index: -1;
}

.jx-hotmod--member-honor {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jx-hotmod--member-honor .jx-hotmod__item--member {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  padding: 10px 10px 10px 8px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.jx-hotmod--member-honor .jx-hotmod__item--member:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.16);
}

.jx-hotmod--member-honor .jx-hotmod__item:last-child {
  padding-bottom: 10px;
}

html.theme-dark .jx-hotmod--member-honor .jx-hotmod__item--member {
  border-color: rgba(148, 163, 184, 0.28);
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.88) 0%, rgba(15, 23, 42, 0.92) 100%);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

html.theme-dark .jx-hotmod__thumb-points {
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.36) 0%, rgba(30, 64, 175, 0.28) 100%);
  color: #bfdbfe;
}

html.theme-dark .jx-hotmod__thumb-points::before {
  border-left-color: rgba(96, 165, 250, 0.38);
  border-top-color: rgba(96, 165, 250, 0.38);
  background: rgba(30, 58, 138, 0.45);
}

html.theme-dark .jx-linksmod__item {
  color: #c8d7ef;
}

html.theme-dark .jx-linksmod__item:hover {
  color: #e2e8f0;
}

html.theme-dark .jx-linksmod__item:not(:last-child)::after {
  color: rgba(200, 215, 239, 0.55);
}

html.theme-dark .jx-linksmod--empty {
  color: #94a3b8;
}

/* 右侧自定义模块文字固定色：不随主题（mist/future）切换 */
.jx-sidebar .function_t,
.jx-sidebar .function_t.function_t--embed,
.jx-sidebar .function_c > .function_t--embed {
  color: #334155 !important;
}

.jx-sidebar .function_c,
.jx-sidebar .function_c li,
.jx-sidebar .function_c p,
.jx-sidebar .function_c span {
  color: #334155 !important;
}

.jx-sidebar .function_c a {
  color: #334155 !important;
}

/* 手机侧边栏自定义模块文字也固定色 */
#mobile-sidebar .sidebar-menu .function_c > .function_t--embed,
#mobile-sidebar .sidebar-menu .function_t,
#mobile-sidebar .sidebar-menu .function_t.function_t--embed {
  color: #334155 !important;
}

#mobile-sidebar .sidebar-menu .function_c,
#mobile-sidebar .sidebar-menu .function_c li,
#mobile-sidebar .sidebar-menu .function_c p,
#mobile-sidebar .sidebar-menu .function_c span {
  color: #334155 !important;
}

#mobile-sidebar .sidebar-menu .function_c a {
  color: #334155 !important;
}

.jx-hotmod__main {
  min-width: 0;
  padding-right: 24px;
}

.jx-hotmod__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
  font-size: 15px;
  color: var(--jx-text);
  text-decoration: none;
}

.jx-hotmod__title:hover {
  color: var(--jx-blue);
  text-decoration: none;
}

.jx-hotmod__name-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 0 8px;
  height: 18px;
  line-height: 18px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: #fff !important;
  background: var(--jx-hotmod-badge-bg, #f43f5e);
  vertical-align: middle;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
}

/* 右侧模块通用 span 固定色会覆盖徽章，这里单独拉回白字 */
.jx-sidebar .function_c .jx-hotmod__name-badge {
  color: #fff !important;
}

.jx-hotmod__meta {
  margin-top: 6px;
  font-size: 12px;
  color: #94a3b8;
}

.jx-hotmod__rank {
  position: absolute;
  left: 0;
  top: 10px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: #94a3b8;
}

.jx-hotmod__rank--1 { background: #ef4444; }
.jx-hotmod__rank--2 { background: #f97316; }
.jx-hotmod__rank--3 { background: #22c55e; }

.jx-hotmod--empty {
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
}

/* 主题专属模块：随机文章（2列网格，默认 6 条） */
.jx-randommod {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.jx-randommod__item {
  margin: 0;
  min-width: 0;
}

.jx-randommod__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
}

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

.jx-randommod__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 6px;
  line-height: 1.45;
  font-size: 13px;
  min-height: calc(1.45em * 2);
  color: var(--jx-text);
  text-decoration: none;
}

.jx-randommod__title:hover {
  color: var(--jx-blue);
  text-decoration: none;
}

.jx-randommod--empty {
  font-size: 13px;
  color: #94a3b8;
  padding: 6px 0;
}

.jx-randommod-wrap {
  position: relative;
}

.jx-randommod-box {
  min-height: 40px;
}

.jx-randommod__refresh {
  position: absolute;
  right: 0;
  top: -50px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.92);
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.jx-randommod__refresh:hover {
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.55);
}

.jx-randommod__refresh.is-loading {
  opacity: 0.65;
  pointer-events: none;
  animation: jx-rotate 0.8s linear infinite;
}

@keyframes jx-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.jx-searchmod {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jx-searchmod__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.jx-searchmod__input {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(30, 64, 175, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.jx-searchmod__input:focus {
  border-color: rgba(30, 64, 175, 0.42);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

.jx-searchmod__btn {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.jx-searchmod__btn:hover {
  filter: brightness(1.04);
}

.jx-searchmod__hot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.jx-searchmod__tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 12px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jx-searchmod__tag:hover {
  background: rgba(37, 99, 235, 0.2);
}

.jx-searchmod__tag.is-empty {
  background: rgba(148, 163, 184, 0.16);
  color: #64748b;
}

/* 主题专属模块：系统中心快捷入口（桌面 2 列） */
.jx-ucentermod {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

/* 新增模块：个人中心（头像信息 + 3x3 按钮） */
.jx-profilemod {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.jx-profilemod__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.16);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.95), rgba(238, 244, 255, 0.9));
}

.jx-profilemod__welcome {
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
}

.jx-profilemod__avatarlink {
  text-decoration: none;
}

.jx-profilemod__avatarbox {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  position: relative;
  overflow: visible;
  display: inline-flex;
}

.jx-profilemod__avatarbox img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.jx-profilemod__avatarbox.has-pendant .jx-hotmod__pendant {
  display: block;
}

.jx-profilemod__badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--jx-profile-badge-bg, #a855f7);
  background: var(--jx-profile-badge-bg, #a855f7);
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.jx-profilemod__badge::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 9px;
  height: 9px;
  transform: translateX(-50%) rotate(45deg);
  border-left: 1px solid var(--jx-profile-badge-bg, #a855f7);
  border-top: 1px solid var(--jx-profile-badge-bg, #a855f7);
  background: var(--jx-profile-badge-bg, #a855f7);
}

/* 个人中心/排行榜：标识文字统一白色（含手机端侧栏） */
.jx-sidebar .function_c .jx-profilemod__badge,
#mobile-sidebar .sidebar-menu .function_c .jx-profilemod__badge,
.jx-sidebar .function_c .jx-hotmod__name-badge,
#mobile-sidebar .sidebar-menu .function_c .jx-hotmod__name-badge {
  color: #ffffff !important;
}

.jx-profilemod__points {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 2px 10px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.jx-profilemod__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.jx-ucentermod__item {
  min-height: 74px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #1e3a8a;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  padding: 8px 6px;
}

.jx-ucentermod__item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.14);
  text-decoration: none;
}

.jx-ucentermod__item:active,
.jx-ucentermod__item.is-tap {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.14);
}

.jx-ucentermod__item.is-checkin {
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
}

.jx-ucentermod__item.is-checkin:not(.is-done):not([disabled]) {
  animation: jx-checkin-breath 1.9s ease-in-out infinite;
}

.jx-ucentermod__item.is-checkin.is-done {
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  color: #1e3a8a;
  cursor: default;
  filter: grayscale(0.1);
  animation: none;
}

.jx-ucentermod__ico {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jx-ucentermod__ico svg {
  width: 22px;
  height: 22px;
  display: block;
}

.jx-ucentermod__txt {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
}

.jx-profilemod__item {
  min-height: 64px;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  box-shadow: 0 8px 18px rgba(30, 64, 175, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  color: #1e3a8a;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, filter .2s ease;
  padding: 8px 6px;
}

.jx-profilemod__item:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.14);
  text-decoration: none;
}

.jx-profilemod__item:active,
.jx-profilemod__item.is-tap {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.14);
}

.jx-profilemod__item.is-checkin {
  border: 1px solid rgba(251, 146, 60, 0.55);
  background: linear-gradient(135deg, #fff7ed, #ffedd5);
  color: #c2410c;
}

.jx-profilemod__item.is-checkin:not(.is-done):not([disabled]) {
  animation: jx-checkin-breath 1.9s ease-in-out infinite;
}

.jx-profilemod__item.is-checkin.is-done {
  border-color: rgba(59, 130, 246, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.95));
  color: #1e3a8a;
  cursor: default;
  filter: grayscale(0.1);
  animation: none;
}

.jx-profilemod__ico {
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.jx-profilemod__txt {
  font-size: 11px;
  line-height: 1.2;
  text-align: center;
  word-break: break-all;
}

@keyframes jx-checkin-breath {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.15);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.24);
  }
}

html.theme-dark .jx-ucentermod__item {
  background: #2a2d3e;
  color: #e0e6ed;
  border: 1px solid #3f4456;
  box-shadow: 0 8px 18px rgba(4, 8, 20, 0.34);
}

html.theme-dark .jx-profilemod__item {
  background: #2a2d3e;
  color: #e0e6ed;
  border: 1px solid #3f4456;
  box-shadow: 0 8px 18px rgba(4, 8, 20, 0.34);
}

html.theme-dark .jx-profilemod__profile {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
  border-color: rgba(148, 163, 184, 0.28);
}

html.theme-dark .jx-profilemod__welcome {
  color: #dbeafe;
}

html.theme-dark .jx-profilemod__badge {
  border-color: var(--jx-profile-badge-bg, #a855f7);
  background: var(--jx-profile-badge-bg, #a855f7);
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.22), 0 1px 0 rgba(0, 0, 0, 0.4);
}

html.theme-dark .jx-profilemod__badge::before {
  border-left-color: var(--jx-profile-badge-bg, #a855f7);
  border-top-color: var(--jx-profile-badge-bg, #a855f7);
  background: var(--jx-profile-badge-bg, #a855f7);
}

html.theme-dark .jx-sidebar .function_c .jx-hotmod__name-badge,
html.theme-dark #mobile-sidebar .sidebar-menu .function_c .jx-hotmod__name-badge,
html.theme-dark .jx-sidebar .function_c .jx-profilemod__badge,
html.theme-dark #mobile-sidebar .sidebar-menu .function_c .jx-profilemod__badge {
  color: #ffffff !important;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2), 0 1px 0 rgba(0, 0, 0, 0.42);
}

html.theme-dark .jx-profilemod__points {
  border-color: rgba(96, 165, 250, 0.38);
  background: linear-gradient(180deg, rgba(30, 58, 138, 0.36) 0%, rgba(30, 64, 175, 0.28) 100%);
  color: #bfdbfe;
}

html.theme-dark .jx-ucentermod__item:hover {
  border-color: #59607a;
  box-shadow: 0 12px 24px rgba(4, 8, 20, 0.48);
}

html.theme-dark .jx-profilemod__item:hover {
  border-color: #59607a;
  box-shadow: 0 12px 24px rgba(4, 8, 20, 0.48);
}

html.theme-dark .jx-ucentermod__item.is-checkin {
  background: linear-gradient(135deg, #4f3a26, #5b432a);
  color: #ffd9b0;
  border-color: #8f6437;
}

html.theme-dark .jx-ucentermod__item.is-checkin:not(.is-done):not([disabled]) {
  box-shadow: 0 10px 24px rgba(219, 133, 43, 0.24);
}

html.theme-dark .jx-ucentermod__item.is-checkin.is-done {
  background: #2d5a4b;
  color: #e0e6ed;
  border-color: #3f4456;
  box-shadow: 0 10px 22px rgba(20, 54, 43, 0.34);
}

html.theme-dark .jx-profilemod__item.is-checkin {
  background: linear-gradient(135deg, #4f3a26, #5b432a);
  color: #ffd9b0;
  border-color: #8f6437;
}

html.theme-dark .jx-profilemod__item.is-checkin:not(.is-done):not([disabled]) {
  box-shadow: 0 10px 24px rgba(219, 133, 43, 0.24);
}

html.theme-dark .jx-profilemod__item.is-checkin.is-done {
  background: #2d5a4b;
  color: #e0e6ed;
  border-color: #3f4456;
  box-shadow: 0 10px 22px rgba(20, 54, 43, 0.34);
}

/* 文章页右侧栏：主题自有风格（清透玻璃卡 + 渐变描边） */
body.jxu-body.single .jx-sidebar .function {
  border: 1px solid rgba(87, 135, 255, 0.2);
  border-radius: 16px;
  padding: 14px 16px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(125, 211, 252, 0.18) 0%, rgba(255, 255, 255, 0) 46%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(248, 251, 255, 0.92));
  backdrop-filter: blur(5px);
  box-shadow: 0 10px 26px rgba(30, 64, 175, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.jxu-body.single .jx-sidebar .function:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 14px 30px rgba(30, 64, 175, 0.14);
}

body.jxu-body.single .jx-sidebar .function_c {
  padding: 2px 0 0;
}

body.jxu-body.single .jx-sidebar .function_t,
body.jxu-body.single .jx-sidebar .function_t.function_t--embed {
  margin: 0 0 10px;
  padding: 0 0 10px 0;
  font-size: 17px;
  font-weight: 700;
  color: #1f2f55;
  border: 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: transparent;
  position: relative;
  letter-spacing: 0.3px;
}

body.jxu-body.single .jx-sidebar .function_t::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

body.jxu-body.single .jx-sidebar .function_t::after {
  content: "⚔️";
  position: absolute;
  top: -2px;
  right: 2px;
  font-size: 14px;
  line-height: 1;
  opacity: 0.9;
}

/* 随机文章模块右上角使用刷新按钮，隐藏标题装饰图标避免重叠 */
body.jxu-body.single .jx-sidebar #jx_side_random .function_t::after {
  display: none;
}

body.jxu-body.single .jx-sidebar .function_c > ul,
body.jxu-body.single .jx-sidebar .function_c > ol {
  padding-left: 0;
  margin: 0;
  list-style: none;
}

body.jxu-body.single .jx-sidebar .function_c li {
  margin: 0;
  padding: 8px 0;
  line-height: 1.45;
  border-bottom: 1px dashed rgba(203, 213, 225, 0.7);
}

body.jxu-body.single .jx-sidebar .function_c li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

html.theme-dark body.jxu-body.single .jx-sidebar .function {
  border-color: rgba(96, 165, 250, 0.35);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(56, 189, 248, 0.14) 0%, rgba(15, 23, 42, 0) 50%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.92));
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
}

html.theme-dark body.jxu-body.single .jx-sidebar .function_t,
html.theme-dark body.jxu-body.single .jx-sidebar .function_t.function_t--embed {
  color: #dbeafe;
  border-bottom-color: rgba(148, 163, 184, 0.35);
}

html.theme-dark body.jxu-body.single .jx-sidebar .function_c li {
  border-bottom-color: rgba(148, 163, 184, 0.24);
}

/* 列表中部广告 */
#jx-ad-list {
  margin: 20px 0;
  min-height: 0;
}

#jx-ad-list.jx-ad-slot {
  padding: 12px;
  border: 1px dashed var(--jx-border);
  border-radius: var(--jx-radius);
  text-align: center;
  color: var(--jx-muted);
  font-size: 13px;
  background: rgba(59, 130, 246, 0.03);
}

/* 详情页 */
.jx-article-header {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius);
  box-shadow: var(--jx-shadow);
  padding: 20px 22px;
  margin-bottom: 18px;
}

.jx-article-title {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.35;
}

.jx-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 13px;
  color: var(--jx-muted);
}

.jx-kv {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: 10px;
  background: var(--jx-bg);
  border: 1px solid var(--jx-border);
  font-size: 14px;
}

.jx-kv div {
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.jx-kv em {
  font-style: normal;
  color: var(--jx-muted);
  font-size: 12px;
  min-width: 4em;
}

.jx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.jx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.jx-btn:hover {
  text-decoration: none;
}

.jx-btn-primary {
  background: linear-gradient(135deg, var(--jx-blue), var(--jx-blue-dim));
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
}

.jx-btn-primary:hover {
  color: #fff;
  filter: brightness(1.05);
}

.jx-btn-ghost {
  background: var(--jx-surface);
  border-color: var(--jx-border);
  color: var(--jx-text);
}

.jx-btn-ghost:hover {
  border-color: var(--jx-blue);
  color: var(--jx-blue);
}

.jx-single-body {
  background: var(--jx-surface);
  border: 1px solid var(--jx-border);
  border-radius: var(--jx-radius);
  box-shadow: var(--jx-shadow);
  padding: 22px 24px 28px;
}

.jx-protect {
  user-select: none;
}

.jx-protect pre,
.jx-protect code {
  user-select: text;
}

.jx-content {
  font-size: 16px;
  line-height: 1.75;
  color: var(--jx-text);
  overflow-wrap: anywhere;
}

.jx-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: -4px 0 14px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--jx-border);
  font-size: 13px;
  color: var(--jx-muted);
}

.jx-article-meta__item {
  color: var(--jx-muted);
  text-decoration: none;
}

.jx-article-meta__item--comments:hover,
.jx-article-meta__item--edit:hover {
  color: var(--jx-blue);
  text-decoration: none;
}

.jx-article-meta__item--del {
  color: #dc2626;
}

.jx-article-meta__item--del:hover {
  color: #b91c1c;
  text-decoration: none;
}

.jx-article-meta__sep {
  color: var(--jx-border);
}

/* 文章内容卡片顶栏：左侧当前位置，右侧阅读/发布时间/评论 */
.jx-article-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 18px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  border-bottom: 1px dashed var(--jx-border);
}

.jx-article-topline__crumb {
  min-width: 0;
  flex: 1 1 auto;
}

.jx-article-topline__crumb .jx-breadcrumb {
  justify-content: flex-start;
  text-align: left;
}

.jx-article-topline .jx-breadcrumb {
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.jx-article-meta--top {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: flex-end;
  text-align: right;
  gap: 6px 12px;
}

@media (max-width: 960px) {
  .jx-article-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .jx-article-meta--top {
    justify-content: flex-start;
    text-align: left;
  }
}

.jx-content p {
  margin: 0 0 1em;
}

.jx-content img {
  border-radius: 8px;
}

/* 付费隐藏区占位（正文内可包一层 .jx-paywall） */
.jx-paywall {
  margin: 16px 0;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed var(--jx-orange);
  background: rgba(249, 115, 22, 0.06);
  color: var(--jx-muted);
  font-size: 14px;
}

/* 详情底部广告 */
#jx-ad-single-bottom {
  margin-top: 20px;
}

#jx-ad-single-bottom.jx-ad-slot {
  padding: 12px;
  border: 1px dashed var(--jx-border);
  border-radius: var(--jx-radius);
  text-align: center;
  color: var(--jx-muted);
  font-size: 13px;
}

/* 文章页：标签 / 上下篇 / 相关阅读 */
.jx-article-tags {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 18px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--jx-border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.03);
}

.jx-article-tags__label {
  flex-shrink: 0;
  font-size: 15px;
  color: var(--jx-muted);
}

.jx-article-tags__list {
  flex: 1;
  line-height: 1.9;
  color: var(--jx-text);
  word-break: break-word;
}

.jx-article-tags__a {
  font-size: 14px;
  color: var(--jx-text);
  text-decoration: none;
}

.jx-article-tags__a:hover {
  color: var(--jx-blue-dim);
  text-decoration: none;
}

.jx-article-tags__sep {
  color: var(--jx-muted);
}

.jx-article-tags__a.is-plain {
  cursor: default;
}

.jx-protect img.jx-previewable {
  cursor: zoom-in;
}

.jx-image-viewer {
  position: fixed;
  inset: 0;
  z-index: 4000;
}

.jx-image-viewer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.jx-image-viewer__stage {
  position: relative;
  width: min(92vw, 1280px);
  height: min(88vh, 900px);
  margin: 4vh auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
  touch-action: none;
}

.jx-image-viewer__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.jx-image-viewer__nav--prev {
  left: 12px;
}

.jx-image-viewer__nav--next {
  right: 12px;
}

.jx-image-viewer__meta {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 12px;
}

.jx-image-viewer__img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  transform-origin: center center;
  transform: scale(1);
  transition: transform .06s ease-out;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

.jx-image-viewer__img.is-draggable {
  cursor: grab;
}

.jx-image-viewer__img.is-dragging {
  cursor: grabbing;
}

.jx-image-viewer__close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.jx-article-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

@media (max-width: 640px) {
  .jx-article-pager {
    grid-template-columns: 1fr;
  }
}

.jx-article-pager__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 120px;
  padding: 14px 16px;
  border-radius: var(--jx-radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background-color: #1e293b;
  background-image: linear-gradient(105deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.55)), var(--jx-pager-bg, none);
  background-size: cover;
  background-position: center;
  box-shadow: var(--jx-shadow);
}

.jx-article-pager__card:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.05);
}

.jx-article-pager__card--next {
  text-align: right;
  align-items: flex-end;
}

.jx-article-pager__card--empty {
  cursor: default;
  filter: none;
  opacity: 0.85;
  background-image: linear-gradient(135deg, #64748b, #475569);
}

.jx-article-pager__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.95;
}

.jx-article-pager__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 6px 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.jx-article-pager__date {
  font-size: 12px;
  opacity: 0.85;
}

.jx-article-related {
  margin: 24px 0 0;
  padding: 18px 18px 20px;
  border-radius: var(--jx-radius);
  border: 1px solid var(--jx-border);
  background: var(--jx-surface);
  box-shadow: var(--jx-shadow);
}

.jx-article-related__head {
  margin: 0 0 14px;
  padding-bottom: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--jx-blue-dim);
  border-bottom: 1px solid var(--jx-border);
  position: relative;
}

.jx-article-related__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--jx-blue);
}

.jx-article-related__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jx-article-related__item {
  margin: 0;
}

.jx-article-related__a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--jx-border);
  background: #0f172a;
  color: #f8fafc;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.jx-article-related__a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.18);
}

.jx-article-related__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1e293b;
}

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

.jx-article-related__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 10px 12px 4px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.jx-article-related__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.72);
}

.jx-article-related__views {
  flex-shrink: 0;
}

/* 评论区 */
.jx-comments {
  margin-top: 28px;
  padding: 16px 16px 20px;
  border-radius: 10px;
  border: 1px solid #dfe4ea;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.jx-comments-inner {
  font-size: 14px;
}

.jx-commentpost {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8edf3;
}

.jx-commentpost__title {
  margin: 0 0 12px;
  padding-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  color: #2781d8;
  border-bottom: 1px solid #e8edf3;
  position: relative;
}

.jx-commentpost__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 2px;
  border-radius: 2px;
  background: #5aa3e7;
}

.jx-commentpost__guest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.jx-commentpost__input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  font-size: 14px;
  background: #f7f9fb;
}

.jx-commentpost__textarea {
  width: 100%;
  min-height: 128px;
  padding: 12px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.55;
  resize: vertical;
  background: #f6f8fa;
}

.jx-commentpost__submit-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.jx-commentpost__bar {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.jx-commentpost__submit {
  padding: 10px 22px;
  border: 0;
  border-radius: 8px;
  background: #2f8fda;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.jx-commentpost__submit:hover {
  background: #267cc0;
}

.jx-commentlist__head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.jx-commentlist__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #334155;
}

.jx-commentlist__count {
  font-weight: 400;
  color: #8b98a6;
}

.jx-commentlist__count strong {
  color: var(--jx-orange);
  font-weight: 700;
}

.jx-commentlist__sort {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.jx-commentlist__sort-btn {
  border: 1px solid #d6e0eb;
  background: #f8fafc;
  color: #516171;
  border-radius: 16px;
  padding: 4px 12px;
  line-height: 1.4;
  font-size: 12px;
  cursor: pointer;
  transition: .2s;
}

.jx-commentlist__sort-btn:hover {
  border-color: #93c5fd;
  color: #1d4ed8;
}

.jx-commentlist__sort-btn.is-active {
  color: #fff;
  border-color: #2563eb;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.25);
}

.jx-commentlist__empty {
  margin: 10px 0 16px;
  color: #8fa0b2;
  font-size: 24px;
  text-align: center;
  padding: 14px 10px;
}

.jx-comment {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 12px;
  border: 1px solid #eef2f6;
  border-radius: 10px;
  background: #fff;
  align-items: flex-start;
  margin-bottom: 10px;
}

.jx-comment:last-child {
  margin-bottom: 0;
}

.jx-comment--child {
  margin-top: 10px;
  margin-left: 18px;
  border-left: 2px solid rgba(59, 130, 246, 0.22);
}

.jx-comment__avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #dbeafe;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
}
.jx-comment__avatar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-right: 10px;
  border-right: 1px solid #f1f5f9;
}
.jx-comment__body {
  flex: 1 1 auto;
  min-width: 0;
}
.jx-comment__userline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.jx-comment__avatar-wrap {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  line-height: 0;
}
.jx-comment__avatar-pendant {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  pointer-events: none;
  display: none;
  background-image: var(--jx-comment-pendant);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.jx-comment__avatar-wrap.has-pendant .jx-comment__avatar-pendant {
  display: block;
}

.jx-comment__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 24px;
}

.jx-comment__name a {
  display: inline-block;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: .2px;
  color: #1e293b;
  text-decoration: none;
  text-shadow: none;
}

.jx-comment__badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(249, 115, 22, 0.15);
  color: var(--jx-orange);
  font-weight: 600;
  border: 1px solid transparent;
}
.jx-comment__badge--member { box-shadow: 0 4px 10px rgba(15,23,42,.08); }

.jx-comment__badge--pending {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
  margin-right: auto;
}

.jx-comment__floor {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--jx-floor-fg, #ffffff);
  background: var(--jx-floor-bg, linear-gradient(135deg, #64748b, #475569));
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.15);
  letter-spacing: 0.4px;
}
.jx-comment__member-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  background: var(--jx-member-badge-bg, #f43f5e);
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
}
.jx-comment__member-badge:before {
  content: "";
  position: absolute;
  top: -4px;
  left: 18px;
  width: 8px;
  height: 8px;
  background: var(--jx-member-badge-bg, #f43f5e);
  transform: rotate(45deg);
  border-radius: 1px;
}
.jx-comment__level-mark {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 2px;
  color: #f59e0b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.jx-comment__content {
  line-height: 1.65;
  color: #3b4753;
  word-break: break-word;
}

.jx-comment-emoji-inline {
  display: inline-block;
  vertical-align: middle;
  max-width: 140px;
  max-height: 140px;
  border-radius: 8px;
  margin: 2px 4px;
}

.jx-comment__at {
  color: var(--jx-blue);
  font-weight: 600;
  margin-right: 4px;
}

.jx-comment__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #8fa0b2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}

.jx-comment__reply {
  margin-left: 0;
  color: #2f8fda;
  font-weight: 600;
  display: inline-flex;
  white-space: nowrap;
}

.jx-comment__admin {
  margin-left: 0;
  color: #ef4444;
  cursor: pointer;
  display: inline-flex;
  white-space: nowrap;
}

.jx-comment__admin--approve {
  color: #16a34a;
}

.jx-commentlist__pending-tip {
  margin: 10px 0 12px;
  padding: 8px 10px;
  border: 1px dashed #f59e0b;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
  font-size: 12px;
}

.jx-comment-login-limit {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: #374151;
  text-align: center;
  font-size: 16px;
  line-height: 1.8;
}

.jx-comment-login-limit__text {
  margin-right: 6px;
}

.jx-comment-login-limit__link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  margin: 0 2px;
}

.jx-comment-login-limit__link:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.jx-comment-login-limit__sep {
  color: #94a3b8;
  margin: 0 4px;
}

html.theme-dark .jx-comment-login-limit {
  background: #1f2937;
  border-color: #334155;
  color: #e5e7eb;
}

html.theme-dark .jx-comment-login-limit__link {
  color: #60a5fa;
}

html.theme-dark .jx-comment-login-limit__link:hover {
  color: #93c5fd;
}

html.theme-dark .jx-comment-login-limit__sep {
  color: #64748b;
}

.jx-comment-pickerbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.jx-comment-pickerbar__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d6e0eb;
  border-radius: 18px;
  padding: 5px 10px;
  background: #f8fafc;
  color: #516171;
  cursor: pointer;
}

.jx-comment-pickerbar__toggle span {
  font-size: 12px;
}

.jx-comment-pickerpanel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid #dbe4ee;
  border-radius: 8px;
  background: #f8fafc;
  position: relative;
  --jx-picker-arrow-left: 18px;
}

.jx-comment-pickerpanel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--jx-picker-arrow-left);
  width: 12px;
  height: 12px;
  background: #f8fafc;
  border-left: 1px solid #dbe4ee;
  border-top: 1px solid #dbe4ee;
  transform: rotate(45deg);
}

.jx-comment-pickerpanel[hidden] {
  display: none !important;
}

.jx-comment-quick__btn,
.jx-comment-emoji__btn {
  border: 1px solid #d6e0eb;
  border-radius: 6px;
  padding: 5px 10px;
  background: #f8fafc;
  cursor: pointer;
  color: #516171;
}

.jx-comment-emoji__btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.jx-comment-replybox {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #f8fafd;
}

.jx-comment-replybox__guest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.jx-comment-replybox__textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.jx-comment-replybox__actions {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.jx-comment-replybox__cancel {
  border: 1px solid #d6e0eb;
  background: #fff;
  border-radius: 6px;
  padding: 8px 14px;
  cursor: pointer;
}

.jx-comment-captcha {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: 1;
}

.jx-comment-captcha__q {
  padding: 6px 8px;
  border: 1px dashed #c8d5e2;
  border-radius: 6px;
  background: #f8fafc;
  min-width: 72px;
  text-align: center;
}

.jx-comment-captcha__input {
  width: 92px;
  padding: 8px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 6px;
}

.jx-comment-captcha__refresh {
  border: 1px solid #d6e0eb;
  background: #f8fafc;
  border-radius: 6px;
  padding: 8px 10px;
  cursor: pointer;
}

.jx-commentpost__submit {
  order: 2;
}

@media (max-width: 768px) {
  .jx-commentpost__title,
  .jx-commentlist__title {
    font-size: 17px;
  }

  .jx-commentlist__empty {
    font-size: 14px;
    padding: 8px 4px;
  }

  .jx-commentlist__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .jx-commentlist__sort-btn {
    padding: 4px 10px;
  }

  .jx-commentpost__bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }

  .jx-comment-pickerbar {
    flex: 1;
    min-width: 0;
  }

  .jx-commentpost__submit-row {
    justify-content: flex-end;
    margin-top: 0;
    margin-left: auto;
    flex-shrink: 0;
  }

  .jx-comment {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 10px;
    padding: 12px 10px;
  }

  .jx-comment--child {
    margin-left: 10px;
  }

  .jx-comment__avatar {
    min-width: 0;
    align-items: flex-start;
    text-align: left;
    border-right: 1px solid #f1f5f9;
    border-bottom: 0;
    padding: 0 8px 0 0;
    margin-bottom: 0;
  }

  .jx-comment__userline {
    justify-content: flex-start;
  }

  .jx-comment__avatar-wrap,
  .jx-comment__member-badge,
  .jx-comment__level-mark {
    align-self: flex-start;
  }

  .jx-comment__member-badge {
    margin: 8px 0 0 -2px;
  }

  .jx-comment__avatar-img {
    width: 44px;
    height: 44px;
  }

  .jx-comment__name a {
    font-size: 15px;
  }

  .jx-comment__member-badge {
    font-size: 11px;
    padding: 4px 8px;
  }

  .jx-comment__level-mark {
    font-size: 18px;
    letter-spacing: 1px;
  }

  .jx-comment__head {
    flex-wrap: wrap;
  }

  .jx-comment__meta {
    gap: 6px 10px;
  }

  .jx-comment__time,
  .jx-comment__reply,
  .jx-comment__admin {
    white-space: nowrap;
    line-height: 1.35;
  }

  .jx-comment__floor {
    margin-left: 0;
  }
}

.jx-comment-pagebar-wrap {
  margin-top: 16px;
}

.jx-comment-pagebar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.jx-comment-pagebar__item a,
.jx-comment-pagebar__item span {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--jx-border);
  font-size: 13px;
  color: var(--jx-text);
  text-decoration: none;
}

.jx-comment-pagebar__item a {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.jx-comment-pagebar__item.is-active span {
  background: var(--jx-blue);
  border-color: var(--jx-blue);
  color: #fff;
}

.jx-comment-pagebar__info span {
  border: 0;
  color: var(--jx-muted);
}

@media (max-width: 768px) {
  .jx-comment-pagebar {
    gap: 6px;
    justify-content: center;
  }
  .jx-comment-pagebar__item a,
  .jx-comment-pagebar__item span {
    min-width: 32px;
    text-align: center;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 5px;
  }
  .jx-comment-pagebar__info {
    width: 100%;
  }
  .jx-comment-pagebar__info span {
    display: block;
    text-align: center;
    padding: 2px 0 0;
  }
}

/* 页脚 */
.jx-footer {
  border-top: 1px solid var(--jx-border);
  background: #eef1f7;
  padding: 28px 0 36px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--jx-muted);
}

.jx-footer a {
  color: var(--jx-muted);
}

.jx-footer a:hover {
  color: var(--jx-blue);
}

.jx-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.jx-footer h3 {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--jx-text);
}

.jx-footer-friend {
  --jx-fl-chip-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --jx-fl-chip-border: rgba(203, 213, 225, 0.9);
  --jx-fl-chip-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
  --jx-fl-chip-border-hover: rgba(147, 197, 253, 0.85);
  --jx-fl-chip-shadow-hover: 0 8px 16px rgba(37, 99, 235, 0.2);
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(248, 250, 252, 0.06));
}

.jx-footer-friend__title {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--jx-footer-friend-title-color, #ffffff) !important;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.18), 0 5px 14px rgba(0, 0, 0, 0.32);
}

.jx-footer-friend__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.jx-footer-friend__item {
  display: inline;
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #ffffff !important;
  font-weight: 500;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.92;
  position: relative;
}

.jx-footer-friend__item:not(:last-child)::after {
  content: "·";
  display: inline-block;
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
}

.jx-footer-friend__item:hover {
  color: #ffffff !important;
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

#mobile-sidebar .sidebar-menu .function_c > .function_t--embed {
  color: var(--jx-text);
}

#mobile-sidebar .sidebar-menu .function_c,
#mobile-sidebar .sidebar-menu .function_c li {
  color: var(--jx-text);
}

#mobile-sidebar .sidebar-menu .function_c a {
  color: var(--jx-blue);
}

html.jxu-style-mist .jx-footer-friend {
  --jx-fl-chip-bg: linear-gradient(180deg, #fff8ef 0%, #ffedd5 100%);
  --jx-fl-chip-border: rgba(217, 119, 6, 0.45);
  --jx-fl-chip-shadow: 0 5px 12px rgba(194, 65, 12, 0.14);
  --jx-fl-chip-border-hover: rgba(194, 65, 12, 0.65);
  --jx-fl-chip-shadow-hover: 0 8px 16px rgba(154, 52, 18, 0.22);
}

html.jxu-style-future .jx-footer-friend {
  --jx-fl-chip-bg: linear-gradient(180deg, #fff1f6 0%, #ffe4ee 100%);
  --jx-fl-chip-border: rgba(219, 39, 119, 0.42);
  --jx-fl-chip-shadow: 0 5px 12px rgba(190, 24, 93, 0.14);
  --jx-fl-chip-border-hover: rgba(190, 24, 93, 0.68);
  --jx-fl-chip-shadow-hover: 0 8px 16px rgba(157, 23, 77, 0.22);
}

.jx-footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jx-footer-links li {
  margin-bottom: 6px;
}

.jx-footer-copy {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--jx-border);
}

.jx-footer .jx-links-mod ul,
.jx-footer .jx-footer-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jx-footer .jx-footer-nav-list {
  columns: 2;
  column-gap: 28px;
  column-fill: balance;
}

@media (min-width: 900px) {
  .jx-footer .jx-footer-nav-list {
    columns: 3;
  }
}

.jx-footer .jx-footer-nav-list > li {
  break-inside: avoid;
  margin-bottom: 8px;
  list-style: none;
}

.jx-footer .jx-footer-nav-list ul {
  margin: 6px 0 0 14px;
  padding: 0;
  list-style: disc;
}

.jx-footer .jx-footer-nav-list ul li {
  margin-bottom: 4px;
}

.jx-footer .jx-links-mod li {
  margin-bottom: 6px;
}

/* 新版首页页脚（暗色图片风格） */
.jx-footer.jx-footer--hero {
  position: relative;
  margin-top: 18px;
  padding: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  border-top: 0;
  background-color: #0b1018;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.jx-footer.jx-footer--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.8), rgba(3, 6, 12, 0.9));
  pointer-events: none;
}
.jx-footer.jx-footer--hero.jx-footer--bg-image::before {
  background: linear-gradient(180deg, rgba(3, 6, 12, 0.5), rgba(3, 6, 12, 0.72));
}
.jx-footer.jx-footer--hero.jx-footer--bg-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(110% 72% at 50% 0%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 58%);
  pointer-events: none;
}
.jx-footer.jx-footer--hero > .jx-wrap {
  position: relative;
  z-index: 1;
}
.jx-footer-grid--hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 28px;
  margin-bottom: 0;
}
.jx-footer-col {
  min-width: 0;
}
.jx-footer.jx-footer--hero .jx-footer-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: #3d96ff !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24), 0 4px 14px rgba(23, 78, 146, 0.28);
}
.jx-footer.jx-footer--hero {
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.jx-footer-line {
  width: 82px;
  height: 3px;
  margin: 8px 0 12px;
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.1));
}
.jx-footer-desc {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}
.jx-footer-search {
  max-width: 520px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
}
.jx-footer-search input[type="text"] {
  flex: 1 1 auto;
  border: 0;
  height: 44px;
  padding: 0 14px;
  font-size: 16px;
  color: #1f2937;
  outline: none;
  background: transparent;
}
.jx-footer-search button {
  flex: 0 0 56px;
  height: 44px;
  border: 0;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #222;
  background: transparent;
}
.jx-footer-nav-list--hero {
  columns: 3;
  column-gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jx-footer-nav-list--hero > li {
  break-inside: avoid;
  margin: 0 0 12px;
  list-style: none;
}
.jx-footer-nav-list--hero > li > a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  text-decoration: none;
}
.jx-footer-nav-list--hero > li > a:hover {
  color: #fff;
  text-decoration: underline;
}
.jx-footer-copy--hero {
  margin-top: 18px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  text-align: left;
}
.jx-footer-copy--hero p {
  margin: 4px 0;
  color: rgba(255, 255, 255, 0.82);
}
.jx-footer-copy--hero a {
  color: #9fd9ff;
}
@media (max-width: 960px) {
  .jx-footer-grid--hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .jx-footer-nav-list--hero {
    columns: 2;
  }
  .jx-footer-title {
    font-size: 28px;
  }
}
@media (max-width: 600px) {
  .jx-footer-nav-list--hero {
    columns: 1;
  }
  .jx-footer-title {
    font-size: 24px;
  }
}

/* 授权预留 */
.jx-license-slot {
  display: none;
}

/* 搜索页 */
.jx-search-hero {
  margin: 0 0 14px;
  padding: 28px 0 22px;
  background: linear-gradient(180deg, rgba(18, 64, 110, 0.9) 0%, rgba(7, 29, 55, 0.92) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.jx-search-hero__inner {
  text-align: center;
  color: #eef5ff;
}

.jx-search-hero__title {
  margin: 0;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.jx-search-hero__sub {
  margin: 12px auto 0;
  max-width: 760px;
  font-size: 14px;
  line-height: 1.8;
  color: rgba(238, 245, 255, 0.9);
}

.jx-search-loc {
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--jx-muted);
}

.jx-search-hint {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--jx-muted);
}

.jx-search-hint strong {
  color: var(--jx-blue);
}

.jx-search-empty {
  margin: 10px 0 18px;
  padding: 48px 24px;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--jx-border);
  background: color-mix(in srgb, var(--jx-surface) 94%, #fff);
  box-shadow: var(--jx-shadow);
}

.jx-search-empty__icon {
  font-size: 52px;
  line-height: 1;
  margin: 0 0 14px;
}

.jx-search-empty__title {
  margin: 0;
  font-size: 24px;
  color: var(--jx-text);
}

.jx-search-empty__desc {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--jx-muted);
}

.jx-main--msearch {
  width: 100%;
}

.jx-msearch {
  margin: 12px 0 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--jx-border) 92%, #dbe6f3);
  background: linear-gradient(180deg, color-mix(in srgb, var(--jx-surface) 96%, #fff) 0%, color-mix(in srgb, var(--jx-surface) 98%, #f8fbff) 100%);
  box-shadow: 0 10px 26px rgba(23, 39, 67, 0.08);
}

.jx-msearch__head {
  margin-bottom: 10px;
}

.jx-msearch__title {
  margin: 0;
  font-size: 22px;
  color: var(--jx-text);
}

.jx-msearch__sub {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--jx-muted);
}

.jx-msearch__form {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.jx-msearch__input {
  flex: 1;
  min-width: 0;
  height: 40px;
  border: 1px solid #d6e2ee;
  border-radius: 10px;
  padding: 0 12px;
  background: #f8fafc;
  font-size: 14px;
}

.jx-msearch__btn {
  border: 0;
  border-radius: 10px;
  height: 40px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.jx-msearch__hot {
  margin: 8px 0 10px;
}

.jx-msearch__hot-label {
  display: inline-block;
  margin-right: 6px;
  font-size: 14px;
  color: var(--jx-muted);
}

.jx-msearch__hot-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  vertical-align: middle;
}

.jx-msearch__kw {
  border: 1px solid color-mix(in srgb, var(--jxu-accent, #2563eb) 26%, #c6d7ef);
  background: color-mix(in srgb, #fff 84%, var(--jxu-accent, #2563eb) 16%);
  color: color-mix(in srgb, var(--jxu-accent, #2563eb) 88%, #123c92);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  line-height: 1.5;
  cursor: pointer;
}

.jx-msearch__kw:hover {
  background: color-mix(in srgb, #fff 72%, var(--jxu-accent, #2563eb) 28%);
}

.jx-msearch__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.jx-msearch__item {
  border: 1px solid #e4ebf3;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}

.jx-msearch__item-title {
  display: block;
  color: var(--jx-text);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 4px;
}

.jx-msearch__item-meta {
  margin: 0;
  font-size: 12px;
  color: var(--jx-muted);
}


mark {
  background: rgba(250, 204, 21, 0.35);
  padding: 0 2px;
}

/* 移动端 */
@media (max-width: 960px) {
  html {
    overflow-x: hidden !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body,
  .jxu-body {
    overflow-x: hidden !important;
  }

  .jx-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }

  .jx-mainlayout {
    grid-template-columns: 1fr;
  }

  .jx-sidebar {
    display: block;
    align-self: auto;
  }

  .jx-sidebar-inner {
    position: static;
    top: auto;
  }

  .jxu-body.search .jx-grid--search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .jxu-body.search .jx-grid--search .jxu-card__body {
    padding: 10px 10px 12px;
  }

  .jxu-body.search .jx-grid--search .jxu-card__title {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .jxu-body.search .jx-grid--search .jxu-card__intro {
    font-size: 12px;
  }

  .jx-msearch {
    margin-top: 8px;
    padding: 14px;
  }

  .jx-msearch__title {
    font-size: 18px;
  }

  .jx-header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
  }

  .jx-logo {
    justify-self: start;
    min-width: 0;
  }

  .jx-header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .jx-header-actions .jx-search-icon,
  .jx-header-actions .jx-search,
  .jx-header-actions .jxu-frontend-top,
  .jx-header-actions .jxu-adminbar,
  .jx-header-actions .jx-mobile-move-toggle {
    display: none !important;
  }

  .jx-theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .jx-fx-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .jx-style-toggle {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .jx-music-toggle {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }

  .jxu-user-menu__btn {
    padding: 2px;
    border-radius: 999px;
    min-width: 0;
    max-width: none;
  }

  .jxu-user-menu__name,
  .jxu-user-menu__caret {
    display: none;
  }

  .jxu-user-menu__avatar {
    width: 32px;
    height: 32px;
  }

  .jx-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(92vw, 420px);
    background: var(--jx-surface);
    border-right: 1px solid var(--jx-border);
    padding: 8px 12px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-106%);
    transition: transform 0.24s ease;
    z-index: 1300;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    overflow: hidden;
  }

  .jx-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  .jx-mobile-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 2px 10px;
    border-bottom: 1px solid var(--jx-border);
  }

  .jx-mobile-sidebar-logo {
    display: inline-flex;
    align-items: center;
    max-width: 170px;
    min-height: 36px;
  }

  .jx-mobile-sidebar-logo img {
    max-width: 100%;
    max-height: 36px;
    object-fit: contain;
  }

  .jx-mobile-sidebar-close {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--jx-border);
    background: var(--jx-bg);
    color: var(--jx-text);
    font-size: 22px;
    line-height: 1;
  }

  .jx-mobile-sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 2px 12px;
    border-bottom: 1px solid var(--jx-border);
    margin-bottom: 8px;
  }

  .jx-mobile-sidebar-user__avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    flex-shrink: 0;
  }

  .jx-mobile-sidebar-user__meta {
    min-width: 0;
  }

  .jx-mobile-sidebar-user__meta strong {
    display: block;
    font-size: 18px;
    line-height: 1.2;
  }

  .jx-mobile-sidebar-user__links {
    margin-top: 6px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .jx-mobile-sidebar-user__links a {
    color: var(--jx-text);
    text-decoration: none;
    font-size: 14px;
  }

  .jx-mobile-sidebar-title {
    display: block;
    margin: 0;
    padding: 6px 2px 10px;
    font-size: 20px;
    line-height: 1.1;
  }

  .jx-nav > ul {
    display: block !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex: 1 1 auto;
    max-width: none;
    padding: 0 0 10px;
    margin: 0;
  }

  .jx-nav > ul > li {
    display: block !important;
    width: 100%;
    flex: none;
    margin: 0 0 4px;
  }

  .jx-nav > ul > li::after {
    display: none;
  }

  .jx-nav > ul > li > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 12px;
    font-size: 16px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .jx-nav .navbar-item {
    display: block !important;
    width: 100%;
  }

  .jx-nav .navbar-item > a {
    display: flex !important;
    width: 100%;
  }

  .jx-nav li ul {
    position: static;
    display: block;
    margin: 4px 0 8px 10px;
    padding: 0;
    min-width: 0;
    border: 0;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition: none;
  }

  .jx-nav > ul,
  .jx-nav > ul > li,
  .jx-nav .navbar-item {
    list-style: none !important;
  }

  .jx-nav li ul a {
    display: block !important;
    white-space: normal;
    padding: 8px 10px;
    font-size: 14px;
  }

  .jx-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .jx-nav-mask.is-open {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    z-index: 1200;
  }

  .jxu-body > .jx-wrap,
  .jxu-body > .jxu-hero {
    max-width: 100%;
    overflow-x: clip;
  }

  .jxu-float-tools {
    right: 8px;
    top: 62%;
    transform: translateY(-50%);
    z-index: 999;
  }

  .jxu-float-tools__btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .jx-logo-text small {
    display: none;
  }

  .jx-nav {
    width: 90vw;
  }
}

@media (max-width: 768px) {
  html,
  body {
    font-size: 13px;
  }

  .jx-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .jx-pagebar {
    margin-top: 12px;
    justify-content: center;
  }
  .jx-pagebar--desktop {
    display: none;
  }
  .jx-pagebar--mobile {
    display: flex;
  }
  .jx-pagebar--simple {
    gap: 8px;
  }
  .jx-pagebar--simple .jx-page-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
  }
  .jx-pagebar--simple .jx-page-btn.is-current {
    min-width: 38px;
  }
  .jx-pagebar--simple .jx-page-btn--nav {
    min-width: 34px;
    padding: 0 6px;
    font-size: 16px;
  }

  body.jxu-body.single .jx-mainlayout {
    grid-template-columns: 1fr !important;
  }

  body.jxu-body.single .jx-main,
  body.jxu-body.single .jxu-single-wrap,
  body.jxu-body.single .jx-single-body,
  body.jxu-body.single .jxu-article-body,
  body.jxu-body.single .jx-content {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.jxu-body.single .jx-content * {
    max-width: 100% !important;
    box-sizing: border-box;
  }

  body.jxu-body.single .jx-content table {
    display: block;
    width: 100% !important;
    overflow-x: auto;
  }

  .jx-nav {
    display: none !important;
  }

  #mobile-sidebar,
  #sidebar-mask {
    display: block;
  }

  /* 移动搜索页（search.php?msearch=1）：隐藏左上角侧栏按钮与抽屉，其它页面不变 */
  body.jx-mobile-msearch .jx-nav-toggle {
    display: none !important;
  }

  body.jx-mobile-msearch #mobile-sidebar,
  body.jx-mobile-msearch #sidebar-mask {
    display: none !important;
  }

  #mobile-sidebar {
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: min(88vw, 380px);
    background: #f2f3f7;
    z-index: 1301;
    transition: left 0.28s ease;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18);
  }

  #mobile-sidebar.active {
    left: 0;
  }

  #sidebar-mask {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    z-index: 1300;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  #sidebar-mask.active {
    opacity: 1;
    pointer-events: auto;
  }

  .sidebar-user {
    position: relative;
    min-height: 166px;
    padding: 12px 10px;
    background: linear-gradient(135deg, #4f46e5, #2563eb);
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .sidebar-close-btn {
    position: absolute;
    right: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(0, 0, 0, 0.32);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    z-index: 6;
    cursor: pointer;
  }

  .sidebar-user__overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.10) 0%, rgba(15, 23, 42, 0.18) 100%);
  }

  .sidebar-user__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #fff;
  }

  .sidebar-user__avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  }

  .sidebar-user__name {
    margin: 8px 0 6px;
    font-size: 18px;
    line-height: 1.2;
  }

  .sidebar-user__welcome {
    margin: 8px 0 0;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  }

  .sidebar-user__badge {
    position: relative;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 14px;
    border-radius: 999px;
    border: 1px solid var(--jx-mobile-badge-bg, #a855f7);
    background: var(--jx-mobile-badge-bg, #a855f7);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
  }

  .sidebar-user__badge::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -6px;
    width: 9px;
    height: 9px;
    transform: translateX(-50%) rotate(45deg);
    border-left: 1px solid var(--jx-mobile-badge-bg, #a855f7);
    border-top: 1px solid var(--jx-mobile-badge-bg, #a855f7);
    background: var(--jx-mobile-badge-bg, #a855f7);
  }

  .sidebar-user__points {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 4px 14px;
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.8);
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    font-size: 13px;
    font-weight: 700;
  }

  .sidebar-user__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
  }

  .sidebar-user__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    border: 1px solid rgba(191, 219, 254, 0.7);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.24);
    transition: all .18s ease;
  }

  .sidebar-user__actions a:hover {
    border-color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.24);
    transform: translateY(-1px);
  }

  .sidebar-menu {
    height: auto;
    max-height: calc(100dvh - 166px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 8px 8px 12px;
  }

  .sidebar-menu__list,
  .sidebar-menu__list ul,
  .sidebar-menu__fallback,
  .sidebar-menu__fallback ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  /* 手机侧栏模块：剑侠风格卡片 */
  #mobile-sidebar .sidebar-menu .function {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0 0 12px;
    padding: 12px 12px 10px;
    border: 1px solid rgba(87, 135, 255, 0.2);
    border-radius: 14px;
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(125, 211, 252, 0.16) 0%, rgba(255, 255, 255, 0) 48%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 251, 255, 0.95));
    box-shadow: 0 8px 20px rgba(30, 64, 175, 0.08);
  }

  #mobile-sidebar .sidebar-menu .function_c > .function_t--embed {
    display: block;
    margin: 0 0 9px;
    padding: 0 18px 8px 0;
    font-size: 16px;
    font-weight: 700;
    color: #1f2f55;
    line-height: 1.35;
    background: transparent;
    border: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.26);
    position: relative;
    letter-spacing: 0.2px;
  }

  #mobile-sidebar .sidebar-menu .function_c > .function_t--embed::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 56px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #3b82f6, #22d3ee);
  }

  #mobile-sidebar .sidebar-menu .function_c > .function_t--embed::after {
    content: "⚔️";
    position: absolute;
    right: 0;
    top: -1px;
    font-size: 13px;
    line-height: 1;
    opacity: 0.9;
  }

  #mobile-sidebar .sidebar-menu #jx_side_random .function_c > .function_t--embed::after {
    display: none;
  }

  #mobile-sidebar .sidebar-menu .function_c {
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 0;
    margin-inline-start: 0;
    padding: 1px 0 0;
    text-align: left;
  }

  #mobile-sidebar .jx-searchmod__form {
    gap: 6px;
  }

  #mobile-sidebar .jx-searchmod__input {
    height: 34px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
  }

  #mobile-sidebar .jx-searchmod__btn {
    height: 34px;
    padding: 0 12px;
    border-radius: 10px;
    font-size: 13px;
  }

  #mobile-sidebar .jx-searchmod__tag {
    padding: 4px 8px;
    font-size: 11px;
  }

  #mobile-sidebar .jx-randommod-wrap {
    padding-top: 2px;
  }

  #mobile-sidebar .jx-randommod__refresh {
    right: 0;
    top: -46px;
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  #mobile-sidebar .jx-randommod__title {
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-top: 6px !important;
    padding: 0 !important;
    line-height: 1.4 !important;
    font-size: 12px !important;
    min-height: calc(1.4em * 2) !important;
    color: var(--jx-text) !important;
    word-break: break-word;
  }

  #mobile-sidebar .jx-ucentermod {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #mobile-sidebar .jx-profilemod {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  #mobile-sidebar .jx-profilemod__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #mobile-sidebar .jx-ucentermod__item,
  #mobile-sidebar .jx-profilemod__item {
    min-height: 64px;
    border-radius: 10px;
    gap: 5px;
    padding: 8px 4px;
  }

  #mobile-sidebar .jx-ucentermod__ico,
  #mobile-sidebar .jx-profilemod__ico {
    font-size: 16px;
  }

  #mobile-sidebar .jx-ucentermod__txt,
  #mobile-sidebar .jx-profilemod__txt {
    font-size: 11px;
  }

  /* 手机端隐藏「个人中心」模块里的“我的评论”按钮 */
  #mobile-sidebar .jx-profilemod__item--my-comments {
    display: none !important;
  }

  #mobile-sidebar .sidebar-menu .function_c ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  #mobile-sidebar .sidebar-menu .function_c li {
    margin: 0;
    border-bottom: 1px dashed rgba(203, 213, 225, 0.72);
  }

  #mobile-sidebar .sidebar-menu .function_c li:last-child {
    border-bottom: 0;
  }

  /* 参考 downlee：手机侧栏分类使用独立 ul，重置 float/绝对定位子菜单为纵向满宽 */
  #mobile-sidebar .jx-mobile-toolrow {
    --jx-mobile-tool-btn-bg: #f8fafc;
    --jx-mobile-tool-btn-border: #dbe5f2;
    --jx-mobile-tool-btn-text: #1f2937;
    --jx-mobile-tool-btn-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid #e7edf7;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  }

  html.theme-dark #mobile-sidebar .jx-mobile-toolrow {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(30, 41, 59, 0.86);
    --jx-mobile-tool-btn-bg: #2a2d3e;
    --jx-mobile-tool-btn-border: #3f4456;
    --jx-mobile-tool-btn-text: #e0e6ed;
    --jx-mobile-tool-btn-shadow: 0 6px 12px rgba(3, 6, 16, 0.36);
  }

  #mobile-sidebar .jx-mobile-toolrow__btn {
    flex: 1;
    width: auto;
    min-width: 0;
    height: 38px;
    border-radius: 10px;
    font-size: 17px;
    border: 1px solid var(--jx-mobile-tool-btn-border);
    background: var(--jx-mobile-tool-btn-bg);
    color: var(--jx-mobile-tool-btn-text);
    box-shadow: var(--jx-mobile-tool-btn-shadow);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background-color .18s ease, color .18s ease;
  }

  #mobile-sidebar .jx-mobile-toolrow__btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
  }

  #mobile-sidebar .jx-mobile-toolrow__btn:active {
    transform: translateY(0) scale(0.97);
  }

  html.theme-dark #mobile-sidebar .jx-mobile-toolrow__btn:hover {
    border-color: #58607a;
    box-shadow: 0 10px 18px rgba(3, 6, 16, 0.46);
  }

  html.jxu-style-mist #mobile-sidebar .jx-mobile-toolrow {
    --jx-mobile-tool-btn-bg: #f5f8fb;
    --jx-mobile-tool-btn-border: #c9d7e6;
    --jx-mobile-tool-btn-text: #1f2f3f;
  }

  html.jxu-style-future #mobile-sidebar .jx-mobile-toolrow {
    --jx-mobile-tool-btn-bg: #edf6ff;
    --jx-mobile-tool-btn-border: rgba(56, 189, 248, 0.5);
    --jx-mobile-tool-btn-text: #0f2a4a;
  }

  html.theme-dark.jxu-style-mist #mobile-sidebar .jx-mobile-toolrow,
  html.theme-dark.jxu-style-future #mobile-sidebar .jx-mobile-toolrow {
    --jx-mobile-tool-btn-bg: #2a2d3e;
    --jx-mobile-tool-btn-border: #3f4456;
    --jx-mobile-tool-btn-text: #e0e6ed;
  }

  #mobile-sidebar .jx-mobile-navcard {
    --jx-mobile-navcard-bg: #ffffff;
    --jx-mobile-navcard-border: #e7edf7;
    --jx-mobile-navcard-title-bg: linear-gradient(135deg, #f7fbff 0%, #eff6ff 100%);
    --jx-mobile-navcard-title-text: #0f172a;
    --jx-mobile-navcard-sep: #ececec;
    --jx-mobile-navcard-link: #0f172a;
    --jx-mobile-navcard-sub-bg: #f8fbff;
    --jx-mobile-navcard-sub-link: #334155;
    --jx-mobile-navcard-toggle-bg: rgba(15, 23, 42, 0.04);
    --jx-mobile-navcard-toggle-text: #64748b;
  }

  #mobile-sidebar .jx-mobile-navcard {
    margin: 0 0 12px;
    border-radius: 14px;
    border: 1px solid var(--jx-mobile-navcard-border);
    background: var(--jx-mobile-navcard-bg);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
    overflow: hidden;
  }

  #mobile-sidebar .jx-mobile-navcard__hd {
    margin: 0;
    padding: 10px 14px;
    font-size: 16px;
    font-weight: 700;
    color: var(--jx-mobile-navcard-title-text);
    border-bottom: 1px solid var(--jx-mobile-navcard-border);
    background: var(--jx-mobile-navcard-title-bg);
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    float: none !important;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li {
    list-style: none !important;
    position: relative;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    display: block !important;
    width: 100% !important;
    border-top: 1px solid var(--jx-mobile-navcard-sep);
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li:first-child {
    border-top: 0;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > a {
    position: relative;
    display: flex !important;
    align-items: center;
    width: 100% !important;
    box-sizing: border-box;
    padding: 10px 14px !important;
    line-height: 1.35;
    font-size: 14px;
    font-weight: 500;
    color: var(--jx-mobile-navcard-link);
    text-decoration: none;
    background: var(--jx-mobile-navcard-bg);
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > a > i {
    display: none !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li.has-children > a {
    padding-right: 44px !important;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > .jx-sidebar-sub-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--jx-mobile-navcard-toggle-bg);
    color: var(--jx-mobile-navcard-toggle-text);
    cursor: pointer;
    padding: 0;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > .jx-sidebar-sub-toggle::before {
    content: "⌄";
    display: block;
    font-size: 16px;
    line-height: 34px;
    text-align: center;
    transition: transform 0.2s ease;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li.is-open > .jx-sidebar-sub-toggle::before {
    transform: rotate(180deg);
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > ul {
    display: none;
    float: none !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    background: var(--jx-mobile-navcard-sub-bg);
    border: 0;
    border-top: 1px solid var(--jx-mobile-navcard-border);
    border-radius: 0;
    box-shadow: none !important;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li.is-open > ul {
    display: block;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > ul > li {
    float: none !important;
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-top: 1px dashed var(--jx-mobile-navcard-border);
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > ul > li:first-child {
    border-top: 0;
  }

  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > li > ul > li > a {
    display: block !important;
    padding: 9px 14px !important;
    font-size: 13px;
    font-weight: 400;
    color: var(--jx-mobile-navcard-sub-link);
    text-decoration: none;
    background: transparent;
  }

  html.jxu-style-mist #mobile-sidebar .jx-mobile-navcard {
    --jx-mobile-navcard-bg: #f8fbff;
    --jx-mobile-navcard-border: #d8e2ee;
    --jx-mobile-navcard-title-bg: linear-gradient(135deg, #eef4fb 0%, #e8f1fb 100%);
    --jx-mobile-navcard-title-text: #22354a;
    --jx-mobile-navcard-sep: #dce6f1;
    --jx-mobile-navcard-link: #1f3349;
    --jx-mobile-navcard-sub-bg: #f1f7ff;
    --jx-mobile-navcard-sub-link: #334a63;
    --jx-mobile-navcard-toggle-bg: rgba(45, 74, 104, 0.09);
    --jx-mobile-navcard-toggle-text: #4b6179;
  }

  html.jxu-style-future #mobile-sidebar .jx-mobile-navcard {
    --jx-mobile-navcard-bg: #edf6ff;
    --jx-mobile-navcard-border: rgba(56, 189, 248, 0.4);
    --jx-mobile-navcard-title-bg: linear-gradient(135deg, #e3f1ff 0%, #dcedff 100%);
    --jx-mobile-navcard-title-text: #0f2a4a;
    --jx-mobile-navcard-sep: rgba(56, 189, 248, 0.26);
    --jx-mobile-navcard-link: #163a5f;
    --jx-mobile-navcard-sub-bg: #e9f4ff;
    --jx-mobile-navcard-sub-link: #355575;
    --jx-mobile-navcard-toggle-bg: rgba(56, 189, 248, 0.14);
    --jx-mobile-navcard-toggle-text: #35628d;
  }

  html.theme-dark #mobile-sidebar .jx-mobile-navcard {
    --jx-mobile-navcard-bg: #2a2d3e;
    --jx-mobile-navcard-border: #3f4456;
    --jx-mobile-navcard-title-bg: linear-gradient(135deg, #303549 0%, #2b3143 100%);
    --jx-mobile-navcard-title-text: #e0e6ed;
    --jx-mobile-navcard-sep: #3f4456;
    --jx-mobile-navcard-link: #e0e6ed;
    --jx-mobile-navcard-sub-bg: #25293a;
    --jx-mobile-navcard-sub-link: #c4ccd6;
    --jx-mobile-navcard-toggle-bg: rgba(224, 230, 237, 0.1);
    --jx-mobile-navcard-toggle-text: #d5dbe5;
    box-shadow: 0 10px 20px rgba(3, 6, 16, 0.42);
  }

  /* 非宫格模块：满宽排版，避免内联 max-width 导致视觉偏右 */
  #mobile-sidebar .sidebar-menu__list > .function .function_c > div:not(.function_t--embed):not(:has(> a)),
  #mobile-sidebar .sidebar-menu__list > .function .function_c > ul {
    width: 100% !important;
    max-width: none !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  #mobile-sidebar .navbar-item,
  #mobile-sidebar .navbar-item > a,
  #mobile-sidebar .navbar-item > ul,
  #mobile-sidebar .navbar-item > ul > li,
  #mobile-sidebar .navbar-item > ul > li > a {
    float: none !important;
    clear: both !important;
    width: 100% !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  #mobile-sidebar .navbar-item > a > i {
    display: none !important;
  }

  /* 手机端隐藏“首页”菜单项（仅分类导航顶层） */
  #mobile-sidebar #jx-mobile-nav.jx-mobile-navlist > .navbar-item:first-child,
  .jx-nav > ul > li:first-child {
    display: none !important;
  }

  #mobile-sidebar .sidebar-menu .function_c ul a {
    display: block;
    padding: 9px 4px 9px 2px;
    font-size: 14px;
    line-height: 1.45;
    color: #334155;
    text-decoration: none;
    word-break: break-word;
  }

  #mobile-sidebar .sidebar-menu .function_c ul a:hover {
    color: #1d4ed8;
  }

  #mobile-sidebar .sidebar-menu .function_c input[type="text"],
  #mobile-sidebar .sidebar-menu .function_c input[type="search"],
  #mobile-sidebar .sidebar-menu .function_c input[type="email"],
  #mobile-sidebar .sidebar-menu .function_c input[type="number"],
  #mobile-sidebar .sidebar-menu .function_c textarea,
  #mobile-sidebar .sidebar-menu .function_c select {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #dbe5f4;
    background: #fff;
    padding: 0 10px;
    font-size: 13px;
    color: #0f172a;
  }

  #mobile-sidebar .sidebar-menu .function_c textarea {
    height: auto;
    min-height: 88px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  #mobile-sidebar .sidebar-menu .function_c input[type="submit"],
  #mobile-sidebar .sidebar-menu .function_c button {
    height: 36px;
    border-radius: 10px;
    border: 1px solid #bcd2ff;
    background: linear-gradient(135deg, #eff6ff, #e0eeff);
    color: #1e3a8a;
    font-weight: 600;
    padding: 0 12px;
  }

  html.theme-dark #mobile-sidebar .sidebar-menu .function {
    border-color: rgba(96, 165, 250, 0.35);
    background:
      radial-gradient(120% 120% at 100% 0%, rgba(56, 189, 248, 0.12) 0%, rgba(15, 23, 42, 0) 50%),
      linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(17, 24, 39, 0.94));
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.45);
  }

  html.theme-dark #mobile-sidebar .sidebar-menu .function_c > .function_t--embed {
    color: #dbeafe;
    border-bottom-color: rgba(148, 163, 184, 0.35);
  }

  html.theme-dark #mobile-sidebar .sidebar-menu .function_c li {
    border-bottom-color: rgba(148, 163, 184, 0.24);
  }

  html.theme-dark #mobile-sidebar .sidebar-menu .function_c ul a {
    color: #cbd5e1;
  }

  html.theme-dark #mobile-sidebar .sidebar-menu .function_c input[type="text"],
  html.theme-dark #mobile-sidebar .sidebar-menu .function_c input[type="search"],
  html.theme-dark #mobile-sidebar .sidebar-menu .function_c input[type="email"],
  html.theme-dark #mobile-sidebar .sidebar-menu .function_c input[type="number"],
  html.theme-dark #mobile-sidebar .sidebar-menu .function_c textarea,
  html.theme-dark #mobile-sidebar .sidebar-menu .function_c select {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.65);
    color: #e2e8f0;
  }

  .jxu-float-tools {
    right: 10px;
    top: 62%;
    transform: translateY(-50%);
    z-index: 1200;
  }

  .jx-footer.jx-footer--hero {
    margin-top: 20px;
    padding: 26px 0 22px;
  }
  .jx-footer-grid--hero {
    gap: 16px;
  }
  .jx-footer-title {
    font-size: 22px;
  }
  .jx-footer-line {
    width: 66px;
    margin: 8px 0 12px;
  }
  .jx-footer-desc {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.65;
  }
  .jx-footer-search input[type="text"] {
    height: 38px;
    font-size: 14px;
  }
  .jx-footer-search button {
    height: 38px;
    flex-basis: 46px;
    font-size: 20px;
  }
  .jx-footer-nav-list--hero > li > a {
    font-size: 14px;
  }
  .jx-footer-copy--hero {
    margin-top: 16px;
    padding-top: 10px;
    font-size: 12px;
  }
}
