/*!
 * Joe Theme · Modern Design Layer
 * 现代视觉层：联动主题色 + 亮/暗双模式
 * 该文件在所有主题样式之后加载，仅做覆盖，不破坏原有布局
 */
.joe_sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important;}


/* ==========================================================================
   1. 设计令牌
   ========================================================================== */
html {
  --joe-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
    'Microsoft YaHei', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --joe-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;

  --joe-radius-xs: 8px;
  --joe-radius-sm: 10px;
  --joe-radius-md: 14px;
  --joe-radius-lg: 20px;
  --joe-radius-xl: 28px;

  --joe-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --joe-ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* 主题色（默认 · 幻紫） */
  --theme: #6d5efc;
  --theme-2: #a78bfa;
  --theme-rgb: 109, 94, 252;
  --theme-soft: rgba(109, 94, 252, 0.1);
  --theme-soft-2: rgba(109, 94, 252, 0.18);
  --theme-grad: linear-gradient(135deg, var(--theme) 0%, var(--theme-2) 100%);

  /* 亮色模式 */
  --joe-bg: #f4f6fb;
  --joe-bg-soft: #eef1f8;
  --joe-surface: #ffffff;
  --joe-surface-2: #f7f9fd;
  --joe-surface-3: #eff3fa;
  --joe-text: #10131c;
  --joe-text-2: #4a5468;
  --joe-text-3: #7b8698;
  --joe-text-4: #a6afc0;
  --joe-border: #e5eaf3;
  --joe-border-strong: #d6dde9;
  --joe-shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
  --joe-shadow-sm: 0 2px 8px -2px rgba(16, 24, 40, 0.08), 0 1px 3px rgba(16, 24, 40, 0.04);
  --joe-shadow-md: 0 12px 28px -12px rgba(16, 24, 40, 0.18), 0 2px 6px rgba(16, 24, 40, 0.04);
  --joe-shadow-lg: 0 24px 48px -20px rgba(16, 24, 40, 0.24);
  --joe-glass: rgba(255, 255, 255, 0.78);
  --joe-glass-border: rgba(255, 255, 255, 0.6);
  --joe-code-bg: #f6f8fc;

  /* 覆盖 Joe 原生令牌 */
  --background: var(--joe-surface);
  --main: var(--joe-text);
  --routine: var(--joe-text-2);
  --minor: var(--joe-text-3);
  --seat: var(--joe-text-4);
  --classA: var(--joe-border-strong);
  --classB: var(--joe-border);
  --classC: #eef1f8;
  --classD: var(--joe-surface-2);
  --radius-wrap: var(--joe-radius-lg);
  --radius-inner: var(--joe-radius-sm);
  --box-shadow: var(--joe-shadow-sm);
  --text-shadow: none;
}

/* 暗色模式 */
html[data-theme='dark'] {
  --joe-bg: #080b13;
  --joe-bg-soft: #0d111b;
  --joe-surface: #111725;
  --joe-surface-2: #161e2e;
  --joe-surface-3: #1b2436;
  --joe-text: #e9eef8;
  --joe-text-2: #a9b3c6;
  --joe-text-3: #7e8a9f;
  --joe-text-4: #5c6779;
  --joe-border: #212b3d;
  --joe-border-strong: #2c3850;
  --joe-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --joe-shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, 0.6);
  --joe-shadow-md: 0 16px 36px -18px rgba(0, 0, 0, 0.85);
  --joe-shadow-lg: 0 30px 60px -28px rgba(0, 0, 0, 0.9);
  --joe-glass: rgba(17, 23, 37, 0.72);
  --joe-glass-border: rgba(255, 255, 255, 0.06);
  --joe-code-bg: #0c111c;

  --background: var(--joe-surface);
  --main: var(--joe-text);
  --routine: var(--joe-text-2);
  --minor: var(--joe-text-3);
  --seat: var(--joe-text-4);
  --classA: var(--joe-border-strong);
  --classB: var(--joe-border);
  --classC: #1a2233;
  --classD: var(--joe-surface-2);
  --text-shadow: none;
}

