/* ============================================================
   navix-pc-page-nav-category — PC 网址导航分类独立页样式
   与主模块（navix-pc-page-nav）视觉一致，亮暗双主题
   ============================================================ */

.nav-module {
  --bg: #08101d;
  --bg2: #0c1526;
  --panel: rgba(17, 24, 39, 0.72);
  --panel2: rgba(12, 18, 30, 0.85);
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eefc;
  --muted: #9aa6c3;
  --blue: #5aa7ff;
  --purple: #b86cff;
  --cyan: #55d6ff;
  --gold: #f4b24d;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  margin-top: -68px; /* 程序顶栏已隐藏，模块上移 */
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 80% 12%, rgba(90, 167, 255, 0.22), transparent 18%),
    radial-gradient(circle at 70% 35%, rgba(184, 108, 255, 0.14), transparent 20%),
    radial-gradient(circle at 20% 0%, rgba(255, 255, 255, 0.06), transparent 28%),
    linear-gradient(180deg, #060b14 0%, #0a1220 100%);
  min-height: 100vh;
  overflow-x: clip;
}
.nav-module * {
  box-sizing: border-box;
}
.nav-module .app {
  min-height: 100vh;
}

/* ===== 顶栏 ===== */
.nav-module .cat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(9, 14, 24, 0.6);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-module .cat-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  transition: 0.2s;
}
.nav-module .cat-home-btn:hover {
  color: var(--blue);
  border-color: rgba(94, 140, 255, 0.4);
}
.nav-module .cat-logo-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

/* ===== 主区 ===== */
.nav-module .cat-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* 分类头部 */
.nav-module .cat-head {
  padding: 32px 8px 24px;
}
.nav-module .cat-head h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}
.nav-module .cat-desc {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  max-width: 640px;
}
.nav-module .cat-breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}
.nav-module .cat-breadcrumb a {
  color: var(--blue);
  text-decoration: none;
}
.nav-module .cat-breadcrumb a:hover {
  text-decoration: underline;
}

/* 网址网格 */
.nav-module .cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.nav-module .cat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(15 22 36 / 22%), rgb(11 17 28));
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
}
.nav-module .cat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(94, 140, 255, 0.35);
  background: linear-gradient(180deg, rgb(22 30 48 / 40%), rgb(13 20 32));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.nav-module .cat-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  font-size: 20px;
  color: var(--blue);
  overflow: hidden;
}
.nav-module .cat-card-icon .link-icon,
.nav-module .cat-card-icon .link-icon-img {
  width: 100%;
  height: 100%;
  display: block;
}
.nav-module .cat-card-icon .link-icon {
  background-size: cover;
  background-position: center;
}
.nav-module .cat-card-icon .link-icon-img {
  object-fit: cover;
  border-radius: 12px;
}
.nav-module .cat-card-body {
  min-width: 0;
  flex: 1;
}
.nav-module .cat-card-body strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .cat-card-body span {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 空状态 */
.nav-module .cat-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.nav-module .cat-empty i {
  font-size: 48px;
  display: block;
  margin-bottom: 16px;
  opacity: 0.4;
}
.nav-module .cat-empty h3 {
  font-size: 17px;
  margin: 0 0 20px;
  color: var(--text);
}
.nav-module .cat-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 12px;
  background: linear-gradient(90deg, #4285f4, #8b5cf6);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  box-shadow: 0 10px 30px rgba(66, 133, 244, 0.25);
}

/* 页脚 */
.nav-module .cat-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.nav-module .cat-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.nav-module .cat-footer a:hover {
  color: var(--blue);
}

/* ===== 亮色主题 ===== */
.nav-module.theme-light {
  --bg: #f0f2f5;
  --bg2: #e4e7ec;
  --panel: rgba(255, 255, 255, 0.75);
  --panel2: rgba(255, 255, 255, 0.9);
  --line: rgba(0, 0, 0, 0.08);
  --text: #1e293b;
  --muted: #64748b;
  --blue: #4285f4;
  --purple: #8b5cf6;
  --cyan: #06b6d4;
  --gold: #f59e0b;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #f0f2f5 0%, #e8ebf0 100%);
}
.nav-module.theme-light .cat-topbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: var(--line);
}
.nav-module.theme-light .cat-home-btn {
  background: rgba(0, 0, 0, 0.03);
  color: var(--muted);
}
.nav-module.theme-light .cat-card {
  background: rgb(255 255 255 / 80%);
  border-color: var(--line);
  color: var(--text);
}
.nav-module.theme-light .cat-card:hover {
  background: #fff;
  border-color: rgba(66, 133, 244, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.nav-module.theme-light .cat-card-icon {
  background: rgba(0, 0, 0, 0.04);
}
.nav-module.theme-light .cat-card-body strong {
  color: #1e293b;
}
.nav-module.theme-light .cat-card-body span {
  color: #64748b;
}
.nav-module.theme-light .cat-empty h3 {
  color: #1e293b;
}
.nav-module.theme-light .cat-footer {
  border-top-color: var(--line);
}
