/* ============================================================ */
/* 1. 全局变量定义（系统化变量管理）*/
/* ============================================================ */
:root {
  /* 字体大小系统（基于 16px 基准） */
  --fs-xxxxs: 0.625rem;   /* 10px */
  --fs-xxxs: 0.6875rem;   /* 11px */
  --fs-xxs: 0.75rem;      /* 12px */
  --fs-xs: 0.8125rem;     /* 13px */
  --fs-sm: 0.875rem;      /* 14px */
  --fs-base: 0.9375rem;   /* 15px */
  --fs-md: 1rem;          /* 16px */
  --fs-lg: 1.125rem;      /* 18px */
  --fs-xl: 1.25rem;       /* 20px */
  --fs-xxl: 1.5rem;       /* 24px */
  --fs-xxxl: 2rem;        /* 32px */

  /* 间距系统 */
  --space-xxxxs: 0.125rem;  /* 2px */
  --space-xxxs: 0.25rem;    /* 4px */
  --space-xxs: 0.5rem;      /* 8px */
  --space-xs: 0.75rem;      /* 12px */
  --space-sm: 1rem;         /* 16px */
  --space-md: 1.25rem;      /* 20px */
  --space-lg: 1.5rem;       /* 24px */
  --space-xl: 2rem;         /* 32px */
  --space-xxl: 2.5rem;      /* 40px */
  --space-xxxl: 3rem;       /* 48px */

  /* 圆角系统 */
  --radius-none: 0;
  --radius-xxxs: 0.125rem;  /* 2px */
  --radius-xxs: 0.25rem;    /* 4px */
  --radius-xs: 0.375rem;    /* 6px */
  --radius-sm: 0.5rem;      /* 8px */
  --radius-md: 0.75rem;     /* 12px */
  --radius-lg: 1rem;        /* 16px */
  --radius-xl: 1.25rem;     /* 20px */
  --radius-xxl: 1.5rem;     /* 24px */
  --radius-pill: 50rem;     /* 大圆角 */

  /* 动画和过渡 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-bounce: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* 阴影系统 */
  --shadow-none: none;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* 背景色 */
  --body-bg: #f1f2f3;       /* 页面主体背景色 */
  --bg-secondary: #f8f9fa;  /* 次要背景色 */
  --bg-tertiary: #efefef;   /* 三级背景色 */
  --bg-dark: #282a2d;       /* 深色背景 */
  --bg-card: #fff;          /* 卡片背景色 */
  --white: #fff;            /* 纯白色 */

  /* 文本色 */
  --text-primary: #333;     /* 主要文本色 */
  --text-secondary: #999;   /* 次要文本色 */
  --text-tertiary: #ccc;    /* 三级文本色 */
  --text-muted: #6c757d;    /* 静默文本色 */
  --text-highlight: #282a2d; /* 强调文本色 */

  /* 边框色 */
  --border-light: #e3e3e3;   /* 浅色边框 */
  --border-medium: #ccc;     /* 中等边框色 */
  --border-dark: #999;       /* 深色边框 */

  /* 主题色系 */
  --primary: #283593;       /* 主品牌色，用于按钮、链接、强调色 */

  --accent: #f6dc3e;        /* 强调色，用于特殊元素 */
  --accent-hover: #ff9800;  /* 深黄色，用于链接悬停状态 */

  /* 阴影色 */
  --shadow-color: rgba(0, 0, 0, 0.05);
}

/* 空收藏提示样式 */
.empty-favorites {
    text-align: center;
    padding: var(--space-md) var(--space-sm);
    color: var(--text-secondary);
    font-size: var(--fs-xs);
    background-color: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin: var(--space-sm) 0;
    border: 1px dashed var(--border-light);
    transition: var(--transition-base);
}

.empty-favorites i {
    color: var(--accent);
    margin: 0 var(--space-xxxs);
}


/* 暗黑模式适配 */
.theme-dark .empty-favorites {
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border-color: var(--border-dark);
}

.theme-dark .empty-favorites:hover {
    background-color: var(--bg-tertiary);
}

/* 暗黑模式变量 */
/* 说明：只定义与普通模式不同的变量，减少重复代码 */
.theme-dark {
  /* --------------------------- */
  /* 基础背景色系统（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --white: #353535;
  --body-bg: #1b1d1f;
  --bg-secondary: #404040;
  --bg-tertiary: #4a4a4a;
  --bg-dark: #151618;
  --bg-card: #2c2e2f;

  /* --------------------------- */
  /* 文本颜色系统（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --text-primary: #e0e0e0;
  --text-secondary: #b0b0b0;
  --text-tertiary: #888;
  --text-highlight: #ffffff;

  /* --------------------------- */
  /* 边框颜色系统（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --border-light: #555;
  --border-medium: #666;
  --border-dark: #777;

  /* --------------------------- */
  /* 主题色系（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --primary: #ffffff;

  /* --------------------------- */
  /* 强调色系（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --accent-hover: #e6b91e;  /* 暗黑模式下的深黄色悬停色 */


  /* --------------------------- */
  /* 特殊颜色（暗黑模式）- 仅覆盖差异变量 */
  /* --------------------------- */
  --shadow-color: rgba(0, 0, 0, 0.4);
  

}

/* 暗黑模式下的栏目卡片样式 */
.theme-dark .cat-card-link {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

/* 暗黑模式滚动条样式 */
.theme-dark ::-webkit-scrollbar-thumb {
  background-color: var(--border-medium);
}

.theme-dark ::-webkit-scrollbar-thumb:hover {
  background-color: #283593;
}

.theme-dark ::-webkit-scrollbar-thumb:active {
  background-color: #283593;
}

/* ============================================================ */
/* 2. 基础重置与通用工具类（全局样式，统一重置）*/
/* ============================================================ */

/* 基础重置样式 */
/* 全局字体 */
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: var(--body-bg);
  margin: 0;
  padding: 0;
  color: #282a2d;
  transition: background-color var(--transition-base);
  font-weight: 400;
}

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

li {
  list-style: none;
}

h1, h2, h3, h4, h5, ul, li, p {
  margin: 0;
  padding: 0;
}

/* 自定义焦点样式，兼顾键盘导航和鼠标操作 */
:focus-visible {
  outline: 2px solid #283593;
  outline-offset: var(--space-xxxs);
  border-radius: var(--radius-sm);
}

/* 移除不必要的焦点（如按钮点击后的焦点）*/
button:focus:not(:focus-visible) {
  outline: none;
}

/* ============================================================ */
/* 3. 通用工具类（按功能优先级排序）*/
/* ============================================================ */

/* 布局工具类 */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 文本溢出省略号 */
.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 字体大小工具类 */
.fs10 { font-size: var(--fs-xxxxs); }
.fs11 { font-size: var(--fs-xxxs); }
.fs12 { font-size: var(--fs-xxs); }
.fs13 { font-size: var(--fs-xs); }
.fs14 { font-size: var(--fs-sm); }
.fs15 { font-size: var(--fs-base); }
.fs16 { font-size: var(--fs-md); }
.fs18 { font-size: var(--fs-lg); }
.fs20 { font-size: var(--fs-xl); }
.fs24 { font-size: var(--fs-xxl); }
.fs32 { font-size: var(--fs-xxxl); }

/* 自定义滚动条样式 */
::-webkit-scrollbar {
  width: 0.3125rem; /* 5px */
  height: 0.3125rem; /* 5px */
}

::-webkit-scrollbar-button {
  background-color: transparent;
  height: 0.125rem; /* 2px */
  width: 0.125rem; /* 2px */
}

::-webkit-scrollbar-corner {
  background: transparent;
  border-radius: 0 0 0.5rem 0; /* 8px */
}

::-webkit-scrollbar-thumb {
  background-color: var(--border-medium);
  border-radius: 0.25rem; /* 4px */
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
  background-color: var(--primary);
}

/* 网站卡片跳跃动画 */
@keyframes jumps {
  0% { transform: translate(0) scale(1) rotate(0); }
  10% { transform: translateY(0.5rem) scaleX(1.2) scaleY(0.8); } /* 8px */
  30% { transform: translateY(-0.3125rem) rotate(5deg); } /* 5px */
  50% { transform: translateY(0.1875rem) rotate(0); } /* 3px */
  55% { transform: scaleX(1.1) scaleY(0.9); }
  70% { transform: translateY(-0.3125rem) rotate(-2deg); } /* 5px */
  to { transform: translate(0) scale(1) rotate(0); }
}

