:root {
  --page: #f4f7fb;
  --surface: #fff;
  --surface-soft: #f7faff;
  --ink: #172033;
  --ink-strong: #173b67;
  --muted: #6c7d91;
  --border: #dce7f2;
  --border-soft: #edf1f6;
  --primary: #2876cf;
  --primary-dark: #173b67;
  --primary-soft: #eaf3ff;
  --success: #16745b;
  --success-soft: #eaf8f2;
  --warning: #a45c08;
  --warning-soft: #fff6e7;
  --danger: #b13745;
  --danger-soft: #fff0f1;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(35, 71, 110, .06);
  --shadow-modal: 0 24px 70px rgba(16, 45, 79, .22);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 14px/1.6 Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: not-allowed; }
[hidden] { display: none !important; }
.app-header { min-height: 76px; padding: 18px 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: linear-gradient(135deg, #102d4f, #1f5b91); color: #fff; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 12px; background: #70b2f3; color: var(--primary-dark); font-weight: 800; }
.brand-name { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.session, .context-label { color: #d7e7f8; font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.header-actions button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius-sm); background: rgba(255,255,255,.14); color: #fff; }
.app-layout { display: flex; min-height: calc(100vh - 76px); max-width: 1500px; margin: 0 auto; }
.sidebar { width: 244px; flex: 0 0 244px; padding: 22px 16px; background: var(--surface); border-right: 1px solid var(--border); }
.side-label { padding: 0 12px 10px; color: #8b9aab; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.sidebar nav button { width: 100%; padding: 13px 14px; border: 0; border-radius: 10px; background: var(--surface); color: #53677e; text-align: left; font-weight: 600; }
.sidebar nav button:hover { background: #f1f6fc; color: var(--primary); }
.sidebar nav button.active { background: var(--primary-soft); color: var(--primary); }
.nav-hint { margin: 22px 8px 0; padding: 14px; border-radius: 12px; background: #f5f8fc; color: var(--muted); line-height: 1.6; font-size: 13px; }
.workspace { flex: 1; min-width: 0; padding: 34px 38px 60px; }
.page-title, .module-header, .data-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.page-title { align-items: flex-end; margin-bottom: 22px; }
.page-title h1, .module-header h1 { margin: 0; color: var(--ink-strong); font-size: 28px; letter-spacing: -.02em; }
.page-title p, .module-header p, .data-toolbar p { margin: 5px 0 0; color: var(--muted); }
.panel { margin-bottom: 18px; padding: 22px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.panel h2 { margin: 0 0 16px; color: #1c3554; font-size: 18px; }
.panel h3 { margin: 0 0 10px; color: #1c3554; }
.panel hr { margin: 24px 0; border: 0; border-top: 1px solid var(--border-soft); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.form-section { min-width: 0; padding: 18px; border: 1px solid var(--border-soft); border-radius: var(--radius-md); background: #fbfdff; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 9px 0; color: #53677e; font-weight: 600; }
.field input, .field select, .field textarea { margin: 0; }
.input-row, .form-actions, .record-actions, .actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.input-row > *, .form-actions > *, .actions > * { min-width: 0; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 12px; }
.pagination { min-height: 42px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 18px; }
.pagination span { min-width: 64px; color: var(--muted); text-align: center; }
.panel input, .panel select, .panel textarea { max-width: 100%; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: var(--ink); }
.panel textarea { min-height: 94px; resize: vertical; }
.panel button, .button { padding: 9px 13px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: #fff; color: #53677e; }
.panel button.primary, .button.primary { border-color: var(--primary); background: var(--primary); color: #fff; }
.panel button.danger, .button.danger { border-color: #f0c5ca; background: var(--danger-soft); color: var(--danger); }
.button.ghost { background: var(--surface-soft); }
.message { min-height: 20px; color: var(--success); font-size: 13px; }
.error-text { min-height: 20px; padding: 10px; border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); }
.status { display: inline-flex; align-items: center; white-space: nowrap; padding: 5px 10px; border-radius: 99px; background: var(--success-soft); color: var(--success); font-size: 13px; }
.status.warning { background: var(--warning-soft); color: var(--warning); }
.status.danger { background: var(--danger-soft); color: var(--danger); }
.table-wrap { overflow: auto; border: 1px solid var(--border-soft); border-radius: 10px; }
table { width: 100%; min-width: 640px; border-collapse: collapse; }
td, th { padding: 12px; border-bottom: 1px solid var(--border-soft); text-align: left; vertical-align: top; }
th { background: #f8fbfe; color: #53677e; font-size: 13px; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.filter-input { width: 100%; margin: 0 0 14px; padding: 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.state { padding: 42px 20px; text-align: center; color: var(--muted); }
.state h3 { margin: 0 0 8px; color: #1c3554; }
.state p { margin: 0 0 16px; }
.state-icon { color: var(--primary); font-size: 34px; }
.notice { padding: 12px; border-radius: var(--radius-sm); background: #f5f8fc; color: #53677e; }
.welcome { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-bottom: 20px; }
.welcome-main { padding: 30px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #173b67, #2876cf); color: #fff; }
.welcome-main .eyebrow { color: #9dd0ff; }
.welcome-main h2 { margin: 8px 0; color: #fff; font-size: 25px; }
.welcome-main p { margin: 0; color: #d7e7f8; line-height: 1.7; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.quick-card { padding: 18px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; }
.quick-card strong { display: block; color: var(--ink-strong); font-size: 16px; }
.quick-card span { display: block; margin-top: 7px; color: var(--muted); line-height: 1.5; font-size: 13px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0; }
.metric { padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #f5f8fc; }
.metric strong { display: block; color: var(--ink-strong); font-size: 24px; }
.metric span { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.config-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--border-soft); }
.config-row:last-child { border-bottom: 0; }
.config-row strong { display: block; color: #1c3554; }
.config-row .muted { display: block; }
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 18px; background: rgba(16,45,79,.38); }
.modal-card { width: min(560px, 100%); max-height: 90vh; overflow: auto; padding: 24px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-modal); }
.modal-card > header { min-height: 0; padding: 0 0 10px; display: flex; align-items: flex-start; justify-content: space-between; background: transparent; color: inherit; }
.modal-card > header h2 { margin: 0; }
.modal-card > header button { color: #53677e; background: #f5f8fc; }
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }
.step { padding: 12px 8px; border: 1px solid var(--border); border-radius: 10px; background: #fbfdff; color: var(--muted); text-align: center; font-size: 13px; }
.step strong { display: block; color: var(--primary); font-size: 16px; }
.tabs { display: flex; gap: 8px; margin: -4px 0 20px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); overflow-x: auto; }
.tab { flex: 0 0 auto; border: 0 !important; border-radius: 999px !important; background: transparent !important; color: var(--muted) !important; font-weight: 700; }
.tab.active { background: var(--primary-soft) !important; color: var(--primary) !important; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.check-field { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.check-field input { width: auto; }
.record-meta { color: var(--muted); font-size: 13px; }
.step-guide { display: flex; gap: 12px; align-items: center; margin: 18px 0; padding: 14px 16px; border-radius: 12px; background: var(--primary-soft); color: var(--muted); }
.step-guide strong { color: var(--primary); white-space: nowrap; }
.auth-actions-panel { background: linear-gradient(145deg, #ffffff, #f7fbff); }
.auth-action-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.auth-action { display: flex; min-height: 132px; padding: 18px; flex-direction: column; align-items: flex-start; gap: 7px; border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; color: var(--ink); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.auth-action:hover { border-color: #9cc4ec; box-shadow: 0 8px 20px rgba(40,118,207,.1); transform: translateY(-1px); }
.auth-action-number { color: var(--primary); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.auth-action strong { color: var(--ink-strong); font-size: 16px; }
.auth-action small { color: var(--muted); line-height: 1.5; }
.details { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.details summary { cursor: pointer; color: var(--primary); font-weight: 700; }
.record { padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.record:last-child { border-bottom: 0; }
.record-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.record-head h2, .record-head h3 { margin: 0; }
.student-card { padding: 16px 0; border-bottom: 1px solid var(--border-soft); }
.student-card:last-child { border-bottom: 0; }
.eyebrow { display: block; color: var(--primary); font-size: 13px; font-weight: 700; letter-spacing: .08em; }
@media (max-width: 900px) { .workspace { padding: 24px; } .welcome { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .app-header { padding: 16px; align-items: flex-start; flex-direction: column; gap: 14px; } .header-actions { width: 100%; } .app-layout { display: block; } .sidebar { width: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar nav { flex-direction: row; flex-wrap: wrap; } .sidebar nav button { width: auto; flex: 1 1 120px; padding: 10px 8px; text-align: center; } .nav-hint { display: none; } .workspace { padding: 16px; } .page-title h1, .module-header h1 { font-size: 23px; } .panel { padding: 16px; } .quick-grid, .metric-row, .stepper { grid-template-columns: repeat(2, 1fr); } .panel-grid, .filter-bar { grid-template-columns: 1fr; } .pagination { justify-content: space-between; } .data-toolbar, .module-header { flex-direction: column; } .table-wrap table { min-width: 620px; } .responsive-table { border: 0; overflow: visible; } .responsive-table table { min-width: 0; } .responsive-table thead { display: none; } .responsive-table tr { display: block; margin-bottom: 12px; padding: 10px; border: 1px solid var(--border-soft); border-radius: 10px; } .responsive-table td { display: grid; grid-template-columns: 76px 1fr; gap: 8px; padding: 7px 0; border-bottom: 0; } .responsive-table td::before { color: var(--muted); font-size: 13px; } .responsive-table td:nth-child(1)::before { content: '维度'; } .responsive-table td:nth-child(2)::before { content: '分数'; } .responsive-table td:nth-child(3)::before { content: '评语'; } .modal-actions { flex-direction: column-reverse; } .modal-actions button { width: 100%; } .auth-action-grid { grid-template-columns: 1fr; } .auth-action { min-height: 0; } .step-guide { align-items: flex-start; flex-direction: column; } }
@media print { .app-header, .sidebar, .modal, .form-actions, .actions, .record-actions { display: none !important; } .workspace { padding: 0; } .panel { box-shadow: none; break-inside: avoid; } }
/* 2026-09 家长优先重构：工作区保持内容密度，导航和表单统一。 */
:root { --primary:#245b46; --primary-dark:#1d4938; --text:#263e33; --muted:#637368; --border:#d7dfd2; --border-soft:#e5e9e0; }
body { background:#faf9f5; color:#263e33; }
.app-header { background:#fff; color:#263e33; border-bottom:1px solid #d7dfd2; padding:16px 28px; }
.brand-name,.session,.context-label { color:#263e33; }.brand-mark { background:#e2eadb; color:#245b46; }
.sidebar { background:#faf9f5; }.sidebar nav button.active { background:#e2eadb; color:#245b46; }
.panel,.form-section { box-shadow:none; border-radius:12px; }.panel { border-color:#e0e5db; }
.primary,.button.primary { background:#245b46; border-color:#245b46; }.secondary { color:#245b46; }
button,input,select { min-height:44px; }button:focus-visible,summary:focus-visible,a:focus-visible { outline:3px solid #245b46; outline-offset:3px; }
.nav-group { display:block; color:#6a776b; font-size:13px; margin:20px 12px 6px; }
.nav-group[hidden] { display:none; }.account-menu { position:relative; }.account-menu summary { cursor:pointer; padding:8px 12px; min-height:44px; }
.account-menu[open] { background:#fff; }.account-menu button { display:block; white-space:nowrap; color:#263e33; background:#fff; }
.account-menu button[hidden] { display:none; }#navToggle { display:none; background:transparent; color:#263e33; }
.input-dialog { border:1px solid #d7dfd2; border-radius:16px; width:min(480px,90vw); padding:28px; color:#263e33; }
.input-dialog::backdrop { background:rgba(20,35,25,.35); }.input-dialog input { display:block; width:100%; margin:12px 0 20px; }
.overview-links { display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:16px; }.overview-link { text-align:left; background:#fff; border:1px solid #d7dfd2; border-radius:12px; padding:22px; color:#263e33; }.overview-link strong,.overview-link small { display:block; }.overview-link small { font-size:14px; color:#637368; margin-top:8px; }
@media(max-width:900px) { #navToggle { display:block; }.app-layout { display:block; }.app-header { padding:12px 16px; flex-direction:row; align-items:center; flex-wrap:wrap; }.brand-name { font-size:18px; }.header-actions { width:auto; margin-left:auto; }.context-label { display:none; }.sidebar { position:fixed; left:0; top:84px; bottom:0; width:280px; z-index:30; overflow:auto; border-right:1px solid #d7dfd2; box-shadow:12px 0 30px #263e3320; transform:translateX(-110%); transition:transform .18s ease; }.nav-open .sidebar { transform:translateX(0); }.sidebar nav { flex-direction:column; flex-wrap:nowrap; }.sidebar nav button { flex:none; width:100%; text-align:left; }.workspace { width:100%; min-width:0; }.modal-card { max-height:90vh; overflow:auto; }.table-wrap { max-width:100%; overflow:auto; }.stepper { display:flex; overflow:auto; }.stepper button { flex:0 0 auto; } }
@media(prefers-reduced-motion:reduce) { .sidebar { transition:none; } }
/* 独立工作区与对话框共用控件，避免只有 panel 内的按钮有样式。 */
:root { --ink:#263e33; --ink-strong:#243d31; --primary-soft:#e6eee3; --surface-soft:#f4f6f0; }
body { font-size:16px; }.record-meta,.session,.context-label,.nav-hint { font-size:13px; }
.workspace button,.input-dialog button { border:1px solid #cdd8c8; border-radius:8px; background:#fff; color:#245b46; padding:10px 16px; }
.workspace button.primary,.input-dialog button.primary { color:#fff; background:#245b46; border-color:#245b46; }
.workspace button.danger { color:#9d3737; background:#fff6f4; border-color:#dfc0b9; }
.workspace .tab.active { color:#245b46; background:#e6eee3; }
.workspace input,.workspace select,.workspace textarea,.input-dialog select,.input-dialog textarea { width:100%; border:1px solid #cdd8c8; border-radius:8px; padding:10px 12px; background:#fff; color:#263e33; }
.filter-bar { grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); align-items:end; }.filter-bar>button { align-self:end; }
.input-dialog { max-height:90dvh; overflow:auto; }.input-dialog textarea { min-height:100px; }.input-dialog h2 { margin-top:0; }
.media-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:12px; }.media-grid img,.media-grid video { max-width:100%; max-height:240px; object-fit:contain; }
.modal-card .input-row > .check-field { flex: 1 0 100%; min-height: 44px; white-space: nowrap; }
.modal-card .check-field input[type="checkbox"] { width: 20px; min-width: 20px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 20px; }
@media(max-width:600px) {
  .modal-card .input-row > .field { flex: 1 0 100%; min-width: 0; }
  .tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; gap:4px; }.tabs .tab { white-space:normal; padding:10px 5px; font-size:13px; border-radius:8px; }
  .filter-bar { grid-template-columns:1fr; }.record-head { align-items:flex-start; }.record-head h2 { font-size:19px; overflow-wrap:anywhere; }
  .table-wrap.mobile-table { overflow:visible; border:0; }.mobile-table table { min-width:0; width:100%; }.mobile-table tr { display:block; padding:14px 0; border-bottom:1px solid #d7dfd2; }.mobile-table tr.mobile-heading { display:none; }
  .mobile-table td { display:grid; grid-template-columns:88px minmax(0,1fr); gap:10px; padding:5px 0; border:0; overflow-wrap:anywhere; }.mobile-table td::before { content:attr(data-label); color:#637368; font-size:13px; font-weight:400; }
  .mobile-table td[colspan] { display:block; }.mobile-table td[colspan]::before { display:none; }.input-dialog { width:94vw; padding:20px; }.pagination { gap:6px; }.pagination button { padding:9px; }
}
.permission-tabs { margin-top: 4px; }
.staff-row-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-width: 160px; }
.staff-form .field { margin-top: 14px; }
.staff-form .field input, .staff-form .field select { width: 100%; min-height: 44px; }
.staff-form fieldset { border: 0; border-top: 1px solid var(--border-soft); margin: 20px 0 12px; padding: 14px 0 0; }
.staff-role-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; }
.staff-role-options .check-field { min-height: 44px; }
@media(max-width:440px) { .staff-role-options { grid-template-columns: 1fr; } }
.permission-panel .data-toolbar h2 { margin-bottom: 0; }
.permission-group + .permission-group { margin-top: 24px; }
.permission-group .data-toolbar { align-items: center; margin-bottom: 10px; }
.permission-group h3 { margin: 0; }
.permission-member-table select[multiple] { min-width: 180px; min-height: 86px; }
.permission-summary { max-width: 300px; color: var(--muted); font-size: 13px; }
.permission-role-list { display: grid; gap: 6px; min-width: 160px; }
.permission-role-list .check-field { white-space: nowrap; font-size: 13px; }
.permission-reason { min-width: 160px; margin-top: 6px; }
.permission-editor { display: grid; gap: 8px; max-height: 50vh; overflow: auto; padding: 8px 0; }
.permission-editor .check-field { padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.permission-editor-row { display: grid; grid-template-columns: minmax(210px, 1fr) minmax(170px, .7fr); gap: 12px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--border-soft); }
.permission-editor-row .check-field { border: 0; padding: 0; white-space: normal; }
.permission-editor-row select[multiple] { min-height: 78px; }
.permission-member-table input[type="date"] { display: block; min-width: 140px; margin-bottom: 6px; }
@media(max-width:600px) { .permission-member-table select[multiple] { min-width: 150px; } }
