        :root {
    /* ---------- 全新低饱和功能色（色彩体系优化） ---------- */
    --presidium: #b68b40;        /* 琥珀金，替代原亮金 */
    --presidium-bg: #faf5eb;
    --dept: #3d6d94;            /* 灰蓝，替代原亮蓝 */
    --dept-bg: #ecf3f8;
    --group: #568559;           /* 苔绿，替代原亮青 */
    --group-bg: #edf4ee;
    --work: #4b5563;
    --work-bg: #f3f4f6;
    --prepare: #7a9a6b;         /* 柔和绿 */
    --prepare-bg: #f0f5ec;
    --inactive: #b35a5a;        /* 柔和红 */
    --inactive-bg: #f9eded;
    --member: #c48a2c;          /* 成员橙调低饱和 */
    --member-bg: #fcf4e5;

    --bg: #f5f3f0;              /* 暖灰纸质感背景 */
    --card: #ffffff;
    --text: #1e293b;
    --text2: #617388;
    --border: #e0ded9;          /* 暖灰边框 */
    --shadow: 0 1px 3px rgba(0,0,0,0.03);
    --radius: 14px;
    --transition: 0.2s ease;
}

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

body {
    font-family: -apple-system, "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    padding: 20px;
    max-width: 1300px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ---------- 顶部导航（改用深灰蓝背景，保持其他不变） ---------- */
.top-nav {
    background: #1e2a3a;        /* 深灰蓝替代原亮金背景 */
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.top-nav h1 { font-size: 22px; font-weight: 700; margin-right: 0; }

.nav-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.15);
    color: #fff;
    transition: var(--transition);
    white-space: nowrap;
}
.nav-btn.active {
    background: #fff;
    color: var(--presidium);
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

/* ---------- 通用按钮微调（只改颜色，不改变结构） ---------- */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    background: #fff;
    color: #1e293b;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    touch-action: manipulation;
    white-space: nowrap;
}
.btn:hover { filter: brightness(0.95); }
.btn-sm { padding: 6px 14px; font-size: 13px; border-radius: 8px; }
.btn-xs { padding: 4px 10px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: #3d6d94; color: #fff; }    /* 部门蓝变灰蓝 */
.btn-success { background: #568559; color: #fff; }    /* 绿 */
.btn-warning { background: #b68b40; color: #fff; }    /* 金 */
.btn-danger { background: #b35a5a; color: #fff; }
.btn-outline { background: transparent; border: 2px solid currentColor; }
.btn-outline:hover { background: rgba(255,255,255,0.1); }

/* ---------- 区块标题不变 ---------- */
.section { margin-bottom: 24px; }
.section-title {
    font-size: 18px; font-weight: 700; margin-bottom: 12px;
    display: flex; align-items: center; gap: 8px;
}

/* ---------- 职级管理子标题 ---------- */
.rank-header {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 16px; flex-wrap: wrap;
    padding-bottom: 12px; border-bottom: 2px solid #e2e8f0;
}
.rank-header h1 { font-size: 22px; font-weight: 700; color: #1e2a3a; }

/* ---------- 干部端管理子导航 ---------- */
.sub-nav {
    display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap;
    padding: 8px; background: #f1f5f9; border-radius: 10px;
}
.sub-nav-btn {
    padding: 8px 18px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    background: transparent; color: #475569;
    transition: all 0.2s; white-space: nowrap;
}
.sub-nav-btn:hover { background: rgba(255,255,255,0.6); }
.sub-nav-btn.active {
    background: #3d6d94; color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.stu-tab-content { min-height: 200px; }

/* ---------- 部门网格（自然高度，不再强行等高） ---------- */
.dept-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;         /* 新增：避免卡片强行拉伸等高 */
}
@media (max-width: 900px) {
    .dept-row { grid-template-columns: 1fr; }
}

/* ---------- 卡片基础（边框和阴影优化） ---------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid #f0efe9;  /* 极淡边框增加层次 */
    overflow: visible;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.card-header {
    padding: 14px 18px;
    font-weight: 800;
    font-size: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #e0dcd0 0%, #f5f3eb 100%);
    border-bottom: 2px solid rgba(0,0,0,0.06);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
    color: #2d3a4a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.5);
    letter-spacing: 0.8px;
}
.card-header span:first-child {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card-header .tag {
    background: rgba(255,255,255,0.7);
    color: #666;
    border: 1px solid rgba(0,0,0,0.08);
}
.card-body {
    padding: 12px 18px 18px;
    flex: 1;
    overflow-y: visible;      /* PC 默认不滚动 */
    max-height: none;
}
/* 移动端恢复滚动 */
@media (max-width: 768px) {
    .card-body {
        overflow-y: auto;
        max-height: 600px;
    }
}

/* ---------- 左侧色条（沿用原类名，颜色已随变量更新） ---------- */
.card.presidium { border-left-color: var(--presidium); }
.card.department .card-header {
    background: linear-gradient(135deg, #d9e2ed 0%, #ecf3f8 100%);color: #1e3b5a;
    text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}
.card.prepare { border-left-color: var(--prepare); }
.card.inactive { border-left-color: var(--inactive); opacity: 0.9; }

/* ---------- 通用项目行 ---------- */
.item-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px dashed #e9eef2; gap: 8px;
}
.item-row:last-child { border-bottom: none; }
.item-info { flex: 1; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }

/* ---------- 标签（保留所有原有类，仅颜色微调） ---------- */
.badge-title {
    background: #1e40af; color: #fff; padding: 2px 10px;
    border-radius: 6px; font-weight: 700; font-size: 14px;
}
.badge-person {
    background: #fff; color: #1e40af; padding: 2px 10px;
    border-radius: 6px; font-weight: 600; font-size: 13px; border: 1px solid #dbeafe;
}
.badge-detail {
    background: #f1f5f9; color: #334155; padding: 2px 10px;
    border-radius: 6px; font-size: 12px;
}

/* ---------- 成员标签（届别颜色柔和化） ---------- */
.member-tag {
    padding: 2px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
    border: 1px solid transparent;
    background: #f5f1eb;
    color: #6b5a4b;
}
.member-grade-2023 {
    background: #fdf2e3;
    color: #8b6914;
    border-color: #eed9b8;
}
.member-grade-2024 {
    background: #e4eff7;
    color: #2d5878;
    border-color: #bed9ec;
}
.member-grade-2025 {
    background: #e7f3e7;
    color: #3e623b;
    border-color: #c4ddc4;
}
.member-grade-other {
    background: #efe8fa;
    color: #5e3e8c;
    border-color: #d5c8ee;
}
/* ---------- 广播排班样式 ---------- */
.broadcast-page-wrap { margin-top: 16px; }
.broadcast-pools { display: flex; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.broadcast-pool-card { background:#fff; border-radius:12px; padding:12px 16px; box-shadow:0 1px 3px rgba(0,0,0,0.05); flex:1; min-width:200px; }
.broadcast-pool-card h3 { font-size:15px; color:#1a56db; margin-bottom:8px; }
.broadcast-pool-list { display:flex; flex-direction:column; gap:4px; min-height:60px; max-height:260px; overflow-y:auto; }
.broadcast-person-card, .broadcast-topic-card {
    background:#f8fafc; border:1px solid var(--border); border-radius:6px;
    padding:4px 10px; font-size:13px; display:flex; align-items:center; justify-content:space-between;
    cursor:grab; user-select:none;
}
.broadcast-person-card .name { font-weight:600; }
.broadcast-person-card .meta { font-size:11px; color:var(--text2); }
.broadcast-person-card .actions, .broadcast-topic-card .actions { display:flex; gap:4px; z-index:10; }
.broadcast-person-card .edit-btn, .broadcast-person-card .del-btn, .broadcast-topic-card .del-btn {
    color:#64748b; cursor:pointer; background:none; border:none; font-size:14px; padding:4px 8px;
    border-radius:4px; transition:all 0.2s;
}
.broadcast-person-card .edit-btn:hover { color:#3b82f6; background:#eff6ff; }
.broadcast-person-card .del-btn:hover, .broadcast-topic-card .del-btn:hover { color:#dc2626; background:#fef2f2; }
/* 已排班状态的人员名片 */
.broadcast-person-card.broadcast-scheduled {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfccb 100%);
    border-color: #86efac;
    position: relative;
}
.broadcast-person-card.broadcast-scheduled .name { color: #166534; }
.broadcast-person-card.broadcast-scheduled .meta { color: #15803d; }
.broadcast-person-card.broadcast-scheduled::after {
    content: '';
    position: absolute;
    top: 2px; right: 2px;
    width: 0; height: 0;
    border-top: 14px solid #22c55e;
    border-left: 14px solid transparent;
    border-radius: 0 4px 0 0;
}
.broadcast-person-card .schedule-badge {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    margin-left: 6px;
    line-height: 1.4;
}
.broadcast-person-card .schedule-badge.badge-ok {
    background: #22c55e; color: #fff;
}
.broadcast-person-card .schedule-badge.badge-info {
    background: #3b82f6; color: #fff;
}
.broadcast-person-card .schedule-badge.badge-done {
    background: #16a34a; color: #fff;
}
.broadcast-topic-card { background:#fef3c7; border-color:#fbbf24; }
.broadcast-schedule-table-wrap { overflow-x:auto; background:#fff; border-radius:12px; padding:0; box-shadow:0 1px 3px rgba(0,0,0,0.05); }
.broadcast-schedule-table { width:100%; border-collapse:collapse; table-layout:fixed; min-width:700px; }
.broadcast-schedule-table th, .broadcast-schedule-table td { border:1px solid #e5e7eb; padding:12px 10px; text-align:center; vertical-align:middle; font-size:15px; }
.broadcast-schedule-table th { background:#f1f5f9; font-weight:700; color:#1e293b; white-space:nowrap; }
.broadcast-schedule-table .col-day { width:70px; }
.broadcast-schedule-table .col-date { display:none; }
.broadcast-schedule-table .col-broadcaster { width:180px; }
.broadcast-schedule-table .col-topic { width:180px; }
.broadcast-schedule-table .col-status { width:110px; }
.broadcast-schedule-table .col-record { width:150px; }
.broadcast-slot { min-height:56px; display:flex; flex-direction:column; gap:6px; align-items:center; justify-content:center; }
.broadcast-slot .schedule-person-chip {
    background:#dbeafe; border:1px solid #93c5fd; border-radius:8px; padding:6px 14px;
    font-size:15px; font-weight:600; color:#1d4ed8; display:inline-flex; align-items:center; gap:6px; white-space:nowrap;
}
.broadcast-slot .schedule-person-chip .rm { color:#dc2626; cursor:pointer; font-weight:bold; font-size:14px; }
.broadcast-topic-slot { min-height:40px; display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:4px; }
.broadcast-topic-slot .schedule-topic-chip {
    background:#fef3c7; border:1px solid #fbbf24; border-radius:8px; padding:6px 14px;
    font-size:15px; font-weight:600; color:#b45309; display:inline-flex; align-items:center; gap:6px;
}
.broadcast-topic-slot .schedule-topic-chip .rm { color:#dc2626; cursor:pointer; font-weight:bold; font-size:14px; }
.broadcast-status-cell { cursor:pointer; font-size:15px; padding:4px 10px; border-radius:6px; display:inline-block; }
.broadcast-status-unknown { color:#9ca3af; }
.broadcast-status-pending { color:#d97706; background:#fef3c7; }
.broadcast-status-done { color:#059669; background:#d1fae5; }
.broadcast-record-cell { font-size:15px; }
.broadcast-record-ok { color:#059669; }
.broadcast-record-warn { color:#dc2626; }
.broadcast-toolbar { display:flex; gap:8px; align-items:center; margin-bottom:12px; flex-wrap:wrap; }
.broadcast-toolbar .btn { font-size:13px; }
.broadcast-export-title { text-align:center; font-size:18px; font-weight:700; margin-bottom:8px; }
html2canvas .broadcast-export-area { padding:20px 10px; background:#fff; }
@media (max-width:768px) { .broadcast-pools { flex-direction:column; } }

/* 广播排班模态框 */
.broadcast-modal-overlay {
    position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.4);
    display:flex; align-items:center; justify-content:center; z-index:9999;
}
.broadcast-modal {
    background:#fff; border-radius:16px; padding:28px 32px; width:420px; max-width:90vw;
    box-shadow:0 8px 32px rgba(0,0,0,0.15); max-height:80vh; overflow-y:auto;
}
.broadcast-modal h3 { margin:0 0 16px; font-size:18px; color:#1e293b; }
.broadcast-modal label { display:block; margin-bottom:10px; font-size:14px; color:#374151; }
.broadcast-modal label input[type="text"],
.broadcast-modal label select,
.broadcast-modal textarea,
.broadcast-modal input[type="text"] {
    width:100%; padding:6px 10px; border:1px solid #d1d5db; border-radius:6px; font-size:13px; box-sizing:border-box; margin-top:4px;
}
.broadcast-modal textarea { min-height:120px; resize:vertical; }
.broadcast-export-area { padding:20px 10px; background:#fff; }

/* ========== 去内联样式工具类（减少硬编码） ========== */
/* 布局 */
.flex-center { display: flex; align-items: center; }
.flex-col { display: flex; flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-4 { gap: 4px; }
.gap-6 { gap: 6px; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
/* 间距 */
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-12 { margin-bottom: 12px; }
.mr-4 { margin-right: 4px; }
.ml-6 { margin-left: 6px; }
.p-10 { padding: 10px; }
.p-12 { padding: 12px; }
.p-14 { padding: 14px; }
/* 圆角 */
.radius-6 { border-radius: 6px; }
.radius-8 { border-radius: 8px; }
.radius-10 { border-radius: 10px; }
/* 文字 */
.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-muted { color: #888; }
.text-sub { color: #666; }
.text-error { color: #b35a5a; }
.text-dept { color: #3d6d94; }
.text-group { color: #568559; }
.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
/* 背景 */
.bg-light { background: #f8fafc; }
.bg-warm { background: #faf6ed; }
.bg-soft-green { background: #f9fbf9; }
.bg-soft-purple { background: #f8f6f9; }
.bg-white { background: #fff; }
/* 边框 */
.border-light { border: 1px solid #e0ded9; }
.border-left-accent { border-left: 3px solid; }
/* 小组块 */
.group-card {
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    margin-bottom: 8px;
}
.group-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}
/* 工作项标签 */
.work-tag {
    background: #eef1f5;
    border: 1px solid #dce1e8;
    border-radius: 6px;
    padding: 2px 8px;
    color: #3d6d94;
    font-weight: 500;
    font-size: 11px;
}
/* 部门小结 */
.dept-summary {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed #e0e0e0;
    font-size: 11px;
    color: #888;
}
/* 主席团顾问团内部 */
.presidium-inner {
    border-radius: 10px;
    padding: 14px;
}
.presidium-inner-header {
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 10px;
}
/* ---------- 小组块与工作项不变 ---------- */
.group-block {
    background: #f8fafc; border-radius: 10px; padding: 10px 12px;
    margin-bottom: 8px;
}
.group-title { font-weight: 700; margin-bottom: 4px; }
.group-leader { font-size: 14px; color: #334155; margin-bottom: 6px; }
.work-item {
    font-size: 13px; 
    padding: 6px 10px 6px 20px;
    color: #333;
    display: flex; 
    align-items: baseline; 
    gap: 6px;
    background: #f4f6f9;
    border-radius: 6px;
    margin-bottom: 4px;
}

/* ---------- 编辑区域不变 ---------- */
.edit-area {
    margin-top: 10px; padding: 10px; background: #fff;
    border: 1.5px dashed var(--border); border-radius: 10px;
}
.drag-row {
    display: flex; align-items: flex-start; gap: 6px;
    margin-bottom: 8px; background: #f9fafb; padding: 8px;
    border-radius: 8px;
}
.drag-handle {
    cursor: grab; font-size: 20px; color: #9ca3af; padding: 4px;
    user-select: none; line-height: 1; margin-top: 6px;
}
.drag-content { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.form-row {
    display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.form-row select, .form-row input {
    padding: 6px 8px; border: 1px solid #cbd5e1;
    border-radius: 6px; font-size: 13px;
}
.member-select { height: auto; min-height: 32px; width: 100%; }
.work-sub-block {
    margin-left: 20px; margin-top: 4px; width: calc(100% - 20px);
}

/* ---------- 专项管理面板不变 ---------- */
.panel {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 16px;
}
.dict-nav .nav-item:hover { background: #f1f5f9; }
.dict-nav .nav-item.active { background: var(--dept-bg); color: var(--dept); font-weight: 600; }
.dict-drag-area .drag-row {
    padding: 5px 10px;
    margin-bottom: 4px;
    align-items: center;
}
.dict-drag-area .drag-handle {
    margin-top: 0;
    font-size: 18px;
}
.dict-drag-area .drag-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.dict-drag-area .drag-content input[type="text"] {
    flex: 1;
    min-width: 120px;
}
.dict-filter {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
}
.dict-filter input {
    flex: 1;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
}

/* ---------- 成员分类盒子不变 ---------- */
.member-category-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}
.member-category-box {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    min-height: 60px;
}
.member-category-box h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    cursor: grab;
    user-select: none;
}
.member-card-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 30px;
}
.member-card {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: grab;
    user-select: none;
    transition: box-shadow 0.1s;
}
.member-card:hover {
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.member-card .card-handle {
    color: #9ca3af;
    font-size: 14px;
    line-height: 1;
}
.member-card .card-del {
    margin-left: auto;
    cursor: pointer;
    color: #ef4444;
    font-weight: bold;
    font-size: 14px;
    line-height: 1;
}
.member-card.drag-over {
    outline: 2px dashed #1a56db;
}
.member-category-box.drag-over {
    outline: 2px dashed #b8860b;
}

/* ---------- 干部名单状态栏（升级为卡片风格） ---------- */
.member-status-bar-wrap {
    margin-top: 24px;
    border-top: 2px solid var(--border);
    padding-top: 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.member-status-bar-wrap h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 状态小卡片改为圆角柔色卡片 */
.status-card {
    background: #f5f3f0;
    border: 1.5px solid #e0ded9;
    border-radius: 20px;       /* 全圆角药丸形 */
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.status-card.used {
    background: #ecf3f8;
    border-color: #3d6d94;
    color: #3d6d94;
    font-weight: 600;
}

.status-card.duplicate .dup-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #b35a5a;
    color: #fff;
    border-radius: 10px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}
/* 图例提示 */
.member-status-legend {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    color: #666;
}
.member-status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
/* ========== 拖拽反馈增强 ========== */
/* 被拖拽的源元素：保留占位虚线框 */
.drag-row.dragging-source,
.dict-item.dragging-source,
.member-drag-tag.dragging-source,
.member-card.dragging-source {
    opacity: 0.3;
    position: relative;
}
.drag-row.dragging-source::after,
.dict-item.dragging-source::after,
.member-drag-tag.dragging-source::after,
.member-card.dragging-source::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border: 2px dashed #999;
    border-radius: 6px;
    pointer-events: none;
}

/* 拖拽经过的目标元素：高亮边框 */
.drag-row.drag-over-hover:not(.dragging-source),
.dict-item.drag-over-hover:not(.dragging-source),
.member-drag-tag.drag-over-hover:not(.dragging-source),
.member-card.drag-over-hover:not(.dragging-source) {
    outline: 2px solid #3d6d94;
    outline-offset: -2px;
    box-shadow: 0 0 4px rgba(61,109,148,0.3);
}

/* 成员标签插入指示线（左右对比） */
.member-drag-tag.drop-before {
    border-left: 3px solid #b68b40;
    padding-left: 5px;
    margin-left: -2px;
}
.member-drag-tag.drop-after {
    border-right: 3px solid #b68b40;
    padding-right: 5px;
    margin-right: -2px;
}

/* 盒子拖拽高亮保留原有，额外加强 */
.member-category-box.drag-over-hover {
    background: #fdf6ed;
    box-shadow: 0 0 6px rgba(184,107,64,0.2);
}
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #059669;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.toast.show {
    opacity: 1;
}
.toast.error {
    background: #dc2626;
}
/* 导出时的 .col-* 辅助类 */
.col-narrow { width: 80px; } .col-medium { width: 150px; }

/* ========== 新增：主席团·顾问团通栏区域专用样式 ========== */
#presidium-adviser-zone .card-body {
    display: flex;
    gap: 16px;
    align-items: stretch;
}
#presidium-adviser-zone .card-body > div:first-child {font-size: 17px !important; 
    /* 主席团内部双列模式下，每个条目样式微调 */
}
#presidium-adviser-zone .badge-title {
    font-size: 16px !important;
}
#presidium-adviser-zone .badge-person {
    font-size: 16px !important;
    padding: 3px 12px;
}
#presidium-adviser-zone .badge-detail {
    font-size: 13px !important;
}

/* 顾问团右侧区域的微调 */
#presidium-adviser-zone .badge-person {
    font-size: 16px !important;
    padding: 3px 12px;
}

/* 主席团单列布局（显示模式） */
.presidium-column-display {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 主席团单列布局（编辑模式） */
.presidium-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
/* ========== 响应式优化 ========== */
.prepare-inactive-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 768px) {
    .prepare-inactive-grid { grid-template-columns: 1fr;
    }
    /* 主席团与顾问团在窄屏下纵向堆叠 */
    #presidium-adviser-zone .card-body {
        flex-direction: column !important;
    }
    #presidium-adviser-zone .card-body > div {
        flex: 1 1 100% !important;
        min-width: 0 !important;
    }

    /* 部门卡片一列 */
    .dept-row {
        grid-template-columns: 1fr;
    }
    /* 顶部导航在小屏下减小内边距 */
.top-nav {
    padding: 8px 12px;
}
.top-nav h1 {
    font-size: 18px;
}

/* 按钮缩小 */
.nav-btn, .btn {
    padding: 6px 14px;
    font-size: 12px;
}

/* 小屏下 tabs 保持横向滚动，无需额外修改 */
.dict-tabs {
    gap: 4px;
    padding-bottom: 6px;
}
.dict-tabs .nav-item {
    padding: 6px 12px;
    font-size: 13px;
}
/* 成员分类盒子堆叠 */
.member-category-container {
    grid-template-columns: 1fr;
}
}
@media (max-width: 600px) {
    #presidium-adviser-zone .card-body > div:first-child > div > div {
        flex-direction: column !important;
    }
}
/* 确保原有 drag-row 在顾问编辑时手柄居中（JS 内联可能覆盖，这里兜底） */
#presidium-adviser-zone .drag-handle {
    margin-top: 0;
}
/* ---------- 专项管理顶部 tabs ---------- */
.dict-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-bottom: 2px solid var(--border);
    padding-bottom: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dict-tabs .nav-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 10px 10px 0 0;
    background: #f1f5f9;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -2px; /* 遮盖底部 border */
}

.dict-tabs .nav-item:hover {
    background: #e2e8f0;
}

.dict-tabs .nav-item.active {
    background: #fff;
    color: var(--dept);
    font-weight: 600;
    border-color: var(--border);
    border-bottom-color: #fff; /* 与下方内容区分隔 */
    box-shadow: 0 -2px 6px rgba(0,0,0,0.03);
}

/* 内容区域去除左侧内边距 */
.dict-content-panel {
    padding-left: 0;
}
/* ========== 布局工具类（消除内联样式） ========== */
.flex-row { display: flex; align-items: center; gap: 6px; }
.flex-col { display: flex; flex-direction: column; gap: 8px; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-10 { margin-bottom: 10px; }
.mt-4 { margin-top: 4px; }
.mt-6 { margin-top: 6px; }
.p-10 { padding: 10px; }
.radius-8 { border-radius: 8px; }
.radius-10 { border-radius: 10px; }
.text-xs { font-size: 10px; }
.text-sm { font-size: 12px; }
.text-md { font-size: 14px; }
.text-muted { color: #666; }
.text-gray { color: #888; }
.bg-light { background: #f8fafc; }
/* ========== 全新高亮样式 ========== */
.status-card.highlight-active {
    background: #fee2e2 !important;
    border-color: #b35a5a !important;
    color: #991b1b !important;
    font-weight: 700;
}
.highlight-name-badge {
    outline: 2px solid #dc2626 !important;
    outline-offset: 1px;
    border-radius: 4px;
}
.top-nav .btn-outline {
    border-color: rgba(240, 236, 15, 0.7);
    color: #333497ec;
    background: #dfd5d5ec;
}

/* ========== 稿件管理模态框样式 ========== */
.bsm-modal-backdrop {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: bsm-fade-in 0.15s ease-out;
}
@keyframes bsm-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsm-slide-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.bsm-modal {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 720px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: bsm-slide-up 0.2s ease-out;
    overflow: hidden;
}
.bsm-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}
.bsm-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.bsm-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.bsm-close:hover { background: rgba(255,255,255,0.35); }
.bsm-filters {
    padding: 12px 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #fafbff;
}
.bsm-filters label { font-size: 13px; color: #64748b; font-weight: 500; }
.bsm-filters input, .bsm-filters select {
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.bsm-filters input { width: 140px; }
.bsm-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 20px;
}
.bsm-summary {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    padding: 8px 12px;
    background: #f1f5f9;
    border-radius: 6px;
}
.bsm-empty {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
    font-size: 14px;
}
.bsm-empty .bsm-empty-icon { font-size: 48px; margin-bottom: 10px; }
.bsm-list { display: flex; flex-direction: column; gap: 10px; }
.bsm-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px 14px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bsm-item:hover { border-color: #667eea; box-shadow: 0 2px 8px rgba(102,126,234,0.1); }
.bsm-item-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.bsm-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.bsm-item-date {
    font-weight: 600;
    color: #1a56db;
    font-size: 14px;
}
.bsm-item-name {
    padding: 2px 8px;
    background: #f0fdf4;
    color: #16a34a;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}
.bsm-item-created {
    font-size: 11px;
    color: #94a3b8;
}
.bsm-item-preview {
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
    padding: 6px 10px;
    background: #f8fafc;
    border-radius: 5px;
    border-left: 3px solid #cbd5e1;
    white-space: pre-wrap;
    max-height: 80px;
    overflow: hidden;
}
.bsm-item-preview.expanded { max-height: none; }
.bsm-item-actions {
    display: flex;
    gap: 6px;
}
.bsm-item-actions button {
    padding: 4px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    background: #fff;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}
.bsm-item-actions button:hover { border-color: #667eea; color: #667eea; }
.bsm-item-actions .bsm-del-btn:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.bsm-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #fafbff;
}
.bsm-footer .btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
}
.bsm-footer .btn-close { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
.bsm-footer .btn-close:hover { background: #f1f5f9; }
.bsm-loading {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
    font-size: 14px;
}
.bsm-loading::after {
    content: '';
    display: inline-block;
    width: 14px; height: 14px;
    border: 2px solid #cbd5e1;
    border-top-color: #667eea;
    border-radius: 50%;
    margin-left: 8px;
    animation: bsm-spin 0.6s linear infinite;
}
@keyframes bsm-spin { to { transform: rotate(360deg); } }

/* 播出状态徽标：已播 / 待播 / 顺延（手动标记未播） */
.bsm-play-badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.bsm-play-played { background: #dcfce7; color: #16a34a; }
.bsm-play-ready { background: #dbeafe; color: #2563eb; }
.bsm-play-postponed { background: #fef3c7; color: #d97706; }
.bsm-play-orphan { background: #fee2e2; color: #dc2626; }
.bsm-item-actions .bsm-play-btn:hover { border-color: #d97706; color: #d97706; background: #fffbeb; }
.bsm-item-actions .bsm-play-btn.bsm-restore:hover { border-color: #667eea; color: #667eea; background: #eef2ff; }

@media (max-width: 600px) {
    .bsm-modal { width: 95%; max-height: 92vh; }
    .bsm-filters { flex-direction: column; align-items: stretch; }
    .bsm-filters input { width: 100%; }
    .bsm-item-top { flex-direction: column; align-items: flex-start; gap: 8px; }
    .bsm-item-actions { align-self: flex-end; }
}

/* ========== 积分录入·干部人员池选择弹层 ========== */
#pts-pool-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    animation: pts-fade-in 0.15s ease-out;
}
@keyframes pts-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pts-slide-up { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.pts-pool-modal {
    background: #fff;
    border-radius: 16px;
    width: 92%;
    max-width: 560px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: pts-slide-up 0.2s ease-out;
    overflow: hidden;
}
.pts-pool-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #3d6d94 0%, #4a7fa6 100%);
    color: #fff;
}
.pts-pool-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.pts-pool-subtitle { font-size: 13px; font-weight: 400; margin-left: 8px; opacity: 0.85; }
.pts-pool-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.pts-pool-close:hover { background: rgba(255,255,255,0.35); }
.pts-pool-toolbar {
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    border-bottom: 1px solid #f1f5f9;
    background: #f8fafc;
}
.pts-pool-search {
    flex: 1;
    min-width: 140px;
    padding: 6px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.pts-pool-search:focus { outline: none; border-color: #3d6d94; box-shadow: 0 0 0 2px rgba(61,109,148,0.15); }
.pts-pool-tool-btn { background: #fff; border-color: #cbd5e1; color: #475569; }
.pts-pool-tool-btn:hover { border-color: #3d6d94; color: #3d6d94; }
.pts-pool-count { font-size: 13px; color: #64748b; }
.pts-pool-count b { color: #3d6d94; }
.pts-pool-grid {
    flex: 1;
    overflow-y: auto;
    padding: 14px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    align-content: start;
}
.pts-pool-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
    padding: 40px 0;
}
.pts-pool-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.15s;
}
.pts-pool-card:hover {
    border-color: #93b3cc;
    box-shadow: 0 2px 8px rgba(61,109,148,0.12);
    transform: translateY(-1px);
}
.pts-pool-card.selected {
    border-color: #3d6d94;
    background: linear-gradient(135deg, #ecf3f8 0%, #f4f9fd 100%);
    box-shadow: 0 2px 8px rgba(61,109,148,0.18);
}
.pts-pool-avatar {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: #dbe6ef;
    color: #3d6d94;
    font-weight: 700;
    font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pts-pool-card.selected .pts-pool-avatar { background: #3d6d94; color: #fff; }
.pts-pool-info { flex: 1; min-width: 0; }
.pts-pool-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.pts-pool-pos { font-size: 11px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pts-pool-check {
    width: 18px; height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    font-size: 11px;
    color: transparent;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s;
}
.pts-pool-card.selected .pts-pool-check {
    background: #3d6d94;
    border-color: #3d6d94;
    color: #fff;
    font-weight: 700;
}
.pts-pool-footer {
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}
.pts-pool-cancel-btn { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
.pts-pool-cancel-btn:hover { background: #f1f5f9; }
.pts-pool-ok-btn { padding: 8px 24px; }

/* 选择干部按钮与已选姓名标签 */
.pts-cadre-picker-btn {
    border: 2px solid #cbd5e1;
    background: #fff;
    color: #475569;
    padding: 8px 18px;
    font-size: 14px;
    justify-content: center;
}
.pts-cadre-picker-btn:hover { border-color: #3d6d94; color: #3d6d94; }
.pts-cadre-count-badge {
    background: #3d6d94;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
}
.pts-selected-chips { margin-top: 8px; max-width: 320px; }
.pts-selected-tip { font-size: 12px; color: #3d6d94; font-weight: 600; margin-bottom: 4px; }
.pts-selected-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.pts-selected-chip {
    background: #ecf3f8;
    border: 1px solid #b9d0e2;
    color: #2d5878;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 6px 3px 10px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.pts-selected-chip .chip-rm {
    cursor: pointer;
    color: #94a3b8;
    font-size: 11px;
    padding: 1px 4px;
    border-radius: 50%;
    transition: all 0.15s;
}
.pts-selected-chip .chip-rm:hover { color: #dc2626; background: #fef2f2; }

@media (max-width: 600px) {
    .pts-pool-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); padding: 12px 14px; }
    .pts-pool-toolbar { padding: 10px 14px; }
    .pts-pool-header { padding: 14px 16px; }
}

/* ==================== 工作台管理（wbm-*）==================== */
.wbm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.wbm-stat-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.wbm-stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    border-color: #c7d2fe;
}
.wbm-stat-card.active {
    border-color: #6366f1;
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.25);
    background: linear-gradient(180deg, #eef2ff, #fff);
}
.wbm-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.18);
    flex-shrink: 0;
}
.wbm-stat-info { min-width: 0; }
.wbm-stat-num { font-size: 22px; font-weight: 800; color: #0f172a; line-height: 1.1; }
.wbm-stat-label { font-size: 12px; color: #475569; margin-top: 2px; }
.wbm-stat-week { font-size: 11px; color: #94a3b8; }

.wbm-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.wbm-ctl {
    padding: 7px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 13px;
    background: #fff;
    color: #0f172a;
}
.wbm-ctl:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

.wbm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 12px;
}
.wbm-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px 30px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
    transition: transform .15s ease, box-shadow .15s ease;
}
.wbm-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.wbm-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #6366f1, #a855f7);
    opacity: .8;
}
.wbm-card-who { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.wbm-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.wbm-grade {
    font-size: 11px;
    font-weight: 500;
    color: #475569;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 1px 7px;
}
.wbm-card-main { font-size: 13px; color: #334155; line-height: 1.7; }
.wbm-strong { font-weight: 700; color: #0f172a; }
.wbm-sub { color: #64748b; font-size: 12px; margin-top: 3px; }
.wbm-done { text-decoration: line-through; color: #94a3b8; }
.wbm-card-actions { position: absolute; right: 12px; bottom: 8px; display: flex; gap: 6px; }
.wbm-card-time { position: absolute; left: 14px; bottom: 9px; font-size: 11px; color: #94a3b8; }
.wbm-loading, .wbm-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #94a3b8;
    padding: 28px 0;
    font-size: 13px;
}

/* 编辑弹层 */
.wbm-modal-box {
    background: #fff;
    border-radius: 18px;
    width: min(560px, 92vw);
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
    animation: wbmPop .18s ease;
    overflow: hidden;
}
@keyframes wbmPop {
    from { transform: translateY(14px) scale(.97); opacity: 0; }
    to   { transform: none; opacity: 1; }
}
.wbm-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: linear-gradient(135deg, #eef2ff, #faf5ff);
    border-bottom: 1px solid #e2e8f0;
}
.wbm-modal-head h3 { margin: 0; font-size: 15px; color: #1e1b4b; }
.wbm-modal-close {
    border: none;
    background: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 16px;
    color: #64748b;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.15);
}
.wbm-modal-body { padding: 16px 20px; overflow-y: auto; }
.wbm-modal-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}
.wbm-field { display: block; margin-bottom: 12px; }
.wbm-field > span { display: block; font-size: 12px; color: #475569; margin-bottom: 4px; font-weight: 600; }
.wbm-field input,
.wbm-field select,
.wbm-field textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 14px;
    color: #0f172a;
    box-sizing: border-box;
    background: #fff;
}
.wbm-field textarea { resize: vertical; }
.wbm-field input:focus,
.wbm-field select:focus,
.wbm-field textarea:focus { outline: none; border-color: #6366f1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }

@media (max-width: 640px) {
    .wbm-cards { grid-template-columns: 1fr; }
    .wbm-stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 流动红旗按周（周卡片类别行/多选班级/获评班级 chips） ---- */
.wbm-avatar-emoji { font-size: 15px; } /* 工作主导卡片头像：emoji 图标位，底色由内联指定 */
.wbm-work-title { font-size: 14px; font-weight: 800; color: #0f172a; }
.wbm-who-mini { margin-left: auto; font-size: 11px; font-weight: 500; color: #94a3b8; white-space: nowrap; }
.wbm-rec-chip {
    display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px;
    font-size: 12px; font-weight: 600; color: #334155; background: #f1f5f9;
    border: 1px solid #e2e8f0;
}
.wbm-detail-ops { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.wbm-flag-classes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.wbm-flag-cat {
    display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
    margin-top: 8px; font-size: 13px; color: #1e293b;
}
.wbm-flag-cat b {
    color: #1e40af; background: #dbeafe; /* 类别标题用蓝色底，与橙色班级 chips 区分层级 */
    padding: 2px 9px; border-radius: 8px; white-space: nowrap;
}
.wbm-cat-ops { float: right; display: inline-flex; align-items: center; gap: 6px; font-weight: 400; }
.wbm-cat-ops select {
    width: auto; padding: 2px 8px; font-size: 12px; color: #334155;
    border: 1px solid #cbd5e1; border-radius: 8px; background: #fff;
}
.wbm-flag-chip {
    display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px;
    font-size: 12px; font-weight: 600; color: #9a3412; background: #fff7ed;
    border: 1px solid #fed7aa;
}
.wbm-check-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 8px; max-height: 220px; overflow-y: auto;
    padding: 10px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc;
}
.wbm-check {
    display: flex; align-items: center; gap: 6px; padding: 6px 8px;
    border-radius: 8px; background: #fff; border: 1px solid #e2e8f0;
    font-size: 13px; cursor: pointer; user-select: none; transition: all .12s;
}
.wbm-check:hover { border-color: #94a3b8; }
.wbm-check input { accent-color: #f97316; margin: 0; }
.wbm-check input:checked + i { font-style: normal; color: #c2410c; font-weight: 700; }
.wbm-check i { font-style: normal; }

/* ---- 采编素材：生活照缩略预览 ---- */
.wbm-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.wbm-thumbs img {
    width: 64px; height: 64px; object-fit: cover; border-radius: 8px;
    border: 1px solid #e2e8f0; cursor: pointer; transition: transform .12s;
}
.wbm-thumbs img:hover { transform: scale(1.06); }
/* 表单内可删除缩略：右上角 × 角标 */
.wbm-thumb-del { position: relative; }
.wbm-thumb-del span {
    position: absolute; top: -6px; right: -6px; width: 18px; height: 18px;
    border-radius: 50%; background: #ef4444; color: #fff; font-size: 12px;
    line-height: 18px; text-align: center; cursor: pointer; z-index: 1;
}

/* ===== 工作台管理：周卡片明细弹层（flag 按类别分组 / award 上报明细） ===== */
.wbm-detail-list { display: flex; flex-direction: column; gap: 8px; }
.wbm-detail-sec { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: #9a3412; }
.wbm-detail-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
    font-size: 14px; color: #1e293b;
}
.wbm-detail-who { color: #64748b; font-size: 12.5px; white-space: nowrap; }

/* ===== 工作台管理：工作记录汇总（按学期检索） ===== */
.wbm-sum-box { max-width: 720px; }
.wbm-sum-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.wbm-sum-range { color: #64748b; font-size: 12.5px; }
.wbm-sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
@media (max-width: 640px) { .wbm-sum-grid { grid-template-columns: repeat(2, 1fr); } }
.wbm-sum-cell {
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 12px 6px; border-radius: 12px; background: #f8fafc; border: 1px solid #e2e8f0;
    cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.wbm-sum-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.wbm-sum-cell b { font-size: 20px; color: #0f172a; }
.wbm-sum-cell i { font-style: normal; font-size: 12px; color: #64748b; }
.wbm-sum-icon {
    width: 30px; height: 30px; border-radius: 9px; color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.wbm-sum-press {
    display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
    padding: 10px 12px; border-radius: 12px; margin-bottom: 12px;
    background: linear-gradient(135deg, #ecfeff, #e0f2fe); font-size: 13px; color: #0c4a6e;
}
.wbm-sum-sec { margin-bottom: 14px; }
.wbm-sum-sec h4 { margin: 0 0 6px; font-size: 13px; color: #334155; display: flex; align-items: center; gap: 6px; }
.wbm-sum-sec h4 span { font-size: 11px; color: #94a3b8; font-weight: 500; }
.wbm-sum-empty { color: #94a3b8; font-size: 12.5px; padding: 2px 0 4px; }

/* ===== 工作台管理：采编素材库（按学生浏览 / 预览 / 下载） ===== */
.wbm-lib-box { max-width: 640px; }
.wbm-lib-count { color: #64748b; font-size: 12.5px; margin-bottom: 10px; }
.wbm-press-row {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 8px;
    background: #fff; transition: border-color .12s;
}
.wbm-press-row:hover { border-color: #94a3b8; }
.wbm-press-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wbm-press-info b { font-size: 14px; color: #0f172a; display: flex; align-items: center; gap: 6px; }
.wbm-press-info b i { font-style: normal; font-size: 12px; color: #64748b; font-weight: 500; }
.wbm-press-content {
    white-space: pre-wrap; font-size: 13.5px; line-height: 1.7; color: #1e293b;
    padding: 10px 12px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0;
    max-height: 300px; overflow-y: auto;
}

/* ========== 广播历史记录（日历视图） ========== */
.bch-backdrop, .bch-day-backdrop {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    animation: bsm-fade-in 0.15s ease-out;
}
.bch-day-backdrop { z-index: 10020; }
.bch-modal {
    background: #fff; border-radius: 14px;
    width: min(1360px, 96vw); height: 94vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    animation: bsm-slide-up 0.2s ease-out;
}
.bch-day-modal {
    background: #fff; border-radius: 14px;
    width: min(760px, 94vw); max-height: 90vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: bsm-slide-up 0.2s ease-out;
}
.bch-header {
    padding: 14px 20px; display: flex; align-items: center; gap: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: #fff;
}
.bch-header h3 { margin: 0; font-size: 17px; font-weight: 600; white-space: nowrap; }
.bch-stat { flex: 1; font-size: 13px; opacity: .95; }
.bch-stat b { font-weight: 700; }
.bch-s-green { color: #bbf7d0; } .bch-s-blue { color: #bfdbfe; }
.bch-s-amber { color: #fde68a; } .bch-s-red { color: #fecaca; }
.bch-close {
    background: rgba(255,255,255,0.2); border: none; color: #fff;
    font-size: 22px; width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.bch-close:hover { background: rgba(255,255,255,0.35); }
.bch-toolbar {
    padding: 10px 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    border-bottom: 1px solid #f1f5f9; background: #fafbff;
}
.bch-toolbar input[type="month"] { padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; }
.bch-toolbar input[type="text"] {
    padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; width: 190px;
}
.bch-only-match { font-size: 13px; color: #475569; display: flex; align-items: center; gap: 4px; }
.bch-legend { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 12px; color: #64748b; }
.bch-legend span { display: flex; align-items: center; gap: 4px; }
.bch-legend-hint { color: #94a3b8; font-style: italic; }
.bch-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bch-body { flex: 1; overflow-y: auto; padding: 0 20px 20px; }
.bch-footer { padding: 12px 20px; border-top: 1px solid #f1f5f9; text-align: right; background: #fafbff; }
.bch-loading { grid-column: 1 / -1; text-align: center; color: #94a3b8; padding: 60px 0; font-size: 14px; }

/* 日历网格：周一为首日，每格留足标注空间 */
/* 周表头：独立于网格，滚动时吸顶 */
.bch-weekhead {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    position: sticky; top: 0; z-index: 3;
    background: #fff; padding: 12px 0 6px;
}
.bch-weekcell {
    background: #eef2ff; color: #4338ca; font-size: 13px; font-weight: 600;
    text-align: center; padding: 7px 0; border-radius: 8px;
}
.bch-weekcell-off { background: #f1f5f9; color: #94a3b8; }
.bch-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: minmax(168px, auto);
    gap: 8px;
}
.bch-cell {
    border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px 9px;
    background: #fff; cursor: pointer; overflow: hidden;
    display: flex; flex-direction: column; gap: 5px;
    transition: box-shadow .12s, border-color .12s, transform .12s;
}
.bch-cell:hover { border-color: #667eea; box-shadow: 0 4px 14px rgba(102,126,234,0.18); transform: translateY(-1px); }
.bch-cell-top { display: flex; align-items: baseline; justify-content: space-between; }
.bch-daynum { font-size: 19px; font-weight: 700; color: #1e293b; line-height: 1; }
.bch-dayweek { font-size: 11px; color: #94a3b8; }
.bch-cell-out { background: #f8fafc; opacity: .62; }
.bch-cell-out .bch-daynum { color: #94a3b8; font-weight: 600; }
.bch-cell-weekend { background: #f8fafc; }
.bch-cell-today { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,0.25); }
.bch-cell-today .bch-daynum { color: #4338ca; }
.bch-cell-marked { background: #fffbeb; border-color: #fcd34d; }
.bch-cell-hit { border-color: #f59e0b; box-shadow: 0 0 0 2px rgba(245,158,11,0.3); }
.bch-cell-dim { opacity: .35; }
.bch-cell-hide { display: none; }

/* 状态徽章 */
.bch-badge {
    align-self: flex-start; font-size: 11px; font-weight: 600;
    padding: 2px 7px; border-radius: 999px; white-space: nowrap;
}
.bch-b-played { background: #dcfce7; color: #15803d; }
.bch-b-ready { background: #dbeafe; color: #1d4ed8; }
.bch-b-none { background: #fef3c7; color: #b45309; }
.bch-b-miss { background: #fee2e2; color: #dc2626; }
.bch-b-postponed { background: #fef3c7; color: #b45309; }
.bch-b-weekend { background: #f1f5f9; color: #94a3b8; }
.bch-b-idle { background: #f1f5f9; color: #64748b; }
.bch-b-off { background: #f1f5f9; color: #94a3b8; }
.bch-dot.bch-b-played { background: #22c55e; } .bch-dot.bch-b-ready { background: #3b82f6; }
.bch-dot.bch-b-none { background: #f59e0b; } .bch-dot.bch-b-miss { background: #ef4444; }
.bch-dot.bch-b-weekend { background: #cbd5e1; }

/* 日期格内的记录行 */
.bch-lines { display: flex; flex-direction: column; gap: 3px; }
.bch-line { font-size: 12.5px; line-height: 1.45; color: #334155; display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px; }
.bch-line small { font-size: 11px; color: #94a3b8; }
.bch-line .bch-lname { font-weight: 600; color: #1e293b; }
.bch-line-play .bch-ic { color: #16a34a; }
.bch-line-play.bch-st-ready .bch-ic { color: #2563eb; }
.bch-line-postIn { color: #7c3aed; }
.bch-line-postIn .bch-ic { color: #7c3aed; }
.bch-line-postOut { color: #b45309; }
.bch-line-postOut .bch-ic, .bch-line-postOut .bch-lname { color: #b45309; }
.bch-line-missing { color: #b91c1c; }
.bch-line-missing .bch-ic { color: #ef4444; }
.bch-line-idle { color: #94a3b8; }
.bch-tag-sub { color: #b45309 !important; }
.bch-tag-unlink { color: #dc2626 !important; }
.bch-mark-note { font-size: 11px; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 2px 6px; }

/* 单日编辑弹层 */
.bch-day-body { flex: 1; overflow-y: auto; padding: 14px 20px; }
.bch-edit-sec { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: 12px; overflow: hidden; }
.bch-sec-title {
    padding: 9px 14px; background: #f8fafc; border-bottom: 1px solid #e2e8f0;
    font-size: 13px; font-weight: 600; color: #334155;
}
.bch-sec-body { padding: 12px 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.bch-person-chip {
    display: inline-flex; align-items: baseline; gap: 5px;
    padding: 4px 10px; border-radius: 999px; background: #eef2ff; color: #3730a3; font-weight: 600; font-size: 13px;
}
.bch-person-chip small { font-size: 11px; font-weight: 500; color: #6366f1; }
.bch-topic-chip { padding: 4px 10px; border-radius: 999px; background: #f0fdf4; color: #15803d; font-size: 13px; }
.bch-inherit { padding: 4px 10px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 12px; }
.bch-hint { font-size: 12px; color: #94a3b8; }
.bch-mark-row label { display: flex; align-items: center; gap: 5px; color: #475569; }
.bch-note-input { flex: 1; min-width: 180px; padding: 6px 10px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; }
.bch-add-row select, .bch-add-row input { padding: 6px 8px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 13px; }

.bch-card { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px 12px; background: #fff; width: 100%; }
.bch-card-missing { background: #fef2f2; border-color: #fecaca; }
.bch-card-postOut { background: #fffbeb; border-color: #fde68a; }
.bch-card-postIn { background: #f5f3ff; border-color: #ddd6fe; }
.bch-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.bch-card-name { font-weight: 700; color: #1e293b; }
.bch-card-from, .bch-card-sub { font-size: 12px; color: #7c3aed; }
.bch-card-sub { color: #b45309; }
.bch-card-warn { font-size: 12px; color: #dc2626; }
.bch-card-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; }
.bch-card-actions button {
    font-size: 12px; padding: 4px 9px; border-radius: 7px; cursor: pointer;
    border: 1px solid #cbd5e1; background: #fff; color: #475569; transition: all .12s;
}
.bch-card-actions button:hover { border-color: #667eea; color: #667eea; background: #eef2ff; }
.bch-card-actions button.bch-del:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.bsm-item-actions .bsm-play-btn.bsm-confirm:hover { border-color: #16a34a; color: #16a34a; background: #f0fdf4; }

@media (max-width: 1100px) {
    /* 仍保持 7 列（周表头需与日期格对齐），仅压缩高度与字号 */
    .bch-grid { grid-auto-rows: minmax(140px, auto); }
    .bch-cell { padding: 6px; }
    .bch-line { font-size: 11.5px; }
    .bch-legend { width: 100%; margin-left: 0; }
}
@media (max-width: 720px) {
    .bch-modal { height: 96vh; }
    /* 窄屏改为单列清单（每格自带周几标注，故隐藏周表头） */
    .bch-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); grid-auto-rows: auto; }
    .bch-weekhead { display: none; }
}
