/* ============================================================
   组件（续）：表格 / 分页 / 徽标 / 弹窗 / Toast / Tabs / 空态 / 骨架
   ============================================================ */

/* ---------- 表格 ---------- */
.tbl-wrap { overflow: auto; max-height: calc(100vh - 230px); border-radius: var(--radius) var(--radius) 0 0; }
.tbl-wrap.plain { max-height: none; border-radius: 8px; border: 1px solid var(--line-2); }
.tbl-wrap.short { max-height: 420px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 2; background: #F9FAFB; color: var(--text-2); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; font-size: 12.5px; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.tbl td.wrap { white-space: normal; min-width: 260px; }
.tbl tbody tr { animation: row-in .3s var(--ease) both; transition: background .12s; }
.tbl tbody tr:nth-child(even) td { background: #FAFBFD; }
.tbl tbody tr:hover td { background: var(--primary-soft); }
.tbl td.act, .tbl th.act { position: sticky; right: 0; background: #fff; box-shadow: -8px 0 12px -8px rgba(17,24,39,.12); z-index: 1; }
.tbl th.act { z-index: 3; background: #F9FAFB; }
.tbl tbody tr:nth-child(even) td.act { background: #FAFBFD; }
.tbl tbody tr:hover td.act { background: var(--primary-soft); }
.tbl .faint { color: #C4C8D0; }
.tbl .cell-main { font-weight: 600; }
.tbl .cell-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.money { font-family: var(--mono); font-size: 12.5px; }
.tbl.compact th { padding: 8px 10px; } .tbl.compact td { padding: 7px 10px; font-size: 12.5px; }
.tbl.dense td { padding: 6px 10px; }
@keyframes row-in { from { opacity: 0; transform: translateY(4px) } to { opacity: 1; transform: none } }
.pager { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; font-size: 13px; }
.pager .info { color: var(--text-3); margin-right: auto; }
.pager .info b { color: var(--text); }
.page-btn { position: relative; overflow: hidden; min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 13px; color: var(--text-2); transition: all .15s; }
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.page-btn.dis { opacity: .4; pointer-events: none; }
.pager select, .pager input { height: 30px; width: auto; font-size: 12.5px; }
.pager input { width: 56px; padding: 0 8px; }
.pager .jump { display: inline-flex; gap: 6px; align-items: center; color: var(--text-3); }

/* ---------- 徽标 ---------- */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; background: #F3F4F6; color: var(--text-2); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--success-soft); color: #15803D; }
.pill-warn { background: var(--warn-soft); color: #B45309; }
.pill-err { background: var(--danger-soft); color: #B91C1C; }
.pill-info { background: var(--info-soft); color: #0369A1; }
.pill-brand { background: var(--primary-soft); color: var(--primary-700); }
.pill-purple { background: var(--purple-soft); color: #6D28D9; }
.pill-off { background: #F3F4F6; color: var(--text-3); }
.pill-live .dot { animation: pulse-dot 1.2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1 } 50% { opacity: .3 } }
.tag { display: inline-block; padding: 1px 7px; border-radius: 5px; font-size: 11.5px; background: #F3F4F6; color: var(--text-2); font-family: var(--mono); }
.tag-brand { background: var(--primary-soft); color: var(--primary-700); }
.tag-ok { background: var(--success-soft); color: #15803D; }
.tag-warn { background: var(--warn-soft); color: #B45309; }
.tag-err { background: var(--danger-soft); color: #B91C1C; }

/* ---------- 弹窗 ---------- */
.overlay { position: fixed; inset: 0; background: rgba(17,24,39,.45); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 24px; animation: fade-in .2s both; overflow: auto; }
.overlay.closing { animation: fade-out .18s both; }
.modal { width: 560px; max-width: 100%; max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); animation: modal-in .25s var(--ease) both; }
.overlay.closing .modal { animation: modal-out .18s var(--ease) both; }
.modal.w420 { width: 420px; } .modal.w680 { width: 680px; } .modal.w800 { width: 800px; } .modal.w960 { width: 960px; } .modal.w1100 { width: 1100px; }
.modal-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 22px 12px; }
.modal-title { font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.modal-title svg { width: 18px; height: 18px; color: var(--primary); }
.modal-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.modal-close { margin-left: auto; }
.modal-body { padding: 6px 22px 18px; overflow: auto; flex: 1; min-height: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 22px 18px; border-top: 1px solid var(--line-2); }
.modal-foot .left { margin-right: auto; display: flex; gap: 8px; align-items: center; }
.modal.shake { animation: shake .4s; }
.confirm-box .modal-body { text-align: center; padding-top: 26px; }
.confirm-ic { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.confirm-ic svg { width: 26px; height: 26px; }
.confirm-ic.danger { background: var(--danger-soft); color: var(--danger); }
.confirm-ic.warn { background: var(--warn-soft); color: var(--warn); }
.confirm-ic.info { background: var(--info-soft); color: var(--info); }
.confirm-ic.ok { background: var(--success-soft); color: var(--success); }
.confirm-msg { color: var(--text-2); font-size: 13.5px; line-height: 1.6; white-space: pre-line; }
.confirm-box .modal-foot { justify-content: center; border-top: 0; padding-top: 0; }
@keyframes fade-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes fade-out { from { opacity: 1 } to { opacity: 0 } }
@keyframes modal-in { from { opacity: 0; transform: scale(.92) translateY(10px) } to { opacity: 1; transform: none } }
@keyframes modal-out { from { opacity: 1; transform: none } to { opacity: 0; transform: scale(.95) } }
@keyframes shake { 0%, 100% { transform: translateX(0) } 20%, 60% { transform: translateX(-8px) } 40%, 80% { transform: translateX(8px) } }

/* ---------- Toast ---------- */
.toast-root { position: fixed; top: 16px; right: 16px; z-index: 2000; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 260px; max-width: 420px; padding: 12px 14px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border-left: 4px solid var(--info); animation: toast-in .3s var(--ease) both; position: relative; overflow: hidden; cursor: pointer; }
.toast.leaving { animation: toast-out .25s var(--ease) both; }
.toast .t-ic { width: 20px; height: 20px; flex: 0 0 20px; color: var(--info); }
.toast .t-ic svg { width: 20px; height: 20px; }
.toast .t-bd { font-size: 13px; line-height: 1.45; }
.toast .t-bd b { display: block; font-weight: 600; }
.toast .t-bd span { color: var(--text-3); font-size: 12.5px; }
.toast .bar { position: absolute; left: 0; bottom: 0; height: 2px; background: currentColor; opacity: .25; width: 100%; transform-origin: left; animation: toast-bar linear forwards; }
.toast.ok { border-left-color: var(--success); } .toast.ok .t-ic, .toast.ok .bar { color: var(--success); }
.toast.err { border-left-color: var(--danger); } .toast.err .t-ic, .toast.err .bar { color: var(--danger); }
.toast.warn { border-left-color: var(--warn); } .toast.warn .t-ic, .toast.warn .bar { color: var(--warn); }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px) } to { opacity: 1; transform: none } }
@keyframes toast-out { to { opacity: 0; transform: translateX(40px) } }
@keyframes toast-bar { from { transform: scaleX(1) } to { transform: scaleX(0) } }

/* ---------- Tabs / 空态 / 骨架 ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { position: relative; overflow: hidden; height: 38px; padding: 0 14px; border: 0; background: transparent; color: var(--text-2); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; transition: color .15s; }
.tab::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s var(--ease); }
.tab:hover { color: var(--text); }
.tab.on { color: var(--primary); font-weight: 600; }
.tab.on::after { transform: scaleX(1); }
.tab svg { width: 16px; height: 16px; flex: 0 0 16px; }
.tab .cnt { background: var(--danger); color: #fff; font-size: 11px; height: 16px; min-width: 16px; padding: 0 5px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; }
.empty { padding: 48px 16px; text-align: center; color: var(--muted); font-size: 13px; }
.empty .e-ic { width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%; background: #F3F4F6; display: flex; align-items: center; justify-content: center; color: #C4C8D0; }
.empty .e-ic svg { width: 24px; height: 24px; }
.sk { background: linear-gradient(90deg, #F1F3F7 25%, #E8EBF0 37%, #F1F3F7 63%); background-size: 400% 100%; animation: sk 1.4s ease infinite; border-radius: 6px; }
.sk.block { height: 16px; margin: 10px 0; }
.sk.block:nth-child(odd) { width: 70%; }
@keyframes sk { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }
.dd-menu { position: fixed; z-index: 1500; min-width: 150px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; animation: modal-in .15s var(--ease) both; }
.dd-menu .dd-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px; font-size: 13px; color: var(--text); text-align: left; }
.dd-menu .dd-item:hover { background: var(--bg); color: var(--primary); }
.dd-menu .dd-item.danger { color: var(--danger); }
.dd-menu .dd-item.danger:hover { background: var(--danger-soft); }
.dd-menu .dd-item svg { width: 15px; height: 15px; }
.dd-menu .dd-sep { height: 1px; background: var(--line-2); margin: 4px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; font-size: 13px; }
.kv > span:nth-child(odd) { color: var(--text-3); }
.kv > span:nth-child(even) { font-weight: 500; word-break: break-all; }
.desc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 20px; }
.desc-list .di { font-size: 13px; padding: 8px 0; border-bottom: 1px dashed var(--line-2); display: flex; justify-content: space-between; gap: 8px; }
.desc-list .di span:first-child { color: var(--text-3); }
.desc-list .di b { font-weight: 600; text-align: right; }
.alert { padding: 10px 14px; border-radius: 8px; font-size: 13px; line-height: 1.5; border: 1px solid transparent; }
.alert-warn { background: var(--warn-soft); color: #92400E; border-color: #FDE68A; }
.alert-err { background: var(--danger-soft); color: #991B1B; border-color: #FECACA; }
.alert-info { background: var(--info-soft); color: #075985; border-color: #BAE6FD; }
.alert-ok { background: var(--success-soft); color: #166534; border-color: #BBF7D0; }

/* ---- PART 2：页面专用 ---- */
.align-start { align-items: start; }
.icon-btn.sm { width: 26px; height: 26px; } .icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.danger { color: var(--danger); } .icon-btn.danger:hover { background: var(--danger-soft); }
.menu-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.menu-sub .menu-badge { margin-right: 2px; }
.thumb-img { width: 72px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line-2); background: #F3F4F6; display: block; }
.thumb-img.sq { width: 40px; height: 40px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; }
.chip b { font-size: 15px; }
.chip.ok b { color: var(--success); } .chip.err b { color: var(--danger); } .chip.brand b { color: var(--primary); }
.code-box { background: #0F172A; color: #E2E8F0; font-family: var(--mono); font-size: 12px; padding: 12px 14px; border-radius: 8px; overflow: auto; max-height: 300px; margin: 0; }
.pin-mark { display: inline-flex; color: var(--warn); margin-right: 4px; vertical-align: -2px; } .pin-mark svg { width: 14px; height: 14px; }

/* 仪表盘 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-card { display: flex; gap: 14px; padding: 18px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(17,24,39,.04); position: relative; overflow: hidden; transition: transform .2s var(--ease), box-shadow .2s; animation: pop-in .4s var(--ease) both; }
.stat-card:nth-child(2) { animation-delay: .06s } .stat-card:nth-child(3) { animation-delay: .12s } .stat-card:nth-child(4) { animation-delay: .18s }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--sc, var(--primary)); opacity: .06; }
.stat-ic { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--sc, var(--primary)); flex: 0 0 46px; box-shadow: 0 6px 14px rgba(17,24,39,.12); }
.stat-ic svg { width: 22px; height: 22px; }
.stat-bd { min-width: 0; flex: 1; }
.stat-bd .lbl { font-size: 13px; color: var(--text-3); }
.stat-bd .num { font-size: 26px; font-weight: 700; line-height: 1.25; margin: 2px 0 6px; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.stat-bd .subs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.stat-bd .subs i { font-style: normal; color: var(--muted); }
.c-blue { --sc: #2563EB } .c-green { --sc: #16A34A } .c-purple { --sc: #7C3AED } .c-amber { --sc: #D97706 } .c-red { --sc: #DC2626 }
.dash-row { display: grid; grid-template-columns: 1fr 340px; gap: 16px; margin-bottom: 16px; align-items: start; }
.dash-side { display: flex; flex-direction: column; gap: 16px; }
.todo-list { padding: 6px 10px; }
.todo-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.todo-item:hover { background: var(--bg); }
.todo-item + .todo-item { border-top: 1px solid var(--line-2); }
.todo-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex: 0 0 38px; }
.todo-ic svg { width: 18px; height: 18px; }
.todo-item .muted { font-size: 12px; }
.todo-num { font-size: 20px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.todo-item.hot .todo-num { color: var(--danger); }
.todo-item.hot .todo-ic { background: var(--danger-soft); color: var(--danger); }
.todo-item > svg { width: 16px; height: 16px; color: var(--muted); }
.eng-grid { display: flex; flex-direction: column; gap: 10px; }
.eng-kv { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.eng-kv > span:first-child { color: var(--text-3); }

/* 图表 */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart .tick { font-size: 11px; fill: var(--muted); }
.chart .line { }
.chart .dot { opacity: 0; animation: dot-in .3s var(--ease) forwards; }
.chart .bar { animation: bar-in .6s var(--ease) both; }
.chart .area { animation: fade-in .9s both; }
.chart-legend { display: flex; gap: 14px; height: 22px; align-items: center; font-size: 12px; color: var(--text-2); padding-left: 4px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; background: rgba(17,24,39,.92); color: #fff; font-size: 12px; padding: 8px 10px; border-radius: 8px; opacity: 0; transition: opacity .15s; white-space: nowrap; line-height: 1.6; }
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; margin-bottom: 2px; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
@keyframes chart-draw { to { stroke-dashoffset: 0 } }
@keyframes dot-in { to { opacity: 1 } }
@keyframes bar-in { from { transform: scaleY(0) } to { transform: scaleY(1) } }
.prog { position: relative; margin-top: 6px; min-width: 160px; }
.prog::before { content: ""; display: block; height: 8px; border-radius: 999px; background: #EEF0F4; }
.prog i { position: absolute; left: 0; top: 0; height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--primary-2), #A78BFA, var(--primary-2)); background-size: 200% 100%; animation: prog-flow 2s linear infinite; transition: width .6s var(--ease); box-shadow: 0 0 6px rgba(99,102,241,.5); }
.prog span { display: block; font-size: 11.5px; color: var(--text-3); margin-top: 4px; }
@keyframes prog-flow { to { background-position: -200% 0 } }
.round-cell { min-width: 200px; }

/* ---- SHOP PAGES：购物返利后台页面专用 ---- */
.card-head > svg { width: 18px; height: 18px; color: var(--primary); flex: 0 0 18px; margin-right: 8px; }
.card-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 20px 16px; border-top: 1px solid var(--line-2); }
.card.w420 { max-width: 460px; } .card.w800 { max-width: 860px; }
.settings-row { display: flex; gap: 16px; align-items: flex-start; }
.settings-row > .card:first-child { flex: 1; min-width: 0; }
.plain-card { box-shadow: none; border: 1px solid var(--line-2); padding: 14px 16px; }
.md { font-size: 13.5px; line-height: 1.75; }
.link-btn.danger, .btn-ghost.danger { color: var(--danger); }
/* 手机预览框 */
.phone-frame { width: 300px; margin: 0 auto; border: 8px solid #1F2333; border-radius: 28px; background: #F6F7FB; min-height: 420px; overflow: hidden; position: relative; box-shadow: 0 10px 30px rgba(17,24,39,.18); }
.phone-frame::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 110px; height: 18px; background: #1F2333; border-radius: 0 0 12px 12px; z-index: 2; }
.phone-frame.dark { background: rgba(31,35,51,.72); }
.about-preview { padding: 32px 14px 16px; }
.ap-head { font-size: 16px; font-weight: 700; text-align: center; margin-bottom: 12px; color: #1F2333; }
.ap-body { white-space: pre-wrap; font: 12.5px/1.7 var(--font); background: #fff; border-radius: 12px; padding: 12px; color: #1F2333; margin: 0; box-shadow: 0 6px 24px rgba(31,35,51,.06); max-height: 340px; overflow: auto; }
.popup-stage { padding: 60px 18px 20px; display: flex; flex-direction: column; align-items: center; gap: 10px; min-height: 400px; }
.popup-card { position: relative; width: 100%; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 16px 40px rgba(0,0,0,.3); animation: modal-in .4s var(--ease) both; }
.popup-card.off { opacity: .45; filter: grayscale(1); }
.popup-card img { display: block; width: 100%; aspect-ratio: 3/2; object-fit: cover; }
.popup-card .pc-body { padding: 14px 14px 8px; }
.popup-card .pc-body b { display: block; font-size: 16px; color: #1F2333; margin-bottom: 6px; }
.popup-card .pc-body pre { white-space: pre-wrap; font: 12.5px/1.6 var(--font); color: #5A5F73; margin: 0; max-height: 140px; overflow: auto; }
.popup-card .pc-btn { margin: 8px 14px 14px; height: 40px; border-radius: 12px; background: linear-gradient(90deg, #FF6B35, #FF3D71); color: #fff; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(255,61,113,.35); }
.popup-card .pc-close { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: flex; align-items: center; justify-content: center; }
.popup-card .pc-close svg { width: 14px; height: 14px; }
.popup-off { color: #fff; font-size: 12px; background: rgba(0,0,0,.4); padding: 4px 10px; border-radius: 999px; }
/* 视频 */
.video-pick .inp { flex: 1; }
.upload-prog { height: 4px; background: #EEF0F4; border-radius: 999px; margin-top: 8px; overflow: hidden; }
.upload-prog i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .4s; }
.video-preview { aspect-ratio: 16/9; background: #0F172A; border-radius: 10px; overflow: hidden; position: relative; display: flex; align-items: center; justify-content: center; }
.video-preview video, .video-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vp-empty { color: #64748B; font-size: 12.5px; text-align: center; } .vp-empty svg { width: 36px; height: 36px; display: block; margin: 0 auto 6px; }
.vp-err { position: absolute; inset: auto 0 0; background: rgba(239,68,68,.85); color: #fff; font-size: 12px; padding: 6px 10px; display: flex; gap: 6px; align-items: center; } .vp-err svg { width: 14px; height: 14px; }
/* 签到 */
.checkin-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.ck-day { background: var(--bg); border-radius: 10px; padding: 10px 8px; border: 1px solid var(--line-2); transition: all .15s; }
.ck-day:hover { border-color: var(--primary); background: var(--primary-soft); }
.ck-day:last-child { background: var(--warn-soft); border-color: #FDE68A; }
.ck-lbl { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 6px; } .ck-lbl b { font-weight: 600; }
.ck-day .inp-group input { height: 32px; font-size: 13px; padding: 0 8px; } .ck-day .inp-group .addon { padding: 0 6px; font-size: 12px; }
/* 手续费试算 / 收益预览 */
.fee-calc { display: grid; gap: 6px; }
.fc-item { display: flex; justify-content: space-between; font-size: 13px; padding: 8px 12px; background: var(--bg); border-radius: 8px; } .fc-item b { font-weight: 600; color: var(--primary-700); }
.earn-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: linear-gradient(135deg, #EEF2FF, #F5F3FF); border: 1px solid #E0E7FF; border-radius: 10px; padding: 12px 14px; }
.ep-item span { display: block; font-size: 12px; color: var(--text-3); } .ep-item b { font-size: 15px; font-variant-numeric: tabular-nums; }
.ep-note { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
/* 会员详情 */
.modal.drawer { width: 1100px; }
.md-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 14px; flex-wrap: wrap; }
.md-avatar { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(135deg, var(--primary-2), #A78BFA); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: 0 0 48px; }
.md-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; } .md-title b { font-size: 17px; }
.md-sub { font-size: 12.5px; color: var(--text-3); margin-top: 4px; }
.md-stats { display: flex; gap: 8px; flex-wrap: wrap; width: 100%; }
.md-stats > div { flex: 1; min-width: 120px; background: var(--bg); border-radius: 10px; padding: 10px 12px; }
.md-stats span { display: block; font-size: 12px; color: var(--text-3); } .md-stats b { font-size: 15px; font-variant-numeric: tabular-nums; }
.card-snap { line-height: 1.4; }
.rank { display: inline-flex; width: 24px; height: 24px; border-radius: 50%; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; background: #F3F4F6; color: var(--text-2); }
.rank.r1 { background: #FEF3C7; color: #B45309; } .rank.r2 { background: #E5E7EB; color: #374151; } .rank.r3 { background: #FFEDD5; color: #C2410C; }
/* 图片查看器 */
.viewer-box { display: flex; align-items: center; justify-content: center; min-height: 300px; max-height: 70vh; overflow: auto; background: #0F172A; border-radius: 10px; }
.viewer-img { max-width: 100%; max-height: 68vh; cursor: zoom-in; transition: transform .25s var(--ease); transform-origin: center; }
.pw-strength { display: flex; gap: 4px; margin: 4px 0 6px; } .pw-strength i { flex: 1; height: 4px; border-radius: 2px; background: #EEF0F4; transition: background .2s; }
.pw-strength.s1 i:nth-child(-n+1) { background: var(--danger); } .pw-strength.s2 i:nth-child(-n+2) { background: var(--warn); } .pw-strength.s3 i:nth-child(-n+3) { background: #22C55E; } .pw-strength.s4 i { background: var(--success); }
.prog.off i { background: #C4C8D0; animation: none; box-shadow: none; }
.alert { margin-bottom: 0; }
@media (max-width: 1100px) { .settings-row { flex-direction: column; } .settings-row > .card { width: 100% !important; flex: none !important; } .earn-preview { grid-template-columns: repeat(2, 1fr); } .checkin-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1280px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .content { padding: 16px; }
  
}
