* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: "Microsoft YaHei", "Segoe UI", sans-serif; background: #f5f5f5; color: #333; font-size: 14px; }
a { color: #07c160; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1400px; margin: 0 auto; padding: 20px; }

.header { background: #07c160; color: #fff; padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; }
.header h1 { font-size: 20px; font-weight: normal; }
.header .logo-link { color: #fff; text-decoration: none; cursor: pointer; }
.header .logo-link:hover { opacity: 0.9; }
.header .version-tag { font-size: 12px; opacity: 0.85; font-weight: normal; }
.header .user-info { font-size: 13px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header a { color: #fff; margin-left: 15px; }

.nav { background: #fff; border-bottom: 1px solid #ddd; padding: 0 20px; }
.nav a { display: inline-block; padding: 12px 20px; color: #666; border-bottom: 2px solid transparent; }
.nav a.active, .nav a:hover { color: #07c160; border-bottom-color: #07c160; }

.card { background: #fff; border-radius: 8px; padding: 20px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 15px; }
.toolbar input, .toolbar select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.toolbar label { display: flex; align-items: center; gap: 5px; cursor: pointer; }

.btn { display: inline-block; padding: 8px 16px; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; text-decoration: none; color: #fff; }
.btn-primary { background: #07c160; }
.btn-primary:hover { background: #06ad56; }
.btn-danger { background: #e53935; }
.btn-danger:hover { background: #c62828; }
.btn-secondary { background: #78909c; }
.btn-secondary:hover { background: #607d8b; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eee; vertical-align: middle; }
th { background: #fafafa; font-weight: 600; white-space: nowrap; }
tr:hover { background: #f9f9f9; }

.avatar { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.tag { display: inline-block; background: #e8f5e9; color: #2e7d32; padding: 2px 8px; border-radius: 3px; margin: 2px; font-size: 12px; }
.match-badge { background: #fff3e0; color: #e65100; padding: 2px 8px; border-radius: 3px; font-size: 12px; }

.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pagination a, .pagination span { padding: 6px 12px; border: 1px solid #ddd; border-radius: 4px; color: #333; }
.pagination a:hover { background: #07c160; color: #fff; border-color: #07c160; }
.pagination .current { background: #07c160; color: #fff; border-color: #07c160; }

.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: linear-gradient(135deg, #07c160 0%, #06ad56 100%); }
.login-box { background: #fff; padding: 40px; border-radius: 8px; width: 380px; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
.login-box h2 { text-align: center; margin-bottom: 30px; color: #07c160; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; color: #666; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; }
.form-group textarea { height: 80px; resize: vertical; }
.error-msg { color: #e53935; text-align: center; margin-bottom: 10px; }

.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); z-index: 1000; justify-content: center; align-items: center; }
.modal.show { display: flex; }
.modal-content { background: #fff; padding: 25px; border-radius: 8px; width: 500px; max-width: 90%; max-height: 90vh; overflow-y: auto; }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { margin: 0; }
.modal-close { background: none; border: none; font-size: 24px; cursor: pointer; color: #999; }
.modal-footer { margin-top: 20px; text-align: right; display: flex; gap: 10px; justify-content: flex-end; }

.stats { display: flex; gap: 20px; margin-bottom: 20px; }
.stat-item { background: #fff; padding: 15px 25px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat-item .num { font-size: 28px; font-weight: bold; color: #07c160; }
.stat-item .label { color: #999; font-size: 13px; }

.empty { text-align: center; padding: 40px; color: #999; }

@media (max-width: 768px) {
    .toolbar { flex-direction: column; align-items: stretch; }
    table { font-size: 12px; }
    th, td { padding: 6px 8px; }
}