/* ============================================================ */
/* 3. 通用布局样式（整体结构：容器、侧边栏+右侧内容）*/
/* ============================================================ */
/* 容器样式 */
.container {
  padding: 0 var(--space-xxl); /* 40px */
}

/* 整体布局：侧边栏 + 右侧内容 */
.sidebar {
  background-color: var(--white)!important;/* 覆盖bt */
  overflow: hidden ;
  position: fixed;
  z-index: 1050;
  width: 6.875rem;
  height: 100vh;
  top: 0;
  left: 0;
      box-shadow: 0 0 0.625rem 0 rgba(0, 0, 0, 0.03); /* 10px */
}
/* 关键补充：offcanvas 容器不截断二级菜单 */
.offcanvas {
  overflow: visible !important;
}

.right-content {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 50;
  margin-left: 6.875rem;
}

/* 右侧内容背景水印 */
.right-content::after {
  content: '';
  height: 100%;
  width: 100%;
  background-image: url(/static/ju/img/bg.png);
    background-size: 40%;
    z-index: -2;
    position: absolute;
  top: 0;
  left: 0; /* 补充定位，避免偏移 */
    
}
.theme-dark .right-content::after {
    opacity: 0.008;
}
/* ============================================================ */
/* 4. 核心模块样式（按页面模块拆分）*/
/* ============================================================ */

/* 4.1 顶部导航（top-nav）*/
.top-nav {
  padding: var(--space-sm) 0; 
  font-size: var(--fs-sm); 
}

.top-nav nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-xs); /* 12px */
}

.top-nav nav a {
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

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

/* 顶部导航左侧 */
.topnav-left {
  display: flex;
  align-items: center;
}

/* 首页链接样式 */
.home-link {
  color: var(--text-highlight)!important;
  transition: color var(--transition-base);
}

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

/* 回家地址区域样式 */
.home-address {
  display: flex;
  align-items: center;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  padding: var(--space-xxs) var(--space-sm);
  border-radius: var(--radius-sm);
  background-color: rgba(255, 193, 7, 0.1);
  transition: background-color var(--transition-base);
}

.home-address:hover {
  background-color: rgba(255, 193, 7, 0.2);
}

.home-address .address-label {
  display: flex;
  align-items: center;
  gap: var(--space-xxs);
}





.home-address .address-separator {
  color: var(--text-muted);
  opacity: 0.3;
  font-size: var(--fs-xxxxs);
  padding:0 var(--space-xxs);
}

/* 下拉菜单样式 - 避免与Bootstrap冲突 */
.dropdown2 {
  position: relative;
  display: inline-block;
}

.dropdown2 > button {
  display: flex;
  align-items: center;
  gap: var(--space-xxxs);
  background-color:transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  transition: all var(--transition-base);
  white-space: nowrap;
  color: var(--text-secondary);
  padding:0;
}

.dropdown2 > button:hover {
  color: var(--primary);
}

.dropdown2 > button i {
  font-size: var(--fs-xxs);
  transition: all var(--transition-base);
  color: var(--text-tertiary);
}

.dropdown2:hover > button i {
  transform: rotate(180deg);
  color: rgba(40, 53, 147, 0.6);
}

.dropdown2:hover > button {
  color: var(--primary);
}

.dropdown2-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(0);
  transition: all var(--transition-base);
  z-index: 1000;
  display: block;
  padding:var(--space-xxxs) 0;
}

.dropdown2:hover .dropdown2-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown2-menu .dropdown2-links a {
  padding: var(--space-xxs) var(--space-sm);
  color: var(--text-primary);
  border-left: 3px solid transparent;
  display: flex;
  gap: var(--space-xs);
  align-items: center;
}

.dropdown2-menu .dropdown2-links a:hover {
  background-color: rgb(40 53 147 / 0.08);
  color: var(--primary);
  border-left-color: var(--primary);
  padding-left: var(--space-md);
}

/* 下拉菜单链接容器 - 统一样式 */
.dropdown2-menu .dropdown2-links {
  padding: var(--space-xxs) 0;
}

/* 回家地址说明区域 */
.home-address-description {
  padding: var(--space-xs) var(--space-sm);
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-xxs);
  color: #07C160;
}

/* 暗黑模式适配 */
.theme-dark .home-address {
  color: var(--text-muted);
  background-color: rgb(40 53 147 / 0.2);
}
.theme-dark .home-address:hover {
  background-color: rgb(40 53 147 / 0.5);
}

.theme-dark .home-address .address-separator {
  color: var(--text-muted);
  opacity: 0.5;
}



.site .site-url .login-required,
.site .site-url .score-required {
  text-align: center;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-xs);
  border-radius: var(--radius-md);
  margin: var(--space-xs) 0;
  border: 1px dashed var(--border-light);
  transition: var(--transition-base);
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.site .site-url .login-required {
    color: var(--text-secondary);
    background-color: var(--bg-secondary);
    border: 1px dashed var(--border-light);
}

.site .site-url .score-required {
  background-color: #f8fdff;
  border-color: #81d4fa;
  color: #0288d1;
}

.site .site-url .login-required a,
.site .site-url .score-required a {
  color: #fff;
  margin: 0 var(--space-xs);
  padding: var(--space-xxs) var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  background: var(--primary);
  font-weight: normal;
}

.site .site-url .login-required a:hover,
.site .site-url .score-required a:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}


.site .site-url .login-required span i,
.site .site-url .score-required span i {
  margin-right: var(--space-xxs);
}

/* 暗黑模式适配 */
.theme-dark .site .site-url .login-required {
  background-color: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text-secondary);
}

.theme-dark .site .site-url .score-required {
  background-color: #004d40;
  border-color: #00bcd4;
  color: #80deea;
}

.theme-dark .site .site-url .login-required .keyword {
  color: #ffab40;
}

.theme-dark .site .site-url .login-required a {
  background: #ffc107 !important;
  color: #000 !important;
}

.theme-dark .site .site-url .login-required a:hover {
  background: #ffca28 !important;
  color: #000 !important;
}

.theme-dark .site .site-url .score-required .keyword {
  color: #80deea;
}

