﻿/* DUSK 员工补休 —— 手机优先样式表，无外部依赖 */

:root {
  --bg: #F2EFF4;
  --card: #FFFFFF;
  --ink: #231D31;
  --ink2: #5B5370;
  --muted: #918AA2;
  --line: #ECE7F1;
  --brand: #2B2350;
  --brand2: #5B4A96;
  --gold: #A9761F;
  --gold-soft: #FBF1DE;
  --green: #178059;
  --green-soft: #E6F4EC;
  --red: #BF3B32;
  --red-soft: #FBE9E7;
  --blue: #2F5FB8;
  --blue-soft: #E9F0FC;
  --amber: #A9660F;
  --amber-soft: #FDF2DF;
  --shadow: 0 1px 2px rgba(35, 29, 49, .05), 0 12px 32px -20px rgba(35, 29, 49, .45);
  --radius: 18px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Noto Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
button { font-family: inherit; }
input, select, textarea { font-family: inherit; }

.app {
  max-width: 620px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: 92px;
  position: relative;
  background: var(--bg);
}

/* ---------------------------------------------------------------- 顶部 */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: calc(14px + env(safe-area-inset-top)) 18px 44px;
  border-radius: 0 0 28px 28px;
  background: linear-gradient(158deg, #241C43 0%, #322759 46%, #4A3880 100%);
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 146, 62, .38), transparent 66%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -120px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(120, 96, 200, .34), transparent 68%);
  pointer-events: none;
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  min-height: 38px;
}

.hero-right { display: flex; align-items: center; gap: 6px; }

.brand {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .3em;
  opacity: .9;
}
.brand span { color: #E2B25E; margin-left: 1px; }

.hero-title {
  position: relative;
  z-index: 2;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .01em;
  margin: 18px 0 5px;
}

.hero-sub {
  position: relative;
  z-index: 2;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.5;
}

.iconbtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, .13);
  border: 0;
  flex: none;
}
.iconbtn:active { background: rgba(255, 255, 255, .25); }

