/* 沐学伴运营工作台 · 2026.09. 保持业务 DOM ID 与接口不变。 */
:root {
  --ink: #202b32; --muted: #727e87; --soft: #f4f6f7; --line: #e4e9eb;
  --card: #fff; --brand: #087c70; --brand-2: #0c9685; --shadow: 0 1px 3px #152c3910;
  --console-sidebar: 232px; --console-row-space: 15px;
}
html { scroll-behavior: auto; }
body { background: #f4f6f7 !important; color: var(--ink); height: 100dvh; min-height: 0; overflow: hidden; display: flex; font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif !important; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { border-radius: 7px; padding: 9px 14px; font-weight: 600; background: var(--brand); box-shadow: none !important; transition: background .15s, border-color .15s; }
button:hover { transform: none; filter: brightness(.97); }
button:disabled { opacity: .55; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #0f968640; outline-offset: 3px; }
input, select, textarea { border-radius: 7px !important; padding: 10px 12px; border-color: #dbe2e5; font-size: 13px; background: #fff; }
input::placeholder, textarea::placeholder { color: #919ca5; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px #087c7012; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--brand); }
input[type=file] { max-width: 100%; }
button.ghost-btn, .top-actions button { background: #fff; color: #45525e; border: 1px solid #dce3e6; font-weight: 500; }
button.danger-btn, button.danger { background: #fff1ef; color: #bf4436; }
.sidebar { width: var(--console-sidebar) !important; height: 100dvh; min-height: 0; position: relative; top: auto; padding: 0; background: #fbfcfc !important; color: var(--ink); border-right: 1px solid var(--line); box-shadow: none !important; display: flex; flex-direction: column; flex-shrink: 0; }
.brand { padding: 25px 20px 21px !important; gap: 11px; min-height: 86px; }
.brand > div:first-child { width: 35px; height: 35px; flex-shrink: 0; border-radius: 10px; background: #087c70 !important; box-shadow: none; color: #fff; font-size: 19px; font-weight: 600; }
.brand h1 { color: #233b3b !important; font-size: 15px; font-weight: 650; letter-spacing: .02em; }
.brand p { color: #869096 !important; font-size: 10px; letter-spacing: .08em; margin-top: 4px; }
.nav-search { position: relative; margin: 0 15px 13px; }
.nav-search input { height: 34px; padding: 7px 35px 7px 11px; background: #f2f5f5; border-color: #e6eaea; font-size: 12px; }
.nav-search kbd { position: absolute; right: 9px; top: 8px; color: #8b979d; font: 11px 'Segoe UI', sans-serif; }
#sideNav { display: block; overflow-y: auto; padding: 0 11px 22px !important; flex: 1; }
.nav-group-title { padding: 17px 12px 7px; color: #9aa2a7; font-size: 10px; letter-spacing: .13em; font-weight: 600; }
#sideNav a { margin: 3px 0; border-radius: 6px; padding: 9px 12px !important; color: #5b6871; display: flex; align-items: center; gap: 11px; min-height: 36px; transition: background .12s; }
#sideNav a span { font-size: 12px; font-weight: 500; }
#sideNav a svg, #sideNav a i { width: 16px; height: 16px; flex-shrink: 0; stroke-width: 1.6; pointer-events: none; }
#sideNav a span { pointer-events: none; }
#sideNav a:hover { background: #edf1f1; color: #284444; }
#sideNav a.active { background: #e4f2ee !important; color: #067568 !important; font-weight: 600; }
#sideNav a.active svg { stroke: #078372; }
#sideNav a.active::after { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #078372; margin-left: auto; }
.sidebar-footer { padding: 15px 20px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); background: #fbfcfc; }
.sidebar-footer .workspace-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e9eeee; font-size: 12px; color: #5e7077; }
.sidebar-footer strong { font-size: 11px; display: block; color: #41545b; font-weight: 500; }
.sidebar-footer small { font-size: 10px; color: #98a1a5; }
.main { padding: 0 !important; min-width: 0; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.topbar { min-height: 83px; padding: 19px 32px !important; margin: 0; gap: 15px; border-bottom: 1px solid var(--line); background: #fff !important; box-shadow: none !important; backdrop-filter: none; flex-shrink: 0; }
.topbar > div:first-of-type { flex: 1; min-width: 0; }
.topbar .console-breadcrumb { color: #859199; text-transform: none; letter-spacing: .02em; font-size: 10px; font-weight: 400; display: flex; gap: 8px; align-items: center; }
.console-breadcrumb em { font-style: normal; color: #bac3c8; }
.topbar h2 { font-size: 17px; font-weight: 650; letter-spacing: .02em; margin: 5px 0 0; }
.topbar p { display: none; }
.top-actions { flex-wrap: nowrap; align-items: center; gap: 8px; }
.top-actions button { padding: 8px 12px; font-size: 11px; white-space: nowrap; min-height: 34px; }
.top-actions #exportBtn { color: #fff; background: var(--brand); border-color: var(--brand); }
.top-actions #consoleDensity { color: #69767d; background: #f8fafa; }
.console-content { overflow-y: auto; overflow-x: hidden; padding: 26px 32px 40px !important; flex: 1; min-height: 0; scrollbar-gutter: stable; }
.sync-banner { padding: 11px 15px; margin-bottom: 24px; border: 1px solid #dde9e5; border-radius: 7px; background: #edf5f2; box-shadow: none; gap: 12px; }
.sync-banner strong { font-size: 11px; font-weight: 600; color: #407167; }
.sync-banner strong::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #6e938a; vertical-align: middle; }
.sync-banner p { margin: 3px 0 0; font-size: 10px; color: #789087; line-height: 1.5; }
.sync-banner a { font-size: 11px; font-weight: 600; white-space: nowrap; }
.panel { padding: 0; margin: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; animation: none !important; }
.panel-title { margin: 0 0 22px; align-items: flex-end; gap: 16px; }
.panel-title .section-kicker { color: #8b969c; font-size: 9px; font-weight: 500; letter-spacing: .15em; }
.panel-title h3 { font-size: 25px; line-height: 1.4; color: #213a3d; font-weight: 650; margin: 4px 0 0; letter-spacing: -.035em; }
.panel-title > span { color: #88939a; font-size: 11px; margin: 0 0 4px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 9px; padding: 13px !important; margin: 0 0 14px !important; background: #fff; border: 1px solid var(--line); border-radius: 8px !important; box-shadow: none !important; }
.toolbar input[type=search], .toolbar input[type=text] { flex: 1 1 240px; min-width: 150px; width: auto; background: #fafbfc; }
.toolbar select { width: auto !important; min-width: 130px; max-width: 260px; flex: 0 1 auto; }
.toolbar button { min-height: 36px; font-size: 12px; }
.table-wrap, .panel > div:has(> table) { overflow: auto !important; border: 1px solid var(--line); border-radius: 8px !important; background: #fff; box-shadow: none !important; }
table { min-width: 680px; }
th { padding: 12px 17px !important; background: #fafbfc; color: #7b8991 !important; font-size: 10px !important; font-weight: 500 !important; letter-spacing: .025em !important; border-bottom: 1px solid #e7ecee; }
td { padding: var(--console-row-space) 17px !important; border-bottom: 1px solid #edf0f2; color: #52616b; font-size: 12px !important; vertical-align: middle; line-height: 1.6; }
td:first-child { font-variant-numeric: tabular-nums; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafcfc; }
td button { min-height: 29px; border-radius: 5px; padding: 5px 9px !important; font-size: 11px !important; font-weight: 500; border: 1px solid #dce5e5; background: #fff; color: var(--brand); }
td.flex { display: table-cell !important; min-width: 185px; }
td button + button { margin-left: 4px; }
td[colspan] { padding: 55px 20px !important; color: #8b969e !important; text-align: center; font-size: 12px !important; }
td small { color: #97a1a8; font-size: 10px; }
.badge, .tag, .hit-badge { border-radius: 5px; padding: 3px 7px; font-weight: 500; font-size: 10px; }
.metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.metric-card { display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); box-shadow: none; border-radius: 8px; padding: 20px 23px; min-height: 121px; }
.metric-card::after { display: none; }
.metric-card strong { order: 2; color: #243e40; font: 500 30px/1.1 'Segoe UI', sans-serif; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card span { order: 1; color: #89979f; font-size: 11px; letter-spacing: .03em; }
.quick-grid { grid-template-columns: 1fr 1fr; margin-top: 22px; gap: 14px; }
.mini-panel, .card, .editor-card, .sync-card, .price-item { border-radius: 8px; padding: 21px; box-shadow: none; border-color: var(--line); }
.mini-panel h4, .card h4, .editor-card h4 { font-weight: 600; color: #324e51; font-size: 13px; margin-bottom: 17px; }
.mini-panel p, .sync-card p { font-size: 12px; line-height: 1.85; color: #7f8c94; }
.todo-item { background: #f5f8f7; color: #506c64; font-size: 12px; border-radius: 5px; padding: 13px; }
.price-grid { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.content-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sync-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stats-card { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.stats-card strong { font-size: 24px; color: #294346; font-weight: 550; }
.bar { background: #63a89a; }
.form-grid { gap: 17px; }
.form-grid label { color: #61717b; font-size: 12px; }
.modal-mask { background: #10272f66; backdrop-filter: blur(2px); }
.modal-card { border-radius: 12px; padding: 24px; box-shadow: 0 24px 80px #182c3b33; }
.modal-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 17px; font-weight: 600; }
.icon-btn { background: #f1f5f5; font-size: 22px; color: #607479; }
.audit-mode-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: transparent !important; border: none !important; padding: 0 0 17px !important; margin-bottom: 0 !important; }
.audit-mode-row > span:first-child { font-size: 11px; color: #7a8991; font-weight: 400; }
.audit-mode-row select { width: 220px; padding: 7px 10px; font-size: 11px; background: #fff; }
#teacherAuditModeHint { flex: 1 1 220px; font-size: 10px; color: #8d999f; }
#loginGate { background: #f0f4f3 !important; backdrop-filter: none; padding: 30px; }
#loginGate > div { width: 410px; border-radius: 12px; padding: 36px; box-shadow: 0 10px 45px #233f3a0b; border: 1px solid #dde7e4; position: relative; }
.login-brand { display: flex; gap: 10px; align-items: center; margin-bottom: 36px; color: #30524d; font-size: 14px; font-weight: 600; }
.login-brand b { width: 33px; height: 33px; display: grid; place-items: center; color: white; background: var(--brand); border-radius: 9px; font-size: 19px; }
#loginGate h2 { font-size: 23px !important; color: #23413b !important; font-weight: 600; }
#loginGate p { line-height: 1.8 !important; }
#gateSubmit { min-height: 42px; }
#gateError { overflow-wrap: anywhere; }
#consoleMenu { display: none; }
.console-nav-scrim { display: none; }
.custom-scrollbar::-webkit-scrollbar-thumb { background: #dbe2e3; }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-thumb { background: #d3dcdf; border-radius: 9px; }
.nav-filter-empty { font-size: 12px; padding: 16px 12px; color: #8b979f; }
[hidden] { display: none !important; }
body.console-compact { --console-row-space: 9px; }
@media (min-width: 1600px) { .console-content { padding-left: 46px !important; padding-right: 46px !important; } .metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 1100px) { :root { --console-sidebar: 208px; } .topbar { padding: 18px 23px !important; } .console-content { padding: 22px 23px !important; } .panel-title > span { max-width: 230px; line-height: 1.6; } .split { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  body { display: flex !important; } .sidebar { position: fixed; inset: 0 auto 0 0; width: 250px !important; z-index: 70; transform: translateX(-100%); transition: transform .18s; }
  body.console-nav-open .sidebar { transform: translateX(0); }
  body.console-nav-open .console-nav-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: #1b303765; border-radius: 0; }
  #consoleMenu { display: inline-grid; place-items: center; width: 36px; min-height: 36px; padding: 5px; background: #f1f5f4; color: #536c65; font-size: 19px; }
  .topbar { min-height: 78px; display: flex !important; padding: 12px 16px !important; }
  .top-actions { margin: 0; gap: 5px; } .top-actions button { min-height: 36px; padding: 6px 9px; }
  #consoleDensity { display: none; } .topbar h2 { font-size: 14px; } .console-breadcrumb { font-size: 9px !important; }
  .console-content { padding: 20px 16px !important; }
  .panel-title { display: block; } .panel-title h3 { font-size: 24px; } .panel-title > span { display: block; margin-top: 6px; max-width: none; }
  .sync-banner { display: flex !important; padding: 10px 12px; } .sync-banner p { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; } .metric-card { padding: 18px; min-height: 108px; } .metric-card strong { font-size: 27px; }
  .toolbar input, .toolbar select { flex: 1 1 150px; max-width: none; } .toolbar button { min-height: 40px; }
  .quick-grid, .split, .sync-grid, .form-grid { grid-template-columns: 1fr; }
  #loginGate { padding: 16px; } #loginGate > div { padding: 28px; }
  .modal { padding: 12px; } .modal-card { padding: 18px; }
  #sideNav a { min-height: 42px; } nav { grid-template-columns: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* 中文运营界面阅读尺寸：正文与数字保持足够对比度。 */
#sideNav a span { font-size: 13px; }
.nav-group-title { color: #788990; font-size: 11px; }
.panel-title > span { color: #728189; font-size: 12px; }
.panel-title .section-kicker { color: #77888d; font-size: 10px; }
th { font-size: 11px !important; color: #687b85 !important; }
td { font-size: 13px !important; }
.top-actions button, .sync-banner strong, .sync-banner a { font-size: 12px; }
.sync-banner p { font-size: 11px; }
.metric-card span { font-size: 12px; color: #6d8089; }
#loginGate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
#loginGate > div { max-width: 100%; }

/* 表格在手机端保留列宽，横向滚动查看，不把姓名和专业拆成单字。 */
#teachers table { min-width: 1040px; }
#teachers td:nth-child(2), #teachers td:nth-child(6) { white-space: nowrap; }
#teachers td:nth-child(3) { min-width: 190px; }
#teachers td:nth-child(5) { min-width: 230px; }
@media (max-width: 760px) {
  .table-wrap::before, .panel > div:has(> table)::before { content: '左右滑动查看完整表格'; display: block; padding: 9px 13px; color: #819198; font-size: 10px; border-bottom: 1px solid #edf0f2; }
}
