/* 留学帮 Demo 公共样式 */
:root {
  --brand: #1e5eff; --brand-d: #1546c7; --brand-l: #eaf0ff;
  --ok: #12a150; --ok-l: #e7f7ee; --warn: #e08a00; --warn-l: #fff4e0;
  --bad: #e5484d; --bad-l: #fdecec; --ink: #1c2333; --ink-2: #5b6478; --ink-3: #98a0b3;
  --line: #e6e9f0; --bg: #f5f7fb; --card: #fff; --r: 10px;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 16px rgba(20, 30, 60, .05);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 14px; line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; }
.muted { color: var(--ink-2); } .faint { color: var(--ink-3); font-size: 12px; }
.row { display: flex; gap: 12px; align-items: center; } .row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; } .grow { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.btn:hover { border-color: var(--brand); color: var(--brand); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-d); color: #fff; }
.btn.danger { color: var(--bad); border-color: #f3c2c4; } .btn.danger:hover { background: var(--bad-l); }
.btn.ok { color: var(--ok); border-color: #b9e4cb; } .btn.ok:hover { background: var(--ok-l); }
.btn.sm { padding: 3px 10px; font-size: 12px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: var(--brand-l); color: var(--brand); white-space: nowrap; }
.tag.ok { background: var(--ok-l); color: var(--ok); } .tag.warn { background: var(--warn-l); color: var(--warn); }
.tag.bad { background: var(--bad-l); color: var(--bad); } .tag.gray { background: #eef0f4; color: var(--ink-2); }

input, select, textarea { font: inherit; border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-l); }
label.field { display: block; margin-bottom: 12px; } label.field > span { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
label.field input, label.field select, label.field textarea { width: 100%; }

table.tbl { width: 100%; border-collapse: collapse; background: #fff; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl th { background: #f8f9fc; color: var(--ink-2); font-weight: 500; font-size: 13px; }
.tbl tr:hover td { background: #fafbff; }

.stat .num { font-size: 26px; font-weight: 600; } .stat .lbl { color: var(--ink-2); font-size: 13px; }

/* 后台布局（商家端 / 平台端通用） */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }
.admin .side { background: #141b2d; color: #c5cbe0; padding: 16px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin .side .logo { color: #fff; font-weight: 600; font-size: 16px; padding: 0 20px 16px; }
.admin .side .grp { font-size: 12px; color: #6b7390; padding: 14px 20px 6px; }
.admin .side a { display: block; color: #c5cbe0; padding: 9px 20px; }
.admin .side a:hover { background: #1f2840; color: #fff; }
.admin .side a.on { background: var(--brand); color: #fff; }
.admin .main { padding: 20px 24px; min-width: 0; }
.admin .topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15, 20, 35, .45); display: flex; align-items: center; justify-content: center; z-index: 100; }
.modal { background: #fff; border-radius: 12px; width: min(560px, 92vw); max-height: 86vh; overflow: auto; padding: 20px; }
.modal .foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

/* 进度节点 */
.steps { display: flex; gap: 0; }
.steps .st { flex: 1; text-align: center; position: relative; font-size: 12px; color: var(--ink-3); }
.steps .st::before { content: ''; position: absolute; top: 11px; left: 0; right: 0; height: 2px; background: var(--line); z-index: 0; }
.steps .st:first-child::before { left: 50%; } .steps .st:last-child::before { right: 50%; }
.steps .dot { width: 24px; height: 24px; line-height: 24px; border-radius: 50%; background: #eef0f4; margin: 0 auto 6px; position: relative; z-index: 1; color: var(--ink-3); font-weight: 600; }
.steps .st.confirmed { color: var(--ok); } .steps .st.confirmed .dot { background: var(--ok); color: #fff; }
.steps .st.submitted { color: var(--warn); } .steps .st.submitted .dot { background: var(--warn); color: #fff; }
.steps .st.disputed { color: var(--bad); } .steps .st.disputed .dot { background: var(--bad); color: #fff; }

.empty { text-align: center; color: var(--ink-3); padding: 40px 0; }
.demo-bar { background: #fff8e1; color: #8a6200; font-size: 12px; text-align: center; padding: 4px; border-bottom: 1px solid #f5e3a8; }
.demo-bar a { margin-left: 10px; }

#lxb-toast { position: fixed; left: 50%; top: 24px; transform: translate(-50%, -20px); background: #1c2333; color: #fff; padding: 9px 18px; border-radius: 8px; opacity: 0; transition: .25s; z-index: 999; pointer-events: none; }
#lxb-toast.show { opacity: 1; transform: translate(-50%, 0); }
