/* ============================================================
   navix-pc-page-nav — PC 网址导航前台样式
   完整复刻老版（9eip.com_20260817_204653/module/pc/page/nav）
   所有规则限定在 .nav-module 作用域内，避免影响宿主页面
   ============================================================ */

.nav-module {
  --bg: #08101d;
  --bg2: #0c1526;
  margin-top: -68px; /* v1.0.8: 程序顶栏已隐藏，模块上移避免顶部空白 */
  --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: clip; /* v1.0.12 修复侧栏 sticky：hidden 会创建滚动容器导致 position:sticky 失效，clip 不创建滚动容器 */
}
.nav-module .app {
  display: flex;
  min-height: 100vh;
  position: relative;
}
.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;
  display: flex;
  flex-direction: column;
}
.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 .logo-img {
  max-height: 28px;
  width: auto;
  vertical-align: middle;
}
.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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.nav-module .nav-item .icon img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
}
.nav-module .nav-item .icon i {
  font-size: 16px;
  color: #fff;
}
.nav-module .nav-arrow {
  margin-left: auto;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.3s ease;
  font-size: 16px;
}
.nav-module .nav-item:hover .nav-arrow {
  opacity: 1;
  transform: translateX(0);
  animation: navArrowBreathe 2s ease-in-out infinite;
}
@keyframes navArrowBreathe {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(5px); }
}
.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 .nav-divider {
  height: 1px;
  margin: 8px 14px;
  background: var(--line);
  opacity: 0.4;
  pointer-events: none;
  user-select: none;
}
.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;
  position: relative;
  z-index: 1;
}
.nav-module .hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 460px;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center top;
}
.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);
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
}
.nav-module .user-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.nav-module .user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  min-width: 180px;
  background: #1a2332;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  z-index: 1000;
  display: none;
  overflow: hidden;
}
.nav-module .user-dropdown.show {
  display: block;
}
.nav-module .user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #d0daee;
  text-decoration: none;
  font-size: 14px;
  transition: 0.15s;
}
.nav-module .user-dropdown a:hover {
  background: rgba(94, 140, 255, 0.12);
  color: #fff;
}
.nav-module .user-dropdown a i {
  font-size: 16px;
  color: #8490b0;
}
.nav-module .dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 4px 8px;
}
.nav-module .hero {
  margin-top: 14px;
  border-radius: 26px;
  background: #00000000;
  overflow: visible;
  position: relative;
  min-height: 310px;
  padding: 42px 38px;
}
.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: #5cabff;
}
.nav-module .hero h1 .purple {
  color: #ff8042;
}
.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: 2px 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;
  padding: 0;
}
.nav-module .search input::placeholder {
  color: #a8b1c9;
}
.nav-module .search input#searchInput {
  height: 52px;
  box-sizing: border-box;
}
.nav-module .search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
}
.nav-module .search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: rgba(18, 26, 44, 0.97);
  border: 1px solid rgba(138, 179, 255, 0.3);
  border-radius: 16px;
  padding: 12px;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  max-height: 400px;
  overflow-y: auto;
}
.nav-module .sd-section {
  margin-bottom: 10px;
}
.nav-module .sd-section:last-child {
  margin-bottom: 0;
}
.nav-module .sd-section-title {
  font-size: 12px;
  color: #8391b0;
  font-weight: 600;
  margin-bottom: 8px;
  padding: 0 4px;
}
.nav-module .sd-engines {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.nav-module .sd-engine {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: 0.15s;
  cursor: pointer;
}
.nav-module .sd-engine:hover {
  background: rgba(99, 126, 184, 0.25);
}
.nav-module .sd-engine img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
.nav-module .sd-posts {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-module .sd-post {
  display: block;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  transition: 0.15s;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .sd-post:hover {
  background: rgba(99, 126, 184, 0.15);
}
.nav-module .sd-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.nav-module .sd-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-module .sd-col-title {
  font-size: 11px;
  color: #8391b0;
  font-weight: 600;
  padding: 2px 4px 4px;
}
.nav-module .hot-tags {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #99a6c2;
  font-size: 13px;
  position: relative;
  z-index: 0;
}
.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 .left-col {
  min-width: 0;
}
.nav-module .panel {
  background: linear-gradient(180deg, rgb(15 22 36 / 22%), rgb(11 17 28));
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 20px;
  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;
  scroll-margin-top: 80px;
}
.nav-module .section-featured {
  min-height: 450px;
}
.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 .section-head h3 img {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 4px;
}
.nav-module .section-head h3 i {
  margin-right: 4px;
  color: var(--blue);
}
.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 .link-icon i,
.nav-module .card i.remix-icon {
  width: 44px;
  height: 44px;
  font-size: 22px;
  display: grid;
  place-items: center;
  color: #bcc9e6;
  flex-shrink: 0;
}
.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: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.nav-module .topics-wrap {
  position: relative;
}
.nav-module .topics {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 8px;
  flex-wrap: nowrap;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}
.nav-module .topics::-webkit-scrollbar {
  display: none;
}
.nav-module .topic {
  flex: 0 0 auto;
  width: 230px;
  scroll-snap-align: start;
  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;
  background-size: cover;
  background-position: center;
}
.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 .hot-trends-wrap {
  max-height: 227px;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-module .hot-trends-wrap::-webkit-scrollbar {
  display: none;
}
.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;
}
.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 .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: 14px;
  color: #ffd400;
  width: 20px;
  flex-shrink: 0;
  text-align: center;
  transition: transform 0.2s;
}
.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: -webkit-box;
  padding: 6px 0;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: 0.15s;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  line-height: 1.4;
}
.nav-module .fav-item:hover {
  color: var(--blue);
}
.nav-module section.has-bg-img {
  position: relative;
  min-height: 450px;
  background: linear-gradient(180deg, rgba(8, 15, 29, 0) 0, rgba(8, 15, 29, 0.5) 350px, #0a121f 100%), var(--section-bg, none) center top/cover no-repeat;
}
.nav-module.theme-light section.has-bg-img {
  background: linear-gradient(180deg, rgba(240, 242, 245, 0) 0, rgba(240, 242, 245, 0.5) 350px, #e8ebf0 100%), var(--section-bg, none) center top/cover no-repeat;
}

/* ===== 搜索引擎设置模态框 ===== */
.nav-module .se-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.nav-module .se-modal {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  width: 520px;
  max-width: 92vw;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.nav-module .se-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-module .se-modal-header h3 {
  margin: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-module .se-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
  color: #bcc9e6;
  font-size: 16px;
  display: grid;
  place-items: center;
  transition: 0.2s;
  flex-shrink: 0;
}
.nav-module .se-modal-close:hover {
  background: rgba(255, 70, 70, 0.2);
  color: #ff5e5e;
}
.nav-module .se-modal-desc {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 20px 0;
  line-height: 1.6;
}
.nav-module .se-modal-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 20px 14px;
  min-height: 200px;
}
.nav-module .se-modal-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  transition: 0.15s;
  font-size: 14px;
  cursor: default;
  user-select: none;
}
.nav-module .se-modal-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.nav-module .se-modal-row.dragging {
  opacity: 0.4;
}
.nav-module .se-modal-row.drag-over {
  background: rgba(94, 140, 255, 0.12);
  border-radius: 10px;
}
.nav-module .se-modal-drag {
  cursor: grab;
  color: var(--muted);
  font-size: 16px;
  flex-shrink: 0;
  opacity: 0.3;
}
.nav-module .se-modal-row:hover .se-modal-drag {
  opacity: 0.7;
}
.nav-module .se-modal-cb {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  cursor: pointer;
  accent-color: #5e8cff;
  flex-shrink: 0;
}
.nav-module .se-modal-cb:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.nav-module .se-modal-icon {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  flex-shrink: 0;
  object-fit: contain;
}
.nav-module .se-modal-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-module .se-modal-badge {
  font-size: 9px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--muted);
  flex-shrink: 0;
}
.nav-module .se-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 12px 20px 18px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.nav-module .se-modal-actions button {
  padding: 8px 20px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.nav-module .se-btn-save {
  background: linear-gradient(90deg, #5e8cff, #7a5cff);
  color: #fff;
}
.nav-module .se-btn-save:hover {
  opacity: 0.85;
}
.nav-module .se-btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.nav-module .se-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.nav-module.theme-light .se-modal {
  background: #fff;
  border-color: var(--line);
}
.nav-module.theme-light .se-modal-row:hover {
  background: rgba(0, 0, 0, 0.03);
}
.nav-module.theme-light .se-modal-row.drag-over {
  background: rgba(66, 133, 244, 0.1);
}
.nav-module.theme-light .se-modal-cb {
  accent-color: #4285f4;
}
.nav-module.theme-light .se-btn-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}
.nav-module.theme-light .se-btn-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}
.nav-module.theme-light .se-modal-close {
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
}
.nav-module.theme-light .se-modal-close:hover {
  background: rgba(255, 70, 70, 0.15);
  color: #ef4444;
}
.nav-module.theme-light .se-modal-badge {
  background: rgba(0, 0, 0, 0.06);
  color: #94a3b8;
}

/* ===== 专题弹窗（底部上滑 + 双模式） ===== */
.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);
}
.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: 80px;
}
.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: 80px;
  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;
}
.nav-module .topic-grid-card {
  display: grid;
  grid-template-columns: repeat(6, 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: 200px;
  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;
}
.nav-module .topic-tag-group {
  margin-bottom: 16px;
}
.nav-module .topic-tag-group-title {
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  margin-bottom: 8px;
  color: var(--text);
}
.nav-module.theme-light .topic-tag-group-title {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}
.nav-module .topic-tag-nav {
  position: relative;
  margin-right: auto;
  margin-left: 12px;
  display: flex;
  align-items: center;
}
.nav-module .topic-tag-nav i.ri-list-check-2:hover {
  color: var(--blue) !important;
}
.nav-module .topic-tag-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 140px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  z-index: 100;
  max-height: 300px;
  overflow-y: auto;
}
.nav-module .topic-tag-dropdown div:hover {
  background: rgba(255, 255, 255, 0.08);
}
.nav-module.theme-light .topic-tag-dropdown {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}
.nav-module.theme-light .topic-tag-dropdown div:hover {
  background: rgba(0, 0, 0, 0.04);
}
.nav-module .topic-items-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px;
}

