        @import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700&display=swap');
        
        :root {
            --primary: #01a982;
            --primary-dark: #018a6e;
            --primary-light: #34d399;
            --accent: #f59e0b;
            --bg-gradient-start: #01a982;
            --bg-gradient-end: #60ae80;
            --glass-bg: rgba(255, 255, 255, 0.95);
            --glass-border: rgba(255, 255, 255, 0.3);
            --text-primary: #1f2937;
            --text-secondary: #6b7280;
            --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
            --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
        }
        
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        html {
            width: 100%;
            height: 100%;
        }
        
        body {
            font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: linear-gradient(to bottom right, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
            min-height: 100vh;
            color: var(--text-primary);
            overflow-x: hidden;
            width: 100%;
            height: 100%;
        }
        
        /* 背景动画气泡 - 还原原来风格 */
        .bubbles {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 0;
            overflow: hidden;
        }
        
        .bubbles li {
            position: absolute;
            list-style: none;
            display: block;
            width: 40px;
            height: 40px;
            background-color: hsla(0, 0%, 100%, 0.15);
            bottom: -160px;
            animation: bubble 25s infinite;
            transition-timing-function: linear;
            border-radius: 50%;
        }
        
        .bubbles li:nth-child(1) { left: 10%; }
        .bubbles li:nth-child(2) { left: 20%; width: 80px; height: 80px; animation-delay: 2s; animation-duration: 17s; }
        .bubbles li:nth-child(3) { left: 25%; animation-delay: 4s; }
        .bubbles li:nth-child(4) { left: 40%; width: 60px; height: 60px; animation-duration: 22s; background-color: hsla(0, 0%, 100%, 0.25); }
        .bubbles li:nth-child(5) { left: 70%; animation-delay: 6s; }
        .bubbles li:nth-child(6) { left: 80%; width: 120px; height: 120px; animation-delay: 3s; background-color: hsla(0, 0%, 100%, 0.2); }
        .bubbles li:nth-child(7) { left: 32%; width: 160px; height: 160px; animation-delay: 7s; }
        .bubbles li:nth-child(8) { left: 55%; width: 20px; height: 20px; animation-delay: 15s; animation-duration: 40s; }
        .bubbles li:nth-child(9) { left: 25%; width: 10px; height: 10px; animation-delay: 2s; animation-duration: 40s; background-color: hsla(0, 0%, 100%, 0.3); }
        .bubbles li:nth-child(10) { left: 90%; width: 160px; height: 160px; animation-delay: 11s; }
        
        @keyframes bubble {
            0% {
                transform: translateY(0) rotate(0deg);
                opacity: 0.5;
            }
            50% {
                opacity: 0.8;
            }
            100% {
                transform: translateY(-100vh) rotate(720deg);
                opacity: 0;
            }
        }
        
        /* 主容器 */
        .app-container {
            display: flex;
            min-height: 100vh;
            position: relative;
            z-index: 1;
        }
        
        /* 堡塔菜单（左侧导航） */
        .sidebar {
            width: 260px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-right: 1px solid var(--glass-border);
            padding: 20px 0;
            position: fixed;
            height: 100vh;
            overflow-y: auto;
            transition: transform 0.3s ease;
            z-index: 100;
            left: 0;
            top: 0;
        }
        
        .sidebar-header {
            padding: 0 20px 20px;
            border-bottom: 1px solid rgba(0,0,0,0.1);
            margin-bottom: 20px;
        }
        
        .sidebar-header h1 {
            font-size: 20px;
            font-weight: 700;
            color: var(--primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .sidebar-header p {
            font-size: 12px;
            color: var(--text-secondary);
            margin-top: 5px;
        }
        
        .nav-menu {
            padding: 0 10px;
        }
        
        .nav-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            margin-bottom: 4px;
            border-radius: 10px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-size: 14px;
            color: var(--text-primary);
            -webkit-tap-highlight-color: transparent;
            touch-action: manipulation;
            user-select: none;
        }
        
        .nav-item:hover {
            background: rgba(1, 169, 130, 0.15);
            color: var(--primary);
        }
        
        .nav-item:active {
            background: rgba(1, 169, 130, 0.25);
            transform: scale(0.98);
        }
        
        .nav-item.active {
            background: linear-gradient(135deg, #01a982 0%, #018a6e 100%);
            color: white;
            box-shadow: var(--shadow);
        }
        
        .nav-item .icon {
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
        }
        
        .nav-item .count {
            background: rgba(0,0,0,0.1);
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .nav-item.active .count {
            background: rgba(255,255,255,0.2);
        }
        
        .nav-section {
            margin-bottom: 20px;
        }
        
        .nav-section-title {
            padding: 10px 16px;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 1px;
            color: var(--text-secondary);
            font-weight: 600;
        }
        
        /* 移动端菜单按钮 */
        .menu-toggle {
            display: none;
            position: fixed;
            top: 20px;
            left: 20px;
            z-index: 200;
            width: 44px;
            height: 44px;
            border-radius: 10px;
            background: #10b981;
            border: none;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
            cursor: pointer;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: white;
        }
        
        .menu-toggle:hover {
            background: #059669;
            transform: scale(1.05);
        }
        
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            z-index: 50;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .overlay.show {
            opacity: 1;
        }
        
        /* 主内容区 */
        .main-content {
            flex: 1;
            margin-left: 260px;
            padding: 30px;
            min-height: 100vh;
            box-sizing: border-box;
            overflow-x: hidden;
        }
        
        /* 头部搜索区 */
        .header {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: var(--shadow);
            width: 100%;
            box-sizing: border-box;
        }
        
        .header h1 {
            font-size: 28px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .header p {
            color: var(--text-secondary);
            font-size: 14px;
        }
        
        /* 搜索框 */
        .search-container {
            margin-top: 20px;
            position: relative;
        }
        
        .search-box {
            display: flex;
            align-items: center;
            background: rgba(0,0,0,0.05);
            border-radius: 12px;
            padding: 4px;
            transition: all 0.3s ease;
        }
        
        .search-box:focus-within {
            background: white;
            box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
        }
        
        .search-box .icon {
            padding: 0 16px;
            font-size: 18px;
            color: var(--text-secondary);
        }
        
        .search-box input {
            flex: 1;
            border: none;
            background: transparent;
            padding: 12px 0;
            font-size: 16px;
            color: var(--text-primary);
            outline: none;
        }
        
        .search-box input::placeholder {
            color: var(--text-secondary);
        }
        
        .search-box button {
            padding: 12px 24px;
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            border: none;
            border-radius: 10px;
            color: white;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-box button:hover {
            transform: translateY(-1px);
            box-shadow: var(--shadow);
        }
        
        .stats-bar {
            display: flex;
            gap: 20px;
            margin-top: 16px;
            flex-wrap: wrap;
        }
        
        .stat-item {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            color: var(--text-secondary);
        }
        
        .stat-item .badge {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 2px 8px;
            border-radius: 6px;
            font-weight: 600;
            font-size: 12px;
        }
        
        /* 资源卡片网格 */
        .resource-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 20px;
        }
        
        .resource-card {
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 16px;
            padding: 20px;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            border: 1px solid var(--glass-border);
        }
        
        .resource-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        
        .card-header {
            display: flex;
            align-items: flex-start;
            gap: 16px;
            margin-bottom: 16px;
        }
        
        .card-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 24px;
            flex-shrink: 0;
        }
        
        .card-icon.software { background: linear-gradient(135deg, #01a982, #018a6e); }
        .card-icon.game { background: linear-gradient(135deg, #f59e0b, #d97706); }
        .card-icon.video { background: linear-gradient(135deg, #ef4444, #dc2626); }
        .card-icon.tv { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
        .card-icon.tool { background: linear-gradient(135deg, #3b82f6, #2563eb); }
        .card-icon.book { background: linear-gradient(135deg, #ec4899, #db2777); }
        .card-icon.other { background: linear-gradient(135deg, #6b7280, #4b5563); }
        
        .card-info {
            flex: 1;
            min-width: 0;
        }
        
        .card-title {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-desc {
            font-size: 13px;
            color: var(--text-secondary);
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .card-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-bottom: 16px;
        }
        
        .tag {
            padding: 4px 10px;
            background: rgba(16, 185, 129, 0.1);
            color: var(--primary);
            border-radius: 6px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .card-footer {
            display: flex;
            gap: 10px;
        }
        
        .card-btn {
            flex: 1;
            padding: 10px 16px;
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            border: none;
        }
        
        .card-btn.primary {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
        }
        
        .card-btn.secondary {
            background: rgba(0,0,0,0.05);
            color: var(--text-primary);
        }
        
        .card-btn:hover {
            transform: translateY(-2px);
        }
        
        .card-btn:active {
            transform: translateY(0);
        }
        
        /* 分类标题 */
        .category-section {
            margin-bottom: 30px;
        }
        
        .category-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 20px;
            padding-bottom: 12px;
            border-bottom: 2px solid var(--glass-border);
        }
        
        .category-title {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .category-count {
            background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }
        
        .empty-state .icon {
            font-size: 64px;
            margin-bottom: 20px;
            opacity: 0.5;
        }
        
        .empty-state h3 {
            font-size: 18px;
            margin-bottom: 8px;
            color: var(--text-primary);
        }
        
        /* 返回顶部按钮 */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: linear-gradient(135deg, #01a982 0%, #018a6e 100%);
            color: white;
            border: none;
            box-shadow: var(--shadow-lg);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            z-index: 100;
        }
        
        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }
        
        .back-to-top:hover {
            transform: translateY(-4px);
        }
        
        /* 通知提示 */
        .toast {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 16px 24px;
            background: var(--glass-bg);
            backdrop-filter: blur(20px);
            border-radius: 12px;
            box-shadow: var(--shadow-lg);
            display: flex;
            align-items: center;
            gap: 12px;
            transform: translateX(120%);
            transition: transform 0.3s ease;
            z-index: 1000;
        }
        
        .toast.show {
            transform: translateX(0);
        }
        
        .toast.success { border-left: 4px solid var(--primary); }
        .toast.error { border-left: 4px solid #ef4444; }
        
        /* 响应式设计 */
        @media (max-width: 1024px) {
            .resource-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            }
        }
        
        @media (max-width: 768px) {
            /* 显示移动端菜单按钮 */
            .menu-toggle {
                display: flex;
                position: fixed;
                top: 15px;
                left: 15px;
                z-index: 1002;
                width: 48px;
                height: 48px;
                border-radius: 12px;
                background: #01a982;
                border: none;
                box-shadow: 0 4px 20px rgba(1, 169, 130, 0.5);
                cursor: pointer;
                align-items: center;
                justify-content: center;
                font-size: 24px;
                color: white;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }
            
            .menu-toggle:active {
                transform: scale(0.95);
            }
            
            /* 侧边栏样式 - 确保在遮罩层之上 */
            .sidebar {
                position: fixed;
                left: 0;
                top: 0;
                height: 100vh;
                width: 280px;
                max-width: 85%;
                background: linear-gradient(180deg, #ffffff 0%, #f8faf9 100%);
                box-shadow: 5px 0 30px rgba(0, 0, 0, 0.2);
                transform: translateX(-100%);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                z-index: 1003;
                overflow-y: auto;
                -webkit-overflow-scrolling: touch;
            }
            
            .sidebar.open {
                transform: translateX(0);
            }
            
            /* 遮罩层 - 只拦截背景点击，不拦截侧边栏 */
            .overlay {
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background: rgba(0, 0, 0, 0.6);
                backdrop-filter: blur(4px);
                z-index: 1001;
                opacity: 0;
                visibility: hidden;
                transition: opacity 0.3s ease, visibility 0.3s ease;
                display: block;
                pointer-events: none; /* 默认不拦截点击 */
            }
            
            .overlay.show {
                opacity: 1;
                visibility: visible;
                pointer-events: auto; /* 显示时拦截点击 */
            }
            
            /* 主内容区域 */
            .main-content {
                margin-left: 0;
                padding: 85px 16px 20px;
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }
            
            /* 头部样式 */
            .header {
                padding: 20px;
                border-radius: 12px;
                margin-bottom: 20px;
            }
            
            .header h1 {
                font-size: 20px;
            }
            
            .header p {
                font-size: 13px;
            }
            
            /* 搜索框 */
            .search-container {
                margin-top: 15px;
            }
            
            .search-box {
                padding: 3px;
            }
            
            .search-box input {
                padding: 10px;
                font-size: 14px;
            }
            
            .search-box button {
                padding: 10px 16px;
                font-size: 13px;
            }
            
            /* 资源网格 */
            .resource-grid {
                grid-template-columns: 1fr;
                gap: 15px;
            }
            
            /* 资源卡片 */
            .resource-card {
                padding: 16px;
                border-radius: 12px;
            }
            
            .card-header {
                margin-bottom: 12px;
            }
            
            .card-icon {
                width: 44px;
                height: 44px;
                font-size: 20px;
            }
            
            .card-title {
                font-size: 15px;
            }
            
            .card-desc {
                font-size: 12px;
            }
            
            /* 卡片底部按钮 */
            .card-footer {
                flex-direction: row;
                gap: 10px;
            }
            
            .card-btn {
                flex: 1;
                padding: 8px 12px;
                font-size: 13px;
            }
            
            /* 分类标题 */
            .category-title {
                font-size: 18px;
            }
            
            /* 统计栏隐藏 */
            .stats-bar {
                display: none;
            }
        }
        
        /* 滚动条样式 */
        ::-webkit-scrollbar {
            width: 8px;
        }
        
        ::-webkit-scrollbar-track {
            background: transparent;
        }
        
        ::-webkit-scrollbar-thumb {
            background: rgba(1, 169, 130, 0.3);
            border-radius: 4px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            background: rgba(1, 169, 130, 0.5);
        }
        
        /* 链接提示 */
        .password-hint {
            background: rgba(245, 158, 11, 0.1);
            color: #d97706;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 12px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }