/* ==========================================================================
   禾基儿童发展中心 — PC 后台原型样式表  v2.0
   设计基准：官网品牌色 #a0c511（黄绿 / chartreuse）
   配色策略：亮黄绿 = 品牌与大面积图形；深绿 = 可交互控件与文字
             （#a0c511 白字对比度仅 2.00:1，不可用于按钮与正文）
   纯静态演示用，无构建、无依赖
   ========================================================================== */

:root {
  /* ---- 品牌绿阶（由官网 #a0c511 推导）---- */
  --g-25:  #fbfdf2;
  --g-50:  #f2f8dc;   /* 卡片表头 / 浅底 */
  --g-100: #e4f2b4;
  --g-200: #d3e88a;
  --g-300: #c2de5c;
  --g-400: #b1d333;
  --g-500: #a0c511;   /* 品牌色 */
  --g-600: #92b30e;
  --g-700: #44770e;   /* 深绿 · 白字 5.88:1 */
  --g-800: #3b660c;   /* 链接/文字绿 · 白底 6.6:1 */
  --g-900: #2f4a0a;   /* 深文字 */
  --g-950: #22380a;   /* 亮底上的字 */

  /* ---- 中性色（带极淡绿灰调）---- */
  --n-0:   #ffffff;
  --n-25:  #fcfdf8;
  --n-50:  #f7f9f0;
  --n-100: #eff3e6;
  --n-200: #e2e6dc;
  --n-300: #cfd5c6;
  --n-400: #a8b09c;
  --n-500: #8b9182;
  --n-600: #6b7263;
  --n-700: #4a5044;
  --n-800: #2f342b;
  --n-900: #1a2016;

  /* ---- 深色侧边栏 ---- */
  /* 侧边栏用浅色底，与白色内容区靠一像素分割线区分；绿色只做点缀 */
  --sb-bg:       #fbfcf8;
  --sb-bg-2:     #f1f5e8;   /* hover */
  --sb-line:     #e6eadf;
  --sb-text:     #4a5044;   /* 白底 8.08:1 */
  --sb-text-dim: #6b7263;   /* 分组标题 4.84:1 */

  /* ---- 语义色（各自独立，不与品牌绿冲突）---- */
  --ok:     #2f7d5f;  --ok-50:     #e9f5f0;  --ok-line:     #b9dfd1;
  --warn:   #8f5a06;  --warn-50:   #fdf4e3;  --warn-line:   #f0d9a8;
  --danger: #b3261e;  --danger-50: #fdeceb;  --danger-line: #f5c4c0;
  --info:   #2563a8;  --info-50:   #eaf2fb;  --info-line:   #bcd6ef;

  /* ---- 语义映射 ---- */
  --bg:       var(--n-50);
  --surface:  var(--n-0);
  --border:   var(--n-200);
  --border-2: var(--n-300);
  --ink-900:  var(--n-900);
  --ink-700:  var(--n-700);
  --ink-500:  var(--n-600);
  --ink-400:  var(--n-500);

  --brand-50:  var(--g-50);
  --brand-100: var(--g-100);
  --brand-200: var(--g-200);
  --brand-500: var(--g-500);
  --brand-600: var(--g-800);
  --brand-700: var(--g-900);

  /* ---- 形状与阴影 ---- */
  --radius-sm: 8px;
  --radius:    11px;
  --radius-lg: 15px;
  --shadow-xs: 0 1px 2px rgba(26, 32, 22, .05);
  --shadow-sm: 0 1px 3px rgba(26, 32, 22, .07), 0 1px 2px rgba(26, 32, 22, .04);
  --shadow:    0 4px 14px rgba(26, 32, 22, .08), 0 1px 3px rgba(26, 32, 22, .04);
  --shadow-lg: 0 18px 48px rgba(26, 32, 22, .18), 0 2px 8px rgba(26, 32, 22, .06);

  --sidebar-w: 226px;
  --header-h:  60px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-900);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--g-800); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: var(--g-200); color: var(--g-950); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--n-300); border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--n-400); }

/* ---------------------------------------------------------------- 布局骨架 */

.layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--sb-bg);
  color: var(--sb-text);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  border-right: 1px solid var(--border);
}
.sidebar::-webkit-scrollbar { width: 8px; }
.sidebar::-webkit-scrollbar-thumb { background: #d8dece; border: 2px solid var(--sb-bg); border-radius: 8px; }

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  /* 与顶栏等高，避免左右顶部错位 */
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  padding: 0 16px;
  border-bottom: 1px solid var(--sb-line);
  box-sizing: border-box;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background .16s;
}
.brand:hover { background: var(--g-25); text-decoration: none; }
.brand:hover .brand-text b { color: var(--g-800); }
.brand-text { min-width: 0; flex: 1 1 auto; }
.brand-text b, .brand-text span {
  display: block; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.brand-logo {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(140deg, var(--g-200), var(--g-400) 55%, var(--g-500));
  display: grid; place-items: center;
  font-size: 19.5px; font-weight: 800; color: var(--g-950);
  flex: 0 0 auto;
  box-shadow: 0 2px 10px rgba(160, 197, 17, .4), inset 0 1px 0 rgba(255, 255, 255, .6);
  letter-spacing: -1px;
}
.brand-text b { display: block; color: #2f342b; font-size: 15.5px; font-weight: 650; letter-spacing: .2px; }
.brand-text span { font-size: 12.5px; color: var(--sb-text-dim); display: block; margin-top: 1px; }

.nav { padding: 12px 10px 30px; flex: 1 1 auto; }
.nav-group { margin-bottom: 16px; }
.nav-group > h4 {
  margin: 0 0 7px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--sb-text-dim);
  text-transform: uppercase;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: var(--radius-sm);
  color: var(--sb-text);
  font-size: 15px;
  margin-bottom: 2px;
  transition: background .16s, color .16s;
  text-decoration: none;
  position: relative;
}
.nav-item:hover { background: var(--sb-bg-2); color: #2f342b; text-decoration: none; }
.nav-item.active {
  background: linear-gradient(95deg, rgba(160, 197, 17, .20) 0%, rgba(160, 197, 17, .05) 100%);
  color: var(--g-950);
  font-weight: 680;
  box-shadow: inset 0 0 0 1px rgba(160, 197, 17, .38);
}
/* 左侧 3px 绿条：点缀，不用整块绿 */
.nav-item.active::before {
  content: "";
  position: absolute;
  left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 17px;
  border-radius: 0 3px 3px 0;
  background: var(--g-500);
}
.nav-item.active .ico { color: var(--g-800); opacity: 1; }
.nav-item .ico { width: 18px; text-align: center; font-size: 15.5px; flex: 0 0 18px; opacity: .9; }
.nav-item.active .ico { opacity: 1; }
.nav-item .tag {
  margin-left: auto;
  font-size: 11.5px;
  font-weight: 700;
  background: #eef1ea;
  color: var(--sb-text);
  padding: 1px 6px;
  border-radius: 5px;
}
.nav-item.active .tag { background: rgba(160, 197, 17, .3); color: var(--g-950); }

.main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h1 { font-size: 18.5px; margin: 0; font-weight: 680; letter-spacing: -.2px; }
.topbar .crumb { font-size: 13px; color: var(--ink-400); margin-top: -3px; }
.topbar .spacer { flex: 1 1 auto; }
.topbar .env {
  font-size: 12.5px;
  font-weight: 600;
  background: var(--g-50);
  color: var(--g-950);
  border: 1px solid var(--g-200);
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.topbar .env::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--g-500);
}

.user-wrap { position: relative; flex: 0 0 auto; }

.user-chip {
  display: flex; align-items: center; gap: 9px;
  padding: 5px 12px 5px 5px;
  border-radius: 26px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: var(--surface);
  font-family: inherit; font-size: inherit;
  transition: border-color .16s, background .16s;
}
.user-chip:hover { background: var(--n-25); border-color: var(--border-2); }
.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(140deg, var(--g-400), var(--g-700));
  color: var(--g-950); display: grid; place-items: center;
  font-size: 14px; font-weight: 750; flex: 0 0 auto;
}
.avatar.gray { background: linear-gradient(140deg, #b4bbaa, #7c8371); }
.avatar.green, .avatar.g { background: linear-gradient(140deg, #4fae8b, #2f7d5f); }
.avatar.warm, .avatar.o { background: linear-gradient(140deg, #f0b34e, #c47f10); }
.avatar.pink, .avatar.p { background: linear-gradient(140deg, #ef8fb4, #c2447a); }
.avatar.blue, .avatar.b { background: linear-gradient(140deg, #74a9e0, #2c6cb0); }
.avatar.sm { width: 24px; height: 24px; font-size: 12px; }
.avatar.lg { width: 58px; height: 58px; font-size: 22.5px; }
.user-chip b { font-size: 14.5px; font-weight: 650; display: block; line-height: 1.3; }
.user-chip span { font-size: 12.5px; color: var(--ink-400); display: block; line-height: 1.3; }
.user-chip .caret {
  font-size: 11.5px; color: var(--ink-400); margin-left: 1px;
  transition: transform .16s;
}
.user-wrap.open .user-chip { border-color: var(--g-400); background: var(--g-25); }
.user-wrap.open .caret { transform: rotate(180deg); }

/* 用户菜单 */
.user-menu {
  position: absolute; right: 0; top: calc(100% + 9px);
  min-width: 232px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 60;
  animation: pop .15s cubic-bezier(.2, .9, .3, 1);
}
.user-menu[hidden] { display: none; }
.um-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 11px; }
.um-head b { display: block; font-size: 15px; font-weight: 650; }
.um-head span { display: block; font-size: 13px; color: var(--ink-400); margin-top: 1px; }
.um-sep { height: 1px; background: var(--border); margin: 5px 0; }
.um-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border-radius: 7px;
  border: none; background: transparent;
  font-size: 14.5px; font-family: inherit; color: var(--ink-700);
  cursor: pointer; text-align: left; text-decoration: none; line-height: 1.4;
}
.um-item:hover { background: var(--g-50); color: var(--ink-900); text-decoration: none; }
.um-item .i { width: 16px; text-align: center; font-size: 14.5px; flex: 0 0 16px; opacity: .9; }
.um-item .kbd { margin-left: auto; font-size: 12px; color: var(--ink-400); }
.um-item.danger { color: var(--danger); }
.um-item.danger:hover { background: var(--danger-50); color: var(--danger); }

.content { padding: 22px 24px 44px; flex: 1 1 auto; }

/* ------------------------------------------------------------------ 通用块 */

.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head .t { flex: 1 1 280px; }
.page-head h2 {
  margin: 0 0 5px; font-size: 21.5px; font-weight: 700; letter-spacing: -.35px;
  display: flex; align-items: center; gap: 10px;
}
.page-head h2::before {
  content: ""; width: 4px; height: 19px; border-radius: 3px;
  background: linear-gradient(180deg, var(--g-400), var(--g-600));
  flex: 0 0 4px;
}
.page-head p { margin: 0; color: var(--ink-500); font-size: 14.5px; line-height: 1.7; max-width: 900px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  padding: 15px 19px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  background: linear-gradient(180deg, var(--n-25), var(--surface));
}
.card-head h3 {
  margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.15px;
  display: flex; align-items: center; gap: 8px;
}
.card-head h3::before {
  content: ""; width: 3px; height: 14px; border-radius: 2px;
  background: var(--g-500); flex: 0 0 3px;
}
.card-head .sub { font-size: 13.5px; color: var(--ink-400); }
.card-head .sub b { color: var(--g-800); font-weight: 700; }
.card-head .spacer { flex: 1 1 auto; }
.card-body { padding: 19px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.c2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.c1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.grid.c3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }

@media (max-width: 1180px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3, .grid.c2-1, .grid.c1-2, .grid.c3-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .grid.c2, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
}

/* -------------------------------------------------------------------- 按钮 */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 35px;
  padding: 0 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--ink-700);
  font-size: 14.5px;
  font-weight: 550;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
  text-decoration: none;
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--g-50); border-color: var(--g-300); color: var(--ink-900); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--g-500); outline-offset: 2px; }

.btn.primary {
  background: linear-gradient(180deg, var(--g-400), var(--g-500));
  border-color: var(--g-600);
  color: var(--g-950);
  font-weight: 680;
  box-shadow: 0 1px 2px rgba(68, 119, 14, .2), inset 0 1px 0 rgba(255, 255, 255, .42);
}
.btn.primary:hover {
  background: linear-gradient(180deg, var(--g-500), var(--g-600));
  border-color: var(--g-700);
  color: var(--g-950);
}
.btn.danger {
  background: linear-gradient(180deg, #c62f27, var(--danger));
  border-color: var(--danger);
  color: #fff;
  font-weight: 600;
}
.btn.danger:hover { background: linear-gradient(180deg, var(--danger), #8f1d17); border-color: #8f1d17; color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--g-800); box-shadow: none; font-weight: 600; }
.btn.ghost:hover { background: var(--g-100); border-color: transparent; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13.5px; border-radius: 7px; gap: 4px; }
.btn.lg { height: 42px; padding: 0 22px; font-size: 16px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .42; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover, .btn.disabled:hover { background: var(--surface); border-color: var(--border-2); color: var(--ink-700); }

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

/* -------------------------------------------------------------------- 表单 */

.field { margin-bottom: 15px; }
.field > label {
  display: block;
  font-size: 14px;
  font-weight: 620;
  color: var(--ink-700);
  margin-bottom: 6px;
}
.field > label .req { color: var(--danger); margin-left: 2px; }
.field .hint { font-size: 13px; color: var(--ink-400); margin-top: 5px; line-height: 1.6; }

.input, .select, .textarea {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
  box-shadow: var(--shadow-xs);
}
.textarea { height: auto; min-height: 88px; padding: 10px 12px; line-height: 1.65; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--n-400); }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--g-500);
  box-shadow: 0 0 0 3.5px rgba(160, 197, 17, .18);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7263' d='M6 8.6 1.6 4h8.8z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 30px;
  cursor: pointer;
}
.input.sm, .select.sm { height: 30px; font-size: 14px; border-radius: 7px; }

.input-group { display: flex; gap: 8px; align-items: center; }
.input-group .input { flex: 1 1 auto; }

.form-grid { display: grid; gap: 0 16px; }
.form-grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .form-grid.c2, .form-grid.c3 { grid-template-columns: minmax(0, 1fr); } }

.check, .radio { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; cursor: pointer; margin-right: 16px; color: var(--ink-700); }
.check input, .radio input { accent-color: var(--g-500); width: 16px; height: 16px; cursor: pointer; }

.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; inset: 0;
  background: var(--n-300); border-radius: 22px; transition: .22s; cursor: pointer;
}
.switch .slider:before {
  content: ""; position: absolute;
  width: 16px; height: 16px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .22s;
  box-shadow: 0 1px 3px rgba(26, 32, 22, .25);
}
.switch input:checked + .slider { background: var(--g-500); }
.switch input:checked + .slider:before { transform: translateX(18px); }
.switch input:focus-visible + .slider { box-shadow: 0 0 0 3px rgba(160, 197, 17, .28); }

/* -------------------------------------------------------------------- 表格 */

.table-wrap { width: 100%; overflow-x: auto; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; }
table.tbl th {
  text-align: left;
  padding: 11px 15px;
  background: var(--n-25);
  color: var(--ink-500);
  font-weight: 650;
  font-size: 13px;
  letter-spacing: .3px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
table.tbl td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--n-100);
  vertical-align: middle;
}
table.tbl tbody tr { transition: background .12s; }
table.tbl tbody tr:hover { background: var(--g-50); }
table.tbl tbody tr:last-child td { border-bottom: none; }
table.tbl td.nowrap, table.tbl th.nowrap { white-space: nowrap; }
table.tbl td.num { font-variant-numeric: tabular-nums; font-weight: 550; }
table.tbl .cell-user { display: flex; align-items: center; gap: 10px; }
table.tbl .cell-user b { font-weight: 650; display: block; font-size: 14.5px; line-height: 1.35; }
table.tbl .cell-user span { font-size: 13px; color: var(--ink-400); display: block; line-height: 1.35; }
table.tbl .row-actions { display: flex; gap: 5px; flex-wrap: wrap; }

.pager {
  display: flex; align-items: center; gap: 7px;
  padding: 13px 19px; border-top: 1px solid var(--border);
  font-size: 14px; color: var(--ink-500); flex-wrap: wrap;
  background: var(--n-25);
}
.pager .spacer { flex: 1 1 auto; }
.pager .pg {
  min-width: 31px; height: 31px; padding: 0 8px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--border-2); border-radius: 7px;
  background: var(--surface); cursor: pointer; font-size: 14px;
  color: var(--ink-700); transition: all .14s;
}
.pager .pg:hover { background: var(--g-100); border-color: var(--g-400); color: var(--g-950); }
.pager .pg.active {
  background: linear-gradient(180deg, var(--g-400), var(--g-500));
  border-color: var(--g-600); color: var(--g-950); font-weight: 750;
}

/* -------------------------------------------------------------------- 标签 */

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 650;
  padding: 2.5px 9px; border-radius: 20px;
  background: var(--n-100); color: var(--ink-500);
  white-space: nowrap; line-height: 1.55;
  border: 1px solid transparent;
}
.badge.ok { background: var(--ok-50); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-50); color: var(--warn); border-color: var(--warn-line); }
.badge.danger { background: var(--danger-50); color: var(--danger); border-color: var(--danger-line); }
.badge.info { background: var(--info-50); color: var(--info); border-color: var(--info-line); }
.badge.brand { background: var(--g-100); color: var(--g-950); border-color: var(--g-300); }
.badge.warm { background: var(--warn-50); color: var(--warn); border-color: var(--warn-line); }
.badge.dot::before { content: ""; width: 5.5px; height: 5.5px; border-radius: 50%; background: currentColor; flex: 0 0 5.5px; }

