:root {
    --bg: #f5f7fa;
    --surface: #ffffff;
    --border: #e6eaf0;
    --text: #1f2329;
    --text-2: #4e5561;
    --muted: #8a94a6;
    --primary: #1769e0;
    --primary-soft: #e8efff;
    --green: #16a34a;
    --blue: #2563eb;
    --orange: #ea580c;
    --red: #e5484d;
    --shadow: 0 6px 20px rgba(31, 35, 41, 0.06);
    --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    font-size: 14px;
    line-height: 1.5;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ============ 登录 ============ */
.auth-gate {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eef4ff 0%, #f7f9fc 55%, #eef7f3 100%);
    padding: 32px 16px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 36px;
    background: var(--surface);
    border-radius: 20px;
    box-shadow: 0 18px 50px rgba(31, 35, 41, 0.10);
}

.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.auth-logo, .brand-logo {
    width: 46px; height: 46px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 13px; background: #fff; border: 1px solid var(--border);
    overflow: hidden;
}
/* 品牌徽标图（白底，图形为定位针 + 体育场 + 放大镜） */
.auth-logo img, .brand-logo img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.auth-brand h1 { margin: 0; font-size: 19px; font-weight: 700; }
.auth-brand p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }

.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.field input, .field select, .field textarea {
    width: 100%; height: 42px; padding: 0 13px;
    border: 1px solid var(--border); border-radius: 10px;
    background: #fbfcfe; color: var(--text); outline: none;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: auto; min-height: 90px; padding: 11px 13px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--primary); box-shadow: 0 0 0 3px rgba(23,105,224,.12); background: #fff;
}
.otp-row { display: flex; gap: 10px; }
.otp-row input { flex: 1; min-width: 0; }
.otp-row .btn { flex-shrink: 0; white-space: nowrap; }

.form-error {
    margin: -4px 0 14px; padding: 9px 12px;
    background: #fdebec; color: var(--red); border-radius: 8px; font-size: 13px;
}
.notice {
    padding: 13px 15px; margin-bottom: 20px;
    background: var(--primary-soft); color: #2d527f;
    border-radius: 10px; font-size: 13px; line-height: 1.6;
}
.auth-tabs { display: flex; gap: 6px; padding: 5px; margin-bottom: 20px; background: #eef1f6; border-radius: 10px; }
.auth-tab { flex: 1; padding: 9px 8px; border: none; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; border-radius: 8px; }
.auth-tab-active { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(31, 35, 41, 0.08); }
.auth-subtitle { margin: 0 0 8px; font-size: 17px; font-weight: 700; color: var(--text); }
.auth-desc { margin: 0 0 16px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.auth-foot { margin-top: 20px; font-size: 12px; color: var(--muted); }
/* 登录页法律条款入口：与卡片同宽，弱化但清晰可点 */
.auth-legal {
    display: flex; align-items: center; justify-content: center;
    flex-wrap: wrap; gap: 10px; margin-top: 10px;
    font-size: 12px; color: var(--muted);
}
.auth-legal a { color: var(--text-2); text-decoration: none; }
.auth-legal a:hover { color: var(--primary); }

/* ============ 布局 ============ */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 232px; flex-shrink: 0;
    display: flex; flex-direction: column;
    background: var(--surface); border-right: 1px solid var(--border);
    position: sticky; top: 0; height: 100vh; overflow: hidden;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 22px 20px; border-bottom: 1px solid var(--border); }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; font-size: 18px; }
.brand-text strong { display: block; font-size: 16px; }
.brand-text span { display: block; font-size: 11px; color: var(--muted); }

/* 导航独立滚动：侧栏固定在视口（sticky + 100vh），菜单项多于视口高度时
   必须在 #nav 内部滚动，否则超出的栏目会被裁掉且右侧内容滚动后也够不着。 */
