/* 戎汇联盟 综合运营后台 样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: #f0f2f5; color: #1f2329; font-size: 14px; }

/* 布局 */
.layout { display: flex; min-height: 100vh; }
.sidebar { width: 232px; background: #1f2a44; color: #c7cfe0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; }
.sidebar .brand { padding: 20px 18px; border-bottom: 1px solid #2c3a5a; }
.sidebar .brand .t { color: #fff; font-size: 18px; font-weight: 700; }
.sidebar .brand .s { color: #8a97b5; font-size: 12px; margin-top: 4px; }
.nav-group { padding: 10px 0; }
.nav-group .gtitle { padding: 8px 20px; font-size: 12px; color: #6b78a0; letter-spacing: .5px; }
.nav-item { padding: 11px 20px 11px 22px; cursor: pointer; font-size: 14px; border-left: 3px solid transparent; display: flex; align-items: center; gap: 8px; }
.nav-item:hover { background: #28365a; color: #fff; }
.nav-item.active { background: #28365a; color: #ffb300; border-left-color: #ff8f00; font-weight: 600; }
.nav-item .ico { font-size: 15px; }

.main { margin-left: 232px; flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #e8e8e8; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 10; }
.topbar .page-title { font-size: 16px; font-weight: 600; }
.topbar .right { display: flex; align-items: center; gap: 14px; }
.topbar .user { font-size: 13px; color: #555; }
.topbar .logout { font-size: 13px; color: #ff5252; cursor: pointer; }

.content { padding: 22px 24px; }
.section { display: none; }
.section.active { display: block; }

/* 卡片 */
.card { background: #fff; border-radius: 10px; padding: 18px 20px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 18px; }
.card h3 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }

/* 概览统计 */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.stat .label { color: #888; font-size: 13px; }
.stat .num { font-size: 26px; font-weight: 700; margin-top: 8px; color: #1f2a44; }
.stat .num small { font-size: 13px; color: #aaa; font-weight: 400; }
.stat.orange .num { color: #ff8f00; }
.stat.green .num { color: #2e9e5b; }
.stat.blue .num { color: #2f6fed; }
.stat.red .num { color: #e53935; }

/* 表格 */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; }
.table th { background: #fafafa; color: #666; font-weight: 600; white-space: nowrap; }
.table tr:hover td { background: #fcfcfd; }
.table td .sub { color: #999; font-size: 12px; }

/* 标签 */
.tag { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; }
.tag.green { background: #e6f7ec; color: #2e9e5b; }
.tag.red { background: #fdecea; color: #e53935; }
.tag.orange { background: #fff3e0; color: #f57c00; }
.tag.blue { background: #e7f0ff; color: #2f6fed; }
.tag.gray { background: #f0f0f0; color: #888; }
.tag.purple { background: #f0e9ff; color: #7c4dff; }

/* 按钮 */
.btn { display: inline-block; padding: 7px 14px; border-radius: 7px; border: 1px solid #d9d9d9; background: #fff; color: #333; cursor: pointer; font-size: 13px; }
.btn:hover { border-color: #ff8f00; color: #ff8f00; }
.btn.primary { background: #ff8f00; color: #fff; border-color: #ff8f00; }
.btn.primary:hover { background: #f57c00; color: #fff; }
.btn.sm { padding: 4px 10px; font-size: 12px; }
.btn.danger { color: #e53935; border-color: #ffcdd2; }
.btn.danger:hover { background: #e53935; color: #fff; border-color: #e53935; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* 工具条 */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar input, .toolbar select { height: 34px; border: 1px solid #d9d9d9; border-radius: 7px; padding: 0 10px; font-size: 13px; outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: #ff8f00; }

/* 表单 */
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-row .item { flex: 1; min-width: 200px; }
.form-row label { display: block; font-size: 13px; color: #555; margin-bottom: 6px; }
.form-row input, .form-row select, .form-row textarea { width: 100%; border: 1px solid #d9d9d9; border-radius: 7px; padding: 8px 10px; font-size: 13px; outline: none; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { border-color: #ff8f00; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; align-items: center; justify-content: center; z-index: 100; }
.modal-mask.show { display: flex; }
.modal { background: #fff; border-radius: 12px; width: 520px; max-width: 92%; max-height: 86vh; overflow-y: auto; }
.modal .m-head { padding: 16px 20px; border-bottom: 1px solid #eee; font-size: 16px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.modal .m-head .x { cursor: pointer; color: #999; font-size: 20px; }
.modal .m-body { padding: 20px; }
.modal .m-foot { padding: 14px 20px; border-top: 1px solid #eee; display: flex; justify-content: flex-end; gap: 10px; }

/* 分页条 */
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 16px; }
.pager .pinfo { color: #888; font-size: 13px; }

/* 其它 */
.empty { text-align: center; color: #aaa; padding: 40px; }
.loading { text-align: center; color: #999; padding: 30px; }
.muted { color: #999; font-size: 12px; }
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }
.gap { gap: 10px; }
.pill { background: #fff3e0; color: #f57c00; padding: 2px 8px; border-radius: 8px; font-size: 12px; }

/* 线上交易佣金分配规则 */
.otr-group { border: 1px solid #eef0f4; border-radius: 8px; padding: 6px 16px; margin-bottom: 16px; background: #fafbfc; }
.otr-gtitle { font-size: 13px; font-weight: 600; color: #1f2a44; padding: 10px 0 6px; border-bottom: 1px dashed #e0e4ec; margin-bottom: 4px; }
.otr-row { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid #f0f2f6; }
.otr-row:last-child { border-bottom: none; }
.otr-label { width: 200px; font-size: 14px; color: #333; flex-shrink: 0; }
.otr-hint { font-size: 12px; color: #aaa; margin-top: 3px; font-weight: 400; }
.otr-rate { display: flex; align-items: center; gap: 4px; flex: 1; }
.otr-rate input { width: 90px; padding: 7px 10px; border: 1px solid #ddd; border-radius: 5px; font-size: 14px; }
.otr-rate span { color: #666; font-size: 13px; }
.otr-switch { width: 110px; flex-shrink: 0; }
.otr-switch label { font-size: 13px; color: #555; cursor: pointer; display: flex; align-items: center; gap: 5px; }
.otr-switch input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; }
.otr-total { background: #fff8e1; border: 1px solid #ffe082; border-radius: 6px; padding: 12px 16px; margin: 16px 0; font-size: 14px; color: #5d4037; }
.otr-total b { color: #e65100; font-size: 17px; }
.otr-example { background: #e3f2fd; border: 1px solid #90caf9; border-radius: 6px; padding: 10px 14px; margin: 0 0 16px; font-size: 13px; color: #1565c0; line-height: 1.6; }

/* 联盟首页配置 - 热门搜索词标签 */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.tag-item { display: inline-flex; align-items: center; gap: 4px; background: #f5f6fa; border: 1px solid #e6e8ef; border-radius: 16px; padding: 3px 6px 3px 10px; }
.tag-item .mini { border: none; background: transparent; padding: 2px 4px; }
.tag-item .btn.sm.danger { padding: 0 6px; border-radius: 50%; line-height: 1.4; }
.home-cfg .card h3 { display: flex; align-items: center; }

/* 商户图片上传预览 */
.img-preview-box { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; min-height: 0; }
.img-thumb { position: relative; width: 100px; height: 100px; border-radius: 8px; overflow: hidden; border: 1px solid #e6e8ef; background: #f5f6fa; }
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .mask { position: absolute; top: 0; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,0.45); color: #fff; font-size: 12px; }
.img-thumb .btn.sm.danger { position: absolute; bottom: 4px; right: 4px; padding: 2px 6px; font-size: 12px; border-radius: 4px; }
.img-thumb.uploading img { opacity: 0.6; }

/* 同城圈列表缩略图与图片预览 */
.img-thumb.sm { width: 64px; height: 64px; cursor: pointer; position: relative; }
.img-thumb.sm .img-count { position: absolute; right: 2px; bottom: 2px; background: rgba(0,0,0,0.6); color: #fff; font-size: 11px; padding: 1px 5px; border-radius: 4px; line-height: 1.4; }
.modal.wide { width: 760px; max-width: 94%; }
.image-viewer { text-align: center; }
.image-viewer img#viewerImg { max-width: 100%; max-height: 60vh; }
.viewer-counter { margin-top: 10px; color: #888; font-size: 13px; }
.viewer-thumbs { display: flex; gap: 8px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.viewer-thumb { width: 52px; height: 52px; border-radius: 6px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: #f5f6fa; }
.viewer-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
<omitted>
