/* ===== 基础 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: #f2f5f9; color: #2b3440; font-size: 15px; line-height: 1.5;
}
a { color: #4a90d9; text-decoration: none; }
a:hover { color: #2f6fb0; }
h1, h2, h3 { font-weight: 600; }

/* ===== 布局 ===== */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: 56px; z-index: 100;
  background: #2f5d9e; color: #fff; display: flex; align-items: center; padding: 0 14px;
  box-shadow: 0 2px 8px rgba(20, 40, 80, .15);
}
.brand { font-size: 17px; font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu-btn { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; margin-right: 10px; padding: 4px 8px; }
.top-user { display: flex; align-items: center; gap: 8px; }
.top-uname { font-size: 13px; opacity: .9; }
.avatar {
  width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center; font-size: 15px; color: #fff;
}
.sidebar {
  position: fixed; top: 56px; bottom: 0; left: 0; width: 210px; z-index: 90;
  background: #fff; border-right: 1px solid #e6ebf1; overflow-y: auto; padding-bottom: 20px;
}
.side-user { padding: 18px 16px 14px; border-bottom: 1px solid #eef2f6; }
.side-name { font-weight: 600; font-size: 15px; }
.side-role { color: #8a97a8; font-size: 12px; margin-top: 3px; }
.nav { padding: 10px 0; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 11px 18px; color: #46535f;
  font-size: 14px; border-left: 3px solid transparent;
}
.nav-item:hover { background: #f4f7fb; color: #2f5d9e; }
.nav-item.active { background: #eaf2fb; color: #2f5d9e; border-left-color: #4a90d9; font-weight: 600; }
.nav-icon { font-size: 16px; }
.nav-num {
  font-size: 12px; color: #9aa7b4; font-variant-numeric: tabular-nums;
  min-width: 20px; text-align: right; flex-shrink: 0;
}
.nav-item.active .nav-num, .nav-item:hover .nav-num { color: #7d99bd; }

/* 分组 + 二级菜单 */
.nav-group .nav-parent { display: flex; align-items: center; }
.nav-group .nav-parent .nav-item { flex: 1; min-width: 0; }
.nav-caret {
  background: none; border: none; cursor: pointer; color: #97a3b0; font-size: 11px;
  padding: 0 16px 0 2px; line-height: 1; flex-shrink: 0; transition: transform .2s;
}
.nav-caret:hover { color: #2f5d9e; }
.nav-group.open > .nav-parent .nav-caret { transform: rotate(180deg); }
.nav-sub { display: none; }
.nav-group.open .nav-sub { display: block; }
.nav-sub .nav-item { padding: 9px 18px 9px 46px; font-size: 13px; }
.nav-sub .nav-icon { font-size: 14px; width: 18px; text-align: center; }
.nav-item.nav-parent-static { cursor: default; }
.nav-divider { height: 1px; background: #eef2f6; margin: 8px 14px; }
.nav-mask { display: none; }
.content { margin-left: 210px; padding: 76px 20px 40px; min-height: calc(100vh - 60px); }

/* ===== 页脚版权 ===== */
.site-footer {
  margin-left: 210px; border-top: 1px solid #e6ebf1;
  background: #fff; color: #98a3b3; font-size: 12px;
  padding: 14px 20px; text-align: center;
}
.footer-inner { display: inline-flex; align-items: center; gap: 8px; }
.footer-sep { color: #c9d3df; }
.page-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; flex-wrap: wrap;
}
.page-head h1 { font-size: 20px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== 卡片与表格 ===== */
.card { background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; box-shadow: 0 2px 8px rgba(30,60,100,.05); }
.card + .card { margin-top: 16px; }
.card-head { padding: 14px 18px; border-bottom: 1px solid #eef2f6; font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.card-body { padding: 16px 18px; }
.card-body.p0 { padding: 0; overflow-x: auto; }
/* 说明列表（增购信息说明等） */
.note-list { margin: 0; padding-left: 20px; line-height: 1.8; font-size: 14px; color: #4a5a6a; }
.note-list li { margin-bottom: 6px; }
.note-list b { color: #2c3e50; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.table th { background: #f7f9fc; color: #5b6b7d; font-weight: 600; font-size: 13px; }
.table tr:hover td { background: #fafcff; }
.table .num { text-align: center; color: #8a97a8; }
.td-wrap { max-width: 220px; white-space: normal; word-break: break-all; }

/* ===== 表单 ===== */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: #5b6b7d; margin-bottom: 6px; }
.field input[type=text], .field input[type=password], .field input[type=number], .field input[type=email],
.field select, .field textarea {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px;
  background: #fff; outline: none; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); }
.field textarea { min-height: 70px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
.form-grid .full { grid-column: 1 / -1; }
.radio-row { display: flex; gap: 18px; align-items: center; padding: 8px 0; }
.radio-row label { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: #2b3440; cursor: pointer; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  font-size: 14px; background: #eef2f6; color: #2b3440; transition: all .15s; text-align: center;
}
.btn:hover { opacity: .9; }
.btn-primary { background: #4a90d9; color: #fff; }
.btn-primary:hover { background: #3a7bc4; }
.btn-danger { background: #e74c3c; color: #fff; }
.btn-success { background: #27ae60; color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }
.btn-save-wide { display: block; width: 60%; margin: 24px auto 0; padding: 11px 18px; font-size: 15px; }
.btn-ghost { background: #fff; border-color: #d5dde5; }
a.btn { text-decoration: none; }

/* ===== 徽章 ===== */
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; background: #eef2f6; color: #5b6b7d; }
.badge-blue { background: #eaf2fb; color: #2f6fb0; }
.badge-green { background: #e8f6ec; color: #1e7e34; }
.badge-red { background: #fdecec; color: #c0392b; }
.badge-orange { background: #fdf3e3; color: #b9770e; }

/* ===== 我的信息：竖排一项一行 + 状态列 ===== */
.info-rows { display: flex; flex-direction: column; }
.info-row { display: flex; align-items: center; padding: 10px 2px; border-bottom: 1px dashed #eef2f6; }
.info-row:last-child { border-bottom: none; }
.info-index { flex: 0 0 26px; font-size: 13px; color: #9aa7b4; }
.info-label { flex: 0 0 110px; font-size: 13px; color: #5b6b7d; }
.info-value { flex: 1; min-width: 0; font-size: 14px; color: #2b3440; word-break: break-all; }
.info-state { flex: 0 0 auto; margin-left: 12px; }
.mr8 { margin-right: 8px; }
.mt8 { margin-top: 8px; }

/* ===== 清单「我的」标记：已了解（发光灯泡）/ 已完成（绿色对勾） ===== */
.mark-form { display: inline-flex; gap: 6px; align-items: center; }
.mark-btn {
  width: 30px; height: 30px; padding: 0; border-radius: 50%;
  border: 1px solid #d5dde5; background: #fff; cursor: pointer;
  font-size: 15px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  color: #9aa7b4; transition: all .2s;
}
.mark-btn:hover { border-color: #7d99bd; transform: scale(1.08); }
.mark-btn.on { border-color: transparent; }
.mark-btn.mark-know.on {
  background: #fff6df; color: #e0900a;
  animation: bulb-glow 1.6s ease-in-out infinite;
}
.mark-btn.mark-done.on {
  background: #e8f6ec; color: #1e8449; font-weight: 700;
  box-shadow: 0 0 8px 2px rgba(30, 132, 73, .3);
}
@keyframes bulb-glow {
  0%, 100% { box-shadow: 0 0 8px 2px rgba(224, 144, 10, .35); }
  50% { box-shadow: 0 0 18px 7px rgba(224, 144, 10, .6); }
}

/* ===== 登录页 ===== */
.login-body { background: linear-gradient(135deg, #2f5d9e 0%, #4a90d9 100%); display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.login-wrap { width: 100%; max-width: 380px; text-align: center; }
.login-logo { font-size: 54px; }
.login-title { color: #fff; font-size: 22px; margin-top: 10px; }
.login-sub { color: rgba(255,255,255,.75); font-size: 13px; margin: 8px 0 24px; }
.login-card { padding: 28px 24px; text-align: left; border: 0; box-shadow: 0 12px 40px rgba(10,30,60,.25); }
.captcha-row { display: flex; gap: 10px; }
.captcha-row input { flex: 1; }
.captcha-img { height: 42px; width: 120px; border-radius: 8px; cursor: pointer; border: 1px solid #d5dde5; }
.login-tip { text-align: center; color: #8a97a8; font-size: 12px; margin-top: 14px; }

/* ===== 提示页 ===== */
.msg-wrap { text-align: center; background: #fff; border-radius: 14px; padding: 40px 30px; max-width: 380px; width: 100%; box-shadow: 0 10px 40px rgba(10,30,60,.2); }
.msg-icon { width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; font-size: 28px; color: #fff; }
.msg-success { background: #27ae60; }
.msg-error { background: #e74c3c; }
.msg-warning { background: #e67e22; }
.msg-text { font-size: 15px; margin-bottom: 20px; }
.msg-tip { color: #8a97a8; font-size: 12px; margin-top: 12px; }

/* ===== 分享 ===== */
.qr-box { text-align: center; padding: 10px 0; }
.qr-box img { width: 180px; height: 180px; }
.share-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.link-box { display: flex; gap: 8px; margin-top: 12px; }
.link-box input { flex: 1; padding: 9px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 13px; color: #5b6b7d; background: #f7f9fc; }

/* ===== 校服表格 ===== */
.uniform-table input, .uniform-table select { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; width: 100%; }
.btn-del-row { color: #e74c3c; background: none; border: 0; cursor: pointer; font-size: 16px; }

/* 校服按学生汇总行 */
.u-line { padding: 4px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.u-ops { margin-left: auto; white-space: nowrap; }
.u-ops .sep { color: #d5dde5; margin: 0 2px; }
.u-ops .link { color: #2f6fb0; font-size: 12px; cursor: pointer; background: none; border: 0; padding: 0; text-decoration: none; }
.u-ops .link:hover { text-decoration: underline; }
.u-ops .link-danger { color: #e74c3c; font-size: 12px; cursor: pointer; background: none; border: 0; padding: 0; }
.u-ops .link-danger:hover { text-decoration: underline; }

/* 校服登记表单分区（标准套 / 增购信息参考） */
.form-section { margin-top: 18px; }
.form-section-title { font-size: 14px; font-weight: 700; color: #2f3b4b; margin-bottom: 4px; }
.form-section-title::before { content: ''; display: inline-block; width: 4px; height: 14px; background: #2f6fb0; border-radius: 2px; margin-right: 8px; vertical-align: -2px; }
.form-section-tip { color: #8a97a8; font-size: 12px; margin: 0 0 10px; }
.extra-table { width: 100%; }
.extra-table th { font-size: 12px; color: #8a97a8; font-weight: 600; text-align: left; padding: 6px 8px; border-bottom: 1px solid #eef2f6; white-space: nowrap; }
.extra-table td { padding: 6px 8px; vertical-align: middle; white-space: normal; }
.extra-table select, .extra-table input { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; width: 100%; box-sizing: border-box; }

/* 增购意向说明条 */
.form-section-note { background: #fff8e6; border: 1px solid #f0d9a8; color: #8a6d1f; padding: 8px 12px; border-radius: 6px; font-size: 13px; margin: 0 0 10px; }

/* 增购确认倒计时 */
.cd { font-family: Consolas, Menlo, monospace; font-size: 12px; color: #2f6fb0; white-space: nowrap; }
.cd-expired { color: #e74c3c; font-weight: 700; }
.btn-green { background: #27ae60; color: #fff; border: 1px solid #27ae60; }
.btn-green:hover { background: #229954; }
.btn-green:disabled, .btn-green[disabled] { background: #a5d6a7; border-color: #a5d6a7; cursor: default; }

/* 校服信息顶部状态条（页面最上方一行） */
.ubar { padding: 12px 18px; border-left: 4px solid transparent; }
.ubar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ubar-msg { font-size: 14px; color: #46535f; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card.ubar-pending { background: #fff9e6; border-left-color: #f0c419; }
.card.ubar-done { background: #e8f6ec; border-left-color: #27ae60; }
.cd-lg { font-size: 14px; font-weight: 700; }

/* 完成状态：大绿色对号（顶部居中展示） */
.ubar-done-box {
  flex: 1; display: flex; align-items: center; justify-content: center;
  gap: 14px; padding: 8px 0; flex-wrap: wrap;
}
.ubar-check {
  width: 54px; height: 54px; border-radius: 50%;
  background: #27ae60; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; line-height: 1;
  box-shadow: 0 4px 14px rgba(39, 174, 96, .35);
  flex: 0 0 auto;
}
.ubar-done-title { font-size: 16px; font-weight: 700; color: #1e7d3e; }
.ubar-done-sub { font-size: 13px; color: #7d8a99; margin-top: 3px; }

/* 校服信息操作列：编辑 + 完成 按钮间距 */
.u-ops-cell .btn + .btn { margin-left: 4px; }

/* 校服登记表单区域背景色（未完成浅黄 / 完成浅绿），桌面与手机通用 */
.card.uform-pending { background: #fff9e6; }
.card.uform-done { background: #e8f6ec; }

/* 校服信息列表行：未完成浅黄 / 已完成浅绿（hover 时保持） */
.row-pending td, .table tr.row-pending:hover td { background: #fff9e6; }
.row-done td, .table tr.row-done:hover td { background: #e8f6ec; }

/* 校服信息：手机端竖排卡片（字段名 + 值 每行一条） */
@media (max-width: 768px) {
  .uniform-table thead { display: none; }
  .uniform-table, .uniform-table tbody, .uniform-table tr, .uniform-table td { display: block; width: 100%; box-sizing: border-box; }
  .uniform-table tbody tr {
    border: 1px solid #e6ebf1; border-radius: 10px;
    padding: 4px 12px 10px; margin-bottom: 12px; background: #fff;
  }
  .uniform-table tbody tr.row-pending { background: #fff9e6; }
  .uniform-table tbody tr.row-done { background: #e8f6ec; }
  .uniform-table td {
    display: flex; justify-content: flex-start; align-items: center; gap: 10px;
    padding: 8px 0; border-bottom: 1px dashed #eef2f6;
    white-space: normal; text-align: left; flex-wrap: wrap;
  }
  .uniform-table td:last-child { border-bottom: none; }
  .uniform-table td::before {
    content: attr(data-label);
    font-size: 13px; font-weight: 600; color: #5b6b7d;
    flex: 0 0 auto; width: 84px; text-align: left;
  }
  .uniform-table .td-wrap { max-width: none; }
  .uniform-table .u-ops-cell { justify-content: flex-start; flex-wrap: wrap; }
  .uniform-table .u-ops-cell .btn + .btn { margin-left: 4px; }
  .uniform-table .u-line .badge { margin-left: 0; }
}

/* 已完成（锁定）增购信息列表 */
.locked-list { margin-top: 14px; border-top: 1px dashed #e3e8ef; padding-top: 10px; }
.locked-title { font-size: 13px; font-weight: 700; color: #8a97a8; margin-bottom: 8px; }
.locked-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #f7f9fb; border: 1px solid #eef2f6; border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; font-size: 14px; }
.locked-row .muted { font-size: 13px; }

/* ===== 人员选择穿梭框 ===== */
.transfer { display: flex; gap: 10px; align-items: stretch; }
.transfer-col {
  flex: 1; min-width: 0; display: flex; flex-direction: column;
  border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; background: #fff;
}
.transfer-head {
  padding: 10px 12px; background: #f7f9fc; font-size: 13px; color: #5b6b7d;
  font-weight: 600; border-bottom: 1px solid #eef2f6;
}
.transfer-filter { margin: 10px 12px; padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 13px; outline: none; }
.transfer-list { flex: 1; overflow-y: auto; max-height: 340px; padding: 6px; }
.transfer-list .empty { padding: 26px 0; font-size: 13px; text-align: center; color: #8a97a8; }
.titem {
  padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 14px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap; user-select: none;
}
.titem:hover { background: #f4f7fb; }
.titem.sel { background: #eaf2fb; color: #2f6fb0; }
.titem.active { background: #dcebf9; outline: 2px solid #4a90d9; }
.titem .badge { font-size: 11px; }
.transfer-mid { display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.btn-vtext { writing-mode: vertical-rl; padding: 14px 9px; letter-spacing: 3px; border-radius: 10px; }

/* 条件勾选列 */
.cond-col {
  width: 190px; flex-shrink: 0; display: flex; flex-direction: column;
  border: 1px solid #e6ebf1; border-radius: 10px; overflow: hidden; background: #fff;
}
.cond-list { flex: 1; overflow-y: auto; max-height: 340px; padding: 8px; }
.cond-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cond-item:hover { background: #f4f7fb; }
.cond-item input { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: #4a90d9; }
.cond-divider { height: 1px; background: #eef2f6; margin: 6px 4px; }
.transfer-col .transfer-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid #eef2f6; flex-wrap: wrap; }
.preview {
  border: 1px dashed #d5dde5; border-radius: 10px; padding: 10px 12px;
  max-height: 260px; overflow: auto;
}
/* 数据列勾选 */
/* 数据列勾选：一行横向排列，超宽横向滚动，不占用多行 */
.col-select {
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  overflow-x: auto; padding: 8px 12px; border: 1px solid #f0f3f7;
  border-radius: 8px; background: #fbfcfe;
}
.col-item {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 13px; cursor: pointer; user-select: none; white-space: nowrap;
}
.col-item:hover { color: #4a90d9; }
.col-item input { width: 13px; height: 13px; margin: 0; flex-shrink: 0; accent-color: #4a90d9; }
/* 左侧条件匹配人数徽标 */
.c-count {
  margin-left: auto; font-size: 12px; color: #8a97a5; background: #f1f4f8;
  border-radius: 10px; padding: 0 7px; line-height: 18px; white-space: nowrap;
}
/* 随机人数输入框 */
.cond-rand { gap: 6px; }
.cond-item .rand-num {
  width: 70px; height: 28px; margin: 0; padding: 2px 6px; flex-shrink: 0;
  border: 1px solid #d5dde5; border-radius: 6px; font-size: 13px;
}
.cond-item .rand-num:focus { border-color: #4a90d9; outline: none; }
/* 预览表格 */
.preview-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.preview-table th, .preview-table td {
  border: 1px solid #e6ebf1; padding: 5px 8px; text-align: left; white-space: nowrap;
}
.preview-table th { background: #f7f9fc; color: #5b6b7d; font-weight: 600; position: sticky; top: 0; }
.chip {
  background: #eaf2fb; color: #2f6fb0; border-radius: 14px; padding: 3px 10px; font-size: 13px; white-space: nowrap;
}
@media (max-width: 900px) {
  .cond-col { width: 100%; }
  .cond-list { display: flex; flex-wrap: wrap; max-height: none; }
}
@media (max-width: 720px) {
  .transfer { flex-direction: column; }
  .transfer-mid { flex-direction: row; }
  .transfer-list { max-height: 220px; }
}

/* ===== 工具 ===== */
.muted { color: #8a97a8; font-size: 13px; }
.mt10 { margin-top: 10px; } .mt16 { margin-top: 16px; } .mb16 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.search-bar input, .search-bar select { padding: 8px 12px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px; outline: none; }
.empty { text-align: center; color: #8a97a8; padding: 40px 0; }

/* ===== 日历 ===== */
.cal-tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cal-tab { padding: 8px 16px; border-radius: 8px; background: #f0f4f8; color: #4a5a6a; font-size: 14px; font-weight: 600; text-decoration: none; }
.cal-tab:hover { background: #e4ecf4; }
.cal-tab.active { background: #2f6fb0; color: #fff; }
.cal-toolbar { margin-bottom: 12px; }
.cal-class-form { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #4a5a6a; flex-wrap: wrap; }
.cal-class-form select { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 8px; font-size: 14px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.cal-title { font-size: 17px; font-weight: 700; color: #2c3e50; }
.cal-nav { display: flex; gap: 6px; }
.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: #fff; border-radius: 12px; overflow: hidden; }
.cal-table th { background: #f5f8fb; padding: 8px 4px; font-size: 12px; color: #8a97a8; text-align: center; border: 1px solid #eef2f6; }
.cal-cell { border: 1px solid #eef2f6; vertical-align: top; height: 96px; padding: 4px; background: #fff; overflow: hidden; }
.cal-cell.dim { background: #fafbfc; }
.cal-cell.dim .cal-num { color: #c3ccd6; }
.cal-cell.today { background: #eef6ff; }
.cal-num { font-size: 13px; font-weight: 600; color: #4a5a6a; margin-bottom: 4px; }
.cal-cell.today .cal-num { color: #2f6fb0; }
.cal-item { display: flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.4; color: #fff; border-radius: 4px; padding: 2px 5px; margin-bottom: 2px; text-decoration: none; overflow: hidden; }
.cal-item .ci-txt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-item.personal { background: #2f6fb0; }
.cal-item.class { background: #27ae60; }
.cal-item.school { background: #e67e22; }
.cal-item.task { opacity: .95; }
.cal-item.done { text-decoration: line-through; opacity: .55; }
.cal-item .ci-tag { font-size: 10px; background: rgba(255,255,255,.3); border-radius: 3px; padding: 0 3px; flex: 0 0 auto; }
.cal-legend { display: flex; gap: 16px; margin: 10px 2px 0; font-size: 12px; color: #7d8a99; }
.cal-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: -1px; }
.cal-legend .dot-personal { background: #2f6fb0; }
.cal-legend .dot-class { background: #27ae60; }
.cal-legend .dot-school { background: #e67e22; }
.cal-tip { font-size: 12px; color: #8a97a8; margin: 8px 2px 0; line-height: 1.7; }
.form-actions { margin-top: 6px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ===== 待办 ===== */
.todo-item { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #eef2f6; }
.todo-item:last-child { border-bottom: none; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-size: 14px; font-weight: 700; color: #2c3e50; }
.todo-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #7d8a99; margin-top: 4px; }
.todo-content { font-size: 13px; color: #5b6b7d; margin-top: 4px; }
.todo-ops { flex: 0 0 auto; }
.todo-overdue { background: #fff5f5; }
.todo-overdue .todo-title, .todo-overdue .todo-meta { color: #e74c3c; }
.todo-done { opacity: .65; }
.todo-done .todo-title { color: #9aa7b5; text-decoration: line-through; }
.text-danger { color: #e74c3c; font-weight: 600; }

/* ===== 响应式 ===== */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 4px 0 20px rgba(0,0,0,.1); }
  body.nav-open .sidebar { transform: translateX(0); }
  .nav-mask { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 80; opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-mask { opacity: 1; pointer-events: auto; }
  .content { margin-left: 0; padding: 70px 12px 30px; }
  .site-footer { margin-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .top-uname { display: none; }
  .cal-cell { height: 66px; padding: 2px; }
  .cal-num { font-size: 12px; margin-bottom: 2px; }
  .cal-item { font-size: 10px; padding: 1px 3px; }
  .cal-table th { padding: 5px 2px; font-size: 11px; }
  .todo-item { padding: 10px 12px; }
  .todo-ops .btn { font-size: 12px; padding: 5px 8px; }
}
@media (max-width: 520px) {
  .table th, .table td { padding: 8px; font-size: 13px; }
  .page-head h1 { font-size: 17px; }
}

/* ===== 清单（自由清单 / 采集清单） ===== */
.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.list-card { border: 1px solid #e6ebf1; border-radius: 12px; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: box-shadow .15s, border-color .15s; }
.list-card:hover { border-color: #c8d8ec; box-shadow: 0 4px 14px rgba(30,80,160,.08); }
.list-card-head { display: flex; align-items: center; gap: 8px; }
.list-card-name { font-size: 16px; font-weight: 600; color: #2b3440; text-decoration: none; flex: 1; }
.list-card-name:hover { color: #1a73e8; }
.list-card-ops { display: flex; gap: 8px; }
.list-meta { font-size: 12px; color: #8a97a8; }
.list-col-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* 清单列定义构建器 */
.list-col-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.list-col-row input[type=text], .list-col-row select { padding: 7px 10px; border: 1px solid #d5dde5; border-radius: 6px; font-size: 14px; box-sizing: border-box; background: #fff; }
.list-col-row input[type=text]:focus, .list-col-row select:focus { border-color: #4a90d9; box-shadow: 0 0 0 2px rgba(74,144,217,.12); outline: none; }
.list-col-row input[type=text]:disabled { background: #f5f7fa; color: #8a97a8; }
.list-col-row .col-label { width: 170px; }
.list-col-row .col-type { width: 112px; }
.list-col-row .col-options { width: 200px; }
.list-col-row .col-req { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #5b6b7d; white-space: nowrap; cursor: pointer; }

/* 清单条目拖拽排序（仅管理员） */
tr.drag-row { cursor: grab; }
tr.drag-row.drag-frm { opacity: .45; }
tr.drag-row .drag-handle { cursor: grab; color: #8a97a8; margin-right: 6px; user-select: none; }
tr.drag-row .drag-handle:hover { color: #1a73e8; }
