        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            transition: all 0.3s ease;
        }

        :root {
            --primary: #4361ee;
            --secondary: #3f37c9;
            --accent: #4895ef;
            --light: #f8f9fa;
            --dark: #212529;
            --gray: #6c757d;
            --card-bg: rgba(255, 255, 255, 0.95);
            --header-bg: rgba(255, 255, 255, 0.95);
            --shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --border-radius: 16px;
        }

        .dark-mode {
            --primary: #5fa8ff;
            --secondary: #4d7cff;
            --accent: #4361ee;
            --light: #121826;
            --dark: #f0f4f8;
            --gray: #a0aec0;
            --card-bg: rgba(30, 33, 46, 0.95);
            --header-bg: rgba(22, 25, 37, 0.95);
            --shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: linear-gradient(135deg, #f0f5ff 0%, #e6f0ff 100%);
            color: var(--dark);
            background-color: var(--light);
            min-height: 100vh;
            overflow-x: hidden;
            padding: 0;
        }

        .dark-mode body {
            background: linear-gradient(135deg, #0f172a 0%, #1a243f 100%);
        }

        /* 顶部导航栏 - 全新设计 */
        .top-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 16px 5%;
            background: var(--header-bg);
            backdrop-filter: blur(12px);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .logo-container {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            font-weight: 700;
            font-size: 1.6rem;
            color: var(--primary);
        }

        .logo i {
            font-size: 2rem;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-menu {
            display: flex;
            gap: 20px;
            margin: 0 20px;
        }

        .nav-menu a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            padding: 8px 16px;
            border-radius: 30px;
            transition: var(--transition);
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.95rem;
        }

        .nav-menu a:hover {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
        }

        .nav-menu a.active {
            background: rgba(67, 97, 238, 0.15);
            color: var(--primary);
        }

        .nav-menu a i {
            font-size: 1.1rem;
        }

        .nav-controls {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .theme-toggle {
            background: var(--card-bg);
            border: none;
            width: 48px;
            height: 24px;
            border-radius: 50px;
            position: relative;
            cursor: pointer;
            display: flex;
            align-items: center;
            padding: 0 4px;
            box-shadow: var(--shadow);
        }

        .theme-toggle::before {
            content: '';
            position: absolute;
            width: 18px;
            height: 18px;
            border-radius: 50%;
            background: var(--primary);
            transition: transform 0.3s ease;
        }

        .dark-mode .theme-toggle::before {
            transform: translateX(24px);
        }

        .theme-toggle i {
            position: absolute;
            font-size: 0.8rem;
            color: white;
        }

        .theme-toggle .sun {
            left: 6px;
        }

        .theme-toggle .moon {
            right: 6px;
        }

        .search-box {
            display: flex;
            align-items: center;
            background: var(--card-bg);
            border-radius: 50px;
            padding: 8px 16px;
            width: 240px;
            box-shadow: var(--shadow);
        }

        .search-box input {
            background: transparent;
            border: none;
            outline: none;
            color: var(--dark);
            width: 100%;
            font-size: 0.95rem;
            padding: 0 12px;
        }

        .search-box i {
            color: var(--gray);
        }

        .user-menu {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-weight: 600;
            cursor: pointer;
        }

        /* 主布局 */
        .container {
            max-width: 1600px;
            margin: 0 auto;
            padding: 24px;
        }

        /* 内容区域 */
        .content {
            min-width: 0;
        }

        .welcome {
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            color: white;
            padding: 40px;
            border-radius: var(--border-radius);
            margin-bottom: 32px;
            box-shadow: var(--shadow);
            position: relative;
            overflow: hidden;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .welcome::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
        }

        .welcome-text {
            position: relative;
            max-width: 600px;
        }

        .welcome h1 {
            font-size: 2.5rem;
            margin-bottom: 14px;
            position: relative;
            line-height: 1.3;
        }

        .welcome p {
            font-size: 1.15rem;
            opacity: 0.9;
            position: relative;
            line-height: 1.6;
            margin-bottom: 24px;
        }

        .explore-btn {
            background: white;
            color: var(--primary);
            border: none;
            padding: 12px 28px;
            border-radius: 30px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: var(--transition);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
        }

        .explore-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        }

        .welcome-img {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .welcome-img .icon-container {
            width: 180px;
            height: 180px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.2);
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(10px);
        }

        .welcome-img i {
            font-size: 6rem;
            color: white;
            opacity: 0.9;
        }

        /* 分类导航 - 根据您的网站需求定制 */
        .categories-nav {
            display: flex;
            gap: 12px;
            overflow-x: auto;
            padding: 8px 0 20px;
            margin-bottom: 24px;
            scrollbar-width: none;
        }

        .categories-nav::-webkit-scrollbar {
            display: none;
        }

        .category-btn {
            background: var(--card-bg);
            border: none;
            padding: 12px 24px;
            border-radius: 30px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--dark);
            white-space: nowrap;
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .category-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .category-btn.active {
            background: var(--primary);
            color: white;
        }

        .category-btn i {
            font-size: 1.1rem;
        }

        /* 网站网格 - 全新设计 */
        .websites-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
            gap: 24px;
            margin-bottom: 50px;
        }

        .website-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 24px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            transition: var(--transition);
            cursor: pointer;
            backdrop-filter: blur(6px);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(67, 97, 238, 0.1);
        }

        .website-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
        }

        .website-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary), var(--accent));
            transform: scaleX(0);
            transform-origin: left;
            transition: var(--transition);
        }

        .website-card:hover::after {
            transform: scaleX(1);
        }

        .card-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 18px;
            width: 100%;
        }

        .card-icon {
            width: 56px;
            height: 56px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.6rem;
            color: white;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
        }

        .card-title {
            flex: 1;
        }

        .website-card h3 {
            font-size: 1.2rem;
            margin-bottom: 4px;
            color: var(--dark);
            font-weight: 600;
        }

        .website-card .category-tag {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        .website-card p {
            color: var(--gray);
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 18px;
            min-height: 60px;
        }

        .card-footer {
            display: flex;
            width: 100%;
            justify-content: space-between;
            align-items: center;
            margin-top: auto;
        }

        .visit-btn {
            background: rgba(67, 97, 238, 0.1);
            color: var(--primary);
            border: none;
            padding: 8px 18px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 500;
            cursor: pointer;
            transition: var(--transition);
        }

        .visit-btn:hover {
            background: var(--primary);
            color: white;
        }

        .favorite-btn {
            background: transparent;
            border: none;
            color: var(--gray);
            font-size: 1.1rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .favorite-btn:hover {
            color: #ff4757;
        }

        /* 工具网格 */
        .tools-section {
            margin: 60px 0 40px;
        }

        .section-title {
            font-size: 1.8rem;
            margin-bottom: 24px;
            color: var(--dark);
            font-weight: 700;
            position: relative;
            padding-left: 15px;
        }

        .dark-mode .section-title {
            color: #e6edff;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5); /* 增强夜间模式可读性 */
        }

        .section-title::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            height: 80%;
            width: 5px;
            background: var(--primary);
            border-radius: 10px;
        }

        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 20px;
            margin-bottom: 40px;
        }

        .tool-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 20px;
            box-shadow: var(--shadow);
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            transition: var(--transition);
            cursor: pointer;
            backdrop-filter: blur(6px);
            border: 1px solid rgba(67, 97, 238, 0.1);
        }

        .tool-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
        }

        .tool-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 16px;
            font-size: 1.8rem;
            color: white;
            box-shadow: 0 4px 12px rgba(67, 97, 238, 0.3);
        }

        .tool-card h3 {
            font-size: 1.1rem;
            margin-bottom: 8px;
            color: var(--dark);
            font-weight: 600;
        }

        .dark-mode .tool-card h3 {
            color: #e6edff; /* 确保工具卡片标题在夜间模式可见 */
        }

        .tool-card p {
            color: var(--gray);
            font-size: 0.9rem;
            line-height: 1.5;
        }

        /* 底部信息 */
        .footer {
            text-align: center;
            padding: 40px 20px 30px;
            color: var(--gray);
            font-size: 0.95rem;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            margin-top: 20px;
            background: var(--header-bg);
            backdrop-filter: blur(12px);
        }

        .dark-mode .footer {
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--gray);
            text-decoration: none;
            transition: var(--transition);
        }

        .footer-links a:hover {
            color: var(--primary);
        }

        /* 新增：搜索结果提示 */
        .search-results {
            padding: 10px 0 20px;
            font-size: 1.1rem;
            color: var(--gray);
            display: none;
        }
        
        .search-results .highlight {
            color: var(--primary);
            font-weight: 600;
        }
        
        .no-results {
            text-align: center;
            padding: 40px;
            color: var(--gray);
            display: none;
        }
        
        .no-results i {
            font-size: 3rem;
            margin-bottom: 20px;
            color: var(--gray);
        }

        /* 响应式设计 */
        @media (max-width: 1200px) {
            .websites-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            }
            
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }

        @media (max-width: 992px) {
            .nav-menu {
                display: none;
            }
            
            .search-box {
                width: 180px;
            }
            
            .welcome {
                flex-direction: column;
                text-align: center;
            }
            
            .welcome-text {
                margin-bottom: 30px;
            }
            
            .welcome-img {
                margin-top: 20px;
            }
        }

        @media (max-width: 768px) {
            .top-bar {
                padding: 12px 4%;
            }
            
            .logo {
                font-size: 1.4rem;
            }
            
            .search-box {
                width: 150px;
            }
            
            .welcome {
                padding: 30px 20px;
            }
            
            .welcome h1 {
                font-size: 2rem;
            }
            
            .welcome p {
                font-size: 1rem;
            }
            
            .welcome-img .icon-container {
                width: 140px;
                height: 140px;
            }
            
            .welcome-img i {
                font-size: 4.5rem;
            }
            
            .categories-nav {
                gap: 8px;
            }
            
            .category-btn {
                padding: 10px 18px;
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1.6rem;
            }
        }

        @media (max-width: 576px) {
            .websites-grid {
                grid-template-columns: 1fr;
            }
            
            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            }
            
            .footer-links {
                gap: 15px;
                flex-direction: column;
            }
            
            .user-menu .user-name {
                display: none;
            }
            
            .search-box {
                display: none;
            }
            
            .mobile-search-btn {
                display: block;
            }
        }
        
        /* 移动端搜索按钮 */
        .mobile-search-btn {
            display: none;
            background: transparent;
            border: none;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            align-items: center;
            justify-content: center;
        }
        
        /* 移动端搜索框 */
        .mobile-search-container {
            display: none;
            padding: 15px 5%;
            background: var(--header-bg);
            position: sticky;
            top: 72px;
            z-index: 999;
            box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        }
        
        .mobile-search-box {
            display: flex;
            align-items: center;
            background: var(--card-bg);
            border-radius: 50px;
            padding: 10px 20px;
            width: 100%;
            box-shadow: var(--shadow);
        }

        /* 新增：顶部导航可见性修复 */
        @media (min-width: 993px) {
            .nav-menu {
                display: flex !important;
            }
            .search-box {
                display: flex !important;
            }
            .mobile-search-btn {
                display: none !important;
            }
        }