/* Navix Navigation Module Styles */
.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;
}
.nav-module * {
  box-sizing: border-box;
}
.nav-module {
  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: hidden;
}
.nav-module .app {
  display: flex;
  min-height: 100vh;
}
.nav-module .sidebar {
  width: 250px;
  background: linear-gradient(180deg, rgba(9, 14, 24, 0.95), rgba(10, 16, 28, 0.88));
  border-right: 1px solid var(--line);
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.02);
  overflow-y: auto;
}
.nav-module .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.nav-module .logo .planet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7cd0ff, #2b5cff 55%, #101a3a 100%);
  position: relative;
  box-shadow: 0 0 22px rgba(90, 167, 255, 0.45);
}
.nav-module .logo .planet::after {
  content: "";
  position: absolute;
  left: -7px;
  top: 12px;
  width: 42px;
  height: 12px;
  border: 2px solid rgba(130, 192, 255, 0.9);
  border-color: rgba(130, 192, 255, 0.9) transparent transparent transparent;
  border-radius: 50%;
  transform: rotate(-20deg);
}
.nav-module .nav-group {
  margin-top: 8px;
}
.nav-module .nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  color: #cfd8ef;
  text-decoration: none;
  margin: 6px 0;
  transition: 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}
.nav-module .nav-item:hover,
.nav-module .nav-item.active {
  background: linear-gradient(180deg, rgba(99, 126, 184, 0.22), rgba(55, 72, 108, 0.16));
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.nav-module .nav-item .icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  flex-shrink: 0;
}
.nav-module .sidebar-card {
  margin-top: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(22, 31, 52, 0.9), rgba(12, 18, 30, 0.92));
  border: 1px solid var(--line);
  padding: 18px 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nav-module .sidebar-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
}
.nav-module .sidebar-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.nav-module .astro {
  margin: 12px auto 14px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, #fdf7ff 0 4px, transparent 5px),
    radial-gradient(circle at 50% 45%, #6ab8ff 0, #1f4fb9 38%, #081022 72%);
  position: relative;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), inset -12px -12px 20px rgba(0, 0, 0, 0.35);
}
.nav-module .astro::before {
  content: "";
  position: absolute;
  inset: auto 10px 10px auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(180deg, #7fd0ff, #2a61ff);
  opacity: 0.85;
}
.nav-module .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  margin-top: 6px;
  padding: 11px 14px;
  border-radius: 12px;
  color: white;
  text-decoration: none;
  background: linear-gradient(90deg, #5e8cff, #7a5cff);
  box-shadow: 0 10px 30px rgba(94, 140, 255, 0.28);
  font-weight: 600;
  cursor: pointer;
  border: 0;
}
.nav-module .main {
  flex: 1;
  padding: 18px;
  min-width: 0;
}
.nav-module .topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: rgba(10, 16, 28, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  backdrop-filter: blur(14px);
}
.nav-module .top-left,
.nav-module .top-right {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}
.nav-module .pill {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-module .avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffd0b0, #7aa2ff);
  border: 2px solid rgba(255, 255, 255, 0.12);
  display: inline-block;
}
.nav-module .avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.12);
}
.nav-module .hero {
  margin-top: 14px;
  border-radius: 26px;
  background: #00000000;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
  min-height: 310px;
  padding: 42px 38px;
}
.nav-module .hero::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #9cc6ff 0%, #5a86ff 28%, #16306d 58%,
      rgba(5, 10, 20, 0.92) 72%);
  box-shadow: inset -28px -24px 40px rgba(0, 0, 0, 0.45);
  opacity: 0.95;
}
.nav-module .hero::before {
  content: "";
  position: absolute;
  right: 100px;
  top: 54px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 10px, transparent 12px);
  opacity: 0.12;
  box-shadow: 0 0 0 1px rgba(120, 170, 255, 0.12), 0 0 0 40px rgba(120, 170, 255, 0.03),
    0 0 0 90px rgba(120, 170, 255, 0.02);
}
.nav-module .hero h1 {
  margin: 0;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: -1px;
  position: relative;
  z-index: 1;
}
.nav-module .hero h1 .blue {
  color: #5ca8ff;
}
.nav-module .hero h1 .purple {
  color: #b96cff;
}
.nav-module .hero p {
  margin: 14px 0 0;
  color: #b4bfd8;
  font-size: 18px;
  position: relative;
  z-index: 1;
}
.nav-module .search {
  margin-top: 28px;
  max-width: 680px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(138, 179, 255, 0.48);
  border-radius: 16px;
  padding: 16px 18px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}
.nav-module .search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 16px;
}
.nav-module .search input::placeholder {
  color: #a8b1c9;
}
.nav-module .hot-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #99a6c2;
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.nav-module .hot-tags span {
  cursor: pointer;
}
.nav-module .hot-tags span:hover {
  color: #dfe6f8;
}
.nav-module .content-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 14px;
  align-items: start;
}
.nav-module .panel {
  background: linear-gradient(180deg, rgba(15, 22, 36, 0.92), rgba(11, 17, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nav-module .quick-links {
  padding: 18px;
}
.nav-module .quick-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}
.nav-module .quick {
  text-align: center;
  padding: 14px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.nav-module .quick .qicon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
}
.nav-module .quick div {
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .section {
  margin-top: 14px;
  padding: 18px;
}
.nav-module .section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.nav-module .section-head h3 {
  margin: 0;
  font-size: 18px;
}
.nav-module .tabs {
  display: flex;
  gap: 18px;
  color: #9ca7c4;
  font-size: 14px;
}
.nav-module .tabs span {
  cursor: pointer;
}
.nav-module .tabs .on {
  color: white;
  position: relative;
}
.nav-module .tabs .on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6aa8ff, #8c67ff);
}
.nav-module .cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.nav-module .card {
  min-height: 92px;
  padding: 16px;
  border-radius: 16px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-module .link-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  flex-shrink: 0;
}
.nav-module .link-icon-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: contain;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
}
.nav-module .card-body {
  flex: 1;
  min-width: 0;
}
.nav-module .card-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}
.nav-module .card-body span {
  color: var(--muted);
  font-size: 13px;
  display: block;
}
.nav-module .topics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.nav-module .topic {
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  display: block;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.nav-module .topic .thumb {
  height: 120px;
  background: linear-gradient(135deg, #1d2a47, #0f1728);
  position: relative;
}
.nav-module .topic .body {
  padding: 14px;
}
.nav-module .topic .body h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.nav-module .topic .body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.nav-module .right-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.nav-module .side-box {
  padding: 16px;
}
.nav-module .side-box h3 {
  margin: 0 0 14px;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-module .rank {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #dfe6f8;
  font-size: 14px;
}
.nav-module .rank:last-child {
  border-bottom: 0;
}
.nav-module .rank .rank-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.nav-module .rank .rank-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .badge {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  background: #556;
  flex-shrink: 0;
}
.nav-module .footer {
  text-align: center;
  color: #8090b0;
  padding: 18px 0 8px;
  font-size: 13px;
}

/* Topic Modal - bottom stick, top gap 90px, bottom-up animation */
.nav-module .topic-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: flex-end;
  justify-content: stretch;
  backdrop-filter: blur(4px);
  transition: background 0.35s ease;
}
.nav-module .topic-modal-overlay.fullscreen {
  background: rgba(0, 0, 0, 0.88);
}
.nav-module .topic-modal-overlay.fullscreen .topic-modal {
  height: 100vh;
  border-radius: 0;
}
.nav-module .topic-modal {
  background: linear-gradient(355deg, #000000, #28313e);
  border: 0;
  width: 100%;
  height: calc(100vh - 90px);
  overflow: hidden;
  box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 0.68, 0, 1), height 0.35s ease, border-radius 0.35s ease;
}
.nav-module .topic-modal-overlay.open .topic-modal {
  transform: translateY(0);
}
.nav-module .topic-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-module .topic-modal-header h3 {
  margin: 0;
  font-size: 17px;
  color: var(--text);
  font-weight: 600;
}
.nav-module .topic-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #bcc9e6;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.nav-module .topic-modal-close:hover {
  background: rgba(255, 70, 70, 0.25);
  color: #ff5e5e;
}
.nav-module .topic-modal-body {
  padding: 18px 24px 24px;
  overflow-y: auto;
  height: calc(100vh - 90px - 60px);
}

/* Topic items - Default mode */
.nav-module .topic-grid-default {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.nav-module .topic-item-default {
  display: flex;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
  cursor: pointer;
  min-height: 130px;
}
.nav-module .topic-item-default:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-module .topic-item-default .ti-cover {
  width: 100px;
  min-height: 130px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #1d2a47, #0f1728);
  background-size: cover;
  background-position: center;
}
.nav-module .topic-item-default .ti-body {
  flex: 1;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nav-module .topic-item-default .ti-title {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .topic-item-default .ti-tagline {
  display: inline-block;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5e8cff, #7a5cff);
  color: #fff;
  margin-bottom: auto;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}
.nav-module .topic-item-default .ti-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

/* Topic items - Card mode */
.nav-module .topic-grid-card {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}
.nav-module .topic-item-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: var(--text);
  transition: 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.nav-module .topic-item-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-module .topic-item-card .ti-cover {
  height: 80px;
  background: linear-gradient(135deg, #1d2a47, #0f1728);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}
.nav-module .topic-item-card .ti-body {
  padding: 10px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.nav-module .topic-item-card .ti-title {
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .topic-item-card .ti-tagline {
  display: inline-block;
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #5e8cff, #7a5cff);
  color: #fff;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 1200px) {
  .nav-module .content-grid { grid-template-columns: 1fr; }
  .nav-module .right-col { order: 2; }
  .nav-module .topics { grid-template-columns: repeat(2, 1fr); }
  .nav-module .cards { grid-template-columns: repeat(2, 1fr); }
  .nav-module .quick-row { grid-template-columns: repeat(4, 1fr); }
  .nav-module .topic-grid-default { grid-template-columns: repeat(2, 1fr); }
  .nav-module .topic-grid-card { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .nav-module .sidebar { display: none; }
  .nav-module .hero h1 { font-size: 38px; }
  .nav-module .hero { min-height: auto; padding: 28px 22px; }
  .nav-module .quick-row { grid-template-columns: repeat(2, 1fr); }
  .nav-module .topics { grid-template-columns: 1fr; }
  .nav-module .cards { grid-template-columns: 1fr; }
  .nav-module .topbar { flex-direction: column; height: auto; padding: 12px 14px; gap: 8px; }
  .nav-module .topic-grid-default { grid-template-columns: 1fr; }
  .nav-module .topic-grid-card { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .nav-module .topic-grid-card { grid-template-columns: repeat(2, 1fr); }
  .nav-module .topic-item-default .ti-cover { width: 80px; min-height: 110px; }
}

/* Top icon buttons (notification, message) */
.nav-module .top-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
  text-decoration: none;
  color: #bcc9e6;
}
.nav-module .top-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}
.nav-module .top-icon-btn .top-badge {
  position: absolute;
  top: -2px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #ff4757;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(255, 71, 87, 0.4);
}
.nav-module .avatar-img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}

/* Favorites folder */
.nav-module .fav-folder {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-module .fav-folder:last-child {
  border-bottom: 0;
}
.nav-module .fav-folder-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 0;
  cursor: pointer;
  user-select: none;
  transition: 0.2s;
}
.nav-module .fav-folder-head:hover {
  color: var(--text);
}
.nav-module .fav-folder-icon {
  font-size: 10px;
  color: var(--muted);
  width: 14px;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-module .fav-folder-head.open .fav-folder-icon {
  transform: rotate(90deg);
}
.nav-module .fav-folder-name {
  flex: 1;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .fav-folder-count {
  font-size: 11px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 8px;
  border-radius: 999px;
}
.nav-module .fav-folder-body {
  padding: 0 0 6px 20px;
}
.nav-module .fav-item {
  display: block;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  cursor: pointer;
  transition: 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .fav-item:hover {
  color: var(--blue);
}
/* Personal Nav Panel */
.nav-module section.panel.personal-nav-panel {
  min-height: 450px;
}

/* === 侧栏滚动：nav-group 最大高度 + 悬浮显示滚动条 === */
.nav-module .nav-group {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-module .nav-group::-webkit-scrollbar { width: 0; }
.nav-module .nav-group:hover {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}
.nav-module .nav-group:hover::-webkit-scrollbar { width: 4px; }
.nav-module .nav-group:hover::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }
.nav-module .theme-light .nav-group:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,.15); }
/* 侧栏底部卡片自下而上排列 */
.nav-module .sidebar { display: flex; flex-direction: column; }
.nav-module .sidebar .logo { flex-shrink: 0; }
.nav-module .sidebar .sidebar-card { flex-shrink: 0; }

/* === 小站动态：带首图缩略图 === */
.nav-module .updates-item {
  display: flex; flex-direction: row-reverse; gap: 10px; padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none;
  color: var(--text); transition: .15s; cursor: pointer;
}
.nav-module .updates-item:last-child { border-bottom: 0; }
.nav-module .updates-item:hover { opacity: .8; }
.nav-module .updates-thumb {
  width: 48px; height: 48px; border-radius: 8px; flex-shrink: 0;
  background-image: linear-gradient(135deg,#1d2a47,#0f1728);
  background-size: cover !important; background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}
.nav-module .updates-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nav-module .updates-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.nav-module .updates-title {
  font-size: 13px; overflow: hidden;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  margin-bottom: 3px; line-height: 1.4;
}
.nav-module .updates-meta { font-size: 11px; color: var(--muted); }
.theme-light .updates-item { border-bottom-color: var(--line); }
.theme-light .updates-thumb { background-image: linear-gradient(135deg,#e2e8f0,#cbd5e1); }

/* ==================== 补充样式（重写版新增） ==================== */

/* Logo 图片 */
.nav-module .logo-img { max-height: 28px; width: auto; vertical-align: middle; }

/* 分割线板块 */
.nav-module .nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 4px; }

/* 板块背景图 / 隐藏标题 */
.nav-module section.has-bg-img { min-height: 450px; }
.nav-module section.section-featured { background: linear-gradient(180deg, rgba(15,22,36,.92), rgba(11,17,28,.95)); }

/* 搜索下拉 */
.nav-module .search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: rgba(14, 20, 34, .98); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: var(--shadow); z-index: 50; overflow: hidden;
}
.nav-module .sd-section { padding: 14px 16px; }
.nav-module .sd-section-title { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.nav-module .sd-engines { display: flex; flex-direction: column; gap: 4px; }
.nav-module .sd-engine {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px;
}
.nav-module .sd-engine:hover { background: rgba(255,255,255,.06); }
.nav-module .sd-engine img { width: 20px; height: 20px; border-radius: 4px; }

/* 查看更多 */
.nav-module .card-more {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--blue); font-size: 13px; cursor: pointer; min-height: 92px;
}

/* 个人导航面板 */
.nav-module .personal-nav-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.nav-module .personal-nav-header h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.nav-module .personal-nav-actions { display: flex; gap: 8px; }
.nav-module .personal-nav-actions button {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.nav-module .personal-nav-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nav-module .pn-cat {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--muted);
}
.nav-module .pn-cat.on { color: #fff; background: linear-gradient(90deg, #5e8cff, #7a5cff); border-color: transparent; }
.nav-module .personal-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nav-module .pn-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  text-decoration: none; color: var(--text); cursor: pointer;
}
.nav-module .pn-card .pn-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.nav-module .pn-card .pn-body { min-width: 0; }
.nav-module .pn-card .pn-body strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-module .pn-card .pn-body span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-module .personal-nav-empty { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }
.nav-module .pn-card.dragging { opacity: .4; }
.nav-module .pn-card.drag-over { border-color: #5e8cff; }

@media (max-width: 1200px) { .nav-module .personal-nav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nav-module .personal-nav-grid { grid-template-columns: 1fr; } }

/* ==================== 亮色主题 ==================== */
.nav-module.theme-light {
  --bg: #f5f7fb; --bg2: #eef1f6; --panel: #ffffff; --panel2: #ffffff;
  --line: rgba(15, 23, 42, 0.08); --text: #1a2535; --muted: #6b7a90;
  background: radial-gradient(circle at 80% 12%, rgba(90, 167, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #eef2f8 0%, #f7f9fc 100%);
}
.nav-module.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,253,.85));
  border-right: 1px solid var(--line);
}
.nav-module.theme-light .nav-item { color: #3a4a63; }
.nav-module.theme-light .nav-item:hover, .nav-module.theme-light .nav-item.active {
  background: #eef3fb; border-color: rgba(15,23,42,.08);
}
.nav-module.theme-light .nav-item .icon { background: rgba(15,23,42,.08); color: #3a4a63; }
.nav-module.theme-light .topbar { background: rgba(255,255,255,.7); border-color: var(--line); }
.nav-module.theme-light .panel {
  background: #fff; border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.nav-module.theme-light .card, .nav-module.theme-light .topic, .nav-module.theme-light .quick,
.nav-module.theme-light .pn-card { background: #f7f9fc; border-color: var(--line); }
.nav-module.theme-light .hero h1 { color: #1a2535; }
.nav-module.theme-light .hero p { color: #5a6a7d; }
.nav-module.theme-light .hero::after { opacity: .18; }
.nav-module.theme-light .search { background: #fff; border-color: rgba(90,140,255,.3); }
.nav-module.theme-light .search input { color: #1a2535; }
.nav-module.theme-light .search input::placeholder { color: #9aa4b4; }
.nav-module.theme-light .hot-tags { color: #7a8798; }
.nav-module.theme-light .hot-tags span:hover { color: #2a3749; }
.nav-module.theme-light .card-body span, .nav-module.theme-light .topic .body p,
.nav-module.theme-light .quick div { color: #7a8798; }
.nav-module.theme-light .side-box h3, .nav-module.theme-light .section-head h3 { color: #1a2535; }
.nav-module.theme-light .rank { color: #2a3749; border-bottom-color: var(--line); }
.nav-module.theme-light .search-dropdown { background: #fff; border-color: var(--line); }
.nav-module.theme-light .sd-engine { color: #1a2535; }
.nav-module.theme-light .sd-engine:hover { background: #f0f4ff; }
.nav-module.theme-light .footer { color: #8a97a9; }
.nav-module.theme-light .pn-cat { background: #f0f4ff; border-color: var(--line); color: #5a6a7d; }
.nav-module.theme-light .topic-modal { background: #fff; }
.nav-module.theme-light .topic-modal-header h3 { color: #1a2535; }
.nav-module.theme-light .topic-item-default, .nav-module.theme-light .topic-item-card {
  background: #f7f9fc; border-color: var(--line); color: #1a2535;
}
.nav-module.theme-light .topic-item-default .ti-desc { color: #7a8798; }

/* ==================== 补充样式（重写版新增） ==================== */

/* Logo 图片 */
.nav-module .logo-img { max-height: 28px; width: auto; vertical-align: middle; }

/* 分割线板块 */
.nav-module .nav-divider { height: 1px; background: rgba(255,255,255,.08); margin: 10px 4px; }

/* 板块背景图 / 隐藏标题 */
.nav-module section.has-bg-img { min-height: 450px; }
.nav-module section.section-featured { background: linear-gradient(180deg, rgba(15,22,36,.92), rgba(11,17,28,.95)); }

/* 搜索下拉 */
.nav-module .search-dropdown {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: rgba(14, 20, 34, .98); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; box-shadow: var(--shadow); z-index: 50; overflow: hidden;
}
.nav-module .sd-section { padding: 14px 16px; }
.nav-module .sd-section-title { color: var(--muted); font-size: 12px; margin-bottom: 10px; }
.nav-module .sd-engines { display: flex; flex-direction: column; gap: 4px; }
.nav-module .sd-engine {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 10px; text-decoration: none; color: var(--text); font-size: 14px;
}
.nav-module .sd-engine:hover { background: rgba(255,255,255,.06); }
.nav-module .sd-engine img { width: 20px; height: 20px; border-radius: 4px; }

/* 查看更多 */
.nav-module .card-more {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  color: var(--blue); font-size: 13px; cursor: pointer; min-height: 92px;
}

/* 个人导航面板 */
.nav-module .personal-nav-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px;
}
.nav-module .personal-nav-header h3 { margin: 0; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.nav-module .personal-nav-actions { display: flex; gap: 8px; }
.nav-module .personal-nav-actions button {
  display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px;
  border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04);
  color: var(--text); font-size: 13px; cursor: pointer;
}
.nav-module .personal-nav-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.nav-module .pn-cat {
  padding: 6px 14px; border-radius: 999px; cursor: pointer; font-size: 13px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--muted);
}
.nav-module .pn-cat.on { color: #fff; background: linear-gradient(90deg, #5e8cff, #7a5cff); border-color: transparent; }
.nav-module .personal-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.nav-module .pn-card {
  display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06);
  text-decoration: none; color: var(--text); cursor: pointer;
}
.nav-module .pn-card .pn-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex-shrink: 0; }
.nav-module .pn-card .pn-body { min-width: 0; }
.nav-module .pn-card .pn-body strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-module .pn-card .pn-body span { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-module .personal-nav-empty { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }
.nav-module .pn-card.dragging { opacity: .4; }
.nav-module .pn-card.drag-over { border-color: #5e8cff; }

@media (max-width: 1200px) { .nav-module .personal-nav-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .nav-module .personal-nav-grid { grid-template-columns: 1fr; } }

/* ==================== 亮色主题 ==================== */
.nav-module.theme-light {
  --bg: #f5f7fb; --bg2: #eef1f6; --panel: #ffffff; --panel2: #ffffff;
  --line: rgba(15, 23, 42, 0.08); --text: #1a2535; --muted: #6b7a90;
  background: radial-gradient(circle at 80% 12%, rgba(90, 167, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #eef2f8 0%, #f7f9fc 100%);
}
.nav-module.theme-light .sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(248,250,253,.85));
  border-right: 1px solid var(--line);
}
.nav-module.theme-light .nav-item { color: #3a4a63; }
.nav-module.theme-light .nav-item:hover, .nav-module.theme-light .nav-item.active {
  background: #eef3fb; border-color: rgba(15,23,42,.08);
}
.nav-module.theme-light .nav-item .icon { background: rgba(15,23,42,.08); color: #3a4a63; }
.nav-module.theme-light .topbar { background: rgba(255,255,255,.7); border-color: var(--line); }
.nav-module.theme-light .panel {
  background: #fff; border-color: var(--line);
  box-shadow: 0 10px 30px rgba(15,23,42,.06);
}
.nav-module.theme-light .card, .nav-module.theme-light .topic, .nav-module.theme-light .quick,
.nav-module.theme-light .pn-card { background: #f7f9fc; border-color: var(--line); }
.nav-module.theme-light .hero h1 { color: #1a2535; }
.nav-module.theme-light .hero p { color: #5a6a7d; }
.nav-module.theme-light .hero::after { opacity: .18; }
.nav-module.theme-light .search { background: #fff; border-color: rgba(90,140,255,.3); }
.nav-module.theme-light .search input { color: #1a2535; }
.nav-module.theme-light .search input::placeholder { color: #9aa4b4; }
.nav-module.theme-light .hot-tags { color: #7a8798; }
.nav-module.theme-light .hot-tags span:hover { color: #2a3749; }
.nav-module.theme-light .card-body span, .nav-module.theme-light .topic .body p,
.nav-module.theme-light .quick div { color: #7a8798; }
.nav-module.theme-light .side-box h3, .nav-module.theme-light .section-head h3 { color: #1a2535; }
.nav-module.theme-light .rank { color: #2a3749; border-bottom-color: var(--line); }
.nav-module.theme-light .search-dropdown { background: #fff; border-color: var(--line); }
.nav-module.theme-light .sd-engine { color: #1a2535; }
.nav-module.theme-light .sd-engine:hover { background: #f0f4ff; }
.nav-module.theme-light .footer { color: #8a97a9; }
.nav-module.theme-light .pn-cat { background: #f0f4ff; border-color: var(--line); color: #5a6a7d; }
.nav-module.theme-light .topic-modal { background: #fff; }
.nav-module.theme-light .topic-modal-header h3 { color: #1a2535; }
.nav-module.theme-light .topic-item-default, .nav-module.theme-light .topic-item-card {
  background: #f7f9fc; border-color: var(--line); color: #1a2535;
}
.nav-module.theme-light .topic-item-default .ti-desc { color: #7a8798; }
