
        :root {
            color-scheme: dark;
            --primary: #6366f1;
            --primary2: #8b5cf6;
            --accent: #06b6d4;
            --star: #f59e0b;
            --text-main: #e2e8f0;
            --text-dim: #94a3b8;
            --text-bright: #ffffff;
            --border: rgba(255,255,255,0.08);
            --border-bright: rgba(255,255,255,0.12);
            --glass: rgba(255,255,255,0.06);
            --glass-dark: rgba(15, 23, 42, 0.75);
            --glass-card: rgba(255,255,255,0.05);
            --primary-dark: #5b21b6;
            /* 背景色变量 - 统一管理 */
            --bg-gradient: linear-gradient(180deg, #0f1419 0%, #1a1d23 50%, #0f1419 100%);
            --bg-noise-opacity: 0.2;
            /* 与工具区/弹窗共用别名（原先未定义导致继承异常） */
            --text-primary: var(--text-main);
            --text-secondary: var(--text-dim);
            --text: var(--text-main);
            --bg-primary: #0f172a;
            --bg-card: rgba(22, 30, 46, 0.94);
            --bg-input: rgba(0, 0, 0, 0.25);
            --bg-hover: rgba(255, 255, 255, 0.08);
            --card: rgba(30, 41, 59, 0.75);
            --select-surface: #1e293b;
            --select-option-text: #e2e8f0;
        }

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

        /* 全站原生 select：深色面板 + 深色 option，避免系统浅色列表上白字不可读 */
        select {
            font: inherit;
            color: var(--text-main);
            background-color: var(--select-surface);
            border: 1px solid var(--border);
            border-radius: 8px;
        }
        select option,
        select optgroup {
            background-color: var(--select-surface);
            color: var(--select-option-text);
        }
        select option:checked,
        select option:hover {
            background-color: #4338ca;
            color: #fff;
        }

        /* ── 深色简洁背景 ── */
        body {
            min-height: 100vh; height: 100vh;
            font-family: "PingFang SC","Microsoft YaHei",sans-serif;
            color: var(--text-main);
            overflow: hidden;
            display: flex; flex-direction: column;
            padding: 18px;
            position: relative;
            background: var(--bg-gradient);
        }

        /* 背景层：简洁深色 */
        body::before {
            content:'';
            position:fixed; inset:0; z-index:-2;
            background: var(--bg-gradient);
        }
        /* 背景噪点增加质感 */
        body::after {
            content:'';
            position:fixed; inset:0; z-index:-1;
            background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.02'/%3E%3C/svg%3E");
            opacity: var(--bg-noise-opacity);
            pointer-events:none;
        }

        /* ══════════════════════════════
           毛玻璃基础样式
        ══════════════════════════════ */
        .glass {
            background: var(--glass);
            backdrop-filter: blur(24px) saturate(160%);
            -webkit-backdrop-filter: blur(24px) saturate(160%);
            border: 1px solid var(--border-bright);
            box-shadow: 0 8px 32px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.1);
        }

        /* ── Header ── */
        header {
            position: relative;
            z-index: 100;
            border-radius: 20px;
            padding: 12px 24px;
            display: flex; align-items: center; gap: 28px;
            margin-bottom: 16px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.08),
                inset 0 -1px 0 rgba(0, 0, 0, 0.1);
        }

        /* ── LOGO ── */
        .brand {
            display: flex; align-items: center; gap: 10px;
            text-decoration: none; flex-shrink: 0;
        }
        .logo-wrap {
            width: 36px; height: 36px; flex-shrink: 0;
            position: relative;
        }
        .logo-wrap svg { width: 36px; height: 36px; display:block; }
        .brand-text {
            display: flex; flex-direction: column; line-height: 1.2;
        }
        .brand-name {
            font-size: 16px; font-weight: 700; letter-spacing: 0.5px;
            background: linear-gradient(90deg, #a5b4fc, #67e8f9, #a5b4fc);
            background-size: 200% 100%;
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            background-clip: text;
            animation: shimmer 4s linear infinite;
        }
        .brand-sub {
            font-size: 10px; color: var(--text-dim); letter-spacing: 1px;
            transition: all 0.2s;
        }
        .brand-sub:hover {
            color: var(--primary);
            text-decoration: underline;
        }
        @keyframes shimmer {
            0%{background-position:0% 50%} 100%{background-position:200% 50%}
        }

        /* ── 搜索框 ── */
        .search-container { flex: 1; display: flex; justify-content: center; }
        .search-wrap {
            position: relative; max-width: 440px; width: 100%;
        }
        .search-icon {
            position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
            color: var(--text-dim); font-size: 14px; pointer-events: none;
        }
        .search-input {
            width: 100%;
            background: rgba(255, 255, 255, 0.08);
            border: 1px solid rgba(255, 255, 255, 0.12);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            padding: 10px 16px 10px 38px;
            border-radius: 14px;
            color: var(--text-main); outline: none; font-size: 14px;
            transition: 0.3s;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
        }
        .search-input::placeholder { color: var(--text-dim); }
        .search-input:focus {
            border-color: rgba(147, 112, 219, 0.5);
            background: rgba(255, 255, 255, 0.1);
            box-shadow: 
                0 0 0 4px rgba(147, 112, 219, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.12);
        }

        /* ── 用户头像 ── */
        .user-wrap { position: relative; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
        .user-area {
            display: flex; align-items: center; gap: 9px;
            font-size: 13px; cursor: pointer;
            padding: 5px 12px 5px 5px;
            border-radius: 10px;
            border: 1px solid transparent;
            transition: 0.2s;
        }
        .user-area:hover { border-color: var(--border-bright); background: var(--glass); }
        .user-area.open { border-color: var(--border-bright); background: var(--glass); }
        .avatar {
            width: 30px; height: 30px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex; align-items: center; justify-content: center;
            font-size: 12px; font-weight: 700; color: #fff;
            box-shadow: 0 0 0 2px rgba(99,102,241,0.4);
            overflow: hidden; flex-shrink: 0;
        }
        .avatar:empty {
            background: transparent;
            border: 2px dashed var(--border);
            box-shadow: none;
        }
        .avatar:empty::before {
            content: '👤';
            font-size: 14px;
            color: var(--text-dim);
        }
        .avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }

        /* ── 用户下拉面板 ── */
        .user-dropdown {
            display: none;
            position: absolute;
            top: 100%;
            right: 0;
            margin-top: 8px;
            width: 280px;
            background: rgba(15, 23, 42, 0.95);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            box-shadow: 0 12px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.06);
            z-index: 9999;
            overflow: hidden;
        }
        .user-dropdown.show { display: block; animation: dropDown 0.2s cubic-bezier(0.4,0,0.2,1); }
        @keyframes dropDown {
            from { opacity:0; transform: translateY(-8px) scale(0.97); }
            to   { opacity:1; transform: translateY(0) scale(1); }
        }

        /* ── 模态框样式 ── */
        .modal-overlay {
            position: fixed !important;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.45);
            backdrop-filter: blur(12px) saturate(150%);
            -webkit-backdrop-filter: blur(12px) saturate(150%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999999 !important;
        }
        .modal-content {
            width: 90%;
            max-width: 400px;
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(32px) saturate(180%);
            -webkit-backdrop-filter: blur(32px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.12);
            border-radius: 24px;
            box-shadow: 
                0 25px 60px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.15),
                inset 0 -1px 0 rgba(0, 0, 0, 0.08);
            overflow: hidden;
            position: relative;
            z-index: 99999999 !important;
            animation: modalPop 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        @keyframes modalPop {
            from { opacity: 0; transform: scale(0.95) translateY(10px); }
            to   { opacity: 1; transform: scale(1) translateY(0); }
        }
        .modal-header {
            padding: 20px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.02);
        }
        .modal-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-bright);
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .modal-close {
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-dim);
            border-radius: 10px;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.25s;
        }
        .modal-close:hover {
            background: rgba(255, 255, 255, 0.15);
            color: var(--text-bright);
            transform: scale(1.05);
        }
        .modal-body {
            padding: 24px;
        }
        .form-group {
            margin-bottom: 18px;
        }
        .form-group label {
            display: block;
            font-size: 13px;
            color: var(--text-dim);
            margin-bottom: 8px;
            font-weight: 500;
        }
        .form-input {
            width: 100%;
            padding: 12px 16px;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 14px;
            color: var(--text-bright);
            font-size: 15px;
            box-sizing: border-box;
            transition: all 0.3s;
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        .form-input:focus {
            outline: none;
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.08);
            box-shadow: 
                inset 0 1px 0 rgba(255, 255, 255, 0.1),
                0 0 0 4px rgba(99, 102, 241, 0.1);
        }
        .form-input::placeholder {
            color: rgba(148, 163, 184, 0.5);
        }
        .modal-footer {
            padding: 16px 24px;
            display: flex;
            gap: 12px;
            border-top: 1px solid rgba(255, 255, 255, 0.06);
            background: rgba(255, 255, 255, 0.02);
        }
        .btn {
            flex: 1;
            padding: 12px 20px;
            border: none;
            border-radius: 14px;
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
        }
        .btn-cancel {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            color: var(--text-dim);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        .btn-cancel:hover {
            background: rgba(255, 255, 255, 0.12);
            color: var(--text-bright);
            border-color: rgba(255, 255, 255, 0.12);
        }
        .btn-primary {
            background: rgba(255, 255, 255, 0.95);
            color: #1f2937;
            box-shadow: 
                0 6px 20px rgba(0, 0, 0, 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
        }
        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 
                0 8px 24px rgba(0, 0, 0, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.95);
        }
        .form-footer {
            text-align: center;
            margin-top: 12px;
        }
        .form-footer a {
            color: var(--primary);
            text-decoration: none;
            font-size: 13px;
        }
        .form-footer a:hover {
            text-decoration: underline;
        }

        /* 面板顶部头像区 */
        .dp-head {
            padding: 20px 20px 16px;
            display: flex; flex-direction: column; align-items: center; gap: 10px;
            border-bottom: 1px solid var(--border);
            background: linear-gradient(180deg, rgba(99,102,241,0.08) 0%, transparent 100%);
        }
        .dp-avatar-wrap { position: relative; cursor: pointer; }
        .dp-avatar {
            width: 64px; height: 64px; border-radius: 50%;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex; align-items: center; justify-content: center;
            font-size: 26px; font-weight: 700; color: #fff;
            box-shadow: 0 0 0 3px rgba(99,102,241,0.35), 0 4px 16px rgba(99,102,241,0.3);
            overflow: hidden;
        }
        .dp-avatar img { width:100%; height:100%; object-fit:cover; border-radius:50%; }
        .dp-avatar-edit {
            position: absolute; bottom:0; right:0;
            width:22px; height:22px; border-radius:50%;
            background: var(--primary); border: 2px solid #0c1226;
            display: flex; align-items: center; justify-content: center;
            font-size: 10px; color:#fff;
        }
        #avatarInput { display:none; }
        .dp-name { font-size: 14px; font-weight: 600; color: var(--text-main); }
        .dp-uid { font-size: 11px; color: var(--text-dim); }

        /* 面板内容区 */
        .dp-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
        .dp-field { display: flex; flex-direction: column; gap: 4px; }
        .dp-label {
            font-size: 10px; color: var(--text-dim);
            text-transform: uppercase; letter-spacing: 0.8px;
        }
        .dp-row { display: flex; align-items: center; gap: 8px; }
        .dp-val {
            flex: 1; font-size: 13px; color: var(--text-main);
            background: rgba(255,255,255,0.05); border: 1px solid var(--border);
            border-radius: 8px; padding: 7px 11px;
        }
        .dp-btn {
            padding: 7px 14px; border-radius: 8px; border: none;
            background: linear-gradient(135deg, var(--primary), var(--primary2));
            color: #fff; font-size: 12px; cursor: pointer;
            transition: 0.2s; flex-shrink: 0;
        }
        .dp-btn:hover { opacity: 0.85; transform: translateY(-1px); }
        .dp-input {
            flex: 1; font-size: 13px; color: var(--text-main);
            background: rgba(0,0,0,0.3); border: 1px solid rgba(99,102,241,0.3);
            border-radius: 8px; padding: 7px 11px; outline: none;
            box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
        }
        .dp-edit-btn {
            width: 28px; height: 28px; border-radius: 7px;
            background: rgba(255,255,255,0.06); border: 1px solid var(--border);
            color: var(--text-dim); font-size: 12px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s; flex-shrink: 0;
        }
        .dp-edit-btn:hover { background: rgba(99,102,241,0.2); color: #a5b4fc; border-color: rgba(99,102,241,0.4); }
        .dp-save-btn {
            width: 28px; height: 28px; border-radius: 7px;
            background: rgba(99,102,241,0.25); border: 1px solid rgba(99,102,241,0.45);
            color: #a5b4fc; font-size: 12px; cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: 0.2s; flex-shrink: 0;
        }
        .dp-save-btn:hover { background: rgba(99,102,241,0.4); }
        .dp-uid-row {
            font-size: 12px; color: var(--text-dim);
            background: rgba(255,255,255,0.04); border: 1px solid var(--border);
            border-radius: 8px; padding: 7px 11px;
            display: flex; justify-content: space-between; align-items: center;
        }
        .dp-uid-copy { font-size: 11px; cursor: pointer; color: var(--primary); opacity:0.8; }
        .dp-uid-copy:hover { opacity:1; }
        .dp-divider { height:1px; background:var(--border); margin: 2px 0; }
        .dp-foot {
            padding: 12px 16px;
            border-top: 1px solid var(--border);
        }
        .dp-logout {
            width:100%; padding: 8px; border-radius:9px;
            background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
            color: #f87171; font-size: 12px; cursor: pointer; transition: 0.2s;
        }
        .dp-logout:hover { background: rgba(239,68,68,0.18); }

        /* ── 最近使用栏 ── */
        .recent-bar {
            border-radius: 14px;
            padding: 9px 16px;
            display: flex; align-items: center; gap: 7px;
            margin-bottom: 14px;
            overflow-x: auto;
            background: rgba(15, 23, 42, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.06);
            box-shadow: none;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        .recent-bar::-webkit-scrollbar { height: 0; }
        .recent-label {
            display: flex; align-items: center; gap: 6px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px; padding: 4px 12px;
            font-size: 12px; color: var(--text-main);
            white-space: nowrap; flex-shrink: 0;
            cursor: default;
        }
        .recent-divider { width:1px; height:14px; background:var(--border-bright); flex-shrink:0; }
        .recent-item {
            display: flex; align-items: center; gap: 6px;
            background: rgba(255,255,255,0.06);
            border: 1px solid rgba(255,255,255,0.08);
            border-radius: 8px; padding: 4px 12px;
            font-size: 12px; color: var(--text-main);
            cursor: pointer; white-space: nowrap; flex-shrink: 0;
            transition: 0.2s; backdrop-filter: blur(8px);
        }
        .recent-item:hover {
            background: rgba(139,92,246,0.2);
            border-color: rgba(139,92,246,0.4);
            color: #fff; transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(139,92,246,0.2);
        }
        .recent-item .ri-icon { font-size: 13px; }
        .recent-empty {
            font-size: 12px; color: rgba(148,163,184,0.5);
            font-style: italic;
        }

        /* ── 布局 ── */
        .layout { display: flex; gap: 16px; flex: 1; overflow: hidden; }

        /* ── 侧边栏 ── */
        aside {
            width: 176px; flex-shrink: 0;
            border-radius: 20px;
            padding: 14px 8px;
            display: flex; flex-direction: column; gap: 2px;
            background: rgba(255, 255, 255, 0.06);
            backdrop-filter: blur(20px) saturate(160%);
            -webkit-backdrop-filter: blur(20px) saturate(160%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
            will-change: backdrop-filter, transform;
            transform: translateZ(0);
            -webkit-transform: translateZ(0);
        }
        .nav-item {
            padding: 11px 14px; border-radius: 12px; cursor: pointer;
            color: var(--text-dim); font-size: 13px; transition: 0.25s;
            display: flex; align-items: center; justify-content: flex-start;
            gap: 8px;
            position: relative;
        }
        .nav-item > span:first-child { flex: 1; }
        .nav-item:hover {
            background: rgba(255, 255, 255, 0.08);
            color: var(--text-main);
        }
        .nav-item.active {
            background: rgba(255, 255, 255, 0.12);
            color: var(--text-bright); font-weight: 600;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 
                0 2px 12px rgba(147, 112, 219, 0.15), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        .nav-badge {
            background: var(--star);
            color: #000; font-size: 10px; font-weight: 700;
            padding: 1px 6px; border-radius: 10px; min-width: 18px; text-align: center;
        }
        .nav-divider { height:1px; background: var(--border); margin: 6px 10px; }

        /* ── 工具主区域 ── */
        .tools-box {
            flex: 1;
            border-radius: 22px;
            padding: 24px;
            overflow-y: auto;
            background: rgba(255, 255, 255, 0.05);
            backdrop-filter: blur(24px) saturate(180%);
            -webkit-backdrop-filter: blur(24px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.08);
            box-shadow: 
                0 8px 32px rgba(0, 0, 0, 0.25), 
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
        }
        .tools-box::-webkit-scrollbar { width: 4px; }
        .tools-box::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

        .section-title {
            font-size: 12px; color: var(--text-dim);
            margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
            text-transform: uppercase; letter-spacing: 0.8px;
        }
        .section-title::after { content:''; flex:1; height:1px; background: var(--border); }

        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(170px, 200px));
            gap: 14px;
        }

        /* ── 工具卡片（核心毛玻璃） ── */
        .card {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px) saturate(180%);
            -webkit-backdrop-filter: blur(20px) saturate(180%);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 18px; padding: 18px;
            display: flex; flex-direction: column;
            position: relative;
            transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
            box-shadow: 
                0 4px 24px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }
        .card::before {
            content:''; position:absolute; inset:0; border-radius:18px;
            background: linear-gradient(145deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 50%, rgba(139, 92, 246, 0.08) 100%);
            pointer-events:none;
            opacity: 0;
            transition: opacity 0.3s;
        }
        .card:hover {
            transform: translateY(-6px) scale(1.02);
            border-color: rgba(139, 92, 246, 0.4);
            background: rgba(255, 255, 255, 0.12);
            box-shadow: 
                0 12px 36px rgba(139, 92, 246, 0.25), 
                0 4px 16px rgba(0, 0, 0, 0.2), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        .card:hover::before {
            opacity: 1;
        }
        .card.favorited {
            border-color: rgba(245, 158, 11, 0.3);
            box-shadow: 
                0 4px 20px rgba(245, 158, 11, 0.15), 
                0 4px 16px rgba(0, 0, 0, 0.18), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
        }

        /* 收藏按钮 */
        .star-btn {
            position:absolute; top:11px; right:11px;
            background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.08);
            width: 26px; height: 26px; border-radius: 7px;
            display: flex; align-items: center; justify-content: center;
            font-size: 13px; cursor: pointer;
            color: rgba(255,255,255,0.3);
            transition: 0.2s; backdrop-filter: blur(8px);
        }
        .star-btn:hover { color: var(--star); border-color: rgba(245,158,11,0.35); background: rgba(245,158,11,0.08); transform: scale(1.15); }
        .star-btn.active { color: var(--star); border-color: rgba(245,158,11,0.4); background: rgba(245,158,11,0.1); }

        .card-header {
            display: flex; align-items: center; gap: 11px; margin-bottom: 10px;
            padding-right: 28px; padding-left: 0;
        }
        .icon-small {
            width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
            background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.15));
            border: 1px solid rgba(99,102,241,0.3);
            display: flex; align-items: center; justify-content: center;
            font-size: 17px;
            box-shadow: 0 2px 8px rgba(99,102,241,0.2);
        }
        .card h3 { font-size: 13px; font-weight: 600; color: #e2e8f0; line-height: 1.3; }
        .card p {
            font-size: 11.5px; color: var(--text-dim);
            line-height: 1.65; margin-bottom: 14px; flex-grow: 1;
        }
        .btn-run {
            align-self: flex-start;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            color: #fff; border: none;
            padding: 6px 16px; border-radius: 7px;
            font-size: 12px; font-weight: 500;
            cursor: pointer; transition: 0.2s;
            box-shadow: 0 3px 12px rgba(59,130,246,0.35);
        }
        .btn-run:hover {
            filter: brightness(1.15);
            box-shadow: 0 4px 18px rgba(59,130,246,0.5);
            transform: translateY(-1px);
        }

        /* ── 空状态 ── */
        .empty-state {
            display: flex; flex-direction: column; align-items: center;
            justify-content: center; height: 180px;
            color: var(--text-dim); gap: 10px;
        }
        .empty-state .empty-icon { font-size: 36px; opacity: 0.35; }
        .empty-state p { font-size: 13px; }

        .view { display:none; }
        .view.active { display:block; }

        /* ── 火热 HOT 角标（左上斜角 ribbon） ── */
        .hot-badge {
            position: absolute; top: 0; left: 0;
            width: 52px; height: 52px;
            overflow: hidden; border-radius: 16px 0 0 0;
            pointer-events: none;
        }
        .hot-badge::before {
            content: 'HOT';
            position: absolute;
            top: 10px; left: -18px;
            width: 68px;
            background: linear-gradient(135deg, #f97316, #ef4444);
            color: #fff; font-size: 9px; font-weight: 800;
            text-align: center; letter-spacing: 1px;
            padding: 3px 0;
            transform: rotate(-45deg);
            box-shadow: 0 2px 6px rgba(239,68,68,0.5);
        }
        
        /* ── 国外标签（收藏按钮下方） ── */
        .foreign-badge {
            position: absolute; top: 42px; right: 8px;
            padding: 2px 8px;
            background: linear-gradient(135deg, #6366f1, #8b5cf6);
            color: #fff; font-size: 10px; font-weight: 600;
            border-radius: 10px;
            pointer-events: none;
            box-shadow: 0 2px 8px rgba(99,102,241,0.4);
        }
        
        .card-uses {
            font-size: 10px; color: rgba(245,158,11,0.75);
            margin-bottom: 10px; display: flex; align-items: center; gap: 3px;
        }
        .fire-icon {
            font-size: 16px; display: inline-block;
            animation: fireFlicker 1.4s ease-in-out infinite alternate;
        }
        @keyframes fireFlicker {
            from { transform: scale(1) rotate(-3deg); filter: brightness(1); }
            to   { transform: scale(1.15) rotate(3deg); filter: brightness(1.3); }
        }

        /* ══ 管理后台样式 ══ */
        .admin-panel-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.7);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999999 !important;
        }
        .admin-panel {
            width: 90%;
            max-width: 900px;
            max-height: 85vh;
            background: rgba(12,18,38,0.95);
            backdrop-filter: blur(30px) saturate(180%);
            border: 1px solid var(--border-bright);
            border-radius: 20px;
            box-shadow: 0 24px 72px rgba(0,0,0,0.7);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }
        .admin-header {
            padding: 16px 24px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
        }
        .admin-title {
            font-size: 18px;
            font-weight: 600;
            color: var(--text-bright);
        }
        .admin-close {
            width: 32px;
            height: 32px;
            border: none;
            background: rgba(255,255,255,0.08);
            color: var(--text-dim);
            border-radius: 10px;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .admin-close:hover {
            background: rgba(255,255,255,0.15);
            color: var(--text-bright);
        }
        .admin-body {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
        }
        .admin-tabs {
            display: flex;
            gap: 8px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 1px solid var(--border);
        }
        .tab-btn {
            padding: 10px 20px;
            border: none;
            background: transparent;
            color: var(--text-dim);
            font-size: 14px;
            font-weight: 500;
            cursor: pointer;
            border-radius: 10px;
            transition: all 0.2s;
        }
        .tab-btn:hover {
            background: rgba(255,255,255,0.06);
            color: var(--text-bright);
        }
        .tab-btn.active {
            background: linear-gradient(135deg, var(--primary), var(--primary2));
            color: #fff;
            box-shadow: 0 4px 14px rgba(99,102,241,0.4);
        }
        .admin-actions {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 16px;
        }
        .admin-table {
            background: rgba(255,255,255,0.03);
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid var(--border);
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
        }
        .data-table th,
        .data-table td {
            padding: 12px 16px;
            text-align: left;
            border-bottom: 1px solid var(--border);
            font-size: 14px;
        }
        .data-table th {
            background: rgba(255,255,255,0.05);
            color: var(--text-dim);
            font-weight: 600;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }
        .data-table tbody tr:hover {
            background: rgba(255,255,255,0.04);
        }
        .data-table tbody tr:last-child td {
            border-bottom: none;
        }
        .action-btn {
            padding: 6px 12px;
            border: none;
            border-radius: 8px;
            font-size: 12px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
            margin-right: 6px;
        }
        .action-btn.edit {
            background: rgba(99,102,241,0.2);
            color: #a5b4fc;
            border: 1px solid rgba(99,102,241,0.3);
        }
        .action-btn.edit:hover {
            background: rgba(99,102,241,0.35);
        }
        .action-btn.delete {
            background: rgba(239,68,68,0.15);
            color: #f87171;
            border: 1px solid rgba(239,68,68,0.25);
        }
        .action-btn.delete:hover {
            background: rgba(239,68,68,0.28);
        }
        select.form-input {
            appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 10px center;
            padding-right: 32px;
            background-color: var(--select-surface);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }
        select.form-input option {
            background-color: var(--select-surface);
            color: var(--select-option-text);
            padding: 8px;
        }
        
        /* 工具弹窗样式 */
        .tool-modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            padding: 20px;
        }
        .tool-modal {
            background: var(--bg-card);
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 20px 60px rgba(0,0,0,0.4);
            border: 1px solid var(--border);
        }
        .tool-modal-header {
            padding: 16px 20px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid var(--border);
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
        }
        .tool-modal-header button {
            width: 32px;
            height: 32px;
            border: none;
            background: var(--bg-hover);
            color: var(--text-secondary);
            border-radius: 8px;
            cursor: pointer;
            font-size: 20px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
        }
        .tool-modal-header button:hover {
            background: var(--bg-input);
            color: var(--text-primary);
        }
        .tool-modal-body {
            padding: 20px;
            max-height: calc(90vh - 70px);
            overflow-y: auto;
        }
        .tool-modal-body textarea {
            width: 100%;
            min-height: 120px;
            padding: 12px 14px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: var(--bg-input);
            color: var(--text-primary);
            font-size: 14px;
            resize: vertical;
            box-sizing: border-box;
            margin-bottom: 12px;
        }
        .tool-modal-body textarea:focus {
            outline: none;
            border-color: var(--primary);
        }
        .tool-buttons {
            display: flex;
            gap: 10px;
            margin-bottom: 12px;
            flex-wrap: wrap;
        }
        .tool-buttons button {
            padding: 10px 20px;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
        }
        .btn-primary {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
        }
        .btn-primary:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(99,102,241,0.4);
        }
        .btn-secondary {
            background: var(--bg-hover);
            color: var(--text-primary);
        }
        .btn-secondary:hover {
            background: var(--bg-input);
        }
        
        .btn-preset {
            padding: 5px 12px;
            border: 1px solid var(--border);
            border-radius: 6px;
            background: var(--glass-card);
            color: var(--text-dim);
            font-size: 12px;
            cursor: pointer;
            transition: all 0.2s ease;
            white-space: nowrap;
        }
        .btn-preset:hover {
            background: rgba(99, 102, 241, 0.2);
            border-color: var(--primary);
            color: var(--text-main);
        }
        
        /* 时间戳转换 */
        .timestamp-section {
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }
        .timestamp-section label {
            color: var(--text-dim);
            font-size: 14px;
            min-width: 110px;
            font-weight: 600;
        }
        .timestamp-section input[type="text"],
        .timestamp-section input[type="datetime-local"] {
            flex: 1;
            min-width: 180px;
            padding: 14px 18px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: rgba(0,0,0,0.2);
            color: var(--text-primary);
            font-size: 15px;
            transition: all 0.2s;
        }
        .timestamp-section input[type="text"]:focus,
        .timestamp-section input[type="datetime-local"]:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
        }
        .current-time {
            background: rgba(99,102,241,0.08);
            padding: 18px 24px;
            border-radius: 16px;
            width: 100%;
            border: 1px solid rgba(99,102,241,0.2);
        }
        .current-time p {
            margin: 6px 0;
            color: var(--text-primary);
            font-size: 15px;
            font-weight: 500;
        }
        
        /* 密码生成器 */
        .password-options {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-bottom: 20px;
        }
        .password-options label {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-dim);
            font-size: 15px;
            cursor: pointer;
            font-weight: 500;
        }
        .password-options input[type="number"] {
            width: 90px;
            padding: 10px 16px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: rgba(0,0,0,0.2);
            color: var(--text-primary);
            font-size: 15px;
        }
        .password-options input[type="checkbox"] {
            width: 20px;
            height: 20px;
            cursor: pointer;
            accent-color: var(--primary);
        }
        .tool-content input[type="text"] {
            width: 100%;
            padding: 16px 18px;
            border: 1px solid var(--border);
            border-radius: 14px;
            background: rgba(0,0,0,0.2);
            color: var(--text-primary);
            font-size: 15px;
            box-sizing: border-box;
        }
        .tool-content input[type="text"]:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
        }
        /* 工具页多行输入：与深色卡片一致（.tool-content 未覆盖 textarea 时浏览器默认为白底） */
        .tool-surface-textarea {
            width: 100%;
            min-height: 80px;
            padding: 12px 14px;
            border: 1px solid var(--border);
            border-radius: 10px;
            background: rgba(0, 0, 0, 0.22);
            color: var(--text-main);
            font-family: ui-monospace, Consolas, monospace;
            font-size: 14px;
            line-height: 1.5;
            resize: vertical;
            box-sizing: border-box;
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
            outline: none;
        }
        .tool-surface-textarea:focus {
            border-color: var(--primary);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(99, 102, 241, 0.15);
        }
        .tool-surface-textarea::placeholder {
            color: var(--text-dim);
            opacity: 0.9;
        }
        /* UUID 等：内联已设底色，此处补焦点/占位符（部分浏览器会盖掉 class） */
        textarea.uuid-output-field,
        textarea#uuid-output {
            -webkit-appearance: none;
            appearance: none;
        }
        textarea#uuid-output::placeholder {
            color: #94a3b8;
            opacity: 0.95;
        }
        textarea#uuid-output:focus {
            outline: none;
            border-color: rgba(99, 102, 241, 0.85) !important;
            box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.35), 0 0 0 3px rgba(99, 102, 241, 0.2);
        }
        
        /* 颜色转换 */
        .color-picker-section {
            display: flex;
            gap: 20px;
            margin-bottom: 24px;
            align-items: center;
        }
        .color-picker-section input[type="color"] {
            width: 90px;
            height: 90px;
            border: none;
            border-radius: 18px;
            cursor: pointer;
            padding: 0;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }
        .color-picker-section input[type="color"]::-webkit-color-swatch-wrapper {
            padding: 0;
        }
        .color-picker-section input[type="color"]::-webkit-color-swatch {
            border-radius: 18px;
            border: 3px solid var(--border);
        }
        .color-picker-section #color-preview {
            width: 90px;
            height: 90px;
            border-radius: 18px;
            border: 3px solid var(--border);
            background: #6366f1;
            box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        }
        .color-inputs {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
        }
        .color-input {
            flex: 1;
            min-width: 200px;
        }
        .color-input label {
            display: block;
            color: var(--text-dim);
            font-size: 14px;
            margin-bottom: 10px;
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        
        /* 计算器 */
        .calculator-modal {
            max-width: 320px;
        }
        .calculator-display {
            background: var(--bg-input);
            padding: 20px;
            text-align: right;
            margin-bottom: 16px;
            border-radius: 12px;
        }
        .calculator-display div {
            font-size: 32px;
            font-weight: 600;
            color: var(--text-primary);
            word-break: break-all;
        }
        .calculator-buttons {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 10px;
        }
        .calc-btn {
            padding: 16px;
            font-size: 18px;
            border: none;
            border-radius: 10px;
            cursor: pointer;
            background: var(--bg-hover);
            color: var(--text-primary);
            transition: all 0.15s;
            font-weight: 500;
        }
        .calc-btn:hover {
            background: var(--bg-input);
        }
        .calc-btn:active {
            transform: scale(0.95);
        }
        .calc-operator {
            background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(139,92,246,0.2));
            color: var(--primary);
        }
        .calc-operator:hover {
            background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(139,92,246,0.3));
        }
        .calc-equals {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
            font-size: 22px;
        }
        .calc-equals:hover {
            box-shadow: 0 4px 12px rgba(99,102,241,0.4);
        }
        .calc-clear {
            background: rgba(239,68,68,0.15);
            color: #f87171;
        }
        .calc-clear:hover {
            background: rgba(239,68,68,0.25);
        }
        .calc-zero {
            grid-column: span 2;
        }

        /* 工具详情页面样式 */
        .tool-page {
            max-width: 1100px;
            margin: 0 auto;
            padding: 20px 20px 20px;
        }
        .tool-header {
            display: flex;
            align-items: center;
            gap: 20px;
            padding: 24px;
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 20px 20px 0 0;
            border: 1px solid var(--border-bright);
            border-bottom: none;
            box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
        }
        .tool-header-icon {
            width: 72px;
            height: 72px;
            border-radius: 18px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 32px;
            color: white;
            box-shadow: 0 8px 24px rgba(99,102,241,0.35), inset 0 1px 0 rgba(255,255,255,0.2);
            flex-shrink: 0;
        }
        .tool-header-info {
            flex: 1;
            min-width: 0;
        }
        .tool-header-info h1 {
            font-size: 26px;
            margin: 0 0 6px 0;
            color: var(--text-primary);
            font-weight: 700;
        }
        .tool-header-info p {
            margin: 0;
            color: var(--text-dim);
            font-size: 14px;
        }
        .tool-header-actions {
            margin-left: auto;
            display: flex;
            gap: 12px;
            flex-shrink: 0;
        }
        .tool-header-actions button {
            padding: 12px 22px;
            border-radius: 12px;
            border: none;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .btn-favorite {
            background: rgba(255,255,255,0.06);
            color: var(--text-primary);
            border: 1px solid var(--border);
        }
        .btn-favorite:hover {
            background: rgba(255,255,255,0.1);
            transform: translateY(-1px);
        }
        .btn-favorite.active {
            background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
            color: white;
            border-color: transparent;
            box-shadow: 0 4px 16px rgba(238,90,90,0.3);
        }
        .btn-back {
            background: rgba(255,255,255,0.04);
            color: var(--text-dim);
            border: 1px solid var(--border);
        }
        .btn-back:hover {
            border-color: var(--primary);
            color: var(--primary);
            background: rgba(99,102,241,0.08);
            transform: translateY(-1px);
        }
        .tool-content {
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            padding: 32px;
            border-radius: 0 0 20px 20px;
            border: 1px solid var(--border-bright);
            border-top: none;
            box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
        }
        .tool-section {
            margin-bottom: 0;
        }
        .tool-section-title {
            display: none;
        }

        /* JSON格式化工具 */
        .json-tool {
            display: grid;
            gap: 24px;
        }
        .json-panels {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 20px;
        }
        @media (max-width: 768px) {
            .json-panels {
                grid-template-columns: 1fr;
            }
        }
        .json-panel {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }
        .json-panel label {
            font-size: 14px;
            color: var(--text-dim);
            font-weight: 600;
            letter-spacing: 0.5px;
        }
        .json-panel textarea {
            width: 100%;
            min-height: 280px;
            padding: 18px;
            border: 1px solid var(--border);
            border-radius: 16px;
            background: rgba(0,0,0,0.2);
            color: var(--text-primary);
            font-family: 'Fira Code', monospace;
            font-size: 14px;
            resize: vertical;
            box-sizing: border-box;
            line-height: 1.6;
            box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
        }
        .json-panel textarea:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: inset 0 2px 8px rgba(0,0,0,0.2), 0 0 0 3px rgba(99,102,241,0.15);
        }
        
        /* 工具按钮优化 */
        .tool-buttons {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            padding-top: 8px;
        }
        .tool-buttons button {
            padding: 14px 28px;
            border: none;
            border-radius: 14px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 8px;
            min-height: 48px;
        }
        .tool-buttons button:hover {
            transform: translateY(-2px);
        }
        .tool-buttons button:active {
            transform: translateY(0);
        }

        /* 计算器 */
        .calculator-page {
            display: flex;
            justify-content: center;
        }
        .calculator-large {
            width: 100%;
            max-width: 420px;
            background: rgba(255,255,255,0.05);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            padding: 32px;
            border-radius: 28px;
            border: 1px solid var(--border-bright);
            box-shadow: 0 8px 32px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
        }
        .calculator-display-large {
            background: rgba(0,0,0,0.25);
            padding: 32px 24px;
            border-radius: 20px;
            margin-bottom: 24px;
            box-shadow: inset 0 2px 8px rgba(0,0,0,0.2);
        }
        .calculator-display-large div {
            font-size: 48px;
            font-weight: 700;
            color: var(--text-primary);
            text-align: right;
            word-break: break-all;
            line-height: 1.2;
        }
        .calculator-buttons-large {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
        }
        .calc-btn-large {
            padding: 26px;
            font-size: 24px;
            border: none;
            border-radius: 18px;
            cursor: pointer;
            background: rgba(255,255,255,0.06);
            color: var(--text-primary);
            transition: all 0.15s;
            font-weight: 600;
            box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        }
        .calc-btn-large:hover {
            background: rgba(255,255,255,0.1);
            transform: translateY(-2px);
            box-shadow: 0 4px 16px rgba(0,0,0,0.25);
        }
        .calc-btn-large:active {
            transform: translateY(0);
            box-shadow: 0 1px 4px rgba(0,0,0,0.1);
        }
        .calc-operator-large {
            background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.2));
            color: var(--primary);
            font-weight: 700;
        }
        .calc-operator-large:hover {
            background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(139,92,246,0.28));
        }
        .calc-equals-large {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: #fff;
            font-weight: 700;
            font-size: 26px;
            box-shadow: 0 4px 16px rgba(99,102,241,0.35);
        }
        .calc-equals-large:hover {
            box-shadow: 0 6px 20px rgba(99,102,241,0.45);
        }
        .calc-clear-large {
            background: rgba(238,90,90,0.15);
            color: #ff6b6b;
            font-weight: 600;
        }
        .calc-clear-large:hover {
            background: rgba(238,90,90,0.25);
        }
        .calc-equals-large {
            background: linear-gradient(135deg, var(--primary), var(--accent));
            color: white;
            font-weight: 600;
        }
        .calc-clear-large {
            background: rgba(239,68,68,0.15);
            color: #f87171;
        }
        .calc-zero-large {
            grid-column: span 2;
        }

        /* 反馈图标 */
        .feedback-icon {
            font-size: 24px;
            cursor: pointer;
            transition: all 0.2s;
            flex-shrink: 0;
            color: var(--text-dim);
            position: relative;
        }
        .feedback-icon:hover {
            color: var(--primary);
            transform: scale(1.1);
        }
        .feedback-icon:hover::after {
            content: '意见反馈和Bug提交';
            position: absolute;
            bottom: -28px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 4px 12px;
            border-radius: 6px;
            font-size: 12px;
            white-space: nowrap;
            z-index: 1000;
        }

        /* 图片上传容器 */
        .image-upload-container {
            display: flex;
            gap: 12px;
            margin-top: 8px;
        }

        .image-upload-box {
            flex: 1;
            aspect-ratio: 1;
            border: 2px dashed var(--border);
            border-radius: 12px;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            background: var(--glass-card);
        }

        .image-upload-box:hover {
            border-color: var(--primary);
            background: rgba(99,102,241,0.1);
        }

        .upload-placeholder {
            text-align: center;
            color: var(--text-dim);
            font-size: 12px;
        }

        .remove-image-btn {
            position: absolute;
            top: 4px;
            right: 4px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            border: none;
            background: rgba(0,0,0,0.6);
            color: white;
            font-size: 14px;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .remove-image-btn:hover {
            background: rgba(239,68,68,0.9);
        }

        /* ── 移动端响应式优化 ── */
        @media (max-width: 768px) {
            .container {
                padding: 0 12px;
            }
            
            /* 头部优化 */
            header {
                padding: 10px 0;
            }
            
            .header-content {
                gap: 12px;
            }
            
            .logo {
                font-size: 18px;
            }
            
            .logo-icon {
                font-size: 20px;
            }
            
            /* 搜索框优化 */
            .search-bar {
                padding: 10px 14px;
                font-size: 14px;
            }
            
            /* 分类导航优化 */
            .category-tabs {
                overflow-x: auto;
                padding: 8px 0;
                gap: 8px;
            }
            
            .category-tab {
                flex-shrink: 0;
                padding: 8px 16px;
                font-size: 13px;
            }
            
            /* 工具卡片优化 */
            .tools-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 12px;
            }
            
            .tool-card {
                padding: 14px;
            }
            
            .card-icon {
                font-size: 24px;
            }
            
            .card-name {
                font-size: 13px;
            }
            
            .card-desc {
                font-size: 11px;
                display: none;
            }
            
            /* 最近使用栏优化 */
            .recent-bar {
                padding: 8px 12px;
            }
            
            .recent-item {
                width: 36px;
                height: 36px;
                font-size: 14px;
            }
            
            /* 页脚优化 */
            footer {
                padding: 20px 0;
            }
            
            .footer-content {
                flex-direction: column;
                gap: 16px;
                text-align: center;
            }
            
            .footer-links {
                flex-wrap: wrap;
                justify-content: center;
            }
            
            /* 模态框优化 */
            .modal-content {
                margin: 12px;
                width: calc(100% - 24px);
            }
            
            /* 表单优化 */
            .form-input {
                padding: 12px 14px;
                font-size: 15px;
            }
            
            .btn {
                padding: 12px 24px;
                font-size: 15px;
                min-height: 44px;
            }
            
            /* 计算器优化 */
            .calculator-display-large div {
                font-size: 32px;
            }
            
            .calculator-buttons-large {
                gap: 10px;
            }
            
            .calc-btn-large {
                padding: 20px;
                font-size: 20px;
            }
            
            /* JSON格式化工具优化 */
            .json-panel textarea {
                min-height: 200px;
                padding: 12px;
                font-size: 12px;
            }
        }
        
        /* 小屏幕优化 */
        @media (max-width: 480px) {
            .tools-grid {
                grid-template-columns: 1fr;
            }
            
            .tool-card {
                flex-direction: row;
                align-items: center;
                gap: 14px;
            }
            
            .card-icon {
                width: 44px;
                height: 44px;
                font-size: 20px;
            }
            
            .card-info {
                flex: 1;
                text-align: left;
            }
            
            .card-desc {
                display: block;
                font-size: 12px;
                margin-top: 2px;
            }
            
            .category-tab {
                padding: 7px 12px;
                font-size: 12px;
            }
            
            .search-bar {
                padding: 8px 12px;
                font-size: 13px;
            }
        }
    