@charset "utf-8";
/* 大驰明惠 卡券回收后台 · 通用样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font: 14px/1.6 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; color: #232a35; background: #f2f4f8; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
input, select, textarea, button { font-family: inherit; font-size: 14px; outline: none; }

/* ---------- 登录页 ---------- */
.loginbg { height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1b2a4a 0%, #27406e 50%, #16324f 100%); }
.loginbox { width: 380px; background: #fff; border-radius: 10px; padding: 34px 34px 24px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.ltitle { font-size: 19px; font-weight: 700; color: #1b2a4a; }
.lsub { font-size: 12px; color: #9aa4b2; letter-spacing: .5px; margin: 4px 0 22px; }
.loginbox label { display: block; font-size: 12px; color: #6b7684; margin: 12px 0 6px; }
.loginbox input { width: 100%; height: 42px; border: 1px solid #dde3ea; border-radius: 6px; padding: 0 12px; }
.loginbox input:focus { border-color: #2f6fed; }
.lbtn { width: 100%; height: 44px; margin-top: 20px; border: 0; border-radius: 6px; color: #fff; font-size: 16px; letter-spacing: 6px;
  background: linear-gradient(90deg, #2f6fed, #4b8bff); cursor: pointer; }
.lerr { color: #e04c4c; font-size: 13px; margin-top: 10px; }
.ltip { margin-top: 16px; font-size: 12px; color: #a9b2bd; text-align: center; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.side { width: 226px; background: #1c2536; color: #c3ccda; flex-shrink: 0; position: fixed; top: 0; bottom: 0; overflow-y: auto; }
.logo { height: 62px; display: flex; align-items: center; padding: 0 18px; font-size: 15px; font-weight: 700; color: #fff; border-bottom: 1px solid rgba(255,255,255,.07); }
.logo .dot { width: 9px; height: 9px; border-radius: 50%; background: #38d39f; margin-right: 9px; box-shadow: 0 0 8px #38d39f; }
.menu { padding: 8px 0 40px; }
.mlvl1 { display: flex; align-items: center; height: 44px; padding: 0 18px; color: #c3ccda; cursor: pointer; }
.mlvl1 i { font-style: normal; width: 24px; }
.mlvl1 .caret { margin-left: auto; font-style: normal; font-size: 11px; transition: transform .2s; }
.mi.open > .mlvl1 { color: #fff; background: rgba(47,111,237,.16); border-right: 3px solid #4b8bff; }
.mi.open > .mlvl1 .caret { transform: rotate(180deg); }
.msub { display: none; background: #17202f; }
.mi.open .msub { display: block; }
.msub li a { display: block; height: 38px; line-height: 38px; padding-left: 46px; font-size: 13px; color: #93a0b1; }
.msub li a:hover { color: #fff; background: rgba(255,255,255,.05); }
.msub li a.on { color: #6ea8ff; }

.main { flex: 1; margin-left: 226px; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 62px; background: #fff; border-bottom: 1px solid #e8ecf1; display: flex; align-items: center; padding: 0 22px; position: sticky; top: 0; z-index: 20; }
.crumb { font-size: 16px; font-weight: 700; }
.topright { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 13px; color: #6b7684; }
.pill { background: #eef3ff; color: #2f6fed; border-radius: 20px; padding: 3px 10px; font-size: 12px; }
.logout { color: #e04c4c; }
.body { padding: 20px 22px 40px; flex: 1; }
.foot { padding: 14px 22px; color: #9aa4b2; font-size: 12px; border-top: 1px solid #e8ecf1; background: #fff; }

/* ---------- 卡片 / 统计 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.card { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
.card .k { font-size: 13px; color: #7b8697; }
.card .v { font-size: 27px; font-weight: 700; margin: 8px 0 4px; color: #1c2536; }
.card .v small { font-size: 13px; font-weight: 400; color: #9aa4b2; margin-left: 4px; }
.card .d { font-size: 12px; color: #9aa4b2; }
.up { color: #12a06a; } .down { color: #e04c4c; }
.warn { color: #e08b12; }
.panel { background: #fff; border-radius: 8px; padding: 18px; box-shadow: 0 1px 3px rgba(16,24,40,.06); margin-bottom: 16px; }
.ptitle { font-size: 15px; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; }
.ptitle b { border-left: 3px solid #2f6fed; padding-left: 9px; }
.ptitle .more { margin-left: auto; font-size: 12px; font-weight: 400; color: #2f6fed; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
.chart { width: 100%; height: 320px; }

/* ---------- 工具条 / 表单 ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #fff; border-radius: 8px; padding: 14px 16px; margin-bottom: 14px; }
.toolbar input, .toolbar select { height: 34px; border: 1px solid #dde3ea; border-radius: 5px; padding: 0 10px; background: #fff; }
.toolbar input[type=text] { width: 190px; }
.btn { height: 34px; padding: 0 16px; border: 0; border-radius: 5px; background: #2f6fed; color: #fff; cursor: pointer; }
.btn:hover { background: #2461d8; }
.btn.ghost { background: #fff; color: #2f6fed; border: 1px solid #b9cef7; }
.btn.green { background: #12a06a; } .btn.red { background: #e04c4c; } .btn.gray { background: #8b96a6; }
.btn.sm { height: 27px; padding: 0 9px; font-size: 12px; border-radius: 4px; }
.right { margin-left: auto; }

/* ---------- 表格 ---------- */
.tablewrap { background: #fff; border-radius: 8px; overflow-x: auto; box-shadow: 0 1px 3px rgba(16,24,40,.06); }
table.tb { width: 100%; border-collapse: collapse; min-width: 860px; }
table.tb th { background: #f7f9fc; color: #66707f; font-weight: 600; font-size: 13px; text-align: left; padding: 11px 12px; border-bottom: 1px solid #eaeef3; white-space: nowrap; }
table.tb td { padding: 11px 12px; border-bottom: 1px solid #f1f4f8; font-size: 13px; }
table.tb tbody tr:hover { background: #f9fbff; }
table.tb td.num { font-family: Consolas, Menlo, monospace; }
.empty { padding: 46px; text-align: center; color: #a9b2bd; }

/* 标签 */
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; }
.tg-gray { background: #f0f2f5; color: #6b7684; }
.tg-blue { background: #eaf1ff; color: #2f6fed; }
.tg-green { background: #e6f7ef; color: #12a06a; }
.tg-orange { background: #fff3e0; color: #d9840b; }
.tg-red { background: #fdecec; color: #e04c4c; }

/* 分页 */
.page { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 18px 0 4px; font-size: 13px; color: #6b7684; }
.page a, .page span.cur { min-width: 32px; height: 32px; line-height: 30px; text-align: center; border: 1px solid #dde3ea; border-radius: 5px; background: #fff; padding: 0 8px; }
.page span.cur { background: #2f6fed; color: #fff; border-color: #2f6fed; }

/* 进度条 */
.bar { height: 7px; border-radius: 4px; background: #eceff4; overflow: hidden; min-width: 90px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f6fed, #59a5ff); }
.bar i.o { background: linear-gradient(90deg, #f0a742, #ff8a3d); }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(15,22,35,.55); display: none; align-items: center; justify-content: center; z-index: 99; }
.mask.show { display: flex; }
.dlg { width: 520px; max-width: 94vw; max-height: 88vh; overflow: auto; background: #fff; border-radius: 10px; padding: 22px; }
.dlg h3 { font-size: 16px; margin-bottom: 16px; }
.dlg .row { margin-bottom: 12px; }
.dlg .row label { display: block; font-size: 12px; color: #6b7684; margin-bottom: 5px; }
.dlg .row input, .dlg .row select, .dlg .row textarea { width: 100%; height: 36px; border: 1px solid #dde3ea; border-radius: 5px; padding: 0 10px; }
.dlg .row textarea { height: 80px; padding: 8px 10px; }
.dlg .ops { text-align: right; margin-top: 18px; }
.dlg .ops .btn { margin-left: 8px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 13px; }
.kv dt { color: #7b8697; }
.kv dd { color: #232a35; word-break: break-all; }

/* 提示条 */
.msg { padding: 10px 14px; border-radius: 6px; margin-bottom: 14px; font-size: 13px; }
.msg.ok { background: #e6f7ef; color: #12a06a; }
.msg.bad { background: #fdecec; color: #e04c4c; }
.tip { font-size: 12px; color: #9aa4b2; }
pre.code { background: #1c2536; color: #d7e2f2; padding: 14px; border-radius: 8px; font-size: 12px; overflow: auto; line-height: 1.7; }
