
       :root {
            --primary: #1e3a5f;
            --primary-mid: #2563eb;
            --primary-dark: #1d4ed8;
            --primary-light: #3b82f6;
            --success: #15803d;
            --warning: #b45309;
            --danger: #dc2626;
            --gray-50: #f8fafc;
            --gray-100: #f1f5f9;
            --gray-200: #e2e8f0;
            --gray-300: #cbd5e1;
            --gray-500: #64748b;
            --gray-700: #334155;
            --gray-900: #0f172a;
            --shadow: 0 1px 3px rgba(0,0,0,.12),0 1px 2px rgba(0,0,0,.08);
            --shadow-md: 0 4px 6px rgba(0,0,0,.1);
            --radius: 8px;
        }
        * { margin:0; padding:0; box-sizing:border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "PingFang SC", sans-serif;
            background: linear-gradient(160deg, #f1f5f9 0%, #e8edf5 50%, #f8fafc 100%);
            color: var(--gray-900);
            min-height: 100vh;
            -webkit-tap-highlight-color: transparent;
        }
        /* 顶部导航 */
        .topbar {
            background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
            color: #fff;
            padding: 12px 16px;
            display: flex;
            align-items: center;
            gap: 12px;
            position: sticky;
            top: 0;
            z-index: 100;
            box-shadow: 0 2px 12px rgba(30,58,95,.3);
        }
        .topbar h1 { font-size: 17px; font-weight: 600; flex: 1; }
        .topbar .badge {
            background: rgba(255,255,255,.25);
            padding: 2px 10px;
            border-radius: 20px;
            font-size: 12px;
        }
        .icon-btn {
            width: 36px; height: 36px;
            border: none; background: rgba(255,255,255,.2);
            border-radius: 50%;
            color: #fff; font-size: 18px;
            cursor: pointer;
            display: flex; align-items: center; justify-content: center;
            transition: background .2s;
        }
        .icon-btn:hover { background: rgba(255,255,255,.35); }
        
        /* 侧边栏 */
        .sidebar {
            position: fixed; top: 0; left: 0; bottom: 0;
            width: 260px;
            background: #fff;
            box-shadow: 2px 0 8px rgba(0,0,0,.1);
            transform: translateX(-100%);
            transition: transform .3s ease;
            z-index: 200;
            display: flex; flex-direction: column;
        }
        .sidebar.open { transform: translateX(0); }
        .sidebar-header {
            background: linear-gradient(160deg, #1e3a5f 0%, #2563eb 100%);
            color: #fff;
            padding: 24px 16px 16px;
        }
        .sidebar-header .user-name { font-size: 16px; font-weight: 600; }
        .sidebar-header .user-role {
            font-size: 12px; opacity: .8; margin-top: 2px;
        }
        .sidebar-nav { flex: 1; padding: 8px 0; }
        .sidebar-nav a {
            display: flex; align-items: center; gap: 12px;
            padding: 12px 16px;
            color: var(--gray-700);
            text-decoration: none;
            font-size: 14px;
            border-left: 3px solid transparent;
            transition: all .2s;
        }
        .sidebar-nav a:hover { background: var(--gray-50); }
        .sidebar-nav a.active {
            background: linear-gradient(90deg, rgba(37,99,235,.1) 0%, rgba(37,99,235,.05) 100%);
            color: var(--primary-mid);
            border-left-color: var(--primary-mid);
            font-weight: 500;
        }
        .sidebar-nav .nav-icon { font-size: 18px; width: 24px; text-align: center; }
        
        /* 遮罩 */
        .overlay {
            display: none;
            position: fixed; inset: 0;
            background: rgba(0,0,0,.4);
            z-index: 150;
        }
        .overlay.active { display: block; }
        
        /* 页面容器 */
        .page { display: none; padding: 16px; max-width: 900px; margin: 0 auto; }
        .page.active { display: block; }
        
        /* 搜索栏 */
        .search-bar {
            display: flex; gap: 8px; margin-bottom: 16px;
        }
        .search-bar input {
            flex: 1;
            padding: 10px 14px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 14px;
            outline: none;
            transition: border-color .2s;
        }
        .search-bar input:focus { border-color: var(--primary-mid); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
        
        /* 按钮 */
        .btn {
            padding: 8px 16px;
            border: none; border-radius: var(--radius);
            font-size: 13px; font-weight: 500;
            cursor: pointer;
            display: inline-flex; align-items: center; gap: 6px;
            transition: all .2s;
            white-space: nowrap;
            text-decoration: none;
        }
        .btn-primary { background: linear-gradient(135deg, #1e3a5f, #2563eb); color: #fff; border: none; }
        .btn-primary:hover { background: linear-gradient(135deg, #1d4ed8, #1e40af); }
        .btn-primary:active { transform: scale(0.97); }
        .btn-primary:hover { background: var(--primary-dark); }
        .btn-success { background: var(--success); color: #fff; }
        .btn-danger { background: var(--danger); color: #fff; }
        .btn-warning { background: var(--warning); color: #fff; }
        .btn-outline {
            background: #fff;
            border: 1px solid var(--gray-300);
            color: var(--gray-700);
        }
        .btn-outline:hover { background: var(--gray-50); }
        .btn-sm { padding: 5px 12px; font-size: 12px; }
        .btn-block { width: 100%; justify-content: center; }
        
        /* 学生卡片 */
        .student-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .student-card {
            background: #fff;
            border-radius: var(--radius);
            padding: 14px;
            box-shadow: var(--shadow);
            cursor: pointer;
            transition: all .2s;
            border: 2px solid transparent;
        }
        .student-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
        .student-card.selected { border-color: var(--primary-mid); background: linear-gradient(135deg, #eff6ff, #dbeafe); }
        .student-card .avatar {
            width: 44px; height: 44px;
            border-radius: 50%;
            background: var(--primary);
            color: #fff;
            display: flex; align-items: center; justify-content: center;
            font-size: 18px; font-weight: 600;
            margin-bottom: 8px;
        }
        .student-card .name { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
        .student-card .info { font-size: 12px; color: var(--gray-500); }
        
        /* 五大维度卡片 */
        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
            gap: 10px;
            margin-bottom: 16px;
        }
        .category-card {
            background: #fff;
            border-radius: var(--radius);
            padding: 14px 12px;
            box-shadow: var(--shadow);
            text-align: center;
            cursor: pointer;
            border: 2px solid transparent;
            transition: all .2s;
        }
        .category-card:hover { box-shadow: var(--shadow-md); }
        .category-card.active { border-color: var(--primary-mid); background: linear-gradient(135deg, #eff6ff, #dbeafe); }
        .category-card .cat-icon { font-size: 28px; margin-bottom: 4px; }
        .category-card .cat-name { font-size: 13px; font-weight: 600; }
        .category-card .cat-count {
            font-size: 11px; color: var(--gray-500); margin-top: 2px;
        }
        
        /* 文件列表 */
        .file-list { display: flex; flex-direction: column; gap: 8px; }
        .file-item {
            background: #fff;
            border-radius: var(--radius);
            padding: 12px;
            box-shadow: var(--shadow);
            display: flex; align-items: center; gap: 10px;
        }
        .file-item .file-icon {
            width: 40px; height: 40px;
            border-radius: 8px;
            display: flex; align-items: center; justify-content: center;
            font-size: 20px;
            flex-shrink: 0;
        }
        .file-item .file-info { flex: 1; min-width: 0; }
        .file-item .file-name {
            font-size: 13px; font-weight: 500;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        }
        .file-item .file-meta {
            font-size: 11px; color: var(--gray-500); margin-top: 2px;
            display: flex; gap: 8px; flex-wrap: wrap;
        }
        .file-item .status-badge {
            padding: 2px 8px;
            border-radius: 20px;
            font-size: 11px; font-weight: 500;
        }
        .status-pending { background: #fef3c7; color: #92400e; }
        .status-approved { background: #dcfce7; color: #166534; }
        .status-rejected { background: #fee2e2; color: #991b1b; }
        
        /* 模态框 */
        .modal {
            display: none;
            position: fixed; inset: 0;
            z-index: 300;
            align-items: center; justify-content: center;
            padding: 16px;
        }
        .modal.open { display: flex; }
        .modal-backdrop {
            position: absolute; inset: 0;
            background: rgba(0,0,0,.5);
        }
        .modal-box {
            position: relative;
            background: #fff;
            border-radius: 12px;
            padding: 24px;
            width: 100%;
            max-width: 560px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0,0,0,.2);
        }
        .modal-title {
            font-size: 18px; font-weight: 600; margin-bottom: 16px;
            display: flex; align-items: center; justify-content: space-between;
        }
        .modal-close {
            width: 32px; height: 32px;
            border: none; background: var(--gray-100);
            border-radius: 50%; cursor: pointer;
            font-size: 18px; color: var(--gray-500);
            display: flex; align-items: center; justify-content: center;
        }
        
        /* 表单 */
        .form-group { margin-bottom: 14px; }
        .form-group label {
            display: block; font-size: 13px; font-weight: 500;
            margin-bottom: 6px; color: var(--gray-700);
        }
        .form-group input, .form-group textarea, .form-group select {
            width: 100%;
            padding: 9px 12px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 14px;
            outline: none;
            font-family: inherit;
            transition: border-color .2s;
        }
        .form-group input:focus, .form-group textarea:focus {
            border-color: var(--primary);
        }
        .form-group textarea { resize: vertical; min-height: 80px; }
        .form-hint { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
        
        /* 导入文本框 */
        .import-area {
            width: 100%;
            min-height: 200px;
            padding: 12px;
            border: 1px solid var(--gray-300);
            border-radius: var(--radius);
            font-size: 13px;
            font-family: monospace;
            resize: vertical;
            outline: none;
        }
        .import-area:focus { border-color: var(--primary); }
        .import-format {
            background: var(--gray-50);
            border: 1px solid var(--gray-200);
            border-radius: var(--radius);
            padding: 12px;
            font-size: 12px;
            color: var(--gray-500);
            margin-bottom: 12px;
        }
        .import-format code {
            display: block;
            font-family: monospace;
            color: var(--gray-700);
            margin-top: 4px;
        }
        
        /* 统计卡片 */
        .stat-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            margin-bottom: 16px;
        }
        .stat-card {
            background: #fff;
            border-radius: var(--radius);
            padding: 14px;
            box-shadow: var(--shadow);
            text-align: center;
        }
        .stat-card .stat-num {
            font-size: 24px; font-weight: 700;
            color: var(--primary);
        }
        .stat-card .stat-label {
            font-size: 11px; color: var(--gray-500); margin-top: 2px;
        }
        
        /* Tab 切换 */
        .tabs {
            display: flex;
            background: var(--gray-100);
            border-radius: var(--radius);
            padding: 3px;
            margin-bottom: 16px;
        }
        .tab-btn {
            flex: 1;
            padding: 7px 12px;
            border: none;
            background: transparent;
            border-radius: 6px;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            color: var(--gray-500);
            transition: all .2s;
        }
        .tab-btn.active {
            background: #fff;
            color: var(--primary);
            box-shadow: var(--shadow);
        }
        
        /* 空状态 */
        .empty-state {
            text-align: center;
            padding: 48px 16px;
            color: var(--gray-500);
        }
        .empty-state .empty-icon { font-size: 48px; margin-bottom: 12px; }
        .empty-state p { font-size: 14px; }
        
        /* 上传区域 */
        .upload-zone {
            border: 2px dashed var(--gray-300);
            border-radius: var(--radius);
            padding: 32px 16px;
            text-align: center;
            cursor: pointer;
            transition: all .2s;
            background: var(--gray-50);
        }
        .upload-zone:hover, .upload-zone.drag-over {
            border-color: var(--primary);
            background: #eff6ff;
        }
        .upload-zone input { display: none; }
        .upload-zone .upload-icon { font-size: 36px; margin-bottom: 8px; }
        .upload-zone p { font-size: 14px; color: var(--gray-500); }
        .upload-zone .hint { font-size: 11px; margin-top: 4px; }
        
        /* 评分星星 */
        .score-row {
            display: flex; align-items: center; gap: 12px;
            margin-bottom: 12px;
        }
        .score-label { font-size: 13px; font-weight: 500; width: 70px; flex-shrink: 0; }
        .score-stars { display: flex; gap: 4px; }
        .star-btn {
            width: 28px; height: 28px;
            border: none; background: var(--gray-200);
            border-radius: 4px; cursor: pointer;
            font-size: 14px;
            transition: all .15s;
        }
        .star-btn.on { background: #fbbf24; color: #fff; }
        
        /* 登录页 */
        .login-page {
            display: flex; flex-direction: column;
            align-items: center; justify-content: center;
            min-height: 100vh;
            padding: 24px;
            background: linear-gradient(135deg, #0f2744 0%, #1e3a5f 30%, #2563eb 70%, #1d4ed8 100%);
            position: relative;
            overflow: hidden;
        }
        .login-page::before {
            content: ''; position: absolute; inset: 0;
            background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,.3) 0%, transparent 60%),
                        radial-gradient(ellipse at 80% 20%, rgba(59,130,246,.2) 0%, transparent 50%),
                        radial-gradient(ellipse at 60% 80%, rgba(30,58,95,.4) 0%, transparent 50%);
            pointer-events: none;
        }
        .login-box {
            background: #fff;
            border-radius: 16px;
            padding: 32px 24px;
            width: 100%; max-width: 360px;
            box-shadow: 0 20px 60px rgba(0,0,0,.3);
        }
        .login-box .login-title {
            text-align: center;
            font-size: 22px; font-weight: 700;
            margin-bottom: 4px;
            color: var(--gray-900);
        }
        .login-box .login-sub {
            text-align: center;
            font-size: 13px; color: var(--gray-500);
            margin-bottom: 24px;
        }
        /* 登录入口大卡片 */
        .portal-card {
            background: rgba(255,255,255,.12);
            border: 2px solid rgba(255,255,255,.3);
            border-radius: 16px;
            padding: 20px 18px;
            margin-bottom: 12px;
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
            transition: all .25s;
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
        }
        .portal-card:hover, .portal-card:active {
            background: rgba(255,255,255,.2);
            border-color: rgba(255,255,255,.6);
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(0,0,0,.2);
        }
        .portal-card.portal-student {
            background: rgba(255,255,255,.08);
            border-color: rgba(255,255,255,.2);
        }
        .portal-card.portal-student:hover {
            background: rgba(255,255,255,.16);
            border-color: rgba(255,255,255,.5);
        }
        .portal-icon { font-size: 36px; flex-shrink: 0; }
        .portal-body { flex: 1; }
        .portal-title { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
        .portal-desc { font-size: 12px; color: rgba(255,255,255,.7); }
        .portal-arrow { font-size: 16px; color: rgba(255,255,255,.5); flex-shrink: 0; }

        /* 图片预览大图样式 */
        .preview-modal-box {
            position: relative;
            background: #0f172a;
            border-radius: 16px;
            padding: 20px;
            width: 100%;
            max-width: 900px;
            max-height: 90vh;
            overflow: hidden;
            box-shadow: 0 24px 80px rgba(0,0,0,.6);
        }
        .preview-modal-box .preview-title {
            color: #fff;
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 12px;
            padding-bottom: 12px;
            border-bottom: 1px solid rgba(255,255,255,.1);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .preview-modal-box .preview-title .preview-close {
            background: rgba(255,255,255,.1);
            border: none;
            color: #fff;
            width: 32px; height: 32px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 18px;
            display: flex; align-items: center; justify-content: center;
        }
        .preview-modal-box .preview-close:hover { background: rgba(255,255,255,.2); }
        .preview-img-wrap { text-align: center; max-height: 75vh; overflow: auto; }
        .preview-img-wrap img { max-width: 100%; max-height: 75vh; border-radius: 8px; display: block; margin: 0 auto; }
        .preview-img-wrap::-webkit-scrollbar { width: 6px; }
        .preview-img-wrap::-webkit-scrollbar-track { background: transparent; }
        .preview-img-wrap::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 3px; }
        
        /* Toast 通知 */
        .toast {
            position: fixed;
            bottom: 24px; left: 50%;
            transform: translateX(-50%) translateY(100px);
            background: var(--gray-900);
            color: #fff;
            padding: 10px 20px;
            border-radius: 24px;
            font-size: 13px;
            z-index: 999;
            transition: transform .3s ease;
            white-space: nowrap;
        }
        .toast.show { transform: translateX(-50%) translateY(0); }
        .toast.success { background: var(--success); }
        .toast.error { background: var(--danger); }
        
        /* 进度条 */
        .progress-bar {
            width: 100%; height: 4px;
            background: var(--gray-200);
            border-radius: 2px;
            overflow: hidden;
            margin: 8px 0;
        }
        .progress-bar .progress-fill {
            height: 100%;
            background: var(--primary);
            border-radius: 2px;
            transition: width .3s ease;
        }
        
        /* 响应式 */
        @media (max-width: 600px) {
            .student-grid { grid-template-columns: repeat(2, 1fr); }
            .category-grid { grid-template-columns: repeat(2, 1fr); }
            .stat-row { grid-template-columns: repeat(3, 1fr); }
            .stat-card .stat-num { font-size: 20px; }
        }
        @media (min-width: 768px) {
            .sidebar { transform: none; }
            .overlay { display: none !important; }
            .topbar .menu-btn { display: none; }
        }
        
        /* 加载状态 */
        .loading-mask {
            position: fixed; inset: 0;
            background: rgba(255,255,255,.8);
            z-index: 500;
            display: none;
            align-items: center; justify-content: center;
        }
        .loading-mask.active { display: flex; }
        .spinner {
            width: 36px; height: 36px;
            border: 3px solid var(--gray-200);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin .8s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }
        
        /* 档案预览卡 */
        .profile-header {
            background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
            color: #fff;
            border-radius: 12px;
            padding: 20px;
            margin-bottom: 16px;
        }
        .profile-header .profile-name { font-size: 20px; font-weight: 700; }
        .profile-header .profile-class { font-size: 13px; opacity: .8; margin-top: 2px; }
        .profile-header .profile-id { font-size: 12px; opacity: .6; margin-top: 2px; }
    <
    