        :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);
        }
        /* 深色主题变量 */
        [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);
        }

        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: var(--transition-base);
        }

        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;
        }

        .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);
        }

        /* 编辑模式切换 */
        .edit-toggle {
            background: var(--warning-color);
            border: none;
            color: white;
            border-radius: 20px;
            padding: 0.5rem 1rem;
            font-size: 0.875rem;
            font-weight: 500;
            transition: all 0.3s ease;
            margin-left: 0.5rem;
        }

        .edit-toggle:hover {
            background: #d48806;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .edit-toggle.active {
            background: var(--success-color);
        }

        /* 分类标签美化 */
        .category-tabs {
            background: var(--bg-primary);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            padding: 1rem;
            margin-bottom: 2rem;
            overflow-x: auto;
            white-space: nowrap;
            border: 1px solid var(--border-color);
        }

        .category-tab {
            display: inline-block;
            padding: 0.625rem 1.5rem;
            margin: 0 0.375rem;
            border-radius: 24px;
            text-decoration: none;
            color: var(--text-secondary);
            transition: all 0.3s ease;
            cursor: pointer;
            font-weight: 500;
            font-size: 0.95rem;
            position: relative;
        }

        .category-tab:hover {
            background: var(--bg-secondary);
            color: var(--primary-color);
            transform: translateY(-2px);
        }

        .category-tab.active {
            background: var(--primary-color);
            color: white;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
        }

        /* 网站卡片美化 */
        .site-section {
            margin-bottom: 2.5rem;
        }

        .section-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 1.75rem;
        }

        .section-title {
            font-size: 1.375rem;
            font-weight: 600;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .section-icon {
            width: 40px;
            height: 40px;
            background: var(--primary-color);
            color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
            box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
        }

        .site-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
            gap: 1.25rem;
        }

        .site-card {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
            padding: 1.5rem;
            text-align: center;
            text-decoration: none;
            color: var(--text-primary);
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            cursor: pointer;
        }

        .site-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, transparent, rgba(24, 144, 255, 0.05));
            opacity: 0;
            transition: opacity 0.3s ease;
        }

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

        .site-card:hover::before {
            opacity: 1;
        }

        /* 编辑模式样式 */
        .edit-mode .site-card {
            cursor: move;
            border-style: dashed;
        }

        .edit-mode .site-card:hover {
            transform: scale(1.02);
        }

        .edit-mode .site-card.sortable-ghost {
            opacity: 0.5;
        }

        .edit-mode .site-card.sortable-drag {
            transform: rotate(5deg);
            box-shadow: var(--shadow-lg);
        }

        .site-icon {
            width: 60px;
            height: 60px;
            margin: 0 auto 1rem;
            border-radius: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 30px;
            background: var(--bg-secondary);
            transition: all 0.3s ease;
        }

        .site-card:hover .site-icon {
            transform: scale(1.1) rotate(5deg);
        }

        .site-name {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.375rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

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

        /* 添加网站按钮 */
        .add-site-btn {
            background: var(--bg-secondary);
            border: 2px dashed var(--border-color);
            color: var(--text-secondary);
            transition: all 0.3s ease;
        }

        .add-site-btn:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
            background: rgba(24, 144, 255, 0.05);
            transform: translateY(-6px);
        }

        /* 工具栏美化 */
        .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;
        }

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

        /* 友情链接区域 */
        .friend-links {
            background: var(--bg-secondary);
            padding: 3rem 0;
            border-top: 1px solid var(--border-color);
            border-bottom: 1px solid var(--border-color);
            margin: 3rem 0;
        }

        .friend-links-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        .friend-links-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
            text-align: center;
            margin-bottom: 2rem;
            position: relative;
            padding-bottom: 1rem;
        }

        .friend-links-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 60px;
            height: 3px;
            background: var(--primary-color);
            border-radius: 2px;
        }

        .friend-links-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 1.5rem;
        }

        .friend-link {
            display: flex;
            align-items: center;
            padding: 0.75rem 1rem;
            background: var(--bg-primary);
            border-radius: 12px;
            box-shadow: var(--shadow-sm);
            transition: all 0.3s ease;
            text-decoration: none;
            color: var(--text-primary);
            border: 1px solid var(--border-color);
        }

        .friend-link:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--primary-color);
        }

        .friend-link-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            background: var(--bg-secondary);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 1rem;
            font-size: 1.25rem;
        }

        .friend-link-name {
            font-weight: 500;
            font-size: 1rem;
        }

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

        .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;
            transition: all 0.3s ease;
            font-weight: 500;
        }

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

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

        /* 模态框美化 */
        .modal-content {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            border-radius: 16px;
        }

        .modal-header {
            border-bottom: 1px solid var(--border-color);
            padding: 1.5rem;
            background: var(--bg-secondary);
        }

        .modal-title {
            color: var(--text-primary);
            font-weight: 600;
        }

        .modal-body {
            padding: 1.5rem;
            color: var(--text-primary);
        }

        .form-control, .form-control-color {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
        }

        .form-control:focus {
            background: var(--bg-primary);
            border-color: var(--primary-color);
            color: var(--text-primary);
            box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
        }

        .form-label {
            color: var(--text-primary);
            font-weight: 500;
        }

        /* 栏目编辑模式按钮 */
        .section-edit-toggle {
            background: var(--info-color);
            border: none;
            color: white;
            border-radius: 20px;
            padding: 0.375rem 0.75rem;
            font-size: 0.8rem;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .section-edit-toggle:hover {
            background: #0a8ea0;
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
        }

        .section-edit-toggle.active {
            background: var(--success-color);
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .navbar-brand {
                font-size: 1.5rem;
            }

            .navbar-brand i {
                font-size: 2rem;
            }

            .site-grid {
                grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
                gap: 1rem;
            }

            .site-card {
                padding: 1.25rem;
            }

            .site-icon {
                width: 50px;
                height: 50px;
                font-size: 24px;
            }

            .toolbar {
                bottom: 20px;
                right: 20px;
            }

            .tool-btn {
                width: 46px;
                height: 46px;
                font-size: 1.1rem;
            }

            .category-tabs {
                padding: 0.75rem;
            }

            .category-tab {
                padding: 0.5rem 1.25rem;
                font-size: 0.875rem;
            }
            
            .friend-links-grid {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
        }

        /* 动画效果 */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(30px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

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

        /* 标签样式 */
        .badge-hot {
            background: var(--danger-color);
            color: white;
            font-size: 0.625rem;
            padding: 0.25rem 0.625rem;
            border-radius: 12px;
            position: absolute;
            top: 12px;
            right: 12px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(245, 34, 45, 0.3);
            z-index: 5;
        }

        .badge-new {
            background: var(--success-color);
            color: white;
            font-size: 0.625rem;
            padding: 0.25rem 0.625rem;
            border-radius: 12px;
            position: absolute;
            top: 12px;
            right: 12px;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
            z-index: 5;
        }

        /* Toast样式 */
        .toast-container {
            position: fixed;
            top: 20px;
            right: 20px;
            z-index: 1050;
        }

        .toast {
            background: var(--bg-primary);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            border-radius: 8px;
            box-shadow: var(--shadow-lg);
            min-width: 250px;
            margin-bottom: 10px;
        }

        .toast-header {
            background: transparent;
            border-bottom: 1px solid var(--border-color);
            color: var(--text-primary);
        }

        .toast-body {
            padding: 12px 15px;
        }

        .toast-success {
            border-left: 4px solid var(--success-color);
        }

        .toast-error {
            border-left: 4px solid var(--danger-color);
        }

        .toast-info {
            border-left: 4px solid var(--info-color);
        }

        .toast-warning {
            border-left: 4px solid var(--warning-color);
        }

        /* 加载动画 */
        .skeleton {
            background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border-color) 50%, var(--bg-secondary) 75%);
            background-size: 200% 100%;
            animation: loading 1.5s infinite;
        }

        @keyframes loading {
            0% { background-position: 200% 0; }
            100% { background-position: -200% 0; }
        }

        /* 删除按钮 */
        .delete-site-btn {
            position: absolute;
            top: 8px;
            right: 8px;
            background: var(--danger-color);
            color: white;
            border: none;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            cursor: pointer;
            opacity: 0;
            transition: all 0.3s ease;
            z-index: 10;
        }

        .site-card:hover .delete-site-btn {
            opacity: 1;
        }

        .delete-site-btn:hover {
            transform: scale(1.1);
            background: #c41d33;
        }
     /* 热门文章 - 简洁优雅版 */
        .hot-articles {
            background: var(--bg-primary);
            border-radius: 16px;
            box-shadow: var(--shadow-sm);
            margin-bottom: 3rem;
            border: 1px solid var(--border-color);
            overflow: hidden;
        }

        .hot-articles-header {
            padding: 1.75rem 2rem;
            border-bottom: 1px solid var(--border-color);
            background: var(--bg-secondary);
        }

        .hot-articles-title {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-primary);
            margin: 0;
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .hot-articles-icon {
            width: 40px;
            height: 40px;
            background: linear-gradient(135deg, var(--danger-color), #ff7a45);
            color: white;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.25rem;
        }

        .hot-articles-content {
            padding: 1.75rem 2rem;
        }

        .articles-categories {
            display: flex;
            gap: 1.5rem;
            margin-bottom: 1.75rem;
            flex-wrap: wrap;
        }

        .category-group {
            flex: 1;
            min-width: 280px;
        }

        .category-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 1rem;
            padding-bottom: 0.75rem;
            border-bottom: 1px solid var(--border-color);
        }

        .category-icon {
            width: 32px;
            height: 32px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
            color: white;
            flex-shrink: 0;
        }

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

        .article-list {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .article-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 0.75rem;
            border-radius: 8px;
            transition: background-color 0.2s ease;
            cursor: pointer;
        }

        .article-item:hover {
            background-color: var(--bg-secondary);
        }

        .article-rank {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
            flex-shrink: 0;
        }

        .rank-1, .rank-2, .rank-3 {
            color: white;
        }

        .rank-1 {
            background: var(--danger-color);
        }

        .rank-2 {
            background: #ff7a45;
        }

        .rank-3 {
            background: #ffc53d;
        }

        .rank-other {
            background: var(--bg-secondary);
            color: var(--text-secondary);
            border: 1px solid var(--border-color);
        }

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

        .article-title {
            font-size: 0.95rem;
            font-weight: 500;
            color: var(--text-primary);
            margin: 0;
            line-height: 1.4;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .article-meta {
            display: flex;
            align-items: center;
            gap: 1rem;
            margin-top: 0.25rem;
            font-size: 0.75rem;
            color: var(--text-secondary);
        }

        .article-date {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .article-views {
            display: flex;
            align-items: center;
            gap: 0.25rem;
        }

        .view-all-container {
            text-align: center;
            margin-top: 1.75rem;
            padding-top: 1.75rem;
            border-top: 1px solid var(--border-color);
        }

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

        .view-all-btn:hover {
            background: var(--secondary-color);
            gap: 0.75rem;
        }

        /* 响应式设计 - 热门文章区域 */
        @media (max-width: 768px) {
            .hot-articles-header {
                padding: 1.25rem 1.5rem;
            }
            
            .hot-articles-content {
                padding: 1.25rem 1.5rem;
            }
            
            .hot-articles-title {
                font-size: 1.25rem;
            }
            
            .articles-categories {
                gap: 1.25rem;
            }
            
            .category-group {
                min-width: 100%;
            }
            
            .article-item {
                padding: 0.625rem;
                gap: 10px;
            }
            
            .article-title {
                font-size: 0.875rem;
            }
            
            .article-meta {
                font-size: 0.7rem;
                gap: 0.75rem;
            }

        }