/* 联动配色方案 */
html[data-accent='violet'] {
  --theme: #6d5efc;
  --theme-2: #a78bfa;
  --theme-rgb: 109, 94, 252;
}
html[data-accent='blue'] {
  --theme: #2f7cf6;
  --theme-2: #56ccf2;
  --theme-rgb: 47, 124, 246;
}
html[data-accent='teal'] {
  --theme: #0fb9b1;
  --theme-2: #4ade80;
  --theme-rgb: 15, 185, 177;
}
html[data-accent='emerald'] {
  --theme: #14b86a;
  --theme-2: #86efac;
  --theme-rgb: 20, 184, 106;
}
html[data-accent='amber'] {
  --theme: #f59e0b;
  --theme-2: #fbbf24;
  --theme-rgb: 245, 158, 11;
}
html[data-accent='rose'] {
  --theme: #f43f5e;
  --theme-2: #fb7185;
  --theme-rgb: 244, 63, 94;
}
html[data-accent='ink'] {
  --theme: #64748b;
  --theme-2: #94a3b8;
  --theme-rgb: 100, 116, 139;
}

html {
  --theme-soft: rgba(var(--theme-rgb), 0.1);
  --theme-soft-2: rgba(var(--theme-rgb), 0.18);
  --theme-grad: linear-gradient(135deg, var(--theme) 0%, var(--theme-2) 100%);
}

/* ==========================================================================
   2. 基础
   ========================================================================== */
html {
  background: var(--joe-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--joe-font);
  color: var(--joe-text);
  background: transparent;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: color 0.25s var(--joe-ease);
}

html[data-wallpaper='0'] body::before {
  background: radial-gradient(1200px 600px at 12% -10%, rgba(var(--theme-rgb), 0.1), transparent 60%),
    radial-gradient(900px 500px at 88% 0%, rgba(var(--theme-rgb), 0.06), transparent 55%), var(--joe-bg) !important;
}

html[data-theme='dark'][data-wallpaper='0'] body::before {
  background: radial-gradient(1100px 620px at 8% -12%, rgba(var(--theme-rgb), 0.22), transparent 62%),
    radial-gradient(900px 520px at 92% 4%, rgba(56, 189, 248, 0.12), transparent 58%), #080b13 !important;
}

::selection {
  background: rgba(var(--theme-rgb), 0.22);
  color: var(--joe-text);
}

a {
  color: var(--theme);
  transition: color 0.2s var(--joe-ease), opacity 0.2s var(--joe-ease);
}

a:hover {
  color: var(--theme-2);
}

:focus-visible {
  outline: 2px solid var(--theme);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 滚动条 */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--joe-border-strong) transparent;
}
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--joe-border-strong);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--theme);
}
::-webkit-scrollbar-track {
  background: transparent;
}

/* 阅读进度条 */
.joe_progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--theme-grad);
  z-index: 2000;
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
  box-shadow: 0 0 12px rgba(var(--theme-rgb), 0.6);
}

/* ==========================================================================
   3. 头部
   ========================================================================== */
