/* ========================================
   共享样式文件 (common.css)
   为智慧科研评估系统提供的公共样式
   包含：基础色彩主题、布局结构、组件样式和响应式设计
   ======================================== */

/* ========= 基础色彩变量 ========= */
:root {
  /* 背景色系 */
  --primary-bg: #0c1633;           /* 主背景色 - 深蓝 */
  --secondary-bg: #1a2b56;         /* 次级背景色 - 面板背景 */
  --tertiary-bg: #262F50;          /* 三级背景色 - 卡片背景 */
  --card-bg: #1f3266;              /* 卡片背景色 */

  /* 边框色系 */
  --primary-border: rgba(73,134,255,1);    /* 主边框色 - 蓝色 */
  --secondary-border: rgba(73,134,255,0.3); /* 次级边框色 - 半透明蓝 */

  /* 强调色系 */
  --accent-color: #4080ff;         /* 主强调色 - 蓝色 */
  --accent-color-alt: #4986ff;     /* 次级强调色 */
  --accent-color-success: rgb(63, 196, 15); /* 成功色 - 绿色 */

  /* 文本色系 */
  --text-color: white;             /* 主文本色 - 白色 */
  --text-color-dim: rgba(255,255,255,0.7); /* 次级文本色 - 半透明白 */
  --text-color-dimmer: rgba(255,255,255,0.5); /* 更弱的文本色 */

  /* 按钮相关 */
  --button-primary-bg: rgba(14,62,167,1);  /* 主按钮背景色 */
  --button-border: rgba(73,134,255,1);     /* 按钮边框色 */
  --button-border-light: rgba(73,134,255,0.5); /* 次要按钮边框色 */
}

/* ========= 基础布局和页面结构 ========= */
/* 主容器样式 */
.dashboard, .evaluation-page {
  width: 100%;
  min-height: 100vh;
  background-color: var(--primary-bg);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

/* ========= 头部导航栏样式 ========= */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  height: 60px;
}

/* Logo区域样式 */
.logo {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

/* 标题样式 */
.main-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 32px;
  font-family: PingFangSC-bold;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.title-line {
  border: 2px solid var(--primary-border);
  width: 200px;
}

.title-text {
  margin: 0 50px;
}

/* ========= 内容区域布局 ========= */
.dashboard-content, .content-container {
  padding: 15px;
  display: flex;
  gap: 15px;
  flex: 1;
  overflow: hidden;
}

.dashboard-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* ========= 面板和卡片样式 ========= */
.dashboard-panel {
  background-color: var(--secondary-bg);
  border-radius: 5px;
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.dashboard-panel h2 {
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 16px;
  text-align: center;
}
h2{
  text-align: left!important;
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.panel-header h2 {
  margin: 0;
  text-align: center;
  flex: 1;
}

.panel-link {
  color: var(--accent-color);
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
}

/* ========= 教师卡片和信息样式 ========= */
.teacher-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--secondary-border);
  min-height: 450px;
}

.card-top {
  display: flex;
  padding: 15px;
  border-bottom: 1px solid var(--secondary-border);
  flex: 0 0 auto;
}

.teacher-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 15px;
}

.teacher-photo {
  width: 100px;
  height: 120px;
  overflow: hidden;
  margin-bottom: 5px;
  background-color: rgba(73,134,255,0.1);
  border-radius: 4px;
}

.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.teacher-id {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
}

.teacher-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.info-row {
  display: flex;
  margin-bottom: 8px;
}

.info-label {
  width: 80px;
  color: var(--text-color-dim);
}

.info-value {
  font-weight: bold;
  /* white-space: nowrap; */
  text-overflow: ellipsis;
  overflow: hidden;
  font-size: 12px;
}

/* ========= 按钮样式 ========= */
.add-evaluation-btn, .drawer-btn {
  padding: 8px 15px;
  border-radius: 10px;
  font-size: 14px;
  text-align: center;
  font-family: PingFangSC-regular;
  cursor: pointer;
}

.add-evaluation-btn, .confirm-btn {
  background-color: var(--button-primary-bg);
  color: var(--text-color);
  border: 1px solid var(--button-border);
}

.cancel-btn {
  background-color: transparent;
  color: rgba(255,255,255,0.8);
  border: 1px solid var(--button-border-light);
}

/* ========= 图表容器样式 ========= */
.chart-container {
  width: 100%;
  flex: 1;
}

.radar-chart {
  width: 100%;
  height: 100%;
}

.evaluation-chart {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  min-height: 250px;
}

/* ========= 自定义滚动条 ========= */
.custom-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-color-alt) transparent;
}

.custom-scrollbar::-webkit-scrollbar,
.drawer-content::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track,
.drawer-content::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb,
.drawer-content::-webkit-scrollbar-thumb {
  background-color: var(--accent-color-alt);
  border-radius: 10px;
  border: none;
}

.custom-scrollbar::-webkit-scrollbar-button {
  display: none;
}

/* ========= 响应式布局 ========= */
@media (max-width: 1200px) {
  .dashboard-content, .content-container {
    flex-direction: column;
  }

  .main-title {
    font-size: 24px;
  }

  .title-line {
    width: 100px;
  }

  .title-text {
    margin: 0 20px;
  }

  .teacher-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .teacher-card {
    min-height: 400px;
  }
}


.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 80px;
  background-color: rgba(12, 22, 51, 0.8);
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1; /* 占据可用空间 */
}

.logo img {
  height: 40px;
  object-fit: contain;
  cursor: pointer;
}

.main-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 32px;
  font-weight: bold;
  color: white;
  white-space: nowrap;
  /* background: linear-gradient(90deg, transparent, rgba(73, 134, 255, 0.3), transparent); */
  padding: 0 200px;
}

.main-title::before,
.main-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 200px;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(73, 134, 255, 0.8));
}

.main-title::before {
  left: 0;
}

.main-title::after {
  right: 0;
  transform: scaleX(-1);
}

.header-placeholder {
  flex: 1; /* 与logo对称的占位元素 */
}

/* 响应式调整 */
@media (max-width: 1200px) {
  .dashboard-header {
    height: 60px;
    padding: 0 10px;
  }
  
  .logo img {
    height: 30px;
  }
  
  .main-title {
    font-size: 28px;
    padding: 0 150px;
  }
  
  .main-title::before,
  .main-title::after {
    width: 150px;
    height: 3px;
  }
}
/* 响应式调整 */
@media (max-width: 768px) {
  .dashboard-header {
    height: 60px;
    padding: 0 10px;
  }
  
  .logo img {
    height: 30px;
  }
  
  .main-title {
    font-size: 24px;
    padding: 0 30px;
  }
  
  .main-title::before,
  .main-title::after {
    width: 30px;
    height: 2px;
  }
}