.theme-dark .site .site-url .login-required .keyword::before {
  background: linear-gradient(to right, transparent 0%, #ff6f00 100%);
}

.theme-dark .site .site-url .score-required .keyword::before {
  background: linear-gradient(to right, transparent 0%, #00bcd4 100%);
}

.theme-dark .site .site-url .login-required:hover,
.theme-dark .site .site-url .score-required:hover {
  background-color: var(--bg-tertiary);
}

/* 暗黑模式下的通用下拉菜单 */
.theme-dark .dropdown2 > button {
  color: var(--text-tertiary);
}
.theme-dark .dropdown2 > button:hover {
  color: var(--primary);
}
.theme-dark .dropdown2:hover > button i {
  color: var(--primary);
}

/* publish 样式 */
.publish {
  padding: var(--space-xs) var(--space-lg) var(--space-lg) var(--space-lg);
}
.publish>div{
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--fs-sm);
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-dark .publish>div{
  background: #1a1a1a !important;
}
.theme-dark .dropdown2:hover > button{
  color: var(--primary);
}
.theme-dark .dropdown2-menu {
  background: var(--bg-card);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-dark .dropdown2-menu .dropdown2-links a {
  color: var(--text-primary);
}

.theme-dark .dropdown2-menu .dropdown2-links a:hover {
  background-color: rgb(255 255 255 / 0.1);
  color: var(--primary);
  border-left-color: #5c6bc0;
}

/* 暗黑模式下的回家地址说明区域 */
.theme-dark .home-address-description {
  border-top-color: var(--border-light);
}

/* 用户中心下拉菜单特定样式 - 复用通用样式，只保留特殊部分 */
.user-dropdown .dropdown2-menu {
  min-width:180px;
  right: 0;
  left: auto;
  padding-top:0;
}

/* 移动端用户中心下拉菜单修复 */
@media (max-width: 767.98px) {
  .top-nav .user-dropdown .dropdown2-menu {
    position: fixed;
    right: 0 !important;
    top: calc(100% + 4px) !important;
    z-index: 10000 !important;
  }
}

.user-dropdown > button {
  padding: var(--space-xxs) var(--space-xs);
  background-color: rgba(255, 255, 255, 0.5);
}
.theme-dark .user-dropdown > button{background-color: rgba(255, 255, 255, 0.05);}
.user-dropdown > button img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* 用户信息区域 - 用户中心特有样式 */
.user-info-section {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, #283593 0%, #5c6bc0 50%, #7986cb 100%);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  box-shadow: 0 2px 8px rgba(40, 53, 147, 0.3);
}



.user-avatar-large img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.user-details {
  flex: 1;
  min-width: 0;
}

.username {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: #ffffff;
  margin-bottom: var(--space-xxxs);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.vip-status {
  font-size: var(--fs-xxs);
  color: #b8860b;
  background: linear-gradient(to top left, #ffe149 0%, #fffbdf 100%);
  padding: var(--space-xxxxs) var(--space-xs);
  border-radius: var(--radius-pill);
  display: inline-block;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* 暗黑模式下的用户中心下拉菜单 */
.theme-dark .user-info-section {
  background: linear-gradient(135deg, #283593 0%, #5c6bc0 50%, #7986cb 100%);
  border-bottom-color: var(--border-medium);
}

.top-nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
}

/* 顶部导航右侧 */
.top-nav-right {
  flex-shrink: 0;
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

.top-nav-right.top-nav-links {
  overflow-x: visible;
  flex: none;
}

/* 导航链接通用样式 */
.top-nav .nav-link {
  color: var(--text-primary);
  padding: var(--space-xxs) var(--space-xs);
  border-radius: var(--radius-xs);
  transition: all var(--transition-base);
}

.top-nav .nav-link:hover {
  color: var(--primary);
  background-color: rgba(40, 53, 147, 0.1);
}

/* 暗黑模式下的导航链接hover */
.theme-dark .top-nav .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}



/* 4.2 侧边栏（sidebar）*/
/* 侧边栏头部 */
.offcanvas-header {
  padding: var(--space-md);
  background-color: var(--bg-tertiary);
}

.offcanvas-header .btn-close {
  font-size: var(--fs-xxxxs);
}

/* LOGO容器 - 合并移动端和桌面端样式 */
.sidebar-logo{
  padding: var(--space-lg) 0;
}
.sidebar-logo-mobile {
  padding: 0;
}

.sidebar-logo-mobile svg{    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;}
.sidebar-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xxxs);
  margin: 0 auto;
}

.sidebar-logo-mobile a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xxs);
  margin: 0 auto;
}

.sidebar-logo a>svg {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
}

.sidebar-logo span,
.sidebar-logo-mobile span {
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--text-primary);
}

/* 侧边栏内容区域 */
.sidebar .offcanvas-body {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 20px);
  overflow: hidden; /* 禁止整体滚动 */
}

/* 侧边栏容器 */
.sidebar-right {
  
}

/* 侧边栏小部件 */
.widget {
  background-color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* 热门信息列表样式 */
.info-item {
  padding: var(--space-xs) 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.info-title {
  display: block;
  color: var(--text-primary);
  font-weight: 500;
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xxs);
  transition: color 0.2s ease;
}

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

.theme-dark .info-title {
  color: #e0e0e0;
}

.info-meta {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  font-size: var(--fs-xxs);
  color: var(--text-tertiary);
}

.info-meta > time {
  color: var(--text-secondary);
}

.info-meta > span {
  display: flex;
  align-items: center;
  gap: var(--space-xxxs);
  color: var(--text-tertiary);
}

.info-meta > span i {
  font-size: var(--fs-xxxxs);
}

/* 最新收录样式 */
.widget-site .site-item {

}


.widget-site .site-item > a {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-primary);
  transition: color 0.2s ease;
      background: #f7f8f9;
          padding: 7px;
          border-radius: 10px;
}

.widget-site .site-item > a:hover {
  color: var(--primary);
}

.widget-site .site-item > a > img {
  width: 1.2rem;
  height: 1.2rem;
  border-radius: var(--radius-xs);
  object-fit: cover;
  flex-shrink: 0;
}

