/* 教师资料共享 · 运营后台样式（遵循 PRD 配色） */
:root {
    --navy: #092C63;
    --navy-2: #0d3a7e;
    --orange: #FA7A00;
    --blue: #009CF1;
    --green: #07C160;
    --warn: #FF976A;
    --red: #FA5151;
    --bg: #F5F7FA;
    --card: #FFFFFF;
    --line: #E8ECF2;
    --text: #1B2430;
    --muted: #8A919C;
    --shadow: 0 2px 12px rgba(9, 44, 99, .06);
    --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.55;
}
.hidden { display: none !important; }
a { color: var(--blue); text-decoration: none; }
button { font-family: inherit; }

/* ---------- 登录 ---------- */
.login-wrap {
    min-height: 100%; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #092C63 0%, #0d3a7e 55%, #009CF1 140%);
}
.login-card {
    width: 380px; background: #fff; border-radius: 16px; padding: 34px 34px 26px;
    box-shadow: 0 18px 50px rgba(0, 20, 60, .28); text-align: center;
}
.login-brand, .brand-mark {
    width: 54px; height: 54px; border-radius: 14px; background: var(--orange); color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700;
}
.login-card h1 { font-size: 21px; margin: 14px 0 2px; color: var(--navy); }
.login-sub { color: var(--muted); margin: 0 0 22px; font-size: 13px; }
.field-label { display: block; text-align: left; font-size: 12px; color: var(--muted); margin: 12px 0 5px; }
.login-hint { color: var(--muted); font-size: 11px; margin: 14px 0 0; line-height: 1.6; }
.login-error { color: var(--red); font-size: 13px; min-height: 20px; margin: 8px 0 0; }