.joe_header {
  background: var(--joe-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: none;
  border-bottom: 1px solid var(--joe-border);
  transition: background 0.3s var(--joe-ease), border-color 0.3s var(--joe-ease);
}

.joe_header__above,
.joe_header__below {
  background: transparent;
}

.joe_header__above {
  height: 64px;
}

.joe_header__above-logo {
  height: 64px;
}

.joe_header__above-logo img {
  max-height: 34px;
  border-radius: 8px;
}

.joe_header__above-nav {
  gap: 2px;
}

.joe_header__above-nav .item {
  position: relative;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 500;
  color: var(--joe-text-2);
  transition: all 0.22s var(--joe-ease);
}

.joe_header__above-nav .item:hover {
  color: var(--theme);
  background: var(--theme-soft);
}

.joe_header__above-nav .item.active {
  color: #fff;
  background: var(--theme-grad);
  box-shadow: 0 6px 16px -8px rgba(var(--theme-rgb), 0.9);
}

.joe_header__above-nav .item.active::after {
  display: none;
}

.joe_header__above-search .input {
  background: var(--joe-surface-3);
  border: 1px solid transparent;
  border-radius: 99px;
  height: 36px;
  padding: 0 16px;
  color: var(--joe-text);
  transition: all 0.22s var(--joe-ease);
}

.joe_header__above-search .input:focus,
.joe_header__above-search .input:hover {
  background: var(--joe-surface);
  border-color: rgba(var(--theme-rgb), 0.4);
  box-shadow: 0 0 0 4px var(--theme-soft);
}

.joe_header__above-search .submit {
  background: var(--theme-grad);
  border-radius: 99px;
  height: 36px;
  padding: 0 18px;
  font-weight: 500;
  color: #fff;
  border: none;
}

.joe_header__below {
  border-top: none;
  min-height: 44px;
}

.joe_header__below-class .item {
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  color: var(--joe-text-2);
  transition: all 0.2s var(--joe-ease);
}

.joe_header__below-class .item:hover,
.joe_header__below-class .item.active {
  color: var(--theme);
  background: var(--theme-soft);
}

.joe_header__below-sign .item {
  font-size: 13px;
  color: var(--joe-text-3);
}

/* 下拉菜单 */
.joe_dropdown__menu,
.joe_header__above-search .result {
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-md);
  box-shadow: var(--joe-shadow-lg);
  overflow: hidden;
  padding: 6px;
}

.joe_dropdown__menu a,
.joe_header__above-search .result .item {
  border-radius: var(--joe-radius-xs);
  transition: background 0.18s var(--joe-ease);
}

.joe_dropdown__menu a:hover,
.joe_header__above-search .result .item:hover {
  background: var(--theme-soft);
  color: var(--theme);
}

/* ==========================================================================
   4. 布局容器
   ========================================================================== */
.joe_container {
  max-width: 1200px;
  padding-left: 20px;
  padding-right: 20px;
}

.joe_main {
  padding: 24px 0;
}

/* ==========================================================================
   5. 首页
   ========================================================================== */
.joe_index__title {
  margin-bottom: 16px;
}

.joe_index__title-title .item {
  font-size: 15px;
  font-weight: 600;
  color: var(--joe-text-3);
  padding: 6px 2px;
  margin-right: 22px;
  position: relative;
  transition: color 0.2s var(--joe-ease);
}

.joe_index__title-title .item:hover {
  color: var(--theme);
}

.joe_index__title-title .item.active {
  color: var(--joe-text);
}

.joe_index__title-title .item.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 3px;
  border-radius: 3px;
  background: var(--theme-grad);
}

.joe_index__title-notice {
  background: var(--theme-soft);
  border: 1px solid rgba(var(--theme-rgb), 0.18);
  border-radius: 99px;
  padding: 4px 12px;
}

.joe_index__title-notice a {
  color: var(--theme);
  font-size: 13px;
}

/* 首页卡片列表 */
.joe_list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.joe_list__item {
  position: relative;
  border: 1px solid var(--joe-border);
  border-bottom: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-lg);
  background: var(--joe-surface);
  padding: 18px;
  box-shadow: var(--joe-shadow-xs);
  transition: transform 0.28s var(--joe-ease-out), box-shadow 0.28s var(--joe-ease-out),
    border-color 0.28s var(--joe-ease-out);
  overflow: hidden;
}

.joe_list__item::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--theme-grad);
  opacity: 0;
  transition: opacity 0.28s var(--joe-ease);
}

.joe_list__item:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--theme-rgb), 0.35);
  box-shadow: var(--joe-shadow-md);
}

.joe_list__item:hover::before {
  opacity: 1;
}

.joe_list__item:last-child {
  border-bottom: 1px solid var(--joe-border);
}

.joe_list__item .thumbnail {
  border-radius: var(--joe-radius-md);
  overflow: hidden;
  background: var(--joe-surface-3);
}

.joe_list__item .thumbnail img {
  transition: transform 0.5s var(--joe-ease-out);
  display: block;
}

.joe_list__item:hover .thumbnail img {
  transform: scale(1.06);
}

.joe_list__item .information .title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--joe-text);
  transition: color 0.2s var(--joe-ease);
}

