:root {
            --primary: #3b82f6;
            --glass-bg: rgba(255, 255, 255, 0.75);
            --glass-border: rgba(255, 255, 255, 0.8);
            --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
            --sidebar-width: 240px;
            --text-dark: #1e293b;
            --text-gray: #64748b;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            background-color: #fdfbf7;
            background-image: linear-gradient(to bottom right, #fdfbf7 0%, #f3f4f6 100%);
            min-height: 100vh;
            color: var(--text-dark);
            overflow-x: hidden;
            /* 增加 body 的过渡，防止布局跳动 */
            transition: all 0.3s ease;
        }

        .hero-title-gradient {
            background: linear-gradient(135deg, #0f172a 20%, #3b82f6 80%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* --- 布局框架 --- */
        .app-container { display: flex; min-height: 100vh; position: relative; }
        
        /* 侧边栏样式优化 */
        .sidebar {
            width: var(--sidebar-width);
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(20px);
            border-right: 1px solid white;
            padding: 2rem 1rem;
            position: fixed;
            top: 0;
            left: 0;
            height: 100vh;
            overflow-y: auto;
            z-index: 1040; /* 提高层级，高于 Bootstrap 的默认 navbar */
            display: flex; flex-direction: column;
            box-shadow: 4px 0 24px rgba(0,0,0,0.02);
            /* 添加过渡动画，用于折叠效果 */
            transition: width 0.3s ease-in-out, padding 0.3s ease-in-out, transform 0.3s ease-in-out;
        }

        .main-content {
            flex: 1;
            /* 默认留出侧边栏宽度 */
            margin-left: var(--sidebar-width);
            padding: 2rem 3rem;
            /* 添加过渡动画，配合侧边栏折叠 */
            transition: margin-left 0.3s ease-in-out;
            width: 100%;
        }

        /* === 响应式与折叠逻辑 (核心修改) === */

        /* 1. PC 端折叠状态 (通过给 body 加 .sb-collapsed 类触发) */
        body.sb-collapsed .sidebar { transform: translateX(-100%); }
        body.sb-collapsed .main-content { margin-left: 0; }

        /* 2. 移动端样式 (< 992px) */
        @media (max-width: 991.98px) {
            /* 移动端默认状态：侧边栏隐藏，内容全宽 */
            .sidebar {
                width: var(--sidebar-width);
                transform: translateX(-100%);
                box-shadow: 4px 0 30px rgba(0,0,0,0.1); /* 移动端打开时阴影加深 */
            }
            body.sb-collapsed .sidebar { width: var(--sidebar-width); padding: 2rem 1rem; transform: translateX(-100%); }
            .main-content {
                margin-left: 0;
                padding: 1.5rem; /* 移动端减小内边距 */
            }
            body.sb-collapsed .main-content { margin-left: 0; }

            /* 移动端激活状态 (通过给 body 加 .sb-active 类) */
            body.sb-active .sidebar {
                transform: translateX(0);
            }
            
            /* 移动端遮罩层 (侧边栏打开时显示背景变暗) */
            .sidebar-overlay {
                position: fixed; top: 0; left: 0; width: 100%; height: 100%;
                background: rgba(0,0,0,0.3); z-index: 1030;
                opacity: 0; visibility: hidden; transition: all 0.3s;
                backdrop-filter: blur(2px);
            }
            body.sb-active .sidebar-overlay {
                opacity: 1; visibility: visible;
            }
        }

        /* 3. 菜单切换按钮样式 */
        .btn-toggle-sidebar {
            border: none;
            background: white;
            color: var(--text-dark);
            width: 42px; height: 42px;
            border-radius: 12px;
            display: inline-flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transition: all 0.2s;
            cursor: pointer;
            margin-bottom: 1rem; /* 与标题保持距离 */
            border: 1px solid rgba(0,0,0,0.05);
        }
        .btn-toggle-sidebar:hover {
            background: var(--primary);
            color: white;
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(59,130,246,0.2);
        }
        .sidebar-head { min-height: 44px; }
        .sidebar-head .btn-toggle-sidebar { flex: 0 0 42px; margin: 0; }
        .desktop-sidebar-trigger { display: none; position: fixed; left: 18px; top: 18px; z-index: 1025; margin: 0; }
        body.sb-collapsed .desktop-sidebar-trigger { display: inline-flex; }
        .top-control-card { width: 100%; margin: 0 0 34px; padding: 22px 28px; border-radius: 24px; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.96); box-shadow: 0 12px 34px rgba(15,23,42,.07); backdrop-filter: blur(14px); }
        .top-control-layout { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
        .top-control-copy { min-width: 0; text-align: left; }
        .top-control-nav { min-width: 0; display: flex; justify-content: center; flex-shrink: 0; }
        .mobile-title-break { display: none; }
        .top-control-card .top-nav-pills { margin-top: 0 !important; margin-bottom: 0; }
        .mobile-menu-btn { display: none; }
        @media (max-width: 991.98px) {
            .top-control-card { position: relative; padding: 20px 14px 12px; margin-bottom: 24px; border-radius: 20px; }
            .desktop-sidebar-trigger { display: none !important; }
            .top-control-layout { flex-direction: column; align-items: stretch; gap: 0; min-width: 0; }
            .top-control-copy { text-align: center; }
            .top-control-nav { width: 100%; min-width: 0; }
            .mobile-menu-btn { display: inline-flex; position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; border: 0; border-radius: 11px; align-items: center; justify-content: center; background: #f1f5f9; color: var(--primary); }
            .top-control-card h1 { padding: 0 34px; font-size: clamp(.78rem, 3.35vw, 1.12rem) !important; line-height: 1.25 !important; letter-spacing: -.04em !important; white-space: nowrap; }
            .top-control-card p { padding: 0 12px; font-size: .76rem !important; }
            .top-control-card .top-nav-pills { margin-top: 16px !important; width: 100%; justify-content: flex-start; border-radius: 16px; }
            .top-control-card .top-nav-pills .nav-link { padding: 8px 14px; font-size: .82rem; }
        }
        @media (max-width: 575.98px) {
            .top-control-card h1 {
                padding: 0 30px;
                font-size: clamp(1.08rem, 4.8vw, 1.35rem) !important;
                line-height: 1.35 !important;
                letter-spacing: -.02em !important;
                white-space: normal;
            }
            .mobile-title-break { display: inline; }
            .desktop-title-separator { display: none; }
            .top-control-card .top-nav-pills {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 5px;
                overflow-x: visible;
            }
            .top-control-card .top-nav-pills .nav-item { min-width: 0; }
            .top-control-card .top-nav-pills .nav-link { width: 100%; padding: 8px 6px; font-size: .78rem; }
            .top-control-card .top-nav-pills .nav-link i { margin-right: .35rem !important; }
        }
        /* PC端按钮悬浮效果 (可选，如果你想让他一直悬浮左上角，可以加 position:fixed)
           目前放在 main-content流里面比较自然 */
        

        /* ... 原有样式保持不变 ... */
        .brand-title {
            font-weight: 800; font-size: 1.4rem;
            background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
            margin-bottom: 2rem; padding-left: 10px;
        }
        .sidebar-category { margin-bottom: 5px; }
        .sidebar-category-btn {
            width: 100%; text-align: left; background: none; border: none;
            padding: 10px 15px; font-weight: 700; color: #475569; font-size: 0.9rem;
            display: flex; justify-content: space-between; align-items: center;
            border-radius: 8px; transition: all 0.2s;
        }
        .sidebar-category-btn:hover { background: rgba(59, 130, 246, 0.05); color: var(--primary); }
        .sidebar-category-btn[aria-expanded="true"] { color: var(--primary); background: rgba(59, 130, 246, 0.08); }
        .sidebar-category-btn i { transition: transform 0.2s; font-size: 0.8rem; }
        .sidebar-category-btn[aria-expanded="true"] i { transform: rotate(180deg); }
        .sidebar-sub-list { list-style: none; padding: 5px 0 10px 0; margin: 0; display: none; }
        .sidebar-sub-list.show { display: block; animation: slideDown 0.2s ease; }
        .sidebar-link {
            display: block; padding: 6px 15px 6px 30px;
            color: #64748b; text-decoration: none; font-size: 0.85rem; font-weight: 500;
            border-left: 2px solid transparent; transition: all 0.2s;
        }
        .sidebar-link:hover { color: var(--primary); border-left-color: var(--primary); background: linear-gradient(90deg, rgba(59,130,246,0.05), transparent); }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

        .top-nav-pills {
            background: white; padding: 5px; border-radius: 50px;
            display: inline-flex; box-shadow: 0 4px 20px rgba(0,0,0,0.03);
            margin-bottom: 30px; border: 1px solid rgba(0,0,0,0.05);
            /* 移动端导航栏允许横向滚动 */
            flex-wrap: nowrap; overflow-x: auto; max-width: 100%;
        }
        .top-nav-pills .nav-link { border-radius: 50px; color: var(--text-gray); font-weight: 600; padding: 8px 24px; white-space: nowrap;}
        .top-nav-pills .nav-link.active { background: var(--primary); color: white; box-shadow: 0 2px 10px rgba(59,130,246,0.3); }

        .sidebar-filter-panel { padding: 0 4px 16px; margin-bottom: 14px; border-bottom: 1px solid #e2e8f0; }
        .sidebar-search { width: 100%; min-height: 40px; border: 1px solid #e2e8f0; border-radius: 11px; padding: 8px 10px 8px 34px; font-size: .8rem; outline: none; background: #fff; }
        .sidebar-search:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,130,246,.1); }
        .sidebar-search-wrap { position: relative; margin-bottom: 9px; }
        .sidebar-search-wrap i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
        .custom-select { width: 100%; margin-bottom: 9px; }
        .custom-select-toggle { width: 100%; min-height: 40px; border: 1px solid #e2e8f0; border-radius: 11px; padding: 8px 10px; background: #fff; color: #475569; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .8rem; font-weight: 700; text-align: left; }
        .custom-select-toggle i { transition: transform .2s; }
        .custom-select.open .custom-select-toggle { border-color: var(--primary); }
        .custom-select.open .custom-select-toggle i { transform: rotate(180deg); }
        .custom-select-options { display: none; position: static; width: 100%; margin-top: 6px; padding: 5px; background: #fff; border: 1px solid #e2e8f0; border-radius: 11px; box-shadow: 0 8px 20px rgba(15,23,42,.08); max-height: 210px; overflow-y: auto; }
        .custom-select.open .custom-select-options { display: block; }
        .custom-select-option { width: 100%; border: 0; background: transparent; color: #64748b; padding: 8px 9px; border-radius: 8px; text-align: left; font-size: .78rem; }
        .custom-select-option:hover, .custom-select-option.active { background: rgba(59,130,246,.09); color: var(--primary); }
        .custom-select[data-value="custom"] .custom-select-toggle, .custom-select[data-value="favorites"] .custom-select-toggle, .custom-select-option[data-value="custom"], .custom-select-option[data-value="favorites"] { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
        .custom-select-option[data-value="custom"]:hover, .custom-select-option[data-value="custom"].active, .custom-select-option[data-value="favorites"]:hover, .custom-select-option[data-value="favorites"].active { background: #dbeafe; color: #1e40af; }
        .palette-result-count { color: #64748b; font-size: .82rem; font-weight: 700; white-space: nowrap; }
        .palette-category-label { color: #94a3b8; font-size: .68rem; font-weight: 800; letter-spacing: .04em; margin-top: 3px; }
        .btn-library-filter { display: flex; align-items: center; justify-content: flex-start; gap: 6px; background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; font-weight: 800; }
        .btn-library-filter:hover, .btn-library-filter:focus-visible, .btn-library-filter.active { background: #dbeafe; border-color: #93c5fd; color: #1e40af; }
        .btn-library-count { margin-left: auto; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: rgba(37,99,235,.1); color: #1d4ed8; font-size: .66rem; text-align: center; }
        .btn-creative { background: #fff1f2; border-color: #fecdd3; color: #e11d48; }
        .btn-creative:hover, .btn-creative:focus-visible { background: #ffe4e6; border-color: #fda4af; color: #be123c; }
        .btn-creative:focus-visible { box-shadow: 0 0 0 .2rem rgba(225,29,72,.14); }
        .btn-creative:active { background: #fecdd3 !important; border-color: #fb7185 !important; color: #9f1239 !important; }
        .favorite-btn { width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 10px; background: #f1f5f9; color: #94a3b8; transition: all .2s; }
        .favorite-btn:hover { color: #ef4444; transform: scale(1.06); }
        .favorite-btn.active { color: #ef4444; background: #fff1f2; }
        .favorite-btn.heart-btn, .favorite-btn.heart-btn.active { background: transparent; }
        .card-header-actions { display: flex; gap: 5px; }
        .card-stars { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; color: #64748b; }
        .palette-empty { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed #cbd5e1; border-radius: 20px; text-align: center; color: #64748b; background: rgba(255,255,255,.55); }
        .palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
        .palette-card {
            background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
            border: 1px solid var(--glass-border); border-radius: 20px; padding: 20px;
            box-shadow: var(--glass-shadow); transition: transform 0.3s ease, box-shadow 0.3s ease;
            display: flex; flex-direction: column;
        }
        .palette-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(31, 38, 135, 0.1); background: rgba(255, 255, 255, 0.9); }
        .card-header-title { font-weight: 700; font-size: 1.1rem; color: var(--text-dark); margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
        .color-list { display: flex; flex-direction: column; gap: 10px; }
        .color-item { display: flex; align-items: center; gap: 12px; padding: 4px 8px; border-radius: 10px; cursor: pointer; transition: background 0.2s; }
        .color-item:hover { background: rgba(255,255,255,0.8); }
        .color-item:hover .color-dot { transform: rotate(45deg) scale(1.1); }
        .color-dot { width: 28px; height: 28px; border-radius: 2px 50% 50% 50%; transform: rotate(45deg); box-shadow: 2px 4px 6px rgba(0,0,0,0.1); border: none; transition: all 0.3s; margin: 4px; position: relative; }
        .color-codes { display: flex; flex-direction: column; line-height: 1.2; overflow: hidden; }
        .code-hex { font-family: 'JetBrains Mono', monospace; font-weight: 600; font-size: 0.9rem; color: #334155; }
        .code-rgb { font-size: 0.75rem; color: #94a3b8; margin-top: 2px; font-family: 'JetBrains Mono'; white-space: nowrap; }
        .btn-preview { margin-top: 20px; width: 100%; border-radius: 10px; padding: 8px; font-size: 0.9rem; font-weight: 600; background: rgba(59, 130, 246, 0.08); color: var(--primary); border: none; transition: all 0.2s; }
        .btn-preview:hover { background: var(--primary); color: #fff; }
        .palette-card-actions { display: grid; grid-template-columns: 1fr 44px 44px; gap: 8px; margin-top: 20px; }
        .palette-card-actions .btn-preview { margin-top: 0; }
        .palette-icon-btn { border: 0; border-radius: 10px; background: #f1f5f9; color: #475569; transition: all .2s; }
        .palette-icon-btn:hover { color: #fff; background: var(--primary); transform: translateY(-1px); }
        .export-preview { min-height: 230px; font-family: 'JetBrains Mono', monospace; font-size: .82rem; background: #0f172a; color: #dbeafe; border: 0; }
        .editor-color-list { display: flex; flex-direction: column; gap: 9px; max-height: 52vh; overflow-y: auto; padding-right: 4px; }
        .editor-color-row { display: grid; grid-template-columns: 44px minmax(0,1fr) 38px 38px 38px; gap: 7px; align-items: center; padding: 8px; border: 1px solid #e2e8f0; border-radius: 13px; background: #f8fafc; }
        .editor-color-swatch { width: 44px; height: 38px; padding: 0; border: 3px solid #fff; border-radius: 10px; cursor: pointer; box-shadow: 0 0 0 1px #cbd5e1, 0 4px 10px rgba(15,23,42,.12); }
        .editor-hex-input { min-width: 0; height: 38px; border: 1px solid #dbe4ee; border-radius: 9px; padding: 7px 9px; font-family: 'JetBrains Mono', monospace; font-size: .8rem; text-transform: uppercase; }
        .editor-row-btn { width: 38px; height: 38px; border: 0; border-radius: 9px; color: #64748b; background: #fff; }
        .editor-row-btn:hover { color: #fff; background: var(--primary); }
        .editor-row-btn.danger:hover { background: #ef4444; }
        .editor-tools { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
        .editor-picker-panel { grid-column: 1 / -1; display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 11px 14px; align-items: center; padding: 13px; margin-top: 3px; border-radius: 12px; background: #fff; border: 1px solid #dbe4ee; box-shadow: 0 10px 24px rgba(15,23,42,.07); }
        .editor-picker-preview { grid-row: span 3; width: 92px; height: 92px; border-radius: 16px; border: 4px solid #fff; box-shadow: 0 0 0 1px #cbd5e1, 0 8px 20px rgba(15,23,42,.14); }
        .editor-slider-group { min-width: 0; }
        .editor-slider-label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; font-size: .68rem; color: #64748b; font-weight: 800; }
        .editor-slider { appearance: none; width: 100%; height: 10px; border-radius: 999px; outline: none; cursor: pointer; }
        .editor-slider::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid #334155; box-shadow: 0 2px 6px rgba(15,23,42,.22); }
        .editor-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid #334155; box-shadow: 0 2px 6px rgba(15,23,42,.22); }
        .hue-slider { background: linear-gradient(90deg,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00); }
        @media(max-width: 576px) { .editor-picker-panel { grid-template-columns: 1fr; } .editor-picker-preview { grid-row: auto; width: 100%; height: 58px; } }
        .recommend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
        .recommend-card { border: 1px solid #e2e8f0; border-radius: 15px; padding: 13px; background: #fff; }
        .recommend-title { font-size: .86rem; font-weight: 800; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .recommend-meta { font-size: .68rem; color: #94a3b8; margin: 3px 0 9px; }
        .recommend-colors { display: flex; height: 34px; overflow: hidden; border-radius: 9px; border: 1px solid rgba(15,23,42,.08); }
        .recommend-colors span { flex: 1; min-width: 10px; }
        .recommend-score { font-family: 'JetBrains Mono', monospace; font-size: .68rem; color: var(--primary); font-weight: 800; }
        @media(max-width: 576px) { .editor-color-row { grid-template-columns: 40px minmax(0,1fr) 34px 34px 34px; gap: 4px; padding: 6px; } .editor-row-btn { width: 34px; } }

        .help-guide-btn { position: fixed; left: 18px; bottom: 18px; z-index: 1060; border: 1px solid rgba(59,130,246,.18); border-radius: 999px; padding: 10px 16px; background: rgba(255,255,255,.94); color: var(--primary); font-weight: 800; box-shadow: 0 10px 28px rgba(15,23,42,.14); backdrop-filter: blur(12px); transition: transform .2s, box-shadow .2s, background .2s; }
        .help-guide-btn:hover { transform: translateY(-2px); background: var(--primary); color: #fff; box-shadow: 0 14px 32px rgba(59,130,246,.25); }
        .guide-step { display: grid; grid-template-columns: 34px minmax(0,1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid #e2e8f0; }
        .guide-step:last-child { border-bottom: 0; }
        .guide-step-number { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(59,130,246,.1); color: var(--primary); font-weight: 800; }
        .guide-step h6 { margin: 0 0 4px; font-weight: 800; color: #334155; }
        .guide-step p { margin: 0; color: #64748b; font-size: .86rem; line-height: 1.65; }
        @media(max-width: 991.98px) {
            .help-guide-btn { left: 14px; bottom: 14px; width: 44px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
            .help-guide-btn .help-guide-text { display: none; }
            .help-guide-btn i { margin: 0 !important; font-size: 1.15rem; }
        }

        .swatch-group { background: white; border-radius: 20px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
        .swatch-header { font-weight: 700; margin-bottom: 15px; color: #475569; border-bottom: 1px solid #f1f5f9; padding-bottom: 10px;}
        .swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 10px; }
        .swatch-item { aspect-ratio: 1; border-radius: 6px; cursor: pointer; border: 1px solid rgba(0,0,0,0.1); transition: transform 0.15s; position: relative; }
        .swatch-item::after { content: attr(data-tooltip); position: absolute; bottom: 110%; left: 50%; transform: translateX(-50%) translateY(10px); background: rgba(30, 41, 59, 0.95); color: #fff; padding: 6px 10px; border-radius: 6px; font-size: 0.75rem; font-family: 'JetBrains Mono', monospace; white-space: pre; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transition: all 0.2s cubic-bezier(0.68, -0.55, 0.265, 1.55); z-index: 10; box-shadow: 0 4px 6px rgba(0,0,0,0.1); font-weight: 500; }
        .swatch-item:hover::after { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

        .preview-container { background: #fff; border-radius: 32px; padding: 40px; box-shadow: 0 20px 60px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.02); }
        @media(max-width: 768px) { .preview-container { padding: 20px; } } /* 移动端预览容器内边距减小 */
        .chart-box { background: #f8fafc; border-radius: 20px; padding: 24px; height: 360px; position: relative; margin-bottom: 24px; border: 1px solid #e2e8f0; }
        .chart-title { position: absolute; top: 20px; left: 24px; font-size: 0.9rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; }
        .accessibility-panel { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px; margin-bottom: 24px; }
        .audit-color-row { display: flex; flex-wrap: wrap; gap: 9px; }
        .audit-chip { min-width: 84px; border-radius: 11px; padding: 9px 8px; text-align: center; font-family: 'JetBrains Mono', monospace; font-size: .68rem; font-weight: 700; border: 1px solid rgba(15,23,42,.08); box-shadow: 0 3px 9px rgba(15,23,42,.05); }
        .audit-chip small { display: block; font-family: 'Plus Jakarta Sans'; font-size: .62rem; margin-top: 2px; opacity: .78; }
        .vision-row { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px; align-items: center; margin-top: 11px; }
        .vision-label { font-size: .75rem; color: #64748b; font-weight: 800; }
        .vision-colors { display: flex; min-width: 0; height: 32px; border-radius: 9px; overflow: hidden; border: 1px solid rgba(15,23,42,.08); }
        .vision-color { flex: 1; min-width: 14px; }
        @media(max-width: 576px) { .vision-row { grid-template-columns: 1fr; gap: 5px; } }

        .paper-demo-section { margin-top: 18px; }
        .paper-demo-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 10px 0 18px; }
        .paper-demo-head h5 { margin: 0; font-weight: 800; letter-spacing: -0.02em; }
        .paper-demo-head p { margin: 4px 0 0; color: #64748b; font-size: 0.88rem; }
        .paper-demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
        .paper-demo-card {
            --c1: #3b82f6; --c2: #22c55e; --c3: #ef4444; --c4: #a855f7; --c5: #f59e0b;
            min-height: 255px; background: #ffffff; border: 1px solid #e5e7eb; border-radius: 18px;
            padding: 16px; box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04); overflow: hidden;
        }
        .paper-demo-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
        .paper-demo-title strong { font-size: 0.92rem; color: #1e293b; }
        .paper-demo-title span { font-size: 0.7rem; color: #94a3b8; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
        .paper-canvas { width: 100%; height: 178px; display: block; background: #f8fafc; border: 1px solid #edf2f7; border-radius: 14px; }
        .paper-if-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; height: 178px; }
        .paper-if-panel { position: relative; min-width: 0; border-radius: 12px; border: 1px solid #1f2937; background: #070b18; overflow: hidden; }
        .paper-if-panel::before,
        .paper-if-panel::after { content: ""; position: absolute; border-radius: 999px; opacity: .92; filter: blur(.2px); }
        .paper-if-panel::before { width: 16px; height: 16px; left: 16%; top: 20%; }
        .paper-if-panel::after { width: 13px; height: 13px; right: 18%; bottom: 25%; }
        .if-dapi::before, .if-dapi::after { background: #2f6bff; box-shadow: 0 0 16px #2f6bff, 44px 44px 0 -2px rgba(47,107,255,.82), 24px 84px 0 -4px rgba(47,107,255,.68); }
        .if-target::before, .if-target::after { background: #ff3b30; box-shadow: 0 0 16px #ff3b30, 35px 58px 0 -4px rgba(255,59,48,.74), -2px 92px 0 -5px rgba(255,59,48,.58); }
        .if-merge::before { background: #2f6bff; box-shadow: 0 0 16px #2f6bff, 42px 44px 0 -2px rgba(47,107,255,.76), 24px 84px 0 -4px rgba(47,107,255,.62); }
        .if-merge::after { background: #ff3b30; box-shadow: 0 0 16px #ff3b30, -12px -5px 0 -3px rgba(255,59,48,.62), -50px 62px 0 -5px rgba(255,59,48,.52); }
        .if-label { position: absolute; left: 7px; top: 7px; color: rgba(255,255,255,.82); font-size: .58rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
        .paper-scale { position: absolute; right: 8px; bottom: 8px; width: 34px; height: 3px; border-radius: 99px; background: #fff; opacity: .9; }
        .paper-blot { height: 178px; border-radius: 14px; border: 1px solid #edf2f7; background: linear-gradient(180deg, #f8fafc, #ffffff); padding: 14px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(72px, .75fr); gap: 12px; }
        .blot-membrane { min-width: 0; border-radius: 10px; border: 1px solid #e5e7eb; background: linear-gradient(180deg, #f1f5f9, #ffffff); padding: 14px 10px 8px; }
        .blot-row { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); align-items: center; gap: 8px; margin-bottom: 15px; color: #64748b; font-size: .64rem; font-weight: 800; }
        .blot-band { height: 12px; border-radius: 999px; background: #111827; filter: blur(.25px); opacity: .78; }
        .blot-band.soft { opacity: .32; }
        .blot-band.mid { opacity: .52; }
        .blot-lane-labels { display: grid; grid-template-columns: 44px repeat(4, minmax(0, 1fr)); gap: 8px; color: #94a3b8; font-size: .58rem; text-align: center; }
        .blot-quant { min-width: 0; border-radius: 10px; background: #f8fafc; border: 1px solid #edf2f7; padding: 12px 10px 8px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 6px; }
        .blot-bar { min-height: 18px; border-radius: 7px 7px 2px 2px; background: var(--c1); opacity: .88; }
        .blot-bar:nth-child(1) { height: 28%; background: #94a3b8; }
        .blot-bar:nth-child(2) { height: 48%; background: var(--c1); }
        .blot-bar:nth-child(3) { height: 78%; background: var(--c2); }
        .blot-bar:nth-child(4) { height: 56%; background: var(--c3); }
        .paper-pathway { height: 178px; border-radius: 14px; border: 1px solid #edf2f7; background: linear-gradient(135deg, #fbfdff, #f8fafc); padding: 18px; display: grid; align-items: center; gap: 8px; }
        .path-node { min-width: 0; min-height: 64px; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 8px; color: #fff; font-size: .72rem; font-weight: 800; text-align: center; box-shadow: 0 10px 20px rgba(15,23,42,.12); overflow: hidden; text-overflow: ellipsis; }
        .path-arrow { color: #94a3b8; font-size: 1.2rem; text-align: center; }
        .paper-workflow { height: 178px; border-radius: 14px; border: 1px solid #edf2f7; background: #f8fafc; padding: 18px; display: grid; gap: 10px; align-items: center; }
        .workflow-step { min-width: 0; position: relative; min-height: 96px; border-radius: 14px; background: #fff; border: 1px solid #e5e7eb; padding: 12px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; }
        .workflow-step:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 50%; width: 10px; height: 2px; background: #cbd5e1; }
        .workflow-icon { width: 34px; height: 34px; border-radius: 12px; background: var(--c1); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
        .workflow-step span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .68rem; color: #475569; font-weight: 800; }
        @media(max-width: 768px) {
            .paper-demo-head { align-items: flex-start; flex-direction: column; }
            .paper-demo-grid { grid-template-columns: 1fr; }
            .paper-if-grid { height: 168px; }
            .paper-workflow { grid-template-columns: repeat(2, 1fr); height: auto; }
            .workflow-step:not(:last-child)::after { display: none; }
        }

        .image-picker-shell { background: #fff; border: 1px solid #e8edf3; border-radius: 20px; padding: 26px; }
        .image-picker-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
        .image-picker-head h4 { margin: 0 0 4px; font-weight: 800; }
        .image-picker-head p { margin: 0; color: #64748b; font-size: .86rem; }
        .image-picker-head-copy { min-width: 0; }
        .image-picker-head-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
        .image-picker-privacy { display: inline-flex; align-items: center; gap: 5px; margin-top: 7px; color: #0f766e; font-size: .72rem; font-weight: 700; }
        .image-picker-privacy i { font-size: .82rem; }
        .image-picker-layout { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(310px, .72fr); gap: 20px; align-items: start; }
        .image-picker-workspace, .image-picker-records { min-width: 0; border: 1px solid #e2e8f0; border-radius: 15px; background: #f8fafc; overflow: hidden; }
        .image-picker-toolbar { min-height: 56px; padding: 10px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #e2e8f0; background: #fff; }
        .image-picker-file-meta { min-width: 0; color: #64748b; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .image-picker-live { display: inline-flex; align-items: center; gap: 7px; min-width: 170px; font-family: 'JetBrains Mono', monospace; color: #64748b; }
        .image-picker-live-swatch { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 5px; background: #dbe4ee; box-shadow: inset 0 0 0 1px rgba(15,23,42,.09); }
        .image-picker-live-values { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
        .image-picker-live-hex { display: block; overflow: hidden; color: #334155; font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
        .image-picker-live-rgb { display: block; margin-top: 2px; color: #94a3b8; font-size: .62rem; font-weight: 600; white-space: nowrap; }
        .image-picker-stage { position: relative; min-height: 460px; display: grid; place-items: center; background-color: #eef2f6; background-image: linear-gradient(45deg, #e5eaf0 25%, transparent 25%), linear-gradient(-45deg, #e5eaf0 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5eaf0 75%), linear-gradient(-45deg, transparent 75%, #e5eaf0 75%); background-size: 22px 22px; background-position: 0 0, 0 11px, 11px -11px, -11px 0; overflow: hidden; transition: box-shadow .2s; }
        .image-picker-stage.dragover { box-shadow: inset 0 0 0 3px var(--primary); }
        .image-picker-stage.has-image { min-height: 0; display: block; }
        .image-picker-canvas { display: none; width: 100%; height: auto; cursor: crosshair; background: #fff; }
        .image-picker-stage.has-image .image-picker-canvas { display: block; }
        .image-picker-empty { max-width: 360px; padding: 34px 22px; text-align: center; color: #64748b; }
        .image-picker-empty-icon { width: 58px; height: 58px; margin: 0 auto 14px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: #fff; font-size: 1.55rem; box-shadow: 0 8px 24px rgba(15,23,42,.08); }
        .image-picker-empty strong { display: block; color: #334155; margin-bottom: 5px; }
        .image-picker-empty small { display: block; margin-bottom: 15px; line-height: 1.6; }
        .image-picker-stage.has-image .image-picker-empty { display: none; }
        .image-picker-marker-layer { position: absolute; inset: 0; pointer-events: none; }
        .image-picker-marker { position: absolute; width: 22px; height: 22px; transform: translate(-50%, -50%); border: 2px solid #fff; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .58rem; font-weight: 800; box-shadow: 0 2px 8px rgba(15,23,42,.42); }
        .image-picker-marker::after { content: ""; position: absolute; inset: -5px; border: 1px solid rgba(15,23,42,.35); border-radius: 50%; }
        .image-picker-marker:not(.selected) { opacity: .42; }
        .image-picker-tip { padding: 9px 12px; color: #64748b; background: #fff; border-top: 1px solid #e2e8f0; font-size: .72rem; }
        .image-picker-records { background: #fff; }
        .image-picker-record-head { min-height: 56px; padding: 10px 12px; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
        .image-picker-record-title { font-size: .86rem; font-weight: 800; color: #334155; }
        .image-picker-record-count { font-size: .68rem; color: #94a3b8; margin-top: 2px; }
        .image-picker-record-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
        .image-picker-text-btn { border: 1px solid #dbe4ee; background: #fff; color: #475569; border-radius: 8px; padding: 5px 9px; font-size: .7rem; font-weight: 700; line-height: 1.2; }
        .image-picker-text-btn:hover { color: var(--primary); border-color: #93c5fd; background: #eff6ff; }
        .image-picker-text-btn.danger:hover { color: #be123c; border-color: #fda4af; background: #fff1f2; }
        .image-picker-record-list { min-height: 360px; max-height: 570px; overflow-y: auto; padding: 8px; }
        .image-picker-record-empty { padding: 70px 16px; text-align: center; color: #94a3b8; font-size: .8rem; line-height: 1.7; }
        .image-picker-record { display: grid; grid-template-columns: 20px 42px minmax(0,1fr) 30px; gap: 9px; align-items: center; min-height: 58px; padding: 8px; border-radius: 11px; transition: background .15s; }
        .image-picker-record:hover { background: #f8fafc; }
        .image-picker-record input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
        .image-picker-record-swatch { width: 42px; height: 42px; border-radius: 9px; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
        .image-picker-record-code { min-width: 0; }
        .image-picker-record-code button { display: block; max-width: 100%; padding: 0; border: 0; background: transparent; color: #334155; font: 700 .78rem 'JetBrains Mono', monospace; }
        .image-picker-record-code .image-picker-record-rgb { margin-top: 3px; color: #64748b; font-size: .68rem; font-weight: 700; text-align: left; }
        .image-picker-record-code .image-picker-record-source { display: block; max-width: 100%; margin-top: 2px; color: #94a3b8; font: .6rem 'JetBrains Mono', monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .image-picker-delete { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #94a3b8; }
        .image-picker-delete:hover { color: #ef4444; background: #fff1f2; }
        .image-picker-actions { padding: 12px; border-top: 1px solid #e2e8f0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #fff; }
        .image-picker-actions .btn { min-width: 0; font-size: .76rem; font-weight: 700; border-radius: 9px; }
        .image-picker-sidebar-panel { padding: 14px 12px 16px; }
        .image-picker-sidebar-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; color: #334155; font-size: .82rem; font-weight: 800; }
        .image-picker-sidebar-title > span:last-child { color: #94a3b8; font-size: .68rem; font-weight: 700; }
        .image-picker-sidebar-list { display: flex; flex-direction: column; gap: 6px; max-height: 310px; overflow-y: auto; }
        .image-picker-sidebar-empty { padding: 18px 8px; border: 1px dashed #dbe4ee; border-radius: 10px; color: #94a3b8; font-size: .72rem; line-height: 1.6; text-align: center; }
        .image-picker-sidebar-item { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) 26px; align-items: center; gap: 8px; padding: 6px; border: 1px solid transparent; border-radius: 10px; background: #f8fafc; color: #475569; text-align: left; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
        .image-picker-sidebar-item:hover { background: #eff6ff; border-color: #bfdbfe; }
        .image-picker-sidebar-item.active { background: #eff6ff; border-color: #93c5fd; box-shadow: 0 0 0 2px rgba(59,130,246,.08); }
        .image-picker-sidebar-thumb { width: 38px; height: 38px; border-radius: 8px; object-fit: cover; background: #e2e8f0; box-shadow: inset 0 0 0 1px rgba(15,23,42,.08); }
        .image-picker-sidebar-meta { min-width: 0; }
        .image-picker-sidebar-name { display: block; overflow: hidden; color: #334155; font-size: .72rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
        .image-picker-sidebar-size { display: block; margin-top: 2px; color: #94a3b8; font: .61rem 'JetBrains Mono', monospace; white-space: nowrap; }
        .image-picker-sidebar-remove { width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: #94a3b8; }
        .image-picker-sidebar-remove:hover { color: #e11d48; background: #fff1f2; }
        .image-picker-sidebar-note { display: flex; align-items: flex-start; gap: 5px; margin-top: 12px; color: #0f766e; font-size: .67rem; line-height: 1.55; }
        .image-picker-sidebar-note i { margin-top: 2px; }
        @media(max-width: 1199.98px) { .image-picker-layout { grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr); } }
        @media(max-width: 899.98px) {
            .image-picker-shell { padding: 16px; border-radius: 16px; }
            .image-picker-head { align-items: flex-start; flex-direction: column; }
            .image-picker-layout { grid-template-columns: 1fr; }
            .image-picker-stage { min-height: 340px; }
            .image-picker-record-list { min-height: 180px; max-height: 360px; }
        }
        @media(max-width: 575.98px) {
            .image-picker-toolbar { align-items: flex-start; flex-direction: column; }
            .image-picker-actions { grid-template-columns: 1fr; }
            .image-picker-head-actions { width: 100%; }
            .image-picker-head-actions .btn { flex: 1; }
            .image-picker-record-head { align-items: flex-start; flex-direction: column; }
            .image-picker-record-tools { width: 100%; justify-content: flex-start; }
        }
        
        .toast-custom { background: rgba(30, 41, 59, 0.95); color: white; border-radius: 50px; padding: 6px 16px; box-shadow: 0 10px 30px rgba(0,0,0,0.2); }
