* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; background: #f0f2f5; color: #333; }
a { color: #1890ff; text-decoration: none; }
a:hover { color: #40a9ff; }
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 4px; overflow: hidden; }
th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #e8e8e8; font-size: 14px; }
th { background: #fafafa; font-weight: 600; color: #555; }
tr:hover td { background: #f5f5f5; }
input, select, textarea { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; outline: none; transition: border-color .2s; }
input:focus, select:focus, textarea:focus { border-color: #1890ff; box-shadow: 0 0 0 2px rgba(24,144,255,.1); }
textarea { resize: vertical; min-height: 80px; }
.btn { display: inline-block; padding: 8px 20px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer; transition: all .2s; }
.btn-primary { background: #1890ff; color: #fff; }
.btn-primary:hover { background: #40a9ff; }
.btn-success { background: #52c41a; color: #fff; }
.btn-success:hover { background: #73d13d; }
.btn-danger { background: #ff4d4f; color: #fff; }
.btn-danger:hover { background: #ff7875; }
.btn-warning { background: #faad14; color: #fff; }
.btn-warning:hover { background: #ffc53d; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
.msg { padding: 12px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 14px; }
.msg-success { background: #f6ffed; border: 1px solid #b7eb8f; color: #389e0d; }
.msg-error { background: #fff2f0; border: 1px solid #ffccc7; color: #cf1322; }
.msg-info { background: #e6f7ff; border: 1px solid #91d5ff; color: #096dd9; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 4px; font-size: 14px; color: #555; font-weight: 500; }
.form-group input, .form-group select, .form-group textarea { width: 100%; max-width: 500px; }
.form-actions { margin-top: 20px; }
.panel { background: #fff; border-radius: 4px; padding: 24px; margin-bottom: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.panel h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid #f0f0f0; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.badge-active { background: #f6ffed; color: #52c41a; border: 1px solid #b7eb8f; }
.badge-inactive { background: #fff2f0; color: #ff4d4f; border: 1px solid #ffccc7; }
.badge-admin { background: #fff7e6; color: #fa8c16; border: 1px solid #ffd591; }
.badge-user { background: #e6f7ff; color: #1890ff; border: 1px solid #91d5ff; }
.header { background: #001529; color: #fff; padding: 0 24px; height: 56px; display: flex; align-items: center; justify-content: space-between; }
.header h1 { font-size: 18px; font-weight: 400; }
.header h1 a { color: #fff; }
.header .nav { display: flex; align-items: center; gap: 20px; }
.header .nav a { color: rgba(255,255,255,.75); font-size: 14px; }
.header .nav a:hover { color: #fff; }
.header .user-info { color: rgba(255,255,255,.75); font-size: 13px; }
.wrapper { display: flex; min-height: calc(100vh - 56px); }
.sidebar { width: 200px; background: #001529; padding-top: 16px; }
.sidebar a { display: block; padding: 12px 24px; color: rgba(255,255,255,.65); font-size: 14px; transition: all .2s; }
.sidebar a:hover, .sidebar a.active { color: #fff; background: rgba(255,255,255,.08); }
.sidebar a i { margin-right: 8px; }
.main { flex: 1; padding: 24px; }
.main-header { margin-bottom: 20px; }
.main-header h2 { font-size: 20px; font-weight: 500; }
.card-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.card { background: #fff; border-radius: 4px; padding: 20px; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.card .num { font-size: 32px; font-weight: 700; color: #1890ff; }
.card .label { font-size: 14px; color: #888; margin-top: 4px; }
.login-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f0f2f5; }
.login-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); width: 380px; }
.login-box h2 { text-align: center; margin-bottom: 24px; font-size: 22px; color: #333; }
.login-box .form-group input { max-width: 100%; }
.links { text-align: center; margin-top: 16px; font-size: 14px; color: #888; }
.install-page { display: flex; justify-content: center; align-items: center; min-height: 100vh; background: #f0f2f5; }
.install-box { background: #fff; padding: 40px; border-radius: 8px; box-shadow: 0 2px 12px rgba(0,0,0,.08); width: 520px; }
.install-box h2 { text-align: center; margin-bottom: 24px; font-size: 22px; }
.pagination { margin-top: 16px; text-align: center; }
.pagination a { display: inline-block; padding: 6px 12px; border: 1px solid #d9d9d9; margin: 0 2px; border-radius: 4px; color: #333; font-size: 13px; }
.pagination a:hover { border-color: #1890ff; color: #1890ff; }
.pagination a.active { background: #1890ff; border-color: #1890ff; color: #fff; }
.empty { text-align: center; padding: 40px; color: #999; font-size: 14px; }
.footer { text-align: center; padding: 16px; color: #999; font-size: 12px; }