.tag-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13.5px; font-weight: 550; padding: 5px 13px; border-radius: 20px;
  border: 1px solid var(--border-2); background: var(--surface);
  color: var(--ink-500); cursor: pointer; white-space: nowrap;
  transition: all .14s; font-family: inherit;
}
.tag-btn:hover { border-color: var(--g-400); color: var(--g-950); background: var(--g-50); }
.tag-btn.active {
  background: linear-gradient(180deg, var(--g-400), var(--g-500));
  border-color: var(--g-600); color: var(--g-950); font-weight: 700;
}

/* ------------------------------------------------------------------ 统计卡 */

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 17px 19px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: box-shadow .18s, transform .18s, border-color .18s;
}
.stat:hover { box-shadow: var(--shadow); transform: translateY(-1px); border-color: var(--border-2); }
.stat::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--g-400), var(--g-600));
}
.stat .k { font-size: 14px; color: var(--ink-500); display: flex; align-items: center; gap: 6px; font-weight: 550; }
.stat .v {
  font-size: 30px; font-weight: 750; margin: 7px 0 3px;
  font-variant-numeric: tabular-nums; letter-spacing: -1px; line-height: 1.1;
  color: var(--ink-900);
}
.stat .v small { font-size: 14.5px; font-weight: 550; color: var(--ink-400); margin-left: 4px; letter-spacing: 0; }
.stat .d { font-size: 13.5px; color: var(--ink-400); }
.stat .d .up { color: var(--ok); font-weight: 700; }
.stat .d .down { color: var(--danger); font-weight: 700; }
.stat .ic {
  position: absolute; right: 15px; top: 15px;
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center; font-size: 19.5px;
  background: var(--g-100); color: var(--g-700);
}
.stat.warm .ic { background: var(--warn-50); color: var(--warn); }
.stat.ok .ic { background: var(--ok-50); color: var(--ok); }
.stat.danger .ic { background: var(--danger-50); color: var(--danger); }
.stat.info .ic { background: var(--info-50); color: var(--info); }
.stat.warm::after { background: linear-gradient(180deg, #e8b95c, var(--warn)); }
.stat.ok::after { background: linear-gradient(180deg, #5cbb99, var(--ok)); }
.stat.danger::after { background: linear-gradient(180deg, #e0706a, var(--danger)); }
.stat.info::after { background: linear-gradient(180deg, #6ba3dd, var(--info)); }

/* ------------------------------------------------------------------ 描述表 */

.desc { display: grid; grid-template-columns: 116px 1fr; font-size: 14.5px; }
.desc dt { color: var(--ink-500); padding: 9px 0; font-size: 14px; border-bottom: 1px dashed var(--n-200); }
.desc dd { margin: 0; padding: 9px 0; border-bottom: 1px dashed var(--n-200); font-weight: 500; }
.desc.c2 { grid-template-columns: 116px 1fr 116px 1fr; }
@media (max-width: 760px) { .desc.c2 { grid-template-columns: 116px 1fr; } }

/* -------------------------------------------------------------------- 时间线 */

.timeline { position: relative; padding-left: 24px; }
.timeline:before {
  content: ""; position: absolute; left: 6px; top: 5px; bottom: 5px;
  width: 2px; background: linear-gradient(180deg, var(--g-300), var(--n-200)); border-radius: 2px;
}
.tl-item { position: relative; padding: 0 0 17px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:before {
  content: ""; position: absolute; left: -21px; top: 5px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface); border: 2.5px solid var(--g-500);
  box-shadow: 0 0 0 3px var(--surface);
}
.tl-item.done:before { background: var(--ok); border-color: var(--ok); }
.tl-item.warn:before { background: var(--warn); border-color: var(--warn); }
.tl-item.danger:before { background: var(--danger); border-color: var(--danger); }
.tl-item .h { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tl-item .h b { font-size: 15px; font-weight: 650; }
.tl-item .h time { font-size: 13px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.tl-item .b { font-size: 14px; color: var(--ink-500); margin-top: 3px; line-height: 1.65; }

/* -------------------------------------------------------------------- 进度条 */

.bar { height: 8px; border-radius: 20px; background: var(--n-100); overflow: hidden; }
.bar > i {
  display: block; height: 100%; border-radius: 20px;
  background: linear-gradient(90deg, var(--g-300), var(--g-500));
  transition: width .4s ease;
}
.bar > i.ok { background: linear-gradient(90deg, #5cbb99, var(--ok)); }
.bar > i.warn { background: linear-gradient(90deg, #e8b95c, var(--warn)); }
.bar > i.danger { background: linear-gradient(90deg, #e0706a, var(--danger)); }
.bar.sm { height: 5px; }

/* ------------------------------------------------------------------ 空状态 */

.empty { text-align: center; padding: 50px 20px; color: var(--ink-400); }
.empty .ico { font-size: 44.5px; margin-bottom: 12px; opacity: .45; display: block; }
.empty p { margin: 0 0 15px; font-size: 14.5px; }

/* -------------------------------------------------------------------- 提示条 */

.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 14.5px; line-height: 1.7;
  background: var(--info-50); border: 1px solid var(--info-line); color: #1b4d84;
  margin-bottom: 16px;
}
.alert .ico { flex: 0 0 auto; font-size: 16.5px; line-height: 1.5; }
.alert.warn { background: var(--warn-50); border-color: var(--warn-line); color: #7a4c05; }
.alert.danger { background: var(--danger-50); border-color: var(--danger-line); color: #8f1d17; }
.alert.ok { background: var(--ok-50); border-color: var(--ok-line); color: #1f5b45; }
.alert b { font-weight: 680; }
.alert p { margin: 5px 0 0; }
.alert ul { margin: 6px 0 0; padding-left: 19px; }
.alert li { margin-bottom: 3px; }

/* -------------------------------------------------------------------- 弹窗 */

.modal-mask {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(26, 32, 22, .46);
  backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 58px 16px 40px;
  overflow-y: auto;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 570px;
  overflow: hidden;
  animation: pop .19s cubic-bezier(.2, .9, .3, 1);
}
.modal.wide { max-width: 900px; }
.modal.narrow { max-width: 430px; }
@keyframes pop { from { transform: translateY(-10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head {
  padding: 16px 21px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 11px;
  background: linear-gradient(180deg, var(--n-25), var(--surface));
}
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; flex: 1 1 auto; letter-spacing: -.2px; }
.modal-head .x {
  width: 29px; height: 29px; border-radius: 8px; border: none;
  background: transparent; cursor: pointer; color: var(--ink-400); font-size: 17.5px;
  display: grid; place-items: center; transition: all .14s;
}
.modal-head .x:hover { background: var(--g-100); color: var(--g-950); }
.modal-body { padding: 21px; max-height: 62vh; overflow-y: auto; }
.modal-foot {
  padding: 14px 21px; border-top: 1px solid var(--border);
  display: flex; gap: 9px; justify-content: flex-end;
  background: var(--n-25);
}

/* -------------------------------------------------------------------- 日历 */

.cal { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
/* 列数可变：默认 7 天；总览视图用 --cal-cols 指定老师数 / 教室数 */
.cal-head, .cal-row { display: grid; grid-template-columns: 64px repeat(var(--cal-cols, 7), minmax(0, 1fr)); }
.cal-head > div {
  padding: 10px 6px; text-align: center; font-size: 13.5px; font-weight: 680;
  color: var(--ink-500); background: var(--n-25); border-bottom: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.cal-head > div:first-child { border-left: none; background: var(--n-100); }
.cal-head .wk { color: var(--danger); }
.cal-slot {
  border-left: 1px solid var(--border); border-bottom: 1px solid var(--n-100);
  min-height: 76px; padding: 6px; position: relative;
}
.cal-slot:first-child {
  border-left: none; background: var(--n-25);
  font-size: 12.5px; color: var(--ink-400); text-align: center;
  display: grid; place-items: center; padding: 0; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cal-slot.today { background: var(--g-50); }
.evt {
  border-radius: 7px; padding: 5px 8px; font-size: 13px;
  margin-bottom: 4px; cursor: pointer; line-height: 1.45;
  background: var(--g-100); border-left: 3px solid var(--g-500);
  color: var(--g-950); transition: all .14s;
}
.evt:hover { box-shadow: var(--shadow-sm); transform: translateX(1px); }
.evt span { font-size: 12px; opacity: .85; display: block; }
.evt.ok { background: var(--ok-50); border-color: var(--ok); color: #1f5b45; }
.evt.warn { background: var(--warn-50); border-color: var(--warn); color: #7a4c05; }
.evt.danger { background: var(--danger-50); border-color: var(--danger); color: #8f1d17; }
.evt.gray { background: var(--n-100); border-color: var(--n-400); color: var(--ink-500); }

/* ------------------------------------------------------------------
   课次卡片：颜色语义由视图决定（课程 / 老师 / 教室），通过 CSS 变量注入
   --eb 左边条色  --ebg 底色  --efg 文字色
   ------------------------------------------------------------------ */
.evt { position: relative; background: var(--ebg, var(--g-100)); border-left-color: var(--eb, var(--g-500)); color: var(--efg, var(--g-950)); }
.evt .hd { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; line-height: 1.35; }
.evt .hd .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evt .rmline { display: flex; align-items: center; gap: 6px; margin-top: 3px; line-height: 1.4; }
.evt .rmline .cnt { font-size: 11px; font-weight: 600; opacity: .68; }
.evt .st {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 800; line-height: 1.5;
  padding: 0 4px; border-radius: 3px; background: rgba(255, 255, 255, .78);
}
.evt .st.ok { color: #1f5b45; }
.evt .st.warn { color: #7a4c05; }
.evt .st.gray { color: #5a6052; }
.evt .ln { display: flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 12px; line-height: 1.4; white-space: nowrap; overflow: hidden; }
.evt .ln .tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* 老师 / 学员 标识：统一圆形描边，靠颜色区分（与正文明显不同） */
.ic {
  flex: 0 0 15px; width: 15px; height: 15px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-style: normal; font-size: 10.5px; font-weight: 800; line-height: 1;
  border: 1px solid currentColor; background: rgba(255, 255, 255, .9);
}
.ic.t { color: #23578f; }
.ic.s { color: #8a5a06; }
.evt .ln b { font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }

/* 状态符号：纯符号，不带文字 */
.mk { flex: 0 0 auto; font-style: normal; font-size: 12.5px; font-weight: 800; line-height: 1; }
.mk.ok { color: #1f7a55; }
.mk.no { color: #b3261e; }
.mk.pend { color: #b0700a; }

/* 教室名：加框线 */
.evt .room {
  flex: 0 0 auto; font-size: 10.5px; font-weight: 600; line-height: 1.6;
  padding: 0 3px; border: 1px solid currentColor; border-radius: 3px;
  opacity: .72; white-space: nowrap;
}
.evt.assist { border-left-style: dashed; }

/* ------------------------------------------------------------------
   资源 × 时段 矩阵：行 = 老师/教室（可 20+ 行），列 = 时段（固定 8 列）
   首列 sticky，横向滚动时资源名始终可见
   ------------------------------------------------------------------ */
.chipbox { max-height: 134px; overflow-y: auto; padding-right: 4px; }

.mx { min-width: 1150px; background: var(--surface); }
.mx-head, .mx-row { display: grid; grid-template-columns: 154px repeat(8, minmax(118px, 1fr)); }
.mx-head > div {
  padding: 9px 6px; text-align: center; font-size: 13px; font-weight: 700;
  color: var(--ink-500); background: var(--n-50);
  border-bottom: 1px solid var(--border); border-left: 1px solid var(--n-100);
}
.mx-head > .mx-name { text-align: left; border-left: none; }
.mx-row > div {
  border-bottom: 1px solid var(--n-100); border-left: 1px solid var(--n-100);
  padding: 5px; min-height: 58px;
}
.mx-row > .mx-name {
  position: sticky; left: 0; z-index: 2;
  display: flex; align-items: center; gap: 7px;
  background: var(--surface); border-left: none;
  padding: 6px 9px; font-size: 13.5px; font-weight: 650; color: var(--ink-800);
}
.mx-head > .mx-name { position: sticky; left: 0; z-index: 3; }

/* ------------------------------------------------------------------
   滚动容器 + 表头吸顶 + 首列固定
   ------------------------------------------------------------------ */
.cal-wrap, .mx-wrap {
  overflow: auto;
  max-height: min(72vh, 780px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overscroll-behavior: contain;
}
.cal-wrap .cal, .mx-wrap .mx { border: none; border-radius: 0; overflow: visible; }
.cal-wrap .cal { min-width: 900px; }

/* 课表：日期表头吸顶，时间列固定 */
.cal-head { position: sticky; top: 0; z-index: 3; }
.cal-head > div { background: var(--n-25); }
.cal-head > div:first-child { position: sticky; left: 0; z-index: 4; background: var(--n-100); }
.cal-row > .cal-slot:first-child { position: sticky; left: 0; z-index: 2; background: var(--n-25); }

/* 矩阵：时段表头吸顶，资源列固定（表头左上角两轴同时固定） */
.mx-head { position: sticky; top: 0; z-index: 3; }
.mx-head > div { background: var(--n-50); }
.mx-head > .mx-name { left: 0; top: 0; z-index: 5; background: var(--n-50); }
.mx-row > .mx-name { z-index: 2; }
.mx-row:last-child > div { border-bottom: none; }
.mx-row:hover > .mx-name { background: var(--g-25); }
.mx-name .dot { flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; }
.mx-name .cnt { margin-left: auto; font-size: 11.5px; font-weight: 500; color: var(--ink-400); white-space: nowrap; }
.mx-name .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mx .cal-slot { min-height: 0; border: none; padding: 0; }

/* 色板图例：老师数量多时用紧凑网格排列 */
.lgd { display: flex; flex-wrap: wrap; gap: 7px 16px; }
.lgd span { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-700); white-space: nowrap; }
.lgd-title { font-size: 12.5px; color: var(--ink-400); margin-bottom: 7px; }
.lgd i { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 9px; }

.evt.assist .hd .nm { font-weight: 650; }

/* 老师视角周课表：一节课可能挂多名学生，格子需要更高 */
.cal.tall .cal-slot { min-height: 98px; }
/* 窄窗口下保持格子可读：课表设定最小宽度，在卡片内横向滚动 */
.cal.tall { min-width: 900px; }
.card-body.tight { overflow: visible; }
.evt .stu {
  display: block; font-size: 12px; opacity: .92; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evt .rm { display: block; font-size: 11.5px; opacity: .72; line-height: 1.4; }

/* ------------------------------------------------------------------ 文件卡 */

.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 13px; }
.file-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: var(--surface);
  transition: all .17s;
}
.file-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-2); }
.file-card .thumb {
  height: 108px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--g-100), var(--g-200));
  font-size: 33px; color: var(--g-700); position: relative;
}
.file-card .thumb.vid { background: linear-gradient(140deg, #fdf4e3, #f8e6c4); color: var(--warn); }
.file-card .thumb.doc { background: linear-gradient(140deg, #e9f5f0, #d3ece2); color: var(--ok); }
.file-card .thumb .dur {
  position: absolute; right: 7px; bottom: 7px;
  background: rgba(26, 32, 22, .74); color: #fff;
  font-size: 12px; padding: 1.5px 6px; border-radius: 5px;
  font-variant-numeric: tabular-nums; font-weight: 600;
}
.file-card .meta { padding: 9px 11px; }
.file-card .meta b {
  display: block; font-size: 14px; font-weight: 650;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-card .meta span { font-size: 12.5px; color: var(--ink-400); }

/* -------------------------------------------------------------------- 上传区 */

.dropzone {
  border: 1.5px dashed var(--g-400); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--g-25), var(--g-50));
  padding: 28px; text-align: center;
  color: var(--ink-500); font-size: 14.5px;
  transition: all .18s;
}
.dropzone:hover { border-color: var(--g-500); background: var(--g-100); }
.dropzone .ico { font-size: 34px; color: var(--g-700); margin-bottom: 7px; display: block; }
.dropzone b { color: var(--g-800); font-weight: 680; }
.dropzone .tip { font-size: 13px; color: var(--ink-400); margin-top: 7px; }

.up-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 0; border-bottom: 1px dashed var(--n-200);
}
.up-item:last-child { border-bottom: none; }
.up-item .nm { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.up-item .nm b { display: block; font-weight: 620; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-item .nm span { font-size: 12.5px; color: var(--ink-400); }

/* ------------------------------------------------------------------ 步骤条 */

.steps { display: flex; gap: 0; margin-bottom: 19px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 9px; padding-right: 28px; position: relative; }
.step .n {
  width: 25px; height: 25px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
  background: var(--n-100); color: var(--ink-400);
  flex: 0 0 25px;
}
.step b { font-size: 14.5px; color: var(--ink-400); font-weight: 620; }
.step:after {
  content: ""; position: absolute; right: 9px; top: 12px;
  width: 13px; height: 1.5px; background: var(--n-300);
}
.step:last-child:after { display: none; }
.step.active .n { background: linear-gradient(180deg, var(--g-400), var(--g-500)); color: var(--g-950); font-weight: 800; }
.step.active b { color: var(--g-950); }
.step.done .n { background: var(--ok); color: #fff; }
.step.done b { color: var(--ok); }

/* ------------------------------------------------------------------ 简易图表 */

.chart { display: flex; align-items: flex-end; gap: 11px; height: 172px; padding-top: 12px; }
.chart .col { flex: 1 1 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart .col .bar-v {
  width: 100%; max-width: 44px; border-radius: 7px 7px 3px 3px;
  background: linear-gradient(180deg, var(--g-300), var(--g-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
}
.chart .col .bar-v.warm { background: linear-gradient(180deg, #e8b95c, var(--warn)); }
.chart .col .bar-v.ok { background: linear-gradient(180deg, #5cbb99, var(--ok)); }
.chart .col .lb { font-size: 12.5px; color: var(--ink-400); }
.chart .col .vl { font-size: 13px; font-weight: 700; color: var(--ink-700); font-variant-numeric: tabular-nums; }

.legend { display: flex; gap: 17px; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-500); }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; }

.hbar { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; font-size: 14px; }
.hbar .nm { flex: 0 0 136px; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; }
.hbar .bar { flex: 1 1 auto; }
.hbar .vv { flex: 0 0 48px; text-align: right; color: var(--ink-500); font-variant-numeric: tabular-nums; font-weight: 620; }

/* ------------------------------------------------------------------ 工具类 */

.muted { color: var(--ink-400); }
.small { font-size: 13.5px; }
.tiny { font-size: 13px; }
.bold { font-weight: 680; }
.mono { font-family: var(--mono); font-size: 13.5px; letter-spacing: -.2px; }
.nowrap { white-space: nowrap; }
.mt0 { margin-top: 0; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; } .flex-mid { display: flex; align-items: center; } .flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap4 { gap: 4px; } .gap6 { gap: 6px; } .gap8 { gap: 8px; } .gap10 { gap: 10px; } .gap12 { gap: 12px; } .gap16 { gap: 16px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1 1 auto; min-width: 0; }
.left { text-align: left; }
.right { text-align: right; } .center { text-align: center; }
.divider { height: 1px; background: var(--border); margin: 17px 0; }
.divider.dashed { background: none; border-top: 1px dashed var(--n-200); }
.text-ok { color: var(--ok); } .text-danger { color: var(--danger); }
.text-warn { color: var(--warn); } .text-brand { color: var(--g-800); }
.bg-soft { background: var(--n-50); border-radius: var(--radius); padding: 14px 16px; }
.bg-soft.warn { background: var(--warn-50); }
.bg-soft.brand { background: var(--g-50); }
.pre { white-space: pre-wrap; font-size: 14px; line-height: 1.75; color: var(--ink-700); }

/* ------------------------------------------------------------------ 原型水印 */

.proto-note {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fefaf0, var(--warn-50));
  border: 1px dashed var(--warn-line);
  color: #7a4c05;
  font-size: 14px;
  line-height: 1.75;
}
.proto-note b { font-weight: 680; }

/* ------------------------------------------------------------------ 登录页 */

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  background: var(--surface);
}
.login-art {
  background: linear-gradient(148deg, #1b1f26 0%, #232830 48%, #2a303a 100%);
  color: #fff; padding: 58px 56px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.login-art::before {
  content: ""; position: absolute; left: -80px; top: -100px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 197, 17, .22), transparent 66%);
}
.login-art::after {
  content: ""; position: absolute; right: -120px; bottom: -150px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(160, 197, 17, .05);
}
.login-art .logo { display: flex; align-items: center; gap: 13px; margin-bottom: 48px; position: relative; z-index: 1; }
.login-art .logo .brand-logo {
  width: 46px; height: 46px; font-size: 23.5px;
  background: linear-gradient(140deg, var(--g-200), var(--g-400));
  color: var(--g-950);
}
.login-art .logo b { font-size: 18.5px; font-weight: 680; }
.login-art .logo span { display: block; font-size: 13.5px; opacity: .65; margin-top: 1px; }
.login-art h2 {
  font-size: 34px; line-height: 1.35; margin: 0 0 15px; font-weight: 750;
  letter-spacing: -.8px; position: relative; z-index: 1;
}
.login-art > p { font-size: 15.5px; opacity: .8; line-height: 1.9; max-width: 440px; margin: 0 0 36px; position: relative; z-index: 1; }
.login-art .feats { display: grid; gap: 14px; max-width: 450px; margin-top: auto; position: relative; z-index: 1; }
.login-art .feat { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.login-art .feat .ico {
  width: 30px; height: 30px; border-radius: 9px; flex: 0 0 30px;
  background: rgba(160, 197, 17, .16); border: 1px solid rgba(160, 197, 17, .3);
  display: grid; place-items: center; font-size: 15.5px;
}
.login-art .feat b { color: #fff; font-weight: 650; }
.login-art .feat div { opacity: .82; line-height: 1.7; }

.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 44px 26px; }
.login-form { width: 100%; max-width: 372px; }
.login-form h3 { font-size: 24.5px; margin: 0 0 6px; font-weight: 750; letter-spacing: -.5px; }
.login-form .sub { color: var(--ink-500); font-size: 14.5px; margin-bottom: 28px; }
.login-form .input { height: 44px; font-size: 15.5px; }
.login-form .btn.lg { height: 46px; font-size: 16.5px; margin-top: 6px; }
.login-tabs { display: flex; gap: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--border); }
.login-tabs button {
  background: none; border: none; padding: 0 0 12px; font-size: 15.5px;
  font-family: inherit; color: var(--ink-400); cursor: pointer; font-weight: 620;
  border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .16s;
}
.login-tabs button:hover { color: var(--ink-700); }
.login-tabs button.active { color: var(--g-950); border-bottom-color: var(--g-500); }
.login-foot { margin-top: 28px; font-size: 13px; color: var(--ink-400); line-height: 1.85; }
.role-pick { display: flex; gap: 9px; margin-bottom: 20px; }
.role-pick .r {
  flex: 1 1 0; text-align: center; padding: 10px 5px; border-radius: 10px;
  border: 1px solid var(--border-2); font-size: 14px; cursor: pointer; color: var(--ink-500);
  transition: all .16s;
}
.role-pick .r b { display: block; font-size: 14px; font-weight: 680; color: var(--ink-700); }
.role-pick .r:hover { border-color: var(--g-400); background: var(--g-50); }
.role-pick .r.active { border-color: var(--g-500); background: var(--g-100); color: var(--g-950); }
.role-pick .r.active b { color: var(--g-950); }

/* ------------------------------------------------------------ 审计时间线细节 */

.audit-detail {
  background: var(--n-50); border-radius: var(--radius);
  padding: 13px 16px; font-size: 14px; line-height: 1.8; color: var(--ink-700);
  border: 1px solid var(--border);
}
.audit-detail .row { display: flex; gap: 9px; }
.audit-detail .row .k { flex: 0 0 80px; color: var(--ink-400); }
.audit-detail .row .v { flex: 1 1 auto; word-break: break-all; }
.diff-add { color: #1f5b45; background: var(--ok-50); border-radius: 4px; padding: 0 4px; font-weight: 600; }
.diff-del { color: #8f1d17; background: var(--danger-50); border-radius: 4px; padding: 0 4px; text-decoration: line-through; }

/* ------------------------------------------------------------ 学员 / 家长卡片 */

.kid-card {
  display: flex; gap: 13px; align-items: center;
  padding: 14px 16px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface); margin-bottom: 10px;
  transition: all .16s;
}
.kid-card:hover { border-color: var(--g-400); background: var(--g-50); }
.kid-card.active {
  border-color: var(--g-500);
  background: linear-gradient(98deg, var(--g-100), var(--surface) 72%);
  box-shadow: 0 0 0 3px rgba(160, 197, 17, .2);
}
.kid-card .info { flex: 1 1 auto; min-width: 0; }
.kid-card .info b { display: block; font-size: 15.5px; font-weight: 680; }
.kid-card .info .m { font-size: 13px; color: var(--ink-400); }
.kid-card .hrs { text-align: right; }
.kid-card .hrs b {
  display: block; font-size: 19.5px; font-weight: 750; color: var(--g-900);
  font-variant-numeric: tabular-nums; letter-spacing: -.4px; line-height: 1.2;
}
.kid-card .hrs span { font-size: 12.5px; color: var(--ink-400); }

.hr-big { text-align: center; padding: 22px 0 8px; }
.hr-big b {
  font-size: 46.6px; font-weight: 750; color: var(--g-800);
  letter-spacing: -2px; font-variant-numeric: tabular-nums; line-height: 1;
}
.hr-big small { font-size: 15.5px; color: var(--ink-400); margin-left: 5px; font-weight: 550; }
.hr-big span { display: block; font-size: 14px; color: var(--ink-400); margin-top: 5px; }

/* ------------------------------------------------------------ 导入向导 */

.import-map { font-size: 14px; }
.import-map .m-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 9px; align-items: center; margin-bottom: 10px;
}
.import-map .arrow { text-align: center; color: var(--g-600); font-weight: 700; }
.preview-scroll { max-height: 305px; overflow: auto; border: 1px solid var(--border); border-radius: var(--radius); }

@media print { .sidebar, .topbar { display: none; } }

/* ------------------------------------------------------------------
   课次调整：卡片可点击 + 置灰选项
   ------------------------------------------------------------------ */
.evt::after {
  content: "✏";
  position: absolute; right: 3px; bottom: 3px;
  font-size: 10px; line-height: 1; opacity: 0;
  transition: opacity .12s; pointer-events: none;
}
.evt:hover::after { opacity: .48; }
.evt:focus-visible { outline: 2px solid var(--g-600); outline-offset: 1px; }

.tag-btn.is-disabled, .tag-btn[disabled] {
  opacity: .42; cursor: not-allowed; text-decoration: line-through; text-decoration-thickness: 1px;
}
.tag-btn.is-disabled:hover, .tag-btn[disabled]:hover {
  border-color: var(--border-2); background: var(--surface); color: var(--ink-600);
}

#adj-sum { line-height: 1.65; }
#adj-stu-in { margin-bottom: 9px; }

/* 调整面板：选项过多时局部滚动，保证四段同屏可见 */
#adj-teacher { max-height: 108px; overflow-y: auto; padding-right: 4px; }
#adj-stu-add { max-height: 96px; overflow-y: auto; padding-right: 4px; }
#adj-time { max-height: 118px; overflow-y: auto; padding-right: 4px; }
#adj-room { max-height: 108px; overflow-y: auto; padding-right: 4px; }
.adj-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
#m-adjust .modal { max-width: 960px; }
#m-adjust .modal-body { max-height: 78vh; }
