:root {
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  color: #182230;
  background: #f4f7fa;
  font-synthesis: none;
  --blue: #007cf0;
  --cyan: #00cfc9;
  --green: #16a66a;
  --orange: #ed7a19;
  --red: #df3f4b;
  --border: #dfe6ee;
  --muted: #66758a;
  --soft: #f6f9fc;
  --sidebar: #122033;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 1120px;
  min-height: 100vh;
  background: #f4f7fa;
  font-size: 14px;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  overflow-y: auto;
  background: var(--sidebar);
  color: #dce7f3;
  border-right: 1px solid #24364b;
}

.brand {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 20px;
  border-bottom: 1px solid #27384c;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  font-size: 19px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
}

.brand-name {
  font-size: 17px;
  font-weight: 700;
  color: white;
}

.brand-sub {
  margin-top: 2px;
  color: #91a4ba;
  font-size: 11px;
}

.nav-section {
  padding: 15px 10px 8px;
}

.nav-label {
  padding: 0 10px 8px;
  color: #758ba3;
  font-size: 11px;
}

.nav-item {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 3px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #bdcad8;
  text-align: left;
}

.nav-item:hover {
  background: #1c3047;
  color: white;
}

.nav-item.active {
  color: white;
  background: linear-gradient(90deg, #0877e7, #08aaa9);
}

.nav-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.75;
}

.nav-code {
  margin-left: auto;
  color: inherit;
  font-size: 10px;
  opacity: 0.7;
}

.workspace {
  grid-column: 2;
  min-width: 0;
}

.topbar {
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.topbar-title {
  font-size: 16px;
  font-weight: 700;
}

.topbar-meta {
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
}

.account {
  display: flex;
  align-items: center;
  gap: 9px;
}

.avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f3ff;
  color: var(--blue);
  font-weight: 700;
}

.content {
  padding: 22px 28px 36px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.page-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
}

.page-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.screen-code {
  display: inline-flex;
  align-items: center;
  height: 24px;
  margin-left: 9px;
  padding: 0 8px;
  border: 1px solid #b9d9fb;
  border-radius: 4px;
  color: var(--blue);
  background: #eef7ff;
  font-size: 11px;
  vertical-align: 3px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.btn {
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid #cfd9e4;
  border-radius: 5px;
  background: white;
  color: #26364a;
}

.btn:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.btn.primary {
  border: 0;
  color: white;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.btn.danger {
  color: var(--red);
  border-color: #f1bec4;
  background: #fff7f8;
}

.btn.small {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.stat {
  min-height: 104px;
  padding: 17px 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
}

.stat-value {
  margin-top: 9px;
  font-size: 28px;
  font-weight: 700;
}

.stat-foot {
  margin-top: 7px;
  color: var(--green);
  font-size: 11px;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.8fr);
  gap: 16px;
}

.grid-equal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.panel + .panel {
  margin-top: 16px;
}

.panel-head {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}

.panel-title {
  font-weight: 700;
}

.panel-body {
  padding: 16px;
}

.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 14px;
}

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid #cfd9e4;
  border-radius: 5px;
  background: white;
  color: #1c2a3a;
  outline: none;
}

.input,
.select {
  height: 34px;
  padding: 0 10px;
}

.textarea {
  min-height: 92px;
  padding: 9px 10px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px #e3f1ff;
}

.search {
  width: 260px;
}

.table-wrap {
  overflow: hidden;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  height: 46px;
  padding: 8px 13px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

th {
  color: #58697d;
  background: #f7f9fb;
  font-size: 12px;
  font-weight: 600;
}

tbody tr:hover {
  background: #f8fbff;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 4px;
  background: #edf2f7;
  color: #5a6a7c;
  font-size: 11px;
}

.status.blue {
  color: #0670d7;
  background: #eaf4ff;
}

.status.green {
  color: #128151;
  background: #e8f8f0;
}

.status.orange {
  color: #b85b0d;
  background: #fff2e5;
}

.status.red {
  color: #c73342;
  background: #fff0f2;
}

.link {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
}

.pagination {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 0 14px;
  border-top: 1px solid var(--border);
}

.pager {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
}

.pager.active {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.detail-list {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px 14px;
  margin: 0;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  margin: 0;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 18px;
}

.form-grid.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  color: #44556a;
  font-size: 12px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.hint {
  margin-top: 6px;
  color: #8491a1;
  font-size: 11px;
}

.tabs {
  display: flex;
  gap: 2px;
  padding: 0 16px;
  background: white;
  border-bottom: 1px solid var(--border);
}

.tab {
  min-width: 84px;
  height: 44px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
}

.tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  font-weight: 700;
}

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  padding: 0 0 18px 25px;
  color: #334458;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: white;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 17px;
  bottom: 2px;
  width: 1px;
  background: #ccd9e6;
}

