 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
         
        }
        body.no-scroll{
            overflow: hidden;
        }

        /* Header样式 */
        .header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 70px;
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 30px;
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .header.scrolled {
            background: rgba(255, 255, 255, 0.95) !important;
            color: #333;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        /* 四种主题模式 */
        /* 1. 透明底白字 */
        .header.theme-transparent-white {
            background: transparent;
            box-shadow: none;
            color: white;
        }
        .header.theme-transparent-white .site-name,
        .header.theme-transparent-white .nav-link,
        .header.theme-transparent-white .func-icon {
            color: white;
        }
        .header.theme-transparent-white .func-icon {
            background: rgba(255, 255, 255, 0.1);
        }
        .header.theme-transparent-white .scroll-percent {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .header.theme-transparent-white .expand-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .header.theme-transparent-white .mobile-menu-toggle {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        /* 添加透明底白字主题的滚动状态样式 */
        .header.theme-transparent-white.scrolled {
            background: rgba(255, 255, 255, 0.95) !important;
            color: black;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        }
        .header.theme-transparent-white.scrolled .site-name,
        .header.theme-transparent-white.scrolled .nav-link,
        .header.theme-transparent-white.scrolled .func-icon{
            color: black;
        }
        .header.theme-transparent-white.scrolled .scroll-percent{
            color: black;
        }

        
        /* 2
        /* 2. 透明底黑字 */
        .header.theme-transparent-black {
            background: transparent;
            box-shadow: none;
            color: #333;
        }
        .header.theme-transparent-black .site-name,
        .header.theme-transparent-black .nav-link,
        .header.theme-transparent-black .func-icon {
            color: #333;
        }
        .header.theme-transparent-black .func-icon {
            background: rgba(0, 0, 0, 0.1);
        }
        .header.theme-transparent-black .scroll-percent {
            background: rgba(0, 0, 0, 0.1);
            color: #333;
        }
        .header.theme-transparent-black .expand-btn {
            background: rgba(0, 0, 0, 0.1);
            color: #333;
        }
        .header.theme-transparent-black .mobile-menu-toggle {
            background: rgba(0, 0, 0, 0.1);
            color: #333;
        }

        /* 3. 黑底白字 */
        .header.theme-dark {
            background: rgba(0, 0, 0, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            color: white;
        }
        .header.theme-dark .site-name,
        .header.theme-dark .nav-link,
        .header.theme-dark .func-icon {
            color: white;
        }
        .header.theme-dark .func-icon {
            background: rgba(255, 255, 255, 0.1);
        }
        .header.theme-dark .scroll-percent {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .header.theme-dark .expand-btn {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .header.theme-dark .mobile-menu-toggle {
            background: rgba(255, 255, 255, 0.1);
            color: white;
        }
        .header.theme-dark.scrolled {
            background: rgba(0, 0, 0, 0.95) !important;
            color: white;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
        }

        /* 4. 白底黑字 */
        .header.theme-light {
            background: rgba(255, 255, 255, 0.95);
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            color: #333;
        }
        .header.theme-light .site-name,
        .header.theme-light .nav-link,
        .header.theme-light .func-icon {
            color: #333;
        }
        .header.theme-light .func-icon {
            background: rgba(0, 0, 0, 0.05);
        }
        .header.theme-light .scroll-percent {
            background: rgba(0, 0, 0, 0.05);
            color: #333;
        }
        .header.theme-light .expand-btn {
            background: rgba(0, 0, 0, 0.05);
            color: #333;
        }
        .header.theme-light .mobile-menu-toggle {
            background: rgba(0, 0, 0, 0.05);
            color: #333;
        }
        .header.theme-light.scrolled {
            background: rgba(255, 255, 255, 0.95) !important;
            color: #333;
            box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
        }

        /* 左侧部分 */
        .header-left {
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .logo {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .site-name {
            color: #333;
            font-size: 22px;
            font-weight: bold;
            text-decoration: none;
        }

        /* 中部菜单 */
        .header-center {
            display: flex;
            height: 100%;
        }

        .nav-menu {
            display: flex;
            list-style: none;
            height: 100%;
        }

        .nav-item {
            position: relative;
            height: 100%;
        }

        .nav-link {
            display: flex;
            align-items: center;
            height: 100%;
            padding: 0 20px;
            color: #333;
            text-decoration: none;
            font-size: 16px;
            transition: all 0.3s ease;
            position: relative;
        }

        .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .header.theme-dark .nav-link:hover {
            background: rgba(255, 255, 255, 0.1);
        }

        .header.theme-light .nav-link:hover {
            background: rgba(0, 0, 0, 0.05);
        }

        /* 二级菜单 */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            min-width: 200px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
            list-style: none;
            padding: 10px 0;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px);
            transition: all 0.3s ease;
        }

        .dropdown-menu li {
            padding: 0;
        }

        .dropdown-link {
            display: block;
            padding: 12px 20px;
            color: #333;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .dropdown-link:hover {
            background: #f8f9fa;
            color: #667eea;
            padding-left: 25px;
        }

        .nav-item:hover .dropdown-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        /* 右侧功能栏 */
        .header-right {
            display: flex;
            align-items: center;
            gap: 20px;
        }

        .func-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: #333;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .func-icon:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .header.theme-dark .func-icon:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-light .func-icon:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        /* 滚动百分比 */
        .scroll-percent {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 14px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            display: none;
        }

        .scroll-percent:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-dark .scroll-percent:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-light .scroll-percent:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        .scroll-percent:hover .percent-text {
            display: none;
        }

        .scroll-percent:hover .arrow-up {
            display: block;
        }

        .arrow-up {
            display: none;
            font-size: 16px;
        }

        /* 展开按钮 */
        .expand-btn {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            display: none;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-left: 10px;
        }

        .expand-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-2px);
        }

        .header.theme-dark .expand-btn:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-light .expand-btn:hover {
            background: rgba(0, 0, 0, 0.1);
        }

        /* 侧边栏 */
        .sidebar {
           position: fixed;
    top: 0;
    right: -300px; /* 改为右侧 */
    width: 300px;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* 添加模糊效果 */
    -webkit-backdrop-filter: blur(10px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1100;
    transition: right 0.3s ease;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
        }

        .sidebar.open {
            right: 0;
        }

        .sidebar-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 20px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
        }

        .sidebar-logo {
            width: 40px;
            height: 40px;
            border-radius: 12px;
            overflow: hidden;
        }

        .sidebar-logo img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .sidebar-site-name {
            font-size: 20px;
            font-weight: bold;
            margin-left: 10px;
        }

        .close-btn {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
        }

        .sidebar-menu {
           list-style: none;
    padding: 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
        }

        .sidebar-menu-item {
           flex: 1 1 calc(50% - 10px);
    min-width: 120px;
    padding: 15px;
    border-bottom: none;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.3s ease;
        }
.sidebar-menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
        .sidebar-menu-link {
             color: #333;
    text-decoration: none;
    font-size: 16px;
    display: block;
    font-weight: 500;
        }

        .sidebar-submenu {
           list-style: none;
    padding: 10px 0 0 0;
    margin-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .sidebar-submenu-item {
             padding: 8px 0;
        }

        .sidebar-submenu-link {
            color: #666;
    text-decoration: none;
    font-size: 14px;
        }
/* 新增功能栏 */
.sidebar-functions {
    padding: 20px;
    background: rgba(102, 126, 234, 0.1);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.function-item {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.function-item:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: white;
}

        /* 遮罩层 */
        .overlay {
           position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1050;
    display: none;
        }

        .overlay.open {
            display: block;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {


            .header {
                padding: 0 15px;
            }

            .nav-menu {
                display: none;
            }

            .site-name {
                font-size: 18px;
            }

            /* 移动端功能栏间距紧缩 */
            .header-right {
                gap: 10px;
            }

            /* 显示展开按钮 */
            .expand-btn {
                display: flex;
            }

            /* 隐藏中控台按键 */
            .func-icon:nth-child(1),
            .func-icon:nth-child(2),
            .func-icon:nth-child(3),
            .func-icon:nth-child(4) {
                display: none;
            }

            /* 显示移动端菜单按钮 */
            .mobile-menu-toggle {
                display: flex !important;
            }
        }

        /* 移动端侧边栏 */
        .mobile-sidebar {
            position: fixed;
            top: 0;
            right: -300px;
            width: 300px;
            height: 100vh;
            background: white;
            box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
            z-index: 1100;
            transition: right 0.3s ease;
            overflow-y: auto;
            
        }
        

        .mobile-sidebar.open {
            right: 0;
        }

        .sidebar-content {
            padding: 20px;
        }

        .mobile-menu {
            list-style: none;
            padding: 0;
        }

        .mobile-menu-item {
            padding: 15px 0;
            border-bottom: 1px solid #eee;
        }

        .mobile-menu-link {
            color: #333;
            text-decoration: none;
            font-size: 16px;
            display: block;
        }

        .mobile-submenu {
           list-style: none;
    padding: 10px 0 0 0;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
        }

        .mobile-submenu-item {
            flex: 1 1 calc(50% - 5px);
    min-width: 100px;
    padding: 12px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease;
        }
.mobile-submenu-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    border-color: #bbb;
}
        .mobile-submenu-link {
             color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
    height: 100%;
        }

        /* 侧边栏遮罩 */
        .sidebar-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 1050;
            display: none;
        }

        .sidebar-overlay.show {
            display: block;
        }

        /* 移动端菜单展开按钮 */
        .mobile-menu-toggle {
            display: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            align-items: center;
            justify-content: center;
            color: #333;
            font-size: 18px;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .mobile-menu-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-dark .mobile-menu-toggle:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .header.theme-light .mobile-menu-toggle:hover {
            background: rgba(0, 0, 0, 0.1);
        }
         .sidebar {
        width: 100%;
        right: -100%;
    }
     .sidebar.open {
        right: 0;
    }
    
    .sidebar-menu-item {
        flex: 1 1 calc(33.333% - 10px);
        min-width: 80px;
        padding: 12px;
    }
    
    .sidebar-menu-link {
        font-size: 14px;
    }

    .mobile-sidebar {
    display: flex;
    flex-direction: column;
}

.mobile-sidebar .sidebar-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mobile-sidebar-menu {
    flex: 1;
    overflow-y: auto;
}

.mobile-sidebar-functions {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.mobile-sidebar-functions .function-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.mobile-sidebar-functions .function-item span {
    margin-top: 5px;
    font-size: 14px;
}
/* 搜索模态框样式 - 简约版本 */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-modal.active {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    animation: modalFadeIn 0.3s ease;
}

.search-container {
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.3s ease;
}

.search-header {
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: #666;
    font-size: 16px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 35px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    outline: none;
    background: #fff;
}

.search-input:focus {
    border-color: #007bff;
}

.search-close {
    position: absolute;
    right: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #bcbcbc;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-close:hover {
    background: #e0e0e0;
    transform: scale(1.1);
}

/* 搜索结果容器样式 */
.search-results {
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
}
/* 美化滚动条样式 */
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
    transition: background 0.3s ease;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 暗色主题下的滚动条样式 */
.header.theme-dark .search-results::-webkit-scrollbar-track,
.header.theme-transparent-white.scrolled .search-results::-webkit-scrollbar-track {
    background: #2d3138;
}

.header.theme-dark .search-results::-webkit-scrollbar-thumb,
.header.theme-transparent-white.scrolled .search-results::-webkit-scrollbar-thumb {
    background: #5d8bf4;
}

.header.theme-dark .search-results::-webkit-scrollbar-thumb:hover,
.header.theme-transparent-white.scrolled .search-results::-webkit-scrollbar-thumb:hover {
    background: #4a7ae8;
}
/* 空状态和无结果状态 */
.search-empty-state,
.search-no-results {
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.search-empty-state i,
.search-no-results i {
    font-size: 36px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-empty-state p,
.search-no-results p {
    margin-bottom: 15px;
    font-size: 14px;
}

/* 快捷键提示样式 */
.search-shortcuts {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    background: #fff;
    position: sticky;
    bottom: 0;
    z-index: 1;
}

.shortcut-item {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    font-size: 11px;
    color: #495057;
    display: flex;
    align-items: center;
    gap: 4px;
}

.shortcut-item:hover {
    background: #e9ecef;
}

/* 搜索结果列表样式 */
.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: #f8f9fa;
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.search-result-content {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
    font-size: 14px;
}

.search-result-desc {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.search-result-meta {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}

/* 暗色主题适配 */
/* 暗色主题适配 - 重新设计 */
.header.theme-dark .search-container,
.header.theme-transparent-white.scrolled .search-container {
    background: #1a1d23;
    color: #e8eaed;
    border: 1px solid #2d3138;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header.theme-dark .search-input,
.header.theme-transparent-white.scrolled .search-input {
    background: #252932;
    border: 1px solid #3a3f4b;
    color: #e8eaed;
    transition: all 0.2s ease;
}

.header.theme-dark .search-input:focus,
.header.theme-transparent-white.scrolled .search-input:focus {
    border-color: #5d8bf4;
    background: #2d3138;
    box-shadow: 0 0 0 2px rgba(93, 139, 244, 0.2);
}

.header.theme-dark .search-icon,
.header.theme-transparent-white.scrolled .search-icon {
    color: #8b949e;
}

.header.theme-dark .search-input:focus + .search-icon,
.header.theme-transparent-white.scrolled .search-input:focus + .search-icon {
    color: #5d8bf4;
}

.header.theme-dark .search-close,
.header.theme-transparent-white.scrolled .search-close {
    background: #2d3138;
    color: #8b949e;
     transition: all 0.2s ease;
}

.header.theme-dark .search-close:hover,
.header.theme-transparent-white.scrolled .search-close:hover {
    background: #3a3f4b;
    color: #e8eaed;
}

.header.theme-dark .search-result-item,
.header.theme-transparent-white.scrolled .search-result-item {
    border-bottom-color: #2d3138;
    color: #e8eaed;
}

.header.theme-dark .search-result-item:hover,
.header.theme-transparent-white.scrolled .search-result-item:hover {
    background: #252932;
}

.header.theme-dark .search-result-item.active,
.header.theme-transparent-white.scrolled .search-result-item.active {
    background: #2d3138;
    border-left: 3px solid #5d8bf4;
}

.header.theme-dark .search-result-title,
.header.theme-transparent-white.scrolled .search-result-title {
    color: #e8eaed;
}

.header.theme-dark .search-result-desc,
.header.theme-transparent-white.scrolled .search-result-desc {
    color: #8b949e;
}

.header.theme-dark .search-result-meta,
.header.theme-transparent-white.scrolled .search-result-meta {
    color: #6e7681;
}

.header.theme-dark .search-result-icon,
.header.theme-transparent-white.scrolled .search-result-icon {
    background: linear-gradient(135deg, #5d8bf4, #8a63d2);
}

.header.theme-dark .shortcut-item,
.header.theme-transparent-white.scrolled .shortcut-item {
    background: #252932;
    border: 1px solid #3a3f4b;
    color: #8b949e;
}

.header.theme-dark .shortcut-item:hover,
.header.theme-transparent-white.scrolled .shortcut-item:hover {
    background: #2d3138;
    border-color: #5d8bf4;
    color: #e8eaed;
}

.header.theme-dark .search-empty-state,
.header.theme-dark .search-no-results,
.header.theme-transparent-white.scrolled .search-empty-state,
.header.theme-transparent-white.scrolled .search-no-results {
    color: #8b949e;
}

.header.theme-dark .search-empty-state i,
.header.theme-dark .search-no-results i,
.header.theme-transparent-white.scrolled .search-empty-state i,
.header.theme-transparent-white.scrolled .search-no-results i {
    color: #5d8bf4;
    opacity: 0.7;
}

.header.theme-dark .search-shortcuts,
.header.theme-transparent-white.scrolled .search-shortcuts {
    border-top-color: #2d3138;
    background: #1a1d23;
}


/* 移动端适配 */
@media (max-width: 768px) {
    .search-modal.active {
        padding-top: 20px;
    }
    
    .search-container {
        width: 95%;
        margin: 20px;
    }
    
    .search-shortcuts {
        padding: 10px 12px;
        gap: 6px;
    }
    
    .shortcut-item {
        padding: 4px 8px;
        font-size: 10px;
    }
}
/* 搜索模态框背景色调整 */
.header.theme-dark .search-modal,
.header.theme-transparent-white.scrolled .search-modal {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

/* 搜索头部样式调整 */
.header.theme-dark .search-header,
.header.theme-transparent-white.scrolled .search-header {
    border-bottom-color: #2d3138;
}
/* 移除复杂的动画效果 */
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes containerSlideIn {
    from {  opacity: 0; }
    to { opacity: 1; }
}

.search-modal.active .search-container {
    animation: containerSlideIn 0.2s ease;
}

/* 移除加载动画和脉冲效果 */
.search-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
    text-align: center;
}

.search-loading-state i {
    font-size: 20px;
    margin-bottom: 10px;
    color: #007bff;
}

.search-loading-state p {
    margin: 0;
    font-size: 14px;
}
/* 搜索模态框关闭动画 */
.search-modal.closing {
    animation: modalFadeOut 0.3s ease forwards;
}

.search-modal.closing .search-container {
    animation: containerSlideOut 0.3s ease forwards;
}

@keyframes modalFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes containerSlideOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
/* 登录模态框样式 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

.login-container {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 400px;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.login-modal.active .login-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.login-header {
    padding: 24px 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 24px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.login-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.login-close:hover {
    background: #e0e0e0;
    transform: rotate(90deg);
}

.login-body {
    padding: 24px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: #999;
    font-size: 16px;
    z-index: 1;
}

.login-input {
    width: 100%;
    height: 48px;
    padding: 0 16px 0 48px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fff;
    outline: none;
}

.login-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.login-input:focus + .input-icon {
    color: #4f46e5;
}

.password-toggle {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #666;
}

.remember-group {
    margin-top: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #666;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.login-button {
    height: 48px;
    background: #4f46e5;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.login-button:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.login-button:disabled {
    background: #9ca3af;
    cursor: not-allowed;
}

.button-text {
    transition: opacity 0.3s ease;
}

.button-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.login-button.loading .button-text {
    opacity: 0;
}

.login-button.loading .button-loader {
    opacity: 1;
}

.login-footer {
    padding: 16px 24px 24px;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.login-tip {
    margin: 0;
    font-size: 12px;
    color: #999;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .login-container {
        width: 95%;
        margin: 20px;
    }
    
    .login-header {
        padding: 20px 20px 0;
        padding-bottom: 20px;
    }
    
    .login-body {
        padding: 20px;
    }
    
    .login-title {
        font-size: 20px;
    }
}

/* 主题适配 */
.header.theme-dark .login-container {
    background: #1f2937;
    color: #fff;
}

.header.theme-dark .login-title {
    color: #fff;
}

.header.theme-dark .login-input {
    background: #374151;
    border-color: #4b5563;
    color: #fff;
}

.header.theme-dark .login-input:focus {
    border-color: #4f46e5;
}

.header.theme-dark .login-close {
    background: #374151;
    color: #9ca3af;
}

.header.theme-dark .login-close:hover {
    background: #4b5563;
}

.header.theme-dark .checkbox-text {
    color: #d1d5db;
}

.header.theme-dark .login-tip {
    color: #9ca3af;
}
/* 动画效果 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 登录消息样式 */
.login-message {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* 用户下拉菜单样式 */
.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.user-dropdown {
    position: relative;
}

.user-dropdown-trigger {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.05);
    color: #333;
    font-size: 16px;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
}

.user-dropdown-trigger.disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.user-dropdown-trigger:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.user-dropdown-item:last-child {
    border-bottom: none;
}

.user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.03);
    color: #4f46e5;
}

.user-dropdown-item i {
    margin-right: 8px;
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.user-dropdown-item span {
    font-size: 14px;
    font-weight: 500;
}

/* 主题适配 */
.header.theme-dark .user-dropdown-trigger {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header.theme-dark .user-dropdown-trigger:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.header.theme-dark .user-dropdown-menu {
    background: #1f2937;
    border-color: #374151;
}

.header.theme-dark .user-dropdown-item {
    color: #d1d5db;
    border-bottom-color: #374151;
}

.header.theme-dark .user-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #4f46e5;
}

.header.theme-transparent-white .user-dropdown-trigger {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header.theme-transparent-white .user-dropdown-trigger:hover:not(.disabled) {
    background: rgba(255, 255, 255, 0.2);
}

.header.theme-transparent-white.scrolled .user-dropdown-trigger {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.header.theme-transparent-white.scrolled .user-dropdown-trigger:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.1);
}

.header.theme-transparent-black .user-dropdown-trigger {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

.header.theme-transparent-black .user-dropdown-trigger:hover:not(.disabled) {
    background: rgba(0, 0, 0, 0.2);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .user-dropdown-menu {
        right: -50px;
        min-width: 140px;
    }
    
    .user-dropdown-item {
        padding: 10px 12px;
    }
    
    .user-dropdown-item i {
        font-size: 12px;
        margin-right: 6px;
    }
    
    .user-dropdown-item span {
        font-size: 13px;
    }
}

            
             .notification .close-icon:hover {
                opacity: 1 !important;
            }
            @keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

 .notification .close-icon:hover {
                opacity: 1 !important;
            }
            @keyframes progressBar {
    from { width: 100%; }
    to { width: 0%; }
}

/* NotificationManager 动画定义 */
.notification {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-width: 300px;
    margin-bottom: 10px;
}

.notification.show {
    transform: translateX(0) translateY(0) !important;
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%) translateY(0) !important;
    opacity: 0;
}

/* 通知容器样式 */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.notification .close-icon:hover {
    opacity: 1 !important;
}

/* 通知类型样式 */
.notification-info {
    background: #3b82f6;
}

.notification-success {
    background: #10b981;
}

.notification-warning {
    background: #f59e0b;
}

.notification-error {
    background: #ef4444;
}

/* 进度条动画 */
@keyframes progressBar {
    from { 
        width: 100%; 
    }
    to { 
        width: 0%; 
    }
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    width: 100%;
    transform-origin: left;
}
/* 通知相关样式 */
.notification {
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.hide {
    transform: translateX(100%);
    opacity: 0;
}

/* 进度条动画 */
@keyframes progressBar {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}