/* ==================== 导航页面独立样式 样式隔离不冲突主题 ==================== */
/* ==================== 导航页面独立样式 样式隔离不冲突主题 ==================== */
.nav-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.nav-wrap {
    font-family: "Microsoft YaHei", "微软雅黑", -apple-system, sans-serif;
    /* 核心修改：替换纯黑为深青绿渐变半透明，加强毛玻璃效果 */
    background: linear-gradient(160deg, rgba(22, 42, 38, 0.72), rgba(12, 24, 22, 0.78));
    backdrop-filter: blur(18px) saturate(120%);
    -webkit-backdrop-filter: blur(18px) saturate(120%);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    color: #e0e0e0;
    font-size: 12px;
    line-height: 1.4;
    display: flex;
    min-height: 850px;
    position: relative;
    overflow: hidden;
}
/* 自定义滚动条 */
.nav-wrap ::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
.nav-wrap ::-webkit-scrollbar-track {
    background: rgba(17, 17, 17, 0.3);
}
.nav-wrap ::-webkit-scrollbar-thumb {
    background: rgba(51, 51, 51, 0.7);
    border-radius: 3px;
}
.nav-wrap ::-webkit-scrollbar-thumb:hover {
    background: rgba(68, 68, 68, 0.9);
}
/* 卡片链接样式 */
.nav-wrap .site-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
/* 左侧侧边栏 容器内不fixed */
.nav-wrap .sidebar {
    width: 130px;
    height: 100%;
    /* 侧边栏改为半透明，融入整体毛玻璃 */
    background: rgba(10, 18, 16, 0.45);
    border-right: 1px solid rgba(255,255,255,0.05);
    overflow-y: auto;
    flex-shrink: 0;
    padding: 0 10px;
}
.nav-wrap .sidebar-logo {
    padding: 14px 6px;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    margin-bottom: 12px;
    cursor: pointer;
    transition: background .2s;
    position: sticky;
    top: 0;
    background: transparent;
    z-index: 10;
}
.nav-wrap .sidebar-logo:hover {
    opacity: .8;
}
.nav-wrap .sidebar-logo-icon {
    width: 20px;
    height: 20px;
    background: #fff;
    border-radius: 2px;
    flex-shrink: 0;
}
.nav-wrap .sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* 菜单按钮未选中 */
.nav-wrap .sidebar-menu li {
    padding: 9px 12px;
    color: #7ab8a7;
    cursor: pointer;
    transition: all .25s ease;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(45, 107, 90, 0.5);
    border-radius: 6px;
    background: rgba(18, 30, 26, 0.6);
    backdrop-filter: blur(6px);
}
/* hover状态 */
.nav-wrap .sidebar-menu li:hover {
    border-color: #00c48c;
    color: #b0e8d9;
    background: rgba(23, 42, 36, 0.75);
}
/* 选中状态 */
.nav-wrap .sidebar-menu li.active {
    background: linear-gradient(135deg, #00d4aa, #00a885);
    color: #ffffff;
    border-color: rgba(0, 212, 170, 0.5);
    box-shadow: 0 0 12px rgba(0, 212, 170, 0.4);
}
.nav-wrap .sidebar-menu li i {
    font-size: 13px;
    width: 14px;
    text-align: center;
    flex-shrink: 0;
}
/* 右侧主内容区 */
.nav-wrap .main {
    flex: 1;
    min-height: 100%;
    overflow-y: auto;
}
/* 顶部横幅搜索区 */
.nav-wrap .header-banner {
    height: 200px;
    /* 顶部横幅同步半透明质感，透出背景图 */
    background: linear-gradient(rgba(15, 30, 27, 0.35), rgba(10, 20, 18, 0.55)),
    url('https://www.hackyh.com/zb_users/plugin/xc_dow/style/banner.jpg') center/cover no-repeat #0a0a0a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    backdrop-filter: blur(4px);
}
.nav-wrap .menu-toggle {
    position: absolute;
    left: 20px;
    top: 14px;
    color: #aaa;
    font-size: 16px;
    cursor: pointer;
}
.nav-wrap .search-tabs {
    display: flex;
    gap: 60px;
    margin-bottom: 8px;
    position: relative;
}
.nav-wrap .search-tab {
    color: #05DF72;
    cursor: pointer;
    font-size: 15px;
    position: relative;
    transition: color .2s;
}
.nav-wrap .search-tab.active {
    color: #fff;
    font-weight: 500;
}
.nav-wrap .search-tab.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -7px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #fff;
}
.nav-wrap .search-box {
    width: 70%;
    max-width: 900px;
    height: 48px;
    /* 搜索框改为毛玻璃样式 */
    background: rgba(30, 48, 43, 0.6);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 24px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.nav-wrap .search-box input {
    flex: 1;
    height: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
}
.nav-wrap .search-box input::placeholder {
    color: #999;
}
.nav-wrap .search-btn {
    color: #aaa;
    cursor: pointer;
    font-size: 18px;
    transition: color .2s;
}
.nav-wrap .search-btn:hover {
    color: #fff;
}
/* 内容容器 */
.nav-wrap .content {
    padding: 0 30px 50px;
}
.nav-wrap .section {
    margin-bottom: 8px;
    display: block;
}
.nav-wrap .section-title {
    font-size: 16px;
    color: #BBF451;
    font-weight: bold;
    margin: 26px 0 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.nav-wrap .section-title i {
    font-size: 14px;
    opacity: .8;
}
/* 卡片网格 - 横排4列 不超出容器 */
.nav-wrap .card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.nav-wrap .site-card {
    /* 卡片同步毛玻璃半透明效果 */
    background: rgba(36, 52, 47, 0.55);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 14px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all .2s;
    overflow: hidden;
    backdrop-filter: blur(8px);
}
.nav-wrap .site-card-link:hover .site-card {
    background: rgba(46, 65, 59, 0.7);
    border-color: rgba(0, 212, 170, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.nav-wrap .card-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 3px;
    background: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    font-weight: bold;
}
.nav-wrap .card-text {
    flex: 1;
    min-width: 0;
}
.nav-wrap .card-name {
    font-size: 12.5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-wrap .card-desc {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.nav-wrap .card-all {
    justify-content: flex-start;
}
.nav-wrap .card-all .card-icon {
    background: transparent;
    color: #aaa;
}
/* 右下角悬浮按钮 */
.float-btns {
    position: fixed;
    right: 16px;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 99;
}
.float-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2a2a2a;
    color: #aaa;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all .2s;
}
.float-btn:hover {
    background: #333;
    color: #fff;
}
/* 响应式适配 */
@media (max-width: 1200px) {
    .nav-wrap .card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .nav-wrap {
        flex-direction: column;
    }
    .nav-wrap .sidebar {
        width: 100%;
        height: auto;
        max-height: 300px;
    }
    .nav-wrap .sidebar-logo span, .nav-wrap .sidebar-menu li span {
        display: inline-block;
    }
    .nav-wrap .search-box {
        width: 90%;
    }
    .nav-wrap .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