@media (max-width: 1520px) {
  .nav-module .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1200px) {
  .nav-module .content-grid {
    grid-template-columns: 1fr;
  }
  .nav-module .right-col {
    order: 2;
  }
  .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 .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;
  }
}

/* ===== 专题横向滚动按钮 ===== */
.nav-module .topics-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
  opacity: 0;
  font-size: 20px;
}
.nav-module .topics-scroll-left {
  left: -6px;
}
.nav-module .topics-scroll-right {
  right: -6px;
}
.nav-module .topics-wrap:hover .topics-scroll-btn {
  opacity: 1;
}
.nav-module .topics-scroll-btn:hover {
  background: var(--bg2);
}
.nav-module .topic.dragging {
  cursor: grabbing;
  user-select: none;
}

/* ===== 我的导航面板 ===== */
.nav-module .personal-nav-panel {
  padding: 24px;
  margin-top: 14px;
  min-height: 450px;
}
.nav-module .personal-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-module .personal-nav-header h3 {
  margin: 0;
  font-size: 20px;
}
.nav-module .personal-nav-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-module .personal-nav-actions button {
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
  white-space: nowrap;
}
.nav-module .personal-nav-actions button:hover {
  background: rgba(94, 140, 255, 0.15);
  border-color: rgba(94, 140, 255, 0.3);
}
.nav-module .personal-nav-cats {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.nav-module .pn-cat {
  padding: 6px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: 0.2s;
  border: 1px solid transparent;
}
.nav-module .pn-cat:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.nav-module .pn-cat.on {
  background: rgba(94, 140, 255, 0.2);
  color: #5e8cff;
  border-color: rgba(94, 140, 255, 0.3);
}
.nav-module .pn-cat-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-module .pn-cat-actions {
  position: absolute;
  right: -14px;
  top: -8px;
  display: none;
  gap: 2px;
  z-index: 2;
}
.nav-module .pn-manager-mode .pn-cat-actions {
  display: flex;
}
.nav-module .pn-cat-actions button {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  display: grid;
  place-items: center;
  padding: 0;
  background: var(--bg2);
  color: var(--muted);
  transition: 0.15s;
}
.nav-module .pn-cat-actions .pn-cat-edit:hover {
  background: rgba(94, 140, 255, 0.2);
  color: #5e8cff;
}
.nav-module .pn-cat-actions .pn-cat-del:hover {
  background: rgba(255, 70, 70, 0.2);
  color: #ff5e5e;
}
.nav-module .pn-card-drag {
  width: 16px;
  flex-shrink: 0;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  cursor: grab;
  font-size: 14px;
}
.nav-module .pn-manager-mode .pn-card-drag {
  display: flex;
}
.nav-module .pn-card.drag-over {
  border-color: #5e8cff;
  border-style: solid;
  background: rgba(94, 140, 255, 0.08);
}
.nav-module .personal-nav-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (min-width: 1600px) {
  .nav-module .personal-nav-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1520px) {
  .nav-module .personal-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.nav-module .pn-card {
  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;
  transition: 0.2s;
  touch-action: none;
}
.nav-module .pn-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}
.nav-module .pn-card[draggable] {
  cursor: grab;
}
.nav-module .pn-card[draggable].dragging {
  cursor: grabbing;
  opacity: 0.5;
  border-color: #5e8cff;
  border-style: dashed;
}
.nav-module .pn-card-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 .pn-card-icon img {
  border-radius: 12px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
}
.nav-module .pn-card-icon i.remix-icon {
  font-size: 22px;
  color: #bcc9e6;
}
.nav-module .pn-card-body {
  flex: 1;
  min-width: 0;
}
.nav-module .pn-card-body strong {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
}
.nav-module .pn-card-body span {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nav-module .pn-card-actions {
  display: none;
  gap: 6px;
  flex-shrink: 0;
}
.nav-module .pn-manager-mode .pn-card-actions {
  display: flex;
}
.nav-module .pn-card-actions button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
  transition: 0.2s;
  display: grid;
  place-items: center;
}
.nav-module .pn-card-actions button:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text);
}
.nav-module .pn-card-actions button.del:hover {
  background: rgba(255, 70, 70, 0.2);
  color: #ff5e5e;
}
.nav-module .personal-nav-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  grid-column: 1/-1;
  font-size: 15px;
}

