/**
 * zibll网址导航 - 前端样式
 * 参考 zibll-nav-demo.html 布局风格
 * 深度适配子比主题昼夜模式
 * @package zibll-nav
 */

/* ========================================
   CSS变量 - 适配子比主题昼夜模式
   ======================================== */
.zib-nav-page {
  --nav-bg: #f0f2f5;
  --nav-bg-image: none;
  --nav-card-bg: #ffffff;
  --nav-card-border: #ebeef5;
  --nav-text-primary: #303133;
  --nav-text-secondary: #606266;
  --nav-text-muted: #909399;
  --nav-header-bg: #ffffff;
  --nav-sidebar-bg: #ffffff;
  --nav-sidebar-active: #ecf5ff;
  --nav-sidebar-active-text: #409eff;
  --nav-search-bg: #ffffff;
  --nav-search-border: rgba(0,0,0,0.1);
  --nav-search-text: #333333;
  --nav-search-placeholder: #999999;
  --nav-search-shadow: 0 4px 20px rgba(0,0,0,0.1);
  --nav-search-focus-border: rgba(64,158,255,0.4);
  --nav-search-focus-shadow: 0 0 0 3px rgba(64,158,255,0.1);
  --nav-tag-bg: #f4f4f5;
  --nav-tag-active-bg: #409eff;
  --nav-tag-active-color: #ffffff;
  --nav-shadow: 0 1px 4px rgba(0,0,0,0.06);
  --nav-radius: 8px;
  --nav-radius-sm: 6px;
  --nav-transition: all 0.25s ease;
  --nav-divider: #ebeef5;
  --nav-badge-qiafan: #e8d5f5;
  --nav-badge-qiafan-text: #7b6fa6;
  --nav-ad-text: #f56c6c;
  --nav-ad-bg: #fef0f0;
  --nav-tooltip-bg: #409eff;
  --nav-tooltip-text: #ffffff;
  --nav-icon-size: 40px;
  --nav-grid-cols: 5;
  --nav-gap: 12px;
  --sidebar-width: 140px;
  --nav-hero-bg: #0c2340;
  --nav-hero-pattern: #0a1e38;
  --nav-featured-card-bg: #ffffff;
  --nav-featured-card-border: #ebeef5;
  --nav-recommend-section-bg: #ffffff;
  --nav-recommend-icon-bg: #f5f7fa;
  --nav-tab-active-color: #e6a23c;
  --nav-search-btn: #f56c6c;
  --nav-base-font: 14px;
}

/* 子比主题暗黑模式适配 - 多选择器兼容 */
.dark-theme .zib-nav-page,
.dark-mode .zib-nav-page,
.theme-dark .zib-nav-page,
.zibll-dark .zib-nav-page,
.darking .zib-nav-page,
[data-theme="dark"] .zib-nav-page {
  --nav-bg: #2d2d2d;
  --nav-bg-image: var(--nav-bg-image-dark, none);
  --nav-card-bg: #3a3a3a;
  --nav-card-border: #4a4a4a;
  --nav-text-primary: #f0f0f0;
  --nav-text-secondary: #b8b8b8;
  --nav-text-muted: #808080;
  --nav-header-bg: #262626;
  --nav-sidebar-bg: #333333;
  --nav-sidebar-active: rgba(64,158,255,0.15);
  --nav-sidebar-active-text: #7eb8ff;
  --nav-search-bg: #3a3a3a;
  --nav-search-border: rgba(255,255,255,0.12);
  --nav-search-text: #f0f0f0;
  --nav-search-placeholder: #808080;
  --nav-search-shadow: 0 4px 20px rgba(0,0,0,0.25);
  --nav-search-focus-border: rgba(64,158,255,0.4);
  --nav-search-focus-shadow: 0 0 0 3px rgba(64,158,255,0.15);
  --nav-tag-bg: #404040;
  --nav-tag-active-bg: #409eff;
  --nav-tag-active-color: #ffffff;
  --nav-shadow: 0 1px 4px rgba(0,0,0,0.25);
  --nav-divider: #4a4a4a;
  --nav-badge-qiafan: rgba(123,111,166,0.2);
  --nav-badge-qiafan-text: #b8a9d4;
  --nav-ad-text: #f56c6c;
  --nav-ad-bg: rgba(245,108,108,0.1);
  --nav-tooltip-bg: #409eff;
  --nav-tooltip-text: #ffffff;
  --nav-hero-bg: #262626;
  --nav-hero-pattern: #2d2d2d;
  --nav-featured-card-bg: #3a3a3a;
  --nav-featured-card-border: #4a4a4a;
  --nav-recommend-section-bg: #3a3a3a;
  --nav-recommend-icon-bg: #404040;
  --nav-tab-active-color: #e6a23c;
  --nav-search-btn: #f56c6c;
  --nav-bg-secondary: #404040;
  --nav-input-bg: #404040;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.zib-nav-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--nav-bg) var(--nav-bg-image) center/cover no-repeat;
  background-blend-mode: normal;
  color: var(--nav-text-primary);
  line-height: 1.5;
  transition: background 0.3s, color 0.3s;
  font-size: var(--nav-base-font);
  min-height: 100vh;
}

.zib-nav-page * { box-sizing: border-box; }
.zib-nav-page a { text-decoration: none; color: inherit; }

/* ========================================
   全宽模式兼容子比主题容器
   ======================================== */
