* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", Segoe UI, Roboto, sans-serif; background: #f5f6fa; color: #222; }

.admin { display: flex; min-height: 100vh; }
.side { width: 232px; background: #eef1f6; color: #1f2330; flex-shrink: 0; border-right: 1px solid #e3e6ec; }
.side .logo { padding: 18px 20px; font-size: 16px; font-weight: 700; color: #1f2330; border-bottom: 1px solid #e3e6ec; letter-spacing: .5px; }
.side .nav-groups { display: flex; flex-direction: column; gap: 10px; padding: 12px 10px 20px; }

/* 仪表盘（顶部独立卡片链接） */
.side .nav-home {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 10px;
    background: #fff; color: #1f2330;
    text-decoration: none; font-size: 14px; font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.side .nav-home .ic { font-size: 16px; }
.side .nav-home:hover { color: #ff2e63; }
.side .nav-home.active {
    background: #ff2e63; color: #fff;
    box-shadow: 0 2px 8px rgba(255,46,99,0.28);
}

/* 分组卡片 */
.nav-group {
    background: #fff; border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: box-shadow .15s;
}
.nav-group.is-active {
    box-shadow: 0 0 0 2px rgba(255,46,99,0.14), 0 1px 3px rgba(0,0,0,0.05);
}
.nav-group__head {
    display: flex; align-items: center; gap: 8px;
    width: 100%; padding: 11px 14px;
    background: transparent; border: 0; cursor: pointer;
    font: inherit; color: #1f2330; text-align: left;
    border-radius: 0;
}
.nav-group__head:hover { background: #f8f9fc; }
.nav-group__icon { font-size: 16px; line-height: 1; }
.nav-group__title { flex: 1; font-weight: 700; font-size: 14px; }
.nav-group__caret {
    font-size: 12px; color: #8a8f99;
    transition: transform .2s ease;
    transform-origin: center;
    display: inline-block;
}
.nav-group.is-collapsed .nav-group__caret { transform: rotate(-90deg); }
.nav-group.is-collapsed .nav-group__body { display: none; }
.nav-group.is-active .nav-group__title { color: #ff2e63; }

/* 分组内的胶囊链接（默认纯文字、悬停浅底、激活实心粉胶囊） */
.nav-group__body {
    display: flex; flex-wrap: wrap; gap: 4px;
    padding: 4px 10px 12px;
}
.nav-group__body a {
    display: inline-block; padding: 6px 12px;
    border-radius: 999px; color: #555;
    text-decoration: none; font-size: 13px; line-height: 1.4;
    transition: background .15s, color .15s, box-shadow .15s;
}
.nav-group__body a:hover { background: #f0f2f7; color: #1f2330; }
.nav-group__body a.active {
    background: #ff2e63; color: #fff; font-weight: 600;
    box-shadow: 0 2px 6px rgba(255,46,99,0.25);
}

.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 56px; background: #fff; border-bottom: 1px solid #eaecef; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; }
.topbar .path { font-weight: 600; }
.topbar .user { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.topbar .logout { color: #ff2e63; text-decoration: none; }
.topbar .logout:hover { text-decoration: underline; }

.content { padding: 22px; overflow: auto; }

.page { max-width: 1200px; }
.pg-title { font-size: 20px; margin: 0 0 16px; }
.pg-sub { margin: -8px 0 16px; color: #8a8f99; font-size: 13px; line-height: 1.6; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab { padding: 7px 18px; border: 1px solid #e3e3e8; background: #fff; border-radius: 18px; cursor: pointer; font-size: 13px; color: #555; transition: all .15s; }
.tab:hover { border-color: #ffb3c6; color: #ff2e63; }
.tab.active { background: #ff2e63; border-color: #ff2e63; color: #fff; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; align-items: center; }
.inp, .sel { height: 34px; border: 1px solid #d9dde3; border-radius: 6px; padding: 0 10px; font-size: 14px; background: #fff; }
.inp { min-width: 200px; }
.inp.area { height: auto; min-height: 66px; resize: vertical; padding: 8px 10px; line-height: 1.5; font-family: inherit; }
.btn, .btn-sm { border: none; border-radius: 6px; cursor: pointer; background: #ff2e63; color: #fff; font-size: 14px; padding: 0 16px; height: 34px; }
.btn.primary { background: #2e7bff; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; background: #ff2e63; }
.btn-sm.danger { background: #ff4d4f; }
.btn-sm.primary { background: #2e7bff; }
.btn-sm.ok { background: #1a9a4e; }
.btn-sm:hover, .btn:hover { opacity: .9; }
.btn-sm:disabled { background: #c5c9d1; cursor: not-allowed; }

.grid { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.grid th, .grid td { padding: 11px 12px; text-align: left; font-size: 13px; border-bottom: 1px solid #f0f1f4; }
.grid th { background: #fafbfc; color: #6b7280; font-weight: 600; }
.grid tbody tr:hover { background: #fcfcfd; }
.grid .ops { white-space: nowrap; display: flex; gap: 6px; }
.cell-content { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 用户列表：昵称悬停提示触发 */
.tt-trg { cursor: help; border-bottom: 1px dotted #b6bcc6; }
/* 昵称悬停气泡（固定定位，避开表格 overflow:hidden 裁剪） */
.tt-fixed {
    position: fixed; z-index: 1000; min-width: 212px;
    background: #1f2330; color: #fff; border-radius: 10px;
    padding: 10px 12px; box-shadow: 0 12px 32px rgba(0,0,0,.3);
    font-size: 12px; pointer-events: none; line-height: 1.5;
}
.tt-fixed .tt-hd { font-weight: 700; font-size: 13px; margin-bottom: 6px; color: #fff; }
.tt-fixed .tt-id { color: #8b93a3; font-weight: 400; font-size: 11px; margin-left: 4px; }
.tt-fixed .tt-row { display: flex; justify-content: space-between; gap: 18px; padding: 3px 0; }
.tt-fixed .tt-row span { color: #aab2c0; }
.tt-fixed .tt-row b { font-weight: 600; }
.tt-fixed .tt-row b.on { color: #4ade80; }
.tt-fixed .tt-row b.off { color: #f87171; }
.tt-fixed .tt-row b.coin { color: #ffd166; }

.tag-green, .tag-red, .tag-amber, .tag-blue, .tag-gray { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; }
.tag-green { background: #e6f7ec; color: #1a9a4e; }
.tag-red { background: #fdeaea; color: #d93636; }
.tag-amber { background: #fff4e0; color: #d98a00; }

/* 订单类型标签（陪玩 / 求助）与双方确认状态 */
.tag-mini { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.tag-mini.tag-companion { background: #ffeaf0; color: #ff2e63; }
.tag-mini.tag-help { background: #eaf2ff; color: #2e7bff; }
.confirm-cell { display: flex; gap: 8px; white-space: nowrap; }
.confirm-cell .ok { color: #1a9a4e; }
.confirm-cell .no { color: #b8bcc4; }
.content-cell { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 投诉证据缩略图 */
.evi { display: flex; align-items: center; gap: 6px; }
.evi-thumb { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; border: 1px solid #eee; }
.evi-more { font-size: 12px; color: #8a8f99; }
.evi-all { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.evi-big { width: 150px; height: 150px; border-radius: 8px; object-fit: cover; border: 1px solid #eee; }

/* 投诉详情弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 1000; }
.modal { width: 520px; max-width: 92vw; max-height: 86vh; overflow: auto; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.2); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #f0f1f4; font-weight: 700; }
.modal-close { border: 0; background: none; font-size: 22px; cursor: pointer; color: #8a8f99; }
.modal-body { padding: 16px 18px; }
.kv { display: flex; gap: 10px; font-size: 14px; padding: 7px 0; border-bottom: 1px dashed #f0f1f4; }
.kv span { width: 84px; color: #8a8f99; flex: none; }
.kv b { font-weight: 600; color: #1f2330; }

.settle-summary { display: flex; gap: 14px; margin: 14px 0 4px; }
.settle-card { flex: 1; display: flex; align-items: baseline; gap: 10px; padding: 14px 18px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.settle-card.pending { border-left: 4px solid #ff2e63; }
.settle-card.settled { border-left: 4px solid #2e7bff; }
.settle-num { font-size: 26px; font-weight: 800; color: #1f2330; line-height: 1; }
.settle-label { font-size: 13px; color: #6b7280; }
.settle-amt { margin-left: auto; font-size: 18px; font-weight: 700; color: #1a9a4e; }
.settled-amt { color: #2e7bff; }

/* 按陪玩师分组的结算单 */
.pg-sub { margin: 6px 0 14px; color: #8a8f99; font-size: 13px; }
.settle-groups { display: flex; flex-direction: column; gap: 16px; }
.settle-group { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.06); overflow: hidden; }
.settle-group__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid #f0f1f4; gap: 12px; }
.settle-group__info { display: flex; flex-direction: column; gap: 4px; }
.settle-group__name { font-size: 16px; font-weight: 700; color: #1f2330; }
.settle-group__meta { font-size: 12px; color: #8a8f99; }
.settle-group__right { display: flex; align-items: center; gap: 14px; }
.settle-group__total { font-size: 16px; font-weight: 700; color: #ff2e63; }
.settle-tbl { width: 100%; border-collapse: collapse; }
.settle-tbl th { text-align: left; font-size: 12px; color: #8a8f99; font-weight: 500; padding: 8px 18px; background: #fafbfc; }
.settle-tbl td { padding: 10px 18px; border-top: 1px solid #f5f6f8; font-size: 13px; color: #3a3f4b; }
.empty { padding: 40px; text-align: center; color: #8a8f99; background: #fff; border-radius: 12px; }
.tag-blue { background: #e8f0ff; color: #2e7bff; }
.tag-pink { background: #ffe6ee; color: #ff2e63; }
.tag-gray { background: #f0f1f4; color: #8a8f99; }

.cards { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.stat { background: #fff; border-radius: 10px; padding: 18px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.stat .num { font-size: 24px; font-weight: 700; color: #ff2e63; }
.stat .lbl { margin-top: 6px; color: #8a8f99; font-size: 13px; }

.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { border: 1px solid #e3e6ec; background: #fff; border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; color: #555; }
.tab.active { background: #ff2e63; color: #fff; border-color: #ff2e63; }

.pager { display: flex; align-items: center; gap: 14px; margin-top: 16px; font-size: 13px; color: #6b7280; }

.muted { color: #aab; }

.loading { padding: 40px; text-align: center; color: #8a8f99; }
.not-auth { padding: 60px; text-align: center; color: #6b7280; }

/* 登录页 */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff7aa2, #ff2e63); }
.login-card { background: #fff; border-radius: 14px; padding: 34px 30px; width: 340px; box-shadow: 0 10px 40px rgba(0,0,0,.15); }
.login-card h2 { margin: 0 0 18px; text-align: center; color: #ff2e63; }
.login-card label { display: block; font-size: 13px; color: #555; margin: 12px 0 6px; }
.login-card input { width: 100%; height: 38px; border: 1px solid #d9dde3; border-radius: 6px; padding: 0 10px; font-size: 14px; }
.login-card button { width: 100%; height: 40px; margin-top: 18px; border: none; border-radius: 6px; background: #ff2e63; color: #fff; font-size: 15px; cursor: pointer; }
.login-err { background: #fdeaea; color: #d93636; padding: 8px 10px; border-radius: 6px; font-size: 13px; margin-bottom: 8px; }
.login-card .hint { font-size: 12px; color: #aab; margin-top: 12px; text-align: center; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: flex; align-items: center; justify-content: center; z-index: 50; }
.modal { background: #fff; border-radius: 10px; width: 560px; max-width: 92vw; max-height: 86vh; overflow: auto; padding: 18px 20px; }
.modal-h { font-weight: 700; margin-bottom: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.modal-b { font-size: 14px; color: #444; line-height: 1.6; }
.modal-sm { width: 380px; }
.btn.danger { background: #ff4d4f; }
.btn-sm.danger-outline { height: 28px; padding: 0 10px; font-size: 12px; background: #fff; color: #ff4d4f; border: 1px solid #ff4d4f; }
.btn-sm.danger-outline:hover { background: #fff1f0; }
/* 用户编辑：双列宽版式 + 升级视觉 */
.modal.user-wide { width: 860px; max-width: 96vw; border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(31,35,48,.25); display: flex; flex-direction: column; max-height: 92vh; }
.modal.user-wide .modal-h {
    position: sticky; top: 0; z-index: 2;
    padding: 18px 22px; font-size: 17px; font-weight: 800; color: #fff;
    background: linear-gradient(120deg, #ff5d8f, #ff2e63);
}
.modal.user-wide .modal-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.25); }
.modal.user-wide .modal-b { flex: 1; overflow-y: auto; padding: 18px 22px; scroll-behavior: smooth; }
.modal.user-wide .modal-b::-webkit-scrollbar { width: 8px; }
.modal.user-wide .modal-b::-webkit-scrollbar-thumb { background: #e3e6ec; border-radius: 8px; }
.modal.user-wide .modal-b::-webkit-scrollbar-thumb:hover { background: #d3d7de; }
.modal.user-wide .modal-f { position: sticky; bottom: 0; z-index: 2; padding: 14px 22px; margin: 0; border-top: 1px solid #f0f1f4; background: #fafbfc; }
.modal.user-wide .modal-f .btn-sm { background: #fff; color: #555; border: 1px solid #d9dde3; transition: all .15s; }
.modal.user-wide .modal-f .btn-sm:hover { border-color: #ff2e63; color: #ff2e63; }
.modal.user-wide .modal-f .btn { min-width: 92px; font-weight: 600; box-shadow: 0 4px 12px rgba(255,46,99,.25); transition: transform .12s, box-shadow .15s; }
.modal.user-wide .modal-f .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,46,99,.3); }

/* 技能/服务编辑弹窗：与用户编辑弹窗一致的视觉语言 */
.modal.skill-modal {
    width: 588px; max-width: 94vw; border-radius: 16px; padding: 0; overflow: hidden;
    box-shadow: 0 18px 50px rgba(31,35,48,.25);
    display: flex; flex-direction: column; max-height: 90vh;
}
.modal.skill-modal .modal-h {
    position: sticky; top: 0; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    padding: 17px 22px; margin: 0; font-size: 17px; font-weight: 800; color: #fff;
    background: linear-gradient(120deg, #ff5d8f, #ff2e63);
}
.modal.skill-modal .modal-h .x {
    border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer;
    width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.modal.skill-modal .modal-h .x:hover { background: rgba(255,255,255,.32); }
.modal.skill-modal .form {
    flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px;
    scroll-behavior: smooth;
}
.modal.skill-modal .form::-webkit-scrollbar { width: 8px; }
.modal.skill-modal .form::-webkit-scrollbar-thumb { background: #e3e6ec; border-radius: 8px; }
.modal.skill-modal .form::-webkit-scrollbar-thumb:hover { background: #d3d7de; }
.modal.skill-modal .fld.full .inp,
.modal.skill-modal .fld.full .sel { width: 100%; }
.modal.skill-modal .modal-f {
    position: sticky; bottom: 0; z-index: 2; padding: 14px 22px; margin: 0;
    border-top: 1px solid #f0f1f4; background: #fafbfc;
    display: flex; justify-content: flex-end; gap: 10px;
}
.modal.skill-modal .modal-f .btn {
    min-width: 92px; font-weight: 600; box-shadow: 0 4px 12px rgba(255,46,99,.25);
    transition: transform .12s, box-shadow .15s;
}
.modal.skill-modal .modal-f .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,46,99,.3); }
.btn-ghost {
    border: 1px solid #d9dde3; background: #fff; color: #555; border-radius: 6px; cursor: pointer;
    font-size: 14px; padding: 0 16px; height: 34px; transition: all .15s;
}
.btn-ghost:hover { border-color: #ff2e63; color: #ff2e63; }

.form-section { margin-bottom: 16px; padding: 16px 18px; background: #fafbfc; border: 1px solid #f0f1f4; border-radius: 12px; }
.form-section:last-child { margin-bottom: 0; }
.form-section__t {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: #2a2333;
    margin: -2px 0 14px; padding-left: 10px;
    border-left: 3px solid #ff2e63;
}

.form2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; align-items: start; }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld > label { font-size: 12px; color: #8a8f99; font-weight: 600; letter-spacing: .3px; }
.fld .inp, .fld .sel {
    width: 100%; height: 38px; border: 1px solid #e3e6ec; border-radius: 8px;
    padding: 0 12px; font-size: 14px; background: #fcfcfd; color: #2a2333;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.fld .inp:hover, .fld .sel:hover { border-color: #ffc2d2; }
.fld .inp:focus, .fld .sel:focus { outline: none; border-color: #ff2e63; background: #fff; box-shadow: 0 0 0 3px rgba(255,46,99,.12); }
.fld .inp::placeholder { color: #c2c7d0; }
.fld .sel {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
    padding-right: 34px; cursor: pointer;
}
.fld-hint { font-size: 11px; color: #aab; line-height: 1.5; }
.fld.full { grid-column: 1 / -1; }

/* 用户管理：头像与资料字段 */
.grid .avt { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #f2f3f5; vertical-align: middle; }
.grid .cell-tags { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #444; }
.grid .muted { color: #c2c7d0; }
.avatar-edit { display: flex; align-items: center; gap: 14px; padding: 12px; border: 1px dashed #e3e6ec; border-radius: 10px; background: #fafbfc; }
.avatar-edit .avt-preview { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #f2f3f5; border: 1px solid #eee; flex: none; }
.avatar-edit .avt-ph { width: 56px; height: 56px; border-radius: 50%; background: #f2f3f5; color: #b6bcc6; display: flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.avatar-edit .inp { flex: 1; min-width: 0; background: #fff; }

/* 城市管理：省/市/县 三栏 */
.hint { color: #8a8f99; font-size: 13px; margin: 4px 0 14px; }
.region-3col { display: flex; gap: 16px; }
.region-col { flex: 1; min-width: 0; border: 1px solid #eaecef; border-radius: 10px; background: #fff; min-height: 440px; display: flex; flex-direction: column; }
.region-col-h { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid #f0f1f4; font-weight: 600; font-size: 14px; }
.region-list { flex: 1; overflow: auto; padding: 6px; }
.region-item { display: flex; justify-content: space-between; align-items: center; padding: 9px 11px; border-radius: 6px; cursor: pointer; }
.region-item:hover { background: #f6f7fb; }
.region-item.active { background: #fff0f4; }
.region-item .rn { font-size: 14px; }
.region-item .rops { display: none; gap: 6px; }
.region-item:hover .rops { display: flex; }
.region-empty { color: #b6bcc6; text-align: center; padding: 36px 0; font-size: 13px; }
.btn-xs { font-size: 12px; padding: 3px 9px; border: 1px solid #d9dde3; border-radius: 4px; background: #fff; cursor: pointer; color: #555; }
.btn-xs:hover { border-color: #ff2e63; color: #ff2e63; }
.btn-xs.danger { color: #ff4d4f; border-color: #f3c2cc; }
.btn-xs.danger:hover { background: #fff1f0; }

/* 用户编辑：省/市/县 三联选择（整行三列等高） */
.cascade { display: flex; gap: 10px; }
.cascade .sel { flex: 1; min-width: 0; border-radius: 8px; background-color: #fcfcfd; }
.cascade .sel:hover { border-color: #ffc2d2; }
.cascade .sel:focus { outline: none; border-color: #ff2e63; box-shadow: 0 0 0 3px rgba(255,46,99,.12); }

/* 分类管理：二级（大类 / 小类）双栏 */
.cat-2col { display: flex; gap: 20px; align-items: flex-start; }
.cat-pane { flex: 1; min-width: 320px; border: 1px solid #eceef2; border-radius: 12px; background: #fff; padding: 14px; }
.cat-pane-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; font-weight: 700; color: #2a2333; }
.cat-list { display: flex; flex-direction: column; gap: 8px; max-height: 460px; overflow-y: auto; }
.cat-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid #eceef2; border-radius: 10px; cursor: pointer; transition: .15s; }
.cat-item:hover { border-color: #ffb3c6; background: #fff6f9; }
.cat-item.active { border-color: #ff2e63; background: #fff0f4; font-weight: 600; }
.cat-name { font-size: 14px; color: #2a2333; }
.cat-right { display: flex; align-items: center; gap: 8px; }
.cat-ops { display: flex; gap: 4px; }
.cat-ops .btn-sm { height: 24px; padding: 0 8px; font-size: 11px; }
.cat-empty { padding: 24px 8px; text-align: center; color: #a0a4ad; font-size: 13px; }
.tag-green.sm, .tag-gray.sm { font-size: 11px; padding: 1px 7px; }
.btn.primary.sm, .btn.sm { height: 30px; padding: 0 12px; font-size: 12px; }

/* ===== 相册管理页 ===== */
.filter-input {
    height: 36px;
    width: 260px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    padding: 0 10px;
    font-size: 13px;
}
.filter-input:focus { outline: none; border-color: #ff2e63; }
.btn-primary {
    height: 36px;
    padding: 0 16px;
    border: 0;
    border-radius: 6px;
    background: #ff2e63;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.btn-ghost {
    height: 36px;
    padding: 0 14px;
    border: 1px solid #d9dde3;
    border-radius: 6px;
    background: #fff;
    color: #555;
    font-size: 13px;
    cursor: pointer;
}
.btn-danger {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-radius: 6px;
    background: #ff4d4f;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eceef2;
    display: block;
}

/* ===== 腾讯IM配置 / 敏感词 / 聊天内容管理 ===== */
.tag-orange { background: #fff3e0; color: #e07b00; }
.chk-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin: 4px 0; }
.chk-row input { width: 16px; height: 16px; }
.inp.search { min-width: 280px; height: 34px; border: 1px solid #d9dde3; border-radius: 6px; padding: 0 10px; font-size: 14px; }
.tip { font-size: 12px; color: #8a8f99; }
.muted { color: #a0a4ad; font-size: 12px; }

/* ===== 实物发货管理 ===== */
.page-h { margin: 4px 0 14px; }
.page-h h2 { font-size: 20px; font-weight: 700; color: #1f2330; margin: 0; }
.page-sub { margin: 6px 0 0; font-size: 13px; color: #9aa0aa; }
.ship-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .3px; }
.msg-cell { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.modal.wide { width: 720px; }
.modal .x { position: absolute; right: 14px; top: 10px; border: 0; background: none; font-size: 22px; cursor: pointer; color: #8a8f99; line-height: 1; }
.modal-h { position: relative; }
.msg-list { display: flex; flex-direction: column; gap: 10px; max-height: 60vh; overflow-y: auto; padding: 4px 2px; }
.msg-item { border: 1px solid #f0f1f4; border-radius: 10px; padding: 10px 12px; background: #fafbfc; }
.msg-item.unread { border-color: #ffd6e0; background: #fff6f9; }
.msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.msg-sender { font-weight: 600; color: #2a2333; font-size: 13px; }
.msg-content { font-size: 14px; color: #333; line-height: 1.6; word-break: break-all; white-space: pre-wrap; }

/* ===== 系统设置 / 功能开关 ===== */
.cfg-list { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.cfg-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; background: #fff; border: 1px solid #eceef2; border-radius: 10px; }
.cfg-main { min-width: 0; }
.cfg-key { font-weight: 700; color: #2a2333; font-size: 15px; }
.cfg-remark { margin-top: 4px; color: #8a8f99; font-size: 12px; line-height: 1.5; }
.cfg-ctrl { display: flex; align-items: center; gap: 10px; flex: none; }
.cfg-state { font-size: 13px; }
.cfg-state.on { color: #18a058; font-weight: 600; }
.cfg-state.off { color: #b0b4bd; }
.inp { width: 200px; padding: 6px 10px; border: 1px solid #d9dde3; border-radius: 6px; font-size: 13px; }

/* iOS 风格开关 */
.switch { position: relative; display: inline-block; width: 46px; height: 26px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; cursor: pointer; inset: 0; background: #d3d7de; border-radius: 26px; transition: .2s; }
.switch .slider::before { content: ""; position: absolute; height: 20px; width: 20px; left: 3px; bottom: 3px; background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .slider { background: #ff2e63; }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ===== 隐私管理页辅助样式 ===== */
.modal-lg { width: 760px; }
.sec-t { font-size: 14px; font-weight: 700; margin: 18px 0 8px; color: #333; }
.blk-add { display: flex; gap: 8px; margin-bottom: 10px; }
.blk-add .inp { flex: 1; }
.grid.sm th, .grid.sm td { padding: 7px 10px; font-size: 12px; }
.grid.sm { font-size: 12px; }
.empty { text-align: center; color: #aaa; padding: 18px 0; }
.chk { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin: 6px 0; }
.chk input { width: 16px; height: 16px; }

/* ===== 支付接口管理页 ===== */
.pay-stats { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.pay-stat { flex: 0 0 auto; min-width: 130px; display: flex; flex-direction: column; gap: 3px; padding: 14px 18px; background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05); border-left: 4px solid #e3e6ec; }
.pay-stat.ok { border-left-color: #18a058; }
.pay-stat.off { border-left-color: #b0b4bd; }
.pay-stat__num { font-size: 24px; font-weight: 800; color: #1f2330; line-height: 1; }
.pay-stat__lbl { font-size: 13px; color: #8a8f99; }

.pay-grid th.col-id, .pay-grid td.col-id { width: 60px; color: #8a8f99; }
.cell-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace; font-size: 12.5px; color: #444; letter-spacing: .2px; }

.ch-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.ch-ic { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; flex: none; }
.ch-name { white-space: nowrap; }
.ch-wechat { background: #e8f7ee; color: #1a9a4e; }
.ch-wechat .ch-ic { background: #07c160; }
.ch-alipay { background: #e8f1ff; color: #1677ff; }
.ch-alipay .ch-ic { background: #1677ff; }

.pay-empty { text-align: center; color: #aab0ba; padding: 26px 0; font-size: 13px; }

.btn-sm.warn { background: #faad14; }
.btn-sm.warn:hover { opacity: .9; }

/* 支付渠道编辑弹窗：复用 skill-modal 升级视觉（粉红渐变头 + 分区表单 + 贴底操作栏） */
.modal.pay-modal { width: 600px; max-width: 94vw; border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(31,35,48,.25); display: flex; flex-direction: column; max-height: 92vh; }
.modal.pay-modal .modal-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; margin: 0; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(120deg, #ff5d8f, #ff2e63); }
.modal.pay-modal .modal-h .x { border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.modal.pay-modal .modal-h .x:hover { background: rgba(255,255,255,.32); }
.modal.pay-modal .form { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.modal.pay-modal .form-section { margin: 0; }
.modal.pay-modal .form::-webkit-scrollbar { width: 8px; }
.modal.pay-modal .form::-webkit-scrollbar-thumb { background: #e3e6ec; border-radius: 8px; }
.modal.pay-modal .form::-webkit-scrollbar-thumb:hover { background: #d3d7de; }
.modal.pay-modal .modal-f { position: sticky; bottom: 0; z-index: 2; padding: 14px 22px; margin: 0; border-top: 1px solid #f0f1f4; background: #fafbfc; display: flex; justify-content: flex-end; gap: 10px; }
.modal.pay-modal .modal-f .btn { min-width: 92px; height: 34px; font-weight: 600; box-shadow: 0 4px 12px rgba(255,46,99,.25); transition: transform .12s, box-shadow .15s; }
.modal.pay-modal .modal-f .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,46,99,.3); }
.modal.pay-modal .modal-f .btn-ghost { height: 34px; }

/* ===== 微信公众号 /wechat 编辑弹窗（微信绿主题） ===== */
.modal.wx-modal { width: 600px; max-width: 94vw; border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(31,35,48,.25); display: flex; flex-direction: column; max-height: 92vh; }
.modal.wx-modal .modal-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 16px 22px; margin: 0; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(120deg, #16c172, #07c160); }
.modal.wx-modal .wx-h-ico { width: 28px; height: 28px; border-radius: 8px; background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.modal.wx-modal .modal-h .x { border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; margin-left: auto; }
.modal.wx-modal .modal-h .x:hover { background: rgba(255,255,255,.32); }
.modal.wx-modal .form { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.modal.wx-modal .form::-webkit-scrollbar { width: 8px; }
.modal.wx-modal .form::-webkit-scrollbar-thumb { background: #e3e6ec; border-radius: 8px; }
.modal.wx-modal .form::-webkit-scrollbar-thumb:hover { background: #d3d7de; }
.modal.wx-modal .form-section { margin-bottom: 0; background: #f7fbf9; border-color: #e7f3ec; }
.modal.wx-modal .form-section__t { border-left-color: #07c160; color: #0b7a40; }
.modal.wx-modal .fld .inp:hover, .modal.wx-modal .fld .sel:hover { border-color: #9fe0bd; }
.modal.wx-modal .fld .inp:focus, .modal.wx-modal .fld .sel:focus { border-color: #07c160; background: #fff; box-shadow: 0 0 0 3px rgba(7,193,96,.14); }
.modal.wx-modal .modal-f { position: sticky; bottom: 0; z-index: 2; padding: 14px 22px; margin: 0; border-top: 1px solid #f0f1f4; background: #fafbfc; display: flex; justify-content: flex-end; gap: 10px; }
.modal.wx-modal .modal-f .btn { min-width: 92px; height: 34px; font-weight: 600; }
.modal.wx-modal .modal-f .btn.primary { background: linear-gradient(120deg, #16c172, #07c160); box-shadow: 0 4px 12px rgba(7,193,96,.25); transition: transform .12s, box-shadow .15s; }
.modal.wx-modal .modal-f .btn.primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(7,193,96,.3); }
.modal.wx-modal .modal-f .btn-ghost { height: 34px; }

/* ===== 互助需求 /mutual 编辑弹窗 ===== */
.modal.mutual-modal { width: 620px; max-width: 94vw; border-radius: 16px; padding: 0; overflow: hidden; box-shadow: 0 18px 50px rgba(31,35,48,.25); display: flex; flex-direction: column; max-height: 92vh; }
.modal.mutual-modal .modal-h { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; margin: 0; font-size: 17px; font-weight: 800; color: #fff; background: linear-gradient(120deg, #ff5d8f, #ff2e63); }
.modal.mutual-modal .modal-h .x { border: 0; background: rgba(255,255,255,.18); color: #fff; cursor: pointer; width: 28px; height: 28px; border-radius: 50%; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.modal.mutual-modal .modal-h .x:hover { background: rgba(255,255,255,.32); }
.modal.mutual-modal .form { flex: 1; overflow-y: auto; padding: 18px 22px; display: flex; flex-direction: column; gap: 16px; scroll-behavior: smooth; }
.modal.mutual-modal .form::-webkit-scrollbar { width: 8px; }
.modal.mutual-modal .form::-webkit-scrollbar-thumb { background: #e3e6ec; border-radius: 8px; }
.modal.mutual-modal .form::-webkit-scrollbar-thumb:hover { background: #d3d7de; }
.modal.mutual-modal .form-section { margin-bottom: 0; }
.modal.mutual-modal .form-section__t { color: #d61f55; }
.modal.mutual-modal .modal-f { position: sticky; bottom: 0; z-index: 2; padding: 14px 22px; margin: 0; border-top: 1px solid #f0f1f4; background: #fafbfc; display: flex; justify-content: flex-end; gap: 10px; }
.modal.mutual-modal .modal-f .btn { min-width: 92px; height: 34px; font-weight: 600; box-shadow: 0 4px 12px rgba(255,46,99,.25); transition: transform .12s, box-shadow .15s; }
.modal.mutual-modal .modal-f .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(255,46,99,.3); }
.modal.mutual-modal .modal-f .btn-ghost { height: 34px; }

/* ===== 充值管理 /recharges ===== */
.rec-stats { display: flex; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.rec-stats .stat { flex: 1; min-width: 150px; }
.rec-stats .stat .num { font-size: 22px; }
.rec-stats .stat .lbl { font-size: 13px; }
.grid .amt { font-weight: 700; color: #ff2e63; }
.rec-empty { padding: 40px; text-align: center; color: #aaa; font-size: 14px; }