.widget-site .site-item > a > span {
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.widget-title {
  font-size: var(--fs-md);
  font-weight: 600;
  margin-bottom: var(--fs-base);
  color:#555;
}

.widget-content {
  
}

.widget-tag a{    margin: 5px;
    padding: 5px var(--space-xxs);
    border-radius: var(--radius-xs);    display: inline-block;    transition: .3s;
    font-size: var(--fs-xxs);
    background: rgba(148, 149, 158, .15);}
.widget-tag .widget-content{margin:-5px}

/* 为widget-tag中的a标签随机分配颜色 */
.widget-tag a:nth-child(9n+1) { color: #f1404b; background-color: rgba(249,100,90,.15); }
.widget-tag a:nth-child(9n+2) { color: #20a0ff; background-color: rgba(32,158,255,.15); }
.widget-tag a:nth-child(9n+3) { color: #39c408; background-color: rgba(58,196,8,.15); }
.widget-tag a:nth-child(9n+4) { color: #ff8400; background-color: rgba(255,131,0,.15); }
.widget-tag a:nth-child(9n+5) { color: #837adc; background-color: rgba(132,122,220,.15); }
.widget-tag a:nth-child(9n+6) { color: #20a0ff; background-color: rgba(32,158,255,.15); }
.widget-tag a:nth-child(9n+7) { color: #39c408; background-color: rgba(58,196,8,.15); }
.widget-tag a:nth-child(9n+8) { color: #ff8400; background-color: rgba(255,131,0,.15); }
.widget-tag a:nth-child(9n) { color: #837adc; background-color: rgba(132,122,220,.15); }

/* hover状态 - 放在nth-child后面确保优先级 */
.widget-tag a:hover{background: #111;color: #fff;}



/* 侧边栏导航容器 */
.sidebar-nav {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxxs);
  flex: 1;
  overflow: auto; /* 内容溢出时滚动 */
}

.sidebar-nav>ul {
  padding: 0 var(--space-sm);
}

/* 侧边栏导航项 */
.sidebar-item {
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: all var(--transition-base);
  margin: var(--space-xxxs) auto;
  position: relative;
}

.sidebar-item > a {
  padding: var(--space-sm) 0;
  flex-direction: column;
  display: flex;
  overflow: hidden;
  align-items: center;
  white-space: nowrap;
  transition: all var(--transition-base);
}

.sidebar-item:hover {
  background-color: var(--bg-tertiary);

}
.sidebar-item:hover span{  color: var(--primary);}
.sidebar-item i {
  line-height: 20px;
  color: var(--primary);
}

.sidebar-item span {
  display: inherit;
  margin-top: 5px;
  color: var(--text-primary);
}

/* 侧边栏激活项 */
.sidebar-item.active {
  background-color: #f6f6f6;
}
.theme-dark .sidebar-item.active {
  background-color:#222
}

/* 侧边栏二级弹窗 */
.sidebar-popup {
  display: none;
  position: fixed;
  left: 7.5rem;
  top: 0;
  z-index: 999999;
  border: 3px solid transparent;
  width: 11.25rem;
}

.sidebar-popup div {
  background: var(--white);
  box-shadow: 0 2px 10px 1px var(--shadow-color);
  padding: var(--space-xxs) 0;
  border-radius: var(--radius-sm);
}

.sidebar-popup::before {
  left: -6px;
  border-color: transparent var(--white) transparent;
  content: '';
  border-width: 10px 10px 10px 0;
  border-style: solid;
  position: absolute;
  top: 14px;
}

.sidebar-popup::after {
  content: '';
  position: absolute;
  top: 0;
  left: -40px;
  width: 40px;
  height: 100%;
  background: transparent;
  z-index: 1000;
}

.sidebar-popup a {
  padding: var(--space-xxs) 15px;
  color: var(--text-muted);
  overflow: hidden;
  margin: 0 8px;
  align-items: center;
  white-space: nowrap;
  font-size: var(--fs-xxs);
  display: block;
  border-radius: var(--radius-sm);
}


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

/* 鼠标悬停显示二级栏目 */
.sidebar-item:hover .sidebar-popup {
  display: block;
}

/* 4.3 搜索相关样式 */
.search-box {
  padding: var(--space-sm) 0;
  text-align: center;
}

/* 搜索选项卡 */
.search-tabs {
  border-radius: var(--radius-xl);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 5px;
}

.search-tab {
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-xxxs) var(--space-xs);
  transition: all 0.2s ease;
  font-size: var(--fs-md);
}

.search-tabs .active {
  color: var(--text-highlight);
  position: relative;
  display: inline-block;
  z-index: 1;
  font-weight: 500;
}

.search-tabs .active::before {
  content: '';
  width: 88%;
  position: absolute;
  left: 0;
  z-index: -1;
  opacity: 1;
  border-radius: 3px;
  height: 14px;
  bottom: 6px;
  transform: skewX(-15deg);
  background: linear-gradient(to right, transparent 0%, #f6dc3e 120%)
}

/* 搜索输入组 */
.search-input-group {
  display: flex;
  gap: 0;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 9px 20px;
  height: 3.125rem;
  background-color: var(--white);
  color: var(--text-primary);
  font-size: var(--fs-sm);
  border: 2px solid var(--primary);
  border-radius: 0.875rem;
  width: 100%;
}

.search-input:focus {
  outline: none;
}
.search-input::placeholder{
  color: var(--text-secondary);
  font-size: var(--fs-base);
}

/* 搜索按钮样式 */
.search-button {
  margin: 4px;
  line-height: 2.625rem;
  height: 2.625rem;
  border-radius: 0.6875rem;
  padding: 0 var(--space-xs);
  position: absolute;
  top: 0;
  right: 0;
  border: 0 !important;
  width: unset;
  background-color: var(--primary);
}

.search-button i {
  color: var(--white);
  font-size: 1.125rem;
}

/* 搜索节点 */
.search-nodes {
  display: flex;
  justify-content: center;
  font-size: var(--fs-xxs);
}

.node-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  font-size: var(--fs-sm);
}

.node-list .node-item {
  border: 0;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  padding: var(--space-xxxs) var(--space-md);
  position: relative;
  background-color: transparent;
  line-height: 31px;
}

.node-list .node-item.active:before {
  border-color: var(--primary) transparent transparent;
  content: '';
  border-width: 8px 8px 0 8px;
  border-style: solid;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.node-list .active {
  color: var(--primary);
  font-weight: 700;
}

/* 4.4 主内容区域 */
main {
  margin-bottom: 4rem;
  padding: var(--space-lg);
}


/* 通用页面头部 */
.page-header {
  margin-bottom: var(--space-md);
}

.page-header>p {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: 5px;
  font-weight: 400;
}

/* 按钮通用样式 */
.btn {
  padding: 6px var(--space-xs);
  transition: all 0.2s ease;
  font-size: var(--fs-xxs);
}

.btn-back {
  border-radius: var(--radius-xxs);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}

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

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  border: 1px solid var(--primary);
}

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

/* 无结果提示 */
.no-results-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-xxs)!important;
}

.no-results-search {
  background-color: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
}
.no-results-search .search-box{background-color: var(--body-bg);border-radius: var(--radius-lg);}
.bg-white {
  background-color: var(--white);
  border-radius: var(--radius-lg);
}

/* 4.5 分类区块（cat-section）*/
.cat-section {
  margin-bottom: 40px;
}

.cat-section:last-child {
  margin-bottom: var(--space-xxs);
}

.cat-header {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: 14px;
}

.theme-dark .cat-header > nav {
  border-radius: var(--radius-xl);
  display: inline-flex;
  align-items: center;
}

.cat-header h1 {
  font-size: var(--fs-xxl);
  color: var(--text-primary);
}

.cat-header h2 {
  font-size: var(--fs-xl);
  color: var(--text-primary);
}

.cat-header h2 a {
  color: var(--text-primary);
}

.cat-header .nav-link {
  border-radius: var(--radius-xxl);
  padding: var(--space-xxxs) var(--space-xs);
  font-size: var(--fs-xxs);
  color: var(--text-secondary);
  transition: all 0.2s ease;
  margin-right:5px;
}
.cat-header .nav-item:last-child .nav-link{margin-right:0;}

.cat-header .nav-link:hover {
  color: var(--primary);
}

.cat-header .nav-link.active {
  background-color: var(--primary);
  color: var(--white);
}

.cat-header > p {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  margin: 0;
}

/* 分类标签 */
.cat-tags {
  display: flex;
  gap: 20px;
  transition: max-height 0.3s ease;
  height: auto;
  margin-top: 12px;
  overflow: hidden;
}

.cat-tags:empty {
  height: 0;
  margin-top: 0;
}

.cat-tags>span {
  font-size: var(--fs-xxs);
  margin-bottom: 15px;
  gap: 4px;
  align-items: center;
  display: flex;
}

.cat-tags>span>i {
  color: var(--text-tertiary);
}

.cat-tags>span>a {
  color: var(--text-secondary);
}

.cat-tags>span:hover i, .cat-tags>span:hover a {
  color: var(--primary);
}

/* 4.6 网站卡片与站点相关样式 */
/* 网站卡片样式 */
.site{padding-bottom: 20px}
.site-card {
  border-radius: var(--radius-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  position: relative;
  height: 100%;
  border: 1px solid var(--body-bg);
}

.site-card:hover {
  background-color: var(--body-bg);
}

.site-link {
  display: flex;
  width: 100%;
  padding: var(--space-sm) var(--space-xs);
  color: var(--text-primary);
  gap: var(--space-sm);
}

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

.site-link>img {
  width: var(--space-lg);
  height: var(--space-lg);
  flex-shrink: 0;
  align-self: center;
  border-radius: var(--radius-xs);
  will-change: transform; /* 提示浏览器优化动画性能 */
}

.site-card:hover .site-link>img {
  animation: jumps 1.2s ease 1;
}

/* 网站信息 */
.site-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.site-info > h3 {
  margin: 0 0 6px 0;
  font-size: var(--fs-sm);
  font-weight: 700;
}

.site-info > p {
  font-size: var(--fs-xxs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* 网站跳转图标 */
.site-link-icon {
  top: -5px;
  right: -8px;
  padding: var(--space-xxxs);
  position: absolute;
  z-index: 1;
  display: flex;
  color: var(--primary);
  opacity: 0.05;
}

.site-card:hover .site-link-icon{
  color: var(--primary)!important;
  opacity: 1;
}

.site-link-icon i {
  transform: rotate(225deg);
  font-size: 1.375rem;
  transition: all 0.3s;
}

/* 站点详情页 */
.site,.related {
  margin-bottom: var(--space-md);
}
.site:first-child {
    border-radius: 4px 4px 14px 14px;
    border-top: 4px solid #283593;
}
.site-header {
  padding:  var(--space-md) var(--space-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 26px 40px -30px rgba(0, 36, 100, 0.3);
}

.site-info-wrapper {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex: 1;
  min-width: 0;
}

.site-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}
.site-actions>a{
    font-size: 14px;
    padding: 3px 14px 4px 12px;
      position: relative;    z-index: 1;}
.site-actions>a i {
    font-size: 12px;
    margin-right: 6px;
    color: rgba(68, 58, 58, 0.4);
}
.site-actions>a::after {
    border-radius: 5px;
    transform: skewX(-5deg);
    background: #f1f2f3;

        border: 1px solid #f1f2f3;
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    content: "";
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    pointer-events: none;
}

.site-actions>a span{font-size:12px;font-weight: bold;}
.site-actions>a:hover i{color:#283593}

/* 暗黑模式下的 site-actions 链接样式 */
.theme-dark .site-actions>a i {
  color: rgba(255, 255, 255, 0.6);
}

.theme-dark .site-actions>a:hover i {
  color: var(--accent);
}

.theme-dark .site-actions>a::after {
  background: #2a2a2a;
  border: 1px solid #444;
}

/* .info 暗黑模式样式 */
.theme-dark .info .title {
  color: var(--text-highlight);
}

.theme-dark .info-header::after {
  background-color: #444;
}

.theme-dark .info-item {
  border-bottom-color: #444;
}

.theme-dark .widget-site .site-item > a {
  color: var(--text-primary);
  background-color: var(--bg-secondary);
}

.theme-dark .widget-site .site-item > a:hover {
  color: var(--accent);
  background-color: var(--bg-tertiary);
}


.site-icon {
  flex-shrink: 0;
}

.site-icon img {
  width: 2rem;
  height: 2rem;
  object-fit: cover;
  border-radius: 50%;
  max-width: 2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.site-header-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-xxs);
  max-width: 90%;
}

.site-header .show-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  max-width: 300px;
}

.site-header .site-description {
  margin: 0;
  color: var(--text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.5;
}

.site-url {
  padding: var(--space-md) 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-lg);
}

.site-url a {
  font-size: var(--fs-base);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  transition: all 0.2s ease;
  color: var(--primary);
}

.site-url a i {
  font-size: var(--fs-md);
  color: var(--primary);
  width: 1rem;
  text-align: center;
}

.site-url a:hover, .site-url a:hover i {
  color: #ff9800;
}

/* 站点标签 */
.site-tags {
  padding: var(--space-md) 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-tags a {
  display: inline-block;
  font-size: var(--fs-xxs);
  padding: 6px 15px;
  background: var(--body-bg);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.site-tags a:hover {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* 站点元信息 */
.site-meta {
  padding: 0;
  font-size: var(--fs-xxs);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 20px;
}

.site-meta i {
  margin-right: 6px;
  color: var(--text-secondary);
}

.site-content {
  padding: var(--space-md) 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--space-lg);
  color:var(--text-primary);
  font-size: var(--fs-sm);
}

/* 相关文章 */
.related, .comments {
    padding: var(--space-xl);
}


.related > h2,.comments > h2 {
    border-left: 5px solid #283593;
    padding: 5px 30px 5px 30px;
    margin: -10px -35px 16px -37px;
    border-radius: var(--radius-xxs) 0 0 var(--radius-xxs);
  font-size: var(--fs-md);
  font-weight: 700;
  color: #555;
}

/* 4.7 TAG页面样式 */
main .card {
  margin-bottom: var(--space-md);
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-item {
  display: inline-block;
  padding: var(--space-xxs) 15px;
  border-radius: var(--radius-xl);
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  transition: all var(--transition-base);
  font-size: var(--fs-sm);
}

.tag-item:hover {
  background-color: var(--primary);
  color: var(--body-bg);
}

.tag-item.active {
  background-color: var(--accent);
  color: var(--body-bg);
  font-weight: bold;
}

.tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.content-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.content-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.content-list li:last-child {
  border-bottom: none;
}

.content-dot {
  font-size: 0.5rem;
  margin-right: 10px;
  color: var(--text-secondary);
}

.content-title {
  color: var(--text-primary);
  transition: color var(--transition-base);
}

.content-title:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* TAG卡片样式 */
.card-title {
  margin-bottom: 0 !important;
  font-size: var(--fs-sm);
}

.card {
  border: 0;
}

.card-header {
  border-bottom: 0;
  padding: var(--space-sm) var(--space-md);
}

.card-body {
  padding: var(--space-md);
}

/* 4.8 面包屑导航 */
.breadcrumb {
  padding: 0 0 var(--space-sm) 0;
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  margin-bottom: 0;
}

.breadcrumb-item {
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--text-secondary);
  transition: color var(--transition-base);
}

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

.breadcrumb-item.active {
  color: var(--text-tertiary);
}

.breadcrumb-item+.breadcrumb-item::before{display: none;}

.breadcrumb>i {
  margin: 0 4px;
  color: var(--text-tertiary);
  vertical-align: middle;
}

/* 4.9 底部样式 */
.footer {
  color: var(--primary);
  padding: var(--space-md) 0;
  background-color: var(--white);
  margin-top: 50px;
  width: 100%;
  font-size: var(--fs-xxs);
}
.footer a{font-size: var(--fs-xxs);}
/* 底部内容区域 */
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* 底部导航链接 */
.footer-nav {
  display: flex;
}

.footer-nav a {
  color: var(--text-secondary);
  font-size: 12px;
  position: relative;
  margin-left: 20px;
}

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

.footer-separator {
  margin: 0 1px;
  font-size: var(--fs-xxs);
}
.footer-nav a:first-child::before {
    width: 0;
}

.footer-nav a::before {
    content: '';
    display: inline-block;
    height: 60%;
    width: 1px;
    background-color: #e7e3e3;
    margin-left: -10px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotateZ(15deg);
}


.footer-separator-large {
  margin: 0 var(--space-xxs);
  vertical-align: middle;
  position: relative;
}

.footer-separator-large i {
  display: none;
}

/* 信息页面meta样式 */
.info .meta {
  display: flex;
  gap: 20px;
  padding-bottom: 1.5rem;
}

.info .meta span {
  font-size: var(--fs-xxs);
  color: var(--text-secondary);
}

.theme-dark .info .meta span {
  color: #666;
}

.theme-dark .info .meta a {
  color: #666;
}



.theme-dark .info-meta > time {
  color: #666;
}

.theme-dark .info-meta > span {
  color: #666;
}

.info .meta a {
  color: var(--text-secondary);
  font-size: var(--fs-xxs);
}

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

.info .meta i {
  margin-right: var(--space-xxxs);
  font-size: var(--fs-xxxs);
}

.footer-bottom {
  color: var(--text-tertiary);
  font-size: 12px;
}

/* 固定操作按钮 */
.footer-tools {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  z-index: 1000;
}

.footer-tools > a {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-lg);
  background-color: #fff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-xs);
}

.footer-tools > a:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* 4.10 其他辅助样式 */
.site-mini-search {
  position: absolute;
  bottom: -5px;
  right: -5px;
  z-index: 1;
}

.mini-search.is-active .site-mini-search {
  width: calc(100% - 30%);
}

.mini-search.is-active {
  background: #f1f2f3;
}

.site-mini-btn {
  pointer-events: none;
  text-align: center;
  height: 35px;
  width: 35px;
  line-height: 32px;
  transition: all 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-mini-btn::after {
  transition: all 0.2s;
  transform: scale(0.18);
  transform-origin: center center;
  border: 5px solid var(--white);
  content: '';
  height: 100%;
  width: 35px;
  box-sizing: content-box;
  z-index: -1;
  background: linear-gradient(to top left, #ffe149 0%, #fffbdf 100%);
  display: block;
  top: -5px;
  right: -5px;
  position: absolute;
  border-radius: 50px;
}

.site-mini-btn i {
  font-size: var(--fs-xs);
  width: 35px;
  line-height: 35px;
  color: var(--primary);
  opacity: 0;
  font-weight: 900;
  transition: all 0.3s;
}

.mini-search.is-active .site-mini-btn::after, .mini-search:hover .site-mini-btn::after {
  transform: scale(1);
}

.mini-search.is-active .site-mini-btn i, .mini-search:hover .site-mini-btn i {
  opacity: 1;
  transition-delay: 0.1s;
}

.mini-search.is-active .site-mini-btn {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: 0;
}

.site-mini-input {
  transition: width 0.2s;
  outline: 0;
  font-size: var(--fs-xxs);
  border: 0;
  border-radius: var(--radius-xl);
  height: 0;
  z-index: -2;
  position: absolute;
  right: 5px;
  bottom: 17px;
  width: 0;
  background: none;
  box-shadow: none;
}

.site-mini-input::placeholder {
  color: transparent;
}

.mini-search.is-active .site-mini-input {
  padding: 0 0 0 15px;
  width: 100%;
  background: var(--bg-card);
  right: 10px;
  height: 35px;
  bottom: 0;
  box-shadow: 1.2rem 0.2rem 0.5rem rgba(0, 0, 0, 0.05), -1rem 1.5rem 2.2rem rgba(0, 0, 0, 0.1);
}

.mini-search.is-active .site-mini-input::placeholder {
  color: var(--text-secondary);
}

/* 栏目列表 */
.cat-card-link {
  background-color: var(--bg-secondary);
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  width: 100%;
  display: flex;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color var(--transition-base);
  font-size:var(--fs-xxs)
}

.cat-card-link:hover {
  color: var(--primary);
  background-color: var(--bg-tertiary);
}

/* 更多标签链接 */
.tags-more {
  display: block;
  margin: var(--space-md) auto;
  padding: var(--space-xxs) var(--space-sm);
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-xxs);
  transition: background-color var(--transition-base), color var(--transition-base);
  text-align: center;
  width: fit-content;
}

.tags-more:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* 暗黑模式更多标签链接 */
.theme-dark .tags-more {
  background-color: var(--accent);
  color: #000;
}

.theme-dark .tags-more:hover {
  background-color: var(--accent);
  color: #000;
}

/* 分页样式 */
.pages {
  margin: var(--space-xxxl) 0 0 0;
  text-align: center;
  font-size:var(--fs-xxs)
}

.pages ul {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xxs);
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: var(--fs-sm);
}

.pages li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-xs);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
}

.pages li a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.pages li.active a {
  background: var(--text-muted);
  color: var(--white);
  cursor: default;
  border: none;
}

.pages li.active a:hover {
  background: var(--text-muted);
  color: var(--white);
  cursor: default;
}



/* 暗黑模式适配 */
.theme-dark .pages li a {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border: 0;
}

.theme-dark .pages li a:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.theme-dark .pages li.active a {
  background: #283593;
  color: #c6c9cf;
  border: none;
}

.theme-dark .pages li.active a:hover {
  background: #283593;
  color: #c6c9cf;
}





h2 a {
  color: var(--text-primary);
}

/* ============================================================ */
/* 5. 暗黑模式专属样式（集中管理，便于维护）*/
/* ============================================================ */
.theme-dark .sidebar {
  background-color: var(--bg-card)!important;
}

/* 按钮样式 */
.theme-dark .btn-back {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border-color: var(--border-light);
}

.theme-dark .btn-back:hover {
  background-color: var(--bg-tertiary);
  color: var(--primary);
  border-color: var(--border-medium);
}

.theme-dark .btn-primary {
  background-color: var(--accent);
  color: #000;
  border: 1px solid var(--accent);
}

.theme-dark .btn-primary:hover {
  background-color: var(--accent);
  color: #000;
  border-color: var(--accent);
}

/* 无结果提示 */
.theme-dark .no-results {
  background-color: var(--white);
}

/* 侧边栏弹窗 */
.theme-dark .sidebar-popup div {
  box-shadow: none;
  background-color: var(--bg-dark);
}

.theme-dark .sidebar-popup::before {
  border-right-color: var(--bg-dark);
}

.theme-dark .sidebar-popup a {
  color: var(--text-primary);
}

/* 分类导航 */
.theme-dark .cat-header .nav-link.active {
  background-color: #283593;
  color:#c6c9cf;
  font-weight: 600;
}


/* 搜索相关 */
.theme-dark .search-tab {
  opacity: 0.5;
  transition: opacity 0.3s;
}

.theme-dark .search-input {
  background-color: transparent !important;
  border-color: var(--accent);
}

.theme-dark .search-tabs .active {
  color: #c6c9cf;
  opacity: 1;
}

.theme-dark .search-tabs .active::before {
  background: linear-gradient(to right, transparent 0%, #283593 100%);
}

.theme-dark .node-list .node-item.active:before {
  border-color: var(--accent) transparent transparent;
}

.theme-dark .node-list .active {
  color: var(--accent) !important;
}

.theme-dark .node-list .node-item {
  color: var(--text-muted);
}

/* 栏目列表 */
.theme-dark .category-list li a {
  color: var(--text-secondary);
  background-color: var(--bg-secondary);
}

.theme-dark .category-list li a:hover {
  color: var(--primary);
  background-color: var(--bg-tertiary);
}

/* 固定按钮 */
.theme-dark .footer-tools > a {
  background: var(--shadow-color);
  color: var(--text-tertiary);
}

.theme-dark .footer-tools > a:hover {
  background-color: var(--primary);
  color: var(--body-bg);
}

/* 暗黑模式底部导航 */
.theme-dark .footer-nav a {
  color: var(--text-secondary);
}

.theme-dark .footer-nav a:hover {
  color: var(--accent);
}

.theme-dark .footer {
  background-color: #2c2e2f;
}

.theme-dark .footer-nav a::before {
  background-color: #555555;
}

/* 暗黑模式移动端footer样式 */
.theme-dark .footer-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* 搜索按钮 */
.theme-dark .search-button {
  background-color: var(--accent);
}

.theme-dark .search-button i {
  color: rgba(0, 0, 0, 0.92);
}

/* 顶部导航 */
.theme-dark .top-nav .nav-link {
  color: var(--text-secondary);
}

.theme-dark .top-nav nav a {
  color: var(--text-tertiary);
}

.theme-dark .top-nav nav a:hover {
  color: var(--primary);
}

/* 侧边栏 */
.theme-dark .offcanvas-header {
  background-color: transparent!important;
}

.theme-dark .sidebar-logo-mobile a {
  color: var(--primary);
}


.theme-dark .offcanvas-header .btn-close {
  filter: invert(1) brightness(0.8);
}

/* TAG页面 */
.theme-dark .tag-item {
  background-color: var(--bg-secondary);
  color: var(--text-secondary);
}

.theme-dark .tag-item:hover {
  background-color: #ffc107;
  color: var(--body-bg);
}

.theme-dark .tag-item.active {
  background-color: #ffc107;
  color: var(--body-bg);
}

.theme-dark .content-list li {
  border-bottom-color: var(--border-light);
}

.theme-dark .content-dot {
  color: var(--text-secondary);
}

.theme-dark .content-title {
  color: var(--text-primary);
}

.theme-dark .content-title:hover {
  color: #ffc107;
}

/* 侧边栏导航 */
.theme-dark .sidebar-item:hover {
  background-color: #000;
  color: var(--primary);
}

.theme-dark .sidebar-item i {
  color: #c7c9cf;
}

.theme-dark .sidebar-item:hover i {
  color: var(--text-primary);
}

.theme-dark .sidebar-item span {
  color: #888;
}

/* 面包屑 */
.theme-dark .breadcrumb-item {
  color: var(--text-tertiary);
}

.theme-dark .breadcrumb-item a {
  color: var(--text-tertiary);
}

.theme-dark .breadcrumb-item a:hover {
  color: var(--text-primary);
}

.theme-dark .breadcrumb-item.active {
  color: var(--text-tertiary);
  font-weight: normal;
}



.theme-dark .breadcrumb>i {
  color: var(--text-muted);
  opacity: 0.5;
}

/* 站点相关 */
.theme-dark .site-url a {
  color: var(--accent);
}

.theme-dark .site-url a i {
  color: var(--accent);
}

.theme-dark .site-url a:hover, .theme-dark .site-url a:hover i {
  color: var(--accent);
}

.theme-dark .sidebar-logo span,
.theme-dark .sidebar-logo-mobile span{
  color: var(--text-highlight);
}

/* 网站卡片 */
.theme-dark .site-card {
  background: #313234;
  
    border: 0;
}

/* 补充：暗黑模式下site-info文本颜色 */
.theme-dark .site-info > h3 { color: var(--text-primary); }
.theme-dark .site-info > p { color: var(--text-muted); }



/* 站点标签 */
.theme-dark .site-tags a {
  background-color: #343637;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.theme-dark .site-tags a:hover {
  background-color: #777;
  color: #fff;
}

/* 迷你搜索 */
.theme-dark .site-mini-btn::after {
  border-color: var(--bg-card);
  background: linear-gradient(to top left, #283593 0%, #5c6bc0 100%) !important;
}

.theme-dark .site-mini-btn i {
  color: var(--accent);
}

.theme-dark .mini-search.is-active .site-mini-input {
  background: #191919;
}

.theme-dark .site-mini-input, .theme-dark .site-mini-input::placeholder {
  color: var(--text-secondary);
}


/* 站点头部阴影 */
.theme-dark .site-header {
  box-shadow: 0 26px 40px -30px rgba(0, 0, 0, 0.4);
}

/* 相关文章和评论标题暗黑模式样式 */
.theme-dark .related > h2,
.theme-dark .comments > h2 {
  border-left-color: var(--accent);
  color: var(--text-tertiary);
}

/* 小部件标题暗黑模式样式 */
.theme-dark .widget-title {
  color: var(--text-tertiary);
}

/* 站点跳转图标 */
.theme-dark .site-link-icon i {
  color: var(--text-primary);
}

/* 暗黑模式 .bg-white 背景修正 */
.theme-dark .bg-white {
  background-color: #2c2e2f !important;
}

/* ============================================================ */
/* 6. 响应式样式（按屏幕尺寸断点集中整理）*/
/* ============================================================ */

/* 移动端（<768px）*/
@media (max-width: 767.98px) {
  /* 容器 */
  .container {
    padding: 0 10px;
  }

  /* 侧边栏 */
  .sidebar {
    width: 12.5rem!important;/* 覆盖bt */
  }

  .sidebar .offcanvas-body {
    padding: 0;
  }

  .sidebar-nav>ul {
    padding: 0;
  }

  .sidebar-item > a {
    flex-direction: row;
    justify-content: flex-start;
    padding: var(--space-xs) 15px;
    margin: 0 6px;
  }

  .sidebar-item i {
    margin-right: 10px;
    font-size: 1.375rem;
    color: var(--text-muted);
  }

  .sidebar-item span {
    margin-top: 0;
  }

  /* 右侧内容 */
  .right-content {
    margin-left: 0!important;
  }

  /* 顶部导航 */
  .top-nav {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 4px var(--shadow-color);
    padding:10px 0;
    position: relative; /* 为下拉菜单提供定位上下文 */
  }

  .top-nav nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    width: 100%;
    box-sizing: border-box;
  }

  .topnav-left {
    display: flex;
    align-items: center;
    gap:6px;
    flex: 1;
    min-width: 0;
  }

  .topnav-left .btn {
    padding: 6px;
    font-size: var(--fs-sm);
    flex-shrink: 0;
    background-color: transparent;
    color: var(--text-highlight);
    border: 0;
    padding:0;
  }

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

  .search-button {
    background-color: transparent !important;
    border: none !important;
  }

  .search-button i {
    color: var(--accent) !important;
  }

  /* 移动端用户下拉按钮边距调整 */
  .top-nav .user-dropdown > button {
    padding: 0; 
  }

  .top-nav-links {
    display: flex;
    gap: var(--space-xs);
    overflow-x: auto;
    overflow-y: visible; /* 关键：改为visible，避免裁剪下拉菜单 */
    -webkit-overflow-scrolling: touch;
    flex: 1;
    min-width: 0;
    padding: var(--space-xxs) 0; /* 添加上下内边距，让滚动条与文字有距离 */
    /* 优化滚动条样式，减少对布局的影响 */
    scrollbar-width: thin; /* Firefox 使用细滚动条 */
    scrollbar-color: #ccc transparent; /* Firefox 滚动条颜色 */
  }

  /* 移动端下拉菜单修复 - 使用fixed定位突破overflow限制 */
  .top-nav .dropdown2 {
    position: static; /* 改为static，避免创建新的定位上下文 */
  }
  
  .top-nav .dropdown2-menu {
    position: fixed;
    left: 0 !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none;
    min-width: 160px;
    max-width: calc(100vw - 40px); /* 确保不超出屏幕宽度 */
    z-index: 99999 !important; /* 提高z-index确保在最顶层 */
    margin-top: 8px;
    /* 默认靠左对齐，具体菜单单独调整 */
  }
  
  /* 回家地址下拉菜单 - 居中显示 */
  .top-nav .dropdown2:not(.user-dropdown) .dropdown2-menu {
    left: 50% !important;
    transform: translateX(-50%);
  }
  
  /* 用户中心下拉菜单特殊处理 - 靠右显示 */
  .top-nav .user-dropdown .dropdown2-menu {
    right: 10px !important;
    left: auto !important;
    transform: none;
    max-width: calc(100vw - 20px); /* 用户中心菜单可以更宽一些 */
  }
  
  /* 确保下拉菜单不会被页面其他元素遮挡 */
  .top-nav .dropdown2-menu .dropdown2-links {
    z-index: 100000;
  }
  
  /* 确保下拉菜单可见 - 处理不同情况 */
  .top-nav .dropdown2:hover .dropdown2-menu,
  .top-nav .dropdown2.show .dropdown2-menu,
  .top-nav .dropdown2.open .dropdown2-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  
  /* 回家地址下拉菜单显示 */
  .top-nav .dropdown2:not(.user-dropdown):hover .dropdown2-menu,
  .top-nav .dropdown2:not(.user-dropdown).show .dropdown2-menu,
  .top-nav .dropdown2:not(.user-dropdown).open .dropdown2-menu {
    transform: translateX(-50%) translateY(0);
  }
  
  /* 用户中心下拉菜单显示 */
  .top-nav .user-dropdown:hover .dropdown2-menu,
  .top-nav .user-dropdown.show .dropdown2-menu,
  .top-nav .user-dropdown.open .dropdown2-menu {
    transform: none;
  }
  
  /* 移动端用户中心下拉菜单额外保障 - 防止被顶部导航遮挡 */
  .top-nav .user-dropdown .dropdown2-menu {
    top: calc(60px + 8px) !important; /* 使用固定值，避免CSS变量未定义 */
  }




  /* 小屏设备显示回家地址 */
  @media (max-width: 480px) {
    .home-address {
      display: flex;
      gap: var(--space-xxs);
      padding:0 var(--space-xxs);
    }

    .home-address .address-label {
      display: none; /* 移动端隐藏标签 */
    }



    .home-address .address-separator {
      display: none; /* 移动端隐藏分隔符 */
    }

    .related, .comments {
      padding: var(--space-sm) !important;
    }
    .related > h2, .comments > h2 {
        margin-left: -25px;
        margin-top: 5px;
        padding-left: 20px;
    }

  }

  .top-nav-links a {
    flex-shrink: 0;
    color: var(--text-primary);
    transition: all 0.2s ease;
    white-space: nowrap;
  }

  .top-nav-links a:hover {
    background-color: rgba(40, 53, 147, 0.2);
    color: var(--primary);
  }

  .search-box{padding:10px 0}

  /* 暗黑模式下移动端导航链接hover */
  .theme-dark .top-nav-links {
    scrollbar-color: #666 transparent;
  }
  .theme-dark .top-nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.2);
  }

  /* 分类头部 */
  .cat-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .cat-header h2 {
    font-size: 1.25rem;
    width: 100%;
  }

  /* 站点详情 */
  .site-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  .site-header .site-info-wrapper {
            flex-direction: row-reverse;
  }

  .site-info-wrapper {
    flex-direction: row;
    justify-content: center;
    text-align: left;
    width: 100%;
  }

  .site-header .site-actions {
    margin-left: 0;
    justify-content: center;
  }

  .site-header .show-title {
    font-size: var(--fs-xl);
  }

  .site-header .site-description {
    font-size: var(--fs-xxs);
  }

  .site-url {
    padding: var(--space-md) var(--space-md);
  }

  .site-tags {
    padding: var(--space-md) var(--space-md);
    gap: 8px;
  }

  /* 移动端主内容边距处理 */
  main {
    padding: var(--space-sm) !important;
    margin-bottom: 2rem;
  }

  .page {
    padding: var(--space-sm) !important;
  }

  .page .title {
    top:-18px!important;
            font-size: 20px!important;
            padding: 10px 20px 12px!important;
            
  }
  .info .title{top:0!important;padding:0!important;}
  .page .content {
    padding-top:0!important;
  }
  .page h2{font-size: 16px!important;        margin-left: 0px!important;
        padding-left: 10px!important;}
  .page h2::before {
    left: -16px !important;
  }

  .page h2::after {
    left: -14px !important;
  }

  .site-tags a {
    font-size: var(--fs-xs);
    padding: 5px 12px;
  }

  /* 相关文章 */
  .related {
    margin-top: 30px;
  }

  .related, .comments {
    padding: var(--space-md) !important;
  }

  /* 底部移动端适配 */
  .footer-content {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-xxs) var(--space-md);
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: var(--space-xxs) var(--space-md);
    flex-wrap: wrap;
  }

  .footer-nav a {
    margin-left: 0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
  }

  .footer-nav a:hover {
    background-color: rgba(40, 53, 147, 0.1);
  }

  .footer-separator {
    display: none;
  }

  .footer-nav a::before {
  }

  .footer-bottom {
    font-size: 12px;
  }


  .footer-separator {
    margin: 0 1px;
    opacity: 0.25;
  }

  .footer-separator i {
    font-size: var(--fs-xxxs);
    transform: scale(0.5);
    display: inline-block;
  }

  .footer-separator-large {
    margin: 0 var(--space-xs);
  }

  .footer-separator-large i {
    display: none;
  }

  /* 其他 */
  .node-list .node-item {
    padding: 5px 10px;
  }

  .footer-tools {
    right: 8px;
  }
}

/* 平板（768px - 991px）*/
@media (min-width: 768px) and (max-width: 991.98px) {
  .sidebar-item {
    font-size: var(--fs-xxs);
  }

  .sidebar-item i {
    font-size: var(--fs-lg);
  }

  .sidebar-popup a {
    font-size: var(--fs-xxs);
  }

  .search-input-group {
    width: 100%;
  }
}

/* 平板及以下（<992px）*/
@media (max-width: 992px) {
  /* 空，保留扩展 */
}

/* 大屏幕（≥992px）*/
@media (min-width: 992px) {
  .sidebar-item {
    font-size: var(--fs-xxxs);
  }

  .sidebar-item i {
    font-size: var(--fs-base);
  }

  .sidebar-popup a {
    font-size: var(--fs-xxs);
  }

  .search-input-group {
    width: 31.25rem;
  }
}

/* 超大屏幕（≥1200px）*/
@media (min-width: 1200px) {
  .sidebar-item span {
    font-size: var(--fs-xs);
  }

  .sidebar-item i {
    font-size: 1.0625rem;
  }

  .sidebar-popup a {
    font-size: var(--fs-xxs);
  }
}

/* 特大屏幕（≥1400px）*/
@media (min-width: 1400px) {
  .sidebar-item span {
    font-size: var(--fs-sm);
  }

  .sidebar-item i {
    font-size: var(--fs-xl);
  }

  .sidebar-popup a {
    font-size: var(--fs-xxs);
  }

  .container {
    padding: 0 60px;
  }
}

/* 特特大屏幕（≥1600px）*/
@media (min-width: 1600px) {


  .container {
    padding: 0 60px;
    width: 100%; /* 自适应 */
    max-width: 1600px;
  }
}






.toggle-sidebar {position:fixed;top:0;left:0;width:100%;height:100vh;z-index:1000;opacity:0;transform:translateX(-100%);transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1);}
.toggle-sidebar:not(.show) .toggle {opacity:0;}
.toggle-sidebar.show {opacity:1;transform:translateX(0);}
.toggle-sidebar.show .toggle {width:510px;opacity:1;}
.toggle-sidebar .toggle {top:0;left:0;z-index:1000;width:0;height:100vh;position:fixed;background:linear-gradient(to left,transparent 0%,rgba(0,0,0,0.07) 100%);transition:opacity .3s linear;}
.toggle-sidebar .toggle .toggle-inner {position:absolute;top:0;left:0;height:100%;width:400px;transform:translate3d(-100%,0,0);padding:2px;overflow:hidden;transition:all 0.3s cubic-bezier(0.25,0.8,0.25,1);}
.toggle-sidebar.show .toggle .toggle-inner {transform:translate3d(110px,0,0);}
.toggle-inner-item {height:calc(100vh - 30px);overflow:auto;background:radial-gradient(92.81% 48.44% at -24.53% -16.02%,#e4fcff 0%,rgba(255,255,255,0) 100%),radial-gradient(75.78% 68.16% at 56.74% -24.02%,#fcffda 0%,rgba(255,255,255,0) 100%),radial-gradient(160.86% 46.39% at 177.14% -15.62%,#ffc8c8 9.06%,rgba(255,255,255,0) 100%),rgba(255,255,255,0.8);backdrop-filter:saturate(180%) blur(15px);margin:15px;position:relative;padding:15px;border-radius:14px;box-shadow:0 -2px 10px 1px rgba(0,0,0,0.08);}
.toggle-filter-item {padding:15px;}
.toggle-filter-item:hover {background:rgba(200,200,200,0.2);border-radius:10px}
.toggle-filter-item:hover .filter-name {color:#283593}
.toggle-filter-item:hover .filter-name span {display:inline-block}
.filter-name {position:relative;z-index:1;padding-bottom:10px;font-weight:700;color:rgba(0,0,0,0.85);font-size:12px;}
.filter-name span {display:none;font-size:12px;font-weight:400;float:right;color:#666;margin-top:2px;}
.filter-content a {padding:0 12px;border-radius:10px;border:1px solid rgba(0,0,0,0.08);line-height:28px;margin:4px;background:#fff;display:inline-block;font-size:12px;color:#333;}
.filter-content i {font-size:9px;margin-right:5px;color:#283593;font-weight:700;vertical-align:5%;}
.filter-content a:hover {border-color:#283593}
.filter-content {font-size:0;}
.filter-list {margin:-4px;}

@media (max-width:767.98px) {.toggle-sidebar.show .toggle {z-index:1090;width:100%;background:rgba(0,0,0,0.3) !important;backdrop-filter:blur(10px);}
.toggle-sidebar.show .toggle .toggle-inner {transform:translate3d(0,0,0);width:100%;}
.toggle-sidebar .toggle .toggle-inner {transition:none;padding:2px 0 2px 2px;}
.toggle-inner-item {background:radial-gradient(92.81% 48.44% at -24.53% -16.02%,#e2fafd 0%,rgba(255,255,255,0) 100%),radial-gradient(75.78% 68.16% at 56.74% -24.02%,#fafce5 0%,rgba(255,255,255,0) 100%),radial-gradient(160.86% 46.39% at 177.14% -15.62%,#ffdede 9.06%,rgba(255,255,255,0) 100%),rgba(255,255,255,0.95);}
}

.theme-dark .filter-name {
    color: #e0e0e0
}

.theme-dark .filter-content a {
    border-color: #3f4143;
    background: transparent
}

.theme-dark .filter-content i {
    color: #e5c977
}

.theme-dark .toggle-filter-item:hover {
    background: #303234;
    border-bottom-color: #1f2122
}

.theme-dark .toggle-filter-item:hover .filter-name {
    color: #fff
}

.theme-dark .toggle-inner-item {
    background: #212528;
}

.theme-dark .toggle-visited li:hover::after {
    background: linear-gradient(to left, #2c2e2f 0%, #f6dc3e 400%)
}


/* info */
.page{padding: 0 30px var(--fs-base);margin-bottom: var(--space-md);
    border-radius: var(--space-xxxs) var(--space-xxxs) 14px 14px;
    border-top: var(--space-xxxs) solid #283593;
}
.page .title{
    padding: var(--fs-base) 20px;
    display: inline-block;
    margin: 0;
    position: relative;
    top: -var(--fs-xxxl);
    color: #fff;
        z-index: 1;    font-size: 1.5rem;

}
.theme-dark .page h2{color:#c7c9cf}
.page .title::after {
    background: #283593;
    content: '';
    height: 100%;
    width: 100%;
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    z-index: -1;
    border-radius: 0 0 10px 10px;
}
.page p {
    line-height: 1.875;
    font-size: var(--fs-base);
    color: #444;
        margin-bottom: 1.5rem;
}
.theme-dark .page p,.theme-dark .page ul li{    color: #a5a9b2;}
.theme-dark blockquote {
    background: #27292b;
    border-left-color: #1b1d1f;
    color:#a5a9b2
}


.page h2 {
  border-radius: 2px 0 0 2px;
    margin: 0 0 10px 0; /* 上：0，右：0，下：10px，左：0 */
  border-left: unset;

  font-weight: 700;
  padding: 5px 0;
    font-size: 18px;
    position: relative;
    
}
.page h2::before,.page h2::after{
    content: '';
    height: 20px;
    width: 8px;
    background: #f6dc3e;
    position: absolute;
    left: -30px;
    bottom: 7px;
}
.page h2::after{
    left: -28px;
    transform: skewX(-10deg);
}
.page hr {
    margin: 1.2rem 0;
    border-top: 1px solid rgba(0, 0, 0, .1);
}
blockquote {
    border-radius: var(--space-xxxs) 14px 14px var(--space-xxxs);
    padding: 10px var(--space-md);
    margin: 1.25rem 0;
    background: #f1f2f3;
    position: relative;
        border-left: var(--space-xxxs) solid rgba(136, 136, 136, .2);
}
.page .content{padding-top:20px}
.page .content a{
    color: #283593;
    padding: 0 6px;
    position: relative;
    -webkit-font-smoothing: auto;
    z-index: 1;
}
.page .content a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    transform: skewX(-15deg);
    background: linear-gradient(to left, transparent 0%, #f6dc3e 170%);
    border-radius: 3px;
    height: 12px;
    width: 100%;
    z-index: -1;
}

.theme-dark .page .content a::after {
    background: linear-gradient(to left, transparent 0%, #283593 100%) !important;
}

.theme-dark .page .content a {
    color: #e0e0e0 !important;
}
.page .content a:hover {
  position: relative;
}

.page .content a:hover::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 4'%3E%3Cpath fill='none' stroke='%231668ff' d='M0 3.5c5 0 5-3 10-3s5 3 10 3 5-3 10-3 5 3 10 3'/%3E%3C/svg%3E") repeat-x 0 0;
  background-size: 20px auto;
  animation: waveMove 1s infinite linear;
}


@keyframes waveMove {from {background-position:0 100%}
to {background-position:-20px 100%}
}

.info .title::after{display: none;}
.info .title{top:0;color: #282a2d;padding:0;margin-bottom: .5rem;}
.info-header::after {
    content: " ";
    z-index: -1;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: #f1f2f3;
}

.info-header{position: relative;
    z-index: 1;}