/* ==========================================================================
   课勤云 · 设计系统
   商业级 SaaS 视觉：中性基底 + 品牌渐变 + 克制的层次与动效
   ========================================================================== */

:root {
  --brand: #4f46e5;
  --brand-600: #4338ca;
  --brand-500: #6366f1;
  --brand-50: #eef2ff;
  --brand-100: #e0e7ff;
  --accent: #06b6d4;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --line: #eaecf0;
  --line-2: #f2f4f7;
  --bg: #f6f7fb;
  --card: #ffffff;
  --ok: #039855;
  --ok-bg: #ecfdf3;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --danger: #d92d20;
  --danger-bg: #fef3f2;
  --info: #026aa2;
  --info-bg: #f0f9ff;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 8px -2px rgba(16, 24, 40, .08), 0 2px 4px -2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 20px 40px -12px rgba(16, 24, 40, .16);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 14px;
  line-height: 1.6;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0; }
button { font-family: inherit; }

::selection { background: var(--brand-100); color: var(--brand-600); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d6dae2; border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b9bfca; background-clip: content-box; }

/* ------------------------------- 基础控件 ------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  transition: background .16s ease, box-shadow .16s ease, transform .12s ease, border-color .16s;
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
  user-select: none;
}
.btn:hover { background: var(--brand-600); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand-100); outline-offset: 1px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line); box-shadow: var(--shadow-xs); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-subtle { background: var(--brand-50); color: var(--brand-600); box-shadow: none; }
.btn-subtle:hover { background: var(--brand-100); }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #b42318; }
.btn-ok { background: var(--ok); }
.btn-ok:hover { background: #027a48; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; height: 36px; padding: 0; border-radius: 10px; }

.input, .select, .textarea {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.textarea { height: auto; min-height: 108px; padding: 11px 13px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--ink-4); }
.input:hover, .select:hover, .textarea:hover { border-color: #b6bdc9; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .14);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
}

.field { margin-bottom: 16px; }
.field > label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* 状态徽标 */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px;
  border-radius: 7px;
  font-size: 12px; font-weight: 600;
  background: var(--line-2); color: var(--ink-3);
  white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: currentColor; opacity: .85; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-danger { background: var(--danger-bg); color: var(--danger); }
.badge-info { background: var(--info-bg); color: var(--info); }
.badge-brand { background: var(--brand-50); color: var(--brand-600); }
.badge-plain::before { display: none; }

/* 卡片 */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
}
.card-pad { padding: 20px; }
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 15px; }
.card-body { padding: 20px; }

/* ------------------------------- 登录页 ------------------------------- */

.auth-wrap { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: 1.05fr .95fr; }

.auth-side {
  position: relative;
  padding: 56px 56px 48px;
  color: #fff;
  background: radial-gradient(1200px 600px at 10% -10%, #6366f1 0%, transparent 55%),
              radial-gradient(900px 500px at 90% 110%, #06b6d4 0%, transparent 50%),
              linear-gradient(160deg, #312e81 0%, #4338ca 45%, #4f46e5 100%);
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.auth-side::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
 inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.16) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5), transparent 70%);
  pointer-events: none;
}
.auth-brand { display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; }
.auth-brand .logo {
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.25);
  display: grid; place-items: center;
  backdrop-filter: blur(6px);
}
.auth-brand strong { font-size: 19px; letter-spacing: .01em; }
.auth-brand span { display: block; font-size: 12px; opacity: .72; font-weight: 400; letter-spacing: .06em; }

.auth-hero { position: relative; z-index: 1; max-width: 460px; }
.auth-hero h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.25; color: #fff; font-weight: 700; letter-spacing: -.02em; }
.auth-hero p { margin-top: 16px; font-size: 15px; line-height: 1.8; color: rgba(255,255,255,.82); }
.auth-points { margin-top: 34px; display: grid; gap: 14px; }
.auth-point { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,.9); }
.auth-point i {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
  display: grid; place-items: center; font-style: normal; font-size: 13px;
}
.auth-foot { position: relative; z-index: 1; font-size: 12px; color: rgba(255,255,255,.6); }

