:root { color-scheme: light; --bg: #f6f7f9; --panel: #ffffff; --text: #18202a; --muted: #687487; --line: #d9dee7; --accent: #0f766e; --accent-strong: #0b5d57; --danger: #b42318; --warn: #b54708; --ok: #237a42; --shadow: 0 12px 28px rgba(20, 31, 46, 0.08); } * { box-sizing: border-box; } [hidden] { display: none !important; } body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Arial, "Songti SC", SimSun, sans-serif; font-size: 15px; } button, input, select { font: inherit; } .topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: rgba(246, 247, 249, 0.96); backdrop-filter: blur(10px); } h1, h2, p { margin: 0; } h1 { font-size: 22px; line-height: 1.25; letter-spacing: 0; } h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; } .topbar p { margin-top: 6px; color: var(--muted); font-size: 13px; } .top-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; } .nav-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; } .nav-button:hover { border-color: var(--accent); color: var(--accent-strong); } .icon-button { width: 42px; height: 42px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; } .layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.8fr); gap: 18px; padding: 18px 24px 28px; } .records-layout, .account-layout { grid-template-columns: minmax(0, 1fr); } .admin-layout { gap: 12px; } .panel { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); overflow: hidden; } .section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); } .quick-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; } .admin-tabs { display: flex; gap: 8px; padding: 0 0 4px; } .admin-tab { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); cursor: pointer; font-weight: 700; } .admin-tab.is-active, .admin-tab:hover { border-color: var(--accent); background: #e9f5f3; color: var(--accent-strong); } .chip, .search-row button { border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; } .chip { min-height: 32px; padding: 6px 10px; font-size: 13px; } .chip:hover, .search-row button:hover { background: var(--accent-strong); } .search-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; padding: 16px; border-bottom: 1px solid var(--line); } .search-row.compact { grid-template-columns: minmax(0, 1fr) 76px; } .summary-search-row { grid-template-columns: minmax(180px, 1.4fr) repeat(5, minmax(110px, 0.8fr)) 88px; } input, select { min-width: 0; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); outline: none; } input { padding: 0 12px; } select { padding: 0 10px; } input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); } .search-row button { min-height: 42px; } .summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .metric { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; } .metric span { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; } .metric strong { display: block; margin-top: 4px; overflow-wrap: anywhere; font-size: 18px; line-height: 1.2; } .inline-account { padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; } .inline-account-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; } .inline-account h3 { margin: 0; font-size: 16px; line-height: 1.25; letter-spacing: 0; } .inline-account p { margin-top: 4px; color: var(--muted); font-size: 13px; } .inline-account-grid { display: grid; grid-template-columns: 130px 130px minmax(0, 1fr) minmax(160px, 0.6fr); gap: 10px; } .inline-account-loading { color: var(--muted); font-size: 14px; } .admin-editor { border-bottom: 1px solid var(--line); background: #fbfcfd; } .compact-head { padding: 12px 16px; } .admin-form { padding: 16px; } .admin-form h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.25; } .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .form-grid label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; } .span-2 { grid-column: span 2; } textarea { width: 100%; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); font: inherit; resize: vertical; outline: none; } textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15); } .register-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } .summary-register-items { display: grid; gap: 10px; } .summary-register-item { display: grid; gap: 7px; } .summary-register-item.has-missing { padding: 10px; border: 1px solid #fecdca; border-radius: 6px; background: #fff7f6; } .summary-register-item label { color: #344054; font-size: 13px; font-weight: 700; } .summary-register-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .summary-register-missing { margin: 0; color: var(--danger); font-size: 13px; font-weight: 700; line-height: 1.45; } .summary-register-remove { justify-self: start; } .line-code { display: block; max-width: 420px; white-space: normal; overflow-wrap: anywhere; font-family: Arial, "Songti SC", SimSun, sans-serif; font-size: 13px; line-height: 1.4; } .summary-body, .log-detail { max-width: 360px; white-space: pre-wrap; overflow-wrap: anywhere; color: #344054; font-size: 13px; line-height: 1.45; } .summary-preview { display: -webkit-box; max-height: 4.35em; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; } .summary-full { max-width: min(720px, 72vw); margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); } .summary-toggle { margin-top: 8px; } .muted { color: var(--muted); } .correction-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #f8fbfb; } .correction-toolbar span { color: var(--accent-strong); font-size: 14px; font-weight: 700; } .correction-toolbar span.is-error { color: var(--danger); } .toolbar-actions { display: flex; align-items: center; gap: 10px; } .correction-toolbar button, .modal-actions button { min-height: 38px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; } .correction-toolbar button { padding: 0 14px; } .correction-toolbar button:hover, .modal-actions button:hover { background: var(--accent-strong); } .correction-toolbar button:disabled { cursor: not-allowed; opacity: 0.55; } .table-wrap { max-height: calc(100vh - 292px); overflow: auto; } .account-table-wrap { max-height: calc(100vh - 262px); } table { width: 100%; border-collapse: collapse; } th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; } th { position: sticky; top: 0; z-index: 1; background: #f3f5f8; color: #344054; font-size: 13px; font-weight: 700; } .sort-header-button { display: inline-flex; align-items: center; justify-content: flex-start; min-width: 64px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; font: inherit; font-weight: 700; white-space: nowrap; } .sort-header-button:hover, .sort-header-button:focus-visible { color: var(--accent-strong); } .sort-header-button:focus-visible { border-radius: 4px; outline: 2px solid rgba(15, 118, 110, 0.35); outline-offset: 3px; } td { font-size: 14px; } .teacher-group td { padding: 11px 12px; border-top: 1px solid #b7d8d4; border-bottom: 1px solid #b7d8d4; background: #e9f5f3; } .teacher-group-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--accent-strong); } .teacher-group-title strong { font-size: 15px; line-height: 1.25; } .teacher-group-title span { color: #344054; font-size: 13px; font-weight: 700; white-space: nowrap; } .record-row td:nth-child(4) { color: var(--muted); } .corrected-row td { background: #fffaf0; } .record-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; } .small-button { min-height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; font-size: 13px; font-weight: 700; } .small-button:hover { border-color: var(--accent); color: var(--accent-strong); } .correction-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 999px; background: #fef0c7; color: var(--warn); font-size: 12px; font-weight: 700; } .review-tag { display: inline-flex; align-items: center; width: fit-content; min-height: 22px; margin: 0 0 6px; padding: 0 8px; border-radius: 999px; background: #e0f2fe; color: #075985; font-size: 12px; font-weight: 700; } .review-tag.history { background: #fef0c7; color: var(--warn); } .note-cell { color: var(--muted); white-space: normal; } .num { text-align: right; } .empty { color: var(--muted); text-align: center; white-space: normal; } .status { display: inline-flex; align-items: center; min-width: 44px; justify-content: center; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; } .status.debt { background: #fee4e2; color: var(--danger); } .status.warning { background: #fef0c7; color: var(--warn); } .status.normal { background: #dcfae6; color: var(--ok); } .status.closed { background: #e4e7ec; color: #475467; } .drawer-backdrop { position: fixed; inset: 0; z-index: 30; display: flex; justify-content: flex-end; background: rgba(16, 24, 40, 0.38); } .drawer-backdrop[hidden] { display: none; } .summary-review-drawer { display: flex; flex-direction: column; width: min(720px, 100%); max-height: 100vh; border-left: 1px solid var(--line); background: var(--panel); box-shadow: -20px 0 48px rgba(16, 24, 40, 0.2); } .drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); } .drawer-head h2 { margin: 0 0 6px; } .drawer-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; } .drawer-content { display: grid; gap: 14px; padding: 18px 20px; overflow: auto; } .drawer-section { display: grid; gap: 7px; } .drawer-label { color: var(--muted); font-size: 12px; font-weight: 700; } .drawer-text, .drawer-body { white-space: pre-wrap; overflow-wrap: anywhere; color: #344054; font-size: 14px; line-height: 1.55; } .drawer-body { padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; } .drawer-actions { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: #fff; } .drawer-actions button { min-height: 38px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--accent); color: #fff; cursor: pointer; font-weight: 700; } .drawer-actions .secondary-button { border: 1px solid var(--line); background: #fff; color: var(--text); } .drawer-actions button:hover { background: var(--accent-strong); } .drawer-actions .secondary-button:hover { border-color: var(--accent); background: #fff; color: var(--accent-strong); } .drawer-actions button:disabled { cursor: not-allowed; opacity: 0.55; } .modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 18px; background: rgba(16, 24, 40, 0.42); } .correction-modal { width: min(100%, 760px); max-height: calc(100vh - 36px); overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 20px 48px rgba(16, 24, 40, 0.22); } .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); } .modal-close, .secondary-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; font-weight: 700; } .modal-close:hover, .secondary-button:hover { border-color: var(--accent); color: var(--accent-strong); } .correction-form { padding: 16px; } .correction-original { margin-bottom: 14px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; } .correction-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .correction-fields label { display: grid; gap: 6px; color: #344054; font-size: 13px; font-weight: 700; } .correction-error { margin-top: 12px; color: var(--danger); font-size: 13px; font-weight: 700; } .correction-preview { margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fafbfc; } .correction-preview span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 700; } .correction-preview code { display: block; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text); font-family: Arial, "Songti SC", SimSun, sans-serif; font-size: 14px; line-height: 1.5; } .modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; } .modal-actions button { padding: 0 16px; } .modal-actions .secondary-button { border: 1px solid var(--line); background: #fff; color: var(--text); } @media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .table-wrap { max-height: none; } .inline-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .register-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 640px) { .topbar { align-items: flex-start; padding: 14px; } h1 { font-size: 19px; } .layout { padding: 12px; } .section-head { align-items: flex-start; flex-direction: column; } .quick-actions { width: 100%; justify-content: flex-start; } .search-row, .search-row.compact, .account-search-row, .summary-search-row { grid-template-columns: 1fr; } .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .correction-toolbar { align-items: flex-start; flex-direction: column; } .toolbar-actions { width: 100%; flex-direction: column; } .correction-toolbar button { width: 100%; } .correction-fields { grid-template-columns: 1fr; } .register-grid { grid-template-columns: 1fr; } .summary-register-fields { grid-template-columns: 1fr; } .admin-tabs { overflow-x: auto; } .form-grid { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } .modal-actions { flex-direction: column-reverse; } .modal-actions button { width: 100%; } .drawer-backdrop { padding-left: 0; } .summary-review-drawer { width: 100%; } .drawer-head, .drawer-actions { align-items: stretch; flex-direction: column; } .drawer-actions button { width: 100%; } .inline-account-head { align-items: flex-start; flex-direction: column; } .inline-account-grid { grid-template-columns: 1fr; } th, td { padding: 9px 10px; } .teacher-group-title { align-items: flex-start; flex-direction: column; gap: 4px; } .teacher-group-title span { white-space: normal; } }