/* 乐彩-公众号菜单管理 样式 */
* { margin:0; padding:0; box-sizing:border-box; }
body { font-family:"Microsoft YaHei","PingFang SC",Arial,sans-serif; font-size:14px; color:#333; background:#f2f5f9; }
a { color:#1e6fff; text-decoration:none; }

/* 登录 */
.login-wrap { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:20px; }
.login-box { width:360px; background:#fff; border-radius:12px; box-shadow:0 4px 20px rgba(0,0,0,.08); padding:36px 32px; }
.login-title { font-size:20px; font-weight:bold; text-align:center; }
.login-sub { font-size:13px; color:#888; text-align:center; margin:6px 0 22px; }
.login-box label { display:block; font-size:13px; color:#555; margin:14px 0 4px; }
.login-box input { width:100%; padding:10px 12px; border:1px solid #d5dbe3; border-radius:8px; font-size:14px; }
.login-msg { min-height:18px; font-size:13px; color:#c0392b; margin:4px 0; }

/* 布局 */
.layout { display:flex; min-height:100vh; }
.sidebar { width:220px; background:#1c2733; color:#cdd7e2; display:flex; flex-direction:column; position:fixed; top:0; bottom:0; left:0; }
.brand { padding:20px 18px 4px; font-size:16px; font-weight:bold; color:#fff; }
.brand-sub { padding:0 18px 14px; font-size:12px; color:#7d8ea3; border-bottom:1px solid #2a3745; }
.nav { flex:1; padding:10px 0; }
.nav a { display:block; padding:12px 20px; color:#cdd7e2; font-size:14px; border-left:3px solid transparent; }
.nav a:hover { background:#243243; color:#fff; }
.nav a.on { background:#243243; color:#fff; border-left-color:#1e6fff; }
.side-foot { padding:14px 18px; border-top:1px solid #2a3745; font-size:13px; display:flex; justify-content:space-between; align-items:center; }
.side-user { color:#9fb0c2; }
.side-foot a { color:#e8746d; }

.main { flex:1; margin-left:220px; padding:0 24px 40px; }
.main-head { padding:18px 0 14px; border-bottom:1px solid #e3e9f0; margin-bottom:18px; }
.main-head h2 { font-size:18px; }
.content { max-width:1080px; }

/* 卡片与表格 */
.card { background:#fff; border-radius:10px; box-shadow:0 1px 6px rgba(0,0,0,.05); padding:20px; margin-bottom:16px; }
.card h3 { font-size:15px; margin-bottom:14px; color:#1f2d3d; }
.card .desc { font-size:12px; color:#8895a6; margin:-8px 0 14px; }
.grid2 { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:900px){ .grid2 { grid-template-columns:1fr; } }
table.list { width:100%; border-collapse:collapse; font-size:13px; }
table.list th { background:#f7f9fc; color:#5a6a7d; text-align:left; padding:9px 10px; border-bottom:1px solid #e6ecf3; font-weight:normal; white-space:nowrap; }
table.list td { padding:9px 10px; border-bottom:1px solid #eef2f7; vertical-align:middle; }
table.list tr:hover td { background:#fafcff; }

label.f { display:block; font-size:13px; color:#555; margin:12px 0 4px; }
input[type=text], input[type=password], input[type=number], input[type=time], select, textarea {
  width:100%; padding:9px 10px; border:1px solid #d5dbe3; border-radius:8px; font-size:14px; background:#fff; color:#333;
}
textarea { font-family:Consolas,"Microsoft YaHei",monospace; }
input[type=checkbox]{ width:auto; }

.btn { display:inline-block; padding:8px 18px; border:1px solid #d5dbe3; background:#fff; color:#333; border-radius:8px; font-size:13px; cursor:pointer; }
.btn:hover { border-color:#1e6fff; color:#1e6fff; }
.btn-primary { background:#1e6fff; border-color:#1e6fff; color:#fff; }
.btn-primary:hover { background:#1658d6; color:#fff; }
.btn-danger { color:#c0392b; border-color:#e8b4b0; }
.btn-danger:hover { border-color:#c0392b; color:#c0392b; }
.btn-sm { padding:4px 10px; font-size:12px; border-radius:6px; }
.btn-block { width:100%; margin-top:16px; }
.btn-ghost { background:transparent; border:1px solid #1e6fff; color:#1e6fff; }

.badge { display:inline-block; padding:2px 8px; border-radius:10px; font-size:12px; }
.badge-ok { background:#e6f7ec; color:#1e7d2e; }
.badge-warn { background:#fff4e0; color:#b26a00; }
.badge-err { background:#fdeceb; color:#c0392b; }
.badge-info { background:#e8f1ff; color:#1e6fff; }

.msg { padding:10px 12px; border-radius:8px; font-size:13px; margin:10px 0; display:none; }
.msg.show { display:block; }
.msg-ok { background:#e6f7ec; color:#1e7d2e; }
.msg-err { background:#fdeceb; color:#c0392b; }
.msg-info { background:#e8f1ff; color:#1e6fff; }

.qr-img { width:132px; height:132px; border:1px solid #e6ecf3; border-radius:8px; display:block; }
.muted { color:#8895a6; font-size:12px; }
.mt { margin-top:12px; }
.mt2 { margin-top:20px; }
.mb { margin-bottom:10px; }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.row-between { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:8px; }
.empty { text-align:center; color:#9aa7b6; padding:36px 0; font-size:13px; }

/* 菜单编辑器 */
.menu-editor { display:flex; gap:18px; flex-wrap:wrap; }
.editor-left { flex:1; min-width:420px; }
.preview-box { width:340px; }
.phone { width:300px; margin:0 auto; background:#f6f8fb; border:8px solid #2b3440; border-radius:28px; overflow:hidden; box-shadow:0 4px 18px rgba(0,0,0,.12); }
.phone-head { background:linear-gradient(135deg,#1e6fff,#4f9bff); color:#fff; padding:26px 14px 16px; font-size:13px; min-height:64px; }
.phone-body { background:#fff; min-height:340px; padding:10px; }
.phone-menu { display:flex; border-top:1px solid #e3e9f0; background:#fff; }
.phone-menu .pm-item { flex:1; text-align:center; padding:12px 2px; font-size:12px; color:#333; cursor:pointer; border-right:1px solid #eef2f7; position:relative; }
.phone-menu .pm-item:last-child { border-right:0; }
.pm-sub { position:absolute; bottom:100%; left:0; right:0; background:#fff; border:1px solid #e3e9f0; border-radius:8px; overflow:hidden; box-shadow:0 -2px 12px rgba(0,0,0,.08); }
.pm-sub div { padding:10px 4px; font-size:12px; border-bottom:1px solid #eef2f7; }
.pm-sub div:last-child { border-bottom:0; }

.menu-top { background:#fff; border:1px solid #e3e9f0; border-radius:10px; margin-bottom:12px; }
.menu-top-head { display:flex; align-items:center; gap:8px; padding:10px 12px; border-bottom:1px dashed #eef2f7; }
.menu-top-head input { flex:1; }
.menu-top-head .lbl { font-size:12px; color:#8895a6; white-space:nowrap; }
.menu-sub { padding:8px 12px 12px; }
.menu-sub-item { display:flex; align-items:center; gap:6px; margin-bottom:8px; }
.menu-sub-item input.m-name { flex:1.2; min-width:90px; }
.menu-sub-item select { width:80px; flex:none; }
.menu-sub-item input.m-val { flex:1.6; min-width:120px; }

/* 版本列表 */
.version-item { border:1px solid #e3e9f0; border-radius:10px; padding:12px 14px; margin-bottom:10px; background:#fff; }