/* ---------- 布局 ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 218px; flex: 0 0 218px; background: var(--navy); color: #fff;
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.1); }
.brand-mark { width: 36px; height: 36px; border-radius: 9px; font-size: 19px; flex: 0 0 36px; }
.brand b { display: block; font-size: 14px; letter-spacing: .3px; }
.brand small { display: block; opacity: .6; font-size: 11px; }
#menu { flex: 1; overflow-y: auto; padding: 12px 10px; }
.menu-group { font-size: 11px; color: rgba(255,255,255,.42); padding: 14px 10px 6px; letter-spacing: 1px; }
.menu-item {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 8px;
    cursor: pointer; font-size: 13px; color: rgba(255,255,255,.82); margin-bottom: 2px;
    border: none; background: none; width: 100%; text-align: left;
}
.menu-item:hover { background: rgba(255,255,255,.09); color: #fff; }
.menu-item.active { background: var(--orange); color: #fff; font-weight: 600; }
.menu-item .mi { width: 18px; text-align: center; font-size: 15px; }
.menu-item .cnt { margin-left: auto; background: rgba(255,255,255,.2); border-radius: 10px; padding: 0 7px; font-size: 11px; }
.sidebar-foot { padding: 14px 16px; border-top: 1px solid rgba(255,255,255,.1); }
.whoami { font-size: 12px; opacity: .8; margin-bottom: 8px; }
.main { flex: 1; min-width: 0; }
.topbar {
    background: #fff; border-bottom: 1px solid var(--line); padding: 16px 26px;
    display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 5;
}
.topbar h2 { margin: 0; font-size: 18px; color: var(--navy); }
.topbar p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.clock { color: var(--muted); font-size: 12px; }
.view { padding: 22px 26px 40px; }

/* ---------- 卡片 / 网格 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; margin-bottom: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 15px; color: var(--navy); }
.card-head .sub { color: var(--muted); font-size: 12px; }
.card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, 1fr); } .g3, .g2 { grid-template-columns: 1fr; } }

.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--blue); }
.kpi.orange::before { background: var(--orange); }
.kpi.green::before { background: var(--green); }
.kpi.red::before { background: var(--red); }
.kpi .label { color: var(--muted); font-size: 12px; }
.kpi .value { font-size: 27px; font-weight: 700; color: var(--navy); line-height: 1.3; margin-top: 4px; }
.kpi .value small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.kpi .foot { font-size: 11px; color: var(--muted); margin-top: 4px; }
.kpi .foot b { color: var(--orange); }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: #FAFBFD; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid #F0F3F7; vertical-align: middle; }
.tbl tr:hover td { background: #FAFCFF; }
.tbl .nowrap { white-space: nowrap; }
.tbl .title-cell { max-width: 280px; }
.tbl .title-cell b { font-weight: 600; color: var(--navy); }
.tbl .sub2 { color: var(--muted); font-size: 11px; margin-top: 2px; }
.tbl .num { font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 13px; }
.loading { text-align: center; color: var(--muted); padding: 46px 10px; }

/* ---------- 按钮 / 标签 / 表单 ---------- */
.btn {
    border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 7px;
    padding: 7px 13px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center;
    justify-content: center; gap: 5px; white-space: nowrap; transition: .15s;
}
.btn:hover { border-color: var(--blue); color: var(--blue); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; }
.btn-accent { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-accent:hover { background: #e56f00; border-color: #e56f00; color: #fff; }
.btn-danger { color: var(--red); border-color: #FAD7D7; }
.btn-danger:hover { background: #FFF3F3; border-color: var(--red); color: var(--red); }
.btn-ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.4); }
.btn-sm { padding: 4px 9px; font-size: 12px; }
.btn-block { width: 100%; padding: 10px; margin-top: 18px; font-size: 14px; }
.btn-link { border: none; background: none; color: var(--blue); padding: 2px 4px; font-size: 12px; cursor: pointer; }
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--red); }
.row-actions { display: flex; gap: 5px; flex-wrap: wrap; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11px; line-height: 1.6; background: #EEF2F7; color: #5A6572; white-space: nowrap; }
.badge.blue { background: #E6F5FF; color: #0079BD; }
.badge.green { background: #E7F8EF; color: #059E4E; }
.badge.orange { background: #FFF1E4; color: #D96500; }
.badge.red { background: #FFECEC; color: #D93B3B; }
.badge.gray { background: #F0F2F5; color: #8A919C; }
.badge.purple { background: #F0EAFF; color: #7048C6; }
.badge.teal { background: #E6F9F7; color: #0E8C7F; }

.input, .select, .textarea {
    width: 100%; border: 1px solid #DDE3EC; border-radius: 7px; padding: 8px 10px;
    font-size: 13px; color: var(--text); background: #fff; outline: none; font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0,156,241,.1); }
.textarea { min-height: 78px; resize: vertical; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; }
.filters .f label { font-size: 11px; color: var(--muted); }
.filters .input, .filters .select { width: auto; min-width: 130px; }
.filters .grow { flex: 1; min-width: 190px; }
.form-row { margin-bottom: 13px; }
.form-row > label { display: block; font-size: 12px; color: #5A6572; margin-bottom: 5px; }
.form-row .hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.checkline { display: flex; align-items: center; gap: 7px; font-size: 13px; cursor: pointer; }
.checkline input { width: 15px; height: 15px; accent-color: var(--blue); }

/* ---------- Tabs / 分页 / 提示 ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tab { padding: 9px 16px; cursor: pointer; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; background: none; border-top: none; border-left: none; border-right: none; }
.tab:hover { color: var(--navy); }
.tab.active { color: var(--navy); font-weight: 600; border-bottom-color: var(--orange); }
.tab .n { background: #EEF2F7; border-radius: 10px; padding: 0 6px; font-size: 11px; margin-left: 5px; }
.tab.active .n { background: #FFF1E4; color: var(--orange); }
.pager { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 12px; }
.alert { padding: 10px 13px; border-radius: 8px; font-size: 12px; margin-bottom: 14px; line-height: 1.6; }
.alert.warn { background: #FFF6EC; color: #A55A00; border: 1px solid #FFE0BD; }
.alert.info { background: #EAF6FF; color: #006BA8; border: 1px solid #CBE9FF; }
.alert.danger { background: #FFF0F0; color: #B93B3B; border: 1px solid #FFD5D5; }

/* ---------- 图表 ---------- */
.chart { width: 100%; height: 190px; }
.chart text { font-size: 10px; fill: var(--muted); }
.bar-list { display: flex; flex-direction: column; gap: 9px; }
.bar-item { display: grid; grid-template-columns: 76px 1fr 38px; align-items: center; gap: 8px; font-size: 12px; }
.bar-track { background: #EEF2F7; height: 9px; border-radius: 6px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.bar-fill.orange { background: linear-gradient(90deg, #FFB35C, var(--orange)); }
.bar-val { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- Modal / Toast ---------- */
.mask { position: fixed; inset: 0; background: rgba(9, 25, 50, .42); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 12px; width: 480px; max-width: 100%; max-height: 88vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,20,60,.28); }
.modal.wide { width: 720px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { margin: 0; font-size: 16px; color: var(--navy); }
.modal-close { border: none; background: none; font-size: 20px; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-body { padding: 18px 20px; }
.modal-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 9px; background: #FAFBFD; }
.toast {
    position: fixed; top: 20px; left: 50%; transform: translateX(-50%) translateY(-16px);
    background: #1B2430; color: #fff; padding: 10px 20px; border-radius: 8px; font-size: 13px;
    opacity: 0; pointer-events: none; transition: .22s; z-index: 60; box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.ok { background: var(--green); }
.toast.err { background: var(--red); }

/* ---------- 杂项 ---------- */
.mono { font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.muted { color: var(--muted); }
.strong { font-weight: 600; color: var(--navy); }
.danger-text { color: var(--red); }
.orange-text { color: var(--orange); }
.info-grid { display: grid; grid-template-columns: 92px 1fr; gap: 9px 12px; font-size: 13px; }
.info-grid dt { color: var(--muted); }
.info-grid dd { margin: 0; word-break: break-all; }
.kv { display: flex; gap: 6px; flex-wrap: wrap; }
.section-title { font-size: 13px; font-weight: 600; color: var(--navy); margin: 18px 0 10px; padding-left: 9px; border-left: 3px solid var(--orange); }
.section-title:first-child { margin-top: 0; }
.range-inputs { display: flex; align-items: center; gap: 6px; }
.range-inputs .input { width: 72px; text-align: center; }

/* ---------- 审核端文件预览 ---------- */
.sec-title { margin: 18px 0 10px; font-size: 13px; font-weight: 600; color: var(--navy); padding-left: 9px; border-left: 3px solid var(--orange); }
.file-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 12px; }
.file-frame { width: 100%; height: 460px; border: 1px solid var(--line); border-radius: 8px; background: #F4F6FA; }
.file-wrap { position: relative; }
.file-loading {
    position: absolute; inset: 0 0 auto 0; height: 460px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; color: #64748B; background: #F4F6FA;
    border: 1px solid var(--line); border-radius: 8px;
}
.file-img-wrap { max-height: 460px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: #F4F6FA; text-align: center; }
.file-img { max-width: 100%; display: block; margin: 0 auto; }
.file-video { width: 100%; max-height: 460px; border-radius: 8px; background: #000; }

/* ---------- 认证：教师资格证查验 ---------- */
.cert-view {
    max-height: 540px;
    overflow: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #F4F6FA;
    text-align: center;
    padding: 8px;
}
.cert-view img { max-width: 100%; display: block; margin: 0 auto; border-radius: 4px; }
.cert-warn {
    margin: 10px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.7;
    color: #B42318; background: #FEF3F2; border: 1px solid #FDA29B; border-radius: 8px;
}
.cert-ok {
    margin: 10px 0 0; padding: 10px 12px; font-size: 13px; line-height: 1.7;
    color: #067647; background: #ECFDF3; border: 1px solid #ABEFC6; border-radius: 8px;
}

/* ---------- 客服工作台 ---------- */
.support-wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 16px; }
.support-side, .support-main { margin-bottom: 0; }
.support-side { display: flex; flex-direction: column; }
.thread-list { flex: 1; min-height: 240px; overflow-y: auto; margin: 0 -6px; }
.thread {
    display: flex; gap: 10px; width: 100%; text-align: left; padding: 10px;
    background: transparent; border: none; border-radius: 9px; cursor: pointer;
    font: inherit; color: inherit;
}
.thread:hover { background: #F7F9FC; }
.thread.active { background: #EEF4FF; }
.thread-avatar {
    width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
    background: var(--navy); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600;
}
.thread-avatar.lg { width: 38px; height: 38px; flex: 0 0 38px; font-size: 15px; }
.thread-main { flex: 1; min-width: 0; }
.thread-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.thread-name { font-size: 13px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-time { font-size: 11px; color: var(--muted); flex-shrink: 0; }
.thread-bottom { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.thread-last { flex: 1; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-unread { flex-shrink: 0; background: var(--red); color: #fff; border-radius: 9px; font-size: 11px; padding: 0 6px; line-height: 17px; }

.support-main { display: flex; flex-direction: column; min-height: 620px; }
.chat-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding-bottom: 12px; border-bottom: 1px solid var(--line);
}
.chat-head-left { display: flex; align-items: center; gap: 10px; }
.chat-head-right { display: flex; gap: 6px; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; max-height: 430px; min-height: 300px; padding: 14px 4px; background: #FBFCFE; border-radius: 8px; }
.chat-row { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 12px; }
.chat-row.mine { align-items: flex-end; }
.chat-meta { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.chat-bubble {
    max-width: 78%; background: #fff; border: 1px solid var(--line);
    padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.7;
    white-space: pre-wrap; word-break: break-word;
}
.chat-row.mine .chat-bubble { background: var(--navy); border-color: var(--navy); color: #fff; }
.chat-input { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 10px; }
.chat-text { width: 100%; height: 78px; resize: vertical; font-family: inherit; line-height: 1.6; box-sizing: border-box; }
.chat-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
    background: #F0F4FA; color: #3d5273; border: none; border-radius: 14px;
    padding: 4px 10px; font-size: 12px; cursor: pointer; font-family: inherit;
}
.chip:hover { background: #E3ECFA; }
@media (max-width: 1080px) {
    .support-wrap { grid-template-columns: 1fr; }
    .support-main { min-height: 520px; }
}

/* ---------- 专辑文件清单编辑 ---------- */
.ae-list { max-height: 420px; overflow-y: auto; padding-right: 4px; }
.ae-item {
    border: 1px solid var(--line);
    border-radius: 9px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: #FBFCFE;
}
.ae-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.ae-no {
    width: 20px; height: 20px; line-height: 20px; text-align: center;
    border-radius: 50%; background: #EEF4FF; color: var(--navy); font-size: 11px;
}
/* 清单内操作：上移 / 下移 / 移出（点完即生效，不参与「保存全部修改」） */
.ae-ops { margin-left: auto; display: flex; gap: 4px; }
.ae-op {
    border: 1px solid var(--line); background: #fff; color: #3d5273;
    border-radius: 6px; height: 22px; padding: 0 7px;
    font-size: 12px; line-height: 20px; cursor: pointer;
}
.ae-op:hover:not(:disabled) { background: #EEF4FF; border-color: #C7D8F5; }
.ae-op:disabled { opacity: .35; cursor: not-allowed; }
.ae-op.danger { color: #C0322B; }
.ae-op.danger:hover:not(:disabled) { background: #FFF0EF; border-color: #F3C2BE; }
.ae-fname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ae-title { margin-bottom: 6px; }
.ae-intro { height: 54px; }

/* ---------- 专辑分区 ---------- */
.sc-list { display: flex; flex-direction: column; gap: 8px; }
.sc-row {
    display: flex; align-items: center; gap: 12px;
    border: 1px solid var(--line); border-radius: 9px;
    padding: 10px 12px; background: #FBFCFE;
}
.sc-icon {
    width: 32px; height: 32px; flex: 0 0 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9px; font-size: 15px; color: #fff; background: #7C8DA6;
}
.sc-icon.purple { background: linear-gradient(135deg, #6B5BD2, #9A8BE8); }
.sc-icon.green  { background: linear-gradient(135deg, #1E9E6A, #4CC38A); }
.sc-icon.blue   { background: linear-gradient(135deg, #1E63C8, #4C93E8); }
.sc-icon.orange { background: linear-gradient(135deg, #C97A16, #E8A44C); }
.sc-icon.red    { background: linear-gradient(135deg, #C0322B, #E06A62); }
.sc-main { flex: 1 1 auto; min-width: 0; }
.sc-row .row-actions { flex: 0 0 auto; }
.btn-icon { min-width: 32px; padding: 0 6px; }

/* ---------- 快捷回复管理 ---------- */
.chip-add { background: #FFF3E6; color: #B25A00; }
.chip-add:hover { background: #FFE7CC; }
.qr-list { max-height: 320px; overflow-y: auto; margin-bottom: 4px; }
.qr-row {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.qr-row:last-child { border-bottom: none; }
.qr-label {
    flex-shrink: 0; width: 96px; font-weight: 600; font-size: 13px;
    display: flex; align-items: center; gap: 6px;
}
.qr-sys {
    font-style: normal; font-size: 10px; color: #7A8699;
    background: #EEF2F7; border-radius: 6px; padding: 1px 5px; font-weight: 400;
}
.qr-text {
    flex: 1; min-width: 0; font-size: 12px; color: #5A6572;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qr-btns { flex-shrink: 0; display: flex; gap: 6px; }

/* ---------------- 批量上传 ---------------- */
.batch-guide { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 14px; }
.bg-step { display: flex; gap: 10px; padding: 12px; background: #F7F9FC; border-radius: 8px; }
.bg-step b {
    flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
    background: var(--navy); color: #fff; font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}
.bg-step strong { display: block; font-size: 13px; margin-bottom: 3px; }
.bg-step p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.65; }
.batch-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 18px; font-size: 12px; color: #5A6572; }
.batch-tips .k {
    display: inline-block; min-width: 58px; color: var(--navy);
    font-weight: 600; margin-right: 6px;
}

.dropzone {
    border: 1.5px dashed #C7D3E3; border-radius: 10px;
    padding: 26px 12px; text-align: center; color: var(--muted);
    font-size: 13px; background: #FAFCFF; transition: .15s;
}
.dropzone.hot { border-color: var(--blue); background: #EFF8FF; color: var(--blue); }

.batch-tbl td { vertical-align: top; }
.batch-tbl .c-idx { width: 34px; color: var(--muted); text-align: center; }
.batch-tbl .fname {
    max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 12px;
}
.batch-tbl .fmeta { font-size: 11px; color: var(--muted); }
.batch-tbl .cell {
    width: 100%; min-width: 84px; padding: 5px 7px; font-size: 12px;
    border: 1px solid var(--line); border-radius: 6px; background: #fff;
    color: var(--text); font-family: inherit;
}
.batch-tbl .cell:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 2px rgba(0,156,241,.12); }
.batch-tbl .cell-num { width: 64px; }
.batch-tbl .c-score { width: 70px; }
.batch-tbl .c-err { font-size: 11px; color: var(--red); max-width: 140px; }
.batch-tbl tr.is-bad td { background: #FFF7F7; }
.batch-tbl tr.is-done td { background: #F4FBF6; }
.batch-tbl tr.is-done .cell { background: transparent; }

.batch-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.batch-foot .chk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #5A6572; }
.batch-foot .spacer { flex: 1; }
.batch-progress { margin-top: 12px; }
.batch-progress .bar { height: 8px; background: #EDF1F7; border-radius: 6px; overflow: hidden; }
.batch-progress .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--navy)); transition: width .2s; }
.batch-progress .ptext { margin-top: 6px; font-size: 12px; color: var(--muted); }
.batch-result { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.br-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bz-miss { margin: 8px 0 0; padding-left: 18px; font-size: 12px; color: #5A6572; }
.bz-miss li { margin-bottom: 3px; }

/* ---------- 公告走马灯：后台实时预览 ---------- */
.notice-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding: 0 14px;
    height: 44px;
    background: #EAF2FF;
    border: 1px solid #D3E3FB;
    border-radius: 10px;
    overflow: hidden;
}

.np-icon { flex: 0 0 auto; font-size: 14px; }

/* 一次只露一行，轨道整体上移模拟滚动 */
.np-viewport {
    flex: 1;
    min-width: 0;
    height: 44px;
    overflow: hidden;
}

.np-track { transition: transform .45s ease; }

.np-line {
    height: 44px;
    line-height: 44px;
    font-size: 13px;
    color: #0B3A78;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-idx { flex: 0 0 auto; font-size: 11px; color: #7A96BD; }
.np-more { flex: 0 0 auto; font-size: 12px; color: #3D6FB4; }
.warn-text { color: #B45309; }

/* 公告表格：内容列单行截断，操作列不换行 */
.nc-clip { display: inline-block; max-width: 380px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.nc-acts { flex-wrap: nowrap; }
.btn-icon { padding: 4px 6px; line-height: 1; }

/* ---------- 手机端（小程序 web-view 内置打开后台） ---------- */
@media (max-width: 760px) {
    .shell { flex-direction: column; }

    /* 左侧栏改为顶部横向导航，图标 + 文字横向滚动 */
    .sidebar { width: auto; flex: 0 0 auto; height: auto; position: static; }
    .brand { padding: 12px 14px; }
    .brand small { display: none; }
    #menu {
        display: flex; flex: 0 0 auto; gap: 6px; padding: 8px 10px;
        overflow-x: auto; -webkit-overflow-scrolling: touch;
    }
    .menu-group { display: none; }
    .menu-item {
        width: auto; flex: 0 0 auto; white-space: nowrap; margin-bottom: 0;
        padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1);
        font-size: 13px;
    }
    .menu-item .cnt { margin-left: 6px; }
    .sidebar-foot { display: flex; align-items: center; justify-content: space-between; padding: 8px 14px; }
    .whoami { margin-bottom: 0; }

    .topbar { padding: 12px 14px; gap: 8px; position: static; flex-wrap: wrap; }
    .topbar h2 { font-size: 16px; }
    .view { padding: 14px 12px 40px; }

    .card { padding: 14px; margin-bottom: 14px; border-radius: 10px; }
    .g4, .g3, .g2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 78px 1fr; }
    .support-wrap { grid-template-columns: 1fr; }
    .batch-guide { grid-template-columns: 1fr; }
    .batch-tips { grid-template-columns: 1fr; }
    .tabs { overflow-x: auto; }
    .tabs > * { flex: 0 0 auto; white-space: nowrap; }

    /* 表格改横向滚动，数字列不换行 */
    table.tbl { font-size: 12px; }
    table.tbl th, table.tbl td { white-space: nowrap; padding: 8px 10px; }

    .mask { padding: 10px; }
    .modal, .modal.wide { width: 100%; max-width: 100%; max-height: 92vh; }
    .btn { font-size: 13px; }
}
