/* ==========================================================================
   霖川码支付多商户版 - 现代化设计系统
   ========================================================================== */
:root {
    --primary: #4f46e5;
    --primary-dark: #4338ca;
    --primary-light: #818cf8;
    --primary-bg: #eef2ff;
    --success: #10b981;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-bg: #fffbeb;
    --info: #0ea5e9;
    --info-bg: #f0f9ff;
    --text: #1e293b;
    --text-2: #475569;
    --muted: #94a3b8;
    --border: #e2e8f0;
    --bg: #f4f6fb;
    --card: #ffffff;
    --sidebar: #0f172a;
    --sidebar-2: #1e293b;
    --sidebar-active: #4f46e5;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .05);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }

/* ---------------- 登录 / 门户 ---------------- */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: linear-gradient(135deg, #312e81 0%, #4338ca 45%, #6366f1 100%);
    position: relative;
    overflow: hidden;
}
.auth-wrap::before, .auth-wrap::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: .25;
}
.auth-wrap::before { width: 420px; height: 420px; background: #a5b4fc; top: -160px; right: -120px; }
.auth-wrap::after { width: 360px; height: 360px; background: #22d3ee; bottom: -150px; left: -110px; }

.auth-back {
    position: absolute;
    top: 26px;
    left: 30px;
    z-index: 5;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    letter-spacing: .3px;
}

.auth-back:hover { color: #fff; }

.auth-card {
    position: relative;    z-index: 2;
    width: 100%;
    max-width: 940px;
    background: rgba(255, 255, 255, .97);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    overflow: hidden;
    min-height: 560px;
}
.auth-aside {
    background: linear-gradient(160deg, #1e1b4b 0%, #4338ca 100%);
    color: #fff;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.auth-logo {
    display: flex; align-items: center; gap: 12px;
    font-size: 21px; font-weight: 700; letter-spacing: .5px;
}
.auth-logo .logo-badge {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.16);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
}
.auth-aside h2 { font-size: 27px; line-height: 1.4; margin: 26px 0 14px; font-weight: 700; }
.auth-aside p { color: rgba(255,255,255,.78); line-height: 1.9; font-size: 13.5px; }
.auth-feats { list-style: none; margin-top: 26px; }
.auth-feats li {
    display: flex; align-items: center; gap: 10px;
    color: rgba(255,255,255,.88); font-size: 13.5px; margin-bottom: 12px;
}
.auth-feats li i { color: #a5b4fc; font-style: normal; }
.auth-copy { color: rgba(255,255,255,.55); font-size: 12px; }

.auth-main { padding: 44px 46px; display: flex; flex-direction: column; justify-content: center; }
.auth-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 26px; }
.auth-tab {
    padding: 0 2px 12px; font-size: 16px; font-weight: 600; color: var(--muted);
    cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px;
    transition: all .2s; background: none; border-top: none; border-left: none; border-right: none;
}
.auth-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.auth-pane { display: none; }
.auth-pane.active { display: block; animation: fadeUp .35s ease; }

/* ---------------- 表单 ---------------- */
.form-group { margin-bottom: 17px; }
.form-label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 7px; font-weight: 500; }
.form-control {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    outline: none;
    font-family: inherit;
}
textarea.form-control { height: auto; padding: 11px 14px; resize: vertical; min-height: 78px; }
select.form-control { appearance: auto; }
.form-control:focus { border-color: var(--primary-light); box-shadow: 0 0 0 4px rgba(99,102,241,.12); }
.form-control::placeholder { color: #b6c0d1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-check { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); }
.input-group { position: relative; }
.input-group .input-suffix {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    font-size: 12px; color: var(--primary); cursor: pointer; background: none; border: 0;
    font-family: inherit; white-space: nowrap;
}

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 18px;
    border: 1.5px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 500; font-family: inherit;
    cursor: pointer; transition: all .18s; white-space: nowrap;
    background: #f1f5f9; color: var(--text-2);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #059669; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------------- 后台布局 ---------------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
    width: 232px; flex-shrink: 0;
    background: var(--sidebar);
    display: flex; flex-direction: column;
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 50;
    transition: transform .25s;
}
.sidebar-brand {
    height: 64px; display: flex; align-items: center; gap: 11px;
    padding: 0 22px; color: #fff; font-size: 17px; font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-brand .logo-badge {
    width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.sidebar-nav { flex: 1; overflow-y: auto; padding: 14px 12px; }
.nav-group-title {
    font-size: 11px; color: #64748b; letter-spacing: 1.5px;
    padding: 14px 12px 7px; text-transform: uppercase;
}
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 13px; margin-bottom: 3px;
    border-radius: 9px;
    color: #cbd5e1; font-size: 14px; cursor: pointer;
    transition: all .18s; user-select: none;
}
.nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-item.active {
    background: linear-gradient(90deg, var(--primary), #6366f1);
    color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.35);
}
.nav-item .ico { width: 19px; text-align: center; font-size: 16px; }
.sidebar-foot { padding: 14px 20px; border-top: 1px solid rgba(255,255,255,.07); }
.sidebar-foot a { color: #94a3b8; font-size: 12.5px; display: block; padding: 5px 0; }
.sidebar-foot a:hover { color: #fff; }

.main { flex: 1; margin-left: 232px; min-width: 0; display: flex; flex-direction: column; }
.topbar {
    height: 64px; background: #fff;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 26px; position: sticky; top: 0; z-index: 40;
    border-bottom: 1px solid var(--border);
}
.page-title { font-size: 17px; font-weight: 650; }
.topbar-user { display: flex; align-items: center; gap: 13px; }
.avatar {
    width: 37px; height: 37px; border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 600;
}
.user-meta { line-height: 1.25; }
.user-meta .uname { font-size: 13.5px; font-weight: 600; }
.user-meta .urole { font-size: 11.5px; color: var(--muted); }
.menu-toggle { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--text); }

.content { padding: 26px; flex: 1; }

/* ---------------- 卡片 / 统计 ---------------- */
.card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 22px; margin-bottom: 20px;
}
.card-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px; gap: 10px; flex-wrap: wrap;
}
.card-title { font-size: 15.5px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.card-title::before {
    content: ""; width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, #6366f1, #4338ca);
}

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 20px; }
.stat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid.cols-6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stat {
    background: #fff; border-radius: var(--radius); padding: 20px;
    box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.stat::after {
    content: ""; position: absolute; right: -24px; top: -24px;
    width: 88px; height: 88px; border-radius: 50%;
    background: var(--primary-bg); opacity: .7;
}
.stat .s-label { color: var(--muted); font-size: 13px; margin-bottom: 9px; position: relative; z-index: 1; }
.stat .s-value { font-size: 26px; font-weight: 700; letter-spacing: .3px; position: relative; z-index: 1; }
.stat .s-sub { font-size: 12px; color: var(--muted); margin-top: 7px; position: relative; z-index: 1; }
.stat .s-ico {
    position: absolute; right: 16px; bottom: 14px; font-size: 27px; z-index: 1; opacity: .85;
}
.stat.t-indigo::after { background: #eef2ff; } .stat.t-indigo .s-ico { color: #6366f1; }
.stat.t-green::after { background: var(--success-bg); } .stat.t-green .s-ico { color: var(--success); }
.stat.t-orange::after { background: var(--warning-bg); } .stat.t-orange .s-ico { color: var(--warning); }
.stat.t-red::after { background: var(--danger-bg); } .stat.t-red .s-ico { color: var(--danger); }
.stat.t-cyan::after { background: var(--info-bg); } .stat.t-cyan .s-ico { color: var(--info); }
.stat.t-slate::after { background: #f1f5f9; } .stat.t-slate .s-ico { color: #64748b; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th {
    text-align: left; background: #f8fafc; color: var(--text-2);
    font-weight: 600; padding: 12px 14px; white-space: nowrap;
    border-bottom: 1px solid var(--border);
}
table.data td { padding: 12.5px 14px; border-bottom: 1px solid #f1f5f9; color: var(--text-2); }
table.data tr:hover td { background: #fafbff; }
table.data .strong { color: var(--text); font-weight: 600; }
.t-actions { display: flex; gap: 7px; flex-wrap: wrap; }

/* ---------------- 徽章 ---------------- */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 500;
}
.badge-success { background: var(--success-bg); color: #059669; }
.badge-danger { background: var(--danger-bg); color: #dc2626; }
.badge-warning { background: var(--warning-bg); color: #d97706; }
.badge-info { background: var(--info-bg); color: #0284c7; }
.badge-slate { background: #f1f5f9; color: #475569; }
.badge-primary { background: var(--primary-bg); color: var(--primary-dark); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------------- 工具条 / 筛选 ---------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 17px; }
.toolbar .form-control { width: auto; height: 36px; min-width: 130px; display: inline-block; }
.toolbar input[type=text].form-control,
.toolbar input[type=search].form-control { min-width: 190px; }
.spacer { flex: 1; }

/* ---------------- 分页 ---------------- */
.pager { display: flex; align-items: center; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.pager .pg-info { color: var(--muted); font-size: 12.5px; margin-right: 8px; }
.pager button { min-width: 34px; }
.pager .cur { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------------- 弹窗 / 提示 ---------------- */
.modal-mask {
    position: fixed; inset: 0; background: rgba(15,23,42,.48);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 20px; backdrop-filter: blur(2px);
}
.modal-mask.show { display: flex; animation: fadeIn .2s; }
.modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
    max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg);
    animation: fadeUp .25s ease;
}
.modal.wide { max-width: 720px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 19px 24px; border-bottom: 1px solid var(--border);
}
.modal-title { font-size: 16px; font-weight: 650; }
.modal-close { background: none; border: 0; font-size: 22px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 22px 24px; }
.modal-footer { padding: 15px 24px 20px; display: flex; justify-content: flex-end; gap: 10px; }

#toastBox {
    position: fixed; top: 22px; left: 50%; transform: translateX(-50%);
    z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center;
}
.toast {
    background: #1e293b; color: #fff; padding: 11px 20px; border-radius: 10px;
    font-size: 13.5px; box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 8px;
    animation: fadeUp .25s ease;
}
.toast.success { background: #059669; }
.toast.error { background: #dc2626; }
.toast.warning { background: #d97706; }

/* ---------------- 描述列表 ---------------- */
.desc-list { display: grid; grid-template-columns: 110px 1fr; row-gap: 13px; column-gap: 16px; font-size: 13.5px; }
.desc-list dt { color: var(--muted); }
.desc-list dd { color: var(--text); word-break: break-all; }

/* ---------------- 趋势图（纯CSS柱图） ---------------- */
.chart { display: flex; align-items: flex-end; gap: 14px; height: 210px; padding-top: 10px; }
.chart .bar-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.chart .bar {
    width: 100%; max-width: 34px; border-radius: 7px 7px 0 0;
    background: linear-gradient(180deg, #818cf8, #4f46e5);
    min-height: 3px; position: relative; transition: all .3s;
}
.chart .bar:hover { background: linear-gradient(180deg, #6366f1, #3730a3); }
.chart .bar-val { position: absolute; top: -21px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--text-2); white-space: nowrap; }
.chart .bar-label { font-size: 12px; color: var(--muted); }
.chart-legend { display: flex; gap: 18px; font-size: 12.5px; color: var(--muted); margin-top: 12px; justify-content: flex-end; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }

/* ---------------- 收款码管理 ---------------- */
.qr-preview {
    width: 168px; height: 168px; border: 1.5px dashed var(--border);
    border-radius: 12px; display: flex; align-items: center; justify-content: center;
    overflow: hidden; background: #f8fafc; color: var(--muted); font-size: 12.5px;
    flex-direction: column; gap: 6px;
}
.qr-preview img { width: 100%; height: 100%; object-fit: contain; }
.tabs { display: flex; gap: 6px; background: #f1f5f9; padding: 4px; border-radius: 10px; width: fit-content; margin-bottom: 18px; }
.tab-btn { border: 0; background: transparent; padding: 8px 20px; border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--text-2); font-family: inherit; }
.tab-btn.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 2px 6px rgba(15,23,42,.08); }

/* ---------------- 状态指示 ---------------- */
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--text-2); }
.status-pill .pdot { width: 9px; height: 9px; border-radius: 50%; }
.pdot.online { background: var(--success); box-shadow: 0 0 0 4px var(--success-bg); }
.pdot.offline { background: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.pdot.idle { background: var(--warning); box-shadow: 0 0 0 4px var(--warning-bg); }

/* ---------------- 支付收银台 ---------------- */
.cashier-wrap {
    min-height: 100vh;
    background: linear-gradient(180deg, #eef2ff 0%, #f4f6fb 320px);
    display: flex; flex-direction: column;
}
.cashier-nav {
    height: 64px; background: #fff; display: flex; align-items: center;
    padding: 0 28px; gap: 11px; border-bottom: 1px solid var(--border);
}
.cashier-nav .logo-badge {
    width: 34px; height: 34px; border-radius: 9px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.cashier-nav .brand { font-weight: 700; font-size: 16px; }
.cashier-nav .paytag { margin-left: auto; font-size: 12.5px; color: var(--muted); }
.cashier-box { flex: 1; display: flex; align-items: center; justify-content: center; padding: 36px 20px; }
.cashier-card {
    background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg);
    width: 100%; max-width: 460px; padding: 38px 40px 32px; text-align: center;
}
.pay-badge {
    width: 54px; height: 54px; border-radius: 15px; margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
    font-size: 27px; color: #fff;
}
.pay-badge.wechat { background: linear-gradient(135deg, #22c55e, #16a34a); }
.pay-badge.alipay { background: linear-gradient(135deg, #38bdf8, #0284c7); }
.cashier-card h1 { font-size: 19px; margin-bottom: 4px; }
.pay-merchant { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.pay-amount { font-size: 40px; font-weight: 750; color: var(--text); margin: 6px 0 20px; }
.pay-amount small { font-size: 17px; font-weight: 600; margin-right: 2px; }
.pay-qr {
    width: 224px; height: 224px; margin: 0 auto 16px;
    padding: 11px; border: 1.5px solid var(--border); border-radius: 16px;
    position: relative;
}
.pay-qr img { width: 100%; height: 100%; display: block; }
.pay-qr .scan-ico {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 44px; height: 44px; border-radius: 11px; background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 23px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.pay-tip { color: var(--text-2); font-size: 13.5px; line-height: 1.8; }
.pay-warn {
    background: var(--warning-bg); color: #b45309; border-radius: 10px;
    padding: 9px 13px; font-size: 12.5px; margin: 12px auto 0; max-width: 280px;
}
.countdown { display: flex; justify-content: center; gap: 7px; margin: 16px 0 4px; }
.countdown span {
    background: #1e293b; color: #fff; border-radius: 7px;
    min-width: 42px; padding: 7px 8px; font-size: 15px; font-weight: 600;
}
.countdown em { font-style: normal; color: var(--muted); align-self: center; }
.pay-detail { margin-top: 18px; border-top: 1px dashed var(--border); padding-top: 14px; text-align: left; }
.pay-detail summary { cursor: pointer; color: var(--muted); font-size: 13px; text-align: center; list-style: none; }
.pay-detail .desc-list { margin-top: 14px; grid-template-columns: 96px 1fr; }
.cashier-foot { text-align: center; color: var(--muted); font-size: 12px; padding-bottom: 26px; }
.pay-expired { padding: 20px 0; }
.pay-expired .big-ico { font-size: 52px; margin-bottom: 12px; }
.pay-success-overlay {
    position: fixed; inset: 0; background: rgba(255,255,255,.96);
    display: none; flex-direction: column; align-items: center; justify-content: center;
    z-index: 90; gap: 14px;
}
.pay-success-overlay.show { display: flex; animation: fadeIn .25s; }
.pay-success-overlay .ok-ico {
    width: 86px; height: 86px; border-radius: 50%;
    background: var(--success); color: #fff; font-size: 44px;
    display: flex; align-items: center; justify-content: center;
}
.pay-success-overlay h2 { font-size: 21px; }
.pay-success-overlay p { color: var(--muted); font-size: 13.5px; }

/* ---------------- 杂项 ---------------- */
.empty {
    text-align: center; padding: 54px 20px; color: var(--muted); font-size: 13.5px;
}
.empty .e-ico { font-size: 40px; display: block; margin-bottom: 10px; opacity: .55; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }
.copy-btn { cursor: pointer; }
.hr-dashed { border: 0; border-top: 1px dashed var(--border); margin: 16px 0; }
.text-muted { color: var(--muted); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.flex { display: flex; } .items-center { align-items: center; } .gap-2 { gap: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid.cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 860px) {
    .auth-card { grid-template-columns: 1fr; max-width: 460px; }
    .auth-aside { display: none; }
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .main { margin-left: 0; }
    .menu-toggle { display: block; }
    .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .content { padding: 16px; }
    .stat-grid, .stat-grid.cols-3, .stat-grid.cols-6 { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat .s-value { font-size: 21px; }
    .topbar { padding: 0 16px; }
    .auth-main { padding: 32px 24px; }
    .form-row { grid-template-columns: 1fr; }
    .cashier-card { padding: 30px 22px 26px; }
}
