        /* 复用原页面的样式 */
        :root {
            --primary-color: #1890ff;
            --secondary-color: #40a9ff;
            --success-color: #52c41a;
            --warning-color: #faad14;
            --danger-color: #f5222d;
            --info-color: #13c2c2;
            --dark-color: #001529;
            --light-color: #f0f2f5;
            --border-color: #d9d9d9;
            --text-primary: #262626;
            --text-secondary: #8c8c8c;
            --bg-primary: #ffffff;
            --bg-secondary: #fafafa;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
            --card-gap: 1.5rem;
            --card-padding: 1.5rem;
            --site-item-gap: 0.75rem;
        }

        /* 深色主题变量 */
        [data-theme="dark"] {
            --primary-color: #40a9ff;
            --secondary-color: #69c0ff;
            --light-color: #141414;
            --border-color: #303030;
            --text-primary: #ffffff;
            --text-secondary: #bfbfbf;
            --bg-primary: #000000;
            --bg-secondary: #1f1f1f;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
        }

        /* 紧凑布局变量 */
        [data-compact="true"] {
            --card-gap: 1rem;
            --card-padding: 1rem;
            --site-item-gap: 0.5rem;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            background-color: var(--light-color);
            min-height: 100vh;
            color: var(--text-primary);
            transition: all 0.3s ease;
        }

        /* 全局链接样式 */
        a {
            text-decoration: none !important;
            color: inherit;
            transition: all 0.2s ease;
        }

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

        /* 顶部导航栏重构 */
        .navbar {
            background: var(--bg-primary);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 0;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
        }

        .navbar-brand {
            font-size: 1.75rem;
            font-weight: 700;
            color: var(--primary-color) !important;
            display: flex;
            align-items: center;
            gap: 12px;
            letter-spacing: -0.5px;
        }

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

        .navbar-nav .nav-link {
            color: var(--text-secondary) !important;
            font-weight: 500;
            padding: 0.5rem 1rem !important;
            margin: 0 0.25rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            position: relative;
            text-decoration: none !important;
        }

        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
            background: rgba(24, 144, 255, 0.1);
        }

        .navbar-nav .nav-link.active {
            color: var(--primary-color) !important;
            background: rgba(24, 144, 255, 0.1);
        }

        .navbar-nav .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        /* 日夜切换按钮 */
        .theme-toggle {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            margin-left: 1rem;
        }

        .theme-toggle:hover {
            background: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
            transform: scale(1.05);
        }

        /* 页面标题 */
        .page-header {
            background: var(--bg-primary);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            padding: 2rem;
            margin-bottom: 2rem;
            border: 1px solid var(--border-color);
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        .page-header::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--info-color));
        }

        .page-title {
            font-size: 2rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 0.5rem;
            position: relative;
            z-index: 1;
        }

        .page-subtitle {
            font-size: 1rem;
            color: var(--text-secondary);
            max-width: 700px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        /* 分类卡片网格 */
        .categories-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: var(--card-gap);
            margin-bottom: 3rem;
            transition: gap 0.3s ease;
        }

        /* 分类卡片 */
        .category-card {
            background: var(--bg-primary);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            border: 1px solid var(--border-color);
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            display: flex;
            flex-direction: column;
            opacity: 0;
            transform: translateY(20px);
        }

        .category-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
            border-color: var(--primary-color);
        }

        .category-header {
            padding: var(--card-padding);
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            gap: 1rem;
            transition: padding 0.3s ease;
        }

        .category-icon {
            width: 48px;
            height: 48px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
        }

        .category-info h3 {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
        }

        .category-info p {
            font-size: 0.875rem;
            color: var(--text-secondary);
            margin: 0.25rem 0 0;
        }

        .category-sites {
            padding: var(--card-padding);
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            gap: var(--site-item-gap);
            transition: padding 0.3s ease, gap 0.3s ease;
        }

        .category-site-item {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem;
            border-radius: 8px;
            transition: all 0.2s ease;
            text-decoration: none !important;
            color: var(--text-primary);
        }

        .category-site-item:hover {
            background-color: var(--bg-secondary);
            transform: translateX(5px);
        }

        .category-site-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .category-site-info {
            flex-grow: 1;
            min-width: 0;
        }

        .category-site-name {
            font-size: 0.95rem;
            font-weight: 500;
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-site-desc {
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin: 0;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .category-footer {
            padding: 1rem var(--card-padding);
            border-top: 1px solid var(--border-color);
            text-align: center;
            transition: padding 0.3s ease;
        }

        .view-all-btn {
            background: var(--primary-color);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 0.5rem 1.25rem;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            text-decoration: none !important;
        }

        .view-all-btn:hover {
            background: var(--secondary-color);
            gap: 0.75rem;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
        }

        /* 页脚美化 */
        footer {
            background: var(--bg-primary);
            border-top: 1px solid var(--border-color);
            padding: 3rem 0 2rem;
            margin-top: 4rem;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 2.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .footer-links a {
            color: var(--text-secondary);
            text-decoration: none !important;
            transition: all 0.3s ease;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .footer-links a:hover {
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .footer-links i {
            font-size: 1rem;
        }

        .footer-copyright {
            text-align: center;
            color: var(--text-secondary);
            font-size: 0.875rem;
            padding-top: 2rem;
            border-top: 1px solid var(--border-color);
        }

        /* 工具栏美化 */
        .toolbar {
            position: fixed;
            bottom: 30px;
            right: 30px;
            display: flex;
            flex-direction: column;
            gap: 12px;
            z-index: 1000;
        }

        .tool-btn {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow-md);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.3s ease;
            color: var(--text-secondary);
            font-size: 1.25rem;
            text-decoration: none !important;
        }

        .tool-btn:hover {
            transform: scale(1.1) translateY(-3px);
            box-shadow: var(--shadow-lg);
            color: var(--primary-color);
            border-color: var(--primary-color);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .page-header {
                padding: 1.5rem;
            }
            
            .page-title {
                font-size: 1.75rem;
            }
            
            .categories-grid {
                grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
                gap: 1.25rem;
            }
            
            .toolbar {
                bottom: 20px;
                right: 20px;
            }
            
            .tool-btn {
                width: 46px;
                height: 46px;
                font-size: 1.1rem;
            }
        }

        /* 淡入动画 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in-up {
            animation: fadeInUp 0.5s ease forwards;
        }

        /* 开关按钮样式 */
        .switch {
            position: relative;
            display: inline-block;
            width: 60px;
            height: 30px;
        }

        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-color);
            transition: .4s;
            border-radius: 30px;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
        }

        .slider:before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
            border-radius: 50%;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
        }

        input:checked + .slider {
            background-color: var(--primary-color);
        }

        input:checked + .slider:before {
            transform: translateX(30px);
        }

        /* 紧凑布局样式 */
        [data-compact="true"] .category-header {
            padding: 1rem;
        }

        [data-compact="true"] .category-sites {
            padding: 1rem;
            gap: 0.5rem;
        }

        [data-compact="true"] .category-footer {
            padding: 0.75rem 1rem;
        }

        [data-compact="true"] .category-site-item {
            padding: 0.35rem;
        }

        [data-compact="true"] .category-icon {
            width: 40px;
            height: 40px;
            font-size: 1.25rem;
        }

        [data-compact="true"] .category-site-icon {
            width: 28px;
            height: 28px;
            font-size: 0.875rem;
        }

        [data-compact="true"] .category-info h3 {
            font-size: 1.1rem;
        }

        [data-compact="true"] .category-info p {
            font-size: 0.8rem;
        }

        [data-compact="true"] .category-site-name {
            font-size: 0.875rem;
        }

        [data-compact="true"] .category-site-desc {
            font-size: 0.7rem;
        }