        /* ==================== 增强动画与视觉效果 ==================== */
        :root {
            --bg: #f3f4f6;
            --panel: #ffffff;
            --text: #111827;
            --muted: #6b7280;
            --border: rgba(17, 24, 39, 0.08);
            --brand: #2563eb;
            --brand-2: #60a5fa;
            --brand-gradient: linear-gradient(135deg, #2563eb, #3b82f6);
            --surface-gradient: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.9));
            --primary: var(--brand);
            --radius-lg: 14px;
            --radius-md: 12px;
            --radius-sm: 8px;
            --gray-50: #f9fafb;
            --gray-100: #f3f4f6;
            --gray-200: #e5e7eb;
            --gray-300: #d1d5db;
            --gray-400: #9ca3af;
            --gray-600: #4b5563;
            --gray-700: #374151;
            --gray-800: #1f2937;
            --gray-900: #111827;
            --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            --transition-soft: all .24s cubic-bezier(.22,.61,.36,1);
            --accent: #6366f1;
            --accent-2: #8b5cf6;
            --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
            --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.10);

            --danger: #dc2626;
            --success: #16a34a;
            --sidebar-expanded: 248px;
            --sidebar-collapsed: 84px;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
    body { font-family: 'Inter', -apple-system, sans-serif; background: radial-gradient(circle at 5% -10%, rgba(59,130,246,.14), transparent 35%), radial-gradient(circle at 100% 0%, rgba(99,102,241,.12), transparent 30%), linear-gradient(180deg, #f8fbff 0%, #f3f4f6 52%, #eef2ff 100%); color: var(--text); height: 100vh; overflow: hidden; display: flex; }
    body::before { content: ''; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 12% 85%, rgba(37,99,235,.08), transparent 42%), radial-gradient(circle at 85% 80%, rgba(139,92,246,.08), transparent 35%); z-index: -1; }

        /* 侧边栏交互 */
        .sidebar { width: var(--sidebar-expanded); background: rgba(255,255,255,.94); border-right: 1px solid var(--border); backdrop-filter: blur(14px); display: flex; flex-direction: column; transition: width .24s cubic-bezier(.22,.61,.36,1), transform .24s cubic-bezier(.22,.61,.36,1), box-shadow .24s cubic-bezier(.22,.61,.36,1); z-index: 1000; flex-shrink: 0; box-shadow: inset -1px 0 0 rgba(255,255,255,.45), 0 20px 32px rgba(15,23,42,.06); }
        .sidebar-backdrop { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.34); opacity: 0; pointer-events: none; transition: opacity .22s ease; z-index: 950; }
        .sidebar-header { padding: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--gray-100); }
        .sidebar-logo { font-size: 1.4rem; transition: transform 0.5s ease; background: linear-gradient(135deg, #2563eb, #6366f1); color: #fff; width: 36px; height: 36px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 8px 18px rgba(37,99,235,.2); }
        .sidebar:hover .sidebar-logo { transform: rotate(360deg); }
        .sidebar-brand-text { font-weight: 700; font-size: 1rem; white-space: nowrap; transition: opacity .2s ease; }
        .sidebar-menu { flex: 1; padding: 12px 8px; overflow-y: auto; }
        .menu-label { padding: 0 12px; font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; margin-bottom: 6px; transition: opacity .2s ease; white-space: nowrap; }
        .menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--gray-600); border: none; background: none; width: 100%; text-align: left; cursor: pointer; transition: var(--transition-soft); font-size: 0.85rem; margin-bottom: 4px; position: relative; }
        .menu-icon { width: 1.2rem; height: 1.2rem; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .menu-icon svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
        .menu-text { white-space: nowrap; }
        .menu-item:hover { background: linear-gradient(135deg, rgba(37,99,235,.08), rgba(59,130,246,.05)); color: var(--brand); padding-left: 16px; box-shadow: 0 6px 16px rgba(37,99,235,.10); }
        .menu-item.active { background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(96,165,250,.10)); color: var(--brand); font-weight: 700; box-shadow: 0 10px 24px rgba(37,99,235,.14); }
        .menu-item.active::before { content: ""; position: absolute; left: 0; top: 25%; bottom: 25%; width: 3px; background: var(--brand); border-radius: 0 3px 3px 0; }

        .content-wrapper { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; background: var(--bg); }
        .top-bar { height: 64px; background: rgba(255,255,255,.86); border-bottom: 1px solid var(--border); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: space-between; padding: 0 22px; flex-shrink: 0; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
        .main-content { flex: 1; overflow-y: auto; padding: 24px 24px 30px; position: relative; scroll-behavior: smooth; animation: fadeMainIn .4s ease both; }
        .main-content::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 18%); }
        @keyframes fadeMainIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }

        /* 页面标题区域 */
        .page-header { margin-bottom: 22px; padding: 16px 18px; border-radius: 14px; background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(248,250,252,.84)); border: 1px solid rgba(148,163,184,.22); box-shadow: var(--shadow-soft); position: relative; overflow: hidden; }
        .page-header::after { content: ''; position: absolute; right: -24px; top: -24px; width: 120px; height: 120px; background: radial-gradient(circle, rgba(96,165,250,.28), transparent 70%); pointer-events: none; }
        .page-title { font-size: 1.4rem; font-weight: 800; color: var(--gray-900); margin-bottom: 4px; letter-spacing: .01em; }
        .page-desc { color: var(--muted); font-size: 0.85rem; }
        .page-header-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
        .meta-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 0.72rem; font-weight: 700; border-radius: 999px; border: 1px solid #dbeafe; color: #1d4ed8; background: #eff6ff; }
        .meta-pill.ok { border-color: #bbf7d0; color: #166534; background: #f0fdf4; }
        .meta-pill.warn { border-color: #fde68a; color: #92400e; background: #fffbeb; }
        .quick-kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 16px; }
        .quick-kpi { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.86)); border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px 14px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
        .quick-kpi .kpi-label { color: var(--muted); font-size: 0.72rem; }
        .quick-kpi .kpi-value { margin-top: 3px; font-size: 1rem; font-weight: 800; color: var(--gray-900); }

        /* 布局网格 */
        .grid { display: grid; gap: 20px; }
        .grid-2 { grid-template-columns: 1fr 1fr; align-items: start; }

        @media (max-width: 1024px) {
            .grid-2 { grid-template-columns: 1fr; }
        }

        /* 页面切换动画 */
        .page { display: none; opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; }
        .page.active { display: block; opacity: 1; transform: translateY(0); }

        /* 卡片与表单 */
        .card { background: var(--surface-gradient); border-radius: 14px; border: 1px solid var(--gray-200); box-shadow: var(--shadow-soft); margin-bottom: 20px; overflow: hidden; transition: var(--transition-soft); }
        .card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #dbeafe; }
        .card-header { padding: 14px 20px; border-bottom: 1px solid var(--gray-100); background: linear-gradient(180deg, #f8fbff, #f9fafb); position: relative; }
        .card-header::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #2563eb, #60a5fa); }
        .card-title { font-size: 0.9rem; font-weight: 600; display: flex; align-items: center; gap: 6px; }
        .card-body { padding: 20px; }

        .form-group { margin-bottom: 16px; }
        .form-label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 6px; color: var(--gray-700); letter-spacing: .01em; }
        .form-input { width: 100%; padding: 10px 12px; min-height: 40px; border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; transition: var(--transition); font-size: 0.85rem; box-shadow: inset 0 1px 2px rgba(15,23,42,.03); }
        .form-input:hover { border-color: #bfdbfe; }
        .form-input:focus { outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); }
        textarea.form-input { min-height: 96px; resize: vertical; line-height: 1.45; }
        select.form-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%); background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
        .form-hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }

        /* 上传区点击反馈 */
        .upload-zone { border: 2px dashed #bfdbfe; border-radius: 14px; padding: 34px 20px; text-align: center; cursor: pointer; background: linear-gradient(180deg, #f8fbff, #f9fafb); transition: var(--transition-soft); position: relative; overflow: hidden; }
        .upload-zone::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(45deg, rgba(37,99,235,.03) 25%, transparent 25%, transparent 50%, rgba(37,99,235,.03) 50%, rgba(37,99,235,.03) 75%, transparent 75%, transparent); background-size: 18px 18px; opacity: 0; transition: opacity .24s ease; pointer-events: none; }
        .upload-zone::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0, rgba(59,130,246,.12), transparent 60%); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
        .upload-zone:hover { border-color: var(--brand); background: rgba(37, 99, 235, 0.03); box-shadow: 0 12px 28px rgba(37,99,235,.10); transform: translateY(-1px); }
        .upload-zone:hover::before { opacity: 1; }
        .upload-zone:hover::after { opacity: 1; }
        .upload-zone:active { transform: scale(0.995); }
        .upload-zone.dragover { border-color: var(--brand); background: rgba(37, 99, 235, 0.08); transform: translateY(-1px) scale(1.01); }
        .upload-title { font-weight: 700; }
        .upload-desc { margin-top: 4px; font-size: 0.82rem; color: var(--muted); }

        .btn { padding: 8px 16px; min-height: 40px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; transition: var(--transition-soft); display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; }
        .btn-primary { background: var(--brand-gradient); color: #fff; box-shadow: 0 10px 20px rgba(37,99,235,0.22); }
        .btn-primary:hover { filter: saturate(1.08); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(37,99,235,0.28); }
        .btn-primary:active { transform: translateY(0); }
        .btn-primary:disabled { 
            background: var(--gray-300); 
            color: var(--gray-600);
            cursor: not-allowed; 
            box-shadow: none; 
            border: 1px solid var(--gray-200);
            filter: saturate(0.85);
        }
        .btn-secondary { background: linear-gradient(180deg, #f8fafc, #eef2f7); color: var(--gray-700); border: 1px solid #dbe2ea; }
        .btn-secondary:hover { background: linear-gradient(180deg, #f1f5f9, #e2e8f0); color: var(--gray-900); box-shadow: 0 8px 16px rgba(15,23,42,.08); }
        .btn-secondary:active { transform: translateY(0); }
        .btn-block { width: 100%; justify-content: center; }
        .btn-lg { padding: 12px 24px; font-size: 0.9rem; }
        .btn .btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 1.2em; line-height: 1; flex-shrink: 0; }
        .btn:disabled .btn-icon { opacity: 0.95; }

        /* 复选框与开关 */
        .checkbox-group { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
        .checkbox-item { padding: 6px 12px; background: var(--gray-100); border-radius: 6px; cursor: pointer; font-size: 0.8rem; font-weight: 500; transition: var(--transition); border: 1px solid transparent; user-select: none; }
        .checkbox-item:hover { background: var(--gray-200); }
        .checkbox-item.selected { background: rgba(37, 99, 235, 0.1); border-color: var(--brand); color: var(--brand); }
        .checkbox-item input { display: none; }

        .switch-group { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(180deg, #fbfcff, #f8fafc); border-radius: 12px; border: 1px solid var(--gray-200); margin-bottom: 12px; transition: 0.28s cubic-bezier(.2,.8,.2,1); cursor: pointer; position: relative; overflow: hidden; }
        .switch-group::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.14), transparent 46%); opacity: 0; transition: opacity 0.25s ease; pointer-events: none; }
        .switch-group:hover { border-color: #93c5fd; background: #fff; box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08); transform: translateY(-1px); }
        .switch-group:hover::before { opacity: 1; }
        .switch-group.is-on { border-color: rgba(37, 99, 235, 0.35); background: linear-gradient(180deg, rgba(239, 246, 255, 0.95), rgba(255, 255, 255, 1)); box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12); }
        .switch-group.is-on strong { color: #1e3a8a; }
        .switch-group:active { transform: scale(0.995); }
        .switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
        .switch input { opacity: 0; width: 0; height: 0; }
        .switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #d1d5db, #9ca3af); transition: 0.25s ease; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05); }
        .switch-slider:before { position: absolute; content: ""; height: 18px; width: 18px; left: 3px; bottom: 3px; background-color: white; transition: 0.25s cubic-bezier(.22,.8,.26,1.2); border-radius: 50%; box-shadow: 0 2px 8px rgba(17,24,39,.18); }
        .switch input:checked + .switch-slider { background: linear-gradient(135deg, #2563eb, #60a5fa); box-shadow: 0 0 0 4px rgba(59,130,246,.14); }
        .switch input:checked + .switch-slider:before { transform: translateX(18px); }

        /* 弹窗表单美化 */
        .modal-form-shell { padding: 24px; max-height: 68vh; overflow-y: auto; background: linear-gradient(180deg, #fcfdff 0%, #f8fafc 100%); }
        .modal-section-title { margin: 2px 0 12px; font-size: 0.78rem; font-weight: 700; letter-spacing: .04em; color: #475569; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
        .modal-card { background: rgba(255,255,255,.88); border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; margin-bottom: 12px; box-shadow: 0 8px 20px rgba(15,23,42,.04); }
        .modal-card .form-group:last-child { margin-bottom: 0; }
        .modal-grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
        @media (max-width: 768px) { .modal-grid-two { grid-template-columns: 1fr; }}
        .layui-layer { border-radius: 16px !important; overflow: hidden; box-shadow: 0 24px 60px rgba(15,23,42,.24) !important; }
        .layui-layer-title { background: linear-gradient(180deg, #f8fbff, #f1f5f9) !important; border-bottom: 1px solid #e2e8f0 !important; font-weight: 700 !important; }
        .layui-layer-btn { border-top: 1px solid #e5e7eb !important; }
        .layui-layer-btn a { border-radius: 8px !important; }
        .layui-layer .switch-group { animation: fadeInUp .2s ease both; }
        @keyframes fadeInUp { from { opacity: 0; transform: translateY(4px);}to { opacity: 1; transform: translateY(0);}}

        /* 进度层（重设计） */
        .progress-shell {
            position: relative;
            width: 100%;
            margin: 0 auto;
            padding: 18px;
            border-radius: 16px;
            color: #dbeafe;
            background: linear-gradient(180deg, rgba(9, 20, 44, .96), rgba(7, 18, 38, .96));
            border: 1px solid rgba(148, 163, 184, .2);
            box-shadow: 0 16px 36px rgba(2, 6, 23, .42);
            backdrop-filter: blur(10px);
        }
        .progress-head { display:flex; align-items:center; justify-content:space-between; gap:12px; position: relative; z-index: 1; }
        .progress-title-wrap { display:flex; align-items:center; gap:12px; min-width:0; }
        .progress-orb {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #1d4ed8;
            box-shadow: 0 0 0 2px rgba(125, 211, 252, .25);
            font-size: 1rem;
        }
        .progress-orb.uploading { background: #0ea5e9; box-shadow: 0 0 0 2px rgba(56, 189, 248, .28); }
        .progress-orb.processing { background: #2563eb; box-shadow: 0 0 0 2px rgba(96, 165, 250, .3); }
        .progress-orb.done { background: #16a34a; box-shadow: 0 0 0 2px rgba(74, 222, 128, .32); }
        .progress-title { font-size: .98rem; font-weight: 800; color: #f8fbff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .progress-percent-pill {
            font-weight: 800;
            color: #eff6ff;
            font-size: .92rem;
            letter-spacing: .02em;
            padding: 6px 10px;
            border-radius: 999px;
            border: 1px solid rgba(147, 197, 253, .35);
            background: rgba(30, 64, 175, .38);
            min-width: 62px;
            text-align: center;
            flex-shrink: 0;
        }
        #p-step {
            margin-top: 14px;
            color: #e2e8f0;
            font-size: .86rem;
            line-height: 1.5;
            min-height: 1.5rem;
            position: relative;
            z-index: 1;
        }
        .progress-long {
            height: 10px;
            margin: 12px 0 8px;
            border-radius: 999px;
            background: rgba(30, 41, 59, .72);
            border: 1px solid rgba(148, 163, 184, .2);
            overflow: hidden;
            position: relative;
            z-index: 1;
        }
        .progress-long-fill {
            position: relative;
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, #38bdf8, #3b82f6 70%, #2563eb 100%);
            transition: width .36s cubic-bezier(.2,.9,.2,1);
        }
        .progress-meta {
            display:flex;
            justify-content:space-between;
            align-items:center;
            gap: 10px;
            font-size: .78rem;
            color: #93c5fd;
            position: relative;
            z-index: 1;
        }
        #p-stage { color: #bae6fd; font-weight: 700; }
        .progress-meta span:last-child { color: #cbd5e1; text-align: right; }
        #p-steps {
            margin-top: 12px;
            max-height: 126px;
            overflow: auto;
            padding: 10px;
            border-radius: 10px;
            border: 1px solid rgba(148, 163, 184, .18);
            background: rgba(15, 23, 42, .28);
            position: relative;
            z-index: 1;
        }
        .progress-log-item {
            color: #dbeafe;
            font-size: .76rem;
            line-height: 1.4;
            padding: 6px 8px;
            border-radius: 6px;
            background: rgba(30, 41, 59, .38);
            border: 1px solid rgba(148, 163, 184, .12);
            margin-bottom: 6px;
        }
        .progress-log-item:last-child { margin-bottom: 0; }
        @media (min-width: 768px) {
            .progress-shell { padding: 22px; }
        }
        @media (max-width: 560px) {
            .progress-head { align-items: flex-start; }
            .progress-title-wrap { flex: 1; }
            .progress-title { white-space: normal; line-height: 1.3; }
            .progress-percent-pill { min-width: 56px; font-size: .86rem; }
            .progress-meta { font-size: .74rem; }
        }

        /* 加密类型选择器 */
        .encrypt-type-selector { position: relative; }
        .encrypt-type-btn { display: flex; align-items: center; gap: 6px; padding: 6px 14px; background: #fff; border: 1px solid var(--gray-200); border-radius: 6px; cursor: pointer; font-weight: 600; font-size: 0.85rem; transition: var(--transition); }
        .encrypt-type-btn:hover { border-color: var(--brand); background: var(--gray-50); }
        .encrypt-type-dropdown { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 10px; border: 1px solid var(--border); box-shadow: 0 8px 32px rgba(0,0,0,0.1); display: none; z-index: 1100; overflow: hidden; padding: 4px; }
        .encrypt-type-selector.active .encrypt-type-dropdown { display: block; animation: slideDown 0.2s ease; }
        @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
        .encrypt-type-item { padding: 10px 14px; display: flex; align-items: center; gap: 10px; cursor: pointer; transition: 0.2s; border-radius: 6px; }
        .encrypt-type-item:hover { background: var(--gray-50); }
        .encrypt-type-item.active { background: rgba(37, 99, 235, 0.05); color: var(--brand); }
        .encrypt-type-item .icon { font-size: 1.1rem; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--gray-100); border-radius: 6px; }
        .encrypt-type-item.active .icon { background: rgba(37, 99, 235, 0.1); }

        /* 动画与反馈 */
        @keyframes spinner {
            to { transform: rotate(360deg); }
        }
        .spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 50%;
            border-top-color: #fff;
            animation: spinner 0.8s linear infinite;
        }

        /* 文件列表容器样式优化 */
        .file-list { 
            margin-top: 16px; 
            max-height: 300px; 
            overflow-y: auto; 
            padding-right: 4px;
        }
        .file-list:empty { display: none; }
        
        .file-item { 
            display: flex; 
            align-items: center; 
            gap: 12px; 
            padding: 12px 16px; 
            background: linear-gradient(180deg, #fff, #f8fbff); 
            border-radius: 12px; 
            margin-bottom: 8px; 
            border: 1px solid #dbeafe; 
            transition: var(--transition-soft);
            animation: slideIn 0.3s ease-out forwards;
            box-shadow: 0 8px 18px rgba(37,99,235,.08);
        }
        @keyframes slideIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .file-item:hover { 
            border-color: var(--brand); 
            box-shadow: 0 4px 12px rgba(0,0,0,0.05);
            transform: translateY(-1px);
        }
        .file-icon {
            width: 36px;
            height: 36px;
            background: var(--gray-100);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            flex-shrink: 0;
        }
        .file-item:hover .file-icon {
            background: rgba(37, 99, 235, 0.1);
            color: var(--brand);
        }
        .file-info { flex: 1; min-width: 0; }
        .file-name { 
            font-size: 0.85rem; 
            font-weight: 600; 
            color: var(--gray-800);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .file-meta {
            font-size: 0.75rem;
            color: var(--muted);
            margin-top: 2px;
        }
        .file-remove { 
            color: var(--muted); 
            cursor: pointer; 
            background: none; 
            border: none; 
            font-size: 1.1rem; 
            transition: 0.2s; 
            width: 28px; 
            height: 28px; 
            display: flex; 
            align-items: center; 
            justify-content: center; 
            border-radius: 6px;
            flex-shrink: 0;
        }
        .file-remove:hover { 
            color: var(--danger); 
            background: rgba(220, 38, 38, 0.1); 
        }

        /* 统计结果 */
        .stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0; }
        .stats-item { background: var(--gray-50); padding: 14px; border-radius: 10px; text-align: center; border: 1px solid var(--gray-200); }
        .stats-val { font-size: 1.3rem; font-weight: 700; color: var(--brand); }
        .stats-lbl { font-size: 0.7rem; color: var(--muted); margin-top: 4px; }

        /* 顶栏与移动端菜单按钮 */
        .topbar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
        .topbar-title-group { display: flex; flex-direction: column; min-width: 0; }
        .topbar-right { display: flex; align-items: center; gap: 10px; }
        .status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; border: 1px solid #dbeafe; background: rgba(239,246,255,.9); color: #1e40af; font-size: 0.75rem; font-weight: 600; }
        .status-pill.mint { border-color: #bbf7d0; background: #f0fdf4; color: #166534; }
        .status-pill:hover { transform: translateY(-1px); box-shadow: 0 8px 16px rgba(15,23,42,.08); }
        #currentPageTitle { font-weight: 700; color: var(--gray-800); letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(42vw, 500px); }
        #currentPageSubtitle { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: min(48vw, 620px); }
        #navbarToggle { display: none; width: 38px; height: 38px; align-items: center; justify-content: center; background: linear-gradient(180deg, #f8fafc, #eef2ff); border-radius: 10px; border: 1px solid #dbeafe; cursor: pointer; transition: var(--transition-soft); font-size: 1.05rem; color: #1f2937; }
        #navbarToggle:hover { background: linear-gradient(180deg, #eff6ff, #dbeafe); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37,99,235,.16); }
        #sidebarCollapseToggle { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid #dbeafe; background: linear-gradient(180deg, #f8fbff, #eef2ff); cursor: pointer; color: #1e3a8a; font-size: 1rem; transition: var(--transition-soft); }
        #sidebarCollapseToggle:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(37,99,235,.15); }

        .btn:focus-visible,
        .menu-item:focus-visible,
        #navbarToggle:focus-visible,
        #sidebarCollapseToggle:focus-visible,
        a.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.22); }

        .card { position: relative; }
        .card::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.45) 48%, rgba(255,255,255,0) 66%); transform: translateX(-120%); transition: transform .45s ease; }
        .card:hover::after { transform: translateX(120%); }

        body.sidebar-collapsed .sidebar { width: var(--sidebar-collapsed); }
        body.sidebar-collapsed .sidebar-header { padding: 16px 8px; justify-content: center; }
        body.sidebar-collapsed .sidebar-brand-text,
        body.sidebar-collapsed .menu-label { opacity: 0; width: 0; height: 0; overflow: hidden; margin: 0; padding: 0; }
        body.sidebar-collapsed .sidebar-menu { padding: 10px 6px; }
        body.sidebar-collapsed .menu-item { justify-content: center; padding: 10px; font-size: 0; gap: 0; }
        body.sidebar-collapsed .menu-item:hover { padding-left: 10px; }
        body.sidebar-collapsed .menu-text { display: none; }
        body.sidebar-collapsed .menu-item::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%) translateX(-6px); padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1; color: #fff; background: rgba(15,23,42,.92); box-shadow: 0 10px 28px rgba(15,23,42,.22); opacity: 0; pointer-events: none; white-space: nowrap; transition: opacity .18s ease, transform .18s ease; z-index: 1200; }
        body.sidebar-collapsed .menu-item:hover::after { opacity: 1; transform: translateY(-50%) translateX(0); }
        body.sidebar-collapsed .menu-item.active::before { left: auto; right: 0; border-radius: 3px 0 0 3px; }

        .sidebar-menu::-webkit-scrollbar,
        .main-content::-webkit-scrollbar,
        .file-list::-webkit-scrollbar,
        .report-files-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
        .sidebar-menu::-webkit-scrollbar-thumb,
        .main-content::-webkit-scrollbar-thumb,
        .file-list::-webkit-scrollbar-thumb,
        .report-files-wrap::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
        .sidebar-menu::-webkit-scrollbar-thumb:hover,
        .main-content::-webkit-scrollbar-thumb:hover,
        .file-list::-webkit-scrollbar-thumb:hover,
        .report-files-wrap::-webkit-scrollbar-thumb:hover { background: #94a3b8; border: 2px solid transparent; background-clip: content-box; }

        /* 结果弹窗美化 */
        .report-dialog { padding: 25px; text-align: center; }
        .report-hero { font-size: 3.4rem; margin-bottom: 10px; filter: drop-shadow(0 8px 14px rgba(15,23,42,.12)); }
        .report-title { margin-bottom: 6px; font-weight: 800; font-size: 1.35rem; }
        .report-subtitle { color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
        .report-footnote { margin-top: 15px; font-size: 0.75rem; color: var(--muted); opacity: 0.8; }
        .report-stats { background: linear-gradient(180deg, #f8fbff, #f9fafb); padding: 18px; border-radius: 14px; margin: 16px 0; text-align: left; border: 1px solid #dbeafe; }
        .report-files { margin-top: 20px; text-align: left; }
        .report-files-title { font-size: 0.85rem; font-weight: 600; color: var(--gray-600); margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
        .report-files-wrap { max-height: 180px; overflow-y: auto; background: var(--gray-100); border-radius: 10px; padding: 4px; border: 1px solid var(--gray-200); box-shadow: inset 0 2px 4px rgba(0,0,0,0.03); }
        .report-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
        .report-table thead { background: var(--gray-200); position: sticky; top: 0; z-index: 10; }
        .report-table th { padding: 8px 12px; color: var(--gray-700); }
        .report-table th:first-child { text-align: left; }
        .report-table th:nth-child(2) { text-align: right; }
        .report-table th:last-child { text-align: center; width: 70px; }
        .report-table td { padding: 8px 12px; border-bottom: 1px solid rgba(0,0,0,0.05); }
        .report-table tbody tr:nth-child(even) { background: rgba(248, 250, 252, .7); }
        .report-table tbody tr:hover { background: rgba(219, 234, 254, .45); }
        .report-table .file-name-cell { color: var(--gray-800); font-family: monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
        .report-table .size-cell { text-align: right; color: var(--muted); font-size: 0.75rem; }
        .report-table .status-cell { text-align: center; }
        .status-chip-success { background: rgba(22, 163, 74, 0.1); color: var(--success); padding: 2px 8px; border-radius: 4px; font-weight: 600; font-size: 0.75rem; }
        .report-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 0.9rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 15px; margin-bottom: 5px; }
        .report-summary-item { display: flex; flex-direction: column; }
        .report-summary-label { color: var(--muted); font-size: 0.75rem; }
        .report-summary-value { font-size: 1.1rem; }
        .report-summary-value.brand { color: var(--brand); }
        .report-summary-value small { font-weight: normal; color: var(--muted); }
        .engine-text { text-transform: uppercase; font-weight: 700; color: var(--brand); font-size: 0.9rem; }
        .report-dialog .btn-download { box-shadow: 0 12px 24px rgba(37,99,235,.22); }
        .report-dialog .btn-download:hover { box-shadow: 0 16px 28px rgba(37,99,235,.28); }

        @media (max-width: 768px) {
            .report-dialog { padding: 18px; }
            .report-summary-grid { grid-template-columns: 1fr; gap: 10px; }
            .report-files-wrap { max-height: 220px; }
            .report-table .file-name-cell { max-width: 130px; }
        }

        @media (max-width: 1024px) {
            #navbarToggle { display: flex; }
            #sidebarCollapseToggle { display: none; }
            .topbar-right { display: none; }
            #currentPageSubtitle { max-width: 58vw; }
            .sidebar { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); flex-shrink: 0; }
            .sidebar.show { transform: translateX(0); box-shadow: 16px 0 40px rgba(0,0,0,0.1); }
            .sidebar.show + .sidebar-backdrop { opacity: 1; pointer-events: auto; }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after { animation: none !important; transition: none !important; }
        }

        /* 第四轮：通用布局与组件抽离 */
        .mt-24 { margin-top: 24px; }
        .flex-1 { flex: 1; }
        .text-muted { color: var(--muted); }
        .text-brand { color: var(--brand); }
        .fw-600 { font-weight: 600; }
        .fs-90 { font-size: 0.9rem; }
        .help-list { padding-left: 20px; color: var(--gray-600); line-height: 2; }
        .search-row { display: flex; gap: 12px; margin-bottom: 24px; padding: 12px; border: 1px solid #e2e8f0; background: linear-gradient(180deg, #ffffff, #f8fbff); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px rgba(15,23,42,.04); }
        .search-input-grow { flex: 1; }
        .action-row { display: flex; gap: 12px; margin-top: 24px; }
        .mono-output { padding: 16px; background: var(--gray-50); border-radius: 8px; font-family: monospace; white-space: pre-wrap; margin-bottom: 16px; }
        .section-list { padding-left: 20px; color: var(--gray-600); line-height: 1.9; font-size: 0.85rem; }
        .select-sm { max-width: 140px; }
        .panel-note { margin-top: 15px; padding: 12px; background: rgba(37, 99, 235, 0.03); border: 1px dashed var(--brand); border-radius: 10px; text-align: left; }
        .warning-panel { margin-top: 14px; padding: 12px; background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 10px; text-align: left; }
        .framework-tip { display: none; margin-top: 8px; padding: 10px 14px; background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 8px; font-size: 13px; color: #059669; }
        .framework-badge { display:none; background: var(--brand); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 0.75rem; }
        .btn-download { text-decoration:none; height: 52px; font-size: 1rem; }
        .report-title.success { color: var(--success); }
        .report-title.warning { color: #b45309; }
        .status-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; font-size:0.9rem; border-bottom: 1px solid var(--gray-200); padding-bottom: 15px; margin-bottom: 5px; }
        .status-item { display:flex; flex-direction:column; }
        .status-item small { font-weight: normal; color: var(--muted); }
        .license-record-item { padding:15px; border:1px solid #e5e7eb; border-radius: 12px; margin-bottom: 10px; background: linear-gradient(180deg, #fff, #f8fafc); display:flex; justify-content:space-between; align-items:center; transition:var(--transition-soft); }
        .license-record-item:hover { background: #fff; border-color: #bfdbfe; box-shadow: 0 10px 20px rgba(37,99,235,.08); transform: translateY(-1px); }
        .license-record-item[style*="flex-direction:column"] { align-items: stretch !important; }
        .license-record-right { text-align:right; }
        .license-record-time { font-size:0.8rem; }
        .license-record-type { color:var(--brand); font-weight:600; font-size:0.75rem; }
        .empty-state { text-align:center; padding:42px 22px; color:var(--muted); border: 1px dashed #cbd5e1; border-radius: 14px; background: linear-gradient(180deg, #fcfdff, #f8fafc); }
        .empty-state::before { content: '🗂️'; display: block; font-size: 1.6rem; margin-bottom: 8px; opacity: .8; }

        @media (max-width: 768px) {
            .quick-kpis { grid-template-columns: 1fr; }
            .search-row,
            .action-row { flex-direction: column; }
            .search-row { padding: 10px; gap: 10px; }
            .select-sm { max-width: none; }
        }
