:root{font-family:PingFang SC,Microsoft YaHei,Noto Sans SC,sans-serif;color:#1f2937;background:#f8fafc}*{box-sizing:border-box}body{margin:0;min-width:1180px;background:radial-gradient(circle at 10% -20%,#f1f5f9 10%,#fff 60%)}#app{min-height:100vh}button,input,select{font:inherit}input,select{border:1px solid #cbd5e1;border-radius:10px;height:36px;padding:0 10px;background:#fff;color:#0f172a}button{border:1px solid #94a3b8;border-radius:10px;height:36px;padding:0 14px;background:transparent;color:#334155;cursor:pointer;transition:all .18s ease}button:hover{background:#f8fafc;border-color:#64748b}button:disabled{opacity:.45;cursor:not-allowed}button.danger{border-color:#fca5a5;color:#dc2626;background:#fff}button.danger:hover{border-color:#ef4444;background:#fef2f2}.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.error-text{color:#dc2626;margin:0}.login-page{min-height:100vh;display:flex;justify-content:center;align-items:center;padding:24px}.login-card{width:380px;background:#fff;border-radius:14px;border:1px solid #e2e8f0;box-shadow:0 14px 34px #0f172a14;padding:26px;display:flex;flex-direction:column;gap:12px}.login-card h1{margin:0 0 8px;font-size:24px;color:#0f172a}.admin-layout{height:100vh;display:flex;overflow:hidden}.sidebar{width:226px;height:100vh;flex-shrink:0;background:#f8fafc;border-right:1px solid #e2e8f0;color:#1e293b;padding:20px 12px;display:flex;flex-direction:column;gap:10px;position:sticky;top:0}.admin-info{padding:4px 6px;margin-bottom:12px}.admin-name{font-size:18px;font-weight:600}.admin-role{font-size:12px;color:#64748b}.sidebar button{text-align:left}.sidebar button.active{background:#eff6ff;border-color:#93c5fd;color:#1d4ed8}.sidebar .logout-btn{margin-top:auto}.content{flex:1;min-width:0;padding:24px;position:relative;height:100vh;overflow-y:auto}.status-line{min-height:24px;margin-bottom:6px}.loading-overlay{position:absolute;top:14px;right:24px;z-index:20;pointer-events:none}.loading-chip{display:inline-flex;align-items:center;gap:8px;background:#fffffff2;border:1px solid #dbeafe;color:#1d4ed8;border-radius:999px;padding:6px 12px;box-shadow:0 8px 20px #3b82f626;font-size:13px}.spinner{width:13px;height:13px;border:2px solid #bfdbfe;border-top-color:#2563eb;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.panel{background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 8px 24px #0f172a0d;padding:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.panel-head h2{margin:0;font-size:20px}.panel-tools{display:flex;gap:8px;align-items:center}.search-input{min-width:230px}.table-wrapper{width:100%;overflow-x:auto;overflow-y:hidden;background:#fff;border-radius:12px;border:1px solid #e2e8f0}table{width:max-content;min-width:100%;border-collapse:collapse;font-size:13px}th,td{border-bottom:1px solid #e2e8f0;padding:8px;text-align:left;vertical-align:middle;white-space:nowrap}thead th{background:#f8fafc;color:#475569;position:sticky;top:0}td input,td select{min-width:90px}td .email-field{min-width:190px}.action-group{display:flex;gap:6px}.readonly-cell{max-width:180px;overflow:hidden;text-overflow:ellipsis}.date-cell{min-width:135px}.card{background:#fff;border:1px solid #e2e8f0;border-radius:12px;padding:14px;margin-bottom:12px}.tip-text{color:#64748b;margin:0 0 10px;font-size:13px}.school-head-row,.school-card{margin-bottom:10px}.school-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:10px}.school-head h3{margin:0;font-size:17px}.form-row{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:10px}.form-row input{min-width:180px}.campus-table input{width:100%}.password-panel{min-height:430px}.password-title{margin:0;text-align:center;font-size:20px}.password-form-wrap{min-height:340px;display:flex;align-items:center;justify-content:center}.password-form{width:420px;max-width:100%;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 10px 24px #0f172a0d;padding:18px;display:flex;flex-direction:column;gap:12px}.location-layout{display:grid;grid-template-columns:360px 1fr;gap:12px}.location-left,.location-right{display:flex;flex-direction:column;gap:10px;min-width:0}.map-search-row,.location-form-actions{display:flex;gap:8px;align-items:center}.map-search-row input{flex:1}.map-search-row{margin-bottom:10px}.location-list-card{min-height:560px;display:flex;flex-direction:column}.location-list-head{display:flex;justify-content:space-between;align-items:center;gap:8px}.location-list-title-row,.location-list-actions{display:flex;align-items:center;gap:8px}.type-filter-select{min-width:92px;width:92px}.location-batch-delete-btn{height:32px;padding:0 10px}.location-plus-btn{width:36px;min-width:36px;padding:0;font-size:24px;line-height:1}.location-name-search{width:100%;margin:10px 0 6px}.location-list-summary{color:#64748b;font-size:12px;margin-bottom:8px}.location-list{overflow-y:auto;display:flex;flex-direction:column;gap:8px;min-height:0}.location-list-empty{text-align:center;padding:18px 0;color:#94a3b8;border:1px dashed #cbd5e1;border-radius:10px}.location-item{border:1px solid #e2e8f0;border-radius:10px;padding:8px;cursor:pointer;background:#fff}.location-item.active{border-color:#93c5fd;background:#eff6ff}.location-item-head{display:flex;justify-content:space-between;color:#64748b;font-size:12px}.location-item-id{display:inline-flex;align-items:center;gap:6px}.location-select-checkbox{width:18px;height:18px;accent-color:#2563eb}.location-item-name{font-weight:600;margin-top:4px}.location-item-desc{color:#64748b;font-size:12px;margin-top:4px}.search-result-list{max-height:160px;overflow-y:auto;border:1px solid #e2e8f0;border-radius:10px;margin:8px 0}.search-result-item{display:flex;flex-direction:column;gap:2px;padding:8px 10px;border-bottom:1px solid #e2e8f0;cursor:pointer}.search-result-item:last-child{border-bottom:none}.search-result-item:hover{background:#f8fafc}.location-map{width:100%;height:440px;border:1px solid #e2e8f0;border-radius:10px}.location-form-grid{display:flex;flex-direction:column;gap:10px}.location-form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.location-form-row-single{grid-template-columns:1fr}.location-field{display:flex;flex-direction:column;gap:6px}.location-field label{font-size:12px;color:#64748b}.type-edit-row{display:flex;align-items:center;gap:8px}.type-edit-row select{flex:1}.location-status-field{flex-direction:row;align-items:center;gap:10px}.type-manager-create{display:flex;gap:8px;margin-bottom:8px}.type-manager-create input{flex:1}.type-manager-list{display:flex;flex-direction:column;gap:8px;max-height:calc(78vh - 170px);overflow-y:auto}.type-manager-item{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center}.type-drag-handle{cursor:grab;color:#64748b;-webkit-user-select:none;user-select:none;font-size:16px;line-height:1}.type-manager-modal-mask{position:fixed;inset:0;background:#0f172a59;display:flex;align-items:center;justify-content:center;z-index:60}.type-manager-modal{width:640px;max-width:calc(100vw - 32px);max-height:78vh;height:fit-content;display:flex;flex-direction:column;overflow:hidden;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 16px 40px #0f172a33;padding:14px}.type-manager-modal-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.type-manager-modal-head h3{margin:0}.status-checkbox{width:18px;height:18px;padding:0;border-radius:4px}.user-address-modal{width:760px}.user-address-loading{min-height:120px;display:flex;align-items:center;justify-content:center;color:#64748b}.user-address-editor{display:flex;flex-direction:column;gap:12px}.user-address-block{border:1px solid #e2e8f0;border-radius:10px;padding:10px;background:#f8fafc}.user-address-block>label{display:block;margin-bottom:8px;color:#475569;font-size:13px;font-weight:600}.address-check-list{max-height:150px;overflow-y:auto;display:flex;flex-direction:column;gap:6px}.address-check-item{display:flex;align-items:center;gap:8px;font-size:13px}.address-check-item input{width:16px;height:16px}.user-address-actions{margin-top:12px}