.nav {
    padding: 14px 12px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nav::-webkit-scrollbar { width: 8px; }
.nav::-webkit-scrollbar-thumb { background: #dbe2ec; border-radius: 999px; }
.nav::-webkit-scrollbar-thumb:hover { background: #c6d0de; }
.nav::-webkit-scrollbar-track { background: transparent; }
.nav-item {
    width: 100%; display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; margin-bottom: 4px;
    border: none; border-radius: 10px; background: transparent;
    color: var(--text-2); font-size: 14px; text-align: left;
    transition: background .15s, color .15s;
}
.nav-item:hover { background: #f3f6fb; color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.nav-ico { width: 18px; text-align: center; font-size: 15px; }

/* 栏目分组：只加小标题，不改变既有导航项样式 */
.nav-group-title {
    padding: 14px 14px 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--muted);
}
.nav-group-title:first-child { padding-top: 2px; }

/* 品牌设置 / 关于我们视图 */
.brand-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.brand-hero img { width: 72px; height: 72px; flex-shrink: 0; object-fit: cover; border-radius: 16px; border: 1px solid var(--border); }
.brand-hero-meta strong { display: block; font-size: 19px; color: var(--text); }
.brand-hero-meta span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.brand-color-chip { display: inline-block; width: 20px; height: 20px; margin-right: 8px; vertical-align: -4px; border-radius: 6px; border: 1px solid var(--border); }
.brand-logo-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 14px; }

/* 默认标识规则：院线 logo / 平台兜底图，每条规则都能本地上传 */
.preset-card .field { margin-bottom: 10px; }
.preset-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.preset-thumb { width: 64px; height: 64px; flex-shrink: 0; object-fit: contain; border-radius: 12px; border: 1px solid var(--border); background: #fff; }
.preset-head-meta { flex: 1; min-width: 0; }
.preset-head-meta strong { display: block; font-size: 16px; color: var(--text); }
.preset-head-meta span { display: block; margin-top: 5px; font-size: 12px; color: var(--muted); word-break: break-all; }
.preset-remove { color: #d94848; flex-shrink: 0; }
.preset-draft { flex-shrink: 0; padding: 3px 10px; font-size: 12px; color: #b26a00; background: #fff4df; border-radius: 999px; }
.preset-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preset-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.preset-toolbar .spacer { flex: 1; }
.preset-save-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.preset-save-msg { font-size: 12px; line-height: 1.5; color: var(--muted); }
.preset-save-msg.ok { color: #16a34a; }
.preset-save-msg.warn { color: #b26a00; }
.preset-save-msg.err { color: #d94848; }

/* 侧栏按权限隐藏：hidden 属性必须盖过 .nav-item 的 display:flex */
#nav .nav-item[hidden], #nav .nav-group-title[hidden] { display: none !important; }

/* 管理员与权限：每张账号卡片独立保存 */
.account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.account-head strong { font-size: 16px; }
.account-head span { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.field .perm-check { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 13px; font-weight: 400; color: var(--text-2); cursor: pointer; }
.field .perm-check input[type="checkbox"], .field .account-active input[type="checkbox"] { width: auto; height: auto; flex: none; }
.perm-super { font-size: 11px; color: #d94848; }
.perm-note { margin-top: 10px; font-size: 12px; line-height: 1.7; color: var(--muted); }
.field .account-active { display: flex; align-items: center; gap: 8px; }
.account-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.account-msg { font-size: 12px; line-height: 1.5; color: var(--muted); }
.about-para { margin: 0 0 12px; font-size: 14px; line-height: 1.9; color: var(--text-2); }
.about-kv { display: flex; gap: 12px; font-size: 13px; line-height: 2; color: var(--text-2); }
.about-kv b { width: 76px; flex-shrink: 0; font-weight: 500; color: var(--muted); }

.sidebar-foot { padding: 16px 20px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-2); }
.sidebar-foot p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.env-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 6px; }
.sidebar-legal { display: inline-block; margin-top: 10px; font-size: 12px; color: var(--primary); text-decoration: none; }
.sidebar-legal:hover { text-decoration: underline; }

.workspace { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* 顶栏固定在视口顶部：右侧内容滚动时，标题、当前账号与退出入口始终可见。
   侧栏是独立的 sticky 容器，这里用 sticky 让它跟随视口而不是跟着内容滚走。
   z-index 50 高于内容，低于下拉(80)/弹窗(100/300)，不会遮挡浮层。 */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 30px; background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
    box-shadow: 0 2px 10px rgba(31, 35, 41, 0.04);
}
.topbar h1 { margin: 0; font-size: 19px; font-weight: 700; }
.topbar p { margin: 3px 0 0; font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.whoami { font-size: 13px; color: var(--text-2); }
.content { padding: 26px 30px 50px; flex: 1; }

/* ============ 通用组件 ============ */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px;
    margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .ch-left { display: flex; align-items: baseline; gap: 10px; min-width: 0; }

.section-title { font-size: 15px; font-weight: 700; margin: 0 0 14px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .grow { flex: 1; min-width: 180px; }
.toolbar input, .toolbar select {
    height: 38px; padding: 0 12px; border: 1px solid var(--border);
    border-radius: 9px; background: var(--surface); color: var(--text); outline: none;
}
.toolbar input:focus, .toolbar select:focus { border-color: var(--primary); }
.toolbar .spacer { flex: 1; }

/* 可搜索下拉（场馆选择器） */
.combo { position: relative; display: inline-block; }
.combo .combo-input { width: 240px; padding-right: 26px; }
.combo .combo-arrow {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-size: 11px; pointer-events: none; line-height: 1;
}
.combo .combo-list {
    position: absolute; top: calc(100% + 4px); left: 0; z-index: 80;
    min-width: 100%; max-width: 420px; max-height: 280px; overflow-y: auto;
    background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .16); padding: 4px;
}
.toolbar .combo .combo-list { min-width: 320px; }
.combo .combo-item {
    display: flex; align-items: baseline; gap: 6px;
    padding: 8px 10px; border-radius: 7px; cursor: pointer;
    font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.combo .combo-item:hover { background: #f1f5f9; }
.combo .combo-item.on { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.combo .combo-item-sub { color: var(--muted); font-size: 11px; font-weight: 400; }
.combo .combo-item-all { color: var(--text-2); }
.combo .combo-item-none { color: var(--muted); cursor: default; }
.combo .combo-item-none:hover { background: transparent; }
/* 表单内的 combo 撑满整列 */
.field .combo { display: block; }
.field .combo .combo-input { width: 100%; }
.field .combo .combo-list { width: 100%; max-width: none; }

.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.tab {
    padding: 9px 16px; border: none; background: transparent;
    color: var(--text-2); font-size: 14px; border-bottom: 2px solid transparent;
}
.tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px;
    background: var(--surface); color: var(--text-2); font-size: 13px;
}
.chip.active { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); font-weight: 600; }
/* 艺人管理：歌手 / 卡司分类胶囊（第 247 批） */
.artist-role-chips { margin-bottom: 12px; }
.artist-role-chips .chip { display: inline-flex; align-items: center; gap: 6px; }
.artist-role-chips .chip b { font-weight: 600; font-size: 12px; color: var(--muted); }
.artist-role-chips .chip.active b { color: var(--primary); }
/* 场馆管理待编辑：二级字段胶囊（空值数量是筛选结果，不是提示文案） */
.venue-edit-fields { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 14px; }
.venue-edit-fields .chip b { margin-left: 4px; font-weight: 600; color: var(--muted); }
.venue-edit-fields .chip.active b { color: var(--primary); }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 720px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
th { background: #fafbfd; color: var(--text-2); font-weight: 600; white-space: nowrap; }
/* 表头排序按钮 */
.th-sort { padding: 0; }
.th-sort .th-sort-inner { display: inline-flex; align-items: center; gap: 4px; padding: 13px 14px; cursor: pointer; user-select: none; transition: color .15s; }
.th-sort:hover .th-sort-inner { color: var(--primary); }
.th-sort .sort-ind { font-style: normal; font-size: 11px; line-height: 1; color: var(--muted); }
.th-sort:hover .sort-ind { color: var(--primary); }
.th-sort-active .th-sort-inner, .th-sort-active .sort-ind { color: var(--primary); font-weight: 600; }

/* 场馆 logo：列表缩略图 + 表单预览 */
.cell-with-logo { display: flex; align-items: center; gap: 10px; }
.cell-with-logo-body { display: flex; flex-direction: column; min-width: 0; }
.venue-logo {
    flex-shrink: 0; width: 34px; height: 34px; border-radius: 8px;
    object-fit: contain; background: #fff; border: 1px solid var(--border);
}
/* 没有上传 logo 时，列表缩略图显示场馆首图并裁切填充 */
.venue-logo.is-cover { object-fit: cover; }
.logo-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
/* Logo 预览包一层，便于叠加右下角来源角标 */
.logo-preview-wrap { position: relative; width: 56px; height: 56px; flex-shrink: 0; }
.logo-preview {
    width: 56px; height: 56px; border-radius: 10px; object-fit: contain;
    background: #fff; border: 1px solid var(--border);
}
/* 图片来源角标：本地上传（蓝） / 网络取链（紫），纯展示区分，不参与存储 */
.img-src-badge {
    position: absolute; right: 4px; bottom: 4px; z-index: 2;
    padding: 0 5px; border-radius: 4px; font-size: 10px; line-height: 16px;
    color: #fff; white-space: nowrap; pointer-events: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}
.img-src-badge.src-local { background: rgba(23, 105, 224, .92); }
.img-src-badge.src-net { background: rgba(124, 58, 237, .92); }
.logo-preview-wrap .img-src-badge { right: 2px; bottom: 2px; line-height: 14px; font-size: 9px; }
.logo-empty {
    width: 56px; height: 56px; border-radius: 10px; align-items: center; justify-content: center;
    background: #fafbfd; border: 1px dashed #d7dce5; color: var(--muted); font-size: 11px;
}
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #fafcff; }
td .cell-main { font-weight: 600; color: var(--text); }
td .cell-sub { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; white-space: nowrap; }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; white-space: nowrap; }
.badge-green { background: #e6f6ee; color: var(--green); }
.badge-blue { background: #e8efff; color: var(--blue); }
.badge-orange { background: #fff1e6; color: var(--orange); }
.badge-gray { background: #f2f3f5; color: var(--muted); }
.badge-red { background: #fdebec; color: var(--red); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 38px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
    font-size: 13px; font-weight: 500; transition: opacity .15s, background .15s;
}
.btn:hover { opacity: .88; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text-2); }
.btn-danger { background: #fdebec; color: var(--red); }
.btn-success { background: #e6f6ee; color: var(--green); }
.btn-text { background: transparent; color: var(--muted); border: none; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12px; }
.btn-block { width: 100%; }
.link-btn { border: none; background: transparent; color: var(--primary); font-size: 13px; padding: 2px 4px; }
.link-btn.danger { color: var(--red); }
.group-add-btn { margin-left: 8px; font-size: 12px; padding: 1px 7px; border: 1px solid var(--primary); border-radius: 999px; line-height: 1.6; white-space: nowrap; vertical-align: middle; transition: background .15s, color .15s; }
.group-add-btn:hover { background: var(--primary); color: #fff; }
.tag-drill { font-weight: 600; padding-left: 0; }

.empty { padding: 48px 20px; text-align: center; color: var(--muted); font-size: 13px; }
.col-check { width: 36px; text-align: center; }
.col-check input[type="checkbox"] { width: 15px; height: 15px; cursor: pointer; }
.loading-line { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; }

/* 分布条 */
.dist-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dist-name { width: 90px; font-size: 13px; color: var(--text-2); }
.dist-track { flex: 1; height: 10px; background: #f0f3f8; border-radius: 999px; overflow: hidden; }
.dist-fill { height: 100%; border-radius: 999px; }
.dist-num { width: 46px; text-align: right; font-size: 13px; font-weight: 600; }

.log-item { padding: 11px 0; border-bottom: 1px solid var(--border); }
.log-item:last-child { border-bottom: none; }
.log-main { font-size: 13px; color: var(--text); }
.log-time { font-size: 12px; color: var(--muted); margin-left: 8px; }
.log-detail { display: block; margin-top: 3px; font-size: 12px; color: var(--text-2); }

/* ============ 弹窗 / 抽屉 ============ */
.modal-mask {
    position: fixed; inset: 0; background: rgba(20, 28, 40, .42);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; z-index: 100;
}
/* 地图选点层：叠加在表单弹窗之上 */
#mapModalRoot .modal-mask { z-index: 200; background: rgba(20, 28, 40, .5); }
.modal {
    width: 100%; max-width: 620px; max-height: 88vh;
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--surface); border-radius: 16px; box-shadow: 0 24px 70px rgba(0,0,0,.22);
}
.modal.wide { max-width: 780px; }
/* 场馆编辑 / 新增：高度固定，底部「取消 / 保存并添加演出 / 保存」三个按钮的位置
   不随上传图片、展开候选区、添加展示图等表单互动变化；内容只在 modal-body 里滚动 */
.modal.modal-venue { height: 88vh; max-height: calc(100vh - 40px); }
.modal.modal-venue .modal-foot { box-shadow: 0 -6px 18px rgba(20, 28, 40, .05); }
/* 场馆名过长时单行省略，标题栏高度不被撑变，底部按钮位置保持固定 */
.modal.modal-venue .modal-head h3 { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-close { border: none; background: transparent; font-size: 20px; color: var(--muted); line-height: 1; cursor: pointer; }
.modal-body { padding: 22px 24px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--border); flex-shrink: 0; background: var(--surface); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .field-full { grid-column: 1 / -1; }
.detail-list { margin: 0 0 18px; }
.detail-row { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.detail-row:last-child { border-bottom: none; }
.detail-label { width: 96px; flex-shrink: 0; color: var(--muted); }
.detail-value { flex: 1; color: var(--text); word-break: break-all; }
.image-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 18px; }
.image-strip img { width: 108px; height: 108px; object-fit: cover; border-radius: 9px; border: 1px solid var(--border); }

/* 场馆轮播图管理（本地上传 + 外链 URL） */
.cover-preview { display: flex; flex-wrap: wrap; gap: 10px; min-height: 46px; margin-bottom: 10px; }
.cover-empty { display: flex; align-items: center; padding: 0 14px; width: 100%; height: 46px; border: 1px dashed var(--border); border-radius: 10px; font-size: 12px; color: var(--muted); background: #fbfcfe; }
.cover-thumb { position: relative; width: 108px; height: 108px; border-radius: 9px; border: 1px solid var(--border); overflow: hidden; background: #f1f4f9; cursor: grab; touch-action: none; user-select: none; transition: box-shadow .12s, transform .12s; }
.cover-thumb:active { cursor: grabbing; }
.cover-thumb.is-dragging { cursor: grabbing; opacity: .72; transform: scale(.94); box-shadow: 0 0 0 2px var(--primary); }
.cover-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; user-drag: none; pointer-events: none; }
.cover-thumb.is-first::after { content: '封面'; position: absolute; left: 6px; bottom: 6px; padding: 0 6px; border-radius: 999px; background: rgba(23, 105, 224, .9); color: #fff; font-size: 10px; line-height: 16px; }
.cover-fallback { display: flex; align-items: center; justify-content: center; height: 100%; padding: 6px; font-size: 11px; color: var(--muted); word-break: break-all; text-align: center; }
.cover-index { position: absolute; left: 6px; top: 6px; min-width: 18px; height: 18px; line-height: 18px; text-align: center; border-radius: 9px; background: rgba(31,35,41,.72); color: #fff; font-size: 11px; padding: 0 4px; }
.cover-remove { position: absolute; right: 4px; top: 4px; width: 22px; height: 22px; border: none; border-radius: 50%; background: rgba(31,35,41,.72); color: #fff; font-size: 12px; line-height: 22px; padding: 0; cursor: pointer; }
.cover-remove:hover { background: var(--red); }
.cover-crop { position: absolute; right: 30px; top: 4px; height: 22px; border: none; border-radius: 11px; background: rgba(31,35,41,.72); color: #fff; font-size: 11px; line-height: 22px; padding: 0 8px; cursor: pointer; }
.cover-crop:hover { background: #4f7cff; }
.cover-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cover-actions .btn { flex-shrink: 0; white-space: nowrap; }
.cover-actions .cover-url-input { flex: 1; width: auto; min-width: 220px; height: 38px; }
.form-hint { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 二级 / 三级分类管理 */
.subtype-group { border-top: 1px solid var(--border); padding: 16px 0 6px; }
.subtype-group:first-of-type { border-top: none; padding-top: 4px; }
.subtype-group-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.subtype-group-head .btn { padding: 6px 12px; font-size: 12px; }
.subtype-item { padding-left: 20px; }
.subtype-line { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; }
.subtype-name { font-size: 14px; color: var(--text); }
.subtype-children { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 8px 22px; }
.subtype-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border: 1px solid var(--border); border-radius: 999px; font-size: 12px; color: var(--text-2); background: #fbfcfe; }
.subtype-chip-x { border: none; background: transparent; color: var(--muted); font-size: 11px; padding: 0 0 0 2px; cursor: pointer; }
.subtype-chip-x:hover { color: var(--red); }

.toast {
    position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
    padding: 11px 22px; border-radius: 10px; z-index: 200;
    background: #1f2329; color: #fff; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.2);
}
.toast.error { background: var(--red); }
.loading-mask {
    position: fixed; inset: 0; z-index: 300;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: rgba(255,255,255,.7); color: var(--text-2); font-size: 13px;
}
.spinner { width: 34px; height: 34px; border: 4px solid #dbe8fb; border-top-color: var(--primary); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 760px) {
    .sidebar { width: 64px; }
    .brand-text, .sidebar-foot, .nav-item, .nav-group-title { font-size: 0; }
    .nav-group-title { display: none; }
    .nav-item { justify-content: center; padding: 12px 0; }
    .nav-ico { font-size: 17px; }
    .content, .topbar { padding-left: 16px; padding-right: 16px; }
    .form-grid { grid-template-columns: 1fr; }
}

/* ===== 可点击卡片 / 类型管理 ===== */
.clickable { cursor: pointer; transition: opacity .15s ease, transform .15s ease; }
.clickable:hover { opacity: .8; }
.color-chip { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 4px; border: 1px solid rgba(0,0,0,.08); }

/* ===== 地图选点 ===== */
.map-picker-body { display: flex; flex-direction: column; gap: 10px; }
.map-toolbar { display: flex; gap: 8px; align-items: center; }
.map-toolbar .grow { flex: 1; }
#tmap_box { width: 100%; height: 420px; border-radius: 8px; border: 1px solid var(--border, #e3e8ef); }
.map-pick-info { font-size: 13px; color: #5b6472; background: #f4f6fa; border-radius: 6px; padding: 8px 10px; }
.map-search-results { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; }
.map-result-item { padding: 8px 10px; border: 1px solid #e3e8ef; border-radius: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.map-result-item:hover { background: #f4f6fa; }
.map-result-item .cell-main { font-size: 13px; font-weight: 500; }
.map-result-item .cell-sub { font-size: 12px; color: #8a94a6; }
/* 第 112 批：地图选点结果里的「库内场馆」小标签（库里命中排在腾讯 POI 前面） */
.map-result-item .tag-mini { margin-left: 4px; padding: 0 5px; border-radius: 4px; background: #eaf1ff; color: #1769e0; font-size: 11px; font-weight: 400; }
.map-result-muted { cursor: default; color: #8a94a6; font-size: 13px; }
.map-result-muted:hover { background: none; }
.map-key-guide { font-size: 13px; line-height: 1.7; color: #3c4657; }
.map-key-guide ol { padding-left: 20px; margin: 8px 0; }
.map-key-guide a { color: #2563eb; }
.map-key-error { color: #dc2626; }
.map-key-note { color: #8a94a6; font-size: 12px; }

/* ===== 表格分页条 ===== */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
.pager .spacer { flex: 1; }
.pager-size {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
}
.pager-size select { padding: 5px 8px; }
.pager .btn[disabled] { opacity: 0.45; cursor: not-allowed; }
/* 页码输入框：可直接输入页数，点「跳转」或按回车确认 */
.pager-page {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    white-space: nowrap;
}
.pager-jump-input {
    width: 58px;
    height: 32px;
    padding: 0 6px;
    border: 1px solid #d8dee9;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2329;
    font-size: 13px;
    text-align: center;
    outline: none;
    -moz-appearance: textfield;
}
.pager-jump-input::-webkit-outer-spin-button,
.pager-jump-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pager-jump-input:focus { border-color: #1769e0; box-shadow: 0 0 0 2px rgba(23, 105, 224, .12); }

/* ===== 新增场馆查重提示 ===== */
.dup-tip {
    padding: 10px 12px;
    background: #fff8ec;
    border: 1px solid #f5dfae;
    border-radius: 8px;
    font-size: 13px;
}
.dup-tip-title { color: #9a6b1a; font-weight: 600; }
.dup-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 10px;
    background: #fff;
    border-radius: 6px;
}
.dup-name { font-weight: 600; color: var(--text); }
.dup-meta { color: var(--muted); font-size: 12px; }
.dup-addr { margin: 2px 10px 0; color: var(--muted); font-size: 12px; }
.dup-tip-foot { margin-top: 8px; color: #b28a45; font-size: 12px; }

/* ===== 同一场馆资料复用提示 ===== */
.group-tip {
    padding: 10px 12px;
    background: #eff8ff;
    border: 1px solid #bcdcfa;
    border-radius: 8px;
    font-size: 13px;
}
.group-tip-title { color: #1f5f9e; font-weight: 600; }
.group-tip-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 10px;
    background: #fff;
    border-radius: 6px;
}
.group-tip-name { font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.group-tip-meta { color: var(--muted); font-size: 12px; flex-shrink: 0; }
.group-tip-item .btn-sm { flex-shrink: 0; }

/* ===== 只带入「场馆介绍」 ===== */
.desc-import-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}
.desc-import-hint { color: var(--muted); font-size: 12px; }
/* 列表最后修改日期：等宽数字，避免列宽随日期跳动 */
.cell-time { white-space: nowrap; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.desc-import-wrap { margin-top: 10px; }
.desc-import-wrap > div + div { margin-top: 8px; }
.desc-import-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f6f9ff;
    border: 1px solid #dbe7f8;
    border-radius: 8px;
}
.desc-import-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.desc-import-name { font-weight: 600; color: var(--text); font-size: 13px; }
.desc-import-preview { color: var(--muted); font-size: 12px; line-height: 1.5; }
.desc-import-item .btn-sm { flex-shrink: 0; }
.desc-import-empty { padding: 8px 10px; background: #fbfbfc; border: 1px dashed #dfe4ec; border-radius: 8px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.desc-import-done { padding: 8px 10px; background: #f0fbf3; border: 1px solid #cbead6; border-radius: 8px; color: #2f7d4f; font-size: 12px; }
.desc-import-foot { color: var(--muted); font-size: 12px; line-height: 1.6; }

/* ===== 危险操作按钮 ===== */
.link-btn.link-danger { color: var(--red); }

/* ===== 建设状态 / 院线文字标签 ===== */
.badge-build {
    background: #f97316;
    color: #fff;
    font-weight: 700;
    border: 1px solid #c2410c;
}
.badge-renovating { background: #f59e0b; color: #fff; font-weight: 700; border: 1px solid #b45309; }
.badge-repairing { background: #3b82f6; color: #fff; font-weight: 700; border: 1px solid #1d4ed8; }
.badge-chain { background: #fff4e6; color: #b45309; border: 1px solid #f6d9a8; }

/* ===== 数据看板：图标化大盘（2026-11-14） ===== */
.ov-todo-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 20px; }
.ov-todo {
    display: flex; align-items: center; gap: 14px;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px;
}
.ov-todo.hot { border-color: rgba(234, 88, 12, .32); background: linear-gradient(180deg, #fff8f2 0%, #fff 100%); }
.ov-todo-ico {
    flex: none; width: 40px; height: 40px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 18px;
}
.ov-todo.hot .ov-todo-ico { background: #fff1e6; color: var(--orange); }
.ov-todo-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ov-todo-num { font-size: 26px; font-weight: 800; line-height: 1.1; color: var(--text); }
.ov-todo.hot .ov-todo-num { color: var(--orange); }
.ov-todo-label { margin-top: 2px; font-size: 12px; color: var(--muted); }
.ov-arrow { color: #cbd3e0; font-size: 20px; }

.ov-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.ov-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
}
.ov-head { display: flex; align-items: center; gap: 8px; }
.ov-ico {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--primary-soft); color: var(--primary); font-size: 13px;
}
.ov-label { font-size: 13px; color: var(--muted); }
.ov-num { margin-top: 10px; font-size: 26px; font-weight: 800; line-height: 1.15; color: var(--text); }
.ov-num small { margin-left: 3px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ov-sub { margin-top: 4px; font-size: 12px; color: var(--muted); }

.ov-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.ov-cols .card { margin-bottom: 0; }

/* 看板页头：标题 + 数据大屏入口 */
.ov-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.ov-top-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ov-top-main h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text); }
.ov-top-main .sub { font-size: 12px; color: var(--muted); }

/* 可点卡片：右上角箭头 + 悬停抬起，和纯数字卡区分开 */
.ov-card.clickable { position: relative; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.ov-card.clickable:hover { transform: translateY(-2px); border-color: rgba(23, 105, 224, .32); box-shadow: 0 10px 24px rgba(23, 105, 224, .12); }
.ov-card.clickable:active { transform: translateY(0) scale(.995); }
.ov-go { margin-left: auto; font-size: 16px; line-height: 1; color: #c3ccdb; }
.ov-card.clickable:hover .ov-go { color: var(--primary); }

/* 共建贡献者榜单弹窗 */
.rank-list { display: flex; flex-direction: column; gap: 6px; }
.rank-row {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.rank-no {
    flex: none; width: 26px; height: 26px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 800; color: var(--muted); background: #f1f4f9;
}
.rank-no.rank-top { color: #fff; background: linear-gradient(135deg, #1769e0, #3d86f5); }
.rank-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-sub { flex: none; font-size: 12px; color: var(--muted); }
.rank-pts { flex: none; font-size: 16px; font-weight: 800; color: var(--primary); }
.rank-pts small { margin-left: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }

@media (max-width: 1180px) {
    .ov-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .ov-grid { grid-template-columns: repeat(2, 1fr); }
    .ov-cols { grid-template-columns: 1fr; }
    .ov-todo-row { grid-template-columns: 1fr; }
    .ov-top { flex-wrap: wrap; }
    .rank-sub { display: none; }
}

/* ============ 用户管理 ============ */
.user-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.user-toolbar .toolbar-left { flex: 1; min-width: 220px; }
.user-toolbar .toolbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.user-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px 14px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.user-card-custom { border-color: #e0a93b; box-shadow: 0 0 0 1px #e0a93b inset; }
.user-avatar-wrap { position: relative; width: 88px; height: 88px; margin-bottom: 12px; }
.user-avatar { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; background: var(--border); }
.user-avatar-empty { display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 700; color: var(--muted); background: var(--border); }
.user-custom-badge { position: absolute; right: -4px; bottom: -4px; background: #e0a93b; color: #fff; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px; }
.user-card-locked { border-color: #d9534f; box-shadow: 0 0 0 1px #d9534f inset; opacity: 0.92; }
.user-locked-badge { position: absolute; left: -4px; top: -4px; background: #d9534f; color: #fff; font-size: 11px; line-height: 1; padding: 3px 6px; border-radius: 999px; }
.user-name { font-size: 14px; font-weight: 600; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 12px; }
/* 操作区：重置头像/用户名并排一行，锁定/解锁独占整行，互不挤压 */
.user-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.user-actions-row { display: flex; gap: 8px; }
.user-actions .btn { min-width: 0; white-space: nowrap; font-size: 13px; padding: 7px 8px; }
.user-actions-row .btn { flex: 1; }
.user-lock-btn { width: 100%; }
.user-lock-btn.is-lock { color: #d9534f; border: 1px solid #d9534f; background: #fff; }
.user-lock-btn.is-lock:hover { background: #fdecea; }
.user-lock-btn.is-unlock { color: #fff; background: var(--primary); border: 1px solid var(--primary); }
.user-lock-btn.is-unlock:hover { background: var(--primary-dark, #1157bd); }

/* 浮层二次确认：锚定到鼠标点击点，比原生 confirm() 更可控 */
.popover-confirm-host { position: fixed; inset: 0; z-index: 9999; }
.popover-confirm {
    position: fixed;
    z-index: 10000;
    min-width: 248px;
    max-width: 320px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(17, 24, 39, 0.18);
    padding: 16px;
    font-size: 14px;
    color: var(--text);
    animation: popover-in 0.12s ease-out;
}
@keyframes popover-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.popover-confirm .popover-title { font-weight: 600; margin-bottom: 6px; }
.popover-confirm .popover-msg { color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.popover-confirm.is-danger .popover-title { color: var(--red); }
.popover-confirm .popover-actions { display: flex; gap: 8px; justify-content: flex-end; }
.popover-confirm .popover-actions .btn { flex: 0 0 auto; }

@media (max-width: 900px) {
    .user-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ============ 默认头像池 ============ */
.avatar-pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; }
.avatar-pool-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px 12px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.avatar-pool-img { width: 72px; height: 72px; border-radius: 50%; background: var(--border) center / cover no-repeat; margin-bottom: 10px; }
.avatar-pool-name { font-size: 13px; font-weight: 600; color: var(--text); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-bottom: 10px; }
.card-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ============ 我的页网格导航配置（系统配置） ============ */
#profileMenuCard .card-head { flex-wrap: wrap; }
.pm-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px;
    margin-bottom: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
}
.pm-preview { flex: 0 0 auto; }
.pm-icon {
    display: block;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: contain;
    background: var(--border);
}
.pm-fields { flex: 1 1 auto; min-width: 0; }
.pm-line { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 8px; }
.pm-line:last-child { margin-bottom: 0; }
.pm-f { display: flex; flex-direction: column; gap: 4px; flex: 1 1 220px; min-width: 0; font-size: 12px; color: var(--text-2); }
.pm-f input, .pm-sel {
    width: 100%;
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-size: 13px;
}
.pm-sel { flex: 0 0 160px; }
.pm-check { display: flex; align-items: center; gap: 4px; height: 34px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.pm-check input { width: auto; height: auto; }
.pm-order { flex: 0 0 auto; font-size: 12px; color: var(--text-3, #8a94a6); }
.pm-ops { flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; }
.pm-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 900px) {
    .pm-row { flex-wrap: wrap; }
    .pm-ops { flex-direction: row; }
}
/* ===== 演出档案重构 + 艺人管理（2026-11-16） ===== */
/* 分段 tab：全部 / 今日演出 / 近期演出 / 过往演出，右侧挂条数 */
.show-tabs { margin-bottom: 14px; gap: 4px; flex-wrap: wrap; }
.show-tab { display: inline-flex; align-items: center; gap: 6px; }
.show-tab .tab-count {
    display: inline-block; min-width: 20px; padding: 0 6px; height: 18px; line-height: 18px;
    border-radius: 999px; background: #eef1f6; color: var(--text-2);
    font-size: 11px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums;
}
.show-tab.active .tab-count { background: var(--primary-soft); color: var(--primary); }
.show-tab .tab-count.is-zero { color: #b9c1cf; font-weight: 500; }

.show-toolbar { margin-bottom: 12px; }
.show-toolbar input.grow { min-width: 220px; }
/* 日期 / 场次 / 城市这类数字列不换行，避免行高参差 */
.cell-nowrap { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-sep { margin: 0 2px; color: #c8cfdb; }
.show-table td .link-btn { padding: 0; }
.show-table td .cell-sub { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 艺人管理 */
.artist-toolbar { margin-bottom: 12px; }
.col-avatar { width: 68px; }
/* 头像格：首字渐变打底，图片绝对定位盖在上面 —— 图挂了 / 没图都还能看见首字 */
.ar-avatar {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
    color: #fff; font-size: 15px; font-weight: 700; flex: none;
}
.ar-avatar-t { line-height: 1; }
.ar-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ar-avatar-lg { width: 64px; height: 64px; font-size: 22px; }
.artist-table td .cell-sub { max-width: 360px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-avatar-edit { display: flex; align-items: center; gap: 14px; }
.artist-avatar-ops { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }

/* ===== 演出档案：按巡演分组（2026-11-16 第 77 批） =====
   一组 = 一轮巡演：组头一行交代「谁的一轮、跨度多久、几条记录几场」，
   组下挂场次行；点组头折叠。组头背景比表头浅一档，不与数据行抢视觉。 */
.show-group-row > td {
    padding: 0 !important;
    background: #f7f9fd;
    border-top: 1px solid var(--border);
    cursor: pointer;
}
.show-group-row:hover > td { background: #eef4ff; }
.show-group-row .sg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    flex-wrap: wrap;
}
.show-group-row.is-collapsed > td { background: #f2f5fa; }
.sg-caret { flex: none; width: 12px; color: var(--muted); font-size: 11px; }
.sg-title { font-weight: 600; color: var(--text); }
.sg-artist { color: var(--blue); font-size: 12px; }
.sg-span { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.sg-count { color: var(--muted); font-size: 12px; }
.show-group-row .row-actions { margin-left: 6px; }

.sg-head .spacer { flex: 1; }

/* ===== 场馆库：按馆群分组（2026-11-16 第 77 批，与小程序场馆列表同口径） ===== */
.venue-group-row > td {
    background: #f7f9fd;
    border-top: 1px solid var(--border);
    padding: 7px 12px !important;
    cursor: pointer;
}
.venue-group-row:hover > td { background: #eef4ff; }
.venue-group-row.is-collapsed > td { background: #f2f5fa; }
.venue-group-row .vg-head {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.venue-group-row .vg-name { font-weight: 600; color: var(--text); }
.venue-group-row .vg-seats { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ===== 第 84 批：表头 / 工具栏 / 操作按钮固定展示（不再随滚动消失） =====
   层级：顶栏 50 → 卡片头 32 → 工具栏 31 → 页签 30 → 表格 10 → 表头 3。
   表格本身给 max-height 形成内部滚动区，thead th 才能真的吸顶；弹层里的表格单独一套。 */
#content .card > .card-head {
    position: sticky; top: 74px; z-index: 32;
    background: var(--surface, #fff);
    padding: 8px 0; margin: -8px 0 10px;
    box-shadow: 0 2px 8px rgba(31, 35, 41, .04);
}
#content .toolbar {
    position: sticky; top: 126px; z-index: 31;
    background: var(--surface, #fff);
    padding: 6px 0; margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(31, 35, 41, .04);
}
#content .show-tabs {
    position: sticky; top: 184px; z-index: 30;
    background: var(--surface, #fff);
    padding: 6px 0; margin-bottom: 8px;
}
/* 第 186 批（用户：「刚进入时底部框显示完整，页面下拉后底部框被截断」）：
   🔴 这里**不能**再写 position: sticky。表格容器一旦 sticky，往下滚时它会被
   下移 (top 232 - 原位) 那么多像素，而分页条仍留在流内原位 —— 表格就压到
   分页条上、卡片下边框还会从某一行中间切过去（用户看到的就是「底部框被截断」）。
   要做「表头吸顶」不需要容器 sticky：容器自己就是 max-height + overflow:auto 的
   滚动区，thead th 的 sticky top:0 在它内部照样生效（见下面那条规则）。
   页面上滚时整张卡片跟着上移，分页条与卡片下边框永远在流内、不会被盖住。 */
#content .table-wrap {
    max-height: calc(100vh - 250px);
    overflow: auto; overscroll-behavior: contain;
}
/* 第 186 批（用户：「刚进入时底部框显示完整，页面下拉后底部框被截断」）：
   带分页条的列表页 = 一张「占满顶栏以下视口」的卡片：
     · 卡片高度写死 calc(100vh - 166px) → 页面不再有纵向滚动（顶栏 86 + 上边距 26 + 下边距 50 ≈ 162，留 4px 余量）；
     · 卡片改 flex 列：抬头 / 工具栏 / 页签按内容高，表格吃满剩余高度并在内部滚，
       分页条 flex:none 永远贴在卡片底部；
     · 于是分页条、卡片下边框始终完整可见，也不会有 sticky 元素被滚动位移去压住别的块。
   黑名单这类「卡片流 + 分页条」没有 .table-wrap：让列表自己在卡片里滚，分页条 sticky 钉底。 */
#content .card:has(.pager) {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 166px);
    min-height: 360px;
    margin-bottom: 0;
}
#content .card:has(.pager) > div:last-child {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
/* 抬头不吸顶：卡片本身就是一屏高，抬头一直在最上面；若还 sticky，
   页面因别的内容（名单页下面还有一张文案卡）滚动时，抬头会被位移下去盖住表格。 */
#content .card:has(.pager) > .card-head {
    position: static;
}
#content .card:has(.pager) > div:last-child > .table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
}
#content .card:has(.pager):not(:has(.table-wrap)) > div:last-child {
    overflow: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}
/* 卡片流里的每一组都是「内容高」，别让 flex 把它们压扁（压扁了会变成组内滚动而不是整块滚） */
#content .card:has(.pager):not(:has(.table-wrap)) > div:last-child > *:not(.pager) {
    flex: none;
}
#content .pager {
    flex: none;
    position: relative;
    z-index: 12;
    /* 右侧留 64px：避开右下角那颗「回到顶部」浮标（它压的就是「下一页」） */
    padding-right: 64px;
    background: var(--surface, #fff);
}
#content .card:has(.pager):not(:has(.table-wrap)) > div:last-child > .pager {
    position: sticky;
    bottom: 0;
    margin-top: 0;
    padding-top: 12px;
}
#content .table-wrap thead th,
#modalRoot .table-wrap thead th {
    position: sticky; top: 0; z-index: 3;
    background: #fafbfd;
    box-shadow: inset 0 -1px 0 var(--border, #e8ecf3);
}
#modalRoot .table-wrap { max-height: calc(88vh - 220px); overflow: auto; }

/* ===== 第 105 批：新增演出时按名称建议归属巡演（提示条 + 全部匹配列表） ===== */
.sug-tip {
    margin-top: 8px; padding: 8px 12px; border-radius: 9px;
    background: var(--bg, #f5f6f8); color: var(--text-2, #4e5663);
    font-size: 12.5px; line-height: 1.55;
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
}
.sug-tip-same { background: var(--primary-soft, #e8efff); color: var(--primary, #1769e0); }
.sug-tip-cross { background: #fff6e6; color: var(--text-2, #4e5663); }
.sug-tip-new { background: var(--bg, #f5f6f8); color: var(--text-2, #4e5663); }
.sug-tip .btn-sm { padding: 2px 8px; font-size: 12px; }
/* 全部匹配：文档流列表（不浮层，跟小程序同一套交互：点一条即锁定） */
.tour-hits {
    margin-top: 8px; border: 1px solid var(--border, #e6e9ef); border-radius: 9px;
    max-height: 240px; overflow-y: auto;
}
.tour-hit {
    display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
    padding: 8px 12px; cursor: pointer; font-size: 13px;
    border-top: 1px solid var(--border, #e6e9ef);
}
.tour-hit:first-child { border-top: none; }
.tour-hit:hover { background: var(--primary-soft, #e8efff); }
.tour-hit-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-hit-s { flex: none; color: var(--muted, #8a94a6); font-size: 11.5px; }

/* ===== 第 115 批：场馆批量导入弹窗 ===== */
.vi-guide {
    background: var(--bg, #f5f7fa); border: 1px solid var(--border, #e6eaf0);
    border-radius: 10px; padding: 12px 14px; margin-bottom: 14px;
}
.vi-guide-row { display: flex; gap: 10px; font-size: 13px; line-height: 1.9; }
.vi-guide-row b { flex: none; width: 44px; color: var(--text-2, #4e5561); }
.vi-guide-row span { color: var(--text, #1f2329); word-break: break-all; }
.vi-guide-note { margin-top: 6px; font-size: 12px; line-height: 1.7; color: var(--muted, #8a94a6); }
.vi-actions { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vi-file { font-size: 12px; color: var(--muted, #8a94a6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vi-preview { min-height: 40px; }
.vi-loading, .vi-error { padding: 18px; text-align: center; font-size: 13px; border-radius: 10px; }
.vi-loading { color: var(--muted, #8a94a6); background: var(--bg, #f5f7fa); }
.vi-error { color: var(--red, #e5484d); background: #fdebec; }
.vi-sum { font-size: 13px; color: var(--text-2, #4e5561); margin-bottom: 8px; }
.vi-sum .vi-ok { color: var(--green, #16a34a); }
.vi-sum .vi-bad { color: var(--red, #e5484d); }
.vi-table-wrap { max-height: 46vh; overflow: auto; border: 1px solid var(--border, #e6eaf0); border-radius: 10px; }
.vi-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.vi-table th, .vi-table td { padding: 7px 10px; text-align: left; border-bottom: 1px solid var(--border, #e6eaf0); vertical-align: top; }
.vi-table thead th {
    position: sticky; top: 0; z-index: 1; background: var(--bg, #f5f7fa);
    color: var(--text-2, #4e5561); font-weight: 600; white-space: nowrap;
}
.vi-table tbody tr:last-child td { border-bottom: none; }
.vi-table .vi-c-no { width: 44px; color: var(--muted, #8a94a6); }
.vi-table .vi-c-msg { color: var(--muted, #8a94a6); max-width: 340px; }
.vi-row-bad .vi-c-no { color: var(--red, #e5484d); }
.vi-row-bad .vi-c-msg { color: var(--red, #e5484d); }
.vi-st { white-space: nowrap; }
.vi-st-ok { color: var(--green, #16a34a); }
.vi-st-bad { color: var(--red, #e5484d); }
.vi-fail {
    margin-bottom: 12px; padding: 10px 14px; border-radius: 10px;
    background: #fdebec; border: 1px solid #f7c9cb; font-size: 12.5px; color: var(--text, #1f2329);
}
.vi-fail ul { margin: 6px 0 0; padding-left: 18px; line-height: 1.7; max-height: 180px; overflow: auto; }

/* 新增块开始：品牌徽标首帧（2026-11-17） */
/* 两个徽标 <img> 故意不写死 src：首帧空着，等内联缓存 / app.js 解析出真图再填。
   没有 src 时不留 alt 文字与破图痕迹，避免刷新瞬间出现「旧徽标 / 破图」的画面。 */
.auth-logo img:not([src]), .brand-logo img:not([src]) {
    visibility: hidden;
}
/* 新增块结束 */

/* 新增块开始：列表「回到顶部」浮标（第 124 批） */
/* 图标是透明底火箭，必须配实底圆形 + 圆外框才立得住；
   位置在右下角，避开底部固定操作条（媒体库批量条、表单保存条都在 60px 以内）。 */
.back-top {
    position: fixed;
    right: 26px;
    bottom: 34px;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    background: var(--surface, #ffffff);
    border: 2px solid var(--border, #e6eaf0);
    box-shadow: 0 6px 18px rgba(31, 35, 41, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 60;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.back-top.show {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.back-top:hover {
    border-color: var(--primary, #1769e0);
}

.back-top:active {
    transform: scale(0.94);
}

.back-top img {
    width: 26px;
    height: 26px;
    display: block;
}
/* 新增块结束 */
/* 新增块开始：回到顶部火箭点击点火，尾部喷火（第 138 批） */
.back-top-flame {
    position: absolute;
    z-index: 0;
    left: 50%;
    bottom: 7px;
    width: 11px;
    height: 15px;
    margin-left: -5.5px;
    border-radius: 50% 50% 42% 42% / 72% 72% 28% 28%;
    background: linear-gradient(to top, #ff3d00 0%, #ff9100 55%, #ffe082 100%);
    box-shadow: 0 0 7px rgba(255, 111, 0, 0.6);
    opacity: 0;
    transform: translateY(3px) scaleY(0.35);
    transform-origin: 50% 0;
    pointer-events: none;
}
/* 图标压在火焰根部上方：看起来是从火箭尾部喷出 */
.back-top img {
    position: relative;
    z-index: 1;
}
.back-top.firing .back-top-flame {
    animation: backTopFlame 620ms ease-out both;
}
@keyframes backTopFlame {
    0%   { opacity: 0; transform: translateY(3px) scaleY(0.35); }
    18%  { opacity: 1; transform: translateY(0) scaleY(1.12); }
    55%  { opacity: 1; transform: translateY(1px) scaleY(0.92); }
    100% { opacity: 0; transform: translateY(5px) scaleY(0.5); }
}
/* 新增块结束 */

/* ===== 演出表单：嘉宾 chips（第 151 批 2026-11-17） =====
   嘉宾仍写进 performance.note（「嘉宾A、B」），这里只是把那段名单拆成可点掉的标签；
   候选 / 新建入口走文档流，不用绝对定位下拉（表单要能滚，浮层会跟着跑偏）。 */
.guest-box {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    padding: 6px 8px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px;
}
.guest-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.guest-empty { font-size: 12px; color: var(--muted); padding: 2px 4px; }
.guest-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 2px 4px 2px 10px; font-size: 13px; color: var(--text);
    background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
}
.guest-chip-t { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-chip-x {
    border: none; background: transparent; cursor: pointer; line-height: 1;
    font-size: 15px; color: var(--muted); padding: 2px 5px; border-radius: 999px;
}
.guest-chip-x:hover { color: var(--red); background: var(--surface); }
.guest-input {
    flex: 1; min-width: 200px; padding: 5px 4px; font-size: 13px;
    border: none; outline: none; background: transparent; color: var(--text);
}
.guest-hits {
    margin-top: 6px; background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
}
.guest-hit {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 8px 10px; font-size: 13px; cursor: pointer;
    border-top: 1px solid var(--border);
}
.guest-hit:first-child { border-top: none; }
.guest-hit:hover { background: var(--bg); }
.guest-hit-sub { font-size: 12px; color: var(--muted); }
/* 同名艺人的职业胶囊（第 286 批）：候选名字照常显示，职业另挂一枚小标；data-name 仍是档案全名 */
.guest-hit-prof {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    color: var(--primary);
    background: rgba(23, 105, 224, .09);
    border: 1px solid rgba(23, 105, 224, .28);
}
.guest-hit-new { color: var(--primary); }
/* 候选行右侧「新增档案」按钮：嘉宾 / 卡司两个块同款（2026-11-28） */
.guest-hit-add {
    flex-shrink: 0; border: 1px solid var(--primary); border-radius: 6px;
    background: var(--primary); color: #fff; font-size: 12px;
    padding: 3px 10px; cursor: pointer; white-space: nowrap;
}
.guest-hit-new:hover .guest-hit-add { filter: brightness(1.08); }
.guest-hit-none { color: var(--muted); cursor: default; }
/* 子弹层（新建艺人档案）叠在表单弹窗之上，关掉不影响下面的表单 */
#subModalRoot .modal-mask { z-index: 210; background: rgba(20, 28, 40, .5); }

/* ===== 劣迹艺人名单（第 152 批 2026-11-17） ===== */
.bl-tip {
    margin: 2px 0 12px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
}
.bl-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 2px;
    border-top: 1px solid var(--border);
}
.bl-row:first-child { border-top: none; }
.bl-row.bl-off { opacity: .55; }
.bl-row-main { flex: 1; min-width: 0; }
.bl-row-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
.bl-row-reason {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text);
}
.bl-row-ops { flex: none; display: flex; gap: 6px; }
.bl-del { color: var(--red); }
.bl-badge {
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 500;
    color: var(--muted);
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 999px;
}
.bl-badge-block { color: var(--red); border-color: rgba(217, 48, 37, .35); background: rgba(217, 48, 37, .07); }
.bl-badge-warn { color: #b26a00; border-color: rgba(255, 153, 0, .4); background: rgba(255, 153, 0, .1); }
/* 名单分类分组（第 185 批）：一类一张小标题条，标题 + 条数，下面才是成员行 */
.bl-group + .bl-group { margin-top: 14px; }
.bl-group-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: var(--bg, #f5f6f8);
    border-radius: 8px;
}
.bl-group-title { font-size: 13px; font-weight: 600; color: var(--text); }
.bl-group-count { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 分组成员行的上边框改由分组头承担，否则标题条下面会多一条横线 */
.bl-group-head + .bl-row { border-top: none; }
.bl-notice-ops { display: flex; justify-content: flex-end; margin-top: 10px; }
.bl-modal-text {
    margin: 0 0 10px;
    font-size: 13px;
    line-height: 1.8;
    color: var(--text);
    word-break: break-word;
}

/* 第 153 批：劣迹弹层「原因 / 依据」两行（原来是一行 name（类别）：reason） */
.bl-hit { margin-bottom: 6px; }
.bl-hit:last-child { margin-bottom: 0; }
.bl-hit-head { color: var(--text); font-weight: 600; }
.bl-hit-reason { color: #b3261e; }
.bl-hit-basis { color: var(--muted); font-size: 11px; }

/* 第 153 批：搜索命中受限艺人 —— 候选/列表位换成大红叉 + 原因（不弹窗） */
.bl-inline {
    padding: 22px 18px 18px;
    text-align: center;
    background: #fff5f5;
    border: 1px solid #fbc9c6;
    border-radius: 10px;
}
.bl-inline-title {
    font-size: 13px;
    font-weight: 600;
    color: #b3261e;
}
.bl-inline-hit {
    margin-top: 10px;
    text-align: left;
}
.bl-inline-name { font-size: 12px; font-weight: 600; color: var(--text); }
.bl-inline-reason { font-size: 12px; line-height: 1.7; color: #b3261e; }
.bl-inline-basis { font-size: 11px; line-height: 1.6; color: var(--muted); }

/* 第 157 批：艺人管理的「删除」链接——危险操作，红色但与主操作同级（不是大按钮） */
.link-btn-danger { color: #b3261e; }
.link-btn-danger:hover { color: #8c1d18; text-decoration: underline; }

/* ==== 争议艺人提示（第 167 批） ====
   视觉从「大红叉」换成平嘴人脸（assets/face-neutral.png，与小程序空状态那张不开心脸同一套线条），
   底色也从警戒红改成中性灰：名单在后台是「提醒这位艺人存在争议」，不是「这条记录违规」。
   同权重后写优先，所以下面几行直接盖住上面第 153 批的旧样式，以后调口径只改这一块。 */
.bl-inline {
    background: #f7f8fa;
    border-color: #e3e6eb;
}
.bl-inline-face {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
}
.bl-inline-title {
    color: var(--text);
}
.bl-inline-sub {
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}
.bl-inline-reason {
    color: #5f6673;
}
/* 「仍要添加」：确认后才真正加进去 */
.bl-inline-go {
    margin-top: 12px;
}
/* 弹层标题里的那张脸：与行内提示同一张图 */
.bl-face {
    width: 22px;
    height: 22px;
    margin-right: 6px;
    vertical-align: -5px;
}
.modal-head h3 .bl-face {
    display: inline-block;
}

/* ==== 第 168 批：争议艺人「只提醒不拦」的两个零件 ====
   ① .bl-note 表格 / 列表上方的细提示条（搜到受限艺人时，结果照常列）；
   ② .badge-dispute 名字后面的「争议」徽标（与小程序艺人页同色 #7b8494）。
   旧的 .bl-inline（整块替换候选位）仍保留给嘉宾搜索用——那里是「要不要加这个人」，
   替换候选位比让用户从列表里挑更清楚。 */
.bl-note {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 10px 14px;
    margin-bottom: 12px;
    background: #f7f8fa;
    border: 1px solid #e3e6eb;
    border-radius: 10px;
}
.bl-note-face {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    margin-top: 2px;
}
.bl-note-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.bl-note-sub {
    margin-top: 2px;
    font-size: 12px;
    line-height: 1.7;
    color: var(--muted);
}
/* 第 169 批：和名字同一条水平中线，不再用 vertical-align 硬挪 1px（那个 1px
   正是「字没上下居中」的来源：徽标整体上移，字看着贴顶）。改成固定高度 + flex 居中。 */
.badge-dispute {
    display: inline-flex;
    align-items: center;
    height: 20px;
    margin-left: 6px;
    padding: 0 8px;
    line-height: 1;
    vertical-align: middle;
    background: #eef1f5;
    color: #7b8494;
}
/* 劣迹徽标（第 176 批）：block 级是已定性、平台不予收录，比「争议」重一档，用暖红；
   尺寸与 .badge-dispute 完全一致（高 20px、inline-flex 居中），不额外调基线。 */
.badge-dispute.badge-dispute-block {
    background: #fbeeec;
    color: #b04a3e;
}

/* ==== 第 178 批（用户：「劣迹艺人提示框是大红叉」）：劣迹用红圈叉 ====
   劣迹（block）是「平台不予收录」，视觉要比「争议」重一档：红圈 + 红叉；
   争议（warn）仍是平嘴脸 face-neutral.png（167 批口径）。
   基类对齐 .bl-face（弹层标题内 22px 行内），另两处按各自位置覆盖尺寸。 */
.bl-x-face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 50%;
    background: #fdeceb;
    color: #d93025;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    vertical-align: -5px;
}
/* 细提示条（表格 / 列表上方一行） */
.bl-note .bl-x-face {
    width: 28px;
    height: 28px;
    margin: 0;
    font-size: 16px;
    vertical-align: 0;
}
/* 整块替换候选位（嘉宾搜索等） */
.bl-inline .bl-x-face {
    display: flex;
    width: 44px;
    height: 44px;
    margin: 0 auto 8px;
    font-size: 24px;
    vertical-align: 0;
}

/* ==== 第 179 批（用户：「弹窗ui优化一下，太丑了」——仅黑名单艺人）====
   风控弹层重排：顶部状态区（图标 + 结论 + 命中人名）先给结论，正文再解释，
   明细从项目符号列表改成可读的小卡片。只作用于 .blk-* 与 .bl-* 这几个类，
   不碰通用 .modal-head / .modal-body。 */
.blk-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 22px 24px 18px;
    background: linear-gradient(180deg, #f6f7f9, #ffffff);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.blk-head-block {
    background: linear-gradient(180deg, #fff4f3, #ffffff);
}
/* 图标统一 34px，红叉与平嘴脸视觉重量对齐 */
.blk-head .bl-x-face {
    width: 34px;
    height: 34px;
    margin: 0;
    font-size: 18px;
    vertical-align: 0;
    flex: 0 0 auto;
}
.blk-head .bl-face {
    width: 34px;
    height: 34px;
    margin: 0;
    vertical-align: 0;
    flex: 0 0 auto;
}
.blk-head-text { min-width: 0; }
.blk-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
}
.blk-head-block .blk-title { color: #b3261e; }
.blk-kicker {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
    word-break: break-all;
}
.blk-body { padding-top: 18px; }
.bl-modal-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.85;
    color: #3d434d;
}
/* 命中明细：一艺人一卡，弱底色 + 细边框，不再用 <ul> 小圆点 */
.blk-list {
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.bl-hit {
    margin: 0;
    padding: 10px 12px;
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    font-size: 12.5px;
    line-height: 1.7;
}
.bl-hit-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}
.bl-cat {
    flex: 0 0 auto;
    padding: 1px 8px;
    border-radius: 999px;
    background: #eef0f4;
    color: #6f7783;
    font-size: 11px;
    font-weight: 500;
}
.bl-hit-reason { color: #b04a3e; }
.bl-hit-basis {
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.7;
    margin-top: 2px;
}
/* 单键弹层（block 只有「知道了」）：按钮给个最小宽度，别缩成小方块 */
.blk-foot .btn { min-width: 96px; }

/* ============ 彩蛋弹幕（第 193 批） ============ */
/* 状态标签：通过 = 中性绿；被拦 = 暖红（与劣迹名单同一套语义色） */
.eggd-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}
.eggd-tag-ok {
    background: #e8f6ee;
    color: #1f7a4d;
}
.eggd-tag-block {
    background: #fdeceb;
    color: #b04a3e;
}

/* ============ 彩蛋管理（第 194 批） ============ */
/* 页签：彩蛋内容 / 用户弹幕 同页切换 */
.egg-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    margin: 0 0 18px;
    background: #f2f5f9;
    border-radius: 11px;
    width: fit-content;
}
.egg-tab {
    height: 34px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s, color .15s;
}
.egg-tab:hover { color: var(--text); }
.egg-tab.on {
    background: var(--surface);
    border-color: var(--border);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(31, 35, 41, .06);
}

/* 彩蛋卡片：一眼看清素材、关键词与状态 */
.egg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 16px;
}
.egg-card {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fcfdff;
    padding: 14px 16px 12px;
    min-width: 0;
}
.egg-card-top { display: flex; gap: 13px; align-items: flex-start; min-width: 0; }
.egg-card-thumb {
    width: 62px;
    height: 62px;
    flex-shrink: 0;
    border-radius: 10px;
    object-fit: contain;
    background: #0b0f16;
    border: 1px solid var(--border);
}
.egg-card-thumb-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f2f5f9;
    color: var(--muted);
    font-size: 11px;
}
.egg-card-main { flex: 1; min-width: 0; }
.egg-card-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
}
.egg-card-id {
    margin-top: 3px;
    font-size: 12px;
    color: var(--primary);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    word-break: break-all;
}
.egg-card-meta { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.45; }
.egg-card-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.egg-chip {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: #1b4fb0;
    font-size: 11.5px;
    line-height: 1;
    white-space: nowrap;
}
.egg-card-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px dashed var(--border);
}
.egg-card-ops .egg-del { color: var(--red); }
.egg-store-tip { margin: 16px 0 0; line-height: 1.6; }

/* 表单：分组标题 + 数字参数两列 */
.egg-form-sec { margin-bottom: 20px; }
.egg-form-sec h4 {
    margin: 0 0 10px;
    padding-bottom: 7px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    display: flex;
    align-items: baseline;
    gap: 9px;
}
.egg-form-sec h4 em { font-style: normal; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.egg-num-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.egg-num-line { display: flex; align-items: center; gap: 7px; }
.egg-num-line input { flex: 1; min-width: 0; }
.egg-unit { flex-shrink: 0; font-size: 12px; color: var(--muted); }
.egg-check { display: flex !important; align-items: center; gap: 8px; font-weight: 500 !important; }
.egg-check input { width: auto !important; height: auto !important; }

/* 素材一行：地址 + 缩略预览 */
.egg-asset-line { display: flex; align-items: center; gap: 10px; }
.egg-asset-line input { flex: 1; min-width: 0; }
.egg-asset-prev {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    background: #f2f5f9;
}
.egg-asset-prev img { width: 100%; height: 100%; object-fit: contain; }
.egg-asset-tag { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.3; padding: 0 3px; }
/* 素材上传：按钮跟在地址框后面，原生 file 控件藏起来 */
.egg-asset-up { flex-shrink: 0; }
.egg-up-input { display: none !important; }
/* 彩蛋启用时间输入（第 196 批：从每天钟点升级成 X月X日X点 的绝对时间） */
.egg-time-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.egg-time-line input[type="time"],
.egg-time-line input[type="datetime-local"] { width: auto !important; flex: 0 0 auto; max-width: 100%; }
.egg-time-sep { color: var(--muted); font-size: 13px; }
.egg-time-line .cell-sub { flex: 1 1 100%; }

/* 后台被拦弹幕：原话单独醒目标注，方便人工复审是不是误伤（第 196 批） */
.eggd-origin { display: flex; flex-direction: column; gap: 3px; }
.eggd-origin-tag {
    display: inline-block; align-self: flex-start;
    padding: 1px 7px; border-radius: 4px;
    background: var(--danger-bg, #fff1f0); color: var(--danger, #cf1322);
    font-size: 11px; line-height: 18px; font-weight: 600;
}
.eggd-origin-text { font-weight: 600; color: var(--text, #1f2329); word-break: break-all; }
.eggd-origin-why { font-size: 12px; color: var(--muted, #86909c); }

/* 第 219 批：争议名单「拦截 / 仅提示」两个胶囊 + 两类提示文案各一条通道 */
.bl-pills { display: flex; align-items: center; gap: 8px; flex: none; }
.bl-pill {
    display: inline-flex; align-items: center; gap: 6px;
    height: 30px; padding: 0 12px;
    font-size: 13px; font-weight: 500;
    color: var(--muted); background: var(--bg);
    border: 1px solid var(--border); border-radius: 999px;
    cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.bl-pill b { font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bl-pill:hover { color: var(--text); border-color: var(--border-strong, #c9cdd4); }
.bl-pill-block.is-on {
    color: var(--red); border-color: rgba(217, 48, 37, .45);
    background: rgba(217, 48, 37, .08);
}
.bl-pill-warn.is-on {
    color: #b26a00; border-color: rgba(255, 153, 0, .5);
    background: rgba(255, 153, 0, .12);
}
.bl-notice-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px; margin-top: 8px;
}
.bl-notice-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bl-notice-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); }
.bl-notice-col textarea { width: 100%; box-sizing: border-box; resize: vertical; }
@media (max-width: 900px) { .bl-notice-grid { grid-template-columns: minmax(0, 1fr); } }

/* 第 219 批：艺人管理 → 乐队主唱关联（艺人 → 乐队 一行一条） */
.band-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.band-row + .band-row { border-top: 1px dashed var(--border); }
.band-row input { min-width: 0; }
.band-row .band-name { flex: 0 0 220px; }
.band-join { flex: none; color: var(--muted); font-size: 13px; }
.band-kind { flex: 0 0 84px; }
.band-ops { margin-top: 10px; }
@media (max-width: 720px) {
    .band-row { flex-wrap: wrap; }
    .band-row .band-name { flex: 1 1 100%; }
}

/* 演出类型图标选择（2026-11-20 第 234 批）：6 张一套的 PNG 单选块 */
.show-type-icos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}
.show-type-ico-pick {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #e3e8ef;
    border-radius: 12px;
    background: #f7f9fc;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}
.show-type-ico-pick img { width: 30px; height: 30px; display: block; }
.show-type-ico-pick.on { border-color: #1769e0; background: #fff; box-shadow: 0 2px 8px rgba(23,105,224,.16); }

/*新增块开始*/
/* 第 238 批：演出档案按类型分段（段头 = 色点 + 类型名 + 条数 / 场次） */
.show-type-sec > td {
    padding: 9px 12px;
    background: #f6f9fd;
    border-top: 2px solid #e4ebf5;
    border-bottom: 1px solid #edf1f7;
}
.show-type-sec:first-child > td { border-top: none; }
.show-type-sec .sts {
    display: flex;
    align-items: center;
    gap: 8px;
}
.show-type-sec .sts-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: none;
}
.show-type-sec .sts-name {
    font-weight: 600;
    color: #1f2d3d;
    letter-spacing: .2px;
}
.show-type-sec .sts-count {
    color: #7a8699;
    font-size: 12px;
}
.field-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted, #7a8699);
}

/* 第 252 批：演出日期及时间的逐场编辑行（一行 = 日期 + 时间 + 删除） */
.sess-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.sess-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.sess-row input[type="date"],
.sess-row input[type="time"] {
    flex: 1;
    min-width: 0;
    padding: 6px 8px;
    border: 1px solid var(--border, #d9dfeb);
    border-radius: 6px;
    font-size: 13px;
}
/*新增块结束*/