.joe_list__item:hover .information .title {
  color: var(--theme);
}

.joe_list__item .information .abstract {
  color: var(--joe-text-3);
  font-size: 13.5px;
  line-height: 1.75;
}

.joe_list__item .information .meta {
  color: var(--joe-text-4);
  font-size: 12.5px;
}

.joe_list__item .information .meta .link {
  color: var(--theme);
  background: var(--theme-soft);
  border-radius: 99px;
  padding: 1px 8px;
}

.joe_list__item .information .meta .line {
  color: var(--joe-border-strong);
}

.joe_list__item .information .items .item {
  background: var(--joe-surface-3);
  color: var(--joe-text-3);
  border-radius: 99px;
  padding: 2px 10px;
  font-size: 12px;
  transition: all 0.2s var(--joe-ease);
}

.joe_list__item .information .items .item:hover {
  background: var(--theme-soft);
  color: var(--theme);
}

/* 三图模式 */
.joe_list__item.multiple .thumbnail .image {
  border-radius: var(--joe-radius-sm);
  overflow: hidden;
}

/* 加载更多 */
.joe_load {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  margin: 22px auto 0;
  width: 180px;
  border-radius: 99px;
  border: 1px solid var(--joe-border);
  background: var(--joe-surface);
  color: var(--joe-text-2);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--joe-shadow-xs);
  transition: all 0.25s var(--joe-ease);
}

.joe_load:hover {
  border-color: transparent;
  background: var(--theme-grad);
  color: #fff;
  box-shadow: 0 12px 24px -12px rgba(var(--theme-rgb), 0.9);
  transform: translateY(-1px);
}

/* 骨架屏 */
.joe_list__loading .item {
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-lg);
  padding: 18px;
  background: var(--joe-surface);
}

.joe_list__loading .thumbnail,
.joe_list__loading .title,
.joe_list__loading .abstract p {
  background: linear-gradient(90deg, var(--joe-surface-3) 25%, var(--joe-surface-2) 37%, var(--joe-surface-3) 63%);
  background-size: 400% 100%;
  animation: joe-shimmer 1.4s ease infinite;
  border-radius: 8px;
}

@keyframes joe-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

/* 轮播与推荐 */
.joe_index__banner .swiper-slide .item {
  border-radius: var(--joe-radius-lg);
  overflow: hidden;
  box-shadow: var(--joe-shadow-md);
}

.joe_index__banner .swiper-slide .title {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
  font-weight: 600;
}

.joe_index__banner-recommend .item {
  border-radius: var(--joe-radius-lg);
  overflow: hidden;
  box-shadow: var(--joe-shadow-md);
}

.joe_index__hot-list .item .inner {
  border-radius: var(--joe-radius-md);
  overflow: hidden;
}

.joe_index__hot-list .item .views {
  background: rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border-radius: 99px;
  padding: 2px 8px;
  font-size: 12px;
}

/* ==========================================================================
   6. 文章页
   ========================================================================== */
.joe_bread {
  padding-top: 16px;
}

.joe_bread__bread {
  font-size: 13px;
  color: var(--joe-text-3);
}

.joe_bread__bread .item .link {
  color: var(--joe-text-3);
}

.joe_bread__bread .item .link:hover {
  color: var(--theme);
}

.joe_detail {
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-lg);
  box-shadow: var(--joe-shadow-sm);
  padding: 28px 32px;
}

.joe_detail__category .item {
  border-radius: 99px;
  padding: 3px 12px;
  font-size: 12.5px;
  font-weight: 500;
  background: var(--theme-soft);
  color: var(--theme);
  transition: all 0.2s var(--joe-ease);
}

.joe_detail__category .item:hover {
  background: var(--theme);
  color: #fff;
}

.joe_detail__category .edit {
  border-radius: 99px;
  background: var(--joe-surface-3);
  color: var(--joe-text-3);
  padding: 3px 12px;
  font-size: 12.5px;
}

.joe_detail__title {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--joe-text);
  margin: 14px 0 16px;
}

.joe_detail__count {
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--joe-border);
  margin-bottom: 22px;
}

