:root {
  --primary: #0067FF;
  --primary-light: #3388FF;
  --primary-dark: #0052CC;
  --primary-bg: #F0F7FF;
  --success: #00C853;
  --warning: #FFB300;
  --danger: #FF3D00;
  --gray-1: #F5F6FA;
  --gray-2: #E8E9F0;
  --gray-3: #C0C4CC;
  --gray-4: #909399;
  --gray-5: #606266;
  --gray-6: #303133;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --radius: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif; font-size: 14px; color: var(--gray-6); background: var(--gray-1); -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

.header { background: var(--white); border-bottom: 1px solid var(--gray-2); position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.header-logo { font-size: 18px; font-weight: 700; color: var(--primary); }
.header-user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--gray-5); }

.nav-bar { background: var(--white); border-bottom: 1px solid var(--gray-2); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: 0; overflow-x: auto; }
.nav-item { padding: 12px 20px; font-size: 14px; color: var(--gray-5); cursor: pointer; white-space: nowrap; border-bottom: 2px solid transparent; transition: all 0.2s; }
.nav-item:hover { color: var(--primary); background: var(--primary-bg); }
.nav-item.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

.container { max-width: 1200px; margin: 0 auto; padding: 20px 16px; }
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 20px; color: var(--gray-6); }

.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.form-divider{border:0;border-top:1px solid var(--gray-2);margin:20px 0;}
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: var(--gray-6); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--gray-2); font-size: 13px; }
th { background: var(--gray-1); color: var(--gray-5); font-weight: 600; }
tr:hover { background: var(--primary-bg); }

.badge { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; }
.badge-success { background: #E8F5E9; color: #2E7D32; }
.badge-warning { background: #FFF8E1; color: #F57F17; }
.badge-danger { background: #FFEBEE; color: #C62828; }
.badge-info { background: #E3F2FD; color: #1565C0; }
.badge-default { background: var(--gray-2); color: var(--gray-5); }

.btn { display: inline-flex; align-items: center; gap: 4px; padding: 8px 20px; border: none; border-radius: 6px; font-size: 14px; cursor: pointer; transition: all 0.2s; font-weight: 500; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-light); }
.btn-success { background: var(--success); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--white); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-outline { background: var(--white); color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-bg); }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; color: var(--gray-5); margin-bottom: 6px; font-weight: 500; }
.form-input { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-3); border-radius: 6px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0,103,255,0.1); }
.form-select { width: 100%; padding: 10px 12px; border: 1px solid var(--gray-3); border-radius: 6px; font-size: 14px; background: var(--white); outline: none; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; text-align: center; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--primary); }
.stat-label { font-size: 13px; color: var(--gray-4); margin-top: 4px; }

.modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.show { display: flex; }
.hidden { display: none !important; }
.modal { background: var(--white); border-radius: var(--radius); width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto; padding: 24px; }
.modal-title { font-size: 18px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-4); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }

.status-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; }
.status-dot.green { background: var(--success); }
.status-dot.yellow { background: var(--warning); }
.status-dot.red { background: var(--danger); }
.status-dot.blue { background: var(--primary); }

.footer { text-align: center; padding: 20px; color: var(--gray-4); font-size: 12px; }

@media (max-width: 768px) {
  .container { padding: 12px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-item { padding: 10px 14px; font-size: 13px; }
  .form-input, .form-select { font-size: 16px; }
}
