* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f6f8; color: #333; font-size: 14px; }
a { text-decoration: none; color: inherit; }
.btn { display: inline-block; border: none; border-radius: 6px; padding: 8px 16px; font-size: 14px; cursor: pointer; }
.btn-primary { background: #ff6b35; color: #fff; }
.btn-secondary { background: #fff; color: #333; border: 1px solid #ddd; }
.btn-danger { background: #fff; color: #e74c3c; border: 1px solid #e74c3c; }
.btn-sm { padding: 4px 10px; font-size: 13px; }
input, select, textarea { border: 1px solid #d9dce1; border-radius: 6px; padding: 8px 10px; font-size: 14px; width: 100%; }
input:focus, select:focus { outline: none; border-color: #ff6b35; }
.card { background: #fff; border-radius: 10px; padding: 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.card + .card { margin-top: 16px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef0f3; font-size: 14px; }
th { color: #888; font-weight: 500; background: #fafbfc; }
tr:hover td { background: #fafafa; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.tag-green { background: #e6f7ee; color: #1faf6b; }
.tag-red { background: #fdecea; color: #e74c3c; }
.tag-orange { background: #fdf0e8; color: #ff6b35; }
.tag-gray { background: #f0f1f3; color: #888; }
.topbar { background: #fff; border-bottom: 1px solid #eee; padding: 12px 24px; display: flex; justify-content: space-between; align-items: center; }
.topbar .brand { font-size: 18px; font-weight: bold; color: #ff6b35; }
.topbar .nav a { margin-left: 20px; color: #666; }
.topbar .nav a.active { color: #ff6b35; font-weight: bold; }
.topbar .user { color: #666; }
.container { max-width: 1100px; margin: 20px auto; padding: 0 16px; }
.stats-row { display: flex; gap: 16px; flex-wrap: wrap; }
.stat-card { flex: 1; min-width: 160px; background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.stat-card .num { font-size: 28px; font-weight: bold; margin-top: 6px; }
.stat-card .label { color: #888; font-size: 13px; }
.stat-card.orange .num { color: #ff6b35; }
.stat-card.green .num { color: #1faf6b; }
.stat-card.blue .num { color: #3a7bd5; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; color: #666; font-size: 13px; }
.form-inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.form-inline .form-row { flex: 1; min-width: 160px; margin-bottom: 0; }
.mask { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.4); display: none; align-items: center; justify-content: center; z-index: 100; }
.mask.show { display: flex; }
.dialog { background: #fff; border-radius: 12px; padding: 24px; width: 420px; max-width: 92%; max-height: 88vh; overflow-y: auto; }
.dialog h3 { margin-bottom: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.empty-tip { text-align: center; color: #999; padding: 30px 0; }
.msg { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); padding: 10px 22px; border-radius: 8px; color: #fff; font-size: 14px; z-index: 200; display: none; }
.msg.ok { background: #1faf6b; }
.msg.err { background: #e74c3c; }
