* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif; background: #f5f7fa; color: #333; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

.navbar { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.06); position: sticky; top: 0; z-index: 100; }
.navbar .nav-inner { max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; height: 60px; }
.navbar .brand { font-size: 20px; font-weight: 700; color: #1a73e8; display: flex; align-items: center; gap: 10px; }
.navbar .nav-links { display: flex; gap: 8px; }
.navbar .nav-links a { padding: 8px 16px; border-radius: 6px; font-size: 14px; color: #555; transition: all .2s; }
.navbar .nav-links a:hover, .navbar .nav-links a.active { background: #e8f0fe; color: #1a73e8; }
.navbar .nav-links a.screen-link { background: #1a73e8; color: #fff; }
.navbar .nav-links a.screen-link:hover { background: #1557b0; }

.card { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); padding: 20px; margin-bottom: 20px; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 16px; color: #222; display: flex; align-items: center; gap: 8px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.stat-card { padding: 20px; border-radius: 12px; color: #fff; position: relative; overflow: hidden; }
.stat-card.blue { background: linear-gradient(135deg, #1a73e8, #4285f4); }
.stat-card.green { background: linear-gradient(135deg, #34a853, #66bb6a); }
.stat-card.orange { background: linear-gradient(135deg, #f9ab00, #fbbc05); }
.stat-card.red { background: linear-gradient(135deg, #ea4335, #f06c6c); }
.stat-card.purple { background: linear-gradient(135deg, #7c4dff, #9e82f3); }
.stat-card .stat-label { font-size: 14px; opacity: .9; margin-bottom: 8px; }
.stat-card .stat-value { font-size: 32px; font-weight: 700; }
.stat-card .stat-sub { font-size: 12px; opacity: .85; margin-top: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 16px; border-radius: 6px; border: none; cursor: pointer; font-size: 14px; transition: all .2s; }
.btn-primary { background: #1a73e8; color: #fff; }
.btn-primary:hover { background: #1557b0; }
.btn-success { background: #34a853; color: #fff; }
.btn-success:hover { background: #2e7d32; }
.btn-danger { background: #ea4335; color: #fff; }
.btn-danger:hover { background: #c5221f; }
.btn-default { background: #f1f3f4; color: #444; }
.btn-default:hover { background: #e8eaed; }

.badge { display: inline-block; padding: 4px 10px; border-radius: 12px; font-size: 12px; font-weight: 500; }
.badge-primary { background: #e8f0fe; color: #1a73e8; }
.badge-success { background: #e6f4ea; color: #137333; }
.badge-warning { background: #fef3e8; color: #b06000; }
.badge-danger { background: #fce8e8; color: #c5221f; }
.badge-info { background: #e8f0fe; color: #1967d2; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f8f9fa; color: #666; font-weight: 600; }
tr:hover { background: #f8f9fa; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; color: #555; margin-bottom: 6px; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; outline: none; transition: border .2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: #1a73e8; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid #eee; }
.tab { padding: 10px 18px; cursor: pointer; border-bottom: 2px solid transparent; color: #666; font-size: 14px; }
.tab.active { color: #1a73e8; border-bottom-color: #1a73e8; font-weight: 600; }

.search-bar { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 14px; }
.search-bar input { min-width: 220px; }

.flow-step { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; position: relative; }
.flow-step::before { content: ''; position: absolute; left: 15px; top: 36px; bottom: -20px; width: 2px; background: #e0e0e0; }
.flow-step:last-child::before { display: none; }
.flow-icon { width: 32px; height: 32px; border-radius: 50%; background: #e8f0fe; color: #1a73e8; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; z-index: 1; }
.flow-icon.done { background: #34a853; color: #fff; }
.flow-icon.current { background: #1a73e8; color: #fff; }
.flow-content { flex: 1; }
.flow-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.flow-meta { font-size: 12px; color: #888; }

.chart { width: 100%; height: 320px; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 200; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: #fff; border-radius: 12px; width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal-header { padding: 16px 20px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 20px; }
.modal-footer { padding: 16px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }
.close-btn { font-size: 22px; color: #888; cursor: pointer; }
.close-btn:hover { color: #333; }

.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #e0e0e0; }
.timeline-item { position: relative; margin-bottom: 16px; }
.timeline-item::before { content: ''; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #1a73e8; }
.timeline-item.approved::before { background: #34a853; }
.timeline-item.rejected::before { background: #ea4335; }
.timeline-title { font-size: 14px; font-weight: 600; }
.timeline-time { font-size: 12px; color: #888; margin-top: 2px; }

.page-title { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.page-desc { color: #666; margin-bottom: 24px; font-size: 14px; }

.empty { text-align: center; padding: 60px 20px; color: #888; }
.empty-icon { font-size: 48px; margin-bottom: 12px; }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .grid-4, .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .navbar .nav-links { display: none; }
}

/* 大屏专用样式 */
.screen-body { background: #0b1120; color: #fff; overflow-y: auto; }
.screen-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding: 20px 40px; background: linear-gradient(180deg, rgba(26,115,232,0.2), transparent); }
.screen-title { font-size: 32px; font-weight: 700; letter-spacing: 4px; text-shadow: 0 0 20px rgba(26,115,232,0.5); }
.screen-time { font-size: 16px; color: #8ab4f8; white-space: nowrap; }
.screen-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr); gap: 20px; padding: 0 40px 20px; min-height: calc(100vh - 90px); }
.screen-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.screen-card { background: rgba(255,255,255,0.04); border: 1px solid rgba(138,180,248,0.15); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; flex: 1; min-height: 280px; min-width: 0; }
.screen-card-title { font-size: 16px; font-weight: 600; color: #8ab4f8; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.screen-stat { text-align: center; padding: 16px; }
.screen-stat-value { font-size: 36px; font-weight: 700; color: #4fc3f7; }
.screen-stat-label { font-size: 14px; color: #90a4ae; margin-top: 6px; }
.screen-chart { width: 100%; height: 220px; flex: 1 1 220px; min-height: 220px; min-width: 0; }
#screenStats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.screen-table { width: 100%; font-size: 13px; color: #cfd8dc; }
.screen-table th, .screen-table td { border-bottom: 1px solid rgba(255,255,255,0.08); padding: 10px 8px; }
.screen-table th { color: #8ab4f8; background: transparent; }
@media (max-width: 1000px) {
  .screen-grid { grid-template-columns: minmax(0, 1fr); }
}
