        /* ========================================
           CSS VARIABLES - DARK TECH DESIGN SYSTEM
           ======================================== */
        :root {
            --bg-deep: #0a0f1e;
            --bg-primary: #0f172a;
            --bg-card: rgba(15, 23, 42, 0.6);
            --bg-card-hover: rgba(30, 41, 59, 0.7);
            --bg-surface: rgba(30, 41, 59, 0.45);
            --bg-input: rgba(15, 23, 42, 0.8);
            --border-subtle: rgba(99, 102, 241, 0.15);
            --border-glow: rgba(99, 102, 241, 0.3);
            --border-light: rgba(148, 163, 184, 0.12);
            --text-primary: #e2e8f0;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --accent: #6366f1;
            --accent-light: #818cf8;
            --accent-glow: rgba(99, 102, 241, 0.4);
            --cyan: #22d3ee;
            --cyan-glow: rgba(34, 211, 238, 0.35);
            --emerald: #34d399;
            --emerald-glow: rgba(52, 211, 153, 0.35);
            --purple: #a78bfa;
            --purple-glow: rgba(167, 139, 250, 0.35);
            --rose: #fb7185;
            --rose-glow: rgba(251, 113, 133, 0.35);
            --amber: #fbbf24;
            --teal: #2dd4bf;
            --pink: #f472b6;
            --orange: #fb923c;
            --success: #34d399;
            --danger: #f87171;
            --warning: #fbbf24;
            --font-display: 'Outfit', 'Noto Sans SC', sans-serif;
            --font-body: 'Noto Sans SC', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
            --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 18px;
            --radius-xl: 24px;
            --radius-full: 100px;
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
            --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.35);
            --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.45);
            --shadow-xl: 0 32px 80px rgba(0, 0, 0, 0.55);
            --shadow-glow-sm: 0 0 20px rgba(99, 102, 241, 0.2);
            --shadow-glow-md: 0 0 40px rgba(99, 102, 241, 0.25);
            --shadow-glow-lg: 0 0 60px rgba(99, 102, 241, 0.3);
            --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
            --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
            --ease-bounce: cubic-bezier(0.68, -0.6, 0.32, 1.6);
            --blur-sm: 8px;
            --blur-md: 16px;
            --blur-lg: 24px;
        }

        /* ========================================
           GLOBAL RESET & BASE
           ======================================== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: var(--font-body);
            background: var(--bg-deep);
            color: var(--text-primary);
            line-height: 1.6;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            overflow-x: hidden;
        }

        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 70% 60% at 50% 0%, rgba(99, 102, 241, 0.06) 0%, transparent 70%),
                radial-gradient(ellipse 50% 40% at 80% 50%, rgba(34, 211, 238, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse 40% 50% at 20% 30%, rgba(167, 139, 250, 0.04) 0%, transparent 60%);
            pointer-events: none;
            z-index: -1;
        }

        ::-webkit-scrollbar { width: 6px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, 0.25); border-radius: 10px; }
        ::-webkit-scrollbar-thumb:hover { background: rgba(99, 102, 241, 0.4); }

        /* ========================================
           ID ANCHOR OFFSET
           ======================================== */
        #a_tools { scroll-margin-top: 90px; }

        /* ========================================
           MAIN CONTENT
           ======================================== */
        .main-content {
            padding: 0 0 80px;
        }

        .container {
            max-width: 1240px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* ========================================
           HERO - DEEP SPACE CYBERPUNK
           ======================================== */
        .hero {
            position: relative;
            text-align: center;
            padding: 44px 40px 76px;
            margin-bottom: 0;
            overflow: visible;
            background:
                radial-gradient(90% 60% at 50% -12%, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.05) 45%, transparent 70%),
                linear-gradient(180deg, #020617 0%, #0f172a 30%, #141b3d 55%, #0f1830 72%, rgba(10, 15, 30, 0) 100%);
            color: white;
            border-radius: 0;
            isolation: isolate;
        }

        .hero-inner {
            position: relative;
            z-index: 2;
            max-width: 1280px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1.12fr 1fr;
            gap: 56px;
            align-items: center;
            text-align: left;
        }

        .hero-left {
            text-align: left;
        }

        .hero-right {
            text-align: left;
        }

        /* Animated grid background */
        .hero::before {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background-image:
                linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
                linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
            background-size: 64px 64px;
            mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
            -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 100%);
            animation: gridShift 22s linear infinite;
        }

        @keyframes gridShift {
            0% { transform: translate(0, 0); }
            100% { transform: translate(64px, 64px); }
        }

        /* Dot pattern overlay */
        .hero::after {
            content: '';
            position: absolute;
            inset: 0;
            z-index: 0;
            background-image: radial-gradient(rgba(129, 140, 248, 0.06) 1px, transparent 1px);
            background-size: 28px 28px;
            mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
            -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 40%, black 20%, transparent 70%);
            pointer-events: none;
        }

        /* Scan line effect */
        .hero-scanlines {
            position: absolute;
            inset: 0;
            z-index: 1;
            pointer-events: none;
            background: repeating-linear-gradient(
                0deg,
                transparent,
                transparent 2px,
                rgba(15, 23, 42, 0.03) 2px,
                rgba(15, 23, 42, 0.03) 4px
            );
            opacity: 0.6;
        }

        /* Floating orbs */
        .hero-orb {
            position: absolute;
            border-radius: 50%;
            pointer-events: none;
            z-index: 1;
        }

        .hero-orb-1 {
            width: 340px;
            height: 340px;
            top: -100px;
            right: -80px;
            background: radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(34, 211, 238, 0.04) 40%, transparent 70%);
            animation: orbFloat1 9s ease-in-out infinite;
            filter: blur(2px);
        }

        .hero-orb-2 {
            width: 240px;
            height: 240px;
            bottom: -60px;
            left: -60px;
            background: radial-gradient(circle, rgba(167, 139, 250, 0.18), rgba(167, 139, 250, 0.04) 40%, transparent 70%);
            animation: orbFloat2 11s ease-in-out infinite;
            filter: blur(2px);
        }

        .hero-orb-3 {
            width: 180px;
            height: 180px;
            top: 35%;
            left: 6%;
            background: radial-gradient(circle, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.03) 45%, transparent 70%);
            animation: orbFloat3 8s ease-in-out infinite;
            filter: blur(2px);
        }

        .hero-orb-4 {
            width: 150px;
            height: 150px;
            top: 20%;
            right: 12%;
            background: radial-gradient(circle, rgba(251, 113, 133, 0.13), rgba(251, 113, 133, 0.02) 45%, transparent 70%);
            animation: orbFloat4 10s ease-in-out infinite;
            filter: blur(2px);
        }

        @keyframes orbFloat1 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            33% { transform: translate(-40px, 25px) scale(1.06); }
            66% { transform: translate(15px, -10px) scale(0.95); }
        }

        @keyframes orbFloat2 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -35px) scale(1.08); }
        }

        @keyframes orbFloat3 {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(20px, 20px) scale(0.94); }
        }

        @keyframes orbFloat4 {
            0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
            50% { transform: translate(-25px, -15px) scale(1.05) rotate(3deg); }
        }

        /* Hero badge */
        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 8px 22px;
            background: rgba(99, 102, 241, 0.12);
            backdrop-filter: blur(var(--blur-sm));
            -webkit-backdrop-filter: blur(var(--blur-sm));
            border: 1px solid rgba(99, 102, 241, 0.2);
            border-radius: var(--radius-full);
            font-size: 0.85rem;
            font-weight: 500;
            color: rgba(226, 232, 240, 0.9);
            margin-bottom: 22px;
            position: relative;
            z-index: 2;
            letter-spacing: 0.02em;
            animation: fadeInDown 0.8s var(--ease-out) both;
        }

        .hero-badge-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #22d3ee;
            animation: dotPulse 2s ease-in-out infinite;
            box-shadow: 0 0 8px rgba(34, 211, 238, 0.6);
        }

        @keyframes dotPulse {
            0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5), 0 0 8px rgba(34, 211, 238, 0.6); }
            50% { opacity: 0.7; box-shadow: 0 0 0 10px rgba(34, 211, 238, 0), 0 0 4px rgba(34, 211, 238, 0.3); }
        }

        /* Hero title */
        .hero h1 {
            font-family: var(--font-display);
            font-size: clamp(2.2rem, 4.2vw, 3.4rem);
            font-weight: 900;
            margin-bottom: 16px;
            position: relative;
            z-index: 2;
            line-height: 1.08;
            letter-spacing: -0.03em;
            animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
        }

        .hero h1 .gradient-text {
            background: linear-gradient(135deg, #6366f1 0%, #818cf8 25%, #22d3ee 50%, #a78bfa 75%, #c084fc 100%);
            background-size: 200% auto;
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: gradientShift 4s ease infinite;
        }

        @keyframes gradientShift {
            0%, 100% { background-position: 0% center; }
            50% { background-position: 100% center; }
        }

        .hero-desc {
            font-family: var(--font-body);
            font-size: clamp(0.95rem, 1.6vw, 1.1rem);
            max-width: 560px;
            margin: 0 0 26px;
            position: relative;
            z-index: 2;
            opacity: 0.8;
            line-height: 1.7;
            font-weight: 400;
            color: #cbd5e1;
            text-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
            animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
        }

        /* 搜索框 */
        .hero-search {
            position: relative;
            z-index: 999;
            max-width: 520px;
            margin: 0 0 24px;
            animation: fadeInUp 0.8s var(--ease-out) 0.25s both;
        }
        .hero-search-inner {
            position: relative;
        }
        .hero-search-inner input {
            width: 100%;
            padding: 16px 56px 16px 24px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.15);
            border-radius: var(--radius-full);
            font-family: var(--font-body);
            font-size: 1rem;
            color: white;
            outline: none;
            transition: all 0.35s var(--ease-out);
            backdrop-filter: blur(12px);
        }
        .hero-search-inner input::placeholder { color: rgba(255,255,255,0.4); }
        .hero-search-inner input:focus {
            border-color: rgba(99,102,241,0.6);
            background: rgba(255,255,255,0.12);
            box-shadow: 0 0 30px rgba(99,102,241,0.2);
        }
        .hero-search-icon {
            position: absolute;
            right: 18px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.5);
            font-size: 1.1rem;
            pointer-events: none;
        }
        .hero-search-clear {
            position: absolute;
            right: 44px;
            top: 50%;
            transform: translateY(-50%);
            color: rgba(255,255,255,0.4);
            cursor: pointer;
            padding: 4px;
            display: none;
            font-size: 0.9rem;
        }
        .hero-search-clear.visible { display: block; }
        .hero-search-clear:hover { color: rgba(255,255,255,0.8); }

        /* 搜索浮层 (固定在页面顶部，不受 hero 层级影响) */
        .search-overlay {
            position: fixed;
            inset: 0;
            z-index: 9999;
            pointer-events: none;
        }
        .search-results-dropdown--fixed {
            position: fixed;
            top: 318px;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 560px;
            pointer-events: auto;
        }
        .search-results-dropdown {
            background: rgba(15,23,42,0.98);
            backdrop-filter: blur(20px);
            border: 1px solid rgba(255,255,255,0.1);
            border-radius: 16px;
            max-height: 400px;
            overflow-y: auto;
            box-shadow: 0 32px 80px rgba(0,0,0,0.55);
        }
        .search-result-item {
            display: flex;
            align-items: center;
            gap: 14px;
            padding: 14px 20px;
            cursor: pointer;
            transition: all 0.2s;
            text-decoration: none;
            border-bottom: 1px solid rgba(255,255,255,0.04);
        }
        .search-result-item:last-child { border-bottom: none; }
        .search-result-item:hover { background: rgba(99,102,241,0.15); }
        .search-result-icon {
            width: 40px; height: 40px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            font-size: 1rem; color: white; flex-shrink: 0;
        }
        .search-result-info h4 { color: #e2e8f0; font-size: 0.9rem; font-weight: 600; margin: 0; }
        .search-result-info span { color: #64748b; font-size: 0.75rem; display: block; margin-top: 2px; }
        .search-no-result { padding: 24px; text-align: center; color: #64748b; font-size: 0.9rem; }

        /* 工具分类卡片 - 修复 cursor */
        .category-card { cursor: pointer; text-decoration: none; display: block; }
        .category-card:hover { transform: translateY(-6px); }

        /* 分类工具详情区 - 左侧侧边栏 + 右侧工具区 */
        .tools-layout {
            display: flex;
            gap: 32px;
            max-width: 1280px;
            margin: 0 auto 64px;
            padding: 56px 20px 0;
            align-items: flex-start;
        }
        .tools-sidebar {
            width: 200px;
            display: block;
            flex-shrink: 0;
            position: sticky;
            top: 88px;
            background: rgba(15,23,42,0.6);
            backdrop-filter: blur(16px);
            border: 1px solid rgba(255,255,255,0.06);
            border-radius: 16px;
            padding: 12px 0;
        }
        .tools-sidebar-title {
            font-size: 0.75rem;
            font-weight: 600;
            color: #64748b;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            padding: 0 16px 12px;
            border-bottom: 1px solid rgba(255,255,255,0.06);
            margin-bottom: 4px;
        }
        .sidebar-cat {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 10px 16px;
            cursor: pointer;
            transition: all 0.2s ease;
            border-left: 2px solid transparent;
            color: #94a3b8;
            font-size: 0.88rem;
            font-weight: 500;
            text-decoration: none;
            gap: 8px;
        }
        .sidebar-cat:hover {
            background: rgba(99,102,241,0.06);
            color: #cbd5e1;
        }
        .sidebar-cat.active {
            background: rgba(99,102,241,0.12);
            color: #818cf8;
            border-left-color: #6366f1;
            font-weight: 600;
        }
        .sidebar-cat-icon {
            width: 20px;
            text-align: center;
            font-size: 0.8rem;
        }
        .sidebar-cat-name {
            flex: 1;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .sidebar-cat-count {
            background: rgba(255,255,255,0.08);
            color: #94a3b8;
            border-radius: 20px;
            padding: 1px 8px;
            font-size: 0.7rem;
            font-weight: 700;
            min-width: 22px;
            text-align: center;
        }
        .sidebar-cat.active .sidebar-cat-count {
            background: rgba(99,102,241,0.25);
            color: #a5b4fc;
        }

        .tools-content {
            flex: 1;
            min-width: 0;
        }
        .category-detail { margin-bottom: 0; }

        @media (max-width: 768px) {
            .tools-layout {
                flex-direction: column;
                gap: 16px;
                padding: 0 12px;
            }
            .tools-sidebar {
                width: 100%;
                position: static;
                display: flex;
                overflow-x: auto;
                padding: 8px;
                gap: 4px;
                flex-wrap: nowrap;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
                border-radius: 12px;
            }
            .tools-sidebar::-webkit-scrollbar { display: none; }
            .tools-sidebar-title { display: none; }
            .sidebar-cat {
                flex-shrink: 0;
                border-left: none;
                border-bottom: 2px solid transparent;
                padding: 8px 14px;
                border-radius: 8px;
                font-size: 0.8rem;
            }
            .sidebar-cat.active {
                border-left: none;
                border-bottom-color: #6366f1;
            }
        }
        .category-detail-header { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
        .category-detail-icon { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: white; flex-shrink: 0; }
        .category-detail-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #e2e8f0; }
        .category-detail-sub { color: #94a3b8; font-size: 0.85rem; }

        .tool-link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
        .tool-link-card { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-md); text-decoration: none; transition: all 0.3s var(--ease-out); }
        .tool-link-card:hover { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.25); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(99,102,241,0.1); }
        .tool-link-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.9rem; color: white; flex-shrink: 0; }
        .tool-link-info h4 { color: #e2e8f0; font-size: 0.9rem; font-weight: 600; margin: 0 0 2px; }
        .tool-link-info p { color: #64748b; font-size: 0.78rem; margin: 0; }

        .hero-actions {
            position: relative;
            z-index: 2;
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 16px;
            animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
        }

        .hero-btn-primary {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 15px 38px;
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            color: white;
            font-family: var(--font-body);
            font-size: 1.05rem;
            font-weight: 600;
            border-radius: var(--radius-md);
            text-decoration: none;
            border: none;
            cursor: pointer;
            transition: all 0.35s var(--ease-out);
            box-shadow: 0 0 30px rgba(99, 102, 241, 0.35), 0 4px 20px rgba(79, 70, 229, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
            position: relative;
        }

        .hero-btn-primary::after {
            content: '';
            position: absolute;
            inset: -2px;
            border-radius: calc(var(--radius-md) + 2px);
            background: linear-gradient(135deg, #6366f1, #22d3ee, #a78bfa);
            z-index: -1;
            opacity: 0;
            transition: opacity 0.35s var(--ease-out);
            filter: blur(8px);
        }

        .hero-btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 50px rgba(99, 102, 241, 0.5), 0 8px 32px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
        }

        .hero-btn-primary:hover::after {
            opacity: 0.5;
        }

        .hero-btn-primary:active {
            transform: translateY(-1px);
        }

        .hero-btn-primary .btn-arrow {
            transition: transform 0.3s var(--ease-out);
        }

        .hero-btn-primary:hover .btn-arrow {
            transform: translateX(4px);
        }

        /* Hex decoration */
        .hero-hex {
            position: absolute;
            z-index: 1;
            pointer-events: none;
            opacity: 0.06;
            border: 1px solid rgba(129, 140, 248, 0.4);
            clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
        }

        .hero-hex-1 { width: 120px; height: 104px; top: 15%; left: 8%; animation: hexFloat 6s ease-in-out infinite; }
        .hero-hex-2 { width: 80px; height: 69px; top: 55%; right: 10%; animation: hexFloat 7s ease-in-out 2s infinite; }
        .hero-hex-3 { width: 60px; height: 52px; bottom: 20%; left: 40%; animation: hexFloat 5s ease-in-out 1s infinite; }

        @keyframes hexFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.06; }
            50% { transform: translateY(-12px) rotate(5deg); opacity: 0.1; }
        }

        /* Hero stats */
        .hero-stats {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 40px;
            margin-top: 36px;
            position: relative;
            z-index: 2;
            animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
        }

        .hero-stat {
            text-align: center;
        }

        .hero-stat-value {
            font-family: var(--font-display);
            font-size: 1.8rem;
            font-weight: 800;
            line-height: 1.2;
            color: white;
            background: linear-gradient(135deg, #e2e8f0, #f8fafc);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
        }

        .hero-stat-label {
            font-size: 0.88rem;
            color: rgba(148, 163, 184, 0.8);
            margin-top: 6px;
            font-weight: 400;
            letter-spacing: 0.02em;
        }

        .hero-stat-divider {
            width: 1px;
            height: 44px;
            background: linear-gradient(180deg, transparent, rgba(99, 102, 241, 0.3), transparent);
        }

        /* ========================================
           QUICK TOOLS - HERO RIGHT PANEL
           ======================================== */
        .hero-quick-panel {
            position: relative;
            background: rgba(15, 23, 42, 0.66);
            backdrop-filter: blur(var(--blur-lg));
            -webkit-backdrop-filter: blur(var(--blur-lg));
            border-radius: var(--radius-xl);
            padding: 24px 24px 26px;
            box-shadow: var(--shadow-xl), 0 0 44px rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.18);
            overflow: hidden;
        }

        .hero-quick-panel::before {
            content: '';
            position: absolute;
            top: 0;
            left: 16%;
            right: 16%;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(129, 140, 248, 0.55), transparent);
        }

        .quick-tools-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 18px;
        }

        .quick-tools-title {
            font-family: var(--font-display);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            gap: 10px;
            letter-spacing: -0.01em;
        }

        .quick-tools-title-icon {
            width: 32px;
            height: 32px;
            border-radius: var(--radius-sm);
            background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(129, 140, 248, 0.16));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--accent-light);
            font-size: 0.9rem;
            border: 1px solid rgba(99, 102, 241, 0.22);
        }

        .quick-tools-more {
            font-family: var(--font-body);
            font-size: 0.8rem;
            color: var(--text-secondary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: color 0.3s var(--ease-out);
        }

        .quick-tools-more:hover {
            color: var(--accent-light);
        }

        .quick-tools-more i {
            font-size: 0.7rem;
            transition: transform 0.3s var(--ease-out);
        }

        .quick-tools-more:hover i {
            transform: translateX(3px);
        }

        .quick-tools-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 12px;
        }

        .quick-tool-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 13px 14px;
            border-radius: var(--radius-md);
            background: rgba(30, 41, 59, 0.42);
            border: 1px solid rgba(99, 102, 241, 0.09);
            cursor: pointer;
            transition: all 0.35s var(--ease-out);
            text-decoration: none;
            color: inherit;
            position: relative;
            overflow: hidden;
        }

        .quick-tool-item::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.35s var(--ease-out);
            pointer-events: none;
        }

        .quick-tool-item:hover {
            background: rgba(30, 41, 59, 0.7);
            border-color: rgba(99, 102, 241, 0.28);
            box-shadow: 0 0 26px rgba(99, 102, 241, 0.14);
            transform: translateY(-3px);
        }

        .quick-tool-icon {
            width: 44px;
            height: 44px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.05rem;
            color: white;
            flex-shrink: 0;
            transition: all 0.35s var(--ease-spring);
            position: relative;
        }

        .quick-tool-item:hover .quick-tool-icon {
            transform: scale(1.08);
        }

        .quick-tool-icon.compress { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 0 16px rgba(99, 102, 241, 0.3); }
        .quick-tool-icon.convert { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 0 16px rgba(6, 182, 212, 0.3); }
        .quick-tool-icon.resize { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 0 16px rgba(167, 139, 250, 0.3); }
        .quick-tool-icon.video { background: linear-gradient(135deg, #22d3ee, #06b6d4); box-shadow: 0 0 16px rgba(34, 211, 238, 0.3); }
        .quick-tool-icon.color { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 0 16px rgba(251, 113, 133, 0.3); }

        .quick-tool-info h4 {
            font-family: var(--font-body);
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
            white-space: nowrap;
        }

        .quick-tool-info p {
            font-size: 0.74rem;
            color: var(--text-muted);
            font-weight: 400;
            white-space: nowrap;
        }

        /* ========================================
           TOOL CATEGORIES SHOWCASE
           ======================================== */
        .categories-section {
            padding: 0 20px;
            margin-bottom: 72px;
        }

        .categories-section .container {
            max-width: 1240px;
        }

        .section-header {
            text-align: center;
            margin-bottom: 44px;
        }

        .section-label {
            display: inline-block;
            font-family: var(--font-mono);
            font-size: 0.8rem;
            font-weight: 500;
            color: var(--accent-light);
            text-transform: uppercase;
            letter-spacing: 0.15em;
            margin-bottom: 12px;
            padding: 4px 14px;
            border-radius: var(--radius-full);
            background: rgba(99, 102, 241, 0.1);
            border: 1px solid rgba(99, 102, 241, 0.15);
        }

        .section-title {
            font-family: var(--font-display);
            font-size: clamp(1.8rem, 3.5vw, 2.4rem);
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.02em;
            line-height: 1.2;
        }

        .section-desc {
            font-size: 1rem;
            color: var(--text-secondary);
            margin-top: 10px;
            font-weight: 400;
        }

        .categories-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 18px;
        }

        .category-card {
            position: relative;
            padding: 32px 22px 26px;
            background: var(--bg-card);
            backdrop-filter: blur(var(--blur-sm));
            -webkit-backdrop-filter: blur(var(--blur-sm));
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            text-align: center;
            cursor: pointer;
            transition: all 0.4s var(--ease-out);
            overflow: hidden;
            text-decoration: none;
            color: inherit;
            display: block;
        }

        .category-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0;
            transition: opacity 0.4s var(--ease-out);
            pointer-events: none;
            border-radius: var(--radius-lg);
        }

        .category-card:hover {
            transform: translateY(-6px);
            border-color: var(--border-glow);
            box-shadow: var(--shadow-glow-sm), var(--shadow-lg);
            background: var(--bg-card-hover);
        }

        .category-card:hover::before {
            opacity: 0.08;
        }

        .category-card:nth-child(1):hover::before { background: radial-gradient(circle at 50% 0%, #6366f1, transparent 70%); }
        .category-card:nth-child(2):hover::before { background: radial-gradient(circle at 50% 0%, #06b6d4, transparent 70%); }
        .category-card:nth-child(3):hover::before { background: radial-gradient(circle at 50% 0%, #34d399, transparent 70%); }
        .category-card:nth-child(4):hover::before { background: radial-gradient(circle at 50% 0%, #fb923c, transparent 70%); }
        .category-card:nth-child(5):hover::before { background: radial-gradient(circle at 50% 0%, #a78bfa, transparent 70%); }
        .category-card:nth-child(6):hover::before { background: radial-gradient(circle at 50% 0%, #818cf8, transparent 70%); }
        .category-card:nth-child(7):hover::before { background: radial-gradient(circle at 50% 0%, #2dd4bf, transparent 70%); }
        .category-card:nth-child(8):hover::before { background: radial-gradient(circle at 50% 0%, #f472b6, transparent 70%); }
        .category-card:nth-child(9):hover::before { background: radial-gradient(circle at 50% 0%, #fbbf24, transparent 70%); }
        .category-card:nth-child(10):hover::before { background: radial-gradient(circle at 50% 0%, #fb7185, transparent 70%); }

        .category-card-icon {
            width: 56px;
            height: 56px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            color: white;
            margin: 0 auto 16px;
            transition: all 0.4s var(--ease-spring);
        }

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

        .category-card-icon.cat-image { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35); }
        .category-card-icon.cat-video { background: linear-gradient(135deg, #06b6d4, #0891b2); box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35); }
        .category-card-icon.cat-audio { background: linear-gradient(135deg, #34d399, #059669); box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35); }
        .category-card-icon.cat-document { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 4px 20px rgba(251, 146, 60, 0.35); }
        .category-card-icon.cat-color { background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 4px 20px rgba(167, 139, 250, 0.35); }
        .category-card-icon.cat-dev { background: linear-gradient(135deg, #818cf8, #4f46e5); box-shadow: 0 4px 20px rgba(129, 140, 248, 0.35); }
        .category-card-icon.cat-text { background: linear-gradient(135deg, #2dd4bf, #0d9488); box-shadow: 0 4px 20px rgba(45, 212, 191, 0.35); }
        .category-card-icon.cat-calc { background: linear-gradient(135deg, #f472b6, #db2777); box-shadow: 0 4px 20px rgba(244, 114, 182, 0.35); }
        .category-card-icon.cat-time { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 20px rgba(251, 191, 36, 0.35); }
        .category-card-icon.cat-game { background: linear-gradient(135deg, #fb7185, #e11d48); box-shadow: 0 4px 20px rgba(251, 113, 133, 0.35); }

        .category-card-name {
            font-family: var(--font-body);
            font-size: 1.05rem;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
            letter-spacing: -0.01em;
        }

        .category-card-count {
            font-family: var(--font-mono);
            font-size: 0.8rem;
            color: var(--text-muted);
            font-weight: 500;
        }

        /* ========================================
           TOOL CONTAINER - 工具操作区 (DARK)
           ======================================== */
        .tool-container-wrapper {
            padding: 0 20px;
            margin-bottom: 72px;
        }

        .tool-container-wrapper .container {
            max-width: 1240px;
        }

        .tool-container {
            background: rgba(15, 23, 42, 0.65);
            backdrop-filter: blur(var(--blur-sm));
            -webkit-backdrop-filter: blur(var(--blur-sm));
            border-radius: var(--radius-xl);
            padding: 36px 40px;
            box-shadow: var(--shadow-lg);
            border: 1px solid var(--border-subtle);
            animation: fadeInUp 0.6s var(--ease-out) both;
        }

        .tool-container h2 {
            font-family: var(--font-display);
            margin-bottom: 8px;
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .tool-container > p {
            margin-bottom: 30px;
            color: var(--text-secondary);
            font-size: 0.95rem;
            line-height: 1.6;
        }

        .tool-tabs {
            display: flex;
            border-bottom: 2px solid rgba(99, 102, 241, 0.1);
            margin-bottom: 30px;
            gap: 0;
        }

        .tool-tab {
            padding: 14px 26px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
            margin-bottom: -2px;
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 0.95rem;
            color: var(--text-muted);
            transition: all 0.3s var(--ease-out);
            position: relative;
        }

        .tool-tab:hover {
            color: var(--text-secondary);
        }

        .tool-tab.active {
            border-bottom-color: var(--accent);
            color: var(--accent-light);
        }

        .tab-content {
            display: none;
            animation: fadeInUp 0.4s var(--ease-out) both;
        }

        .tab-content.active {
            display: block;
        }

        /* Upload area - dark */
        .upload-area {
            border: 2px dashed rgba(99, 102, 241, 0.2);
            border-radius: var(--radius-lg);
            padding: 44px 24px;
            text-align: center;
            margin-bottom: 24px;
            cursor: pointer;
            transition: all 0.35s var(--ease-out);
            background: rgba(15, 23, 42, 0.5);
            position: relative;
        }

        .upload-area:hover {
            border-color: var(--accent-light);
            background: rgba(99, 102, 241, 0.05);
            transform: translateY(-2px);
            box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
        }

        .upload-area i {
            font-size: 2.6rem;
            color: var(--accent-light);
            margin-bottom: 14px;
            transition: all 0.3s var(--ease-spring);
            display: block;
        }

        .upload-area:hover i {
            transform: scale(1.1) translateY(-4px);
        }

        .upload-area p {
            color: var(--text-secondary);
            margin-bottom: 6px;
            font-size: 0.95rem;
        }

        .upload-area p:last-child {
            font-size: 0.85rem;
            opacity: 0.65;
        }

        .upload-status {
            line-height: 44px;
            margin-top: 16px;
            border-radius: var(--radius-sm);
            background: rgba(52, 211, 153, 0.08);
            padding: 0 18px;
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.9rem;
            justify-content: center;
        }

        .upload-status i {
            font-size: 1rem;
            color: var(--success);
            margin-bottom: 0;
        }

        .status-success {
            color: var(--success);
        }

        .upload-area.has-files {
            border-color: rgba(52, 211, 153, 0.4);
            background: rgba(52, 211, 153, 0.04);
            box-shadow: 0 0 24px rgba(52, 211, 153, 0.06);
        }

        /* Tool options */
        .tool-options {
            margin: 20px 0;
            padding: 26px;
            background: rgba(15, 23, 42, 0.55);
            border-radius: var(--radius-md);
            border: 1px solid var(--border-light);
        }

        .option-group {
            margin-bottom: 18px;
        }

        .option-group:last-child {
            margin-bottom: 0;
        }

        .option-group label {
            display: block;
            margin-bottom: 10px;
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 0.9rem;
            color: var(--text-primary);
        }

        /* Results */
        .results-area {
            margin-top: 24px;
        }

        .results-area h3 {
            margin-bottom: 16px;
            font-family: var(--font-display);
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--text-primary);
        }

        .preview-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 20px 0;
        }

        .preview-box {
            flex: 1;
            min-width: 240px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px;
            text-align: center;
            background: rgba(15, 23, 42, 0.4);
            transition: all 0.3s var(--ease-out);
        }

        .preview-box:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md);
            border-color: var(--border-glow);
        }

        .preview-box img {
            max-width: 100%;
            max-height: 200px;
            margin-bottom: 12px;
            border-radius: var(--radius-sm);
            box-shadow: var(--shadow-sm);
        }

        .file-info {
            background: rgba(99, 102, 241, 0.06);
            padding: 10px;
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
            text-align: left;
        }

        .file-info p {
            margin-bottom: 4px;
            font-size: 0.85rem;
            color: var(--text-secondary);
        }

        /* Batch files grid */
        .batch-files {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
            gap: 12px;
            margin: 16px 0;
            max-height: 270px;
            overflow-y: auto;
            padding: 8px;
        }

        .batch-files::-webkit-scrollbar {
            width: 5px;
        }

        .batch-files::-webkit-scrollbar-track {
            background: transparent;
        }

        .batch-files::-webkit-scrollbar-thumb {
            background: rgba(99, 102, 241, 0.25);
            border-radius: 10px;
        }

        .batch-files::-webkit-scrollbar-thumb:hover {
            background: rgba(99, 102, 241, 0.4);
        }

        .file-item {
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            overflow: hidden;
            text-align: center;
            background: rgba(15, 23, 42, 0.5);
            transition: all 0.3s var(--ease-out);
            box-shadow: var(--shadow-sm);
        }

        .file-item:hover {
            transform: translateY(-3px);
            box-shadow: var(--shadow-md), 0 0 16px rgba(99, 102, 241, 0.1);
            border-color: var(--border-glow);
        }

        .file-item img {
            width: 100%;
            height: 105px;
            object-fit: cover;
            transition: transform 0.3s var(--ease-out);
        }

        .file-item:hover img {
            transform: scale(1.04);
        }

        .file-item .file-name {
            padding: 8px;
            font-size: 0.75rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            font-weight: 500;
            color: var(--text-primary);
        }

        .file-item .file-size {
            padding: 6px;
            background: rgba(15, 23, 42, 0.6);
            font-size: 0.72rem;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
        }

        .file-item .file-size.size-change {
            flex-direction: column;
            gap: 2px;
        }

        .file-item .file-size.size-change .original-size {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .file-item .file-size.size-change .size-arrow {
            color: var(--text-muted);
            font-size: 0.5rem;
            line-height: 0.5rem;
        }

        .file-item .file-size.size-change .processed-size {
            color: #34d399;
            font-weight: 600;
        }

        .file-item .file-size .original-size {
            text-decoration: line-through;
            color: var(--text-muted);
        }

        .file-item .file-size .size-arrow {
            color: var(--text-muted);
            font-size: 0.6rem;
        }

        .file-item .file-size .processed-size {
            color: #34d399;
            font-weight: 600;
        }

        .my-1 {
            margin: 8px 0;
        }

        .batch-controls {
            display: flex;
            gap: 12px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .batch-controls .el-button {
            border-radius: var(--radius-sm) !important;
            font-weight: 600 !important;
            font-family: var(--font-body) !important;
            transition: all 0.3s var(--ease-out) !important;
        }

        .batch-controls .el-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
        }

        .progress-bar {
            height: 6px;
            background: rgba(99, 102, 241, 0.12);
            border-radius: 10px;
            overflow: hidden;
            margin: 16px 0;
        }

        .progress-bar-inner {
            height: 100%;
            background: linear-gradient(90deg, #6366f1, #818cf8, #22d3ee);
            background-size: 200% 100%;
            width: 0%;
            transition: width 0.3s ease;
            border-radius: 10px;
            animation: progressShimmer 2s linear infinite;
        }

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

        .processing {
            opacity: 0.7;
            pointer-events: none;
        }

        /* ========================================
           TOOLS CATEGORY - 工具分类 (DARK)
           ======================================== */
        .tools-category {
            padding: 0 20px;
            margin-bottom: 72px;
            max-width: 1240px;
            margin-left: auto;
            margin-right: auto;
        }

        .category-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 32px;
        }

        .category-title-group {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .category-icon {
            width: 46px;
            height: 46px;
            border-radius: var(--radius-sm);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            color: white;
        }

        .category-icon.image { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 0 20px rgba(99, 102, 241, 0.3); }
        .category-icon.document { background: linear-gradient(135deg, #fb923c, #ea580c); box-shadow: 0 0 20px rgba(251, 146, 60, 0.3); }

        .category-title {
            font-family: var(--font-display);
            font-size: 1.7rem;
            font-weight: 700;
            color: var(--text-primary);
            letter-spacing: -0.01em;
        }

        .category-subtitle {
            font-size: 0.88rem;
            color: var(--text-muted);
            font-weight: 400;
            margin-top: 3px;
        }

        .category-header a {
            color: var(--accent-light);
            font-family: var(--font-body);
            font-weight: 600;
            font-size: 0.9rem;
            text-decoration: none;
            transition: all 0.3s var(--ease-out);
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 8px 18px;
            border-radius: var(--radius-full);
            background: rgba(99, 102, 241, 0.08);
            border: 1px solid rgba(99, 102, 241, 0.1);
        }

        .category-header a:hover {
            background: rgba(99, 102, 241, 0.15);
            transform: translateX(2px);
            border-color: rgba(99, 102, 241, 0.25);
        }

        /* Tool grid */
        .tools-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
            gap: 20px;
        }

        .tool-card {
            position: relative;
            padding: 0;
            background: var(--bg-card);
            backdrop-filter: blur(var(--blur-sm));
            -webkit-backdrop-filter: blur(var(--blur-sm));
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: all 0.4s var(--ease-out);
            cursor: pointer;
            border: 1px solid var(--border-light);
        }

        .tool-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.12);
            border-color: var(--border-glow);
        }

        .tool-icon {
            height: 130px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 2.4rem;
            position: relative;
            overflow: hidden;
        }

        .tool-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
            transition: all 0.5s var(--ease-out);
        }

        .tool-card:hover .tool-icon::after {
            transform: translate(-30%, 30%);
        }

        .tool-card:nth-child(8n+1) .tool-icon { background: linear-gradient(135deg, #6366f1, #4338ca); }
        .tool-card:nth-child(8n+2) .tool-icon { background: linear-gradient(135deg, #06b6d4, #0e7490); }
        .tool-card:nth-child(8n+3) .tool-icon { background: linear-gradient(135deg, #a78bfa, #6d28d9); }
        .tool-card:nth-child(8n+4) .tool-icon { background: linear-gradient(135deg, #f87171, #b91c1c); }
        .tool-card:nth-child(8n+5) .tool-icon { background: linear-gradient(135deg, #fb923c, #c2410c); }
        .tool-card:nth-child(8n+6) .tool-icon { background: linear-gradient(135deg, #22d3ee, #0891b2); }
        .tool-card:nth-child(8n+7) .tool-icon { background: linear-gradient(135deg, #818cf8, #3730a3); }
        .tool-card:nth-child(8n+8) .tool-icon { background: linear-gradient(135deg, #fb7185, #be123c); }

        .tool-content {
            padding: 22px 24px 26px;
        }

        .tool-content h3 {
            font-family: var(--font-body);
            margin-bottom: 6px;
            color: var(--text-primary);
            font-size: 1.08rem;
            font-weight: 600;
        }

        .tool-content p {
            color: var(--text-muted);
            margin-bottom: 16px;
            font-size: 0.85rem;
            line-height: 1.55;
        }

        .use-tool-btn {
            position: absolute;
            left: 24px;
            bottom: 22px;
        }

        .use-tool-btn .el-button {
            border-radius: var(--radius-sm) !important;
            font-weight: 600 !important;
            font-family: var(--font-body) !important;
            transition: all 0.3s var(--ease-out) !important;
            background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
            border: none !important;
            color: white !important;
            padding: 8px 22px !important;
            font-size: 13px !important;
        }

        .use-tool-btn .el-button:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 18px rgba(99, 102, 241, 0.4) !important;
        }

        /* ========================================
           ELEMENT UI OVERRIDES - DARK
           ======================================== */
        .el-button--primary {
            background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
            border: none !important;
            border-radius: var(--radius-sm) !important;
            padding: 12px 24px !important;
            font-weight: 600 !important;
            font-family: var(--font-body) !important;
            transition: all 0.3s var(--ease-out) !important;
            color: white !important;
        }

        .el-button--primary:hover {
            transform: translateY(-2px) !important;
            box-shadow: 0 6px 22px rgba(99, 102, 241, 0.4) !important;
        }

        .el-button--default {
            background: rgba(30, 41, 59, 0.6) !important;
            border: 1px solid rgba(99, 102, 241, 0.15) !important;
            color: var(--text-primary) !important;
            border-radius: var(--radius-sm) !important;
            font-weight: 600 !important;
            font-family: var(--font-body) !important;
            transition: all 0.3s var(--ease-out) !important;
        }

        .el-button--default:hover {
            border-color: var(--border-glow) !important;
            background: rgba(30, 41, 59, 0.8) !important;
            box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
        }

        .el-dialog {
            background: var(--bg-primary) !important;
            border-radius: var(--radius-xl) !important;
            overflow: hidden;
            border: 1px solid var(--border-subtle);
        }

        .el-dialog__header {
            background: linear-gradient(135deg, #6366f1, #4f46e5);
            padding: 24px 32px;
            border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        }

        .el-dialog__title {
            color: white !important;
            font-family: var(--font-body);
            font-size: 18px;
            font-weight: 600;
        }

        .el-dialog__headerbtn .el-dialog__close {
            color: white !important;
            font-size: 24px;
            transition: all 0.3s var(--ease-out);
        }

        .el-dialog__headerbtn .el-dialog__close:hover {
            transform: rotate(90deg);
        }

        .el-dialog__body {
            padding: 32px;
            color: var(--text-primary);
        }

        .el-form-item__label {
            font-weight: 600;
            font-family: var(--font-body);
            color: var(--text-primary);
        }

        .el-slider__bar {
            background: linear-gradient(90deg, #6366f1, #818cf8) !important;
        }

        .el-slider__button {
            border-color: #818cf8 !important;
            box-shadow: 0 2px 8px rgba(99, 102, 241, 0.35) !important;
        }

        .el-slider__runway {
            background: rgba(99, 102, 241, 0.12) !important;
        }

        .el-checkbox__input.is-checked .el-checkbox__inner {
            background-color: var(--accent) !important;
            border-color: var(--accent) !important;
            box-shadow: 0 0 8px rgba(99, 102, 241, 0.3);
        }

        .el-checkbox__input.is-checked+.el-checkbox__label {
            color: var(--accent-light) !important;
        }

        .el-checkbox__inner {
            background: rgba(15, 23, 42, 0.6) !important;
            border-color: rgba(99, 102, 241, 0.2) !important;
        }

        .el-checkbox__label {
            color: var(--text-primary) !important;
        }

        .el-select .el-input__inner {
            border-radius: var(--radius-sm) !important;
            background: var(--bg-input) !important;
            border-color: rgba(99, 102, 241, 0.15) !important;
            color: var(--text-primary) !important;
        }

        .el-select .el-input__inner:hover {
            border-color: var(--border-glow) !important;
        }

        .el-input__inner {
            border-radius: var(--radius-sm) !important;
            padding: 12px 16px !important;
            font-family: var(--font-body) !important;
            background: var(--bg-input) !important;
            border-color: rgba(99, 102, 241, 0.15) !important;
            color: var(--text-primary) !important;
        }

        .el-input__inner:focus {
            border-color: var(--accent-light) !important;
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
        }

        .el-message {
            background: var(--bg-primary) !important;
            border: 1px solid var(--border-subtle) !important;
        }

        .el-message--success {
            border-color: rgba(52, 211, 153, 0.3) !important;
        }

        .el-message--error {
            border-color: rgba(248, 113, 113, 0.3) !important;
        }

        /* ========================================
           ANIMATIONS
           ======================================== */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(28px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-16px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Scroll reveal */
        .scroll-reveal {
            opacity: 0;
            transform: translateY(34px);
            transition: all 0.75s var(--ease-out);
        }

        .scroll-reveal.revealed {
            opacity: 1;
            transform: translateY(0);
        }

        /* Staggered card entrance */
        .tools-grid .tool-card {
            opacity: 0;
            transform: translateY(24px);
            transition: all 0.55s var(--ease-out);
        }

        .tools-grid.revealed .tool-card {
            opacity: 1;
            transform: translateY(0);
        }

        .tools-grid.revealed .tool-card:nth-child(1) { transition-delay: 0.04s; }
        .tools-grid.revealed .tool-card:nth-child(2) { transition-delay: 0.08s; }
        .tools-grid.revealed .tool-card:nth-child(3) { transition-delay: 0.12s; }
        .tools-grid.revealed .tool-card:nth-child(4) { transition-delay: 0.16s; }
        .tools-grid.revealed .tool-card:nth-child(5) { transition-delay: 0.20s; }
        .tools-grid.revealed .tool-card:nth-child(6) { transition-delay: 0.24s; }
        .tools-grid.revealed .tool-card:nth-child(7) { transition-delay: 0.28s; }
        .tools-grid.revealed .tool-card:nth-child(8) { transition-delay: 0.32s; }
        .tools-grid.revealed .tool-card:nth-child(9) { transition-delay: 0.36s; }
        .tools-grid.revealed .tool-card:nth-child(10) { transition-delay: 0.40s; }
        .tools-grid.revealed .tool-card:nth-child(11) { transition-delay: 0.44s; }
        .tools-grid.revealed .tool-card:nth-child(12) { transition-delay: 0.48s; }
        .tools-grid.revealed .tool-card:nth-child(13) { transition-delay: 0.52s; }
        .tools-grid.revealed .tool-card:nth-child(14) { transition-delay: 0.56s; }
        .tools-grid.revealed .tool-card:nth-child(15) { transition-delay: 0.60s; }
        .tools-grid.revealed .tool-card:nth-child(16) { transition-delay: 0.64s; }

        /* Staggered category card entrance */
        .categories-grid .category-card {
            opacity: 0;
            transform: translateY(20px);
            transition: all 0.5s var(--ease-out);
        }

        .categories-grid.revealed .category-card {
            opacity: 1;
            transform: translateY(0);
        }

        .categories-grid.revealed .category-card:nth-child(1) { transition-delay: 0.04s; }
        .categories-grid.revealed .category-card:nth-child(2) { transition-delay: 0.08s; }
        .categories-grid.revealed .category-card:nth-child(3) { transition-delay: 0.12s; }
        .categories-grid.revealed .category-card:nth-child(4) { transition-delay: 0.16s; }
        .categories-grid.revealed .category-card:nth-child(5) { transition-delay: 0.20s; }
        .categories-grid.revealed .category-card:nth-child(6) { transition-delay: 0.24s; }
        .categories-grid.revealed .category-card:nth-child(7) { transition-delay: 0.28s; }
        .categories-grid.revealed .category-card:nth-child(8) { transition-delay: 0.32s; }
        .categories-grid.revealed .category-card:nth-child(9) { transition-delay: 0.36s; }
        .categories-grid.revealed .category-card:nth-child(10) { transition-delay: 0.40s; }

        /* Glow pulse */
        @keyframes glowPulse {
            0%, 100% { box-shadow: 0 0 20px rgba(99, 102, 241, 0.2); }
            50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.35); }
        }

        /* ========================================
           LIGHT THEME OVERRIDES (data-theme="light")
           ======================================== */
        html[data-theme="light"] .hero {
            background:
                radial-gradient(90% 60% at 50% -12%, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0.04) 45%, transparent 70%),
                linear-gradient(180deg, #ffffff 0%, #eef2f8 40%, #e3e9f5 72%, rgba(233, 238, 246, 0) 100%);
        }
        html[data-theme="light"] .hero-desc { color: #334155; opacity: 1; text-shadow: none; }
        html[data-theme="light"] .hero-badge { background: rgba(99,102,241,0.1); border-color: rgba(99,102,241,0.22); color: #334155; }
        html[data-theme="light"] .hero-search-inner input { background: rgba(255,255,255,0.75); border-color: rgba(15,23,42,0.14); color: #0f172a; box-shadow: 0 2px 12px rgba(15,23,42,0.05); }
        html[data-theme="light"] .hero-search-inner input::placeholder { color: rgba(15,23,42,0.4); }
        html[data-theme="light"] .hero-search-inner input:focus { border-color: rgba(99,102,241,0.5); background: #fff; box-shadow: 0 0 26px rgba(99,102,241,0.16); }
        html[data-theme="light"] .hero-search-icon { color: rgba(15,23,42,0.45); }
        html[data-theme="light"] .hero-search-clear { color: rgba(15,23,42,0.45); }
        html[data-theme="light"] .hero-stat-value { background: linear-gradient(135deg, #0f172a, #334155); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
        html[data-theme="light"] .hero-stat-label { color: rgba(71,85,105,0.85); }
        html[data-theme="light"] .hero-stat-divider { background: linear-gradient(180deg, transparent, rgba(99,102,241,0.35), transparent); }

        html[data-theme="light"] .hero-quick-panel { background: rgba(255,255,255,0.82); border-color: rgba(99,102,241,0.22); box-shadow: 0 32px 80px rgba(15,23,42,0.14); }
        html[data-theme="light"] .quick-tools-title { color: #0f172a; }
        html[data-theme="light"] .quick-tools-more { color: #475569; }
        html[data-theme="light"] .quick-tool-item { background: rgba(241,245,249,0.88); border-color: rgba(15,23,42,0.08); }
        html[data-theme="light"] .quick-tool-item:hover { background: #ffffff; box-shadow: 0 0 22px rgba(99,102,241,0.12); transform: translateY(-3px); }
        html[data-theme="light"] .quick-tool-info h4 { color: #0f172a; }
        html[data-theme="light"] .quick-tool-info p { color: #64748b; }

        html[data-theme="light"] .tools-sidebar { background: rgba(255,255,255,0.85); border-color: rgba(15,23,42,0.08); }
        html[data-theme="light"] .tools-sidebar-title { color: #64748b; border-bottom-color: rgba(15,23,42,0.08); }
        html[data-theme="light"] .sidebar-cat { color: #475569; }
        html[data-theme="light"] .sidebar-cat:hover { background: rgba(99,102,241,0.08); color: #334155; }
        html[data-theme="light"] .sidebar-cat.active { background: rgba(99,102,241,0.14); color: #4f46e5; border-left-color: #6366f1; }
        html[data-theme="light"] .sidebar-cat-count { background: rgba(15,23,42,0.06); color: #64748b; }
        html[data-theme="light"] .sidebar-cat.active .sidebar-cat-count { background: rgba(99,102,241,0.18); color: #4f46e5; }

        html[data-theme="light"] .category-detail-title { color: #0f172a; }
        html[data-theme="light"] .category-detail-sub { color: #475569; }
        html[data-theme="light"] .tool-link-card { background: rgba(255,255,255,0.7); border-color: rgba(15,23,42,0.08); }
        html[data-theme="light"] .tool-link-card:hover { background: #fff; border-color: rgba(99,102,241,0.3); box-shadow: 0 8px 24px rgba(99,102,241,0.12); }
        html[data-theme="light"] .tool-link-info h4 { color: #0f172a; }
        html[data-theme="light"] .tool-link-info p { color: #64748b; }

        html[data-theme="light"] .search-results-dropdown { background: rgba(255,255,255,0.98); border-color: rgba(15,23,42,0.1); box-shadow: 0 32px 80px rgba(15,23,42,0.18); }
        html[data-theme="light"] .search-result-item:hover { background: rgba(99,102,241,0.08); }
        html[data-theme="light"] .search-result-info h4 { color: #0f172a; }
        html[data-theme="light"] .search-result-info span { color: #64748b; }
        html[data-theme="light"] .search-no-result { color: #64748b; }

        /* ========================================
           RESPONSIVE
           ======================================== */
        @media (max-width: 1024px) {
            .hero-inner {
                grid-template-columns: 1fr 1fr;
                gap: 32px;
            }

            .categories-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }

        @media (max-width: 768px) {
            .hero {
                padding: 56px 24px 64px;
            }

            .hero-inner {
                grid-template-columns: 1fr;
                gap: 36px;
            }

            .hero h1 {
                font-size: 2rem;
            }

            .hero-desc {
                font-size: 1rem;
            }

            .hero-right {
                width: 100%;
            }

            .hero-stats {
                gap: 28px;
                margin-top: 32px;
            }

            .hero-stat-value {
                font-size: 1.6rem;
            }

            .quick-tools-grid {
                grid-template-columns: repeat(2, 1fr);
            }

            .categories-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 14px;
            }

            .category-card {
                padding: 24px 16px 20px;
            }

            .category-card-icon {
                width: 46px;
                height: 46px;
                font-size: 1.3rem;
            }

            .tools-grid {
                grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
                gap: 16px;
            }

            .category-title {
                font-size: 1.4rem;
            }

            .tool-container {
                padding: 24px;
                border-radius: var(--radius-lg);
            }

            .upload-area {
                padding: 30px 16px;
            }

            .upload-area i {
                font-size: 2rem;
            }

            .tool-options {
                padding: 18px;
            }

            .comparison-row {
                flex-direction: column;
                gap: 12px;
            }

            .batch-files {
                grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
                max-height: 190px;
            }

            .file-item img {
                height: 85px;
            }

            .tool-tabs {
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }

            .tool-tabs::-webkit-scrollbar {
                display: none;
            }
        }

        @media (max-width: 480px) {
            .hero {
                padding: 64px 16px 60px;
            }

            .hero h1 {
                font-size: 1.8rem;
            }

            .hero-desc {
                font-size: 0.9rem;
            }

            .hero-stats {
                gap: 20px;
                flex-wrap: wrap;
            }

            .hero-stat-value {
                font-size: 1.4rem;
            }

            .hero-stat-label {
                font-size: 0.78rem;
            }

            .hero-actions {
                flex-direction: column;
            }

            .hero-btn-primary {
                width: 100%;
                justify-content: center;
            }

            .hero-quick-panel {
                padding: 18px 16px 20px;
                border-radius: var(--radius-lg);
            }

            .quick-tools-grid {
                grid-template-columns: 1fr;
                gap: 10px;
            }

            .quick-tool-item {
                padding: 12px 14px;
            }

            .categories-grid {
                grid-template-columns: 1fr 1fr;
                gap: 10px;
            }

            .category-card-name {
                font-size: 0.9rem;
            }

            .category-card-count {
                font-size: 0.72rem;
            }

            .tools-grid {
                grid-template-columns: 1fr 1fr;
                gap: 12px;
            }

            .tool-icon {
                height: 95px;
                font-size: 1.7rem;
            }

            .tool-content {
                padding: 14px 16px 20px;
            }

            .tool-content h3 {
                font-size: 0.9rem;
            }

            .tool-content p {
                font-size: 0.78rem;
                margin-bottom: 12px;
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
            }

            .use-tool-btn .el-button {
                padding: 6px 14px !important;
                font-size: 12px !important;
            }

            .tool-tabs {
                flex-direction: row;
                gap: 0;
                border-bottom: 2px solid rgba(99, 102, 241, 0.1);
            }

            .tool-tab {
                padding: 12px 16px;
                font-size: 0.85rem;
                white-space: nowrap;
            }

            .batch-controls {
                flex-direction: column;
            }

            .batch-controls .el-button {
                width: 100%;
            }

            .category-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .category-header a {
                align-self: flex-start;
            }

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