:root{color:#172033;background:#f5f7fb;font-family:Inter,Microsoft YaHei,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0;background:#f5f7fb}button,input,select,textarea{font:inherit}button{border:0;border-radius:6px;background:#2563eb;color:#fff;padding:8px 14px;cursor:pointer;white-space:nowrap;font-weight:600;transition:background .15s ease,box-shadow .15s ease,transform .15s ease}button:hover:not(:disabled){background:#1d4ed8}a{color:inherit}button:disabled{cursor:not-allowed;opacity:.55}.secondary{background:#eef2f7;color:#334155}.secondary:hover:not(:disabled){background:#e2e8f0}.link-btn{display:inline-flex;align-items:center;border-radius:6px;padding:9px 14px;text-decoration:none}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at top left,rgba(37,99,235,.12),transparent 28%),linear-gradient(180deg,#f8fafc,#eef3fb)}.login-card{width:min(390px,100%);border:1px solid #e2e8f0;border-radius:10px;background:#fff;padding:30px;box-shadow:0 24px 70px #0f172a1a}.login-brand,.brand{display:flex;gap:12px;align-items:center}.brand-mark{position:relative;display:grid;place-items:center;flex:0 0 auto;width:38px;height:38px;border-radius:10px;background:linear-gradient(135deg,#2563eb,#14b8a6);box-shadow:0 10px 24px #2563eb3d}.brand-mark:before,.brand-mark:after{content:"";position:absolute;background:#ffffffeb}.brand-mark:before{width:16px;height:16px;border-radius:5px;top:9px;left:9px}.brand-mark:after{width:10px;height:10px;border-radius:4px;right:9px;bottom:9px}.brand-mark-lg{width:46px;height:46px;border-radius:12px}.brand-mark-lg:before{width:19px;height:19px;top:11px;left:11px}.brand-mark-lg:after{width:12px;height:12px;right:10px;bottom:10px}.login-brand h1{margin:0;font-size:22px}.login-form{display:grid;gap:16px;margin-top:30px}label{display:grid;gap:7px}label span{color:#64748b;font-size:13px;font-weight:600}input,select,textarea{width:100%;border:1px solid #d9e2ec;border-radius:6px;background:#fff;color:#172033;padding:9px 10px;outline:none}input:focus,select:focus,textarea:focus{border-color:#2563eb;box-shadow:0 0 0 3px #2563eb1f}.form-error{margin:0;color:#c0392b}.admin-shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;border-right:1px solid #e5edf5;background:#fff;padding:22px 18px}.brand{margin-bottom:20px}.brand strong,.brand small{display:block}.brand small{margin-top:2px;color:#94a3b8}.logout{margin-top:auto;width:100%;background:#f8fafc;color:#ef4444;border:1px solid #fee2e2}.logout:hover:not(:disabled){background:#fff1f2}.workspace{min-width:0;padding:24px 28px 30px}.page-header{display:flex;justify-content:space-between;gap:16px;align-items:center;margin-bottom:18px}.page-header h1{margin:0;font-size:24px;letter-spacing:0}.header-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.metrics{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:12px;margin-bottom:14px}.metric,.filter-panel,.table-card,.insight-card{border:1px solid #dfe6ec;border-radius:10px;background:#fff;box-shadow:0 10px 26px #0f172a0a}.metric{padding:16px 18px}.metric span{color:#64748b}.metric span{display:block;font-size:13px;font-weight:600}.metric strong{display:block;margin-top:8px;font-size:26px;line-height:1}.filter-panel{padding:16px;margin-bottom:14px}.filter-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:10px;align-items:end}.filter-grid label:first-child{grid-column:span 2}.filter-actions{display:flex;gap:8px;align-self:end;justify-self:end}.content-grid{display:grid;grid-template-columns:1fr;gap:14px}.table-card{overflow:hidden}.table-head{display:flex;justify-content:space-between;gap:12px;align-items:center;border-bottom:1px solid #edf2f7;padding:14px 16px}.table-head span{margin-left:10px;color:#64748b;font-size:13px}.table-head select{width:130px}table{width:100%;border-collapse:collapse}.table-scroll{overflow-x:auto}.student-table{table-layout:fixed;min-width:1120px}.col-photo{width:54px}.col-number{width:118px}.col-name{width:82px}.col-sex{width:52px}.col-college{width:132px}.col-major{width:146px}.col-class{width:124px}.col-grade{width:62px}.col-status{width:82px}.col-url{width:106px}.col-actions{width:130px}th,td{border-bottom:1px solid #eef2f7;padding:10px 12px;text-align:left;vertical-align:middle;white-space:nowrap}th{position:sticky;top:0;z-index:1;background:#f8fafc;color:#64748b;font-size:13px;font-weight:700}td{font-size:14px;color:#334155}tbody tr:hover{background:#f8fbff}.avatar{width:34px;height:42px;border-radius:6px;object-fit:cover;background:#edf2f7;cursor:zoom-in;display:block}.photo-thumb,.detail-photo-button{display:inline-flex;border:0;background:transparent;color:inherit;padding:0;box-shadow:none}.photo-thumb:hover:not(:disabled),.detail-photo-button:hover:not(:disabled){background:transparent}.photo-thumb:focus-visible,.detail-photo-button:focus-visible{border-radius:8px;outline:3px solid rgba(37,99,235,.22);outline-offset:3px}.truncate{overflow:hidden;text-overflow:ellipsis}.center-cell{text-align:center}.mono-cell{color:#0f172a;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:13px}.strong-cell{color:#0f172a;font-weight:700}.row-actions{display:flex;gap:10px;flex-wrap:nowrap}.text-btn{background:transparent;color:#2563eb;padding:0;font-weight:600}.text-btn:hover:not(:disabled){background:transparent;color:#1d4ed8}.status-pill{display:inline-flex;max-width:100%;align-items:center;border-radius:999px;background:#eff6ff;color:#2563eb;padding:3px 8px;overflow:hidden;text-overflow:ellipsis;font-size:12px;font-weight:700}.sys-url-actions{display:flex;gap:8px;align-items:center;flex-wrap:nowrap}.sys-url-btn{display:inline-flex;align-items:center;border-radius:6px;background:#eff6ff;color:#2563eb;padding:5px 9px;font-size:13px;font-weight:700;text-decoration:none}.copy-url-btn{background:transparent;color:#64748b;padding:0;font-size:13px;font-weight:600}.copy-url-btn:hover:not(:disabled){background:transparent;color:#334155}.muted{color:#94a3b8}.text-btn.danger{color:#ef4444}.text-btn.danger:hover:not(:disabled){color:#dc2626}.state{padding:40px;text-align:center;color:#64748b}.state.error{color:#c0392b}.pager{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;border-top:1px solid #edf2f7;padding:12px 16px}.pager-summary{color:#64748b;font-size:13px}.pager-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.page-number{min-width:34px;height:34px;background:#f1f5f9;color:#334155;padding:0 9px}.page-number.active{background:#2563eb;color:#fff}.page-jump{display:flex;gap:7px;align-items:center}.page-jump span{color:#64748b;font-size:13px}.page-jump input{width:74px;height:34px;padding:6px 8px}.insight-card{align-self:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:0;border:0;background:transparent;box-shadow:none}.insight-section{border:1px solid #dfe6ec;border-radius:10px;background:#fff;padding:16px;box-shadow:0 10px 26px #0f172a0a}.insight-card h2{margin:0 0 12px;font-size:16px}.insight-card h2:not(:first-child){margin-top:0}.rank-list{display:grid;gap:8px}.rank-row{display:flex;justify-content:space-between;gap:8px;border-radius:6px;background:#f8fafc;padding:8px 10px}.rank-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty{color:#64748b}.drawer-mask,.modal-mask{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a73;z-index:20}.photo-preview-mask{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:grid;place-items:center;background:#0f172ab8;padding:24px}.drawer-mask{display:flex;justify-content:flex-end}.drawer{position:relative;width:min(780px,100vw);height:100vh;overflow:auto;background:#fff;padding:24px}.modal-mask{display:grid;place-items:center;padding:24px}.student-form{width:min(900px,100%);max-height:calc(100vh - 48px);overflow:auto;border-radius:10px;background:#fff;padding:22px}.form-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:18px}.form-head h2{margin:0 0 5px}.form-head p{margin:0;color:#64748b}.close-btn{width:34px;height:34px;border-radius:50%;background:#f1f5f9;color:#172033;padding:0;font-size:22px;line-height:1}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid label:has(textarea){grid-column:span 3}em{color:#c0392b;font-style:normal}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}.detail-header{display:flex;gap:16px;align-items:center;margin:16px 0 24px}.detail-photo{width:92px;height:116px;border-radius:8px;object-fit:cover;background:#edf2f7;cursor:zoom-in;display:block}.photo-preview-panel{position:relative;display:grid;justify-items:center;gap:12px;max-width:min(520px,100%);max-height:calc(100vh - 48px);border-radius:10px;background:#fff;padding:18px;box-shadow:0 24px 80px #0f172a47}.photo-preview-close{position:absolute;top:10px;right:10px}.photo-preview-image{display:block;width:auto;max-width:min(420px,calc(100vw - 84px));max-height:calc(100vh - 150px);border-radius:8px;object-fit:contain;background:#edf2f7}.photo-preview-panel p{margin:0;color:#334155;font-weight:700}.detail-header h2{margin:0 0 6px}.detail-header p{margin:0 0 12px;color:#64748b}.detail-actions{display:flex;gap:10px;flex-wrap:wrap}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.detail-grid div{border:1px solid #dfe6ec;border-radius:8px;padding:12px}.detail-grid span{display:block;margin-bottom:6px;color:#64748b;font-size:13px}.detail-grid strong{display:block;overflow-wrap:anywhere;font-weight:600}@media(max-width:1180px){.admin-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto;flex-direction:row;align-items:center;gap:16px}.logout{width:auto;margin-left:auto;margin-top:0}.content-grid,.filter-grid{grid-template-columns:1fr}.filter-grid label:first-child{grid-column:span 1}.metrics{grid-template-columns:repeat(2,minmax(150px,1fr))}}@media(max-width:760px){.workspace{padding:14px}.page-header,.table-head,.sidebar{align-items:stretch;flex-direction:column}.logout{width:100%;margin-left:0}.metrics,.insight-card,.form-grid,.detail-grid{grid-template-columns:1fr}.form-grid label:has(textarea){grid-column:span 1}.student-table{min-width:1120px}}