.joe_detail__count-information .avatar {
  border-radius: 50%;
  border: 2px solid var(--joe-surface);
  box-shadow: 0 0 0 2px rgba(var(--theme-rgb), 0.25);
}

.joe_detail__count-information .meta .author .link {
  font-weight: 600;
  color: var(--joe-text);
  font-size: 14px;
}

.joe_detail__count-information .meta .item {
  color: var(--joe-text-4);
  font-size: 12.5px;
}

.joe_detail__count-created {
  color: var(--joe-text-4);
  font-size: 12.5px;
  background: var(--joe-surface-3);
  border-radius: 99px;
  padding: 3px 10px;
}

/* 正文排版 */
.joe_detail__article {
  font-size: 16px;
  line-height: 1.9;
  color: var(--joe-text-2);
  letter-spacing: 0.01em;
}

.joe_detail__article > *:first-child {
  margin-top: 0;
}

.joe_detail__article p {
  margin: 0 0 1.15em;
}

.joe_detail__article h1,
.joe_detail__article h2,
.joe_detail__article h3,
.joe_detail__article h4,
.joe_detail__article h5,
.joe_detail__article h6 {
  color: var(--joe-text);
  font-weight: 700;
  line-height: 1.45;
  margin: 1.9em 0 0.85em;
  scroll-margin-top: 90px;
  letter-spacing: -0.01em;
}

.joe_detail__article h1 {
  font-size: 26px;
}

.joe_detail__article h2 {
  font-size: 22px;
  padding-left: 14px;
  position: relative;
}

.joe_detail__article h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.22em;
  bottom: 0.22em;
  width: 4px;
  border-radius: 4px;
  background: var(--theme-grad);
}

.joe_detail__article h3 {
  font-size: 19px;
}

.joe_detail__article h4 {
  font-size: 17px;
}

.joe_detail__article a {
  color: var(--theme);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--theme-rgb), 0.35);
  transition: all 0.2s var(--joe-ease);
}

.joe_detail__article a:hover {
  border-bottom-color: var(--theme);
  background: var(--theme-soft);
}

.joe_detail__article ul,
.joe_detail__article ol {
  padding-left: 1.4em;
  margin: 0 0 1.15em;
}

.joe_detail__article li {
  margin: 0.35em 0;
}

.joe_detail__article li::marker {
  color: var(--theme);
}

.joe_detail__article blockquote {
  margin: 1.4em 0;
  padding: 16px 20px;
  border-left: 4px solid var(--theme);
  border-radius: 0 var(--joe-radius-md) var(--joe-radius-md) 0;
  background: var(--theme-soft);
  color: var(--joe-text-2);
}

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

.joe_detail__article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--joe-radius-md);
  display: block;
  margin: 1.4em auto;
  box-shadow: var(--joe-shadow-sm);
}

.joe_detail__article hr {
  border: none;
  height: 1px;
  background: var(--joe-border);
  margin: 2.2em 0;
}

.joe_detail__article code:not([class]) {
  font-family: var(--joe-mono);
  font-size: 0.88em;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--theme-soft);
  color: var(--theme);
  border: 1px solid rgba(var(--theme-rgb), 0.14);
}

.joe_detail__article pre {
  border-radius: var(--joe-radius-md);
  border: 1px solid var(--joe-border);
  background: var(--joe-code-bg);
  padding: 16px 18px;
  overflow: auto;
  margin: 1.4em 0;
  font-size: 13.5px;
  line-height: 1.7;
}

.joe_detail__article pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

/* 表格 */
.joe_table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 1.4em 0;
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-md);
}

.joe_table-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.joe_table-wrap th {
  background: var(--joe-surface-3);
  color: var(--joe-text);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  white-space: nowrap;
}

.joe_table-wrap td {
  padding: 10px 14px;
  border-top: 1px solid var(--joe-border);
  color: var(--joe-text-2);
}

.joe_table-wrap tr:hover td {
  background: var(--joe-surface-2);
}

/* 关键词高亮 */
.joe-kw {
  color: var(--theme) !important;
  text-decoration: none !important;
  border-bottom: 1px dashed rgba(var(--theme-rgb), 0.55) !important;
  padding: 0 1px;
  border-radius: 2px;
  transition: all 0.2s var(--joe-ease);
}

