:root {
            --primary-color: #4361ee;
            --secondary-color: #6c757d;
            --border-radius: 10px;
            --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
            --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
            --text-primary: #2b2d42;
            --text-secondary: #6c757d;
            --bg-light: #f8f9fa;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Segoe UI', 'PingFang SC', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
            background: #f5f7fa;
            color: var(--text-primary);
            line-height: 1.5;
        }

        /* 搜索栏 */
        .search-header {
            background: white;
            padding: 10px 15px;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: var(--shadow-sm);
            position: sticky;
            top: 0;
            z-index: 100;
            border-bottom: 1px solid rgba(0,0,0,0.05);
        }

        .back-btn {
            background: none;
            border: none;
            color: var(--text-primary);
            font-size: 22px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            cursor: pointer;
            transition: all 0.2s;
        }

        .back-btn:hover {
            background: var(--bg-light);
        }

        .search-container {
            flex: 1;
            position: relative;
        }

        .search-input {
            width: 100%;
            border: 1px solid #e9ecef;
            background: white;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 14px;
            color: var(--text-primary);
            outline: none;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.15);
        }

        .search-input::placeholder {
            color: #adb5bd;
        }

        .search-btn {
            background: var(--primary-color);
            border: none;
            color: white;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            white-space: nowrap;
        }

        .search-btn:hover {
            background: #3a56d4;
            transform: translateY(-1px);
        }

        /* 主要内容区域 */
        .main-content {
            padding: 16px 12px;
        }

        /* 分类网格 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 8px;
        }

        .category-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 12px 6px;
            background: white;
            border-radius: var(--border-radius);
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.2s;
            box-shadow: var(--shadow-sm);
            border: 1px solid rgba(0,0,0,0.03);
            min-height: 90px;
        }

        .category-item:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            color: var(--primary-color);
        }

        .category-item-icon {
            font-size: 28px;
            margin-bottom: 6px;
            line-height: 1;
            transition: all 0.2s;
        }

        .category-item:hover .category-item-icon {
            transform: scale(1.1);
        }

        .category-item-text {
            font-size: 12px;
            font-weight: 500;
            color: var(--text-primary);
            text-align: center;
            word-break: break-word;
            padding: 0 4px;
        }

        /* 加载状态 */
        .loading, .no-data {
            text-align: center;
            padding: 30px;
            color: var(--text-secondary);
            grid-column: 1 / -1;
        }

        .loading {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 10px;
        }

        .loading-spinner {
            width: 24px;
            height: 24px;
            border: 3px solid rgba(67, 97, 238, 0.2);
            border-radius: 50%;
            border-top-color: var(--primary-color);
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        /* 响应式调整 */
        @media (max-width: 576px) {
            .category-grid {
                gap: 6px;
            }
            
            .category-item {
                padding: 10px 4px;
                min-height: 80px;
            }
            
            .category-item-icon {
                font-size: 24px;
                margin-bottom: 4px;
            }
            
            .category-item-text {
                font-size: 11px;
            }
            
            .main-content {
                padding: 12px 8px;
            }
        }

        /* 暗色模式支持 */
        @media (prefers-color-scheme: dark) {
            :root {
                --primary-color: #5a7dff;
                --text-primary: #f8f9fa;
                --text-secondary: #adb5bd;
                --bg-light: #2b2d42;
            }

            body {
                background: #121212;
            }

            .search-header, .category-item {
                background: #1e1e1e;
                border-color: #333;
            }

            .search-input {
                background: #2b2b2b;
                border-color: #444;
                color: white;
            }
        }