@import url('https://www.kish.top/static/pub/css/fonts/1/css2.css');

    :root {
      --bg: #F2E3D5;
      --surface: #FFF7F0;
      --text: #1A2F2C;
      --text-muted: #6B7F7A;
      --oxidation: #0A5E55;
      --coral-bone: #F2E3D5;
      --alert-orange: #F28C38;
      --border-radius: 2px;
      --shadow-offset: 4px;
    }

    * { margin: 0; padding: 0; box-sizing: border-box; }

    body {
      background-color: var(--bg);
      color: var(--text);
      font-family: 'Noto Sans SC';
      line-height: 1.6;
      background-image: radial-gradient(circle at 10% 20%, rgba(10, 94, 85, 0.05) 1px, transparent 1px);
      background-size: 30px 30px;
      min-height: 100vh;
    }
    ul {
      padding: 15px;
    }
    .app-shell { display: flex; height: 100vh; }

    .sidebar {
      width: 260px;
      background: var(--surface);
      border-right: 1px solid rgba(10, 94, 85, 0.2);
      display: flex;
      flex-direction: column;
      padding: 2rem 1rem;
      flex-shrink: 0;
    }
    .sidebar .logo { serif; font-size: 1.6rem; color: var(--oxidation); margin-bottom: 2rem; line-height: 1.3; }
    .sidebar .logo span { font-style: italic; font-size: 1rem; color: var(--text-muted); display: block; }
    .class-list { flex: 1; overflow-y: auto; }
    .class-item { padding: 0.8rem 0.5rem; cursor: pointer; border-left: 3px solid transparent; margin-bottom: 0.3rem; font-size: 0.95rem; }
    .class-item:hover { background: var(--coral-bone); }
    .class-item.active { border-left: 3px solid var(--oxidation); background: var(--coral-bone); font-weight: 500; }
    .class-item i { margin-right: 0.5rem; color: var(--oxidation); }
    .sidebar .user-info { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--coral-bone); font-size: 0.8rem; color: var(--text-muted); }

    button {
      background: transparent; border: 1px solid var(--oxidation);font-family: 'Noto Sans SC';color: var(--oxidation);margin-top: 10px;
      padding: 0.4rem 1rem; sans-serif; font-weight: 500;
      cursor: pointer; border-radius: var(--border-radius); text-transform: lowercase; transition: all 0.15s; font-size: 0.85rem;
    }
    button.primary { background: var(--oxidation); color: var(--surface); border: none; }
    button.primary:hover { background: transparent; color: var(--oxidation); border: 1px solid var(--oxidation); }
    button:hover { background: var(--oxidation); color: var(--surface); border-color: var(--oxidation); }

    input, select, textarea {
      padding: 0.5rem; border: 1px solid rgba(10, 94, 85, 0.3); border-radius: var(--border-radius);
       background: var(--surface); color: var(--text); font-size: 0.9rem;
    }

    .main-panel { flex: 1; overflow-y: auto; padding: 2rem; }
    .empty-state-quote {
      display: flex; align-items: center; justify-content: center; height: 100%;
       serif; font-size: 2rem; color: var(--oxidation); opacity: 0.6; text-align: center; padding: 2rem;
    }

    .card { background: var(--surface); border-radius: 10px; border: 1px solid rgba(10, 94, 85, 0.1); padding: 1.2rem; margin-bottom: 1.5rem; }
    .hidden { display: none !important; }

    .back-btn { margin-bottom: 1.5rem; font-size: 1rem; }

    .score-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; white-space: nowrap; }
    .score-table th, .score-table td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--coral-bone); text-align: center;position: sticky;top: 0; }
    .score-table th { background: var(--oxidation); color: white; font-weight: 400; position: sticky; top: 0;z-index: 1; }
    .stat-row { background: var(--coral-bone); font-weight: 500; }
    .improved { color: #0A5E55; }
    .declined { color: #F28C38; }

    .modal-overlay {
      position: fixed; top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center; z-index: 1000;
    }
    .modal { background: var(--surface); padding: 1.4rem; box-shadow: 8px 8px 0 0 rgba(10, 94, 85, 0.2); max-width: 500px; width: 90%; }
    .modal h3 { serif; margin-bottom: 1.5rem; }
    .modal input { width: 100%; }
    .modal-buttons { display: flex; justify-content: flex-end; gap: 0.5rem; }
.area-loading {
  position: relative;
  min-height: 100px;
}
.loading-spinner {
  width: 36px;
  height: 36px;
  border: 4px solid var(--coral-bone);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 40px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }
.modal {
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.modal-body {
  overflow-y: auto;
  flex: 1;
  padding: 0 1.5rem 1rem;
}
.modal-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding-top: 15px;
  border-top: 1px solid var(--coral-bone, #eee);
  flex-wrap: wrap;  /* 防止按钮过长时错位 */
}
.modal-buttons button {
  white-space: nowrap;
}
.lookup-display-check.lookup-display-check {
width: auto;
}
/* 班级列表项样式 */
.class-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.5rem;
  cursor: pointer;
  border-left: 3px solid transparent;
  margin-bottom: 0.3rem;
  font-size: 0.95rem;
  position: relative;
}
.class-name {
  flex: 1;
}
.class-more-btn {
  padding: 0 6px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 0.9rem;
}
.class-more-btn:hover {
  color: var(--text);
}

/* 下拉菜单 */
.class-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--surface);
  border: 1px solid rgba(10, 94, 85, 0.15);
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  min-width: 120px;
  z-index: 100;
  overflow: hidden;
  margin-top: 2px;
}
.class-dropdown .dropdown-item {
  padding: 6px 14px;
  font-size: 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}
.class-dropdown .dropdown-item:hover {
  background: var(--coral-bone);
}
.class-dropdown .dropdown-item i {
  width: 16px;
  text-align: center;
}
.class-dropdown.hidden {
  display: none;
}
/* 在 console.css 中添加 */
.settings-divider {
  border: none;
  border-top: 1px solid var(--coral-bone);
  margin: 1rem 0;
}
.logout-btn-wrap {
  text-align: center;
  padding-top: 0.5rem;
}
.logout-btn-wrap button {
  border-color: var(--alert-orange);
  color: var(--alert-orange);
  padding: 0.4rem 2rem;
  font-size: 0.85rem;
}
.logout-btn-wrap button:hover {
  background: var(--alert-orange);
  color: white;
}
       ::-webkit-scrollbar {
           background: transparent;
           width: 8px;
           height: 8px;
       }

       ::-webkit-scrollbar-thumb {
           background: rgba(0,0,0,0.3);
           border-radius: 4px;
       }

       ::-webkit-scrollbar-thumb:hover {
           background: rgba(0,0,0,0.5);
        }