.joe-kw:hover {
  background: var(--theme-soft-2) !important;
  border-bottom-style: solid !important;
}

/* 目录 */
.joe_toc {
  margin: 0 0 24px;
  padding: 16px 20px;
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-md);
  background: var(--joe-surface-2);
}

.joe_toc__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--joe-text-3);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.joe_toc__title svg {
  color: var(--theme);
}

.joe_toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.joe_toc__item {
  margin: 2px 0;
  line-height: 1.6;
}

.joe_toc__item a {
  display: block;
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 13.5px;
  color: var(--joe-text-2);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.2s var(--joe-ease);
}

.joe_toc__item a:hover {
  color: var(--theme);
  background: var(--theme-soft);
  border-left-color: var(--theme);
}

.joe_toc__item--h3 a {
  padding-left: 24px;
  font-size: 13px;
  color: var(--joe-text-3);
}

.joe_toc__item--h4 a {
  padding-left: 38px;
  font-size: 12.5px;
  color: var(--joe-text-4);
}

/* 文章底部 */
.joe_detail__copyright {
  background: var(--joe-surface-2);
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-md);
}

.joe_post__pagination-item {
  border-radius: var(--joe-radius-md);
  border: 1px solid var(--joe-border);
  background: var(--joe-surface);
  transition: all 0.25s var(--joe-ease);
}

.joe_post__pagination-item:hover {
  border-color: rgba(var(--theme-rgb), 0.4);
  box-shadow: var(--joe-shadow-sm);
}

.joe_post__pagination-item a {
  color: var(--joe-text-2);
}

/* 相关文章 */
.joe_detail__related .item {
  border-radius: var(--joe-radius-md);
  transition: all 0.25s var(--joe-ease);
}

.joe_detail__related .item:hover {
  background: var(--joe-theme-soft, var(--theme-soft));
}

/* ==========================================================================
   7. 侧边栏
   ========================================================================== */
.joe_aside {
  padding-top: 24px;
}

.joe_aside__item {
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  border-radius: var(--joe-radius-lg);
  box-shadow: var(--joe-shadow-xs);
  width: 280px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: box-shadow 0.3s var(--joe-ease);
}

.joe_aside__item:hover {
  box-shadow: var(--joe-shadow-sm);
}

.joe_aside__item-title {
  padding: 14px 18px;
  border-bottom: 1px solid var(--joe-border);
  font-size: 14px;
  font-weight: 600;
  color: var(--joe-text);
}

.joe_aside__item-title .text {
  position: relative;
  padding-left: 12px;
}

.joe_aside__item-title .text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border-radius: 4px;
  background: var(--theme-grad);
}

.joe_aside__item-contain {
  padding: 14px 18px;
}

.joe_aside__item.author .image {
  border-radius: 0;
}

.joe_aside__item.author .user .avatar {
  border: 3px solid var(--joe-surface);
  box-shadow: 0 0 0 2px rgba(var(--theme-rgb), 0.3);
}

.joe_aside__item.author .count .num {
  color: var(--theme);
  font-weight: 700;
}

.joe_aside__item.author .nav .item .link {
  color: var(--joe-text-2);
  border-radius: 8px;
  transition: all 0.2s var(--joe-ease);
}

.joe_aside__item.author .nav .item .link:hover {
  color: var(--theme);
  background: var(--theme-soft);
}

.joe_aside__item .list .item {
  border-bottom: 1px dashed var(--joe-border);
}

.joe_aside__item .list .item:last-child {
  border-bottom: none;
}

.joe_aside__item .list .item .link {
  color: var(--joe-text-2);
}

.joe_aside__item .list .item .link:hover {
  color: var(--theme);
}

/* 标签云 */
.joe_aside__item .tags .item {
  border-radius: 99px;
  background: var(--joe-surface-3);
  color: var(--joe-text-3);
  padding: 3px 12px;
  transition: all 0.2s var(--joe-ease);
}

.joe_aside__item .tags .item:hover {
  background: var(--theme-grad);
  color: #fff;
}