/* ===== 个人导航模态框 ===== */
.nav-module .pn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.nav-module .pn-modal {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  width: 460px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.nav-module .pn-modal h3 {
  margin: 0 0 18px;
  font-size: 17px;
}
.nav-module .pn-modal label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.nav-module .pn-modal input,
.nav-module .pn-modal select,
.nav-module .pn-modal textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  transition: 0.15s;
  margin-bottom: 14px;
}
.nav-module .pn-modal input:focus,
.nav-module .pn-modal select:focus,
.nav-module .pn-modal textarea:focus {
  border-color: rgba(94, 140, 255, 0.5);
}
.nav-module .pn-modal textarea {
  resize: vertical;
  min-height: 60px;
}
.nav-module .pn-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.nav-module .pn-modal-actions button {
  padding: 9px 20px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.nav-module .pn-modal-actions .btn-primary {
  background: #33405a;
  color: #fff;
}
.nav-module.theme-light .pn-modal-actions .btn-primary {
  background: linear-gradient(90deg, #4e555c, #000000);
  color: #fff;
}
.nav-module .pn-modal-actions .btn-primary:hover {
  opacity: 0.85;
}
.nav-module .pn-modal-actions .btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.nav-module .pn-modal-actions .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
.nav-module .pn-modal .pn-new-cat-input {
  margin-bottom: 14px;
}

/* ===== 亮色主题覆盖（v1.0.8 完整移植旧版 page.php 1040 行起） ===== */
.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 body {
  background: #ffffff;
}
.nav-module.theme-light .topics-scroll-btn {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--line);
}
.nav-module.theme-light .topics-scroll-btn:hover {
  background: #fff;
}
.nav-module.theme-light .personal-nav-panel {
  background: rgb(255 255 255 / 80%);
}
.nav-module.theme-light .personal-nav-actions button {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}
.nav-module.theme-light .personal-nav-actions button:hover {
  background: rgba(66, 133, 244, 0.1);
  border-color: rgba(66, 133, 244, 0.2);
}
.nav-module.theme-light .pn-cat {
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
}
.nav-module.theme-light .pn-cat:hover {
  background: rgba(0, 0, 0, 0.08);
  color: var(--text);
}
.nav-module.theme-light .pn-cat.on {
  background: linear-gradient(90deg, #4e555c, #000000);
  color: #fff;
  border: 0;
}
.nav-module.theme-light .pn-card {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}
.nav-module.theme-light .pn-card:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(66, 133, 244, 0.15);
}
.nav-module.theme-light .pn-card-body span {
  color: var(--muted);
}
.nav-module.theme-light .pn-card-actions button {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}
.nav-module.theme-light .pn-card-actions button:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}
.nav-module.theme-light .pn-card-actions button.del:hover {
  background: rgba(255, 70, 70, 0.15);
  color: #ef4444;
}
.nav-module.theme-light .pn-card-drag {
  color: rgba(0, 0, 0, 0.2);
}
.nav-module.theme-light .pn-cat-actions button {
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.3);
}
.nav-module.theme-light .pn-cat-actions .pn-cat-edit:hover {
  background: rgba(66, 133, 244, 0.15);
  color: #4285f4;
}
.nav-module.theme-light .pn-cat-actions .pn-cat-del:hover {
  background: rgba(255, 70, 70, 0.15);
  color: #ef4444;
}
.nav-module.theme-light .pn-card.drag-over {
  background: rgba(66, 133, 244, 0.1);
  border-color: #4285f4;
}
.nav-module.theme-light .pn-modal {
  background: #fff;
  border-color: var(--line);
}
.nav-module.theme-light .pn-modal input,
.nav-module.theme-light .pn-modal select {
  background: rgba(0, 0, 0, 0.04);
  border-color: var(--line);
}
.nav-module.theme-light .pn-modal input:focus {
  border-color: rgba(66, 133, 244, 0.5);
}
.nav-module.theme-light .pn-modal-actions .btn-cancel {
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted);
}
.nav-module.theme-light .pn-modal-actions .btn-cancel:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--text);
}
.nav-module.theme-light .topic-modal {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
}
.nav-module.theme-light .topic-modal-header {
  border-bottom: 1px solid var(--line);
}
.nav-module.theme-light .topic-modal-header h3 {
  color: var(--text);
}
.nav-module.theme-light .topic-modal-close {
  background: rgba(0, 0, 0, 0.06);
  color: #64748b;
}
.nav-module.theme-light .topic-modal-close:hover {
  background: rgba(255, 70, 70, 0.15);
  color: #ef4444;
}
.nav-module.theme-light .topic-item-default {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.nav-module.theme-light .topic-item-default:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(66, 133, 244, 0.2);
}
.nav-module.theme-light .topic-item-default .ti-cover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.nav-module.theme-light .topic-item-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}
.nav-module.theme-light .topic-item-card:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(66, 133, 244, 0.2);
}
.nav-module.theme-light .topic-item-card .ti-cover {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.nav-module.theme-light .search-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(66, 133, 244, 0.2);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.nav-module.theme-light .sd-engine {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text);
}
.nav-module.theme-light .sd-engine:hover {
  background: rgba(66, 133, 244, 0.1);
}
.nav-module.theme-light .sd-post {
  color: var(--text);
}
.nav-module.theme-light .sd-post:hover {
  background: rgba(66, 133, 244, 0.08);
}
.nav-module.theme-light .sd-section-title {
  color: #94a3b8;
}
.nav-module.theme-light .search-clear:hover {
  background: rgba(66, 133, 244, 0.1);
}
.nav-module.theme-light .top-icon-btn {
  color: #64748b;
}
.nav-module.theme-light .top-icon-btn:hover {
  background: rgba(66, 133, 244, 0.08);
  color: var(--text);
}
.nav-module.theme-light .user-dropdown {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.nav-module.theme-light .user-dropdown a {
  color: var(--text);
}
.nav-module.theme-light .user-dropdown a:hover {
  background: rgba(66, 133, 244, 0.08);
  color: #4285f4;
}
.nav-module.theme-light .user-dropdown a i {
  color: #94a3b8;
}
.nav-module.theme-light .dropdown-divider {
  background: var(--line);
}
.nav-module.theme-light .link-icon-img {
  background: rgba(0, 0, 0, 0.04);
}
.nav-module.theme-light .topic .thumb {
  background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}
.nav-module.theme-light .card-more {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: var(--line) !important;
  color: var(--muted) !important;
}
.nav-module.theme-light .topbar {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}
.nav-module.theme-light .hero {
  border-color: var(--line);
}
.nav-module.theme-light .hero p {
  color: #64748b;
}
.nav-module.theme-light .search {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(66, 133, 244, 0.3);
}
.nav-module.theme-light .search input {
  color: #1e293b;
}
.nav-module.theme-light .hot-tags {
  color: #64748b;
}
.nav-module.theme-light .hot-tags span:hover {
  color: #334155;
}
.nav-module.theme-light .panel {
  background: linear-gradient(180deg, rgb(255 255 255 / 72%), rgb(255 255 255 / 85%));
  border-color: var(--line);
}
.nav-module.theme-light .card {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
}
.nav-module.theme-light .card:hover {
  background: rgba(255, 255, 255, 0.85);
}
.nav-module.theme-light .quick {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
}
.nav-module.theme-light .topic {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--line);
}
.nav-module.theme-light .tabs {
  color: #64748b;
}
.nav-module.theme-light .tabs .on {
  color: #1e293b;
}
.nav-module.theme-light .rank {
  color: #334155;
}
.nav-module.theme-light .rank {
  border-bottom-color: var(--line);
}
.nav-module.theme-light .fav-folder {
  border-bottom-color: var(--line);
}
.nav-module.theme-light .sidebar {
  background: linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(255 255 255 / 85%));
  border-right-color: var(--line);
}
.nav-module.theme-light .nav-item {
  color: #334155;
}
.nav-module.theme-light .nav-item:hover,
.nav-module.theme-light .nav-item.active {
  width: 200px;
  background: linear-gradient(180deg, rgba(66, 133, 244, 0.12), rgba(66, 133, 244, 0.06));
  border-color: rgba(66, 133, 244, 0.15);
}
.nav-module.theme-light .nav-item .icon {
  color: #4285f4;
}
.nav-module.theme-light .sidebar-card {
  background: linear-gradient(180deg, rgb(255 255 255 / 80%), rgb(240 242 245 / 85%));
  border-color: var(--line);
}
.nav-module.theme-light .footer {
  color: #94a3b8;
}

