* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f0f2f5; color: #1e293b; height: 100vh; display: flex; font-size: 14px; }
.sidebar { width: 220px; background: #1a2d3d; color: #e0edff; display: flex; flex-direction: column; flex-shrink: 0; height: 100vh; overflow-y: auto; }
.sidebar .logo { font-size: 18px; font-weight: 600; padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.06); color: white; display: flex; align-items: center; gap: 10px; }
.sidebar .logo span { color: #6ab0ff; }
.sidebar nav { flex: 1; padding: 16px 12px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; margin-bottom: 4px; border-radius: 8px; color: #b6d0e8; text-decoration: none; font-size: 14px; cursor: pointer; }
.sidebar nav a:hover { background: rgba(255,255,255,0.08); color: white; }
.sidebar nav a.active { background: rgba(255,255,255,0.12); color: white; box-shadow: inset 3px 0 0 #6ab0ff; }
.sidebar .user-info { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.06); font-size: 13px; color: #99b8d6; }
.main { flex: 1; padding: 20px 24px 80px; overflow-y: auto; }
.main-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.main-header h1 { font-size: 22px; font-weight: 600; color: #1a2d3d; }
.page { display: none; }
.page.active { display: block; }
.stats {display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px;}
.stat-card {background: white; border-radius: 10px; padding: 14px 16px; border: 1px solid #e8ecf0;}
.stat-card.highlight { border-left: 4px solid #6ab0ff; }
.stat-card .label { font-size: 12px; color: #64748b; }
.stat-card .value { font-size: 26px; font-weight: 600; margin-top: 2px; }
.stats-top { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 20px; }
.stat-card-top { border-radius: 8px; padding: 14px 16px; color: white; display: flex; flex-direction: column; justify-content: space-between; min-height: 80px; }
.stat-card-top .label { font-size: 13px; opacity: 0.9; }
.stat-card-top .value { font-size: 28px; font-weight: 700; margin-top: 4px; }
.stat-card-top .sub { font-size: 12px; opacity: 0.8; margin-top: 2px; }
.stat-teal { background: #4db6ac; }
.stat-blue { background: #42a5f5; }
.stat-orange { background: #ff7043; }
.stat-cyan { background: #26c6da; }
.stat-coral { background: #ef5350; }
.stat-green { background: #66bb6a; }
.charts-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.card { background: white; border-radius: 10px; border: 1px solid #e8ecf0; padding: 16px 20px; margin-bottom: 16px; }
.card h3 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.tab-bar { display: flex; gap: 6px; margin-bottom: 12px; }
.tab-bar .tab:hover { background: #e2e8f0;}
.tab-bar .tab { padding: 3px 14px; border-radius: 4px; font-size: 12px; background: #f0f2f5; color: #64748b; cursor: pointer; }
.tab-bar .tab.active { background: #1a2d3d; color: white; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; padding: 10px 12px; background: #f8fafc; border-bottom: 2px solid #e8ecf0; font-weight: 600; color: #475569; }
td { padding: 10px 12px; border-bottom: 1px solid #f0f2f5; }
tr:hover { background: #fafbfc; }
.badge { font-size: 12px; padding: 2px 10px; border-radius: 12px; display: inline-block; }
.badge-pending { background: #fef3c7; color: #b45309; }
.badge-process { background: #dbeafe; color: #1e40af; }
.badge-done { background: #d1fae5; color: #065f46; }
.badge-cancel { background: #fee2e2; color: #991b1b; }
.btn { background: #1a2d3d; color: white; border: none; padding: 8px 20px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.btn-sm { padding: 4px 12px; border: none; border-radius: 4px; font-size: 12px; cursor: pointer; margin-right: 4px; background: #f0f2f5; color: #1e293b; }
.btn-sm.primary { background: #ff8c42; color: white; }
.btn-sm.success { background: #22c55e; color: white; }
.btn-sm.warning { background: #f59e0b; color: white; }
.btn-sm.danger { background: #ef4444; color: white; }
/* 醒目的添加报修按钮 */
.btn-add-repair {background: #ff8c42;color: white;border: none;padding: 10px 24px; border-radius: 6px;font-size: 15px;
font-weight: 500;cursor: pointer;white-space: nowrap;transition: background 0.2s;}
.btn-add-repair:hover { background: #e55a2b;}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: #475569; margin-bottom: 4px; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 8px 12px; border: 1px solid #d8dee6; border-radius: 6px; font-size: 14px; background: #fafcff; }
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; align-items: center; justify-content: center; }
.modal-content { background: white; border-radius: 12px; padding: 24px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 12px; right: 16px; font-size: 24px; cursor: pointer; color: #888; }
.stats-top {display: grid;gap: 12px; margin-bottom: 20px;}
.step { z-index:1; display:flex; flex-direction:column; align-items:center; font-size:12px; color:#64748b; }
.step .dot { width:14px; height:14px; border-radius:50%; background:#e2e8f0; margin-bottom:4px; border:2px solid white; box-shadow:0 0 0 1px #e2e8f0; }
.step.done .dot { background:#22c55e; box-shadow:0 0 0 1px #22c55e; }
.step.active .dot { background:#6ab0ff; box-shadow:0 0 0 1px #6ab0ff; border:2px solid #1a2d3d; }
.copyright {position: fixed;bottom: 0; left: 220px; right: 0; background: #f0f2f5; text-align: center; padding: 12px 0; color: #94a3b8;font-size: 13px;border-top: 1px solid #e8ecf0;z-index: 100;}
@media (max-width: 1200px) { .stats-top { grid-template-columns: repeat(3, 1fr); } .charts-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 1200px) { .bottom-row { grid-template-columns: 1fr;  }}
@media (max-width: 768px) { .copyright {left: 56px;} .sidebar { width: 56px; } .sidebar .logo { font-size: 0; padding: 12px 0; text-align: center; } .sidebar .logo::before { content: '🏢'; font-size: 22px; } .sidebar nav a { font-size: 0; padding: 12px 0; justify-content: center; } .sidebar .user-info { display: none; } .main { padding: 14px 14px 80px; } .stats-top { grid-template-columns: repeat(2, 1fr); } .charts-row { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }