:root{
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#111827;
    --muted: #8aa9e8;
    --primary:#2563eb;
    --success:#16a34a;
    --danger:#ef4444;
    --border:#e5e7eb;
}

*{box-sizing:border-box;}
body{
    margin:0;
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto;
    background:var(--bg);
}

/* ===== 布局 ===== */
.container{
    max-width:1200px;
    margin:0 auto;
    padding:24px 16px;
}

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.title{font-size:22px;font-weight:700;}
.brand{font-size:12px;color:var(--muted);}

/* ===== 搜索 ===== */
.search-box{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    margin-bottom:16px;
}

input,select{
    flex:1;
    min-width:160px;
    padding:10px;
    border:1px solid var(--border);
    border-radius:8px;
}

button{
    border:none;
    padding:10px 14px;
    border-radius:8px;
    cursor:pointer;
    font-weight:500;
}

.btn-primary{background:var(--primary);color:#fff;}
.btn-success{background:var(--success);color:#fff;}
.btn-danger{background:var(--danger);color:#fff;}
.btn-light{background:#fff;border:1px solid var(--border);}

/* ===== 表格 ===== */
table{
    width:100%;
    background:#fff;
    border-radius:10px;
    overflow:hidden;
    border-collapse:collapse;
}

th,td{
    padding:12px;
    border-bottom:1px solid var(--border);
    font-size:14px;
}

th{background:#f3f4f6;}

/* ===== 卡片模式 ===== */
.card-list{display:none;}

.card{
    background:#fff;
    border-radius:10px;
    padding:14px;
    margin-bottom:12px;
    border:1px solid var(--border);
}

.card-item{
    display:flex;
    justify-content:space-between;
    font-size:13px;
    padding:4px 0;
}

.label{color:var(--muted);}

.actions{
    margin-top:10px;
    display:flex;
    gap:8px;
}

/* ===== 弹窗 ===== */
.modal{
    display:none;
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    justify-content:center;
    align-items:center;
    z-index: 999;
}

.modal-content{
    width:420px;
    max-width:92%;
    background:#fff;
    padding:18px;
    border-radius:12px;
}

.modal-content input,
.modal-content select{
    width:100%;
    margin-bottom:10px;
}

/* 收益推送专用弹窗 */
#mockModal .modal-content {
    width: 380px;
}

/* ===== 二维码 ===== */
.qrcode-group{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.qrcode-card{
    width:180px;
    background:#fff;
    border:1px solid var(--border);
    border-radius:12px;
    padding:14px;
    text-align:center;
    box-shadow:0 2px 8px rgba(0,0,0,0.04);
}

.qrcode-card img{
    width:140px;
    height:140px;
    border-radius:10px;
}

.qrcode-title{
    margin-top:10px;
    font-size:13px;
    font-weight:600;
}

.qrcode-sub{
    font-size:12px;
    color:var(--muted);
}

/* ===== footer ===== */
.footer{
    text-align:center;
    margin-top:30px;
    font-size:12px;
    color:var(--muted);
}

/* ===== 移动端 ===== */
@media (max-width:768px){

    table{display:none;}
    .card-list{display:block;}

    .search-box{flex-direction:column;}

    .modal-content{
        width:100%;
        height:100%;
        border-radius:0;
    }

    .qrcode-card{
        width:100%;
        max-width:260px;
    }
}