/* common.css - H5 通用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f5f7fa; color: #1a1a1a; font-size: 14px; }
a { color: inherit; text-decoration: none; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 220px; background: #001529; color: #fff; }
.sidebar .logo { padding: 24px; font-size: 18px; font-weight: 600; text-align: center; border-bottom: 1px solid #002140; }
.sidebar .menu-item { display: block; padding: 14px 24px; color: #b0bccc; cursor: pointer; }
.sidebar .menu-item:hover { background: #002140; color: #fff; }
.sidebar .menu-item.active { background: #1989fa; color: #fff; }
.sidebar .menu-group { padding: 8px 24px; color: #6f7e8c; font-size: 12px; }
.main { flex: 1; display: flex; flex-direction: column; }
.topbar { height: 56px; background: #fff; display: flex; align-items: center; padding: 0 24px; box-shadow: 0 1px 4px rgba(0,21,41,.08); }
.topbar .title { font-size: 16px; font-weight: 500; flex: 1; }
.topbar .user { color: #666; }
.content { padding: 24px; flex: 1; overflow: auto; }

/* 通用 */
.page-title { font-size: 20px; font-weight: 600; margin-bottom: 16px; }
.card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,21,41,.06); margin-bottom: 16px; }
.row { display: flex; align-items: center; padding: 10px 0; }
.row + .row { border-top: 1px solid #f0f0f0; }
.label { color: #666; min-width: 100px; }
.value { color: #1a1a1a; }
.btn { display: inline-block; padding: 8px 16px; border-radius: 4px; border: 0; cursor: pointer; font-size: 14px; }
.btn-primary { background: #1989fa; color: #fff; }
.btn-primary:hover { background: #0c64d4; }
.btn-ghost { background: #fff; color: #1989fa; border: 1px solid #1989fa; }
.btn-ghost:hover { background: #e8f3ff; }
.btn-danger { background: #ee0a24; color: #fff; }
.btn-danger:hover { background: #c4081d; }
.btn-sm { padding: 4px 12px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
table th { background: #fafafa; color: #666; font-weight: 500; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 12px; }
.tag-blue { background: #e8f3ff; color: #1989fa; }
.tag-green { background: #e8fff1; color: #07c160; }
.tag-red { background: #ffeceb; color: #ee0a24; }
.tag-gray { background: #f0f1f2; color: #666; }
input, select, textarea { padding: 8px 12px; border: 1px solid #d9d9d9; border-radius: 4px; font-size: 14px; outline: none; }
input:focus, select:focus, textarea:focus { border-color: #1989fa; }
label { display: block; margin: 8px 0 4px; color: #666; font-size: 13px; }
.empty { text-align: center; padding: 40px 0; color: #999; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }

/* 登录页 */
.login-body { background: linear-gradient(135deg, #1989fa, #001529); min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-box { width: 360px; background: #fff; border-radius: 8px; padding: 32px; box-shadow: 0 8px 32px rgba(0,0,0,.16); }
.login-box h1 { font-size: 22px; margin-bottom: 8px; text-align: center; }
.login-box .hint { color: #999; font-size: 12px; margin-bottom: 16px; text-align: center; }
.login-box input { width: 100%; margin-bottom: 12px; }
.login-box .btn-primary { width: 100%; padding: 12px; font-size: 16px; margin-top: 8px; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; box-shadow: 0 1px 4px rgba(0,21,41,.06); }
.stat-card .num { font-size: 32px; font-weight: 600; color: #1989fa; }
.stat-card .lbl { color: #666; margin-top: 8px; }