.timeline li:last-child::after {
  display: none;
}

.timeline-time {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.file-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.file-card {
  min-height: 104px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #fafcfe;
}

.file-thumb {
  height: 45px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--blue);
  background: #eaf4ff;
  font-weight: 700;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.calendar-cell {
  min-height: 84px;
  padding: 8px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: white;
}

.calendar-cell:nth-child(7n) {
  border-right: 0;
}

.calendar-cell.head {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f7f9fb;
  font-size: 12px;
}

.calendar-event {
  display: block;
  margin-top: 7px;
  padding: 5px 6px;
  border-left: 3px solid var(--blue);
  background: #eaf4ff;
  color: #1766b5;
  font-size: 11px;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.video-stage {
  min-height: 600px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #182230;
  color: white;
}

.video-main {
  height: 520px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #223247, #15202e);
}

.video-avatar {
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #31516d;
  font-size: 32px;
}

.video-self {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 180px;
  height: 118px;
  display: grid;
  place-items: center;
  border: 2px solid #6f879d;
  border-radius: 5px;
  background: #2a4055;
}

.video-controls {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.control {
  min-width: 76px;
  height: 38px;
  border: 1px solid #536a80;
  border-radius: 5px;
  color: white;
  background: #25384a;
}

.control.end {
  border-color: #d74c55;
  background: #c93843;
}

.chat {
  height: 600px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
}

.chat-body {
  flex: 1;
  padding: 14px;
}

.bubble {
  width: fit-content;
  max-width: 85%;
  margin-bottom: 12px;
  padding: 9px 11px;
  border-radius: 5px;
  background: #f0f4f8;
}

.bubble.mine {
  margin-left: auto;
  color: white;
  background: var(--blue);
}

.chat-input {
  padding: 12px;
  border-top: 1px solid var(--border);
}

.bar-chart {
  height: 210px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  padding: 20px 14px 8px;
}

.bar {
  flex: 1;
  min-width: 22px;
  position: relative;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.bar span {
  position: absolute;
  left: 50%;
  bottom: -23px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 10px;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-item {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) 132px;
  gap: 12px;
  align-items: start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--blue);
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(520px, 1.25fr) minmax(430px, 0.75fr);
  background: white;
}

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  color: white;
  background:
    linear-gradient(135deg, rgba(0, 124, 240, 0.96), rgba(0, 207, 201, 0.91)),
    #087bdc;
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 420px;
  height: 420px;
  border: 90px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.login-brand {
  position: absolute;
  top: 42px;
  left: 54px;
  font-size: 22px;
  font-weight: 700;
}

.login-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.login-copy h1 {
  margin: 0 0 18px;
  font-size: 40px;
  line-height: 1.25;
}

.login-copy p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 16px;
  line-height: 1.8;
}

.login-points {
  display: flex;
  gap: 26px;
  margin-top: 35px;
  color: rgba(255, 255, 255, 0.88);
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 50px;
}

.login-card {
  width: 390px;
}

.login-card h2 {
  margin: 0;
  font-size: 28px;
}

.login-card .sub {
  margin: 8px 0 30px;
  color: var(--muted);
}

.login-field {
  margin-bottom: 17px;
}

.login-field label {
  display: block;
  margin-bottom: 7px;
  color: #44556a;
}

.login-field .input {
  height: 44px;
}

.login-submit {
  width: 100%;
  height: 44px;
  margin-top: 5px;
}

.login-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.check-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  background: rgba(14, 27, 42, 0.42);
}

.modal {
  width: 520px;
  max-height: 78vh;
  overflow: auto;
  border-radius: 7px;
  background: white;
  box-shadow: 0 18px 50px rgba(7, 24, 43, 0.2);
}

.modal-head,
.modal-foot {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.modal-foot {
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.modal-body {
  padding: 18px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: none;
  padding: 11px 15px;
  border-radius: 5px;
  color: white;
  background: #1b2b3d;
  box-shadow: 0 8px 20px rgba(10, 26, 44, 0.2);
}

.toast.show {
  display: block;
}

@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-2,
  .grid-equal {
    grid-template-columns: 1fr;
  }
}
