        :root {
            --color-primary: #4f46e5;
            --color-primary-light: #6366f1;
            --color-bg: #f8fafc;
            --color-surface: #ffffff;
            --color-border: #e2e8f0;
            --color-text: #0f172a;
            --color-text-body: #334155;
            --color-text-muted: #64748b;
        }

        * { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

        [x-cloak] { display: none !important; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
            background-color: var(--color-bg);
            color: var(--color-text-body);
            line-height: 1.6;
        }

        /* 极光渐变背景（首屏用） */
        .aurora-bg {
            background:
                radial-gradient(ellipse 80% 50% at 50% -20%, rgba(99,102,241,0.12), transparent),
                radial-gradient(ellipse 60% 40% at 80% 0%, rgba(168,85,247,0.08), transparent),
                radial-gradient(ellipse 50% 30% at 10% 10%, rgba(59,130,246,0.06), transparent);
        }

        /* 玻璃态卡片 */
        .glass-card {
            background: rgba(255,255,255,0.7);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.8);
        }

        /* 工具卡片悬浮效果 */
        .tool-card {
            transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .tool-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.05);
            border-color: rgba(79,70,229,0.3);
        }

        /* 文字截断 */
        .line-clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
        .line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

        /* 渐变文字 */
        .text-gradient {
            background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #2563eb 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* 按钮基础 */
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 500; border-radius: 10px; transition: all 0.2s ease; cursor: pointer; border: none; }
        .btn-primary { background: var(--color-primary); color: #fff; }
        .btn-primary:hover { background: #4338ca; box-shadow: 0 4px 12px rgba(79,70,229,0.3); }
        .btn-secondary { background: #fff; color: var(--color-text-body); border: 1px solid var(--color-border); }
        .btn-secondary:hover { background: #f8fafc; border-color: #cbd5e1; }
        .btn-ghost { background: transparent; color: var(--color-text-body); }
        .btn-ghost:hover { background: rgba(0,0,0,0.05); }

        /* 徽章 */
        .badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; }
        .badge-green { background: #ecfdf5; color: #059669; }
        .badge-amber { background: #fffbeb; color: #d97706; }
        .badge-red { background: #fef2f2; color: #dc2626; }
        .badge-blue { background: #eff6ff; color: #2563eb; }
        .badge-gray { background: #f1f5f9; color: #64748b; }

        /* ========== 文章正文排版样式 ========== */
        .article-content {
            font-size: 16px;
            line-height: 1.85;
            color: #334155;
            word-wrap: break-word;
        }
        .article-content p {
            margin: 0 0 1.4em 0;
            text-align: justify;
            text-indent: 2em;
        }
        /* 列表、引用、图片说明内的段落不缩进 */
        .article-content li p,
        .article-content blockquote p,
        .article-content figcaption p {
            text-indent: 0;
        }
        .article-content p:last-child {
            margin-bottom: 0;
        }
        .article-content h1,
        .article-content h2,
        .article-content h3,
        .article-content h4,
        .article-content h5,
        .article-content h6 {
            font-weight: 700;
            color: #0f172a;
            line-height: 1.4;
            margin: 2em 0 0.8em 0;
        }
        .article-content h1 { font-size: 1.75em; }
        .article-content h2 {
            font-size: 1.45em;
            padding-bottom: 0.4em;
            border-bottom: 2px solid #e2e8f0;
        }
        .article-content h3 { font-size: 1.2em; }
        .article-content h4 { font-size: 1.05em; }
        .article-content h5, .article-content h6 { font-size: 1em; }

        .article-content ul,
        .article-content ol {
            margin: 0 0 1.4em 0;
            padding-left: 1.8em;
        }
        .article-content li {
            margin-bottom: 0.5em;
            line-height: 1.75;
        }
        .article-content li:last-child {
            margin-bottom: 0;
        }
        .article-content ul { list-style: disc; }
        .article-content ol { list-style: decimal; }

        .article-content strong,
        .article-content b {
            font-weight: 700;
            color: #0f172a;
        }
        .article-content em,
        .article-content i {
            font-style: italic;
        }

        .article-content a {
            color: #4f46e5;
            text-decoration: none;
            border-bottom: 1px solid rgba(79,70,229,0.3);
            transition: all 0.2s;
        }
        .article-content a:hover {
            color: #4338ca;
            border-bottom-color: #4338ca;
        }

        .article-content blockquote {
            margin: 1.4em 0;
            padding: 0.8em 1.2em;
            border-left: 4px solid #6366f1;
            background: #f8fafc;
            color: #475569;
            border-radius: 0 8px 8px 0;
        }
        .article-content blockquote p {
            margin: 0;
        }

        .article-content code {
            font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
            font-size: 0.9em;
            background: #f1f5f9;
            color: #be185d;
            padding: 0.15em 0.4em;
            border-radius: 4px;
        }
        .article-content pre {
            margin: 1.4em 0;
            padding: 1em 1.2em;
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 10px;
            overflow-x: auto;
            font-size: 0.9em;
            line-height: 1.6;
        }
        .article-content pre code {
            background: none;
            color: inherit;
            padding: 0;
            font-size: inherit;
        }

        .article-content img {
            max-width: 100%;
            height: auto;
            border-radius: 10px;
            margin: 1.4em 0;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        }

        .article-content hr {
            border: none;
            border-top: 1px solid #e2e8f0;
            margin: 2em 0;
        }

        .article-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.4em 0;
            font-size: 0.95em;
        }
        .article-content th,
        .article-content td {
            padding: 0.7em 1em;
            border: 1px solid #e2e8f0;
            text-align: left;
        }
        .article-content th {
            background: #f8fafc;
            font-weight: 600;
            color: #0f172a;
        }
        .article-content tr:nth-child(even) td {
            background: #fafbfc;
        }
        .article-content .table-wrap {
            overflow-x: auto;
            margin: 1.4em 0;
            -webkit-overflow-scrolling: touch;
        }
        .article-content .table-wrap table {
            margin: 0;
            min-width: 600px;
        }

        /* 暗色模式文章样式 */
        .dark .article-content { color: #cbd5e1; }
        .dark .article-content h1, .dark .article-content h2,
        .dark .article-content h3, .dark .article-content h4,
        .dark .article-content h5, .dark .article-content h6 { color: #f1f5f9; }
        .dark .article-content h2 { border-bottom-color: #334155; }
        .dark .article-content strong, .dark .article-content b { color: #f1f5f9; }
        .dark .article-content blockquote { background: #1e293b; color: #94a3b8; border-left-color: #818cf8; }
        .dark .article-content code { background: #334155; color: #f472b6; }
        .dark .article-content a { color: #818cf8; border-bottom-color: rgba(129,140,248,0.3); }
        .dark .article-content th { background: #1e293b; color: #f1f5f9; }
        .dark .article-content th, .dark .article-content td { border-color: #334155; }
        .dark .article-content tr:nth-child(even) td { background: #1e293b; }
        /* ========== 文章正文排版样式结束 ========== */
        .badge-indigo { background: #eef2ff; color: #4f46e5; }

        /* 输入框 */
        .input {
            width: 100%; height: 42px; padding: 0 14px;
            background: #fff; border: 1px solid var(--color-border);
            border-radius: 10px; font-size: 14px; color: var(--color-text);
            transition: all 0.2s ease; outline: none;
        }
        .input:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); }
        .input::placeholder { color: #94a3b8; }

        /* 滚动条 */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

        /* 选中文本 */
        ::selection { background: rgba(79,70,229,0.15); color: var(--color-text); }

        /* 排名徽章 */
        .rank-badge {
            display: inline-flex; align-items: center; justify-content: center;
            width: 24px; height: 24px; border-radius: 6px; font-size: 12px; font-weight: 700;
        }
        .rank-1 { background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #fff; }
        .rank-2 { background: linear-gradient(135deg, #94a3b8, #64748b); color: #fff; }
        .rank-3 { background: linear-gradient(135deg, #fb923c, #ea580c); color: #fff; }
        .rank-default { background: #f1f5f9; color: #64748b; }

        /* 骨架屏 */
        .skeleton { background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%); background-size: 200% 100%; animation: skeleton 1.5s infinite; }
        @keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

        /* 弹窗动画 */
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
        @keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
        .animate-fade-in { animation: fadeIn 0.2s ease-out; }
        .animate-scale-in { animation: scaleIn 0.25s ease-out; }

        /* ========== 分页样式 ========== */
        .pagination { display: flex; align-items: center; gap: 4px; list-style: none; padding: 0; margin: 0; }        .pagination li { display: inline-flex; }
        .pagination li a,
        .pagination li span {
            display: inline-flex; align-items: center; justify-content: center;
            min-width: 36px; height: 36px; padding: 0 10px;
            border-radius: 8px; font-size: 14px; font-weight: 500;
            color: #64748b; background: #fff; border: 1px solid #e2e8f0;
            transition: all 0.15s ease; text-decoration: none;
        }
        .pagination li a:hover { color: #4f46e5; border-color: #c7d2fe; background: #eef2ff; }
        .pagination li.active span { color: #fff; background: #4f46e5; border-color: #4f46e5; }
        .pagination li.disabled span { color: #cbd5e1; background: #f8fafc; cursor: not-allowed; }

        /* 横向滚动条美化 */
        .style-scroll::-webkit-scrollbar { height: 4px; }
        .style-scroll::-webkit-scrollbar-track { background: transparent; }
        .style-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; }
        .style-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }