/* ============ 学期运行概览页（校级大屏） ============ */

/* 顶栏 */
.sem-top {
  flex: none;
  padding: 16px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: radial-gradient(circle at 50% 50%, rgba(6, 12, 33, 1) 35%, rgba(20, 31, 64, 1) 78%, rgba(42, 55, 102, 1) 100%);
  backdrop-filter: blur(20px);
  border-radius: 0 0 20px 20px;
  position: relative;
  z-index: 10;
}
.sem-top-left { display: flex; align-items: center; gap: 40px; }
.sem-brand { display: flex; align-items: center; gap: 10px; padding: 4px 0; }
.sem-brand img { width: 30px; height: 30px; }
.sem-brand h1 { font-size: 24px; font-weight: 1000; letter-spacing: 0.06em; color: var(--c-text); white-space: nowrap; }
.sem-source { display: flex; align-items: center; gap: 12px; }
.sem-source span { font-size: 16px; font-weight: 500; color: var(--c-sub); white-space: nowrap; }
.sem-top-right { display: flex; align-items: center; gap: 40px; }
.sem-clock { display: flex; align-items: center; gap: 12px; }
.sem-clock span { font-size: 16px; font-weight: 500; color: var(--c-text); white-space: nowrap; }
.sem-weather { display: flex; align-items: center; gap: 12px; }
.sem-weather span { font-size: 16px; font-weight: 500; color: var(--c-text); white-space: nowrap; }
.sem-weather img { width: 22px; height: 22px; }

/* 主体三列 */
.sem-board { flex: 1; display: flex; gap: 16px; padding: 16px 24px 24px; min-height: 0; }
.sem-col-left, .sem-col-right { width: 480px; flex: none; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.sem-col-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; min-height: 0; }
/* 模块裁切：任何内容不得跑出面板 */
.sem-board .panel { overflow: hidden; }