.auth-main {
  display: flex; align-items: center; justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.auth-box { width: 100%; max-width: 392px; }
.auth-box h2 { font-size: 24px; letter-spacing: -.02em; }
.auth-box .sub { margin-top: 8px; color: var(--ink-3); font-size: 14px; }
.auth-tabs {
  display: flex; gap: 4px; padding: 4px; margin: 26px 0 22px;
  background: var(--line-2); border-radius: 12px;
}
.auth-tabs button {
  flex: 1; height: 36px; border: 0; border-radius: 9px; background: transparent;
  font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; transition: all .16s;
}
.auth-tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.auth-alert {
  display: none; margin-bottom: 16px; padding: 11px 13px; border-radius: var(--radius-sm);
  font-size: 13px; background: var(--danger-bg); color: var(--danger); border: 1px solid #fee4e2;
}
.auth-alert.show { display: block; }
.auth-note { margin-top: 18px; font-size: 12.5px; color: var(--ink-4); text-align: center; }

/* ------------------------------- 应用外壳 ------------------------------- */

.app { display: flex; min-height: 100vh; min-height: 100dvh; }

.sidebar {
  width: 244px; flex: none;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex; flex-direction: column; gap: 6px;
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  z-index: 40;
}
.sb-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.sb-brand .logo {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-600));
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 14px -6px rgba(79,70,229,.7);
}
.sb-brand b { font-size: 15px; display: block; line-height: 1.3; }
.sb-brand small { font-size: 11px; color: var(--ink-4); letter-spacing: .04em; }

.nav-label { font-size: 11px; font-weight: 700; color: var(--ink-4); letter-spacing: .08em; padding: 12px 10px 6px; text-transform: uppercase; }
.nav-item {
  display: flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 11px; border-radius: 10px;
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  cursor: pointer; transition: background .14s, color .14s;
  border: 0; background: transparent; width: 100%; text-align: left;
}
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .8; }
.nav-item:hover { background: var(--line-2); color: var(--ink); }
.nav-item.active { background: var(--brand-50); color: var(--brand-600); font-weight: 650; }
.nav-item.active svg { opacity: 1; }
.nav-item .count {
  margin-left: auto; font-size: 11px; font-weight: 700;
  background: var(--danger); color: #fff; border-radius: 99px; padding: 1px 7px;
}
.sb-foot { margin-top: auto; border-top: 1px solid var(--line-2); padding-top: 12px; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 64px; flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 26px;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.topbar > div:first-of-type { min-width: 0; }
.topbar h1 { font-size: 17px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumb { font-size: 12.5px; color: var(--ink-4); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 34px; height: 34px; border-radius: 99px;
  background: linear-gradient(140deg, #eef2ff, #e0e7ff);
  color: var(--brand-600); display: grid; place-items: center;
  font-weight: 700; font-size: 13px; flex: none;
  border: 1px solid var(--brand-100);
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px; border-radius: 99px; cursor: pointer; border: 1px solid transparent; }
.user-chip:hover { background: var(--line-2); border-color: var(--line); }
.user-chip .meta b { display: block; font-size: 13px; line-height: 1.25; }
.user-chip .meta small { font-size: 11px; color: var(--ink-4); }

.content { padding: 26px; max-width: 1360px; width: 100%; margin: 0 auto; flex: 1; }
.content-narrow { max-width: 920px; }

/* 移动端顶栏的汉堡 */
.burger { display: none; }

/* ------------------------------- 通用块 ------------------------------- */

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head h2 { font-size: 21px; letter-spacing: -.02em; }
.page-head p { color: var(--ink-3); font-size: 13.5px; margin-top: 5px; }

.grid { display: grid; gap: 16px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-main { display: grid; gap: 16px; grid-template-columns: 1.62fr 1fr; }

.stat {
  padding: 18px 18px 16px;
  border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
  position: relative; overflow: hidden;
}
.stat .label { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 8px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .value small { font-size: 14px; font-weight: 600; color: var(--ink-4); margin-left: 3px; }
.stat .foot { font-size: 12px; color: var(--ink-4); margin-top: 8px; }
.stat .ico {
  position: absolute; right: 16px; top: 16px;
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--brand-50); color: var(--brand-600);
}
.stat .ico svg { width: 18px; height: 18px; }
.stat.ok .ico { background: var(--ok-bg); color: var(--ok); }
.stat.warn .ico { background: var(--warn-bg); color: var(--warn); }
.stat.info .ico { background: var(--info-bg); color: var(--info); }

/* 表格 */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; min-width: 560px; }
table.tbl th {
  text-align: left; font-size: 12px; font-weight: 700; color: var(--ink-3);
  padding: 11px 14px; background: #fbfcfd; border-bottom: 1px solid var(--line);
  white-space: nowrap; position: sticky; top: 0; z-index: 1;
}
table.tbl td { padding: 13px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tbody tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fbfcfe; }
table.tbl .num { font-variant-numeric: tabular-nums; }
.cell-user { display: flex; align-items: center; gap: 10px; }
.cell-user b { font-weight: 600; font-size: 13.5px; display: block; }
.cell-user small { color: var(--ink-4); font-size: 11.5px; }

/* 空状态 */
.empty { padding: 46px 20px; text-align: center; color: var(--ink-4); }
.empty .ico { width: 52px; height: 52px; margin: 0 auto 12px; border-radius: 14px; display: grid; place-items: center; background: var(--line-2); }
.empty .ico svg { width: 24px; height: 24px; color: var(--ink-4); }
.empty p { font-size: 13.5px; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.pager .info { font-size: 12.5px; color: var(--ink-4); }
.pager .ctrl { display: flex; gap: 6px; }

/* 分段控件 */
.segmented { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 10px; gap: 2px; }
.segmented button {
  height: 32px; padding: 0 13px; border: 0; border-radius: 8px; background: transparent;
  font-size: 13px; font-weight: 600; color: var(--ink-3); cursor: pointer; white-space: nowrap;
}
.segmented button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }

/* 标签页 */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button {
  border: 0; background: transparent; padding: 11px 2px; font-size: 14px; font-weight: 600;
  color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap;
}
.tabs button.active { color: var(--brand-600); border-bottom-color: var(--brand); }

/* Toast */
.toast-host { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 240px; max-width: 380px;
  padding: 12px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px; color: var(--ink-2);
  animation: toastIn .22s cubic-bezier(.2,.8,.2,1);
  pointer-events: auto;
}
.toast .dot { width: 8px; height: 8px; border-radius: 99px; flex: none; background: var(--brand); }
.toast.ok .dot { background: var(--ok); }
.toast.err .dot { background: var(--danger); }
.toast.warn .dot { background: var(--warn); }
.toast.hide { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-6px); } }

/* Modal */
.modal-mask {
  position: fixed; top: 0; right: 0; bottom: 0; left: 0;
 inset: 0; z-index: 150;
  background: rgba(16, 24, 40, .48);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: fadeIn .16s ease;
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 560px;
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: 0 32px 64px -16px rgba(16,24,40,.32);
  animation: modalIn .2s cubic-bezier(.2,.8,.2,1);
  max-height: 88vh;
  max-height: min(88dvh, 900px);
  display: flex; flex-direction: column;
  margin: auto;
}
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line-2); }
.modal-head h3 { font-size: 16px; flex: 1; }
.modal-body { padding: 20px 22px; overflow-y: auto; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 10px; background: #fcfcfd; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.985) } to { opacity: 1; transform: none } }
.modal-close { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--ink-4); cursor: pointer; display: grid; place-items: center; font-size: 18px; }
.modal-close:hover { background: var(--line-2); color: var(--ink); }