/* ===== 侧栏滚动（nav-group 最大高度 + 悬浮显示滚动条） ===== */
.nav-module .sidebar .nav-group {
  flex: 1;
  min-height: 0;
  max-height: calc(100vh - 300px);
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-module .sidebar .nav-group::-webkit-scrollbar {
  width: 0;
}
.nav-module .sidebar .nav-group:hover {
  scrollbar-width: thin;
  -ms-overflow-style: auto;
}
.nav-module .sidebar .nav-group:hover::-webkit-scrollbar {
  width: 4px;
}
.nav-module .sidebar .nav-group:hover::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}
.nav-module.theme-light .sidebar .nav-group:hover::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
}
.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, 0.05);
  text-decoration: none;
  color: var(--text);
  transition: 0.15s;
  cursor: pointer;
}
.nav-module .updates-item:last-child {
  border-bottom: 0;
}
.nav-module .updates-item:hover {
  opacity: 0.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);
}
.nav-module.theme-light .updates-item {
  border-bottom-color: var(--line);
}
.nav-module.theme-light .updates-thumb {
  background-image: linear-gradient(135deg, #e2e8f0, #cbd5e1);
}

/* ===== 亮色主题补全（v1.0.8 移植旧版 page.php 缺失规则 31 条） ===== */
.nav-module.theme-light .logo .planet {
background: radial-gradient(circle at 30% 30%, #7cd0ff, #4285f4 55%, #1a56db 100%);
box-shadow: 0 0 22px rgba(66, 133, 244, 0.35);
}
.nav-module.theme-light .logo .planet::after {
border-color: rgba(66, 133, 244, 0.7) transparent transparent transparent;
}
.nav-module.theme-light .nav-arrow {
color: #4285f4;
}
.nav-module.theme-light .sidebar-card p,
.nav-module.theme-light .sidebar-card h4 {
color: var(--text);
}
.nav-module.theme-light .astro {
background: radial-gradient(circle at 30% 28%, #fff 0 4px, transparent 5px), radial-gradient(circle at 50% 45%, #7cd0ff 0, #4285f4 38%, #e8ebf0 72%);
box-shadow: 0 18px 40px rgba(0, 0, 0, 0.1), inset -12px -12px 20px rgba(0, 0, 0, 0.08);
}
.nav-module.theme-light .btn {
background: linear-gradient(90deg, #4285f4, #8b5cf6);
box-shadow: 0 10px 30px rgba(66, 133, 244, 0.25);
}
.nav-module.theme-light .pill {
background: rgba(0, 0, 0, 0.04);
border: 1px solid var(--line);
}
.nav-module.theme-light .avatar {
border-color: rgba(255, 255, 255, 0.6);
}
.nav-module.theme-light .avatar-img {
border-color: rgba(255, 255, 255, 0.6);
}
.nav-module.theme-light .hero::before {
opacity: 0.08;
}
.nav-module.theme-light .hero h1 .blue {
color: #ff8b47;
}
.nav-module.theme-light .hero h1 .purple {
color: #706161;
}
.nav-module.theme-light .search input::placeholder {
color: #94a3b8;
}
.nav-module.theme-light .search i {
color: #64748b !important;
}
.nav-module.theme-light .quick div {
color: var(--text);
}
.nav-module.theme-light .card,
.nav-module.theme-light .topic {
background: rgb(240 240 240 / 50%);
border: 1px solid rgb(0 0 0 / 0%);
}
.nav-module.theme-light .card-body span {
color: var(--muted);
}
.nav-module.theme-light .topic .body p {
color: var(--muted);
}
.nav-module.theme-light .tabs .on::after {
background: linear-gradient(90deg, #4285f4, #8b5cf6);
}
.nav-module.theme-light .badge {
background: #e2e8f0;
}
.nav-module.theme-light .fav-folder-head:hover {
color: var(--text);
}
.nav-module.theme-light .fav-folder-count {
background: rgba(0, 0, 0, 0.05);
color: var(--muted);
}
.nav-module.theme-light .fav-item {
color: var(--muted);
}
.nav-module.theme-light .fav-item:hover {
color: var(--blue);
}
.nav-module.theme-light .pn-mgmt-row:hover {
background: rgba(0, 0, 0, 0.03);
}
.nav-module.theme-light .pn-mgmt-row.drag-over {
background: rgba(66, 133, 244, 0.08);
}
.nav-module.theme-light .pn-mgmt-actions button {
background: rgba(0, 0, 0, 0.06);
color: rgba(0, 0, 0, 0.3);
}
.nav-module.theme-light .pn-mgmt-actions button:hover {
background: rgba(0, 0, 0, 0.1);
color: var(--text);
}
.nav-module.theme-light .pn-mgmt-actions button.del:hover {
background: rgba(255, 70, 70, 0.15);
color: #ef4444;
}

/* ===== 亮色主题文字统一深色（v1.0.9 用户要求：三主题下亮色必须深色字） ===== */
.nav-module.theme-light h1,
.nav-module.theme-light h2,
.nav-module.theme-light h3,
.nav-module.theme-light h4,
.nav-module.theme-light .section-head h3,
.nav-module.theme-light .side-box h3,
.nav-module.theme-light .card-body strong,
.nav-module.theme-light .topic .body h4,
.nav-module.theme-light .quick div,
.nav-module.theme-light .nav-item,
.nav-module.theme-light .rank,
.nav-module.theme-light .tabs,
.nav-module.theme-light .footer {
  color: #1e293b !important;
}
.nav-module.theme-light .section-head h3 i,
.nav-module.theme-light .side-box h3 i,
.nav-module.theme-light .nav-item .icon,
.nav-module.theme-light .nav-arrow,
.nav-module.theme-light .tabs .on {
  color: #4285f4 !important;
}
.nav-module.theme-light .card-body span,
.nav-module.theme-light .topic .body p,
.nav-module.theme-light .rank span,
.nav-module.theme-light .tabs:not(.on),
.nav-module.theme-light .hot-tags,
.nav-module.theme-light .updates-meta {
  color: #64748b !important;
}
.nav-module.theme-light .hero h1 .blue {
  color: #ff8b47 !important;
}
.nav-module.theme-light .hero h1 .purple {
  color: #706161 !important;
}

/* ===== 弹窗修复（v1.0.10）：pn-modal 追加到 body，需无前缀兜底规则 ===== */
.pn-modal-overlay.nav-module-inner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.pn-modal-overlay.nav-module-inner .pn-modal {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  width: 460px;
  max-width: 90vw;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  color: var(--text);
}
.pn-modal-overlay.nav-module-inner .pn-modal h3 {
  margin: 0 0 18px;
  font-size: 17px;
  color: var(--text);
}
.pn-modal-overlay.nav-module-inner .pn-modal label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}
.pn-modal-overlay.nav-module-inner .pn-modal input,
.pn-modal-overlay.nav-module-inner .pn-modal select,
.pn-modal-overlay.nav-module-inner .pn-modal textarea {
  width: 100%;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 14px;
  outline: none;
}
.pn-modal-overlay.nav-module-inner .pn-modal input:focus,
.pn-modal-overlay.nav-module-inner .pn-modal select:focus,
.pn-modal-overlay.nav-module-inner .pn-modal textarea:focus {
  border-color: rgba(94, 140, 255, 0.5);
}
.pn-modal-overlay.nav-module-inner .pn-modal textarea {
  resize: vertical;
  min-height: 60px;
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 6px;
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions button {
  padding: 9px 20px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions .btn-primary {
  background: #33405a;
  color: #fff;
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions .btn-primary:hover {
  opacity: 0.85;
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions .btn-cancel {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.pn-modal-overlay.nav-module-inner .pn-modal-actions .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}
/* 亮色主题适配：body 上有 theme-light 类时用浅色 */
body.theme-light .pn-modal-overlay.nav-module-inner .pn-modal,
.pn-modal-overlay.nav-module-inner.theme-light .pn-modal,
.pn-modal-overlay.nav-module-inner .pn-modal {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.08);
  color: #1e293b;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
body.theme-light .pn-modal-overlay.nav-module-inner .pn-modal h3,
.pn-modal-overlay.nav-module-inner.theme-light .pn-modal h3,
.pn-modal-overlay.nav-module-inner .pn-modal h3 {
  color: #1e293b;
}
body.theme-light .pn-modal-overlay.nav-module-inner .pn-modal input,
body.theme-light .pn-modal-overlay.nav-module-inner .pn-modal select,
body.theme-light .pn-modal-overlay.nav-module-inner .pn-modal textarea,
.pn-modal-overlay.nav-module-inner.theme-light .pn-modal input,
.pn-modal-overlay.nav-module-inner.theme-light .pn-modal select,
.pn-modal-overlay.nav-module-inner.theme-light .pn-modal textarea {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.12);
  color: #1e293b;
}
