/**
 * JiMuNav 极目智汇导航与科技站长门户商业主题
 * 样式核心表
 * 命名空间规范: .jmn_* 与实用工具类
 */

:root {
  --jmn-primary: #165DFF;
  --jmn-primary-dark: #0040C9;
  --jmn-primary-light: #E8F3FF;
  --jmn-secondary: #FF7D00;
  --jmn-accent: #722ED1;
  --jmn-success: #00B42A;
  --jmn-border: #E5E6EB;
  --jmn-bg-body: #F7F8FA;
  --jmn-text-main: #1D2129;
  --jmn-text-sub: #86909C;
  --jmn-text-muted: #4E5969;
}

/* 全局布局与防溢出锁定 */
html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* 顶部毛玻璃导航条 */
.jmn_header_blur {
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* 搜索引擎 Tab */
.jmn_engine_tab {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #4E5969;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.jmn_engine_tab:hover {
  color: var(--jmn-primary);
  background-color: #F2F3F5;
}
.jmn_engine_tab.active {
  color: #ffffff;
  background-color: var(--jmn-primary);
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.25);
}

/* 搜索框复合容器 */
.jmn_search_box {
  background: #ffffff;
  border: 2px solid #E5E6EB;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.jmn_search_box:focus-within {
  border-color: var(--jmn-primary);
  box-shadow: 0 6px 24px rgba(22, 93, 255, 0.18);
}

/* 卡片微交互动效 */
.jmn_card_hover {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.jmn_card_hover:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border-color: #C9CDD4;
}

/* 广告标签与角标 */
.jmn_ad_tag {
  font-size: 10px;
  font-weight: 700;
  color: #FF7D00;
  background: #FFF7E8;
  border-radius: 4px;
  padding: 2px 6px;
  letter-spacing: 0.5px;
}