/* 骨架屏 */
.skel { background: linear-gradient(90deg, #f2f4f7 25%, #f8f9fb 37%, #f2f4f7 63%); background-size: 400% 100%; animation: skel 1.3s ease infinite; border-radius: 8px; }
@keyframes skel { 0% { background-position: 100% 50% } 100% { background-position: 0 50% } }

/* 工具类 */
.row { display: flex; align-items: center; gap: 10px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-3); }
.dim { color: var(--ink-4); }
.small { font-size: 12.5px; }
.tiny { font-size: 11.5px; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mt-0 { margin-top: 0 } .mt-1 { margin-top: 8px } .mt-2 { margin-top: 16px } .mt-3 { margin-top: 24px }
.mb-1 { margin-bottom: 8px } .mb-2 { margin-bottom: 16px } .mb-3 { margin-bottom: 24px }
.hidden { display: none !important; }
.text-ok { color: var(--ok) } .text-danger { color: var(--danger) } .text-warn { color: var(--warn) }
.divider { height: 1px; background: var(--line-2); margin: 16px 0; }

/* ============================ 学员端 ============================ */

.hero {
  position: relative; overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 26px;
  color: #fff;
  background: radial-gradient(700px 320px at 88% -30%, rgba(6,182,212,.55), transparent 60%),
              linear-gradient(135deg, #4338ca 0%, #4f46e5 55%, #6366f1 100%);
  box-shadow: 0 18px 36px -18px rgba(67, 56, 202, .6);
}
.hero::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; left: 0;
 inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.15) 1px, transparent 1px);
  background-size: 20px 20px; opacity: .6; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.hero h2 { color: #fff; font-size: 20px; }
.hero .sub { color: rgba(255,255,255,.78); font-size: 13.5px; margin-top: 6px; }
.hero .clock { font-size: 34px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.hero .date { font-size: 12.5px; color: rgba(255,255,255,.72); margin-top: 2px; }
.hero .action { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero .btn { background: #fff; color: var(--brand-600); box-shadow: 0 10px 20px -10px rgba(0,0,0,.45); }
.hero .btn:hover { background: #f5f6ff; }
.hero .btn.done,
.hero .btn.done[disabled] {
  background: rgba(255,255,255,.22);
  color: #fff;
  border: 1px solid rgba(255,255,255,.45);
  opacity: 1;
  font-weight: 650;
  box-shadow: none;
  cursor: default;
}

.checkin-code { display: flex; gap: 8px; }
.checkin-code .input { width: 132px; height: 44px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.checkin-code .input::placeholder { color: rgba(255,255,255,.6); }
.checkin-code .input:focus { background: rgba(255,255,255,.2); border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.16); }

.task-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff;
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
.task-card:hover { border-color: #d6dcf5; box-shadow: var(--shadow-md); }
.task-card .body { flex: 1; min-width: 0; }
.task-card h4 { font-size: 14.5px; margin-bottom: 5px; }
.task-card .desc { font-size: 13px; color: var(--ink-3); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task-card .foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }

.record-item { display: flex; align-items: center; gap: 12px; padding: 13px 2px; border-bottom: 1px solid var(--line-2); }
.record-item:last-child { border-bottom: 0; }
.record-item .day { font-weight: 650; font-variant-numeric: tabular-nums; min-width: 92px; }
.record-item .meta { color: var(--ink-4); font-size: 12.5px; }

.notice {
  display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(180deg, #f5f7ff, #fbfcff);
  border: 1px solid #e6e9f8; font-size: 13.5px; color: var(--ink-2);
}
.notice .ico { flex: none; width: 28px; height: 28px; border-radius: 9px; background: #fff; border: 1px solid #e6e9f8; display: grid; place-items: center; color: var(--brand-600); }

.upload-zone {
  border: 1.5px dashed #d0d5dd; border-radius: 12px; padding: 22px;
  text-align: center; color: var(--ink-3); font-size: 13px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--brand-500); background: var(--brand-50); }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; background: var(--line-2); font-size: 13px; }
.file-item .name { flex: 1; min-width: 0; }
.file-item .del { border: 0; background: transparent; color: var(--ink-4); cursor: pointer; font-size: 16px; line-height: 1; }
.file-item .del:hover { color: var(--danger); }

/* 趋势条图 */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 146px; padding-top: 8px; }
.chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: flex-end; }
.chart .bars { display: flex; gap: 3px; align-items: flex-end; height: 100%; width: 100%; justify-content: center; }
.chart .bar { width: 12px; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, #818cf8, #4f46e5); min-height: 3px; transition: height .5s cubic-bezier(.2,.8,.2,1); }
.chart .bar.alt { background: linear-gradient(180deg, #67e8f9, #06b6d4); }
.chart .bar.zero { background: #e4e7ec !important; border-radius: 2px; }
.chart .lbl { font-size: 10.5px; color: var(--ink-4); }
.chart-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }

/* 审核详情 */
.review-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.kv { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: 13.5px; }
.kv dt { color: var(--ink-4); }
.kv dd { margin: 0; color: var(--ink-2); }
.content-box { background: #fbfcfd; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; max-height: 260px; overflow-y: auto; }

/* ============================ 响应式 ============================ */

@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    transform: translateX(-100%);
    transition: transform .24s cubic-bezier(.4,0,.2,1);
    box-shadow: var(--shadow-lg);
    width: 268px;
  }
  .sidebar.open { transform: none; }
  .sb-mask { position: fixed; top: 0; right: 0; bottom: 0; left: 0;
 inset: 0; background: rgba(16,24,40,.42); z-index: 35; }
  .burger {
    display: inline-flex; width: 38px; height: 38px; border-radius: 10px;
    align-items: center; justify-content: center; border: 1px solid var(--line);
    background: #fff; cursor: pointer; color: var(--ink-2); flex: none;
  }
  .content { padding: 20px; }
  .topbar { padding: 0 18px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2, .grid-main { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .btn-collapse { width: 36px; padding: 0; }
  .btn-collapse .lbl { display: none; }
  .hero .meta-row { gap: 6px 12px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .content { padding: 15px; }
  .topbar { height: 58px; gap: 10px; }
  .topbar h1 { font-size: 15.5px; }
  .topbar .crumb { display: none; }
  .user-chip .meta { display: none; }
  .page-head h2 { font-size: 19px; }
  .stat .value { font-size: 26px; }
  .hero { padding: 20px; border-radius: 16px; }
  .hero-inner { gap: 16px; }
  .hero .clock { font-size: 28px; }
  .hero .action { margin-left: 0; width: 100%; }
  .hero .action .btn { flex: 1; }
  .checkin-code { width: 100%; }
  .checkin-code .input { flex: 1; width: auto; }
  .field-row { grid-template-columns: 1fr; }
  .modal { max-width: 100%; border-radius: 16px; }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { max-height: 92vh; max-height: 92dvh; }
  .table-wrap { margin: 0 -15px; padding: 0 15px; }
  table.tbl { min-width: 520px; }
  .tabs { gap: 16px; }
  .task-card { flex-direction: column; gap: 10px; }
}

@media (max-width: 380px) {
  .content { padding: 12px; }
  .btn { padding: 0 12px; }
}

/* 打印 */
@media print {
  .sidebar, .topbar, .toast-host { display: none !important; }
  body { background: #fff; }
}
