/* 暖暖心书馆管理系统·服务器版 —— 暖色调 */
:root {
  --primary: #E8912D;
  --primary-hover: #C56F1A;
  --primary-light: #FDF1E1;
  --bg: #FAF5EE;
  --card: #ffffff;
  --text: #4A3F35;
  --text-2: #8A7B6C;
  --border: #EDE3D5;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(120, 80, 30, 0.08);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: var(--primary); text-decoration: none; }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FBEEDD 0%, #FAF5EE 45%, #F6E3CB 100%);
  padding: 20px;
}
.login-card {
  width: 380px;
  background: var(--card);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(150, 95, 30, 0.15);
  padding: 36px 34px 30px;
  border: 1px solid var(--border);
}
.login-title { font-size: 22px; font-weight: 700; text-align: center; color: var(--text); }
.login-sub { text-align: center; color: var(--text-2); margin: 6px 0 24px; font-size: 13px; }
.login-err {
  display: none;
  background: #FDECEC;
  border: 1px solid #F5C2C2;
  color: #B3402E;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 13px;
}

/* ---------- 表单 ---------- */
.form-row { margin-bottom: 14px; }
.form-row label { display: block; margin-bottom: 6px; color: var(--text); font-weight: 500; }
.form-row label .req { color: #D9534F; margin-right: 3px; }
.input, select.input, textarea.input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,145,45,.15); }
textarea.input { resize: vertical; min-height: 80px; }
.hint { font-size: 12px; color: var(--text-2); margin-top: 4px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: #fff; }
.btn-danger { color: #C0392B; }
.btn-danger:hover { border-color: #C0392B; color: #C0392B; background: #FDECEC; }
.btn-sm { padding: 4px 10px; font-size: 12px; border-radius: 6px; margin-right: 6px; }
.btn-block { width: 100%; padding: 11px; font-size: 15px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
/* 转入历史会员按钮状态：橙色可点 / 灰色不可点 */
.btn-sm.xm-btn-warn { background: #e8730c; border-color: #e8730c; color: #fff; }
.btn-sm.xm-btn-warn:hover { background: #d1650a; border-color: #d1650a; color: #fff; }
.btn-sm.xm-btn-disabled { background: #f5f5f5; border-color: #dcdfe6; color: #a0a0a0; cursor: not-allowed; }

/* ---------- 主框架 ---------- */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width .2s;
  z-index: 10;
}
.sidebar-head {
  padding: 18px 16px 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-head .logo { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 8px; }
.sidebar-head .logo .dot { color: var(--primary); }
.sidebar-head .logo .logo-img { height: 20px; width: auto; flex: none; }
.collapse-btn { border: none; background: none; cursor: pointer; color: var(--text-2); font-size: 16px; padding: 4px 8px; border-radius: 6px; }
.collapse-btn:hover { background: var(--primary-light); color: var(--primary); }
.menu { flex: 1; overflow-y: auto; padding: 10px 8px 20px; }
.menu-module { margin-bottom: 4px; }
.module-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  user-select: none;
}
.module-title:hover { background: var(--primary-light); }
.module-title .arrow { font-size: 12px; color: var(--text-2); transition: transform .2s; }
.menu-module.open .module-title .arrow { transform: rotate(90deg); }
.sub-list { display: none; padding: 2px 0 6px 8px; }
.menu-module.open .sub-list { display: block; }
.sub-item {
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 13px;
  border-left: 3px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-item:hover { background: var(--primary-light); color: var(--primary-hover); }
.sub-item.active {
  background: var(--primary-light);
  color: var(--primary-hover);
  font-weight: 600;
  border-left-color: var(--primary);
}
.app.collapsed .sidebar { width: 64px; }
.app.collapsed .sidebar-head .logo,
.app.collapsed .module-title span.t,
.app.collapsed .sub-list { display: none; }
.app.collapsed .module-title { justify-content: center; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 5;
}
.crumb { color: var(--text-2); font-size: 13px; }
.crumb .cur { color: var(--text); font-weight: 600; }
.crumb .sep { margin: 0 8px; color: #C9BBA9; }
.userbox { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.userbox .uname { font-weight: 600; }
.userbox .urole { color: var(--text-2); background: var(--primary-light); padding: 2px 10px; border-radius: 20px; font-size: 12px; }
.link-btn { border: none; background: none; color: var(--text-2); cursor: pointer; font-size: 13px; padding: 4px 6px; }
.link-btn:hover { color: var(--primary); }

.content { padding: 20px 24px 40px; }
.page-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }

/* ---------- 卡片 / 统计 ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 18px;
}
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
}
.stat-card .k { color: var(--text-2); font-size: 13px; margin-bottom: 6px; }
.stat-card .v { font-size: 26px; font-weight: 700; color: var(--primary-hover); }
.stat-card .v small { font-size: 13px; color: var(--text-2); font-weight: 400; }
.group-title { font-size: 15px; font-weight: 600; margin: 4px 0 12px; }

/* ---------- 工具栏 / 筛选 ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.filterbar {
  display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow);
}
.filterbar .form-row { margin-bottom: 0; }
.filterbar .input { width: 180px; }
/* 搜索区可收起：收起时只露出一行条件 */
.filterbar.collapsible { flex-direction: column; align-items: stretch; }
.filterbar.collapsible .filter-items { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filterbar.collapsible.collapsed .filter-items { overflow: hidden; }
.filterbar.collapsible .filter-actions { display: flex; align-items: center; }
.filter-toggle { border: none; background: none; color: var(--primary); font-size: 14px; cursor: pointer; padding: 9px 4px; margin-right: 12px; white-space: nowrap; }
.filter-toggle:hover { color: var(--primary-hover); text-decoration: underline; }

/* ---------- 表格 ---------- */
.table-wrap { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  background: #FBF6EE;
  color: var(--text-2);
  font-weight: 600;
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.grid td { padding: 8px 12px; border-bottom: 1px solid #F3EADE; vertical-align: middle; }
table.grid tr:last-child td { border-bottom: none; }
table.grid tr:hover td { background: #FFFCF7; }
.empty-tip { text-align: center; color: var(--text-2); padding: 30px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 20px; font-size: 12px; background: var(--primary-light); color: var(--primary-hover); }
.tag.green { background: #E9F6EC; color: #2E7D32; }
.tag.red { background: #FDECEC; color: #C0392B; }
.tag.gray { background: #F1EDE6; color: var(--text-2); }
.cell-ellipsis { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 弹窗 ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(74, 63, 53, 0.4);
  display: flex; align-items: center; justify-content: center; z-index: 950;
  padding: 20px;
}
.modal {
  background: #fff; border-radius: 12px; width: 520px; max-width: 100%;
  max-height: 90vh; display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(80, 50, 20, 0.25);
}
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-size: 16px; }
.modal-close { border: none; background: none; font-size: 18px; cursor: pointer; color: var(--text-2); }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); text-align: right; }
.modal-foot .btn { margin-left: 8px; }
.check-group { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; max-height: 220px; overflow-y: auto; }
.check-group .perm-mod { font-weight: 600; margin: 8px 0 4px; color: var(--primary-hover); }
.check-group label.ck { display: inline-flex; align-items: center; gap: 5px; margin: 0 12px 6px 0; font-weight: 400; font-size: 13px; cursor: pointer; }

/* ---------- toast ---------- */
#toast-box { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 2000; }
.toast {
  background: #4A3F35; color: #fff; padding: 10px 22px; border-radius: 8px;
  margin-bottom: 8px; font-size: 14px; box-shadow: 0 4px 16px rgba(0,0,0,.2);
  animation: toast-in .2s ease-out;
}
.toast.err { background: #C0392B; }
.toast.ok { background: #2E7D32; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

.pending-box { text-align: center; padding: 80px 20px; color: var(--text-2); }
.pending-box .big { font-size: 44px; margin-bottom: 12px; }
.welcome-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.welcome-sub { color: var(--text-2); margin-bottom: 20px; }

/* 页签（学员管理：在读学员 / 报读情况） */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 16px; }
.tab { background: none; border: none; padding: 10px 20px; font-size: 15px; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; }
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; }

/* 工具栏下拉菜单（更多操作） */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 190px; background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 50; padding: 6px; }
.dropdown.open .dropdown-menu { display: block; }
.dropdown-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 9px 12px; font-size: 14px; color: var(--text); border-radius: 6px; cursor: pointer; }
.dropdown-menu button:hover { background: #FFF4E8; color: var(--primary); }

/* 报读情况汇总条（剩余课时数 / 剩余课消金额） */
.summary-bar { background: #FFF6EC; border: 1px solid #F5E3C8; border-radius: 8px; padding: 10px 16px; margin: 10px 0; font-size: 14px; color: var(--text); }
.summary-bar b { color: var(--primary); font-size: 16px; }

/* 教务二期：开关 / 提示条 / 头像 */
.j-switch { display: inline-block; width: 38px; height: 21px; border-radius: 12px; background: #d7d7d7; position: relative; cursor: pointer; vertical-align: middle; transition: background .15s; }
.j-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.j-switch.on { background: var(--primary); }
.j-switch.on::after { left: 19px; }
.tag.orange { background: #FFF3E2; color: #C77B1B; }
.tip-bar { background: #FFF8EE; border: 1px solid #F3E2C4; border-radius: 8px; padding: 10px 16px; margin-bottom: 12px; font-size: 14px; color: var(--text-2); }
.tip-bar a { color: var(--primary); font-weight: 600; cursor: pointer; }
.avatar { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; vertical-align: middle; margin-right: 6px; }
.tabs.sub { margin: 4px 0 12px; border-bottom-width: 1px; }
.tabs.sub .tab { font-size: 14px; padding: 6px 12px; }

/* 教务二期：课表视图 */
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg .btn { border: none; border-radius: 0; }
.seg .btn.active { background: var(--primary); color: #fff; }
.kb-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.kb-daycol { background: #fff; border: 1px solid var(--border); border-radius: 8px; min-height: 320px; padding: 8px; }
.kb-dayhead { text-align: center; font-weight: 600; font-size: 13px; color: var(--text-2); padding-bottom: 8px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.kb-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; margin-bottom: 8px; cursor: pointer; background: #FFFEFA; }
.kb-card:hover { border-color: var(--primary); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.kb-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.kb-time { font-size: 12px; color: var(--text-2); }
.kb-title { font-weight: 600; font-size: 14px; margin: 2px 0; }
.kb-meta { font-size: 12px; color: var(--text-2); }
.kb-daylist .kb-row { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 8px; background: #fff; cursor: pointer; }
.kb-daylist .kb-row:hover { border-color: var(--primary); }
.kb-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kb-mhead { text-align: center; font-weight: 600; color: var(--text-2); padding: 6px; }
.kb-mcell { min-height: 86px; border: 1px solid var(--border); border-radius: 8px; padding: 6px; background: #fff; }
.kb-mcell.empty { background: transparent; border: none; }
.kb-mdate { font-weight: 600; font-size: 13px; color: var(--text-2); margin-bottom: 4px; }
.kb-chip { font-size: 12px; background: #FFF4E8; border-radius: 4px; padding: 2px 6px; margin-bottom: 3px; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kb-chip:hover { background: #FFE8CC; }
.kb-more { font-size: 12px; color: var(--primary); cursor: pointer; }
.kb-group { margin-bottom: 16px; }
.kb-grouphead { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.kb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }

/* 学员考勤 / 在线商城 */
.tip-bar.blue { background: #F0F7FF; border-color: #D3E6FB; color: #3A6EA5; }
.tip-bar.blue a { color: #2B6CB0; }
.kaoqin-top { display: flex; gap: 16px; align-items: stretch; margin-bottom: 12px; }
.kaoqin-cards { display: flex; gap: 16px; flex: 1; }
.kaoqin-card { flex: 1; min-height: 210px; border: 1px solid var(--border); border-radius: 10px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; font-size: 17px; color: var(--text); cursor: pointer; }
.kaoqin-card:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,.07); color: var(--primary); }
.kc-icon { font-size: 46px; line-height: 1; }
.kaoqin-side { width: 300px; flex-shrink: 0; }
.kaoqin-side .how-link { text-align: right; margin-bottom: 8px; }
.kaoqin-side .how-link a { color: var(--primary); cursor: pointer; font-size: 13px; }
.stat-panel { border: 1px solid var(--border); border-radius: 10px; padding: 12px 16px; background: #fff; }
.stat-panel-title { font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px dashed var(--border); font-size: 14px; color: var(--text-2); }
.stat-row b { color: var(--primary); font-size: 17px; }
.kaoqin-steps { color: var(--text-2); font-size: 13px; line-height: 2; margin-top: 6px; }
.kaoqin-note { text-align: center; color: var(--text-2); font-size: 13px; margin-top: 12px; }
/* 手动考勤 */
.km-wrap { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.km-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.km-label { font-size: 14px; color: var(--text-2); white-space: nowrap; }
.km-input { height: 36px; padding: 0 12px; font-size: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); }
.km-input:focus { outline: none; border-color: var(--primary); }
.km-empty { text-align: center; color: var(--text-2); font-size: 14px; padding: 40px 0; }
.km-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.km-table th, .km-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.km-table thead th { background: #faf7f2; color: var(--text-2); font-weight: 600; }
.km-status { display: flex; gap: 18px; }
.km-radio { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 14px; }
.km-radio input { width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; }
.km-foot { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.km-foot .gray-note { font-size: 13px; }
.cell-menu-wrap { position: relative; display: inline-block; }
.cell-menu { display: none; position: absolute; right: 0; top: calc(100% + 2px); background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.12); z-index: 60; min-width: 96px; padding: 4px; }
.cell-menu.open { display: block; }
.cell-menu button { display: block; width: 100%; text-align: left; background: none; border: none; padding: 8px 12px; font-size: 13px; color: var(--text); border-radius: 6px; cursor: pointer; white-space: nowrap; }
.cell-menu button:hover { background: #FFF4E8; color: var(--primary); }
.mall-goods-cell { display: flex; align-items: center; gap: 10px; }
.mall-goods-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.link { color: var(--primary); cursor: pointer; }
.toolbar .spacer { flex: 1; }
.gray-note { color: var(--text-2); font-size: 12px; }

/* ============ 中心首页仪表盘（照小麦中心首页） ============ */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: start; }
.dash-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.dash-card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dash-title { font-size: 15px; font-weight: 600; color: var(--text); }
.dash-icons { display: flex; gap: 10px; }
.dash-ic { cursor: pointer; color: #999; font-size: 15px; }
.dash-ic:hover { color: var(--primary); }
.dash-right { font-size: 13px; }
.link.orange { color: #ff7a1a; }
/* 机构数据 */
.dash-org { display: flex; align-items: stretch; }
.org-item { flex: 1; text-align: center; padding: 6px 0; }
.org-div { width: 1px; background: #f0ebe2; margin: 8px 0; }
.org-num { font-size: 27px; font-weight: 600; color: #333; margin-bottom: 6px; font-family: Arial, "PingFang SC", sans-serif; }
.org-label { font-size: 13px; color: #999; }
/* 快捷入口 */
.dash-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.qk-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 8px; cursor: pointer; }
.qk-item:hover { background: var(--primary-light); }
.qk-icon { font-size: 30px; line-height: 1; }
.qk-label { font-size: 14px; color: #333; }
/* 待办事项 */
.dash-todos { display: flex; flex-direction: column; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #faf6f0; cursor: pointer; }
.todo-item:last-child { border-bottom: none; }
.todo-item:hover .todo-text { color: var(--primary); }
.todo-tag { flex: none; font-size: 12px; padding: 2px 10px; border-radius: 20px; border: 1px solid; }
.tag-teal { color: #1a9e8f; border-color: #5ec9bc; background: #eefaf8; }
.tag-purple { color: #6a5ae0; border-color: #a99df0; background: #f1efff; }
.tag-blue { color: #3b7dd8; border-color: #8ab6ec; background: #eef5fd; }
.tag-orange { color: #e8930c; border-color: #f5c86a; background: #fff8e8; }
.todo-text { font-size: 13px; color: #555; }
/* 跟进任务 */
.dash-ftabs { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); margin-bottom: 0; }
.ftab-list { display: flex; gap: 26px; }
.ftab { font-size: 14px; color: #666; padding: 10px 2px; cursor: pointer; }
.ftab.on { color: #ff7a1a; border-bottom: 2px solid #ff7a1a; font-weight: 600; margin-bottom: -1px; }
.ftab-right { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg a { padding: 5px 12px; cursor: pointer; color: #666; font-size: 12px; }
.seg a.on { color: #ff7a1a; border: 1px solid #ff7a1a; border-radius: 6px; margin: -1px; background: #fff7f0; }
.dash-countbar { background: #fff7f0; border-radius: 6px; padding: 10px 16px; margin: 12px 0; font-size: 13px; color: #666; }
.dash-countbar b { color: #333; }
.dash-empty { text-align: center; color: #bbb; padding: 40px 0; font-size: 13px; }
.empty-ic { font-size: 44px; margin-bottom: 8px; opacity: .5; }
td.ell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 条形图 */
.hbar-list { display: flex; flex-direction: column; gap: 14px; padding: 6px 0; }
.hbar-row { display: flex; align-items: center; gap: 10px; }
.hbar-label { width: 112px; flex: none; text-align: right; font-size: 12px; color: #888; }
.hbar-track { flex: 1; background: #f4f1ec; border-radius: 3px; height: 14px; }
.hbar-fill { background: #5b8def; border-radius: 3px; height: 14px; min-width: 0; transition: width .4s; }
.hbar-num { width: 34px; font-size: 12px; color: #666; }
/* 子页签 + 下拉 */
.dash-subtabs { display: flex; align-items: center; gap: 22px; margin: -4px 0 10px; }
.dash-subtabs.no-mt { margin: 0; }
.dash-subtabs a { font-size: 13px; color: #666; cursor: pointer; padding: 6px 2px; }
.dash-subtabs a.on { color: #333; font-weight: 600; border-bottom: 2px solid #ff7a1a; margin-bottom: -1px; }
select.dash-days { margin-left: auto; font-size: 12px; padding: 4px 8px; width: auto; }
.dash-line, .dash-donut, .dash-radar { width: 100%; height: auto; display: block; }
/* 图例 */
.dash-legend { display: flex; justify-content: center; gap: 22px; margin-top: 6px; font-size: 12px; color: #777; }
.lg-item i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
/* 学习中心 */
.dash-study { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg, #fffaf3, #fff); }
.study-ic { font-size: 52px; }
.study-title { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.study-sub { font-size: 12px; color: #999; margin-bottom: 10px; }
/* 产品动态 */
.dash-news { display: flex; flex-direction: column; }
.news-item { display: flex; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #faf6f0; cursor: pointer; font-size: 13px; }
.news-item:last-child { border-bottom: none; }
.news-item:hover .news-t { color: var(--primary); }
.news-t { color: #555; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-d { flex: none; color: #aaa; font-size: 12px; }
/* 设置弹窗 */
.cfg-list { display: flex; flex-direction: column; gap: 8px; max-height: 380px; overflow-y: auto; }
.cfg-item { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
@media (max-width: 1200px) {
  .dash { grid-template-columns: 1fr; }
  .dash-row2 { grid-template-columns: 1fr; }
}

/* ============ 线索管理（小麦式） ============ */
.xm-lead { background: #f2f4f7; margin: -16px; padding: 16px; min-height: calc(100vh - 60px); }
.xm-lead-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px; }
.xm-lead-title { font-size: 18px; font-weight: 600; color: #303133; }
.xm-link { color: #f67d23; font-size: 14px; cursor: pointer; text-decoration: none; }
.xm-link:hover { color: #e56f1a; }
.xm-panel { background: #fff; border-radius: 8px; padding: 0 20px 20px; }
.xm-tabs { display: flex; align-items: stretch; border-bottom: 1px solid #e8e8e8; height: 54px; }
.xm-tab { display: flex; align-items: center; padding: 0 22px; font-size: 15px; color: #606266; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.xm-tab:hover { color: #f67d23; }
.xm-tab.on { color: #f67d23; border-bottom-color: #f67d23; font-weight: 500; }
.xm-tabs-right { margin-left: auto; align-self: center; }
.xm-ownerfilter { padding: 16px 0 6px; display: flex; gap: 10px; }
.xm-btn { height: 34px; padding: 0 16px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; color: #606266; font-size: 14px; cursor: pointer; }
.xm-btn:hover { border-color: #f67d23; color: #f67d23; }
.xm-btn.on { border-color: #f67d23; color: #f67d23; }
.xm-btn-primary { background: #f67d23; border-color: #f67d23; color: #fff; }
.xm-btn-primary:hover { background: #e56f1a; border-color: #e56f1a; color: #fff; }
.xm-quick { display: flex; align-items: center; flex-wrap: wrap; padding: 8px 0; font-size: 14px; }
.xm-quick-label { color: #909399; }
.xm-qbtn { border: none; background: transparent; font-size: 14px; color: #606266; cursor: pointer; padding: 5px 12px; border-radius: 4px; }
.xm-qbtn.on { background: #fdeee0; color: #f67d23; }
.xm-qlink { border: none; background: transparent; font-size: 14px; color: #606266; cursor: pointer; padding: 5px 4px; margin-left: 20px; }
.xm-qlink:hover { color: #f67d23; }
.xm-qlink.on { color: #f67d23; }
.xm-filters { padding: 8px 0 2px; }
.xm-frow { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-bottom: 14px; position: relative; }
.xm-frow.hide { display: none; }
.xm-field { display: flex; align-items: center; min-width: 0; }
.xm-flabel { flex: 0 0 auto; min-width: 88px; color: #606266; font-size: 14px; }
.xm-input { height: 36px; border: 1px solid #dcdfe6; border-radius: 4px; padding: 0 12px; font-size: 14px; color: #606266; flex: 1; min-width: 0; background: #fff; }
.xm-input::placeholder { color: #b0b3b8; }
.xm-input:focus { outline: none; border-color: #f67d23; }
select.xm-input { cursor: pointer; }
.xm-search { position: relative; flex: 1; display: flex; min-width: 0; }
.xm-search .xm-input { width: 100%; padding-right: 32px; }
.xm-search i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font-style: normal; color: #909399; cursor: pointer; font-size: 16px; }
.xm-daterange { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.xm-daterange i { font-style: normal; color: #909399; }
.xm-frow[data-frow="0"] { padding-right: 76px; }
.xm-collapse { position: absolute; right: 0; top: 8px; border: none; background: none; color: #606266; font-size: 14px; cursor: pointer; white-space: nowrap; }
.xm-collapse:hover { color: #f67d23; }
.xm-toolbar { display: flex; align-items: center; gap: 10px; padding: 10px 0 4px; }
.xm-check-right { margin-left: auto; font-size: 14px; color: #606266; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.xm-check-right input, .xm-table input[type="checkbox"] { accent-color: #f67d23; width: 15px; height: 15px; cursor: pointer; }
.xm-morewrap { position: relative; }
.xm-menu { display: none; position: absolute; top: 42px; left: 0; background: #fff; border: 1px solid #ebeef5; border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,.1); min-width: 130px; z-index: 50; padding: 4px 0; }
.xm-menu.show { display: block; }
.xm-menu-item { padding: 10px 18px; font-size: 14px; color: #606266; cursor: pointer; white-space: nowrap; }
.xm-menu-item:hover { background: #f5f7fa; color: #f67d23; }
.xm-tablewrap { margin-top: 12px; overflow-x: auto; }
.xm-table { width: 100%; border-collapse: collapse; }
.xm-table th { background: #fafafa; color: #909399; font-size: 14px; font-weight: 500; padding: 12px 10px; text-align: left; border-bottom: 1px solid #ebeef5; white-space: nowrap; }
.xm-table td { padding: 12px 10px; border-bottom: 1px solid #f2f4f7; font-size: 14px; color: #606266; white-space: nowrap; }
.xm-table tbody tr:hover td { background: #fafbff; }
.xm-table .c-check { width: 44px; text-align: center; }
.xm-table .c-more { width: 50px; text-align: center; }
.xm-table th.sortable { cursor: pointer; user-select: none; }
.xm-table th.sortable:hover { color: #f67d23; }
.sort-ic { font-size: 12px; }
.xm-name { color: #f67d23; cursor: pointer; }
.xm-name:hover { text-decoration: underline; }
.xm-mini-select { height: 28px; border: 1px solid #dcdfe6; border-radius: 4px; font-size: 13px; color: #606266; padding: 0 6px; cursor: pointer; }
.xm-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.xm-ops a { color: #f67d23; cursor: pointer; font-size: 14px; }
.xm-ops a:hover { text-decoration: underline; }
.xm-sep { color: #dcdfe6; margin: 0 8px; }
.xm-dots { color: #909399; cursor: pointer; font-weight: 700; letter-spacing: 2px; font-size: 16px; }
.xm-dots:hover { color: #f67d23; }
.xm-rowmenu-wrap { position: relative; display: inline-block; }
.xm-rowmenu-wrap .xm-menu { left: auto; right: 0; top: 24px; }
.xm-empty { text-align: center; color: #909399; padding: 44px 0 !important; }
.xm-pager { display: flex; align-items: center; gap: 14px; padding: 18px 0 4px; font-size: 14px; color: #606266; flex-wrap: wrap; }
.xm-total { color: #909399; }
.xm-ps select { height: 30px; border: 1px solid #dcdfe6; border-radius: 4px; margin: 0 4px; }
.xm-pbtn { min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; color: #606266; cursor: pointer; font-size: 14px; }
.xm-pbtn:hover:not(:disabled) { border-color: #f67d23; color: #f67d23; }
.xm-pbtn.on { border-color: #f67d23; color: #f67d23; }
.xm-pbtn:disabled { opacity: .4; cursor: not-allowed; }
.xm-pdot { color: #909399; }
.xm-jump input { width: 48px; height: 30px; border: 1px solid #dcdfe6; border-radius: 4px; text-align: center; margin: 0 4px; }
/* 跟进管理（小麦式） */
.xm-quick-note { margin-left: auto; color: #909399; font-size: 13px; }
.xm-quick-note i { font-style: normal; margin-right: 4px; }
.xm-leadbadge { display: inline-block; font-size: 12px; border: 1px solid; border-radius: 3px; padding: 0 6px; line-height: 20px; margin-left: 6px; background: #fff; }
.xm-ellipsis { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* 跟进图片列 + 扫码上传弹窗 */
.xm-imgcell { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.xm-imgcell img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; border: 1px solid #ebeef5; }
.xm-imgcell i { font-style: normal; font-size: 12px; color: #f67d23; }
.xm-imgcell:hover img { border-color: #f67d23; }
.xm-imglink { color: #f67d23; cursor: pointer; font-size: 13px; white-space: nowrap; }
.xm-imgmodal { display: flex; gap: 24px; }
.xm-qrbox { flex: 0 0 240px; text-align: center; }
.xm-qr { width: 220px; height: 220px; margin: 0 auto; border: 1px solid #ebeef5; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #fafafa; }
.xm-qr img { width: 220px; height: 220px; border-radius: 8px; }
.xm-qrloading { color: #909399; font-size: 13px; }
.xm-qrtip { margin-top: 10px; font-size: 13px; color: #606266; line-height: 1.8; }
.xm-qrtip span { color: #909399; font-size: 12px; }
.xm-imggrid { flex: 1; display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; max-height: 320px; overflow-y: auto; min-width: 0; }
.xm-thumb { position: relative; width: 96px; height: 96px; }
.xm-thumb img { width: 96px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid #ebeef5; cursor: zoom-in; }
.xm-thumb b { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 400; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.xm-thumb b:hover { background: #e5484d; }

/* 试听记录（小麦式） */
.xm-remind { margin-left: auto; font-size: 14px; color: #606266; display: flex; align-items: center; gap: 4px; }
.xm-remind i { font-style: normal; color: #c0c4cc; cursor: help; }
.xm-switch { position: relative; display: inline-block; width: 40px; height: 22px; vertical-align: middle; }
.xm-switch input { opacity: 0; width: 0; height: 0; }
.xm-switch .xm-slider { position: absolute; inset: 0; border-radius: 11px; background: #dcdfe6; transition: .2s; cursor: pointer; }
.xm-switch .xm-slider:before { content: ""; position: absolute; width: 18px; height: 18px; left: 2px; top: 2px; border-radius: 50%; background: #fff; transition: .2s; }
.xm-switch input:checked + .xm-slider { background: #f67d23; }
.xm-switch input:checked + .xm-slider:before { transform: translateX(18px); }
.xm-check { font-size: 14px; color: #606266; display: inline-flex; align-items: center; gap: 5px; margin-right: 12px; cursor: pointer; }
.xm-check input { accent-color: #f67d23; width: 15px; height: 15px; cursor: pointer; }
.xm-fbicon { color: #c0c4cc; font-size: 16px; cursor: pointer; }
.xm-fbicon:hover { color: #f67d23; }
.xm-trial-table td { white-space: normal; }
.xm-trial-table td.nowrap { white-space: pre-line; }
.xm-trial-table td.ellipsis { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xm-pginfo { color: #909399; }
.xm-pgbtn { min-width: 30px; height: 30px; padding: 0 8px; border: 1px solid #dcdfe6; background: #fff; border-radius: 4px; color: #606266; font-size: 13px; cursor: pointer; }
.xm-pgbtn:hover:not(:disabled) { border-color: #f67d23; color: #f67d23; }
.xm-pgbtn.on { border-color: #f67d23; color: #f67d23; font-weight: 600; }
.xm-pgbtn:disabled { opacity: .45; cursor: default; }

/* 续费预警（小麦式） */
.xm-infobar { display: flex; justify-content: space-between; align-items: center; background: #fef6ec; border: 1px solid #fde8cd; color: #606266; font-size: 13px; padding: 10px 14px; border-radius: 6px; margin: 0 0 12px; }
.xm-infobar b { color: #f67d23; font-weight: 600; }
.xm-infonote { color: #909399; font-size: 12px; }
.xm-qmark { display: inline-block; width: 14px; height: 14px; line-height: 12px; text-align: center; border: 1px solid #c0c4cc; border-radius: 50%; color: #909399; font-size: 10px; cursor: help; }
.xm-thfilter { position: relative; }
.xm-thf { cursor: pointer; color: #909399; font-size: 12px; }
.xm-thf:hover { color: #f67d23; }
.xm-thdrop { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid #ebeef5; box-shadow: 0 2px 12px rgba(0,0,0,.1); border-radius: 4px; min-width: 110px; z-index: 50; padding: 4px 0; }
.xm-thdrop-item { padding: 7px 14px; font-size: 13px; color: #606266; cursor: pointer; white-space: nowrap; }
.xm-thdrop-item:hover { background: #fef6ec; color: #f67d23; }
.xm-thdrop-item.on { color: #f67d23; font-weight: 600; }

/* ---------- 课程新增/编辑页（仿小麦三段式） ---------- */
.cf-page { max-width: 1100px; }
.cf-crumb { color: #909399; font-size: 13px; margin: 2px 0 14px; }
.cf-crumb a { color: #606266; cursor: pointer; text-decoration: none; }
.cf-crumb a:hover { color: var(--primary); }
.cf-crumb .cf-sep { margin: 0 10px; color: #dcdfe6; }
.cf-card { background: #fff; border-radius: 8px; padding: 22px 30px 8px; margin-bottom: 16px; box-shadow: 0 1px 4px rgba(0,0,0,.05); }
.cf-sec { font-size: 15px; font-weight: 700; color: #303133; margin-bottom: 20px; }
.cf-row { display: flex; align-items: center; margin-bottom: 18px; }
.cf-row-top { align-items: flex-start; }
.cf-row-top > label { padding-top: 9px; }
.cf-row > label { width: 150px; flex: none; text-align: right; padding-right: 14px; color: #606266; font-size: 13px; }
.cf-row > label .req { color: #f56c6c; margin-right: 3px; font-style: normal; }
.cf-w300 { width: 300px; flex: none; }
.cf-link { color: var(--primary); cursor: pointer; font-size: 13px; margin-left: 10px; white-space: nowrap; }
.cf-link:hover { text-decoration: underline; }
.cf-radios { display: flex; align-items: center; gap: 18px; }
.cf-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #606266; cursor: pointer; }
.cf-radio input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; margin: 0; }
.cf-info { color: #c0c4cc; cursor: help; font-size: 14px; margin-left: -12px; }
.cf-plabel { font-size: 13px; color: #606266; margin-right: 18px; }
.cf-colors { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cf-dot { width: 22px; height: 22px; border-radius: 50%; cursor: pointer; border: 2px solid transparent; padding: 0; }
.cf-dot.on { border-color: #fff; box-shadow: 0 0 0 2px #4a90d9; }
.cf-more { color: #c0c4cc; letter-spacing: 2px; cursor: pointer; font-size: 14px; }
.cf-chg { border-top: 1px solid #f0f0f0; padding: 16px 0; }
.cf-chg:first-of-type { border-top: none; padding-top: 0; }
.cf-chg-head { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; color: #303133; }
.cf-chg-body { margin-top: 16px; }
.cf-tip { background: #fef6ec; border-radius: 6px; color: #e8912d; font-size: 12px; padding: 10px 14px; margin: 4px 0 16px 164px; display: flex; align-items: center; gap: 6px; }
.cf-tip .cf-tipx { margin-left: auto; cursor: pointer; color: #e8912d; font-size: 14px; }
.cf-ptable table { border-collapse: collapse; min-width: 640px; }
.cf-ptable th { background: #f5f7fa; color: #909399; font-size: 12px; font-weight: 400; padding: 9px 10px; text-align: left; border: 1px solid #ebeef5; }
.cf-ptable td { border: 1px solid #ebeef5; padding: 6px 10px; }
.cf-ptable .xm-input { height: 32px; font-size: 13px; width: 100%; }
.cf-ptable .cell-unit { color: #909399; font-size: 13px; }
.cf-pdel { color: var(--primary); cursor: pointer; font-size: 13px; }
.cf-pdel:hover { text-decoration: underline; }
.cf-padd { margin-top: 10px; display: flex; align-items: center; gap: 6px; }
.cf-pcount { color: #909399; font-size: 12px; }
.cf-foot { margin: 6px 0 30px; }
.cf-foot .btn { min-width: 88px; margin-right: 12px; }
.cf-planchips { display: flex; gap: 8px; flex-wrap: wrap; margin-left: 10px; }
.cf-planchip { background: #fdf1e1; color: #b26a12; border-radius: 4px; padding: 4px 10px; font-size: 12px; }
.cf-optrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.cf-optrow .xm-input { flex: 1; }
.cf-optdel { color: #f56c6c; cursor: pointer; font-size: 14px; }
.cf-planrow { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cf-planrow .xm-input { width: 150px; }

/* ============ 右侧抽屉（小麦式表单） ============ */
.xm-drawer-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 900; animation: xdFade .18s ease; }
@keyframes xdFade { from { opacity: 0; } }
.xm-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 620px; max-width: 94vw; background: #fff;
  z-index: 901; display: flex; flex-direction: column; animation: xdSlide .22s ease; box-shadow: -4px 0 18px rgba(0,0,0,.12); }
@keyframes xdSlide { from { transform: translateX(60px); opacity: .6; } }
.xd-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px;
  border-bottom: 1px solid #ebeef5; font-size: 16px; font-weight: 700; color: #303133; flex: none; }
.xd-head .xd-x { cursor: pointer; color: #909399; font-size: 22px; line-height: 1; font-weight: 400; }
.xd-head .xd-x:hover { color: #606266; }
.xd-body { flex: 1; overflow-y: auto; padding: 18px 22px 24px; }
.xd-foot { flex: none; border-top: 1px solid #ebeef5; padding: 14px 22px; display: flex; justify-content: flex-end; gap: 12px; background: #fff; }
.xd-foot .btn { min-width: 96px; height: 38px; font-size: 14px; }
.xd-tipbar { background: #f0f7ff; border-radius: 6px; color: #606266; font-size: 13px; padding: 11px 14px; margin-bottom: 18px; line-height: 1.6; }
.xd-tipbar.orange { background: #fef6ec; color: #e8912d; }
.xd-sec { font-size: 14px; font-weight: 700; color: #303133; margin: 22px 0 14px; padding-left: 10px; position: relative; }
.xd-sec:before { content: ''; position: absolute; left: 0; top: 3px; bottom: 3px; width: 3px; background: var(--primary); border-radius: 2px; }
.xd-sec:first-child { margin-top: 0; }
.xd-row { display: flex; margin-bottom: 16px; align-items: flex-start; }
.xd-label { width: 108px; flex: none; font-size: 13px; color: #606266; padding-top: 9px; line-height: 1.4; }
.xd-label .req { color: #f56c6c; margin-right: 3px; }
.xd-ctrl { flex: 1; min-width: 0; }
.xd-ctrl .xm-input, .xd-ctrl select.xm-input { width: 100%; }
.xd-ctrl textarea.xm-input { width: 100%; resize: vertical; }
.xd-hint { font-size: 12px; color: #909399; margin-top: 6px; line-height: 1.6; }
.xd-link { color: var(--primary); cursor: pointer; font-size: 13px; white-space: nowrap; }
.xd-link:hover { text-decoration: underline; }
.xd-readonly { font-size: 14px; color: #303133; padding-top: 8px; }
/* 步进器 */
.xd-stepper { display: inline-flex; align-items: center; border: 1px solid #dcdfe6; border-radius: 4px; overflow: hidden; }
.xd-stepper button { width: 32px; height: 34px; border: none; background: #f5f7fa; color: #606266; font-size: 16px; cursor: pointer; }
.xd-stepper button:hover { background: #ebeef5; }
.xd-stepper input { width: 64px; height: 34px; border: none; border-left: 1px solid #dcdfe6; border-right: 1px solid #dcdfe6;
  text-align: center; font-size: 14px; outline: none; }
.xd-stepper input::-webkit-inner-spin-button { display: none; }
/* 单选组 */
.xd-radios { display: flex; gap: 22px; padding-top: 8px; flex-wrap: wrap; }
.xd-radio { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: #303133; cursor: pointer; }
.xd-radio input { accent-color: var(--primary); width: 15px; height: 15px; cursor: pointer; }
/* 开关 */
.xd-switch { position: relative; display: inline-block; width: 42px; height: 24px; margin-top: 7px; cursor: pointer; }
.xd-switch input { display: none; }
.xd-switch .tr { position: absolute; inset: 0; background: #dcdfe6; border-radius: 12px; transition: .2s; }
.xd-switch .tr:after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: #fff;
  border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.xd-switch input:checked + .tr { background: var(--primary); }
.xd-switch input:checked + .tr:after { left: 20px; }
/* chips */
.xd-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.xd-chip { background: #f5f7fa; border: 1px solid #e4e7ed; border-radius: 4px; padding: 5px 8px 5px 12px; font-size: 13px;
  color: #606266; display: inline-flex; align-items: center; gap: 6px; }
.xd-chip b { cursor: pointer; color: #909399; font-weight: 400; }
.xd-chip b:hover { color: #f56c6c; }
.xd-chip.hot { background: #fdf1e1; border-color: #f5d9a8; color: #b26a12; }
/* 上传缩略图 */
.xd-thumbs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.xd-thumb { width: 84px; height: 84px; border: 1px solid #e4e7ed; border-radius: 6px; position: relative;
  display: flex; align-items: center; justify-content: center; background: #f5f7fa; overflow: hidden; }
.xd-thumb .fn { font-size: 11px; color: #909399; padding: 4px; word-break: break-all; text-align: center; line-height: 1.4; }
.xd-thumb .del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.5); color: #fff; font-size: 12px; line-height: 18px; text-align: center; cursor: pointer; }
.xd-upbtn { width: 84px; height: 84px; border: 1px dashed #dcdfe6; border-radius: 6px; background: #fff; color: #909399;
  font-size: 26px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.xd-upbtn:hover { border-color: var(--primary); color: var(--primary); }
/* 头像 */
.xd-avatar { width: 64px; height: 64px; border-radius: 50%; background: #f0f2f5; display: inline-flex; align-items: center;
  justify-content: center; font-size: 28px; color: #c0c4cc; cursor: pointer; overflow: hidden; border: 1px solid #e4e7ed; }
.xd-avatar .fn { font-size: 10px; padding: 4px; word-break: break-all; text-align: center; }
/* 二级弹窗里的课程选择列表 */
.xd-picklist { max-height: 320px; overflow-y: auto; border: 1px solid #ebeef5; border-radius: 6px; margin-top: 10px; }
.xd-pickitem { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid #f2f6fc;
  cursor: pointer; font-size: 14px; }
.xd-pickitem:last-child { border-bottom: none; }
.xd-pickitem:hover { background: #f5f7fa; }
.xd-pickitem input { accent-color: var(--primary); width: 15px; height: 15px; }
.xd-pickitem .sub { color: #909399; font-size: 12px; margin-left: auto; }
/* 时间段下拉 */
.xd-timedrop { position: relative; display: inline-block; }
.xd-timemenu { position: absolute; top: 100%; left: 0; margin-top: 4px; background: #fff; border: 1px solid #ebeef5;
  border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 50; min-width: 150px; padding: 6px 0; display: none; }
.xd-timedrop.open .xd-timemenu { display: block; }
.xd-timemenu div { padding: 8px 16px; font-size: 13px; cursor: pointer; color: #606266; }
.xd-timemenu div:hover { background: #fef6ec; color: var(--primary); }


/* 周课表时间轴布局 */
.kb-week-timeline { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.kb-tl-row { display: flex; border-bottom: 1px solid #f0f0f0; }
.kb-tl-row:last-child { border-bottom: none; }
.kb-tl-head { background: #faf8f3; font-weight: 600; }
.kb-tl-time { width: 64px; min-width: 64px; padding: 8px 4px; text-align: center; color: var(--text-2); font-size: 13px; font-weight: 600; border-right: 1px solid #f0f0f0; background: #faf8f3; }
.kb-tl-day { flex: 1; min-width: 0; padding: 6px; border-right: 1px solid #f5f5f5; }
.kb-tl-day:last-child { border-right: none; }
/* ===== 冻结列表前两列 stk-fz ===== */
table.stk-fz.xm-table thead th:first-child,table.stk-fz.xm-table thead th:nth-child(2){background:#fafafa}
table.stk-fz.xm-table tbody tr:hover td:first-child:not([colspan]),table.stk-fz.xm-table tbody tr:hover td:nth-child(2):not([colspan]){background:#fafbff}
table.stk-fz.grid thead th:first-child,table.stk-fz.grid thead th:nth-child(2){background:#FBF6EE}
table.stk-fz.grid tbody tr:hover td:first-child:not([colspan]),table.stk-fz.grid tbody tr:hover td:nth-child(2):not([colspan]){background:#FFFCF7}
table.stk-fz.jy-table thead th:first-child,table.stk-fz.jy-table thead th:nth-child(2){background:#f5f7fa}
table.stk-fz.jy-table tbody tr:hover td:first-child:not([colspan]),table.stk-fz.jy-table tbody tr:hover td:nth-child(2):not([colspan]){background:#fafafa}
table.stk-fz.enr-table thead th:first-child,table.stk-fz.enr-table thead th:nth-child(2){background:#f7f7f7}

/* ===== 纵向冻结表头（2026-10-06）：容器纵向滚动 + thead/tfoot sticky ===== */
.xm-tablewrap, .table-wrap { overflow-y: auto; max-height: calc(100vh - 320px); }
table.stk-fz thead th { position: sticky; top: 0; z-index: 6; }
table.stk-fz.jy-table thead th { background: #f5f7fa; }
table.stk-fz.enr-table thead th { background: #f7f7f7; }
/* 角落单元格：横向+纵向双冻结，层级最高 */
table.stk-fz thead th:first-child { position: sticky; top: 0; left: 0; z-index: 8; }
/* tfoot 合计行底部冻结 */
table.stk-fz tfoot td { position: sticky; bottom: 0; z-index: 5; background: #fafafa; }

/* ===== 表格优化 table-zebra-20261006：隔行变色（淡淡暖灰）+ 更紧凑 + 更大展示面积 ===== */
/* 1. 隔行变色：偶数行淡淡的暖灰 */
.xm-table tbody tr:nth-child(even) td:not([colspan]),
table.grid tbody tr:nth-child(even) td:not([colspan]),
table.jy-table tbody tr:nth-child(even) td:not([colspan]),
table.enr-table tbody tr:nth-child(even) td:not([colspan]) {
  background: #faf9f7;
}
/* 冻结列跟随隔行变色 */
table.stk-fz tbody tr:nth-child(even) td:first-child:not([colspan]),
table.stk-fz tbody tr:nth-child(even) td:nth-child(2):not([colspan]) {
  background: #faf9f7;
}
/* hover 优先级高于隔行变色（保持原有 hover 色） */
.xm-table tbody tr:nth-child(even):hover td:not([colspan]) { background: #fafbff; }
table.grid tbody tr:nth-child(even):hover td:not([colspan]) { background: #FFFCF7; }
table.jy-table tbody tr:nth-child(even):hover td:not([colspan]),
table.enr-table tbody tr:nth-child(even):hover td:not([colspan]) { background: #f5f5f5; }

/* 2. 更紧凑：减小单元格内边距，一屏显示更多行 */
.xm-table th { padding: 8px 10px; }
.xm-table td { padding: 8px 10px; }
table.grid th { padding: 8px 12px; }
table.grid td { padding: 6px 12px; }
table.jy-table th, table.jy-table td { padding-top: 8px; padding-bottom: 8px; }
table.enr-table th, table.enr-table td { padding-top: 8px; padding-bottom: 8px; }

/* 3. 表格容器更高：展示面积更大 */
.xm-tablewrap, .table-wrap { max-height: calc(100vh - 260px); }

/* 研学报名收费：三个功能按钮（保险名单导出/名单导出/分组）——暖金渐变，区别于筛选器 */
.yx-act-btn{height:34px;padding:0 18px;border:1px solid #d3b98a;border-radius:8px;
 background:linear-gradient(180deg,#fdf9f0 0%,#f5e9d3 100%);
 color:#8a6a3f;font-size:13px;font-weight:600;cursor:pointer;
 box-shadow:0 1px 3px rgba(150,115,60,.18),inset 0 1px 0 rgba(255,255,255,.65);
 transition:border-color .15s ease,color .15s ease,box-shadow .15s ease,background .15s ease;}
.yx-act-btn:hover{border-color:#c39a5e;color:#75552c;
 background:linear-gradient(180deg,#fdf6e6 0%,#f1e0c2 100%);
 box-shadow:0 2px 6px rgba(150,115,60,.26),inset 0 1px 0 rgba(255,255,255,.65);}
.yx-act-btn:active{transform:translateY(1px);box-shadow:0 1px 2px rgba(150,115,60,.2);}
/* ========== 全系统暖色主题（2026-10-06）========== */
/* 目标：统一为报名收费页的暖色调：古铜棕 #c98a4b + 暖米 #faf8f3 */
/* 只改颜色，不改布局和功能；功能性颜色（绿/红/橙警告）保留 */

:root {
  --primary: #c98a4b;
  --primary-hover: #b57a3d;
  --primary-light: #faf6ef;
  --bg: #faf8f3;
  --card: #ffffff;
  --text: #4a4238;
  --text-2: #9a8a72;
  --border: #e8e0d2;
  --shadow: 0 2px 10px rgba(150, 115, 60, 0.08);
}

/* ---------- 链接/文字 ---------- */
a { color: #c98a4b; }
.xm-link { color: #c98a4b; }
.xm-link:hover { color: #b57a3d; }
.xm-name { color: #c98a4b; }
.xm-ops a { color: #c98a4b; }

/* ---------- 按钮 ---------- */
.xm-btn-primary { background: #c98a4b; border-color: #c98a4b; color: #fff; }
.xm-btn-primary:hover { background: #b57a3d; border-color: #b57a3d; color: #fff; }
.xm-btn:hover { border-color: #c98a4b; color: #c98a4b; }
.xm-btn.on { border-color: #c98a4b; color: #c98a4b; }

/* ---------- 选项卡/标签 ---------- */
.xm-tab:hover { color: #c98a4b; }
.xm-tab.on { color: #c98a4b; border-bottom-color: #c98a4b; }
.xm-qbtn.on { background: #faf3e8; color: #c98a4b; }
.xm-qlink:hover { color: #c98a4b; }
.xm-qlink.on { color: #c98a4b; }

/* ---------- 表单 ---------- */
.xm-input:focus { border-color: #c98a4b; }
.xm-check-right input, .xm-table input[type="checkbox"] { accent-color: #c98a4b; }

/* ---------- 菜单/导航 ---------- */
.xm-menu-item:hover { color: #c98a4b; }
.xm-collapse:hover { color: #c98a4b; }

/* ---------- 表格 ---------- */
.xm-table th.sortable:hover { color: #c98a4b; }

/* ---------- 顶部栏/标题 ---------- */
.topbar { background: #fffdf9; border-bottom: 1px solid #e8e0d2; }

/* ---------- 卡片/面板 ---------- */
.card, .panel, .xm-card {
  background: #fffdf9;
  border: 1px solid #e8e0d2;
}

/* ---------- 信息条 ---------- */
.tip-bar, .info-bar, .xm-tip {
  background: #faf8f3;
  border: 1px solid #e8e0d2;
  color: #5a5044;
}

/* ---------- 分页 ---------- */
.pagination .active, .pager .active {
  background: #c98a4b;
  border-color: #c98a4b;
}

/* ---------- 开关/单选 ---------- */
.switch.on, .toggle.on { background: #c98a4b; }

/* ---------- 进度条 ---------- */
.progress-bar, .progress .bar { background: #c98a4b; }

/* ---------- 徽章/标签 ---------- */
.badge-primary, .tag-primary {
  background: #faf3e8;
  color: #8a6a3f;
  border: 1px solid #e8e0d2;
}

/* 开关/切换按钮暖色覆盖（补漏） */
.xm-switch input:checked + .xm-slider { background: #c98a4b; }
.xm-check input { accent-color: #c98a4b; }

/* 警告按钮暖色协调（未使用，仅为一致性） */
.btn-sm.xm-btn-warn { background: #c98a4b; border-color: #c98a4b; }

/* ===== 冻结列class版本（用于有rowspan合并单元格的表格） ===== */


/* ===== 订单奇偶行颜色：整行一致 ===== */
table.stk-fz tbody tr.od-odd td{background:#ffffff !important}
table.stk-fz tbody tr.od-even td{background:#f5efe3 !important}

/* ===== 报名收费表前三列冻结 ===== */
table.stk-fz th.frz1, table.stk-fz td.frz1 { position: sticky; left: 0; z-index: 2; min-width: 64px; }
table.stk-fz th.frz2, table.stk-fz td.frz2 { position: sticky; left: 64px; z-index: 2; min-width: 52px; }
table.stk-fz th.frz3, table.stk-fz td.frz3 { position: sticky; left: 116px; z-index: 2; min-width: 96px; box-shadow: 3px 0 5px -2px rgba(0,0,0,.12); }
table.stk-fz thead th.frz1, table.stk-fz thead th.frz2, table.stk-fz thead th.frz3 { z-index: 3; }