/* 排行榜金银铜高亮徽章 */
.jmn_rank_badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.jmn_rank_badge_1 {
  background: linear-gradient(135deg, #F53F3F 0%, #FF7D00 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(245, 63, 63, 0.35);
}
.jmn_rank_badge_2 {
  background: linear-gradient(135deg, #FF7D00 0%, #FADC19 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(255, 125, 0, 0.35);
}
.jmn_rank_badge_3 {
  background: linear-gradient(135deg, #722ED1 0%, #165DFF 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(114, 46, 209, 0.35);
}
.jmn_rank_badge_other {
  background: #F2F3F5;
  color: #86909C;
}

/* 移动端侧滑抽屉 */
.jmn_drawer_backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.jmn_drawer_backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.jmn_drawer_panel {
  position: fixed;
  top: 0;
  bottom: 0;
  right: -280px;
  width: 280px;
  background: #ffffff;
  z-index: 51;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.jmn_drawer_panel.open {
  right: 0;
}

/* Toast 提示浮窗 */
.jmn_toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-30px);
  padding: 10px 20px;
  border-radius: 9999px;
  background: #ffffff;
  color: #1D2129;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #E5E6EB;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}
.jmn_toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.jmn_toast.error {
  border-color: #FFA39E;
  background: #FFF1F0;
  color: #CF1322;
}

/* ==========================================================================
   Z-Blog 原生系统模块 100% 现代 UI 深度适配 (彻底去除粗糙黑点列表)
   ========================================================================== */

/* 导航栏模块 (navbar) */
.jmn_module_navbar ul,
.jmn_module_navbar {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.jmn_module_navbar li,
.jmn_module_navbar a {
  display: flex !important;
  align-items: center !important;
  padding: 8px 14px !important;
  background: #F7F8FA !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #4E5969 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.jmn_module_navbar li:hover,
.jmn_module_navbar a:hover {
  background: #E8F3FF !important;
  color: #165DFF !important;
}

.jmn_module_navbar li a {
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  flex-grow: 1 !important;
}

/* 通用列表模块 (catalog, comments, archives, previous, authors) */
.jmn_system_module ul,
.jmn_module_body ul,
.jmn_system_module,
.jmn_module_body {
  list-style: none !important;
}

.jmn_system_module li,
.jmn_module_body li {
  list-style: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  background: #F7F8FA !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  color: #4E5969 !important;
  transition: all 0.2s ease !important;
}

.jmn_system_module li:hover,
.jmn_module_body li:hover {
  background: #E8F3FF !important;
  color: #165DFF !important;
}

.jmn_system_module li a,
.jmn_module_body li a {
  color: inherit !important;
  text-decoration: none !important;
  flex-grow: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.jmn_system_module li .count,
.jmn_system_module li span {
  font-size: 11px !important;
  color: #86909C !important;
  margin-left: 6px !important;
  flex-shrink: 0 !important;
}

/* 标签列表 (tags) */
.jmn_module_tags,
.jmn_module_tags ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jmn_module_tags li,
.jmn_module_tags a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px 12px !important;
  margin: 0 !important;
  background: #F2F3F5 !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #4E5969 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.jmn_module_tags li:hover,
.jmn_module_tags a:hover {
  background: #E8F3FF !important;
  color: #165DFF !important;
}

.jmn_module_tags li a {
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

/* 友情链接与网站收藏 (link, favorite) */
.jmn_module_link,
.jmn_module_link ul,
.jmn_module_favorite,
.jmn_module_favorite ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.jmn_module_link li,
.jmn_module_link a,
.jmn_module_favorite li,
.jmn_module_favorite a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 6px 12px !important;
  margin: 0 !important;
  background: #F7F8FA !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  color: #4E5969 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.jmn_module_link li:hover,
.jmn_module_link a:hover,
.jmn_module_favorite li:hover,
.jmn_module_favorite a:hover {
  background: #E8F3FF !important;
  color: #165DFF !important;
}

.jmn_module_link li a,
.jmn_module_favorite li a {
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
}

/* 系统日历模块深度美化 (#tbCalendar) */
#tbCalendar {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: center !important;
  font-size: 13px !important;
}

#tbCalendar caption {
  font-weight: 600 !important;
  color: #1D2129 !important;
  padding-bottom: 8px !important;
  margin-bottom: 8px !important;
  border-bottom: 1px solid #F2F3F5 !important;
}

#tbCalendar caption a {
  color: #165DFF !important;
  text-decoration: none !important;
  padding: 0 8px !important;
  font-weight: 700 !important;
}

#tbCalendar th {
  padding: 6px 0 !important;
  color: #86909C !important;
  font-weight: 600 !important;
  font-size: 12px !important;
}

#tbCalendar td {
  padding: 6px 0 !important;
  color: #4E5969 !important;
}

#tbCalendar td a {
  color: #165DFF !important;
  font-weight: 700 !important;
  text-decoration: none !important;
}

#tbCalendar #today,
#tbCalendar .today {
  background: #165DFF !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  margin: 0 auto !important;
}

#tbCalendar #today a,
#tbCalendar .today a {
  color: #ffffff !important;
}

/* 现代简约分页条 */
.jmn_pagebar {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  margin: 32px 0 !important;
}
.jmn_pagebar a,
.jmn_pagebar span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}
.jmn_pagebar a {
  background-color: #ffffff !important;
  border: 1px solid #E5E6EB !important;
  color: #4E5969 !important;
}
.jmn_pagebar a:hover {
  background-color: #165DFF !important;
  border-color: #165DFF !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(22, 93, 255, 0.2) !important;
}
.jmn_pagebar span.now-page,
.jmn_pagebar span:not(.page-ellipsis) {
  background-color: #165DFF !important;
  border: 1px solid #165DFF !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(22, 93, 255, 0.25) !important;
}

/* 留言板与评论增强样式 */
.jmn-comment-item {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.jmn-comment-item:hover {
  border-color: #C9CDD4;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}
.jmn-comment-item .comment-content p {
  margin: 0 0 6px 0;
}
.jmn-comment-item .comment-content p:last-child {
  margin-bottom: 0;
}

/* 移动端抽屉菜单滚动条与触控滚动优化 */
#mobile-menu {
  -webkit-overflow-scrolling: touch;
}
#mobile-menu::-webkit-scrollbar {
  width: 4px;
}
#mobile-menu::-webkit-scrollbar-thumb {
  background: #C9CDD4;
  border-radius: 4px;
}
#mobile-menu::-webkit-scrollbar-track {
  background: transparent;
}