.zib-nav-full-width.nav-full-width {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 子比主题全宽模式适配 - 覆盖主题容器限制 */
body.zib-nav-full-width .site-content,
body.zib-nav-full-width .content-area,
body.zib-nav-full-width .main-content,
body.zib-nav-full-width .container,
body.zib-nav-full-width #primary.content-area,
body.zib-nav-full-width #main.site-main,
body.zib-nav-full-width .site-content > .container,
body.zib-nav-full-width .main-content > .container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 子比主题全宽模式 - 隐藏侧边栏 */
body.zib-nav-full-width #secondary,
body.zib-nav-full-width .widget-area,
body.zib-nav-full-width .sidebar {
  display: none !important;
}

body.zib-nav-theme-width .zib-nav-page {
  background: transparent;
}

/* ========================================
   顶部搜索区 - 适配子比主题昼夜模式
   ======================================== */
.nav-hero {
  background: var(--nav-card-bg);
  position: relative;
  overflow: visible;
  padding: 24px;
  border-radius: 12px;
  margin: 16px auto;
  border: 1px solid var(--nav-card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  max-width: 1400px;
  box-sizing: border-box;
}

.nav-hero::before {
  display: none;
}

.nav-hero-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.nav-search-box {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  background: var(--nav-search-bg, #ffffff);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  height: 44px;
  border: 1px solid var(--nav-search-border, #e8e8e8);
  transition: all 0.25s ease;
  position: relative;
}

.nav-search-box:focus-within {
  border-color: var(--nav-search-focus-border, rgba(64,158,255,0.4));
  box-shadow: var(--nav-search-focus-shadow, 0 0 0 4px rgba(64,158,255,0.1)), 0 4px 16px rgba(64,158,255,0.15);
}

.nav-search-box input {
  flex: 1; height: 100%; padding: 0 16px;
  border: none; background: transparent;
  font-size: 14px; color: var(--nav-search-text, #303133); outline: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
}

.nav-search-box input::placeholder { color: var(--nav-search-placeholder, #909399); font-weight: 400; }

.nav-search-btn {
  width: 50px; height: 100%; flex-shrink: 0;
  border: none; background: transparent;
  color: var(--nav-search-placeholder, #909399); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
  font-size: 16px;
  padding-right: 12px;
}

.nav-search-btn:hover { 
  color: var(--nav-tag-active-bg, #409eff);
}

.nav-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 24px;
  background: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(64,158,255,0.35);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

.nav-submit-btn:hover {
  background: linear-gradient(135deg, #337ecc 0%, #409eff 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(64,158,255,0.45);
  color: #fff;
}

.nav-submit-btn i {
  font-size: 14px;
}

/* 搜索引擎标签 */
.nav-engine-tabs {
  display: flex; justify-content: center;
  gap: 8px; margin-top: 12px;
  flex-wrap: wrap;
}

.nav-engine-tab {
  padding: 4px 16px; border-radius: 4px;
  font-size: 13px; cursor: pointer;
  background: var(--nav-recommend-icon-bg);
  color: var(--nav-text-secondary);
  border: 1px solid var(--nav-card-border);
  transition: var(--nav-transition);
}

.nav-engine-tab:hover { background: var(--nav-sidebar-active); color: var(--nav-sidebar-active-text); border-color: var(--nav-sidebar-active); }

.nav-engine-tab.active {
  background: var(--nav-tag-active-bg); color: #fff;
  border-color: var(--nav-tag-active-bg); font-weight: 600;
}

.dark-theme .nav-engine-tab,
.dark-mode .nav-engine-tab,
.theme-dark .nav-engine-tab,
.zibll-dark .nav-engine-tab,
.darking .nav-engine-tab,
[data-theme="dark"] .nav-engine-tab {
  background: var(--nav-bg-secondary);
  color: var(--nav-text-secondary);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-engine-tab:hover,
.dark-mode .nav-engine-tab:hover,
.theme-dark .nav-engine-tab:hover,
.zibll-dark .nav-engine-tab:hover,
.darking .nav-engine-tab:hover,
[data-theme="dark"] .nav-engine-tab:hover {
  background: rgba(64,158,255,0.12);
  color: var(--nav-sidebar-active-text);
  border-color: rgba(64,158,255,0.2);
}

.dark-theme .nav-engine-tab.active,
.dark-mode .nav-engine-tab.active,
.theme-dark .nav-engine-tab.active,
.zibll-dark .nav-engine-tab.active,
.darking .nav-engine-tab.active,
[data-theme="dark"] .nav-engine-tab.active {
  background: #409eff; color: #fff; border-color: #409eff;
}

/* 搜索结果下拉 */
.nav-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--nav-card-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: 8px;
  margin-top: 8px;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 100;
}

.nav-search-results .search-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: var(--nav-text-primary);
  border-bottom: 1px solid var(--nav-divider);
  transition: background 0.15s;
}

.nav-search-results .search-result-item:last-child { border-bottom: none; }
.nav-search-results .search-result-item:hover { background: var(--nav-sidebar-active); }

.nav-search-results .search-result-item img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-search-results .search-result-item .result-title {
  font-size: 13px;
  font-weight: 500;
}

.nav-search-results .search-result-item .result-desc {
  font-size: 12px;
  color: var(--nav-text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-search-results .no-results {
  padding: 20px;
  text-align: center;
  color: var(--nav-text-muted);
  font-size: 13px;
}

/* ========================================
   横幅广告
   ======================================== */
.zib-nav-banner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 12px 16px 0;
}

.zib-nav-banner img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--nav-radius-sm);
}

.zib-nav-ad {
  width: 100%;
}

.zib-nav-ad img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   主体布局：侧边栏 + 主内容
   ======================================== */
.nav-body {
  max-width: 1400px; margin: 0 auto;
  display: flex; gap: 0;
  padding: 0 16px;
}

/* 侧边栏 */
.nav-sidebar {
  width: var(--sidebar-width); flex-shrink: 0;
  position: sticky; top: 0;
  height: 100vh; overflow-y: auto;
  padding: 8px 0;
  background: var(--nav-sidebar-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.nav-sidebar::-webkit-scrollbar { width: 3px; }
.nav-sidebar::-webkit-scrollbar-thumb { background: var(--nav-divider); border-radius: 3px; }

.nav-cat-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; font-size: 15px;
  font-weight: 500;
  color: var(--nav-text-primary, #303133); cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
  margin: 1px 0;
  position: relative;
}

.nav-cat-item:hover {
  background: var(--nav-sidebar-active);
  color: var(--nav-sidebar-active-text);
}

.nav-cat-item.active {
  background: var(--nav-sidebar-active);
  color: var(--nav-sidebar-active-text);
  border-left-color: var(--cat-accent-color, #909399);
  font-weight: 500;
}

.nav-cat-icon { 
  font-size: 24px; 
  width: 28px; 
  text-align: center;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cat-accent-color, #909399);
}
.nav-cat-icon i,
.nav-cat-icon img,
.nav-cat-icon span {
  width: 24px;
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  font-size: 22px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  color: inherit;
}

.nav-cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 收起/展开按钮 */
.nav-sidebar-toggle {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; font-size: 15px;
  font-weight: 500;
  color: var(--nav-text-secondary, #909399); cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
  margin-top: auto;
  border-top: 1px solid var(--nav-divider, #ebeef5);
}

.nav-sidebar-toggle:hover {
  background: var(--nav-sidebar-active);
  color: var(--nav-sidebar-active-text);
}

.nav-sidebar-toggle .nav-cat-icon {
  width: 28px;
  color: var(--nav-text-secondary, #909399);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-sidebar-toggle:hover .nav-cat-icon {
  color: var(--nav-sidebar-active-text);
}

.nav-sidebar-toggle .toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
  transition: transform 0.3s ease;
  fill: currentColor;
}

/* 侧边栏收起状态 */
.nav-sidebar.collapsed {
  width: 56px !important;
  min-width: 56px !important;
  flex: 0 0 56px !important;
}

.nav-sidebar.collapsed .nav-cat-item {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.nav-sidebar.collapsed .nav-cat-icon {
  width: 28px;
  margin: 0;
}

.nav-sidebar.collapsed .nav-cat-name {
  display: none;
}

.nav-sidebar.collapsed .nav-sidebar-toggle {
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.nav-sidebar.collapsed .nav-sidebar-toggle .nav-cat-name {
  display: none;
}

.nav-sidebar.collapsed .nav-sidebar-toggle .toggle-icon {
  transform: rotate(180deg);
}

/* 侧边栏广告 */
.zib-nav-ad-sidebar {
  margin: 12px 12px 0;
  padding: 10px;
  border-top: 1px solid var(--nav-divider);
}

.zib-nav-ad-sidebar img {
  width: 100%;
  border-radius: 6px;
}

/* 主内容区 */
.nav-main {
  flex: 1; min-width: 0;
  padding: 12px 0 12px 16px;
}

/* ========================================
   恰饭/推荐卡片区
   ======================================== */
.nav-featured-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.nav-featured-card {
  background: var(--nav-featured-card-bg);
  border: 1px solid var(--nav-featured-card-border);
  border-radius: var(--nav-radius-sm);
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  transition: var(--nav-transition);
  position: relative;
  text-decoration: none !important;
  color: inherit !important;
}

.nav-featured-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nav-featured-card .fc-icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; overflow: hidden;
  font-size: 14px; font-weight: 700; color: #fff;
}

.nav-featured-card .fc-icon i { font-size: 18px; }

.nav-featured-card .fc-info { flex: 1; min-width: 0; }
.nav-featured-card .fc-title {
  font-size: 13px; font-weight: 600;
  color: var(--nav-text-primary);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-featured-card .fc-desc {
  font-size: 11px; color: var(--nav-text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 2px;
}

.nav-qiafan {
  position: absolute; top: 4px; right: 4px;
  padding: 1px 6px; font-size: 10px;
  background: var(--nav-badge-qiafan);
  color: var(--nav-badge-qiafan-text);
  border-radius: 3px; font-weight: 500;
}

/* AD卡片 */
.nav-featured-card.ad-card .fc-icon {
  background: var(--nav-ad-bg);
  color: var(--nav-ad-text);
  font-size: 16px; font-weight: 700;
}

.nav-featured-card.ad-card .fc-title { color: var(--nav-text-primary); }
.nav-featured-card.ad-card .fc-desc { color: var(--nav-text-muted); }

/* ========================================
   网站推荐区
   ======================================== */
.nav-recommend-section {
  background: var(--nav-card-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: background 0.3s, border-color 0.3s;
}

.nav-recommend-cats {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--nav-divider);
  flex-wrap: nowrap;
}

.nav-recommend-cat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 13px;
  color: var(--nav-text-secondary, #606266);
  border-radius: 16px;
  transition: all 0.2s ease;
  font-weight: 400;
}

.nav-recommend-cat:hover {
  color: var(--nav-text-primary, #303133);
  background: rgba(0,0,0,0.06);
}

.nav-recommend-cat.active {
  color: #303030;
  background: var(--nav-tab-active-color, #ffc107);
  font-weight: 600;
}

.nav-recommend-cat .rc-icon {
  font-size: 14px;
}

.nav-recommend-cat-add {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  color: var(--nav-text-secondary);
  background: var(--nav-tag-bg);
  transition: all 0.2s ease;
}

.nav-recommend-cat-add:hover {
  background: var(--nav-tab-active-color);
  color: #303030;
}

.nav-recommend-content {
  padding: 12px 16px;
}

.nav-recommend-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.nav-recommend-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  cursor: pointer; padding: 10px 4px 8px;
  border-radius: var(--nav-radius-sm);
  transition: var(--nav-transition);
  text-decoration: none !important;
  color: inherit !important;
}

.nav-recommend-item:hover { background: var(--nav-sidebar-active); }

.nav-recommend-item .ri-icon {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; color: #fff;
  overflow: hidden; flex-shrink: 0;
}

.nav-recommend-item .ri-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.nav-recommend-item .ri-name {
  font-size: 11px; color: var(--nav-text-secondary, #606266);
  text-align: center;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 100%;
}

/* Tab内容 */
.nav-recommend-tab-content {
  display: block;
}

.nav-recommend-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--nav-text-secondary);
  font-size: 13px;
}

.nav-recommend-empty p {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: var(--nav-text-secondary);
}

.nav-recommend-empty .button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #409eff 0%, #67c23a 100%);
  color: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
  text-decoration: none;
}

.nav-recommend-empty .button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(64, 158, 255, 0.35);
}

.nav-recommend-empty .button:active {
  transform: translateY(0);
}

/* 用户链接操作按钮 */
.user-link-item {
  position: relative;
}

.user-link-item:hover .user-link-actions {
  opacity: 1;
  transform: translateY(0);
}

.user-link-actions {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transform: translateY(-6px);
  transition: all 0.2s ease;
  z-index: 10;
}

.ula-btn {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ula-btn:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

.ula-edit:hover {
  background: var(--nav-primary-color, #409eff);
  box-shadow: 0 4px 12px rgba(64,158,255,0.4);
}

.ula-delete:hover {
  background: #f56c6c;
  box-shadow: 0 4px 12px rgba(245,108,108,0.4);
}

/* 添加网址卡片 */
.add-link-item {
  cursor: pointer;
  border: 2px dashed var(--nav-divider, #e4e7ed) !important;
  background: transparent !important;
  transition: all 0.2s ease !important;
}

.add-link-item:hover {
  border-color: var(--nav-primary-color, #409eff) !important;
  background: rgba(64, 158, 255, 0.05) !important;
}

.add-link-item .ri-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  color: var(--nav-text-secondary, #909399) !important;
  border: 2px dashed var(--nav-divider, #e4e7ed);
  border-radius: 50%;
  transition: all 0.2s ease;
}

.add-link-item:hover .ri-icon {
  border-color: var(--nav-primary-color, #409eff);
  color: var(--nav-primary-color, #409eff) !important;
  background: rgba(64, 158, 255, 0.1) !important;
}

.add-link-item .ri-name {
  color: var(--nav-text-secondary, #909399);
  font-weight: 500;
}

.add-link-item:hover .ri-name {
  color: var(--nav-primary-color, #409eff);
}

/* 模态框背景 */
.zib-nav-modal-mask {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.7);
  display: none;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  z-index: 9999999 !important;
  opacity: 0;
  transition: opacity 0.25s ease;
  margin: 0 !important;
  padding: 0 !important;
  backdrop-filter: blur(4px);
}

.zib-nav-modal-mask.show {
  display: flex !important;
  opacity: 1;
}

.zib-nav-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  max-height: 85vh;
  overflow-y: auto;
  transform: scale(0.92) translateY(20px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
  border: none;
  color: #303133;
}

.zib-nav-modal-mask.show .zib-nav-modal {
  transform: scale(1) translateY(0);
}

.zib-nav-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
  background: #ffffff;
  border-radius: 12px 12px 0 0;
}

.zib-nav-modal-title {
  font-size: 16px;
  font-weight: 600;
  color: #303133;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.zib-nav-modal-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: linear-gradient(180deg, #409eff 0%, #67c23a 100%);
  border-radius: 2px;
}

.zib-nav-modal-close {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  color: #909399;
  font-size: 16px;
  transition: all 0.2s ease;
}

.zib-nav-modal-close:hover {
  background: #f5f7fa;
  color: #303133;
}

.zib-nav-modal-body {
  padding: 22px 24px;
  background: #ffffff;
}

.zib-nav-form-item {
  margin-bottom: 20px;
}

.zib-nav-form-item:last-child {
  margin-bottom: 0;
}

.zib-nav-form-label {
  display: block;
  font-size: 14px;
  color: #303133;
  margin-bottom: 10px;
  font-weight: 500;
}

.zib-nav-form-input,
.zib-nav-form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdfe6;
  border-radius: 8px;
  font-size: 14px;
  color: #303133;
  background: #ffffff;
  outline: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.zib-nav-form-input:focus,
.zib-nav-form-textarea:focus {
  border-color: #409eff;
  box-shadow: 0 0 0 3px rgba(64,158,255,0.1);
}

.zib-nav-form-textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
  line-height: 1.6;
}

.zib-nav-form-input::placeholder,
.zib-nav-form-textarea::placeholder {
  color: #c0c4cc;
}

/* URL预览区域 */
.zib-nav-url-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin-top: 8px;
  background: var(--nav-bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--nav-card-border);
}

.zib-nav-preview-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--nav-recommend-icon-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.zib-nav-preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.zib-nav-preview-icon i {
  font-size: 16px;
  color: var(--nav-text-muted);
}

.zib-nav-preview-info {
  flex: 1;
  min-width: 0;
}

.zib-nav-preview-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--nav-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zib-nav-preview-desc {
  font-size: 11px;
  color: var(--nav-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zib-nav-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #f0f0f0;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
}

.zib-nav-btn {
  padding: 9px 22px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.zib-nav-btn-default {
  background: #f5f7fa;
  color: #606266;
  border: 1px solid #dcdfe6;
}

.zib-nav-btn-default:hover {
  background: #ecf5ff;
  color: #409eff;
  border-color: #b3d8ff;
}

.zib-nav-btn-primary {
  background: linear-gradient(135deg, #409eff 0%, #67c23a 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.25);
}

.zib-nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(64, 158, 255, 0.35);
}

.zib-nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.zib-nav-btn-danger {
  background: #f56c6c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(245,108,108,0.3);
}

.zib-nav-btn-danger:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(245,108,108,0.4);
}

/* Toast提示 */
.zib-nav-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) translateY(-20px);
  z-index: 99999999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.zib-nav-toast-show {
  opacity: 1;
  transform: translate(-50%, -50%) translateY(0);
}

.zib-nav-toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: #2c2c2c;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.zib-nav-toast-icon {
  font-size: 20px;
}

.zib-nav-toast-success .zib-nav-toast-content {
  background: #67c23a;
}

.zib-nav-toast-error .zib-nav-toast-content {
  background: #f56c6c;
}

.zib-nav-toast-warning .zib-nav-toast-content {
  background: #e6a23c;
}

.dark-theme .zib-nav-toast-content,
.dark-mode .zib-nav-toast-content,
.theme-dark .zib-nav-toast-content,
.zibll-dark .zib-nav-toast-content,
.darking .zib-nav-toast-content,
[data-theme="dark"] .zib-nav-toast-content {
  background: #1f1f1f;
}

/* 文字链广告 */
.zib-nav-ad-textlink {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: var(--nav-card-bg);
  border: 1px dashed var(--nav-card-border);
  border-radius: var(--nav-radius);
  margin-bottom: 16px;
}

.zib-nav-ad-textlink a {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  border-radius: 12px;
  text-decoration: none !important;
  transition: all 0.15s;
  white-space: nowrap;
}

.zib-nav-ad-textlink a:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

.nav-hot-section {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hot-card {
  position: relative;
}

.hot-rank-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  z-index: 2;
}

.hot-rank-badge.rank-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.hot-rank-badge.rank-2 {
  background: linear-gradient(135deg, #c0c0c0 0%, #a0a0a0 100%);
  box-shadow: 0 2px 8px rgba(192,192,192,0.4);
}

.hot-rank-badge.rank-3 {
  background: linear-gradient(135deg, #cd7f32 0%, #b87333 100%);
  box-shadow: 0 2px 8px rgba(205,127,50,0.4);
}

.hot-top-1 {
  border-color: rgba(255,215,0,0.3);
}

.hot-top-1:hover {
  border-color: #ffd700;
  box-shadow: 0 8px 24px rgba(255,215,0,0.2);
}

.hot-top-2 {
  border-color: rgba(192,192,192,0.3);
}

.hot-top-2:hover {
  border-color: #c0c0c0;
  box-shadow: 0 8px 24px rgba(192,192,192,0.2);
}

.hot-top-3 {
  border-color: rgba(205,127,50,0.3);
}

.hot-top-3:hover {
  border-color: #cd7f32;
  box-shadow: 0 8px 24px rgba(205,127,50,0.2);
}

/* ========================================
   分类区块 - 带横向Tab
   ======================================== */
.nav-section { 
  margin-bottom: 16px; 
  background: var(--nav-card-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius);
  overflow: visible;
  transition: background 0.3s, border-color 0.3s;
  padding-bottom: 8px;
}

.nav-section-header {
  display: flex; align-items: center; gap: 0;
  padding: 10px 16px;
  background: var(--nav-card-bg);
  border-bottom: 1px solid var(--nav-divider);
  flex-wrap: nowrap;
}

.nav-section-main-cat {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700;
  color: var(--nav-text-primary, #303133);
  flex-shrink: 0;
  padding-right: 12px;
  position: relative;
}

.nav-section-main-cat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 18px;
  background: var(--nav-divider);
}

.nav-section-main-cat .smc-icon { 
  font-size: 16px; 
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.nav-section-main-cat .smc-icon i,
.nav-section-main-cat .smc-icon img,
.nav-section-main-cat .smc-icon span {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  font-size: 17px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-section-pipe {
  display: none;
}

.nav-section-tabs {
  display: flex; 
  gap: 6px; 
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-left: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-section-tabs::-webkit-scrollbar {
  display: none;
}

.nav-section-tab {
  padding: 5px 14px; 
  font-size: 13px;
  color: var(--nav-text-secondary, #606266); 
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  border: none; 
  background: rgba(0,0,0,0.06);
  border-radius: 16px;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 400;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.nav-section-tab:hover { 
  color: var(--nav-text-primary, #303133);
  background: rgba(0,0,0,0.1);
}

.nav-section-tab.active {
  color: #303030;
  font-weight: 600;
  background: var(--nav-tab-active-color, #ffc107);
}

.nav-section-tab.active::after {
  display: none;
}

.nav-section-more {
  margin-left: auto; 
  font-size: 12px;
  color: var(--nav-text-muted); 
  cursor: pointer;
  transition: var(--nav-transition);
  text-decoration: none !important;
  flex-shrink: 0;
  padding: 5px 10px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 12px;
}

.nav-section-more:hover { 
  color: var(--nav-tab-active-color); 
  background: var(--nav-sidebar-active);
}

/* ========================================
   网址卡片网格
   ======================================== */
.nav-grid {
  display: grid;
  grid-template-columns: repeat(var(--nav-grid-cols), 1fr);
  gap: var(--nav-gap);
  padding: 12px 16px;
  padding-bottom: 20px;
}

.nav-card {
  background: var(--nav-card-bg, #ffffff);
  border: 1px solid var(--nav-card-border, rgba(0,0,0,0.08));
  border-radius: 10px;
  padding: 10px 12px;
  display: flex; flex-direction: row; align-items: center; gap: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1;
  text-decoration: none !important;
  color: inherit !important;
}

.nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(120deg, var(--card-accent-color, #409eff) 0%, transparent 75%);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  border-radius: 10px 0 0 10px;
}

.nav-card:hover {
  border-color: var(--card-accent-color, #409eff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 10;
  transform: translateY(-2px);
}

.nav-card:hover::before {
  opacity: 0.35;
}

.nav-card-icon {
  width: var(--nav-icon-size); height: var(--nav-icon-size);
  border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  font-size: 13px; font-weight: 700; color: #fff;
  position: relative;
  z-index: 2;
  transition: transform 0.25s ease;
  background: var(--card-accent-color, #409eff) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-card:hover .nav-card-icon {
  transform: scale(1.08);
}

.nav-card-icon img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.nav-card-icon i { font-size: 18px; }

.nav-card-info { flex: 1; min-width: 0; position: relative; z-index: 2; text-align: left; }
.nav-card-title {
  font-size: 13px; font-weight: 600;
  color: var(--nav-text-primary, #303133);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-card-desc {
  font-size: 11px; color: var(--nav-text-muted, #909399);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 2px;
  line-height: 1.4;
  word-break: break-all;
}

.nav-card-meta {
  font-size: 11px;
  color: var(--nav-text-muted);
  margin-top: 3px;
}

.nav-card-meta i { margin-right: 3px; }

.nav-card-meta .nav-card-clicks + .nav-card-time::before {
  content: '·';
  margin: 0 5px;
  color: var(--nav-text-muted);
}

.nav-card-url-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--card-accent-color, #409eff);
  font-size: 11px;
  color: #fff;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-card-url-bar i {
  font-size: 10px;
  flex-shrink: 0;
}

.nav-card-url-bar span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-card:hover .nav-card-url-bar {
  opacity: 1;
  transform: translateY(0);
}

/* 推荐徽章 */
.featured-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ff6b6b;
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 0 var(--nav-radius-sm) 0 var(--nav-radius-sm);
  font-weight: 500;
  z-index: 3;
}

/* 死链/异常徽章 */
.dead-badge {
  position: absolute;
  top: 0;
  left: 0;
  background: #dc3545;
  color: #fff;
  font-size: 10px;
  padding: 1px 7px;
  border-radius: var(--nav-radius-sm) 0 var(--nav-radius-sm) 0;
  font-weight: 500;
  z-index: 3;
}

.nav-card.is-dead {
  opacity: 0.6;
}

.nav-card.is-warning {
  border-color: #ffc107;
}

/* 广告卡片链接 */
.nav-ad-card-link .nav-card-ad-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--nav-ad-bg);
  color: var(--nav-ad-text);
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 600;
}

/* 悬停详情tooltip */
.nav-card-tooltip {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%; transform: translateX(-50%);
  background: var(--nav-tooltip-bg);
  color: var(--nav-tooltip-text);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  width: 220px;
  z-index: 50;
  box-shadow: 0 4px 12px rgba(64,158,255,0.3);
  pointer-events: none;
}

.nav-card-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--nav-tooltip-bg);
}

.nav-card:hover .nav-card-tooltip { display: block; }

/* 分类间广告 */
.zib-nav-ad-between {
  margin-bottom: 20px;
  text-align: center;
}

.zib-nav-ad-between img {
  max-width: 100%;
  border-radius: var(--nav-radius-sm);
}

/* ========================================
   空状态
   ======================================== */
.zib-nav-empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--nav-text-muted);
}

.zib-nav-empty i {
  font-size: 42px;
  margin-bottom: 12px;
  display: block;
}

.zib-nav-empty p {
  font-size: 15px;
  margin: 0;
}

/* ========================================
   收录页面样式
   ======================================== */
.zib-nav-submit-page {
  min-height: 100vh;
  background: var(--nav-bg);
  transition: background 0.3s;
}

/* Hero区 */
.submit-hero {
  background: var(--nav-card-bg);
  padding: 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 20px auto 0;
  border-radius: 12px;
  border: 1px solid var(--nav-card-border);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.submit-hero::before {
  display: none;
}

.submit-hero-content { position: relative; z-index: 1; }

.submit-hero h1 {
  font-size: 22px; font-weight: 600; color: var(--nav-text-primary);
  margin-bottom: 8px;
}

.submit-hero p {
  font-size: 13px; color: var(--nav-text-secondary);
}

/* 主体 */
.submit-body {
  max-width: 1200px; margin: 0 auto;
  padding: 24px;
  display: flex; gap: 20px;
  align-items: flex-start;
}

/* 左侧表单 */
.submit-form-wrap {
  flex: 1; min-width: 0;
  background: var(--nav-card-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius);
  padding: 28px;
  box-shadow: var(--nav-shadow);
  transition: background 0.3s, border-color 0.3s;
}

.submit-form-title {
  font-size: 16px; font-weight: 700;
  color: var(--nav-text-primary);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--nav-divider);
}

/* 提示信息 */
.zib-nav-notice {
  background: var(--nav-recommend-icon-bg);
  border-left: 3px solid var(--nav-tag-active-bg);
  border-radius: var(--nav-radius-sm);
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--nav-text-secondary);
}

.zib-nav-notice i {
  color: var(--nav-tag-active-bg);
  margin-top: 2px;
}

/* 友链检测面板 */
.friend-link-check {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: var(--nav-recommend-icon-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius-sm);
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.flc-status {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

.flc-status.checking { background: var(--nav-tab-active-color); animation: pulse 1.2s infinite; }
.flc-status.pass { background: #67c23a; }
.flc-status.fail { background: #f56c6c; }

.flc-text { font-size: 12px; color: var(--nav-text-secondary); flex: 1; }

.flc-btn {
  padding: 5px 12px; border-radius: 4px;
  background: var(--nav-tag-active-bg); color: #fff;
  border: none; font-size: 12px; cursor: pointer;
  transition: opacity 0.2s;
}

.flc-btn:hover { opacity: 0.85; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.auto-check-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--nav-divider);
  font-size: 12px;
  color: #67c23a;
}

.auto-check-result i { font-size: 14px; }

/* 表单字段 */
.form-row {
  display: flex; gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group.half { flex: 1; }

.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--nav-text-primary);
  margin-bottom: 8px;
}

.form-label .required { color: #f56c6c; margin-left: 2px; }

.form-input,
.form-textarea,
.form-select {
  width: 100%; padding: 10px 14px;
  background: var(--nav-recommend-icon-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius-sm);
  font-size: 13px; color: var(--nav-text-primary);
  outline: none; transition: var(--nav-transition);
  font-family: inherit;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--nav-input-focus, #409eff);
  box-shadow: 0 0 0 2px rgba(64,158,255,0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--nav-text-muted); }

.form-textarea { resize: vertical; min-height: 72px; line-height: 1.6; }
.form-select { cursor: pointer; }

.form-hint {
  font-size: 11px; color: var(--nav-text-muted);
  margin-top: 5px;
}

/* 图标上传区 */
.icon-upload-area {
  display: flex; align-items: center; gap: 14px;
}

.icon-preview {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--nav-recommend-icon-bg);
  border: 2px dashed var(--nav-card-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--nav-text-muted);
  flex-shrink: 0; overflow: hidden;
  transition: var(--nav-transition);
}

.icon-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.icon-upload-actions { display: flex; flex-direction: column; gap: 4px; }

.icon-upload-btn {
  padding: 7px 14px; border-radius: var(--nav-radius-sm);
  background: var(--nav-recommend-icon-bg);
  border: 1px solid var(--nav-card-border);
  font-size: 12px; color: var(--nav-text-secondary);
  cursor: pointer; transition: var(--nav-transition);
  display: inline-flex; align-items: center; gap: 4px;
}

.icon-upload-btn:hover { border-color: var(--nav-tag-active-bg); color: var(--nav-tag-active-bg); }

/* 友链检测按钮行 */
.friend-link-check-row {
  margin-bottom: 20px;
}

/* 复选框 */
.form-check {
  margin-top: 5px;
}

.checkbox-label {
  display: flex !important;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 400 !important;
  font-size: 13px;
  color: var(--nav-text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

/* 提交按钮 */
.submit-btn-wrap {
  display: flex; align-items: center; gap: 12px;
  padding-top: 4px;
}

.submit-btn {
  padding: 10px 36px; border-radius: var(--nav-radius-sm);
  background: var(--nav-tag-active-bg); color: #fff;
  border: none; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: opacity 0.2s;
}

.submit-btn:hover { opacity: 0.88; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.submit-reset-btn {
  padding: 10px 20px; border-radius: var(--nav-radius-sm);
  background: transparent;
  border: 1px solid var(--nav-card-border);
  color: var(--nav-text-secondary);
  font-size: 14px; cursor: pointer;
  transition: var(--nav-transition);
}

.submit-reset-btn:hover { border-color: var(--nav-text-muted); }

/* 表单消息 */
.form-message {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
}

.form-message.success {
  background: #f0f9eb;
  color: #67c23a;
  border: 1px solid #e1f3d8;
}

.form-message.error {
  background: #fef0f0;
  color: #f56c6c;
  border: 1px solid #fde2e2;
}

/* 成功提示 */
.submit-success {
  display: none;
  text-align: center; padding: 48px 20px;
}

.submit-success.show { display: block; }

.submit-success .ss-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(103,194,58,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; font-size: 28px; color: #67c23a;
}

.submit-success h3 {
  font-size: 18px; font-weight: 700;
  color: var(--nav-text-primary); margin-bottom: 8px;
}

.submit-success p {
  font-size: 13px; color: var(--nav-text-muted);
  margin-bottom: 20px; line-height: 1.6;
}

.submit-success .ss-btn {
  display: inline-block;
  padding: 8px 24px; border-radius: var(--nav-radius-sm);
  background: var(--nav-tag-active-bg); color: #fff;
  border: none; font-size: 13px; cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none !important;
  margin: 0 6px;
}

.submit-success .ss-btn:hover { opacity: 0.88; }

.submit-success .ss-btn-secondary {
  background: transparent;
  border: 1px solid var(--nav-card-border);
  color: var(--nav-text-secondary);
}

.submit-success .ss-btn-secondary:hover {
  border-color: var(--nav-text-muted);
  color: var(--nav-text-primary);
}

/* 收录关闭 */
.zib-nav-submit-closed {
  text-align: center;
  padding: 40px 20px;
  color: var(--nav-text-muted);
}

.zib-nav-submit-closed i {
  font-size: 36px;
  margin-bottom: 12px;
  display: block;
}

/* 右侧说明 */
.submit-sidebar {
  width: 280px; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 16px;
}

.submit-notice {
  background: var(--nav-card-bg);
  border: 1px solid var(--nav-card-border);
  border-radius: var(--nav-radius);
  padding: 18px;
  box-shadow: var(--nav-shadow);
  transition: background 0.3s, border-color 0.3s;
}

.submit-notice-title {
  font-size: 14px; font-weight: 700;
  color: var(--nav-text-primary);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 6px;
}

.submit-notice-list {
  list-style: none; padding: 0;
}

.submit-notice-list li {
  font-size: 12px; color: var(--nav-text-secondary);
  line-height: 1.7; padding: 3px 0;
  padding-left: 14px; position: relative;
}

.submit-notice-list li::before {
  content: '';
  position: absolute; left: 0; top: 11px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--nav-tag-active-bg);
}

.friend-link-box {
  margin-top: 10px; padding: 10px 12px;
  background: var(--nav-recommend-icon-bg);
  border-radius: var(--nav-radius-sm);
  font-size: 12px; color: var(--nav-text-secondary);
  word-break: break-all; cursor: pointer;
  border: 1px solid var(--nav-card-border);
  transition: var(--nav-transition);
}

.friend-link-box:hover { border-color: var(--nav-tag-active-bg); }
.friend-link-box.copied { border-color: #67c23a; color: #67c23a; }

.submit-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--nav-tag-active-bg);
  text-decoration: none !important;
}

.submit-back-link:hover { opacity: 0.85; }

.submit-back-link i { font-size: 12px; }

/* ========================================
   外链跳转过渡弹窗
   ======================================== */
.zib-nav-go-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zib-nav-fade-in 0.2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@keyframes zib-nav-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes zib-nav-dialog-in {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.zib-nav-go-dialog {
  background: var(--nav-card-bg);
  border-radius: 14px;
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.2);
  padding: 32px 32px 28px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  animation: zib-nav-dialog-in 0.3s ease;
}

.dark-theme .zib-nav-go-dialog,
.dark-mode .zib-nav-go-dialog,
.theme-dark .zib-nav-go-dialog,
.zibll-dark .zib-nav-go-dialog,
.darking .zib-nav-go-dialog,
[data-theme="dark"] .zib-nav-go-dialog {
  background: var(--nav-card-bg);
}

.zib-nav-go-logo {
  margin-bottom: 14px;
}

.zib-nav-go-logo img {
  max-height: 44px;
  max-width: 150px;
  object-fit: contain;
}

.zib-nav-go-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--nav-tag-active-bg);
}

.zib-nav-go-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--nav-text-primary);
  margin-bottom: 6px;
}

.zib-nav-go-desc {
  font-size: 13px;
  color: var(--nav-text-secondary);
  margin-bottom: 12px;
  line-height: 1.6;
}

.zib-nav-go-url {
  font-size: 13px;
  color: var(--nav-tag-active-bg);
  background: var(--nav-recommend-icon-bg);
  border-radius: 8px;
  padding: 10px 14px;
  word-break: break-all;
  margin-bottom: 12px;
  line-height: 1.5;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zib-nav-go-countdown {
  font-size: 13px;
  color: var(--nav-text-muted);
  margin-bottom: 14px;
  min-height: 20px;
}

.zib-nav-go-countdown .count-num {
  display: inline-block;
  min-width: 22px;
  font-weight: 700;
  color: var(--nav-tag-active-bg);
  font-size: 16px;
  vertical-align: -1px;
}

.zib-nav-go-trust {
  text-align: left;
  margin-bottom: 18px;
  padding-left: 4px;
}

.zib-nav-go-trust label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--nav-text-muted);
  cursor: pointer;
  user-select: none;
}

.zib-nav-go-trust input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--nav-tag-active-bg);
  cursor: pointer;
  margin: 0;
}

.zib-nav-go-actions {
  display: flex;
  gap: 10px;
}

.zib-nav-go-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.go-btn-primary {
  background: var(--nav-tag-active-bg);
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(64, 158, 255, 0.3);
}

.go-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.go-btn-cancel {
  background: var(--nav-recommend-icon-bg);
  color: var(--nav-text-secondary) !important;
  border: 1px solid var(--nav-card-border);
}

.go-btn-cancel:hover {
  background: var(--nav-bg-secondary);
  color: var(--nav-text-primary) !important;
}

.dark-theme .go-btn-cancel,
.dark-mode .go-btn-cancel,
.theme-dark .go-btn-cancel,
.zibll-dark .go-btn-cancel,
.darking .go-btn-cancel,
[data-theme="dark"] .go-btn-cancel {
  background: var(--nav-bg-secondary);
  color: var(--nav-text-secondary) !important;
  border-color: var(--nav-card-border);
}

/* 底部申请收录按钮 */
.nav-footer-submit {
  display: flex;
  justify-content: center;
  padding: 24px 16px 32px;
}

.nav-footer-submit .nav-submit-btn {
  padding: 12px 32px;
  font-size: 15px;
}

/* 回到顶部 */
.nav-back-top {
  position: fixed; bottom: 24px; right: 24px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--nav-tag-active-bg); color: #fff;
  border: none; cursor: pointer;
  box-shadow: 0 2px 8px rgba(64,158,255,0.3);
  display: none; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--nav-transition); z-index: 99;
}

.nav-back-top.show { display: flex; }
.nav-back-top:hover { opacity: 0.85; }

/* ========================================
   响应式
   ======================================== */

/* 超大屏幕 */
@media (min-width: 1401px) {
  .nav-card {
    padding: 14px 12px;
    gap: 10px;
  }
  .nav-card-title {
    font-size: 13px;
  }
  .nav-card-desc {
    font-size: 11px;
    -webkit-line-clamp: 1;
    margin-top: 3px;
  }
  .nav-card-icon {
    width: 36px;
    height: 36px;
  }
  .nav-card-icon i {
    font-size: 16px;
  }
  .nav-card::before {
    width: 60%;
  }
}

/* 大屏幕 */
@media (max-width: 1400px) {
  .nav-body { max-width: 100%; }
  .zib-nav-banner { max-width: 100%; }
}

/* 桌面端 */
@media (max-width: 1200px) {
  .zib-nav-page { --nav-grid-cols: 4; }
  .nav-featured-row { grid-template-columns: repeat(4, 1fr); }
  .nav-recommend-grid { grid-template-columns: repeat(6, 1fr); }
}

/* 平板竖屏 / 小桌面 */
@media (max-width: 992px) {
  .zib-nav-page { --nav-grid-cols: 3; --sidebar-width: 130px; }
  .nav-featured-row { grid-template-columns: repeat(3, 1fr); }
  .nav-recommend-grid { grid-template-columns: repeat(5, 1fr); }
  
  .nav-sidebar .nav-cat-name { font-size: 14px; }
  .nav-sidebar .nav-cat-icon i { font-size: 14px; }
  
  .nav-hero { padding: 18px 16px; }
  .nav-search-box { max-width: 500px; }
}

/* 平板横屏 */
@media (max-width: 860px) {
  .zib-nav-page { --nav-grid-cols: 3; --sidebar-width: 120px; }
  .nav-recommend-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 平板竖屏 / 大屏手机 */
@media (max-width: 768px) {
  .zib-nav-page {
    --nav-grid-cols: 2;
    --nav-gap: 8px;
    --nav-icon-size: 36px;
    --sidebar-width: 100%;
  }

  /* 移动端菜单按钮 */
  .nav-mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    border: none;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
    margin-right: 10px;
    transition: all 0.3s ease;
    order: -1;
  }
  
  .nav-mobile-menu-btn:hover,
  .nav-mobile-menu-btn.active {
    background: rgba(255,255,255,0.25);
  }
  
  .nav-mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
    margin: 3px 0;
    transition: all 0.3s ease;
  }
  
  .nav-mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* 搜索框调整 */
  .nav-hero-inner {
    justify-content: flex-start;
    align-items: center;
  }
  
  .nav-search-box {
    flex: 1;
    max-width: none;
    height: 42px;
  }
  
  .nav-search-box input {
    font-size: 13px;
    padding: 0 12px;
  }
  
  .nav-search-btn {
    width: 42px;
  }

  /* 搜索引擎标签 */
  .nav-engine-tabs {
    margin-top: 10px;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .nav-engine-tab {
    padding: 3px 12px;
    font-size: 12px;
  }

  /* 侧边栏改为抽屉式 */
  .nav-body {
    flex-direction: column;
    padding: 0 8px;
  }

  .nav-sidebar {
    width: 100%;
    height: auto;
    position: static;
    display: none;
    padding: 8px 0;
    border-radius: 0;
    background: var(--nav-card-bg);
    border-bottom: 1px solid var(--nav-card-border);
    order: -1;
  }

  .nav-sidebar.mobile-show {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: var(--nav-radius);
  }

  .nav-sidebar.mobile-show .nav-cat-item {
    padding: 8px 14px;
    border-left: none;
    border-radius: 20px;
    font-size: 13px;
    background: var(--nav-tag-bg);
    flex-wrap: nowrap;
  }

  .nav-sidebar.mobile-show .nav-cat-item.active {
    background: var(--nav-tag-active-bg);
    color: var(--nav-tag-active-color);
  }

  .nav-sidebar.mobile-show .nav-cat-icon {
    margin-right: 6px;
    opacity: 0.8;
  }
  
  .nav-sidebar.mobile-show .nav-cat-icon i {
    font-size: 14px;
  }

  .nav-sidebar.mobile-show .nav-cat-count {
    background: rgba(255,255,255,0.3);
    color: var(--nav-text-primary);
    font-size: 11px;
    padding: 1px 5px;
    margin-left: 4px;
  }

  .nav-sidebar.mobile-show .nav-cat-item.active .nav-cat-count {
    background: rgba(255,255,255,0.2);
    color: #fff;
  }

  /* 收起按钮在移动端隐藏 */
  .nav-sidebar-toggle {
    display: none;
  }

  .nav-main {
    padding: 8px 0;
  }

  /* 推荐区域 */
  .nav-recommend-section {
    overflow: hidden;
  }
  
  .nav-recommend-cats {
    padding: 8px 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    gap: 6px;
  }
  
  .nav-recommend-cat {
    padding: 5px 12px;
    font-size: 12px;
    white-space: nowrap;
  }
  
  .nav-recommend-cat-add {
    width: 32px;
    height: 32px;
  }
  
  .nav-recommend-content {
    padding: 8px;
  }
  
  .nav-recommend-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  
  .nav-recommend-item {
    padding: 10px 6px;
  }
  
  .ri-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  
  .ri-name {
    font-size: 12px;
  }

  /* 分类区域 */
  .nav-section-header {
    gap: 4px;
    padding: 8px 8px;
    flex-wrap: wrap;
    align-items: center;
  }
  
  .nav-section-main-cat {
    font-size: 14px;
    margin-right: 4px;
  }
  
  .nav-section-tab {
    padding: 3px 10px;
    font-size: 12px;
  }
  
  .nav-section-more {
    font-size: 12px;
  }
  
  .nav-grid {
    padding: 6px 8px;
    gap: var(--nav-gap);
  }

  /* 卡片样式 */
  .nav-card {
    padding: 10px 8px;
    gap: 6px;
    flex-direction: row;
  }
  
  .nav-card-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
    flex-shrink: 0;
  }
  
  .nav-card-title {
    font-size: 12px;
  }
  
  .nav-card-desc {
    font-size: 10px;
    display: none;
  }
  
  .nav-card-tooltip {
    display: none !important;
  }

  /* 返回顶部按钮 */
  .nav-back-top {
    bottom: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  /* 英雄区域 */
  .nav-hero {
    padding: 14px 8px 12px;
    margin: 8px;
  }

  /* 收录页面 */
  .submit-body {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  
  .submit-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .submit-sidebar .submit-notice {
    flex: 1;
    min-width: 200px;
  }
  
  .submit-form-wrap {
    padding: 20px;
  }
  
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .submit-hero {
    padding: 24px 16px 20px;
  }
  
  .submit-hero h1 {
    font-size: 20px;
  }
}

/* 手机横屏 */
@media (max-width: 640px) {
  .zib-nav-page {
    --nav-grid-cols: 2;
    --nav-gap: 6px;
  }
  
  .nav-recommend-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .nav-card {
    padding: 8px 6px;
  }
  
  .nav-card-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .nav-card-title {
    font-size: 12px;
  }
}

/* 手机竖屏 */
@media (max-width: 480px) {
  .zib-nav-page {
    --nav-grid-cols: 2;
    --nav-gap: 6px;
    --nav-icon-size: 32px;
  }

  .nav-hero {
    padding: 12px 8px 10px;
    margin: 6px;
  }
  
  .nav-mobile-menu-btn {
    width: 40px;
    height: 40px;
    margin-right: 8px;
  }
  
  .nav-search-box {
    height: 38px;
  }
  
  .nav-search-box input {
    font-size: 12px;
    padding: 0 10px;
  }
  
  .nav-search-btn {
    width: 38px;
  }

  .nav-featured-row {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .nav-recommend-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
  
  .nav-recommend-item {
    padding: 8px 4px;
  }
  
  .ri-icon {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }
  
  .ri-name {
    font-size: 11px;
  }

  .nav-card {
    padding: 8px;
    gap: 5px;
  }
  
  .nav-card-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
  
  .nav-card-title {
    font-size: 11px;
  }
  
  .nav-section-header {
    padding: 6px 6px;
  }
  
  .nav-section-main-cat {
    font-size: 13px;
  }
  
  .nav-section-tab {
    padding: 2px 8px;
    font-size: 11px;
  }

  /* 返回顶部按钮 */
  .nav-back-top {
    bottom: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }

  /* 收录页面 */
  .submit-form-wrap {
    padding: 12px;
  }
  
  .icon-upload-area {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .submit-btn-wrap {
    flex-direction: column;
  }
  
  .submit-btn, .submit-reset-btn {
    width: 100%;
    text-align: center;
  }
  
  .submit-sidebar .submit-notice {
    min-width: 100%;
  }

  /* 弹窗 */
  .zib-nav-go-dialog {
    padding: 24px 18px 20px;
    border-radius: 12px;
  }
  
  .zib-nav-go-actions {
    flex-direction: column;
    gap: 8px;
  }
}

/* 超小屏幕 */
@media (max-width: 360px) {
  .zib-nav-page {
    --nav-grid-cols: 2;
    --nav-gap: 4px;
  }

  .nav-recommend-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-card {
    padding: 6px 4px;
  }
  
  .nav-card-icon {
    width: 24px;
    height: 24px;
    font-size: 11px;
  }
  
  .nav-card-title {
    font-size: 10px;
  }
  
  .nav-section-tab {
    font-size: 10px;
    padding: 2px 6px;
  }
}

/* ========================================
   Fallback favicon
   ======================================== */
.zib-nav-favicon[src=""],
.zib-nav-favicon[src*="undefined"] {
  visibility: hidden;
}

.zib-nav-favicon.error {
  display: none;
}

/* favicon加载失败后的首字母显示 */
.favicon-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
}

.nav-card-icon .favicon-initial {
  font-size: 18px;
}

.ri-icon .favicon-initial {
  font-size: 16px;
  color: #fff;
}

/* ========================================
   小工具样式
   ======================================== */
.zib-nav-widget-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zib-nav-widget-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--nav-divider);
}

.zib-nav-widget-item:last-child {
  border-bottom: none;
}

.zib-nav-widget-item a {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  color: var(--nav-text-primary) !important;
}

.zib-nav-widget-favicon {
  width: 16px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
}

.zib-nav-widget-name {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.15s;
}

.zib-nav-widget-item a:hover .zib-nav-widget-name {
  color: var(--nav-tag-active-bg);
}

/* ========================================
   暗黑模式 - 搜索框和hero区域适配
   ======================================== */
.dark-theme .nav-search-box,
.dark-mode .nav-search-box,
.theme-dark .nav-search-box,
.zibll-dark .nav-search-box,
.darking .nav-search-box,
[data-theme="dark"] .nav-search-box {
  background: var(--nav-search-bg);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-search-box input,
.dark-mode .nav-search-box input,
.theme-dark .nav-search-box input,
.zibll-dark .nav-search-box input,
.darking .nav-search-box input,
[data-theme="dark"] .nav-search-box input {
  color: var(--nav-search-text);
}

.dark-theme .nav-search-box input::placeholder,
.dark-mode .nav-search-box input::placeholder,
.theme-dark .nav-search-box input::placeholder,
.zibll-dark .nav-search-box input::placeholder,
.darking .nav-search-box input::placeholder,
[data-theme="dark"] .nav-search-box input::placeholder {
  color: var(--nav-search-placeholder);
}

.dark-theme .nav-search-box:focus-within,
.dark-mode .nav-search-box:focus-within,
.theme-dark .nav-search-box:focus-within,
.zibll-dark .nav-search-box:focus-within,
.darking .nav-search-box:focus-within,
[data-theme="dark"] .nav-search-box:focus-within {
  border-color: var(--nav-search-focus-border);
  box-shadow: var(--nav-search-focus-shadow);
}

.dark-theme .nav-search-btn,
.dark-mode .nav-search-btn,
.theme-dark .nav-search-btn,
.zibll-dark .nav-search-btn,
.darking .nav-search-btn,
[data-theme="dark"] .nav-search-btn {
  color: var(--nav-text-muted);
}

.dark-theme .nav-search-btn:hover,
.dark-mode .nav-search-btn:hover,
.theme-dark .nav-search-btn:hover,
.zibll-dark .nav-search-btn:hover,
.darking .nav-search-btn:hover,
[data-theme="dark"] .nav-search-btn:hover {
  color: var(--nav-sidebar-active-text);
}

/* ========================================
   暗黑模式 - 分类区域和卡片全面适配
   ======================================== */
.dark-theme .nav-section,
.dark-mode .nav-section,
.theme-dark .nav-section,
.zibll-dark .nav-section,
.darking .nav-section,
[data-theme="dark"] .nav-section {
  background: var(--nav-card-bg);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-section-tab,
.dark-mode .nav-section-tab,
.theme-dark .nav-section-tab,
.zibll-dark .nav-section-tab,
.darking .nav-section-tab,
[data-theme="dark"] .nav-section-tab {
  color: var(--nav-text-secondary);
  background: var(--nav-bg-secondary);
}

.dark-theme .nav-section-tab:hover,
.dark-mode .nav-section-tab:hover,
.theme-dark .nav-section-tab:hover,
.zibll-dark .nav-section-tab:hover,
.darking .nav-section-tab:hover,
[data-theme="dark"] .nav-section-tab:hover {
  color: var(--nav-text-primary);
  background: rgba(255,255,255,0.08);
}

.dark-theme .nav-section-tab.active,
.dark-mode .nav-section-tab.active,
.theme-dark .nav-section-tab.active,
.zibll-dark .nav-section-tab.active,
.darking .nav-section-tab.active,
[data-theme="dark"] .nav-section-tab.active {
  color: #303030;
  background: var(--nav-tab-active-color, #ffc107);
}

.dark-theme .nav-section-more,
.dark-mode .nav-section-more,
.theme-dark .nav-section-more,
.zibll-dark .nav-section-more,
.darking .nav-section-more,
[data-theme="dark"] .nav-section-more {
  color: var(--nav-text-secondary);
  background: transparent;
}

.dark-theme .nav-section-main-cat,
.dark-mode .nav-section-main-cat,
.theme-dark .nav-section-main-cat,
.zibll-dark .nav-section-main-cat,
.darking .nav-section-main-cat,
[data-theme="dark"] .nav-section-main-cat {
  color: var(--nav-text-primary);
}

.dark-theme .nav-section-pipe,
.dark-mode .nav-section-pipe,
.theme-dark .nav-section-pipe,
.zibll-dark .nav-section-pipe,
.darking .nav-section-pipe,
[data-theme="dark"] .nav-section-pipe {
  color: var(--nav-text-muted);
}

/* 网址卡片暗黑模式 */
.dark-theme .nav-card,
.dark-mode .nav-card,
.theme-dark .nav-card,
.zibll-dark .nav-card,
.darking .nav-card,
[data-theme="dark"] .nav-card {
  background: var(--nav-card-bg);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-card:hover,
.dark-mode .nav-card:hover,
.theme-dark .nav-card:hover,
.zibll-dark .nav-card:hover,
.darking .nav-card:hover,
[data-theme="dark"] .nav-card:hover {
  background: var(--nav-card-bg);
  border-color: var(--card-accent-color, #409eff);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.dark-theme .nav-card-title,
.dark-mode .nav-card-title,
.theme-dark .nav-card-title,
.zibll-dark .nav-card-title,
.darking .nav-card-title,
[data-theme="dark"] .nav-card-title {
  color: var(--nav-text-primary);
}

.dark-theme .nav-card-desc,
.dark-mode .nav-card-desc,
.theme-dark .nav-card-desc,
.zibll-dark .nav-card-desc,
.darking .nav-card-desc,
[data-theme="dark"] .nav-card-desc {
  color: var(--nav-text-secondary);
}

/* 推荐区暗黑模式 */
.dark-theme .nav-recommend-section,
.dark-mode .nav-recommend-section,
.theme-dark .nav-recommend-section,
.zibll-dark .nav-recommend-section,
.darking .nav-recommend-section,
[data-theme="dark"] .nav-recommend-section {
  background: var(--nav-card-bg);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-recommend-cats,
.dark-mode .nav-recommend-cats,
.theme-dark .nav-recommend-cats,
.zibll-dark .nav-recommend-cats,
.darking .nav-recommend-cats,
[data-theme="dark"] .nav-recommend-cats {
  border-bottom-color: var(--nav-card-border);
}

.dark-theme .nav-recommend-cat,
.dark-mode .nav-recommend-cat,
.theme-dark .nav-recommend-cat,
.zibll-dark .nav-recommend-cat,
.darking .nav-recommend-cat,
[data-theme="dark"] .nav-recommend-cat {
  color: var(--nav-text-secondary);
  background: transparent;
}

.dark-theme .nav-recommend-cat:hover,
.dark-mode .nav-recommend-cat:hover,
.theme-dark .nav-recommend-cat:hover,
.zibll-dark .nav-recommend-cat:hover,
.darking .nav-recommend-cat:hover,
[data-theme="dark"] .nav-recommend-cat:hover {
  color: var(--nav-text-primary);
  background: rgba(255,255,255,0.06);
}

.dark-theme .nav-recommend-cat.active,
.dark-mode .nav-recommend-cat.active,
.theme-dark .nav-recommend-cat.active,
.zibll-dark .nav-recommend-cat.active,
.darking .nav-recommend-cat.active,
[data-theme="dark"] .nav-recommend-cat.active {
  color: #303030;
  background: var(--nav-tab-active-color, #ffc107);
}

.dark-theme .nav-recommend-cat-add,
.dark-mode .nav-recommend-cat-add,
.theme-dark .nav-recommend-cat-add,
.zibll-dark .nav-recommend-cat-add,
.darking .nav-recommend-cat-add,
[data-theme="dark"] .nav-recommend-cat-add {
  color: var(--nav-text-secondary);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-recommend-cat-add:hover,
.dark-mode .nav-recommend-cat-add:hover,
.theme-dark .nav-recommend-cat-add:hover,
.zibll-dark .nav-recommend-cat-add:hover,
.darking .nav-recommend-cat-add:hover,
[data-theme="dark"] .nav-recommend-cat-add:hover {
  color: var(--nav-text-primary);
  background: rgba(255,255,255,0.08);
}

.dark-theme .nav-recommend-item,
.dark-mode .nav-recommend-item,
.theme-dark .nav-recommend-item,
.zibll-dark .nav-recommend-item,
.darking .nav-recommend-item,
[data-theme="dark"] .nav-recommend-item {
  background: var(--nav-bg-secondary);
  border-color: var(--nav-card-border);
}

.dark-theme .nav-recommend-item:hover,
.dark-mode .nav-recommend-item:hover,
.theme-dark .nav-recommend-item:hover,
.zibll-dark .nav-recommend-item:hover,
.darking .nav-recommend-item:hover,
[data-theme="dark"] .nav-recommend-item:hover {
  background: var(--nav-bg-secondary);
}

.dark-theme .nav-recommend-item .ri-name,
.dark-mode .nav-recommend-item .ri-name,
.theme-dark .nav-recommend-item .ri-name,
.zibll-dark .nav-recommend-item .ri-name,
.darking .nav-recommend-item .ri-name,
[data-theme="dark"] .nav-recommend-item .ri-name {
  color: var(--nav-text-primary);
}

.dark-theme .nav-recommend-item .ri-desc,
.dark-mode .nav-recommend-item .ri-desc,
.theme-dark .nav-recommend-item .ri-desc,
.zibll-dark .nav-recommend-item .ri-desc,
.darking .nav-recommend-item .ri-desc,
[data-theme="dark"] .nav-recommend-item .ri-desc {
  color: var(--nav-text-secondary);
}

/* 用户链接操作按钮暗黑模式 */
.dark-theme .user-link-action-btn,
.dark-mode .user-link-action-btn,
.theme-dark .user-link-action-btn,
.zibll-dark .user-link-action-btn,
.darking .user-link-action-btn,
[data-theme="dark"] .user-link-action-btn {
  background: rgba(0,0,0,0.3);
  color: #f0f0f0;
}

.dark-theme .user-link-action-btn.edit:hover,
.dark-mode .user-link-action-btn.edit:hover,
.theme-dark .user-link-action-btn.edit:hover,
.zibll-dark .user-link-action-btn.edit:hover,
.darking .user-link-action-btn.edit:hover,
[data-theme="dark"] .user-link-action-btn.edit:hover {
  background: #409eff;
}

.dark-theme .user-link-action-btn.delete:hover,
.dark-mode .user-link-action-btn.delete:hover,
.theme-dark .user-link-action-btn.delete:hover,
.zibll-dark .user-link-action-btn.delete:hover,
.darking .user-link-action-btn.delete:hover,
[data-theme="dark"] .user-link-action-btn.delete:hover {
  background: #f56c6c;
}

/* 弹窗暗黑模式 */
.dark-theme .zib-nav-modal-mask,
.dark-mode .zib-nav-modal-mask,
.theme-dark .zib-nav-modal-mask,
.zibll-dark .zib-nav-modal-mask,
.darking .zib-nav-modal-mask,
[data-theme="dark"] .zib-nav-modal-mask {
  background: rgba(0,0,0,0.75);
}

.dark-theme .zib-nav-modal,
.dark-mode .zib-nav-modal,
.theme-dark .zib-nav-modal,
.zibll-dark .zib-nav-modal,
.darking .zib-nav-modal,
[data-theme="dark"] .zib-nav-modal {
  background: #1f2937;
  color: #e5e7eb;
  border: 1px solid #374151;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.dark-theme .zib-nav-modal-header,
.dark-mode .zib-nav-modal-header,
.theme-dark .zib-nav-modal-header,
.zibll-dark .zib-nav-modal-header,
.darking .zib-nav-modal-header,
[data-theme="dark"] .zib-nav-modal-header {
  border-bottom-color: #374151;
  background: #1f2937;
}

.dark-theme .zib-nav-modal-title,
.dark-mode .zib-nav-modal-title,
.theme-dark .zib-nav-modal-title,
.zibll-dark .zib-nav-modal-title,
.darking .zib-nav-modal-title,
[data-theme="dark"] .zib-nav-modal-title {
  color: #f3f4f6;
}

.dark-theme .zib-nav-modal-close,
.dark-mode .zib-nav-modal-close,
.theme-dark .zib-nav-modal-close,
.zibll-dark .zib-nav-modal-close,
.darking .zib-nav-modal-close,
[data-theme="dark"] .zib-nav-modal-close {
  color: #9ca3af;
}

.dark-theme .zib-nav-modal-close:hover,
.dark-mode .zib-nav-modal-close:hover,
.theme-dark .zib-nav-modal-close:hover,
.zibll-dark .zib-nav-modal-close:hover,
.darking .zib-nav-modal-close:hover,
[data-theme="dark"] .zib-nav-modal-close:hover {
  background: #374151;
  color: #f3f4f6;
}

.dark-theme .zib-nav-modal-body,
.dark-mode .zib-nav-modal-body,
.theme-dark .zib-nav-modal-body,
.zibll-dark .zib-nav-modal-body,
.darking .zib-nav-modal-body,
[data-theme="dark"] .zib-nav-modal-body {
  background: #1f2937;
}

.dark-theme .zib-nav-form-label,
.dark-mode .zib-nav-form-label,
.theme-dark .zib-nav-form-label,
.zibll-dark .zib-nav-form-label,
.darking .zib-nav-form-label,
[data-theme="dark"] .zib-nav-form-label {
  color: #d1d5db;
}

.dark-theme .zib-nav-form-input,
.dark-mode .zib-nav-form-input,
.theme-dark .zib-nav-form-input,
.zibll-dark .zib-nav-form-input,
.darking .zib-nav-form-input,
[data-theme="dark"] .zib-nav-form-input,
.dark-theme .zib-nav-form-textarea,
.dark-mode .zib-nav-form-textarea,
.theme-dark .zib-nav-form-textarea,
.zibll-dark .zib-nav-form-textarea,
.darking .zib-nav-form-textarea,
[data-theme="dark"] .zib-nav-form-textarea {
  background: #111827;
  border-color: #374151;
  color: #e5e7eb;
}

.dark-theme .zib-nav-form-input:focus,
.dark-mode .zib-nav-form-input:focus,
.theme-dark .zib-nav-form-input:focus,
.zibll-dark .zib-nav-form-input:focus,
.darking .zib-nav-form-input:focus,
[data-theme="dark"] .zib-nav-form-input:focus,
.dark-theme .zib-nav-form-textarea:focus,
.dark-mode .zib-nav-form-textarea:focus,
.theme-dark .zib-nav-form-textarea:focus,
.zibll-dark .zib-nav-form-textarea:focus,
.darking .zib-nav-form-textarea:focus,
[data-theme="dark"] .zib-nav-form-textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.dark-theme .zib-nav-form-input::placeholder,
.dark-mode .zib-nav-form-input::placeholder,
.theme-dark .zib-nav-form-input::placeholder,
.zibll-dark .zib-nav-form-input::placeholder,
.darking .zib-nav-form-input::placeholder,
[data-theme="dark"] .zib-nav-form-input::placeholder,
.dark-theme .zib-nav-form-textarea::placeholder,
.dark-mode .zib-nav-form-textarea::placeholder,
.theme-dark .zib-nav-form-textarea::placeholder,
.zibll-dark .zib-nav-form-textarea::placeholder,
.darking .zib-nav-form-textarea::placeholder,
[data-theme="dark"] .zib-nav-form-textarea::placeholder {
  color: #6b7280;
}

.dark-theme .zib-nav-modal-footer,
.dark-mode .zib-nav-modal-footer,
.theme-dark .zib-nav-modal-footer,
.zibll-dark .zib-nav-modal-footer,
.darking .zib-nav-modal-footer,
[data-theme="dark"] .zib-nav-modal-footer {
  border-top-color: #374151;
  background: #1f2937;
}

.dark-theme .zib-nav-btn-default,
.dark-mode .zib-nav-btn-default,
.theme-dark .zib-nav-btn-default,
.zibll-dark .zib-nav-btn-default,
.darking .zib-nav-btn-default,
[data-theme="dark"] .zib-nav-btn-default {
  background: #374151;
  border-color: #4b5563;
  color: #d1d5db;
}

.dark-theme .zib-nav-btn-default:hover,
.dark-mode .zib-nav-btn-default:hover,
.theme-dark .zib-nav-btn-default:hover,
.zibll-dark .zib-nav-btn-default:hover,
.darking .zib-nav-btn-default:hover,
[data-theme="dark"] .zib-nav-btn-default:hover {
  background: #4b5563;
  border-color: #6b7280;
  color: #f3f4f6;
}

/* 侧边栏暗黑模式 */
.dark-theme .nav-sidebar-item,
.dark-mode .nav-sidebar-item,
.theme-dark .nav-sidebar-item,
.zibll-dark .nav-sidebar-item,
.darking .nav-sidebar-item,
[data-theme="dark"] .nav-sidebar-item {
  color: var(--nav-text-secondary);
}

.dark-theme .nav-sidebar-item:hover,
.dark-mode .nav-sidebar-item:hover,
.theme-dark .nav-sidebar-item:hover,
.zibll-dark .nav-sidebar-item:hover,
.darking .nav-sidebar-item:hover,
[data-theme="dark"] .nav-sidebar-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--nav-text-primary);
}

.dark-theme .nav-sidebar-item.active,
.dark-mode .nav-sidebar-item.active,
.theme-dark .nav-sidebar-item.active,
.zibll-dark .nav-sidebar-item.active,
.darking .nav-sidebar-item.active,
[data-theme="dark"] .nav-sidebar-item.active {
  background: var(--nav-sidebar-active);
  color: var(--nav-sidebar-active-text);
}

.dark-theme .nav-cat-item,
.dark-mode .nav-cat-item,
.theme-dark .nav-cat-item,
.zibll-dark .nav-cat-item,
.darking .nav-cat-item,
[data-theme="dark"] .nav-cat-item {
  color: var(--nav-text-secondary);
}

.dark-theme .nav-cat-item:hover,
.dark-mode .nav-cat-item:hover,
.theme-dark .nav-cat-item:hover,
.zibll-dark .nav-cat-item:hover,
.darking .nav-cat-item:hover,
[data-theme="dark"] .nav-cat-item:hover {
  background: rgba(255,255,255,0.06);
  color: var(--nav-text-primary);
}

.dark-theme .nav-cat-item.active,
.dark-mode .nav-cat-item.active,
.theme-dark .nav-cat-item.active,
.zibll-dark .nav-cat-item.active,
.darking .nav-cat-item.active,
[data-theme="dark"] .nav-cat-item.active {
  background: var(--nav-sidebar-active);
  color: var(--nav-text-primary);
}

.dark-theme .nav-sidebar-count,
.dark-mode .nav-sidebar-count,
.theme-dark .nav-sidebar-count,
.zibll-dark .nav-sidebar-count,
.darking .nav-sidebar-count,
[data-theme="dark"] .nav-sidebar-count {
  background: rgba(255,255,255,0.08);
  color: var(--nav-text-muted);
}

.dark-theme .nav-sidebar-item.active .nav-sidebar-count,
.dark-mode .nav-sidebar-item.active .nav-sidebar-count,
.theme-dark .nav-sidebar-item.active .nav-sidebar-count,
.zibll-dark .nav-sidebar-item.active .nav-sidebar-count,
.darking .nav-sidebar-item.active .nav-sidebar-count,
[data-theme="dark"] .nav-sidebar-item.active .nav-sidebar-count {
  background: rgba(64,158,255,0.2);
  color: var(--nav-sidebar-active-text);
}

/* 热门排行暗黑模式 */
.dark-theme .nav-sidebar-hot-title,
.dark-mode .nav-sidebar-hot-title,
.theme-dark .nav-sidebar-hot-title,
.zibll-dark .nav-sidebar-hot-title,
.darking .nav-sidebar-hot-title,
[data-theme="dark"] .nav-sidebar-hot-title {
  color: var(--nav-text-primary);
}

.dark-theme .nav-sidebar-hot-item,
.dark-mode .nav-sidebar-hot-item,
.theme-dark .nav-sidebar-hot-item,
.zibll-dark .nav-sidebar-hot-item,
.darking .nav-sidebar-hot-item,
[data-theme="dark"] .nav-sidebar-hot-item {
  color: var(--nav-text-secondary);
  border-bottom-color: var(--nav-card-border);
}

.dark-theme .nav-sidebar-hot-item:hover,
.dark-mode .nav-sidebar-hot-item:hover,
.theme-dark .nav-sidebar-hot-item:hover,
.zibll-dark .nav-sidebar-hot-item:hover,
.darking .nav-sidebar-hot-item:hover,
[data-theme="dark"] .nav-sidebar-hot-item:hover {
  color: var(--nav-text-primary);
  background: rgba(255,255,255,0.04);
}

.dark-theme .hot-rank,
.dark-mode .hot-rank,
.theme-dark .hot-rank,
.zibll-dark .hot-rank,
.darking .hot-rank,
[data-theme="dark"] .hot-rank {
  background: rgba(255,255,255,0.08);
  color: var(--nav-text-muted);
}

.dark-theme .hot-rank.top1,
.dark-mode .hot-rank.top1,
.theme-dark .hot-rank.top1,
.zibll-dark .hot-rank.top1,
.darking .hot-rank.top1,
[data-theme="dark"] .hot-rank.top1 {
  background: #f56c6c;
  color: #fff;
}

.dark-theme .hot-rank.top2,
.dark-mode .hot-rank.top2,
.theme-dark .hot-rank.top2,
.zibll-dark .hot-rank.top2,
.darking .hot-rank.top2,
[data-theme="dark"] .hot-rank.top2 {
  background: #e6a23c;
  color: #fff;
}

.dark-theme .hot-rank.top3,
.dark-mode .hot-rank.top3,
.theme-dark .hot-rank.top3,
.zibll-dark .hot-rank.top3,
.darking .hot-rank.top3,
[data-theme="dark"] .hot-rank.top3 {
  background: #67c23a;
  color: #fff;
}

/* 底部按钮暗黑模式 */
.dark-theme .nav-footer-submit .nav-submit-btn,
.dark-mode .nav-footer-submit .nav-submit-btn,
.theme-dark .nav-footer-submit .nav-submit-btn,
.zibll-dark .nav-footer-submit .nav-submit-btn,
.darking .nav-footer-submit .nav-submit-btn,
[data-theme="dark"] .nav-footer-submit .nav-submit-btn {
  background: var(--nav-tag-active-bg, #409eff);
  color: #fff;
}

/* 推荐区空状态暗黑模式 */
.dark-theme .nav-recommend-empty p,
.dark-mode .nav-recommend-empty p,
.theme-dark .nav-recommend-empty p,
.zibll-dark .nav-recommend-empty p,
.darking .nav-recommend-empty p,
[data-theme="dark"] .nav-recommend-empty p {
  color: var(--nav-text-muted);
}

/* 引擎切换Tab暗黑模式 */
.dark-theme .nav-engine-tab,
.dark-mode .nav-engine-tab,
.theme-dark .nav-engine-tab,
.zibll-dark .nav-engine-tab,
.darking .nav-engine-tab,
[data-theme="dark"] .nav-engine-tab {
  color: var(--nav-text-secondary);
}

.dark-theme .nav-engine-tab:hover,
.dark-mode .nav-engine-tab:hover,
.theme-dark .nav-engine-tab:hover,
.zibll-dark .nav-engine-tab:hover,
.darking .nav-engine-tab:hover,
[data-theme="dark"] .nav-engine-tab:hover {
  color: var(--nav-text-primary);
  background: rgba(255,255,255,0.08);
}

.dark-theme .nav-engine-tab.active,
.dark-mode .nav-engine-tab.active,
.theme-dark .nav-engine-tab.active,
.zibll-dark .nav-engine-tab.active,
.darking .nav-engine-tab.active,
[data-theme="dark"] .nav-engine-tab.active {
  color: #303030;
  background: var(--nav-tab-active-color, #ffc107);
}