/* ==========================================================================
   8. 页脚 & 悬浮操作
   ========================================================================== */
.joe_footer {
  border-top: 1px solid var(--joe-border);
  color: var(--joe-text-3);
  background: transparent;
  margin-top: 24px;
  font-size: 13px;
}

.joe_footer .joe_container a {
  color: var(--joe-text-3);
}

.joe_footer .joe_container a:hover {
  color: var(--theme);
}

.joe_action_item {
  width: 44px;
  height: 44px;
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  border-radius: 50%;
  box-shadow: var(--joe-shadow-md);
  color: var(--joe-text-2);
  transition: all 0.25s var(--joe-ease-out);
}

.joe_action_item:hover {
  transform: translateY(-2px) scale(1.04);
  color: var(--theme);
  border-color: rgba(var(--theme-rgb), 0.4);
}

/* ==========================================================================
   9. 主题切换器
   ========================================================================== */
.joe_theme-panel {
  position: fixed;
  z-index: 1200;
  right: 24px;
  bottom: 96px;
  width: 248px;
  padding: 16px;
  border-radius: var(--joe-radius-lg);
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  box-shadow: var(--joe-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: all 0.25s var(--joe-ease-out);
}

.joe_theme-panel.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.joe_theme-panel__title {
  font-size: 12px;
  font-weight: 600;
  color: var(--joe-text-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.joe_theme-panel__modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.joe_theme-panel__mode {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 4px;
  border-radius: var(--joe-radius-sm);
  border: 1px solid var(--joe-border);
  background: var(--joe-surface-2);
  color: var(--joe-text-3);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s var(--joe-ease);
}

.joe_theme-panel__mode svg {
  width: 18px;
  height: 18px;
}

.joe_theme-panel__mode:hover {
  border-color: rgba(var(--theme-rgb), 0.4);
  color: var(--theme);
}

.joe_theme-panel__mode.active {
  border-color: var(--theme);
  color: var(--theme);
  background: var(--theme-soft);
  box-shadow: 0 0 0 3px var(--theme-soft);
}

.joe_theme-panel__accents {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.joe_theme-panel__accent {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s var(--joe-ease-out), box-shadow 0.2s var(--joe-ease);
}

.joe_theme-panel__accent:hover {
  transform: scale(1.12);
}

.joe_theme-panel__accent.active {
  border-color: var(--joe-surface);
  box-shadow: 0 0 0 2px var(--joe-text);
}

.joe_theme-panel__accent[data-accent='violet'] {
  background: linear-gradient(135deg, #6d5efc, #a78bfa);
}
.joe_theme-panel__accent[data-accent='blue'] {
  background: linear-gradient(135deg, #2f7cf6, #56ccf2);
}
.joe_theme-panel__accent[data-accent='teal'] {
  background: linear-gradient(135deg, #0fb9b1, #4ade80);
}
.joe_theme-panel__accent[data-accent='emerald'] {
  background: linear-gradient(135deg, #14b86a, #86efac);
}
.joe_theme-panel__accent[data-accent='amber'] {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
}
.joe_theme-panel__accent[data-accent='rose'] {
  background: linear-gradient(135deg, #f43f5e, #fb7185);
}
.joe_theme-panel__accent[data-accent='ink'] {
  background: linear-gradient(135deg, #64748b, #94a3b8);
}

.joe_theme-panel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--joe-border);
  font-size: 12px;
  color: var(--joe-text-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ==========================================================================
   10. 归档 / 搜索页
   ========================================================================== */
.joe_archive__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--joe-text);
}

.joe_archive__list .item {
  border-radius: var(--joe-radius-md);
  border: 1px solid transparent;
  padding: 12px 14px;
  transition: all 0.22s var(--joe-ease);
}

.joe_archive__list .item:hover {
  background: var(--joe-surface);
  border-color: var(--joe-border);
  box-shadow: var(--joe-shadow-xs);
}

.joe_archive__list .item .title {
  color: var(--joe-text);
  font-weight: 500;
}

.joe_archive__list .item:hover .title {
  color: var(--theme);
}

/* 分页 */
.joe_pagination .item {
  border-radius: var(--joe-radius-sm);
  border: 1px solid var(--joe-border);
  background: var(--joe-surface);
  transition: all 0.2s var(--joe-ease);
}

.joe_pagination .item:hover,
.joe_pagination .item.active {
  background: var(--theme-grad);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(var(--theme-rgb), 0.9);
}

/* ==========================================================================
   11. 评论
   ========================================================================== */
.joe_comment__respond {
  border-radius: var(--joe-radius-lg);
  border: 1px solid var(--joe-border);
  background: var(--joe-surface);
  box-shadow: var(--joe-shadow-xs);
}

.joe_comment__respond textarea,
.joe_comment__respond input {
  border-radius: var(--joe-radius-sm);
  border: 1px solid var(--joe-border);
  background: var(--joe-surface-2);
  color: var(--joe-text);
  transition: all 0.2s var(--joe-ease);
}

.joe_comment__respond textarea:focus,
.joe_comment__respond input:focus {
  border-color: var(--theme);
  box-shadow: 0 0 0 4px var(--theme-soft);
  background: var(--joe-surface);
}

.joe_comment__respond .submit {
  border-radius: 99px;
  background: var(--theme-grad);
  color: #fff;
  border: none;
  font-weight: 500;
  box-shadow: 0 10px 20px -12px rgba(var(--theme-rgb), 0.9);
}

.joe_comment__list .item .avatar {
  border-radius: 50%;
}

.joe_comment__list .item .body .info .author {
  color: var(--joe-text);
}

/* ==========================================================================
   12. 暗色模式细节修正
   ========================================================================== */
html[data-theme='dark'] .joe_header {
  background: rgba(11, 15, 25, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .joe_detail__article img {
  opacity: 0.94;
}

html[data-theme='dark'] .joe_detail__article img:hover {
  opacity: 1;
}

html[data-theme='dark'] .joe_detail__article blockquote {
  background: rgba(var(--theme-rgb), 0.08);
}

html[data-theme='dark'] .joe_detail__article code:not([class]) {
  background: rgba(var(--theme-rgb), 0.14);
}

html[data-theme='dark'] .joe_list__item,
html[data-theme='dark'] .joe_detail,
html[data-theme='dark'] .joe_aside__item,
html[data-theme='dark'] .joe_comment__respond {
  border-color: rgba(255, 255, 255, 0.07);
}

html[data-theme='dark'] .joe_theme-panel__mode {
  background: var(--joe-surface-2);
}

html[data-theme='dark'] .joe_header__above-nav .item.active {
  color: #fff;
}

/* ==========================================================================
   13. 响应式
   ========================================================================== */
@media (max-width: 1024px) {
  .joe_aside__item {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .joe_container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .joe_detail {
    padding: 20px 18px;
    border-radius: var(--joe-radius-md);
  }

  .joe_detail__title {
    font-size: 23px;
  }

  .joe_detail__article {
    font-size: 15.5px;
    line-height: 1.85;
  }

  .joe_detail__article h2 {
    font-size: 19px;
  }

  .joe_detail__article h3 {
    font-size: 17px;
  }

  .joe_list__item {
    padding: 14px;
    border-radius: var(--joe-radius-md);
  }

  .joe_list__item .information .title {
    font-size: 15.5px;
  }

  .joe_theme-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 80px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ==========================================================================
   14. 代码复制按钮 / 目录激活态
   ========================================================================== */
.joe_copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  padding: 3px 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--joe-text-3);
  background: var(--joe-surface);
  border: 1px solid var(--joe-border);
  border-radius: 99px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-2px);
  transition: all 0.2s var(--joe-ease);
}

.joe_detail__article pre:hover .joe_copy-btn {
  opacity: 1;
  transform: translateY(0);
}

.joe_copy-btn:hover {
  color: var(--theme);
  border-color: rgba(var(--theme-rgb), 0.4);
  background: var(--theme-soft);
}

.joe_toc__item a.active {
  color: var(--theme);
  background: var(--theme-soft);
  border-left-color: var(--theme);
  font-weight: 600;
}