.ic { width: 20px; height: 20px; display: block; }
.ic-sm { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- 主体 */

.main {
  padding: 0 13px 26px;
  margin-top: -24px;
  position: relative;
  z-index: 3;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
  margin-bottom: 12px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 4px 10px;
}
.section-title h2 { font-size: 15px; font-weight: 700; }
.section-hint { font-size: 12px; color: var(--muted); font-weight: 400; }

.stack > * { margin-bottom: 0; }

/* ---------------------------------------------------------------- 概览 */

.summary-card { padding: 18px 16px 0; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  text-align: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.summary-item b {
  display: block;
  font-size: 23px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.summary-item span { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.summary-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 14px 2px 16px;
  font-size: 13.5px;
  color: var(--ink2);
}
.summary-total b {
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.summary-note {
  font-size: 12px;
  color: var(--muted);
  padding: 0 2px 14px;
  margin-top: -8px;
  line-height: 1.55;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 4px;
}
.quick-grid-3 { grid-template-columns: repeat(3, 1fr); }

.quick {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 66px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: var(--shadow);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
}
.quick-plus { font-size: 15px; line-height: 1; color: var(--brand2); font-weight: 700; }
.quick-main {
  background: linear-gradient(140deg, #372A63, #5B4796);
  color: #fff;
  box-shadow: 0 8px 20px -10px rgba(55, 42, 99, .9);
}
.quick-main .quick-plus { color: #E9C98C; }
.quick:active { transform: scale(.97); }

/* 员工卡片 */

.emp-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-bottom: 11px;
}

.emp-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.emp-id { min-width: 0; }
.emp-name { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.emp-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.emp-bal { text-align: right; flex: none; }
.emp-bal .amt { font-size: 22px; display: block; line-height: 1.15; }
.emp-bal-label { display: block; font-size: 10.5px; color: var(--muted); margin-top: 1px; }

.emp-warn {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #8A5710;
  font-size: 11.5px;
  line-height: 1.5;
}
.emp-warn.soft { background: #F6F3F9; color: var(--muted); }

.emp-foot { display: flex; gap: 7px; margin-top: 12px; }

.mini {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  height: 33px;
  padding: 0 8px;
  border-radius: 10px;
  background: #F5F2F8;
  color: var(--ink2);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.mini:active { background: #ECE7F3; }
.mini-strong { background: var(--green-soft); color: var(--green); }
.mini-link { flex: 1.35; background: transparent; color: var(--muted); font-weight: 500; }

.inactive-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.inactive-row:last-child { border-bottom: 0; }

/* ---------------------------------------------------------------- 数字 / 标签 */

.amt, .money {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.pos { color: var(--green); }
.neg { color: var(--red); }
.zero, .muted { color: var(--muted); }
.amber { color: var(--amber); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  background: #F1EDF6;
  color: var(--ink2);
}
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.chip.green { background: var(--green-soft); color: var(--green); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.amber { background: var(--amber-soft); color: var(--amber); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.grey { background: #EFECF2; color: var(--muted); }

/* ---------------------------------------------------------------- 流水 */

.entry {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.entry:first-of-type { border-radius: var(--radius) var(--radius) 0 0; }
.entry:last-of-type { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.entry:only-of-type { border-radius: var(--radius); }
.entry:active { background: #FBFAFC; }

.entry-main { flex: 1; min-width: 0; }
.entry-top { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.entry-who { font-size: 14px; font-weight: 700; }
.entry-type {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: #F1EDF6;
  color: var(--ink2);
  white-space: nowrap;
}
.entry-type.gold { background: var(--gold-soft); color: var(--gold); }
.entry-type.green { background: var(--green-soft); color: var(--green); }
.entry-type.red { background: var(--red-soft); color: var(--red); }
.entry-type.amber { background: var(--amber-soft); color: var(--amber); }
.entry-type.blue { background: var(--blue-soft); color: var(--blue); }

.entry-sub {
  font-size: 12px;
  color: var(--ink2);
  margin-top: 4px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.entry-side { text-align: right; flex: none; min-width: 66px; }
.entry-side .amt { font-size: 15.5px; }
.entry-run { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; }

.group-date {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  padding: 16px 6px 6px;
}

.list-hint { font-size: 12px; color: var(--muted); margin: 4px 4px 10px; }

/* ---------------------------------------------------------------- 筛选 */

.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 2px 2px 10px;
}

.fchip {
  flex: none;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink2);
  font-size: 12px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(35, 29, 49, .05);
}
.fchip.active { background: var(--brand); color: #fff; }

.filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}
.filter-bar .input { flex: 1; height: 40px; font-size: 14px; }

/* ---------------------------------------------------------------- 加班 */

.ot-card { padding: 15px 16px; }
.ot-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ot-head .emp-name { font-size: 16px; }
.ot-head .amt { font-size: 18px; }
.ot-sub { font-size: 11.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.ot-note { font-size: 11.5px; color: var(--ink2); margin-top: 2px; }
.ot-actions { display: flex; gap: 7px; margin-top: 12px; }
.ot-actions .mini { flex: 1; }

.progress {
  height: 7px;
  background: #EFEBF4;
  border-radius: 999px;
  overflow: hidden;
  margin: 12px 0 7px;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2E9E6D, #63C595);
  transition: width .3s ease;
}
.progress-fill.pos { background: linear-gradient(90deg, #2E9E6D, #63C595); }

.hint-line { font-size: 12px; color: var(--muted); line-height: 1.55; margin: 6px 4px 14px; }

/* ---------------------------------------------------------------- 节假日 */

.year-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border-radius: 15px;
  padding: 8px 10px;
  box-shadow: var(--shadow);
  margin-bottom: 4px;
}
.year-arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #F4F1F8;
  color: var(--ink2);
  font-size: 19px;
  font-weight: 600;
}
.year-arrow.disabled { opacity: .3; }
.year-title { text-align: center; }
.year-title b { font-size: 17px; }
.year-title span { font-size: 12.5px; color: var(--muted); margin-left: 3px; }

.holiday-card { padding: 15px 16px; }
.h-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.h-name { display: flex; align-items: center; gap: 8px; font-size: 16.5px; font-weight: 700; }
.h-days {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
}
.h-date { font-size: 12.5px; color: var(--ink2); margin-top: 6px; }
.h-people { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.h-actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.holiday-card.is-done { background: #FCFDFC; box-shadow: 0 1px 2px rgba(35, 29, 49, .04); }

/* ---------------------------------------------------------------- 工资 */

.salary-card { padding: 15px 16px; }
.salary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.salary-total { font-size: 17px; font-weight: 700; color: var(--red); font-variant-numeric: tabular-nums; }
.salary-leave { font-size: 12px; color: var(--ink2); margin-top: 6px; line-height: 1.55; }
.salary-lines {
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.salary-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--ink2);
}
.salary-lines b { font-weight: 700; font-variant-numeric: tabular-nums; }

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

.alert {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 12px;
}
.alert .ic { flex: none; margin-top: 1px; width: 17px; height: 17px; }
.alert-ok { background: var(--green-soft); color: #146B4B; }
.alert-error { background: var(--red-soft); color: #9E2F27; }
.alert-warn { background: var(--amber-soft); color: #7C4F0C; }
.alert-warn span { color: #9A6A1D; font-size: 11.5px; }

/* ---------------------------------------------------------------- 空状态 / 规则 */

.empty { text-align: center; padding: 46px 16px; color: var(--muted); font-size: 13px; }
.empty-ic {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #EFEBF4;
  color: #B7AFC6;
}
.empty-sub { font-size: 12px; margin-top: 6px; color: #A9A2B6; }

.rules { padding: 12px 16px; margin-bottom: 12px; }
.rules summary {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  cursor: pointer;
  list-style: none;
  outline: none;
}
.rules summary::-webkit-details-marker { display: none; }
.rules summary::after { content: " ›"; color: var(--muted); }
.rules[open] summary::after { content: " ⌄"; }
.rules ul { margin: 10px 0 2px; padding-left: 18px; font-size: 12px; color: var(--ink2); line-height: 1.85; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 45px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: transform .06s ease, opacity .15s ease;
}
.btn:active { transform: scale(.985); }
.btn[disabled] { opacity: .55; }

.btn-primary {
  background: linear-gradient(135deg, #3A2C68, #5C4798);
  color: #fff;
  box-shadow: 0 7px 18px -10px rgba(58, 44, 104, .95);
}
.btn-ghost { background: var(--card); color: var(--ink2); border: 1px solid #E3DDE9; }
.btn-danger-ghost { background: var(--card); color: var(--red); border: 1px solid #F0D3CF; }
.btn-block { display: flex; width: 100%; margin-top: 10px; }
.btn-sm { height: 39px; font-size: 13px; border-radius: 11px; }
.btn-xs { height: 31px; padding: 0 11px; font-size: 12px; border-radius: 9px; }

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

.form-card { padding: 16px; }

.field { display: block; margin-bottom: 14px; }
.field-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink2);
  margin-bottom: 6px;
}
.req { color: var(--red); margin-left: 2px; }

.input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid #E2DCE9;
  border-radius: 12px;
  background: #FAF8FC;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input:focus { border-color: var(--brand2); background: #fff; box-shadow: 0 0 0 3px rgba(91, 74, 150, .1); }
.textarea { height: auto; min-height: 82px; padding: 11px 12px; line-height: 1.55; resize: vertical; font-size: 15px; }
select.input {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B5370' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px;
  padding-right: 38px;
}

.field-hint { font-size: 11.5px; color: var(--muted); margin: 6px 0 10px; line-height: 1.55; }

.seg {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #F1EDF6;
}
.seg-item { flex: 1; position: relative; }
.seg-item input { position: absolute; inset: 0; opacity: 0; margin: 0; }
.seg-item span {
  display: block;
  text-align: center;
  padding: 9px 4px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  transition: background .12s ease;
}
.seg-item input:checked + span { background: #fff; color: var(--brand2); box-shadow: 0 1px 3px rgba(35, 29, 49, .1); }
.seg-item input:focus-visible + span { box-shadow: 0 0 0 3px rgba(91, 74, 150, .18); }

.chip-row { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip-btn {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #E3DDE9;
  background: #fff;
  color: var(--ink2);
  font-size: 12px;
  font-weight: 600;
}
.chip-btn:active { background: #F3EFF8; }

.check-inline {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--ink2);
  margin: 4px 0 6px;
  line-height: 1.5;
}
.check-inline input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand2); flex: none; }

.balance-hint {
  margin: 2px 0 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #F6F3FA;
  font-size: 12.5px;
  color: var(--ink2);
}
.balance-hint b { font-variant-numeric: tabular-nums; }

.form-actions { margin-top: 6px; }
.danger-form { margin-top: 22px; }

/* 勾选列表 */

.pick-list { margin: 4px 0 10px; }
.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.pick-row:last-child { border-bottom: 0; }
.pick-row input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick-box {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  border: 1.5px solid #D5CDE0;
  background: #fff;
  flex: none;
  position: relative;
}
.pick-row input:checked + .pick-box {
  background: var(--brand2);
  border-color: var(--brand2);
}
.pick-row input:checked + .pick-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 11px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.pick-row input:focus-visible + .pick-box { box-shadow: 0 0 0 3px rgba(91, 74, 150, .2); }
.pick-name { font-size: 14px; font-weight: 600; }
.pick-meta { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.pick-state { font-size: 11px; color: var(--green); font-weight: 600; }
.pick-state.muted { color: #B0A9BD; }
.pick-row.disabled { opacity: .55; cursor: not-allowed; }
.pick-row.checked { background: #FBF9FE; }

.grant-head { margin-bottom: 8px; }
.grant-name { font-size: 19px; font-weight: 700; }
.grant-date { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* 设置页 */

.list-card { padding: 2px 14px; }
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.set-row:last-child { border-bottom: 0; }
.set-main { min-width: 0; }
.set-name { font-size: 14.5px; font-weight: 600; }
.set-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.set-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.set-side .mini { flex: none; height: 30px; padding: 0 12px; }
.logout-form { margin-top: 12px; }

.hol-year { font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 0 4px; letter-spacing: .04em; }
.hol-row {
  display: grid;
  grid-template-columns: 1fr 62px auto auto;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}
.hol-name { font-size: 13.5px; font-weight: 600; }
.hol-name small { display: block; font-size: 10.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.hol-unit { font-size: 11px; color: var(--muted); }
.input-mini { height: 36px; text-align: center; padding: 0 4px; font-size: 15px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.about { font-size: 12px; color: var(--ink2); line-height: 1.85; }
.pad { padding: 14px 0; }

/* ---------------------------------------------------------------- 底部导航 */

.tabbar {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 620px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 50;
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.tab-ic { display: grid; place-items: center; width: 26px; height: 24px; }
.tab.active { color: var(--brand2); }
.tab.active .tab-ic { color: var(--brand2); }

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

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  background: radial-gradient(120% 70% at 50% 0%, #3B2E6A 0%, #241D42 52%, #191428 100%);
}
.auth-wrap { width: 100%; max-width: 372px; }
.auth-logo {
  text-align: center;
  color: #fff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .34em;
  text-indent: .34em;
}
.auth-line { width: 38px; height: 2px; margin: 13px auto 0; background: #D9A85A; border-radius: 2px; }
.auth-card {
  margin-top: 30px;
  padding: 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .065);
  border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}
.auth-title { color: #fff; font-size: 21px; font-weight: 700; text-align: center; }
.auth-sub { color: rgba(255, 255, 255, .58); font-size: 12.5px; text-align: center; margin: 7px 0 20px; }
.auth-card .field-label { color: rgba(255, 255, 255, .7); }
.auth-card .input {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .14);
  color: #fff;
}
.auth-card .input::placeholder { color: rgba(255, 255, 255, .35); }
.auth-card .input:focus { background: rgba(255, 255, 255, .13); border-color: rgba(217, 168, 90, .7); box-shadow: 0 0 0 3px rgba(217, 168, 90, .14); }
.auth-card .alert-error { background: rgba(200, 70, 60, .22); color: #FFC9C4; }
.auth-card .btn-primary { background: linear-gradient(135deg, #6C55B4, #8A6FD8); margin-top: 6px; }
.auth-foot { text-align: center; color: rgba(255, 255, 255, .32); font-size: 11px; margin-top: 22px; letter-spacing: .06em; }

/* ---------------------------------------------------------------- 错误页 */

.simple-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--bg);
  padding: 24px;
}
.simple-card {
  text-align: center;
  background: #fff;
  border-radius: 22px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  max-width: 340px;
  width: 100%;
}
.simple-code { font-size: 42px; font-weight: 800; color: #DDD6E7; line-height: 1; }
.simple-card h1 { font-size: 18px; margin: 12px 0 8px; }
.simple-card p { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

/* ---------------------------------------------------------------- 桌面 */

@media (min-width: 700px) {
  body { background: #E7E2EC; }
  .app { box-shadow: 0 0 70px rgba(35, 29, 49, .16); min-height: 100vh; }
  .tabbar { border-radius: 0 0 0 0; }
}

@media (max-width: 360px) {
  .quick { height: 62px; font-size: 11.5px; }
  .hero-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

/* ---------------------------------------------------------------- 页面细节修正 */

.main.no-overlap { margin-top: 0; }
.hero.tight { padding-bottom: 22px; }
.no-nav .app { padding-bottom: 34px; }

.summary-grid-2 { grid-template-columns: repeat(2, 1fr); }

.salary-total.zero { color: var(--muted); }
.salary-lines b.muted { color: var(--muted); }

.entry-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  letter-spacing: .01em;
}

/* 节假日设置：按年折叠 */
.year-block {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.year-block:last-of-type { border-bottom: 0; }
.year-block > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  padding: 11px 2px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.year-block > summary::-webkit-details-marker { display: none; }
.year-block > summary::after {
  content: "展开";
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.year-block[open] > summary::after { content: "收起"; }
.year-block > summary span {
  margin-left: auto;
  margin-right: 10px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.hol-body { padding-bottom: 8px; }
.add-holiday { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); }

@media (max-width: 360px) {
  .summary-item b { font-size: 20px; }
  .summary-total b { font-size: 19px; }
}

/* 只读模式下员工卡片只有一个「看明细」，右对齐、不撑满 */
.emp-foot-single { justify-content: flex-end; margin-top: 6px; }
.emp-foot-single .mini { flex: 0 0 auto; height: 26px; padding: 0 2px; }

/* 公开首页：只显示补休天数和加班小时 */
.pub-stats { display: flex; gap: 8px; margin-top: 12px; }
.pub-stat { flex: 1; background: #F7F5FA; border-radius: 12px; padding: 10px 12px; }
.pub-stat b { display: block; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pub-stat span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }

.tabbar-2 { grid-template-columns: repeat(2, 1fr); }

.holiday-card.is-skipped { background: #FAF9FB; box-shadow: none; border: 1px solid var(--line); }
.holiday-card.is-skipped .h-days { background: #EFECF2; color: var(--muted); }

/* 公开页：整张员工卡片可点 */
.emp-card-link { display: block; }

/* 设置页：添加管理员 */
.add-admin { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }

.convert-form { margin-top: 8px; }


/* 底部导航按数量分栏 */
.tabbar-2 { grid-template-columns: repeat(2, 1fr); }
.tabbar-4 { grid-template-columns: repeat(4, 1fr); }
.tabbar-5 { grid-template-columns: repeat(5, 1fr); }

.attendance-line { font-size: 12.5px; color: var(--ink2); margin: 6px 0 2px; }