/* ============ 左列：课程建设 ============ */
.sem-panel-course { flex: none; }
.sem-course-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 20px 0; }
.sem-metric-big, .sem-metric-small {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--card-bg);
  border: 1.6px solid transparent;
  background-clip: padding-box;
  border-radius: 20px;
  box-shadow: 0 0 16px 0 rgba(255, 255, 255, 0.04);
  position: relative;
}
.sem-metric-big::before, .sem-metric-small::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-metric-big { padding: 16px 30px 16px 16px; }
.sem-metric-big > img, .sem-metric-small > img { width: 42px; height: 42px; flex: none; }
.sem-metric-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.sem-metric-label { font-size: 14px; font-weight: 700; color: var(--c-text); line-height: 1.2em; }
.sem-metric-small .sem-metric-label { font-weight: 500; }
.sem-metric-num { display: flex; align-items: baseline; gap: 4px; }
.sem-metric-num span { font-family: var(--font-num); font-size: 20px; font-weight: 700; color: var(--c-num); }
.sem-metric-num em { font-style: normal; font-size: 14px; color: var(--c-muted); }
.sem-metric-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.sem-metric-side p { display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--c-muted); }
.sem-metric-side b { font-weight: 400; color: var(--c-up); }
.sem-metric-row { display: flex; gap: 12px; }
.sem-metric-small { flex: 1; padding: 16px; }
.sem-metric-small > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sem-trend-head {
  padding: 16px 0 10px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #fff 0%, #E5E7FF 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.5;
}
.sem-access-chart { position: relative; height: 112px; flex: none; margin: 0 -20px; }
.sem-access-dates {
  position: absolute;
  top: 55px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  white-space: nowrap;
}
.sem-access-dates span { font-size: 12px; font-weight: 500; color: var(--c-sub); }
.sem-access-tip {
  position: absolute;
  left: 155px;
  top: 8.44px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32, 48, 92, 0.5) 0%);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: left .15s cubic-bezier(.2, .7, .3, 1);
}
.sem-access-tip b { font-size: 14px; font-weight: 700; color: #fff; }
.sem-access-tip p { display: flex; align-items: center; font-size: 12px; color: var(--c-text); }
.sem-access-tip p .dot { width: 6px; height: 6px; border-radius: 50%; background: #855CFF; margin-right: 4px; }
.sem-access-tip u { text-decoration: none; }

/* SVG 宿主（折线切图内联） */
.sem-svg-host { position: absolute; pointer-events: none; }
.sem-svg-host svg { width: 100%; height: 100%; overflow: visible; display: block; }

/* 悬停竖线 / 圆点 */
.sem-vline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1.6px;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 100%);
  display: none;
  pointer-events: none;
}
.sem-hover-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px #855CFF;
  transform: translate(-50%, -50%);
  display: none;
  pointer-events: none;
}
.sem-hover-dot.big { width: 15.4px; height: 15.4px; background: #22262B; box-shadow: none; border: 4px solid #fff; }

/* ============ 左列：各院系活跃课程总览 ============ */
.sem-panel-dept { flex: 1; }
.sem-dept-body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 12px 20px 20px; min-height: 0; }
.sem-dept-head { display: flex; align-items: center; gap: 24px; font-size: 10px; color: var(--c-sub); }
.sem-dept-head span:nth-child(1) { width: 40px; flex: none; }
.sem-dept-head span:nth-child(2) { flex: 1; }
.sem-dept-head span:nth-child(3) { flex: none; }
.sem-dept-chart { flex: 1; position: relative; min-height: 0; }
.sem-dept-rows { position: absolute; inset: 0 0 28px 0; display: flex; flex-direction: column; justify-content: space-between; }
.sem-dept-row { display: flex; align-items: center; }
.sem-dept-rank {
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: #2C3066;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-num);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-right: 6px;
  margin-left: 9px;
}
.sem-dept-row.top .sem-dept-rank { background: linear-gradient(135deg, #7C3AED 0%, #A78BFA 100%); color: #fff; }
.sem-dept-name { width: 78px; flex: none; font-size: 10px; line-height: 1.2em; color: var(--c-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 10px; }
.sem-dept-bar { flex: 1; height: 10px; border-radius: 20px; background: #192752; position: relative; overflow: hidden; }
.sem-dept-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 20px; width: 0; transition: width 1s cubic-bezier(.25, .7, .3, 1); }
.sem-dept-val { width: 40px; flex: none; text-align: right; font-family: Roboto, var(--font-num); font-size: 12px; color: #707686; }
.sem-dept-axis {
  position: absolute;
  left: 100px;
  right: 40px;
  bottom: 0;
  height: 18px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #707686;
}

/* ============ 中列：全景 ============ */
.sem-panel-pano { height: 360px; flex: none; overflow: hidden; }
.sem-pano-bg { position: absolute; left: 1.6px; top: -9.64px; width: 861.73px; height: 417.28px; object-fit: cover; opacity: .95; }
.sem-panel-pano .panel-head { position: relative; z-index: 2; }
.sem-pano-body { position: relative; flex: 1; z-index: 2; }
.sem-float-card {
  position: absolute;
  width: 250px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--card-bg);
  border: 1.6px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 16px 0 rgba(255, 255, 255, 0.04);
}
.sem-float-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-float-card > img { width: 54px; height: 54px; flex: none; }
/* 全景浮卡轻微上下浮动 */
@keyframes semFloat { from { transform: translateY(0); } to { transform: translateY(-6px); } }
.sem-float-card { animation: semFloat 3.6s ease-in-out infinite alternate; }
.sem-float-card:nth-child(2) { animation-delay: 1.2s; }
.sem-float-card:nth-child(3) { animation-delay: 2.1s; }
.sem-float-card > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.sem-float-label { font-size: 16px; font-weight: 700; color: var(--c-text); line-height: 1.2em; white-space: nowrap; }
.sem-float-num { display: flex; align-items: baseline; gap: 4px; }
.sem-float-num span { font-family: var(--font-num); font-size: 26px; font-weight: 700; color: var(--c-num); }
.sem-float-num em { font-style: normal; font-size: 14px; color: var(--c-muted); }
.sem-float-delta { display: flex; align-items: center; gap: 2px; font-size: 14px; }
.sem-float-delta i { font-style: normal; color: var(--c-muted); }
.sem-float-delta b { font-weight: 400; color: var(--c-up); }

/* ============ 中列：教师/学生使用 ============ */
.sem-usage-row { flex: 1; display: flex; gap: 16px; min-height: 0; }
.sem-panel-usage { flex: 1; min-width: 0; }
.sem-usage-body { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 20px; min-height: 0; justify-content: space-between; }
.sem-usage-card {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1.6px solid transparent;
  background-clip: padding-box;
  position: relative;
}
.sem-usage-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-usage-card > img { width: 54px; height: 54px; margin: -12px; flex: none; }
.sem-usage-card > p { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; color: var(--c-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sem-usage-num { display: flex; align-items: center; gap: 4px; }
.sem-usage-num span { font-family: var(--font-num); font-size: 18px; font-weight: 700; color: var(--c-num); }
.sem-usage-num em { font-style: normal; font-size: 12px; color: var(--c-sub); }

/* ============ 中列：AI 智能洞察 ============ */
.sem-panel-insight { flex: none; }
.sem-insight-row { display: flex; gap: 12px; padding: 20px; }
.sem-insight-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 20px;
  border-radius: 20px;
  background: var(--card-bg);
  position: relative;
}
.sem-insight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-insight-head { display: flex; align-items: center; gap: 8px; }
/* 切图 SVG 画布 48×48 含发光留白，图标本体 30px */
.sem-insight-head img { width: 48px; height: 48px; margin: -8.93px; flex: none; }
.sem-insight-head h3 { font-size: 17px; font-weight: 900; color: var(--c-text); line-height: 1.2em; }
.sem-insight-card > p { font-size: 13px; color: #ABB5CC; line-height: 1.5em; }

/* ============ 右列：运行总览 ============ */
.sem-panel-overview { flex: none; }
.sem-overview-row { display: flex; gap: 10px; padding: 20px; }
.sem-overview-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px 12px;
  border-radius: 20px;
  background: var(--card-bg);
  position: relative;
}
.sem-overview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-overview-card img { width: 70px; height: 70px; }
.sem-overview-card p { font-size: 17px; font-weight: 900; color: var(--c-text); white-space: nowrap; }
.sem-overview-num { display: flex; align-items: baseline; gap: 4px; }
.sem-overview-num span { font-family: var(--font-num); font-size: 24px; font-weight: 700; color: var(--c-num); }
.sem-overview-num em { font-style: normal; font-size: 14px; color: var(--c-muted); }

/* ============ 右列：运行成果 ============ */
.sem-panel-result { flex: none; }
.sem-result-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.sem-result-row { display: flex; gap: 12px; }
.sem-result-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: var(--card-bg);
  position: relative;
}
.sem-result-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1.6px;
  background: var(--card-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.sem-result-label { display: flex; align-items: center; gap: 8px; }
.sem-result-label img { width: 64px; height: 64px; margin: -12px; }
.sem-result-label p { font-size: 18px; font-weight: 700; color: rgba(255, 255, 255, 0.9); line-height: 1.1em; }
.sem-result-bar { display: flex; align-items: center; gap: 10px; }
.sem-result-bar > i {
  flex: 1;
  height: 10px;
  border-radius: 20px;
  background: linear-gradient(90deg, #11244D 0%, #1A305C 100%);
  position: relative;
  overflow: hidden;
}
.sem-result-bar > i::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--w, 0%);
  border-radius: 20px;
  transition: width 1.2s cubic-bezier(.25, .7, .3, 1);
}
.sem-result-bar > i.g1::after { background: linear-gradient(90deg, #A046EE 0%, #AA77F7 100%); }
.sem-result-bar > i.g2::after { background: linear-gradient(90deg, #445DDB 0%, #80A1FF 100%); }
.sem-result-num { display: flex; align-items: baseline; min-width: 44px; }
.sem-result-num span { font-family: var(--font-num); font-size: 22px; font-weight: 700; color: var(--c-text); }
.sem-result-num em { font-style: normal; font-size: 16px; font-weight: 500; color: var(--c-text); }

/* ============ 右列：师生使用趋势 ============ */
.sem-panel-trend { flex: 1; min-height: 0; }
.sem-trend-head-row { position: relative; }
.sem-tabs {
  position: absolute;
  right: 20px;
  top: 12px;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: 20px;
  background: #1F2C4D;
  box-shadow: inset -1px 1px 3px 0 rgba(255, 255, 255, 0.04);
}
.sem-tabs span { padding: 3px 12px; font-size: 14px; color: var(--c-muted); border-radius: 16px; cursor: pointer; }
.sem-tabs span.on {
  background: radial-gradient(circle at 50% 0%, #3B4B75 0%, #2B3C6B 100%);
  color: #E8F2FF;
  font-weight: 700;
}
.sem-trend-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 0; }
.sem-trend-chart { flex: 1; display: flex; gap: 12px; min-height: 0; }
.sem-trend-y { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; font-size: 12px; color: var(--c-sub); }
.sem-trend-lines { flex: 1; position: relative; min-width: 0; }
.sem-trend-tip {
  position: absolute;
  left: 148px;
  top: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(32, 48, 92, 0.5) 0%);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: left .15s cubic-bezier(.2, .7, .3, 1), top .15s cubic-bezier(.2, .7, .3, 1);
  white-space: nowrap;
  z-index: 4;
}
.sem-trend-tip .tip-h { display: flex; gap: 6px; }
.sem-trend-tip .tip-h b { font-size: 14px; font-weight: 700; color: #fff; }
.sem-trend-tip p { display: flex; align-items: center; font-size: 12px; color: var(--c-text); }
.sem-trend-tip p u { text-decoration: none; }
.sem-trend-tip .line { width: 14px; height: 4px; border-radius: 4px; margin-right: 6px; }
.sem-trend-tip .line.p { background: linear-gradient(90deg, #A046EE 0%, #AA77F7 100%); box-shadow: 0 0 16px rgba(160, 70, 238, 0.6); }
.sem-trend-tip .line.b { background: linear-gradient(90deg, #5446EE 0%, #777FF7 100%); box-shadow: 0 0 16px rgba(84, 70, 238, 0.6); }
.sem-trend-dates { display: flex; justify-content: space-between; padding-left: 40px; }
.sem-trend-dates span { font-size: 12px; color: var(--c-sub); }
