/* 全局现代风格 */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e2e8f0;
  --text: #1e293b;
  --text-muted: #64748b;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: "Microsoft YaHei", -apple-system, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.5; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-page { max-width: 1000px; margin: 0 auto; padding: 24px; }
.app-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 20px; overflow: hidden; }
.app-card-head { background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; padding: 14px 20px; font-weight: 600; font-size: 15px; }
.app-card-body { padding: 20px; }
.app-btn { display: inline-block; padding: 10px 20px; background: var(--primary); color: #fff; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; }
.app-btn:hover { background: var(--primary-hover); }
.app-btn-secondary { background: #94a3b8; }
.app-btn-secondary:hover { background: #64748b; }
.app-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.app-table th, .app-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.app-table th { background: #f1f5f9; font-weight: 600; color: var(--text); }
.app-table tr:hover { background: #f8fafc; }
.app-form-label { display: block; margin-bottom: 6px; color: var(--text-muted); font-size: 13px; }
.app-form-input { width: 100%; max-width: 320px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.app-form-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.app-pagination { margin-top: 16px; font-size: 13px; color: var(--text-muted); }
.app-pagination a { margin: 0 6px; }
.app-pagination .current { color: var(--primary); font-weight: 600; }
.app-left-menu { width: 180px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.app-left-item { display: block; padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.app-left-item:hover { background: #f1f5f9; }
.app-left-item:last-child { border-bottom: none; }
.app-left-item .badge { float: right; background: var(--primary); color: #fff; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.app-left-item .name { font-weight: 500; }
.app-left-item .sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

/* 移动端兼容（小屏自动生效） */
@import url("mobile.css");
