* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f4f6fb; color: #1f2733; }
.hidden { display: none !important; }

/* 登录 */
.login { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #3b5bdb, #5f3dc4); }
.login-box { background: #fff; padding: 40px 36px; border-radius: 16px; width: 340px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.login-box h1 { font-size: 22px; color: #3b5bdb; margin-bottom: 6px; }
.login-box .sub { color: #8a93a6; font-size: 13px; margin-bottom: 22px; }
.login-box input { width: 100%; padding: 12px 14px; border: 1px solid #dfe3ec; border-radius: 10px; font-size: 15px; margin-bottom: 14px; outline: none; }
.login-box input:focus { border-color: #3b5bdb; }
.login-box button { width: 100%; padding: 12px; border: 0; border-radius: 10px; background: #3b5bdb; color: #fff; font-size: 15px; cursor: pointer; }
.login-box button:hover { background: #2f4bc0; }
.err { color: #e03131; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* 布局 */
.app { display: flex; min-height: 100vh; }
.side { width: 200px; background: #1f2733; color: #cdd5e3; padding: 18px 0; display: flex; flex-direction: column; }
.side .logo { font-size: 20px; font-weight: 700; color: #fff; text-align: center; padding: 8px 0 22px; letter-spacing: 2px; }
.side nav { flex: 1; }
.side nav a { display: block; padding: 13px 22px; color: #cdd5e3; cursor: pointer; font-size: 14px; border-left: 3px solid transparent; }
.side nav a:hover { background: #2a3445; }
.side nav a.active { background: #2a3445; border-left-color: #3b5bdb; color: #fff; }
.side .logout { margin: 14px 18px 4px; padding: 10px; background: transparent; border: 1px solid #3a4456; color: #cdd5e3; border-radius: 8px; cursor: pointer; }
.side .logout:hover { color: #fff; border-color: #6b7689; }

.main { flex: 1; padding: 26px 30px; overflow: auto; }
.panel { display: none; }
.panel.active { display: block; }
.panel h2 { font-size: 18px; margin-bottom: 16px; }

/* 卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
.card .cv { font-size: 28px; font-weight: 700; color: #3b5bdb; }
.card .ct { font-size: 13px; color: #8a93a6; margin-top: 6px; }

/* 工具栏 */
.toolbar { margin-bottom: 14px; display: flex; gap: 10px; }
.toolbar input, .toolbar select { padding: 9px 12px; border: 1px solid #dfe3ec; border-radius: 8px; font-size: 14px; }
.toolbar button, td button { padding: 8px 14px; border: 0; border-radius: 8px; background: #3b5bdb; color: #fff; cursor: pointer; font-size: 13px; }
.toolbar button:hover, td button:hover { background: #2f4bc0; }

/* 表格 */
table.t { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(20,30,60,.06); }
table.t th, table.t td { padding: 11px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #eef1f6; }
table.t th { background: #f7f9fc; color: #6b7689; font-weight: 600; }
table.t tr:hover { background: #fafbff; }
table.t td.desc { max-width: 320px; color: #4a5468; }
table.t a { color: #3b5bdb; text-decoration: none; }
table.t select { padding: 5px 8px; border: 1px solid #dfe3ec; border-radius: 6px; }

.loading, .empty { padding: 30px; text-align: center; color: #8a93a6; }
.err { color: #e03131; padding: 14px; }
