/* ============================================================
   九庆企业管理系统 · 后台样式
   纯手写，零第三方依赖（只有 Vue 运行时），加载快、改起来直观
   ============================================================ */

:root {
    /* V10：后台与小程序统一到「暖白底 + 墨黑排版 + 品牌红点缀」，
       原先的冷灰蓝（#F5EFE5 / #2E2720 / #9C9081）全部换成暖色系。 */
    /* V16：后台换成「墨青 + 冷白」，比原来的暖黄米色更清爽、更像管理工具。
       --red 沿用旧名，实际是品牌主色；危险操作用 --danger。 */
    --red: #B96F12;
    --red-light: #E09334;
    --red-bg: #FDF0DC;
    --danger: var(--danger);
    --danger-bg: #FBEAE8;
    --bg: #F7F3EB;
    --card: #FFFFFF;
    --border: #EAE0D2;
    --text: #2E2720;
    --text-2: #6B5F51;
    --muted: #756A5C;
    --faint: #C0B4A4;
    --green: #2F7A5B;
    --orange: #B7791F;
    --gray: #94A3B8;
    --radius: 14px;
    --radius-lg: 22px;

    /* 三层空间阴影：接触 / 主体 / 环境 */
    --sh-1: 0 1px 3px rgba(62, 44, 28, .045);
    --sh-2: 0 6px 16px rgba(62, 44, 28, .055);
    --sh-3: 0 18px 40px rgba(62, 44, 28, .045);
    --sh-top: inset 0 1px 0 rgba(255, 255, 255, .95);
    --sh-card: var(--sh-1), var(--sh-2), var(--sh-3), var(--sh-top);
    --sh-lift: 0 12px 28px rgba(62, 44, 28, .12), 0 26px 56px rgba(62, 44, 28, .07);
    --sh-hero: 0 14px 32px rgba(62, 44, 28, .22), 0 34px 72px rgba(62, 44, 28, .13),
               inset 0 1px 0 rgba(255, 255, 255, .10);
    --shadow: var(--sh-card);

    /* 排版：统一字体族、字阶、行距 */
    --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    --font-num: "DIN Alternate", "SF Pro Display", -apple-system, "Segoe UI", sans-serif;
    --lh-tight: 1.25;
    --lh-snug: 1.42;
    --lh-body: 1.6;

    /* C 晨光米白 · 主题变量 */
    --theme-hero: radial-gradient(560px 240px at 88% -22%, rgba(255, 205, 138, .55), transparent 70%),
                  linear-gradient(135deg, #DDF2EC 0%, #A8DCCE 100%);
    --theme-hero-shadow: 0 14px 30px rgba(140, 90, 30, .16), 0 32px 64px rgba(140, 90, 30, .10),
                         inset 0 1px 0 rgba(255, 255, 255, .60);
    --theme-side: linear-gradient(170deg, #3A2A1C 0%, #261B13 100%);
    --theme-solid: #33251A;
    --theme-accent-grad: linear-gradient(140deg, #D98324, #A8620C);
    --hero-ink: #10453C;
    --hero-ink-2: rgba(48, 34, 16, .78);
    --hero-ink-3: rgba(48, 34, 16, .56);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------------- 登录页 ---------------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--theme-hero);
}

.login-box {
    width: 380px;
    background: #fff;
    border-radius: 14px;
    padding: 40px 36px 34px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}

.login-box h1 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.login-box .sub {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 26px;
}

.login-tip {
    margin-top: 18px;
    padding: 10px 12px;
    background: var(--red-bg);
    border-radius: 8px;
    font-size: 12px;
    color: var(--red);
    line-height: 1.7;
}

/* ---------------- 布局 ---------------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
    width: 216px;
    background: #261B13;
    color: #E4D8C8;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar .brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar .brand .name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.sidebar .brand .desc {
    font-size: 11px;
    color: #756A5C;
    margin-top: 3px;
}

.menu-group-title {
    padding: 16px 20px 6px;
    font-size: 11px;
    color: #6B7280;
    letter-spacing: 1px;
}

.menu-item {
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 9px;
    border-left: 3px solid transparent;
    transition: all .15s;
}

.menu-item:hover { background: rgba(255, 255, 255, .05); color: #fff; }

.menu-item.active {
    background: rgba(168, 98, 12, .16);
    border-left-color: var(--red-light);
    color: #fff;
    font-weight: 600;
}

.menu-item .ico { width: 16px; text-align: center; opacity: .9; }

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

.topbar {
    height: 56px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    flex-shrink: 0;
}

.topbar .title { font-size: 15px; font-weight: 600; }

.topbar .user { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-2); }

.avatar {
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--red); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
}

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

/* ---------------- 卡片 ---------------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px 20px;
    margin-bottom: 16px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.card-head h2 { font-size: 15px; font-weight: 600; margin-right: 10px; }

.card-head .hint { font-size: 12px; color: var(--muted); font-weight: 400;
    margin-top: 0; }

/* ---------------- 统计卡 ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 16px; margin-bottom: 16px; }

.stat {
    background: #fff;
    border-radius: var(--radius);
    padding: 18px 18px 16px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.stat::after {
    content: '';
    position: absolute;
    right: -14px; bottom: -18px;
    width: 74px; height: 74px;
    border-radius: 50%;
    background: var(--red-bg);
}

.stat .label { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.stat .value { font-size: 26px; font-weight: 700; letter-spacing: -.5px; position: relative; z-index: 1; }
.stat .value small { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.stat .extra { font-size: 12px; color: var(--muted);
    margin-top: 8px; position: relative; z-index: 1; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 34px;
    padding: 0 16px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text-2);
    font-size: 13px;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    font-family: inherit;
}

.btn:hover { border-color: #E4D8C8; background: #FBF7F0; }

.btn-primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn-primary:hover { background: var(--red-light); border-color: var(--red-light); }

.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 6px; }

.btn-link {
    border: none;
    background: none;
    color: var(--red);
    cursor: pointer;
    font-size: 13px;
    padding: 0 4px;
    font-family: inherit;
}

.btn-link:hover { text-decoration: underline; }

.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------------- 表单 ---------------- */
.input, .select {
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    background: #fff;
    font-family: inherit;
    transition: border-color .15s;
    width: 100%;
}

.input:focus, .select:focus { border-color: var(--red); }

.input::placeholder { color: #C0C4CC; }

.form-item { margin-bottom: 16px; }

.form-item > label {
    display: block;
    font-size: 12px;
    color: var(--text-2);
    margin-bottom: 6px;
}

.form-item .tip { font-size: 12px; color: var(--muted); margin-top: 5px; }

.form-row { display: flex;
    gap: 12px; }
.form-row > * { flex: 1; }

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.filter-bar .input, .filter-bar .select { width: 160px; }

/* ---------------- 表格 ---------------- */
.table { width: 100%; border-collapse: collapse; font-size: 13px; }

.table th {
    text-align: left;
    padding: 10px 12px;
    background: #FBF7F0;
    color: var(--muted);
    font-weight: 500;
    font-size: 12px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.table td {
    padding: 11px 12px;
    border-bottom: 1px solid #F3EDE3;
    color: var(--text-2);
}

.table tbody tr:hover { background: #FBF7F0; }

.table td.num { font-variant-numeric: tabular-nums; }

.table .empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------------- 标签 ---------------- */
.tag {
    display: inline-block;
    padding: 1px 9px;
    border-radius: 20px;
    font-size: 11px;
    line-height: 20px;
    white-space: nowrap;
}

.tag-green { background: #E8F8EF; color: var(--green); }
.tag-orange { background: #FDF0DC; color: #9A5B12; }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-gray { background: #F3EDE3; color: var(--muted); }
.tag-blue { background: #EAF2FF; color: #1D4ED8; }

/* ---------------- 排名 ---------------- */
.rank-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px; height: 22px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    background: #F3EDE3;
    color: var(--muted);
}

.rank-no.top1 { background: #D98324; color: #fff; }
.rank-no.top2 { background: #C27C1E; color: #fff; }
.rank-no.top3 { background: #B7791F; color: #fff; }

/* ---------------- 分段器 ---------------- */
.segmented {
    display: inline-flex;
    background: #F3EDE3;
    border-radius: 8px;
    padding: 3px;
    gap: 2px;
}

.segmented button {
    border: none;
    background: transparent;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    font-family: inherit;
    transition: all .15s;
}

.segmented button.active {
    background: #fff;
    color: var(--text);
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

/* ---------------- 弹窗 ---------------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(62, 44, 28, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 20px;
}

.modal {
    background: #fff;
    border-radius: 12px;
    width: 460px;
    max-height: 88vh;
    overflow: auto;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body { padding: 20px 22px; }

.modal-foot {
    padding: 14px 22px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.close-x {
    cursor: pointer;
    color: var(--muted);
    font-size: 18px;
    line-height: 1;
    background: none;
    border: none;
}

/* ---------------- 提示 ---------------- */
.toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: #261B13;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 13px;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    animation: toastIn .2s ease;
}

.toast.err { background: var(--danger); }

@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

.loading { text-align: center; padding: 40px; color: var(--muted); font-size: 13px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .big { font-size: 34px; margin-bottom: 10px; opacity: .35; }

/* ---------------- 分页 ---------------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}

/* ---------------- 进度条（部门榜用） ---------------- */
.bar-wrap { background: #F3EDE3; border-radius: 4px; height: 6px; overflow: hidden; min-width: 90px; }
.bar { height: 100%; background: var(--red); border-radius: 4px; transition: width .4s; }

/* ---------- 响应式：小屏笔记本也能看 ---------- */
@media (max-width: 1200px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr);
    gap: 16px; }
}

/* ==================== 加分审批 / 申请项目 ==================== */
.menu-item .badge {
    margin-left: auto;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    font-weight: 600;
}

.muted {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.detail-row {
    display: flex;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
    color: var(--text);
}

.detail-row > span:first-child {
    width: 74px;
    flex-shrink: 0;
    color: var(--muted);
}

.detail-block {
    margin-top: 16px;
}

.detail-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 6px;
}

.detail-text {
    background: #FBF7F0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--text-2);
    white-space: pre-wrap;
    word-break: break-all;
}

.img-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.apply-img {
    width: 84px;
    height: 84px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    cursor: zoom-in;
}

/* ---------- 读书审核：审核人设置 ---------- */
.audit-setting {
    background: #FAF8F5;
    border: 1px solid #F3EDE3;
    border-radius: 10px;
    padding: 14px 16px;
    margin: 12px 0 6px;
}

.as-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.as-lb {
    font-size: 13px;
    font-weight: 600;
    color: #4F5E59;
    min-width: 48px;
}

.as-ck {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2E2720;
    cursor: pointer;
    user-select: none;
}

.as-people {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 20px;
    padding: 12px 0 10px 0;
}

.as-tip {
    flex: 1;
    font-size: 12px;
    color: #93A19D;
}

/* ---------- 角色管理 ---------- */
.table td .btn-link {
    margin-right: 8px;
}

/* ============================================================
   V7 重构：动态导航 / 工作台 / 审核中心 / 菜单管理
   ============================================================ */

/* ---------------- 侧边栏导航 ---------------- */
.nav { padding: 2px 0 24px; overflow-y: auto; }

.nav-group {
    display: flex;
    align-items: center;
    padding: 9px 14px;
    margin: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, .62);
    letter-spacing: .6px;
    cursor: pointer;
    border-radius: 8px;
    user-select: none;
}

.nav-group:hover { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .88); }
.nav-group .ico { width: 18px; text-align: center; margin-right: 8px; opacity: .95; }
.nav-group .ng-name { flex: 1; }
.nav-group .caret { font-size: 13px; transition: transform .18s; opacity: .45; }
.nav-group .caret.open { transform: rotate(90deg); }

.nav-item {
    display: flex;
    align-items: center;
    padding: 9px 14px 9px 20px;
    margin: 1px 8px;
    border-radius: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, .84);
    cursor: pointer;
    transition: background .14s, color .14s;
}

.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.nav-item.active {
    background: #fff;
    color: var(--red);
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .14);
}

.nav-item .ico { width: 18px; text-align: center; margin-right: 8px; font-size: 13px; }
.nav-sub { padding-left: 26px; }
.nav-item .badge {
    margin-left: auto;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    padding: 0 6px;
    border-radius: 9px;
    line-height: 17px;
    min-width: 17px;
    text-align: center;
}

/* ---------------- 顶栏部门标签 ---------------- */
.dept-chip {
    background: var(--red-bg);
    color: var(--red);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
    margin-right: 4px;
}

/* ---------------- 工作台 ---------------- */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--theme-hero);
    color: var(--hero-ink);
    border-radius: 14px;
    padding: 22px 26px;
    margin-bottom: 16px;
}

.hero-hi { font-size: 20px; font-weight: 700; letter-spacing: .5px; }
.hero-sub { font-size: 13px; color: rgba(255, 255, 255, .8); margin-top: 7px; }
.hero-sub b { color: var(--hero-ink); font-weight: 600; }
.hero-ok { font-size: 13px; color: rgba(255, 255, 255, .72); }

.btn-white {
    background: #fff;
    color: var(--red);
    border: none;
    padding: 9px 18px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
}

.btn-white:hover { background: #FDF0DC; transform: translateY(-1px); }

/* ---------------- 快捷入口 ---------------- */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }

.quick {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 11px;
    cursor: pointer;
    background: #fff;
    transition: .16s;
}

.quick:hover {
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(168, 98, 12, .09);
    transform: translateY(-1px);
}

.q-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--red-bg);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 700;
    flex: none;
}

.q-name { font-size: 14px; font-weight: 600; }
.q-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ---------------- 待办清单 ---------------- */
.todo-list { display: flex; flex-direction: column; }

.todo-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 4px;
    border-bottom: 1px solid #F3EDE3;
    cursor: pointer;
    transition: background .14s;
}

.todo-row:last-child { border-bottom: none; }
.todo-row:hover { background: #FBF7F0; }

.dot { width: 7px; height: 7px; border-radius: 50%; background: #DCE3E1; flex: none; }
.dot.on { background: var(--orange); box-shadow: 0 0 0 3px rgba(245, 158, 11, .16); }
.t-name { flex: 1; font-size: 13px; }
.t-n { font-size: 13px; font-weight: 600; color: var(--orange); }
.t-n.none { color: var(--muted); font-weight: 400; font-size: 12px; }
.t-ar { color: #E4D8C8; }

/* ---------------- Tab ---------------- */
.tabs {
    display: flex;
    gap: 4px;
    margin: 4px 0 14px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 8px 16px;
    font-size: 13px;
    color: var(--text-2);
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    position: relative;
    top: 1px;
    border-bottom: 2px solid transparent;
    transition: .14s;
}

.tab:hover { color: var(--red); background: var(--red-bg); }
.tab.on { color: var(--red); font-weight: 600; border-bottom-color: var(--red); background: transparent; }

.tab-n {
    display: inline-block;
    margin-left: 5px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    padding: 0 5px;
    border-radius: 8px;
    line-height: 16px;
}

/* ---------------- 表格小件 ---------------- */
.thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 5px;
    cursor: zoom-in;
    border: 1px solid var(--border);
    vertical-align: middle;
}

.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }
.wrap { max-width: 400px; white-space: normal; word-break: break-all; line-height: 1.6; }
.empty { text-align: center; color: var(--muted); padding: 38px 0 !important; font-size: 13px; }
.tree-mark { color: #E4D8C8; margin-right: 6px; }
.ico-inline { display: inline-block; width: 18px; text-align: center; margin-right: 4px; opacity: .8; }

.pager {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 14px;
    border-top: 1px solid #F3EDE3;
    margin-top: 12px;
}

/* ---------------- 标签补充 ---------------- */
.tag-blue { background: #EAF1FE; color: #2B6CD4; }
.tag-red { background: #FBEAE8; color: var(--red); }
.tag-orange { background: #FDF0DC; color: #9A5B12; }

/* ---------------- 按钮补充 ---------------- */
.btn-link.ok { color: var(--green); }
.btn-link.danger { color: var(--danger); }
.btn-link:disabled { color: #E4D8C8; cursor: not-allowed; }
.btn-link + .btn-link { margin-left: 4px; }

/* ---------------- 表格观感 ---------------- */
.table th {
    background: #FBF7F0;
    font-weight: 600;
    color: var(--text-2);
    font-size: 12px;
    letter-spacing: .3px;
}

.table tbody tr:hover { background: #FFFFFF; }
.table td { vertical-align: middle; }

.stat .value.accent { color: var(--red); }

/* ---------------- 小屏兜底 ---------------- */
@media (max-width: 1200px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr);
    gap: 16px; }
}

/* 菜单管理：一级菜单视觉上更重 */
.table tr.lv1 td { background: #FBF7F0; font-weight: 600; }
.table tr.lv1:hover td { background: #F7F3EB; }


/* ============================================================
   V9 · 积分中心视觉层
   立体质感：深墨渐变 hero、多层阴影、大圆角、明确的 hover / active 反馈
   只作用于 v9- 前缀的类，不影响其它页面
   ============================================================ */
.v9-hero {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 26px;
    padding: 34px 36px 32px;
    margin-bottom: 16px;
    border-radius: 24px;
    color: var(--hero-ink);
    background:
        var(--theme-hero);
    box-shadow: 0 18px 42px rgba(62, 44, 28, .20), 0 3px 10px rgba(62, 44, 28, .12),
                inset 0 1px 0 rgba(255, 255, 255, .08);
    position: relative;
    overflow: hidden;
}
.v9-hero::after {
    content: '';
    position: absolute;
    right: -80px; bottom: -140px;
    width: 320px; height: 320px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .025), 0 0 0 92px rgba(255, 255, 255, .018);
    pointer-events: none;
}
.v9-eyebrow { font-size: 12px; letter-spacing: .16em; color: var(--hero-ink-2); text-transform: uppercase; }
.v9-hero-num { font-size: 58px; font-weight: 700; line-height: 1.08; letter-spacing: -2px; margin: 10px 0 6px; }
.v9-hero-num small { font-size: 18px; font-weight: 500; margin-left: 8px; color: var(--hero-ink-3); letter-spacing: 0; }
.v9-hero-sub { font-size: 13px; color: var(--hero-ink-2); }
.v9-hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.v9-hero-side {
    align-self: stretch;
    padding: 18px 20px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .48);
    border: 1px solid rgba(255, 255, 255, .13);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(6px);
}
.v9-hero-side-title { font-size: 12px; color: var(--hero-ink-2); margin-bottom: 12px; letter-spacing: .08em; }
.v9-mini { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; border-top: 1px solid rgba(90, 60, 20, .12); font-size: 13px; }
.v9-mini:first-of-type { border-top: 0; }
.v9-mini b { color: var(--hero-ink); font-size: 15px; }
.v9-mini-empty { color: var(--hero-ink-3); justify-content: flex-start; }

.v9-btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 38px; padding: 0 18px; border-radius: 12px; border: 1px solid transparent;
    font-size: 13px; font-weight: 600; cursor: pointer;
    transition: transform .14s ease, box-shadow .14s ease, background .14s ease;
    white-space: nowrap;
}
.v9-btn:hover { transform: translateY(-2px); }
.v9-btn:active { transform: translateY(0) scale(.98); }
.v9-btn-sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 10px; }
.v9-btn-primary { background: linear-gradient(135deg, #D98324, #A8620C); color: #fff; box-shadow: 0 8px 18px rgba(140, 90, 30,.25); }
.v9-btn-primary:hover { box-shadow: 0 12px 24px rgba(140, 90, 30,.32); }
.v9-btn-light { background: #fff; color: var(--theme-solid); box-shadow: 0 8px 18px rgba(0,0,0,.16); }
.v9-btn-ghost { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22); }

.v9-seg-wrap { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.v9-seg-wrap-inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.v9-seg {
    display: inline-flex; gap: 3px; padding: 4px;
    background: #F3EDE3; border-radius: 999px;
    box-shadow: inset 0 1px 3px rgba(40, 28, 18,.07);
}
.v9-seg button {
    border: 0; background: transparent; color: var(--text-2);
    padding: 7px 16px; border-radius: 999px; font-size: 13px; cursor: pointer;
    transition: all .16s ease;
}
.v9-seg button:hover { color: var(--red); }
.v9-seg button.on {
    background: #fff; color: var(--red); font-weight: 600;
    box-shadow: 0 3px 9px rgba(40, 28, 18,.12);
}

.v9-grid { display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 16px; }
.v9-card {
    background: var(--card); border: 1px solid var(--border); border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(40, 28, 18,.055), 0 1px 3px rgba(40, 28, 18,.04);
    transition: box-shadow .18s ease, transform .18s ease;
}
.v9-card:hover { box-shadow: 0 14px 32px rgba(40, 28, 18,.10), 0 2px 6px rgba(40, 28, 18,.05); }
.v9-kpi { position: relative; overflow: hidden; margin-bottom: 0;
    gap: 8px; }
.v9-kpi::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #D98324, #8FD3C2); }
.v9-kpi-label { font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.v9-kpi-num { font-size: 38px; font-weight: 700; line-height: 1.15; letter-spacing: -1px; margin: 4px 0 2px; }
.v9-kpi-num small { font-size: 14px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.v9-kpi-foot { font-size: 12px; color: var(--muted);
    margin-bottom: 12px; }
.v9-card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.v9-card-head h2 { font-size: 16px; font-weight: 650; }

.v9-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 26px;
    margin-bottom: 16px; border-radius: 20px;
    background: linear-gradient(120deg, #FFFFFF 0%, #FDF5F4 100%);
    border: 1px solid rgba(168, 98, 12,.10);
    box-shadow: 0 10px 28px rgba(62, 44, 28,.07), inset 0 1px 0 #fff;
}
.v9-banner-title { font-size: 18px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 5px; }
.v9-banner-sub { font-size: 12px; color: var(--text-2); line-height: 1.7; max-width: 760px; }
.v9-filter { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.v9-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); background: #F5EFE5; padding: 3px 7px; border-radius: 6px; }
.v9-sub { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 3px; }

.v9-bind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.v9-bind-card {
    background: linear-gradient(160deg, #FFFFFF, #FFFFFF);
    border: 1px solid var(--border); border-radius: 20px; padding: 20px 22px 18px;
    box-shadow: 0 10px 26px rgba(40, 28, 18,.07), 0 1px 3px rgba(40, 28, 18,.04);
    transition: transform .16s ease, box-shadow .16s ease;
}
.v9-bind-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(40, 28, 18,.12); }
.v9-bind-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.v9-bind-glyph {
    flex: 0 0 44px; height: 44px; line-height: 44px; text-align: center;
    border-radius: 14px; color: #fff; font-size: 17px; font-weight: 700;
    background: linear-gradient(140deg, #D98324, #A8620C);
    box-shadow: 0 6px 14px rgba(140, 90, 30,.28);
}
.v9-bind-name { font-size: 15px; font-weight: 650; }
.v9-bind-head > span { margin-left: auto; }
.v9-bind-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; }
.v9-bind-body .form-item { margin: 0; }
.v9-bind-body label { font-size: 12px; }
.v9-points-preview {
    height: 36px; line-height: 36px; padding: 0 12px; border-radius: 9px;
    background: #FDF0DC; color: var(--red); font-weight: 700; font-size: 14px;
}
/* 未选打卡项 / 该项不可扣时的占位态，避免出现一个空的绿框只显示「分」 */
.v9-points-preview.v9-preview-empty {
    background: var(--bg); color: var(--muted); font-weight: 500; font-size: 13px;
}
.v9-bind-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }

@media (max-width: 1200px) {
    .v9-hero { grid-template-columns: 1fr;
    margin-bottom: 16px; }
    .v9-grid { grid-template-columns: repeat(2, 1fr);
    margin-bottom: 16px;
    gap: 16px; }
    .v9-bind-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .v9-grid { grid-template-columns: 1fr;
    margin-bottom: 16px;
    gap: 16px; }
    .v9-hero { padding: 26px 22px;
    margin-bottom: 16px; }
    .v9-hero-num { font-size: 44px; }
    .v9-bind-body { grid-template-columns: 1fr; }
    .v9-banner { flex-direction: column; align-items: flex-start;
    margin-bottom: 16px; }
}


/* V9 复审修正：筛选控件并排，不再被全局 .input 的 100% 宽挤成竖列 */
.v9-filter > .input,
.v9-filter > .select {
    width: auto;
    min-width: 148px;
    flex: 0 0 auto;
}
.v9-filter > .input[type="date"] { min-width: 158px; }
.v9-filter > .v9-seg { flex: 0 0 auto; }
.v9-filter > .btn { flex: 0 0 auto; }

/* ============================================================
   V10 · 后台视觉统一与空间层次
   目标：① 把冷灰企业风与 V9 暖墨风并成一套；② 建立
   背景 → 内容板 → 卡片 → hero 的层级；③ 收敛字阶 / 字色 / 行距 /
   数字对齐；④ 让「打卡管理」分组与工作台打卡入口更易被发现。
   只覆盖样式，不改任何 HTML 结构与交互逻辑。
   ============================================================ */

body { font-family: var(--font-sans); line-height: var(--lh-body); }

/* ---- 侧栏：与 hero 同材质的深墨，右侧投影压住内容区 ---- */
.sidebar {
    position: relative;
    z-index: 3;
    background: var(--theme-side);
    box-shadow: 6px 0 26px rgba(62, 44, 28, .16), inset -1px 0 0 rgba(255, 255, 255, .05);
}
.sidebar .brand { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sidebar .brand .name { letter-spacing: 1px; line-height: var(--lh-snug); }
.sidebar .brand .desc { color: rgba(255, 255, 255, .50); font-size: 11px; line-height: var(--lh-body); }
.menu-group-title { color: rgba(255, 255, 255, .42); }
.menu-item { color: rgba(255, 255, 255, .76); }

/* 分组标题加一条品牌红引导线：「打卡管理」等入口在深色侧栏里更容易被扫到 */
.nav-group {
    position: relative;
    color: rgba(255, 255, 255, .74);
    font-size: 12px;
    line-height: var(--lh-snug);
    transition: background .15s, color .15s;
}
.nav-group::before {
    content: '';
    position: absolute;
    left: 0; top: 9px; bottom: 9px;
    width: 2px; border-radius: 2px;
    background: linear-gradient(180deg, rgba(230, 57, 70, .95), rgba(168, 98, 12, .12));
}
.nav-group:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.nav-item {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: var(--lh-snug);
    transition: background .15s, color .15s, transform .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .09); transform: translateX(2px); }
.nav-item.active {
    background: linear-gradient(135deg, #FFFFFF, #FBF7F3);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18), inset 0 1px 0 #fff;
}

/* ---- 顶栏：半透明浮层，明确在内容之上 ---- */
.main { background: transparent; }
.topbar {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, .90);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(62, 44, 28, .06);
    box-shadow: 0 2px 14px rgba(62, 44, 28, .055);
}
.topbar .title { font-size: 15px; font-weight: 650; letter-spacing: -.2px; line-height: var(--lh-snug); }
.topbar .user { font-size: 13px; color: var(--text-2); }
.avatar {
    background: linear-gradient(140deg, #D98324, #A8620C);
    box-shadow: 0 3px 10px rgba(168, 98, 12, .30), inset 0 1px 0 rgba(255, 255, 255, .28);
}

/* ---- 内容区：环境光地面，让白卡的投影有依据 ---- */
.content {
    position: relative;
    z-index: 1;
    background:
        radial-gradient(760px 300px at 2% -4%, rgba(168, 98, 12, .05), transparent 68%),
        radial-gradient(680px 280px at 100% 0%, rgba(255, 205, 138, .04), transparent 66%),
        linear-gradient(180deg, #FFFFFF 0%, var(--bg) 38%, #EAF0EE 100%);
}

/* ---- 卡片 / 统计卡：统一三层阴影 + 顶部高光 ---- */
.card, .stat {
    background: linear-gradient(168deg, #FFFFFF 0%, #FFFFFF 100%);
    border: 1px solid rgba(62, 44, 28, .05);
    box-shadow: var(--sh-card);
    border-radius: var(--radius);
    transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: var(--sh-lift); }
.stat:hover { transform: translateY(-2px); box-shadow: var(--sh-lift); }
.card-head h2 { font-size: 15px; font-weight: 650; line-height: var(--lh-snug); }
.card-head .hint, .stat .label, .stat .extra, .tip {
    color: var(--muted); font-size: 12px; line-height: var(--lh-body);
}
.stat .value {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    font-size: 28px;
    line-height: var(--lh-tight);
}
.stat .value small { font-family: var(--font-sans); font-size: 13px; }

/* 工作台首卡「今日打卡」加品牌引导条，在四张统计卡里第一个被注意到 */
.stat-grid > .stat:first-child::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    z-index: 2;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, var(--red), #8FD3C2);
}

/* ---- 工作台 hero：大红渐变统一为深墨，与积分中心同一套语言 ---- */
.hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    padding: 26px 30px;
    background: var(--theme-hero);
    border: 1px solid rgba(120, 80, 30, .16);
    box-shadow: var(--theme-hero-shadow);
}
.hero::before {
    content: '';
    position: absolute;
    right: -70px; bottom: -150px;
    width: 300px; height: 300px; border-radius: 50%;
    border: 1px solid rgba(120, 80, 30, .16);
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .05),
                0 0 0 92px rgba(255, 255, 255, .016);
    pointer-events: none;
}
.hero::after {
    content: '';
    position: absolute;
    left: 6%; right: 6%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.hero-hi { font-size: 22px; font-weight: 700; letter-spacing: -.2px; line-height: var(--lh-snug); color: var(--hero-ink); }
.hero-sub { font-size: 13px; color: var(--hero-ink-2); line-height: var(--lh-body); }
.hero-ok {
    font-size: var(--fs-13);
    color: var(--hero-ink);
    font-weight: 600;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .46);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 4px 12px -6px rgba(140, 90, 30, .45);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* 待审核 CTA：从平面白钮变成有落地影的实体按钮 */
.btn-white {
    background: linear-gradient(160deg, #3A2A1C, #261B13);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18), inset 0 1px 0 #fff;
    font-size: 13px;
    font-weight: 650;
    padding: 10px 20px;
    border-radius: 11px;
    transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-white:hover {
    background: #33251A;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

/* ---- 登录页同色系，消除最后一块大红 ---- */
.login-wrap {
    background: var(--theme-hero);
}
.login-box {
    border-radius: 20px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .34), inset 0 1px 0 #fff;
}
.login-box h1 { line-height: var(--lh-snug); }
.login-box .sub, .login-tip { line-height: var(--lh-body); }

/* ---- 表格：字阶 / 字色 / 行距 / 数字对齐统一 ---- */
.table { font-size: 13px; line-height: var(--lh-body); }
.table th {
    background: #F7F1E7;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
    border-bottom: 1px solid var(--border);
}
.table td { color: var(--text); border-bottom: 1px solid #EAF0EE; }
.table tbody tr:hover, .table tbody tr:hover td { background: #FFFFFF; }
.table tr.lv1 td, .table tr.lv1:hover td { background: #F7F1E7; }
.table td.num {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    text-align: right;
}
.table .empty { color: var(--muted); }

/* 冷灰残留归到暖色体系 */
.btn:hover { border-color: #C9D5D1; background: #FFFFFF; }
.todo-row:hover { background: #FFFFFF; }
.t-ar, .tree-mark, .btn-link:disabled { color: var(--faint); }
.v9-code { background: #F2F6F4; font-size: 12px; }
.v9-seg button { font-size: 13px; }
.v9-sub { font-size: 12px; }

/* ---- V9 积分区：接入同一套层级与字阶 ---- */
.v9-hero {
    box-shadow: var(--theme-hero-shadow);
    border: 1px solid rgba(255, 255, 255, .07);
    margin-bottom: 16px;
}
.v9-hero::before {
    content: '';
    position: absolute;
    left: 6%; right: 6%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    pointer-events: none;
}
.v9-hero > * { position: relative; z-index: 1; }
.v9-hero-num, .v9-kpi-num, .v9-points-preview, .v9-mini b {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
    line-height: var(--lh-tight);
}
.v9-hero-side {
    background: rgba(255, 255, 255, .50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 8px 20px rgba(0, 0, 0, .10);
}
.v9-card, .v9-kpi, .v9-bind-card {
    background: linear-gradient(168deg, #FFFFFF 0%, #FFFFFF 100%);
    border: 1px solid rgba(62, 44, 28, .05);
    box-shadow: var(--sh-card);
    transition: box-shadow .18s ease, transform .18s ease;
}
.v9-card:hover, .v9-bind-card:hover { box-shadow: var(--sh-lift); }
.v9-bind-card:hover { transform: translateY(-3px); }
.v9-banner {
    background: linear-gradient(120deg, #FFFFFF 0%, #FDF5F4 100%);
    border: 1px solid rgba(168, 98, 12, .10);
    box-shadow: var(--sh-card);
    margin-bottom: 16px;
}
.v9-card-head h2, .v9-banner-title { line-height: var(--lh-snug); font-weight: 650; }
.v9-eyebrow, .v9-hero-side-title, .v9-banner-sub, .v9-sub,
.v9-mini, .v9-kpi-label, .v9-kpi-foot, .v9-card-more {
    line-height: var(--lh-body);
}
.v9-kpi-label, .v9-kpi-foot, .v9-sub, .v9-card-more { color: var(--muted); }
.v9-bind-glyph {
    box-shadow: 0 6px 14px rgba(140, 90, 30, .28), inset 0 1px 0 rgba(255, 255, 255, .24);
}

/* 按钮按下反馈统一，交互跟手 */
.btn:active, .v9-btn:active { transform: translateY(0) scale(.98); }

/* 加分申请详情里的佐证图片 */
.req-img {
  max-width: 100%;
  max-height: 360px;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--border);
}

/* ============================================================
   V15 按钮系统（与小程序同一套语言）
   primary 主操作 / 默认 次操作 / ghost 弱操作 / link 文字
   统一：胶囊圆角、600 字重、暖色中性投影、悬停上浮、按下收缩、禁用去色
   ============================================================ */
:root {
    --btn-shadow: 0 1px 2px rgba(62, 44, 28, .05),
                  0 8px 18px rgba(62, 44, 28, .10),
                  inset 0 1px 0 rgba(255, 255, 255, .85);
    --btn-shadow-hover: 0 2px 4px rgba(62, 44, 28, .06),
                        0 14px 28px rgba(62, 44, 28, .16),
                        inset 0 1px 0 rgba(255, 255, 255, .92);
    --btn-ring: 0 0 0 3px rgba(168, 98, 12, .22);
    --btn-primary-1: #D98324;
    --btn-primary-2: #A8620C;
    --btn-disabled-bg: #F3EDE3;
    --btn-disabled-ink: #9C9081;
}

.btn,
.btn-white {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 34px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: linear-gradient(165deg, #FFFFFF 0%, #FFFFFF 100%);
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: var(--btn-shadow);
    transition: transform .14s ease, box-shadow .16s ease, background .16s ease,
                border-color .16s ease, color .16s ease;
}

.btn:hover,
.btn-white:hover {
    transform: translateY(-1px);
    border-color: #CBD9D5;
    background: linear-gradient(165deg, #FFFFFF 0%, #F4F9F7 100%);
    box-shadow: var(--btn-shadow-hover);
}

.btn:active,
.btn-white:active {
    transform: translateY(0) scale(.985);
    box-shadow: inset 0 2px 6px rgba(62, 44, 28, .10);
}

.btn:focus-visible,
.btn-primary:focus-visible,
.v9-btn:focus-visible,
.btn-link:focus-visible {
    outline: none;
    box-shadow: var(--btn-ring), var(--btn-shadow);
}

.btn:disabled,
.btn-primary:disabled,
.v9-btn:disabled {
    background: var(--btn-disabled-bg);
    color: var(--btn-disabled-ink);
    border-color: transparent;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.btn-primary {
    background: linear-gradient(160deg, var(--btn-primary-1) 0%, var(--btn-primary-2) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 1px 2px rgba(62, 44, 28, .10),
                0 10px 22px rgba(62, 44, 28, .18),
                inset 0 1px 0 rgba(255, 255, 255, .22);
}

.btn-primary:hover {
    background: linear-gradient(160deg, #E09334 0%, #A8620C 100%);
    box-shadow: 0 2px 4px rgba(62, 44, 28, .10),
                0 14px 28px rgba(62, 44, 28, .24),
                inset 0 1px 0 rgba(255, 255, 255, .26);
}

.btn-primary:active {
    transform: translateY(0) scale(.985);
    box-shadow: inset 0 2px 6px rgba(40, 28, 18, .22);
}

.btn-sm {
    height: 30px;
    padding: 0 14px;
    font-size: 12px;
    letter-spacing: 0;
}

/* 深色头卡上的白按钮 */
.btn-white {
    background: #FFFFFF;
    border-color: transparent;
    color: var(--btn-primary-2);
    box-shadow: 0 2px 6px rgba(40, 28, 18, .10), 0 10px 22px rgba(40, 28, 18, .16);
}

.btn-white:hover { background: #ECF7F3; border-color: transparent; }

/* V9 按钮：默认即主操作，比 .btn 高一档 */
.v9-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: linear-gradient(160deg, var(--btn-primary-1) 0%, var(--btn-primary-2) 100%);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .2px;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(62, 44, 28, .10),
                0 10px 22px rgba(62, 44, 28, .18),
                inset 0 1px 0 rgba(255, 255, 255, .22);
    transition: transform .14s ease, box-shadow .16s ease, background .16s ease,
                border-color .16s ease, color .16s ease;
}

.v9-btn:hover {
    transform: translateY(-1px);
    background: linear-gradient(160deg, #E09334 0%, #A8620C 100%);
    box-shadow: 0 2px 4px rgba(62, 44, 28, .10),
                0 14px 28px rgba(62, 44, 28, .24),
                inset 0 1px 0 rgba(255, 255, 255, .26);
}

.v9-btn:active {
    transform: translateY(0) scale(.985);
    box-shadow: inset 0 2px 6px rgba(40, 28, 18, .22);
}

.v9-btn.v9-btn-sm { height: 32px; padding: 0 16px; font-size: 12px; letter-spacing: 0; }

.v9-btn.v9-btn-light {
    background: #FFFFFF;
    border-color: transparent;
    color: var(--btn-primary-2);
    box-shadow: 0 2px 6px rgba(40, 28, 18, .10), 0 10px 22px rgba(40, 28, 18, .16);
}

.v9-btn.v9-btn-light:hover { background: #ECF7F3; }

/* 浅色头卡上要能看清：磨砂白底 + 深墨字，深色底同样成立 */
.v9-btn.v9-btn-ghost {
    background: rgba(255, 255, 255, .58);
    border-color: rgba(255, 255, 255, .72);
    color: var(--hero-ink, #33251A);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75),
                0 2px 6px rgba(62, 44, 28, .08);
}

.v9-btn.v9-btn-ghost:hover {
    background: rgba(255, 255, 255, .80);
    box-shadow: inset 0 1px 0 #fff, 0 6px 14px rgba(62, 44, 28, .14);
}

.v9-btn.v9-btn-ghost:active { box-shadow: inset 0 2px 6px rgba(62, 44, 28, .18); }

/* 文字按钮：悬停给一层极浅底，不再只靠下划线 */
.btn-link {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--red);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .14s ease, color .14s ease, transform .14s ease;
}

.btn-link:hover {
    background: rgba(168, 98, 12, .10);
    text-decoration: none;
}

.btn-link:active { transform: scale(.97); }

.btn-link.ok { color: var(--green); }
.btn-link.ok:hover { background: rgba(47, 122, 91, .10); }
.btn-link.danger { color: var(--danger); }
.btn-link:disabled { color: var(--faint); background: transparent; cursor: not-allowed; }

/* 分段控件：和按钮同一套圆角与投影 */
.v9-seg {
    background: #F3EDE3;
    box-shadow: inset 0 1px 3px rgba(62, 44, 28, .08);
}

.v9-seg button {
    font-weight: 600;
    letter-spacing: .2px;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.v9-seg button:hover { color: var(--red); background: rgba(255, 255, 255, .55); }
.v9-seg button:active { transform: scale(.97); }

.v9-seg button.on {
    box-shadow: 0 2px 6px rgba(62, 44, 28, .12), inset 0 1px 0 #fff;
}

/* 关闭按钮 */
.close-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: background .14s ease, color .14s ease, transform .12s ease;
}

.close-x:hover { background: #EFF4F2; color: var(--text); }
.close-x:active { transform: scale(.94); }

/* 表格内的文字按钮：比正文按钮更紧凑，避免操作列换行 */
.table .btn-link {
    height: 26px;
    padding: 0 7px;
    font-size: 13px;
    border-radius: 7px;
}

.table .btn-link + .btn-link { margin-left: 0; }

/* ============================================================
 * V24 排行奖励
 * 按设计稿 1:1 复刻：月度/年度 tab + 档位表 + 结算设置卡 + 上期结果
 * ============================================================ */
.rp-tabs {
    display: inline-flex;
    gap: 6px;
    margin: 4px 0 16px;
    padding: 4px;
    background: #F3EDE3;
    border-radius: 999px;
}

.rp-tabs button {
    border: none;
    background: transparent;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    color: var(--text-2);
    cursor: pointer;
    font-family: inherit;
}

.rp-tabs button.on {
    background: var(--red);
    color: #fff;
    box-shadow: 0 4px 12px rgba(168, 98, 12, .22);
}

.rp-card {
    margin-top: 14px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.rp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.rp-card-head b {
    font-size: 13px;
    font-weight: 650;
    color: var(--text);
}

.rp-actions { display: flex; gap: 8px; }

.rp-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 24px;
    padding: 0 10px;
    border-radius: 7px;
    background: #F3EDE3;
    color: var(--text-2);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.rp-chip.gold {
    background: #FFF1DC;
    color: #A8620C;
}

.rp-link {
    font-size: 12px;
    font-weight: 650;
    color: var(--red);
    cursor: pointer;
    margin-right: 12px;
}

.rp-link:hover { text-decoration: underline; }
.rp-link.danger { color: var(--danger); margin-right: 0; }

/* 设置项：三列小卡 */
.rp-cfg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.rp-f {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: #FFFDF9;
    font-size: 11px;
    color: var(--text-2);
}

.rp-f > span { font-size: 11px; }

.rp-f-val {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 650;
    color: var(--text);
}

.rp-num {
    width: 56px;
    height: 28px;
    text-align: center;
    padding: 0 6px;
}

/* 胶囊开关 */
.rp-switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
    cursor: pointer;
}

.rp-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.rp-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #D6DEDA;
    transition: background .16s;
}

.rp-switch i::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    left: 2px;
    top: 2px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .16);
    transition: left .16s;
}

.rp-switch input:checked + i { background: var(--red-light); }
.rp-switch input:checked + i::after { left: 18px; }

.rp-save-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 1200px) {
    .rp-cfg { grid-template-columns: repeat(2, 1fr); }
}

/* ==================== V29 四个打卡模块独立管理页 ==================== */
.mod-table-wrap { overflow-x: auto; }
.mod-table { font-size: 11px; table-layout: fixed; }
.mod-table th { font-size: 11px; text-align: center; white-space: normal;
                word-break: break-word; line-height: 1.35; padding: 8px 5px; }
.mod-table td { font-size: 11px; text-align: center; padding: 7px 5px; word-break: break-all; }
.rec-thumb { width: 30px; height: 24px; object-fit: cover; border-radius: 4px;
             border: 1px solid var(--border); vertical-align: middle; }
.img-more { display: inline-block; background: var(--orange); color: #fff; border-radius: 9px;
            font-size: 10px; padding: 0 4px; margin-left: 2px; vertical-align: top; }
/* 列表单元格：员工姓名加粗，一眼分清谁 */
.cell-strong { font-weight: 600; color: var(--text); }

/* 详情弹窗：人物条 + 分区标题 + 审核区 */
.md-person { display: flex; align-items: center; gap: 12px; padding: 2px 2px 14px; }
.md-avatar { width: 42px; height: 42px; border-radius: 50%; background: #B96F12; color: #fff;
             font-size: 17px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.md-person-t { min-width: 0; }
.md-name { font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.md-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.md-sect { font-size: 12px; font-weight: 700; color: #B96F12; margin: 16px 0 8px;
           padding-left: 8px; border-left: 3px solid #B96F12; line-height: 1.1; }
.md-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 22px; }
.md-grid > div { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px dotted var(--border); min-width: 0; }
.md-grid > div.md-full { grid-column: 1 / -1; }
.md-grid span { min-width: 72px; color: var(--muted); font-size: 12px; flex: 0 0 auto; }
.md-grid b { font-weight: 500; color: var(--text); font-size: 13px; line-height: 1.6; word-break: break-word; }
.md-grid-sub > div { border-bottom: none; padding: 5px 0; }
.md-audit { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap;
            background: #FBF7F0; border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.md-field { display: flex; flex-direction: column; gap: 5px; }
.md-field > span { font-size: 12px; color: var(--muted); }
.md-field .select, .md-field .input { height: 32px; min-width: 132px; }
.md-field-grow { flex: 1; min-width: 220px; }
.md-field-grow .input { width: 100%; box-sizing: border-box; }

/* 修改弹窗里的现有照片预览 */
.rec-edit-imgs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
                 margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }
.rec-edit-label { font-size: 12px; color: var(--muted); }
.rec-edit-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px;
                  border: 1px solid var(--border); display: block; }
.mod-img-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mod-img-cell { text-align: center; }
.mod-img { width: 150px; height: 100px; object-fit: cover; border-radius: 8px;
           border: 1px solid var(--border); display: block; }
.mod-img-none { width: 150px; height: 100px; border: 1px dashed var(--faint); border-radius: 8px;
                background: #FBF7F0; color: var(--muted); font-size: 11px;
                display: flex; align-items: center; justify-content: center; }

/* 加分申请并进待办审核：事由后面的分值 */
.apl-pts { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 9px;
           background: #FDF0DC; color: #B96F12; font-size: 11px; font-weight: 600; }

/* 自己提交的审核项：说明不能自审的原因，并告诉下一步找谁 */
.self-audit-tip { display: block; margin-top: 6px; font-size: 12px; line-height: 1.6;
                  color: var(--muted, #8C867B); }

/* ============================================================
   V34：角色 / 菜单管理页的补充样式
   只新增类，不改已有类，出问题删掉本段即可回滚
   ============================================================ */
.card-head > div:first-child { min-width: 0; }
.card-head .hint { display: block;
    margin-top: 0; line-height: 1.5; }
.head-btns { display: flex; align-items: center;
    gap: 8px; flex-shrink: 0; margin-left: 16px; }

.btn-dot {
    display: inline-block; min-width: 16px; height: 16px; line-height: 16px;
    padding: 0 4px; margin-left: 6px; border-radius: 8px;
    background: rgba(255, 255, 255, .3); color: #fff;
    font-size: 11px; font-weight: 700; text-align: center; vertical-align: 1px;
}

.tag-amber { background: #FBF3E4; color: #9A5A0E; }

.role-table td { vertical-align: middle; }
.role-table tr.rowDirty td { background: #FFFBF3; }
.role-table tr.rowDirty:hover td { background: #FFF6E6; }

.chk { width: 18px; height: 18px; cursor: pointer; accent-color: var(--red); }
.chk:disabled { cursor: not-allowed; opacity: .42; }
.tiny-note { margin-top: 3px; font-size: 11px; color: var(--muted); white-space: nowrap; }

.btn-link:disabled { color: var(--faint, #C0B4A4); cursor: not-allowed; text-decoration: none; }

/* ============================================================
   V35 · 后台界面现代化 + 菜单/内容滚动分离
   ------------------------------------------------------------
   1) 滚动：html/body 锁定视口，.nav 与 .content 各自成为独立
      滚动容器，互相不带动；顶栏与侧栏固定不动。
   2) 视觉：统一 16px 圆角、描边+柔光阴影、字阶与留白，
      按钮/输入/标签/表格/弹窗全部收敛到同一套语言。
   3) 只覆盖样式与新增类，不改动任何页面结构。
   ============================================================ */

:root {
    --red: #B96F12;
    --red-light: #E09334;
    --red-bg: #FDF0DC;
    --danger: var(--danger);
    --danger-bg: #FBEAE8;
    --bg: #F7F3EB;
    --card: #FFFFFF;
    --border: #EAE0D2;
    --border-soft: #F0F4F3;
    --text: #2E2720;
    --text-2: #6B5F51;
    --muted: #756A5C;
    --faint: #C0B4A4;
    --radius: 16px;
    --radius-sm: 10px;
    --sh-1: 0 1px 2px rgba(62, 44, 28, .04);
    --sh-2: 0 8px 24px -12px rgba(62, 44, 28, .22);
    --sh-3: 0 28px 64px -28px rgba(62, 44, 28, .26);
    --sh-card: 0 0 0 1px rgba(62, 44, 28, .055), 0 1px 2px rgba(62, 44, 28, .03),
               0 12px 32px -22px rgba(62, 44, 28, .26);
    --sh-lift: 0 0 0 1px rgba(62, 44, 28, .09), 0 20px 44px -20px rgba(62, 44, 28, .30);
    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------------- 1. 滚动分离 ---------------- */
html, body { height: 100%; }
body { overflow: hidden; }
#app { height: 100%; }
.login-wrap { height: 100%; min-height: 0; overflow-y: auto; padding: 24px 0; }

.layout {
    display: flex;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
}
.sidebar { height: 100%; min-height: 0; }
.nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0 22px;
}
.main { height: 100%; min-height: 0; overflow: hidden; }
.topbar { flex: 0 0 auto; }
.content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* 细滚动条：内容区深色、菜单区浅色，避免默认粗条破坏观感 */
.content::-webkit-scrollbar,
.modal::-webkit-scrollbar,
.mod-table-wrap::-webkit-scrollbar { width: 10px; height: 10px; }
.content::-webkit-scrollbar-track,
.modal::-webkit-scrollbar-track,
.mod-table-wrap::-webkit-scrollbar-track { background: transparent; }
.content::-webkit-scrollbar-thumb,
.modal::-webkit-scrollbar-thumb,
.mod-table-wrap::-webkit-scrollbar-thumb {
    background: rgba(62, 44, 28, .16);
    border: 3px solid transparent;
    background-clip: content-box;
    border-radius: 8px;
}
.content::-webkit-scrollbar-thumb:hover,
.modal::-webkit-scrollbar-thumb:hover { background: rgba(62, 44, 28, .30); background-clip: content-box; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; }
.nav:hover::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .26); }

/* ---------------- 2. 侧栏 ---------------- */
.sidebar {
    width: 236px;
    background: linear-gradient(180deg, #2E2118 0%, #241A12 55%, #1C140E 100%);
    box-shadow: 10px 0 34px rgba(40, 28, 18, .18), inset -1px 0 0 rgba(255, 255, 255, .045);
}
.sidebar .brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 22px 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .065);
}
.brand-mark {
    width: 34px; height: 34px; flex: 0 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 11px;
    background: linear-gradient(140deg, #D98324, #A8620C);
    color: #fff; font-size: 16px; font-weight: 700;
    box-shadow: 0 8px 18px -8px rgba(217, 131, 36, .9), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.sidebar .brand .name {
    font-size: 15px; font-weight: 700; letter-spacing: .5px;
    line-height: 1.3; color: #fff;
}
.sidebar .brand .desc { margin-top: 2px; font-size: 11px; letter-spacing: .6px; color: rgba(255, 255, 255, .44); }

.nav-group {
    margin: 10px 10px 3px;
    padding: 7px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    color: rgba(255, 255, 255, .42);
    text-transform: none;
}
.nav-group::before { display: none; }
.nav-group:hover { background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .78); }
.nav-group .ico { opacity: .8; }
.nav-group .caret { opacity: .35; }

.nav-item {
    margin: 1px 10px;
    padding: 8px 11px 8px 15px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: rgba(255, 255, 255, .74);
    transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; transform: none; }
.nav-item.active {
    background: linear-gradient(135deg, #FFFFFF 0%, #F2FBF8 100%);
    color: #0A3F37;
    font-weight: 650;
    box-shadow: 0 8px 22px -10px rgba(0, 0, 0, .55), inset 0 1px 0 #fff;
}
.nav-item.active .ico { color: var(--red-light); opacity: 1; }
.nav-sub { padding-left: 17px; }
.nav-item .badge {
    background: linear-gradient(135deg, #FFC46B, #F0912B);
    color: #40260A;
    font-weight: 700;
    box-shadow: 0 2px 6px -2px rgba(240, 145, 43, .8);
}

/* ---------------- 3. 顶栏 ---------------- */
.topbar {
    height: 62px;
    padding: 0 26px;
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border-bottom: 1px solid rgba(62, 44, 28, .07);
    box-shadow: none;
}
.topbar .title {
    display: flex; align-items: center; gap: 10px;
    font-size: 16px; font-weight: 700; letter-spacing: -.2px;
}
.topbar .title::before {
    content: '';
    width: 4px; height: 17px; border-radius: 3px;
    background: linear-gradient(180deg, #D98324, #A8620C);
}
.topbar .user { gap: 14px; font-size: 13px; color: var(--text-2); }
.dept-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 11px; border-radius: 999px;
    background: var(--red-bg); color: var(--red);
    font-size: 11px; font-weight: 650; margin-right: 2px;
}
.dept-chip::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%;
    background: #E09334; box-shadow: 0 0 0 3px rgba(217, 131, 36, .16);
}
.avatar {
    width: 33px; height: 33px;
    background: linear-gradient(140deg, #D98324, #A8620C);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(168, 98, 12, .16);
    font-size: 13px; font-weight: 700;
}
.topbar .btn-link { color: var(--text-2); font-size: 13px; }

/* ---------------- 4. 内容区 ---------------- */
.content {
    padding: 24px 26px 40px;
    background:
        radial-gradient(900px 380px at 0% -8%, rgba(217, 131, 36, .055), transparent 70%),
        radial-gradient(760px 320px at 100% 0%, rgba(168, 98, 12, .04), transparent 68%),
        var(--bg);
}
.content > * { animation: jqEnter .24s var(--ease) both; }
@keyframes jqEnter {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

/* ---------------- 5. 卡片 ---------------- */
.card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--sh-card);
    padding: 22px 24px;
    margin-bottom: 18px;
}
.card-head {
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-soft);
}
.card-head h2 { font-size: 16px; font-weight: 700; letter-spacing: -.2px; line-height: 1.35; }
.card-head .hint { display: block;
    margin-top: 0; font-size: 12px; line-height: 1.6; color: var(--muted); }
.head-btns { align-items: center;
    gap: 8px; margin-top: 1px; }

/* ---------------- 6. 按钮 ---------------- */
.btn {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    transition: background .15s var(--ease), border-color .15s var(--ease),
                box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn:hover {
    background: #F7FBFA;
    border-color: #D3E2DD;
    transform: translateY(-1px);
    box-shadow: var(--sh-2);
}
.btn:active { transform: none; box-shadow: none; }
.btn-primary {
    background: linear-gradient(135deg, #E09334, #A8620C);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 20px -10px rgba(140, 90, 30, .95);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #D98324, #8A4F0A);
    border-color: transparent;
    box-shadow: 0 12px 26px -12px rgba(140, 90, 30, 1);
}
.btn-sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 9px; }
.btn:disabled, .btn-primary:disabled {
    opacity: .42; transform: none; box-shadow: none; cursor: not-allowed;
}
.btn-link {
    font-size: 13px; font-weight: 650; color: var(--red);
    padding: 0; background: none; border: none; transition: color .14s;
}
.btn-link:hover { color: var(--red-light); text-decoration: none; }
.btn-link.danger { color: var(--danger); }
.btn-link.danger:hover { color: #E05545; }
.btn-link:disabled { color: var(--faint); cursor: not-allowed; }

/* ---------------- 7. 表单 ---------------- */
.input, .select {
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #FAFCFB;
    font-size: 13px;
    color: var(--text);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.input:hover, .select:hover { border-color: #D3E2DD; }
.input:focus, .select:focus {
    background: #fff;
    border-color: #E09334;
    box-shadow: 0 0 0 3px rgba(217, 131, 36, .14);
    outline: none;
}
.form-item > label { font-size: 12px; font-weight: 650; color: var(--text-2); margin-bottom: 7px; }
.form-item .tip, .tip { font-size: 12px; line-height: 1.6; color: var(--muted); }
.v9-filter > .input, .v9-filter > .select { height: 34px; border-radius: 9px; }

/* ---------------- 8. 表格 ---------------- */
.table {
    font-size: 13px;
    border-collapse: separate;
    border-spacing: 0;
}
.table th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #FBF7F0;
    padding: 11px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .055em;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-soft);
    vertical-align: middle;
}
.table tbody tr { transition: background .13s var(--ease); }
.table tbody tr:hover { background: #F8FCFB; }
.table tbody tr:last-child td { border-bottom: none; }
.table .empty { padding: 46px 0; color: var(--muted); font-size: 13px; }
.table td.num { font-variant-numeric: tabular-nums; }
.mod-table-wrap { border-radius: 12px; border: 1px solid var(--border-soft); }
.mod-table { font-size: 11px; }
.mod-table th {
    position: sticky; top: 0; z-index: 3;
    font-size: 11px; padding: 8px 6px;
    background: #FBF7F0; color: var(--text-2);
}
.mod-table td { font-size: 11px; padding: 8px 6px; }

/* ---------------- 9. 标签 ---------------- */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.7;
    white-space: nowrap;
}
.tag-green { background: #E7F7F1; color: #0B7A61; }
.tag-gray { background: #EFF3F2; color: #8B7D6C; }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-orange { background: #FDF4E6; color: #9A5B12; }
.tag-blue { background: #EAF1FE; color: #2B6CD4; }
.tag-amber { background: #FDF4E6; color: #9A5A0E; }

/* ---------------- 10. 弹窗 / 提示 ---------------- */
.modal-mask {
    background: rgba(40, 28, 18, .44);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: jqFade .16s ease both;
}
.modal {
    border-radius: 18px;
    box-shadow: 0 48px 100px -34px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
    animation: jqPop .2s var(--ease) both;
}
@keyframes jqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes jqPop {
    from { opacity: 0; transform: translateY(10px) scale(.985); }
    to { opacity: 1; transform: none; }
}
.modal-head { padding: 18px 22px; font-size: 15px; font-weight: 700; border-bottom: 1px solid var(--border-soft); }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--border-soft); }
.toast {
    border-radius: 12px;
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35);
    font-weight: 600;
}

/* ---------------- 11. 工作台 ---------------- */
.hero {
    border-radius: 20px;
    box-shadow: var(--theme-hero-shadow);
}
.stat, .v9-card, .v9-hero { border-radius: var(--radius); }
.stat { box-shadow: var(--sh-card); transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.stat:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.stat .value { font-family: var(--font-num); letter-spacing: -.5px; }

/* ---------------- 12. 菜单树（只读） ---------------- */
.readonly-chip {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: #EFF3F2; color: #8B7D6C;
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    vertical-align: 2px;
}
.ro-banner {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 16px; margin-bottom: 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, #F3FAF8, #ECF7F4);
    border: 1px solid #D9EEE8;
    color: #2C5A51; font-size: 12px; line-height: 1.7;
}
.ro-banner b { color: #A8620C; }
.ro-ico { font-size: 15px; line-height: 1.5; }

.tree-table td { padding: 11px 14px; }
.tree-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tree-label { font-weight: 600; color: var(--text); }
.tree-lv1 .tree-label { font-weight: 700; }
.tree-lv2 .tree-label { font-weight: 550; color: var(--text-2); }
.tree-lv1 > td { background: #FFFDF9; }
.tree-lv1:hover > td { background: #F6FBF9; }
.caret-btn {
    width: 19px; height: 19px; flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--border);
    background: #fff; color: var(--muted);
    font-size: 12px; font-weight: 700; line-height: 1; cursor: pointer;
    transition: all .14s var(--ease);
}
.caret-btn:hover { border-color: #E09334; color: var(--red); background: #F3FBF9; }
.tree-guide { width: 19px; flex: 0 0 auto; text-align: center; color: #CBD8D4; font-size: 12px; }
.tree-count {
    padding: 0 7px; border-radius: 999px;
    background: #EEF4F2; color: #8B7D6C;
    font-size: 11px; font-weight: 700; line-height: 17px;
}

/* ---------------- 13. 登录页 ---------------- */
.login-wrap {
    background:
        radial-gradient(900px 420px at 12% 0%, rgba(217, 131, 36, .22), transparent 62%),
        radial-gradient(760px 380px at 92% 100%, rgba(140, 90, 30, .28), transparent 60%),
        linear-gradient(150deg, #2E2118 0%, #211710 60%, #281D14 100%);
}
.login-box {
    width: 392px;
    border-radius: 20px;
    padding: 38px 34px 30px;
    background: rgba(255, 255, 255, .97);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .35);
}
.login-box h1 { font-size: 20px; letter-spacing: .5px; }
.login-box .sub { margin-bottom: 24px; }
.login-tip { border-radius: 10px; font-size: 12px; }

/* ---------------- 14. 打印 ---------------- */
@media print {
    html, body { height: auto; overflow: visible; }
    .layout { height: auto; overflow: visible; }
    .content { overflow: visible; height: auto; }
}

/* V35.1：操作列多个文字按钮不被右边距挤到换行 */
.table td .btn-link { white-space: nowrap; }
.table td .btn-link:last-child { margin-right: 0; }
.table td .btn-link + .btn-link { margin-left: 2px; }

/* ============================================================
   V36 · 两端统一「暖光」设计系统
   ------------------------------------------------------------
   与小程序 app.wxss 同源同一套数值，改这里两端一起变。
   1) 令牌：色/间距/圆角/字阶/光影，全部收敛成有限档位
   2) 材质：渐变面 + 内高光 + 三层落影，做出纸张与压模的层次
   3) 栅格：4px 基准，卡片 24 内距 / 16 间距，内容区 28 边距
   4) 响应式：≥1440 / 1200 / 1024 / 900 四档，平板起可用
   ============================================================ */

:root {
    /* ---------- 底色与墨色（与小程序的 page 变量一一对应） ---------- */
    --bg: #F7F3EB;
    --bg-sink: #F1EADC;
    --card: #FFFFFF;
    --card-2: #FFFDF9;
    --border: #EAE0D2;
    --border-soft: #F3ECE0;
    --text: #2E2720;
    --text-2: #6B5F51;
    --muted: #756A5C;
    --faint: #C6BAA9;

    /* ---------- 品牌：琥珀。文字用 deep，装饰用 brand ---------- */
    --brand: #D98324;
    --brand-deep: #A8620C;
    --brand-ink: #8A4F0A;
    --brand-soft: #FDF0DC;
    --brand-grad: linear-gradient(150deg, #E39A3C 0%, #C07410 54%, #96560A 100%);

    /* 旧变量名映射，全站不用改名 */
    --red: #A8620C;
    --red-light: #D98324;
    --red-bg: #FDF0DC;

    /* ---------- 语义色：与品牌暖色保持可区分 ---------- */
    --danger: #B4322A;
    --danger-bg: #FBEAE8;
    --ok: #2F7A5B;
    --ok-bg: #E9F5EF;
    --warn: #8F6A10;
    --warn-bg: #FBF3D8;
    --info: #3F6BA8;
    --info-bg: #ECF1FC;

    /* ---------- 间距：4px 基准，只用这几档 ---------- */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-7: 32px;
    --sp-8: 40px;

    /* ---------- 圆角：4 档，8 / 12 / 16 / 22 ---------- */
    --radius-sm: 8px;
    --r-md: 12px;
    --radius: 16px;
    --r-lg: 22px;

    /* ---------- 字阶：9 档，不再出现 13.5 / 12.5 这类半档 ---------- */
    --fs-11: 11px;
    --fs-12: 12px;
    --fs-13: 13px;
    --fs-14: 14px;
    --fs-15: 15px;
    --fs-17: 17px;
    --fs-20: 20px;
    --fs-24: 24px;
    --fs-30: 30px;
    --lh-tight: 1.28;
    --lh-snug: 1.45;
    --lh-body: 1.6;

    /* ---------- 光影：接触 / 主体 / 环境 + 顶部材质高光 ---------- */
    --sh-1: 0 1px 2px rgba(62, 44, 28, .05);
    --sh-2: 0 4px 12px -4px rgba(62, 44, 28, .10);
    --sh-3: 0 18px 40px -18px rgba(62, 44, 28, .18);
    --sh-hi: inset 0 1px 0 rgba(255, 255, 255, .92);
    --sh-inset: inset 0 1px 2px rgba(62, 44, 28, .07), inset 0 -1px 0 rgba(255, 255, 255, .9);
    --sh-card: 0 0 0 1px rgba(62, 44, 28, .055), 0 1px 2px rgba(62, 44, 28, .04),
               0 10px 26px -18px rgba(62, 44, 28, .30);
    --sh-lift: 0 0 0 1px rgba(62, 44, 28, .085), 0 2px 4px rgba(62, 44, 28, .04),
               0 20px 42px -18px rgba(62, 44, 28, .34);
    --sh-hero: 0 16px 36px -14px rgba(140, 90, 30, .30), 0 40px 80px -30px rgba(140, 90, 30, .20),
               inset 0 1px 0 rgba(255, 255, 255, .45);
    --sh-pop: 0 32px 72px -24px rgba(40, 28, 18, .42), 0 8px 20px -10px rgba(40, 28, 18, .18),
              0 0 0 1px rgba(62, 44, 28, .07), inset 0 1px 0 rgba(255, 255, 255, .8);
    --ease: cubic-bezier(.22, .61, .36, 1);

    /* ---------- 主题区块（hero / 登录页 / 侧栏） ---------- */
    --theme-hero: radial-gradient(620px 260px at 86% -24%, rgba(255, 210, 138, .78), transparent 70%),
                  linear-gradient(136deg, #FBE7C4 0%, #F3C57C 46%, #E3A34E 100%);
    --theme-hero-shadow: 0 16px 34px -14px rgba(160, 110, 40, .34),
                         0 40px 84px -34px rgba(160, 110, 40, .24),
                         inset 0 1px 0 rgba(255, 255, 255, .55);
    --theme-side: linear-gradient(180deg, #352617 0%, #241A12 46%, #1A120C 100%);
    --theme-solid: #33251A;
    --theme-accent-grad: var(--brand-grad);
    --hero-ink: #3A2A16;
    --hero-ink-2: rgba(48, 34, 16, .84);
    --hero-ink-3: rgba(48, 34, 16, .80);
}

/* ============================================================
   1. 骨架：内容区与侧栏
   ============================================================ */
.content {
    padding: var(--sp-6) 28px var(--sp-8);
    background:
        radial-gradient(1040px 440px at 6% -8%, rgba(217, 131, 36, .085), transparent 68%),
        radial-gradient(840px 380px at 98% -4%, rgba(168, 98, 12, .055), transparent 66%),
        var(--bg);
}

.sidebar {
    width: 232px;
    background:
        radial-gradient(440px 220px at 116% -6%, rgba(217, 131, 36, .26), transparent 70%),
        var(--theme-side);
    box-shadow: 14px 0 34px -20px rgba(40, 28, 18, .60),
                inset -1px 0 0 rgba(255, 255, 255, .06);
}

.brand-mark {
    background: linear-gradient(150deg, #F2BE6C 0%, #D98324 48%, #A8620C 100%);
    box-shadow: 0 10px 22px -10px rgba(217, 131, 36, .95),
                inset 0 1px 0 rgba(255, 255, 255, .48);
    font-size: var(--fs-15);
}

.nav-item {
    font-size: var(--fs-13);
    color: rgba(255, 255, 255, .80);
    transition: background .16s var(--ease), color .16s var(--ease), transform .16s var(--ease);
}
.nav-group {
    color: rgba(255, 255, 255, .52);
}
.nav-item.active {
    background: linear-gradient(135deg, #FFFFFF 0%, #FFF6E6 100%);
    color: #6B3E06;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .62), inset 0 1px 0 #fff;
}
.nav-item.active .ico { color: var(--brand); }

.nav-item .badge {
    background: linear-gradient(140deg, #FFC46B, #E8901F);
    color: #40260A;
    box-shadow: 0 3px 8px -3px rgba(232, 144, 31, .95), inset 0 1px 0 rgba(255, 255, 255, .5);
    font-size: 10px;
}

/* ============================================================
   2. 顶栏
   ============================================================ */
.topbar {
    height: 60px;
    padding: 0 28px;
    background: rgba(255, 253, 249, .84);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid rgba(62, 44, 28, .075);
}
.topbar .title { font-size: var(--fs-15); font-weight: 700; letter-spacing: -.1px; }
.topbar .title::before {
    width: 4px; height: 16px; border-radius: 3px;
    background: linear-gradient(180deg, #F0B860, #A8620C);
    box-shadow: 0 0 8px -2px rgba(217, 131, 36, .55);
}
.topbar .user { font-size: var(--fs-13); }
.dept-chip { font-size: var(--fs-11); padding: 4px 10px; }
.avatar {
    width: 32px; height: 32px;
    background: var(--brand-grad);
    box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(217, 131, 36, .20),
                inset 0 1px 0 rgba(255, 255, 255, .42);
    font-size: var(--fs-13);
}

/* ============================================================
   3. 卡片：纸张质感 = 白面微渐变 + 顶部内高光 + 三层落影
   ============================================================ */
.card {
    padding: var(--sp-6);
    margin-bottom: var(--sp-4);
    border-radius: var(--radius);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--card-2) 100%);
    box-shadow: var(--sh-card);
    transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.card-head {
    margin-bottom: var(--sp-4);
    padding-bottom: var(--sp-3);
    border-bottom: 1px solid var(--border-soft);
    align-items: center;
}
.card-head h2 { font-size: var(--fs-15); font-weight: 700; letter-spacing: -.1px; }
.card-head .hint { font-size: var(--fs-12);
    margin-top: 0; }

/* ============================================================
   4. 按钮：压模材质 = 渐变 + 内高光 + 落影，按压回弹
   ============================================================ */
.btn {
    height: 34px;
    padding: 0 14px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-13);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F0 100%);
    box-shadow: 0 1px 2px rgba(62, 44, 28, .045), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: background .15s var(--ease), border-color .15s var(--ease),
                box-shadow .15s var(--ease), transform .15s var(--ease);
}
.btn:hover {
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF6EA 100%);
    border-color: #E4D8C4;
    transform: translateY(-1px);
    box-shadow: var(--sh-2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
.btn:active {
    transform: translateY(0);
    box-shadow: inset 0 2px 4px rgba(62, 44, 28, .10);
}
.btn-primary {
    background: var(--brand-grad);
    border-color: transparent;
    color: #fff;
    text-shadow: 0 1px 0 rgba(120, 70, 10, .28);
    box-shadow: 0 8px 20px -10px rgba(140, 90, 30, 1),
                inset 0 1px 0 rgba(255, 255, 255, .34),
                inset 0 -1px 0 rgba(90, 55, 5, .18);
}
.btn-primary:hover {
    background: linear-gradient(150deg, #F0B35D 0%, #D0831A 54%, #A8620C 100%);
    box-shadow: 0 12px 26px -12px rgba(140, 90, 30, 1),
                inset 0 1px 0 rgba(255, 255, 255, .42),
                inset 0 -1px 0 rgba(90, 55, 5, .2);
}
.btn-primary:active { box-shadow: inset 0 2px 5px rgba(90, 55, 5, .32); }
.btn-sm { height: 30px; padding: 0 12px; font-size: var(--fs-12); }
.btn-link { font-size: var(--fs-13); font-weight: 650; color: var(--red); }
.btn-link:hover { color: var(--brand); }

/* ============================================================
   5. 表单：输入框内凹，聚焦有一圈暖光
   ============================================================ */
.input, .select {
    height: 36px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: #FDFAF4;
    font-size: var(--fs-13);
    color: var(--text);
    box-shadow: var(--sh-inset);
    transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s;
}
.input:hover, .select:hover { border-color: #E0D2BC; background: #FFFDF8; }
.input:focus, .select:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: var(--sh-inset), 0 0 0 3px rgba(217, 131, 36, .16);
}
.form-item > label { font-size: var(--fs-12); font-weight: 650; color: var(--text-2); margin-bottom: var(--sp-2); }
.form-item .tip, .tip { font-size: var(--fs-12); }
textarea.input { padding: 9px 12px; line-height: 1.6; }

/* ============================================================
   6. 表格：表头压一层浅釉，行 hover 泛暖，数字等宽
   ============================================================ */
.table { font-size: var(--fs-13); }
.table th {
    padding: 10px 14px;
    font-size: var(--fs-11);
    font-weight: 700;
    letter-spacing: .05em;
    color: var(--muted);
    background: linear-gradient(180deg, #FCF8F0 0%, #F8F2E6 100%);
    border-bottom: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.table td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--border-soft);
}
.table tbody tr:hover { background: #FDF9F0; }
.table tbody tr:nth-child(even) { background: rgba(253, 250, 243, .55); }
.table tbody tr:nth-child(even):hover { background: #FDF9F0; }
.table td.num, .table th.num { font-variant-numeric: tabular-nums; }
.table .empty { font-size: var(--fs-13); padding: 44px 0; }
.mod-table { font-size: var(--fs-11); }
.mod-table th { font-size: 11px; padding: 8px 6px; }
.mod-table td { font-size: var(--fs-11); padding: 8px 6px; }

/* ============================================================
   7. 标签 / 提示
   ============================================================ */
.tag { font-size: var(--fs-11); padding: 2px 9px; font-weight: 650; }
.tag-green { background: var(--ok-bg); color: var(--ok); }
.tag-gray { background: #F3EDE3; color: var(--text-2); }
.tag-red { background: var(--danger-bg); color: var(--danger); }
.tag-orange, .tag-amber { background: var(--warn-bg); color: var(--warn); }
.tag-blue { background: var(--info-bg); color: var(--info); }

.ro-banner {
    background: linear-gradient(180deg, #FEF8EC, #FCF2E0);
    border: 1px solid #F1E1C6;
    color: #6B5F51;
    border-radius: var(--r-md);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.ro-banner b { color: var(--brand-deep); }

.readonly-chip, .tree-count { background: #F3EDE3; color: var(--text-2); }
.caret-btn:hover { border-color: var(--brand); color: var(--brand-deep); background: #FFF7EA; }
.tree-lv1 > td { background: #FEFBF4; }
.tree-lv1:hover > td { background: #FDF6E9; }
.tree-guide { color: #D6C9B6; }
.tree-lv1 .tree-label { font-weight: 700; }

/* ============================================================
   8. 弹窗 / 提示条
   ============================================================ */
.modal-mask { background: rgba(40, 28, 18, .46); }
.modal {
    border-radius: var(--r-lg);
    box-shadow: var(--sh-pop);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--card-2) 100%);
}
.modal-head { padding: 18px 22px; font-size: var(--fs-15); font-weight: 700; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; background: rgba(253, 250, 243, .6); }
.toast { border-radius: var(--r-md); font-size: var(--fs-13); }

/* ============================================================
   9. 工作台 / 统计卡
   ============================================================ */
.stat {
    border-radius: var(--radius);
    background: linear-gradient(180deg, #FFFFFF 0%, var(--card-2) 100%);
    box-shadow: var(--sh-card);
    transition: box-shadow .22s var(--ease), transform .22s var(--ease);
}
.stat:hover { box-shadow: var(--sh-lift); transform: translateY(-2px); }
.stat .value { font-family: var(--font-num); font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.hero { border-radius: var(--r-lg); box-shadow: var(--theme-hero-shadow); }

/* ============================================================
   10. 登录页
   ============================================================ */
.login-wrap {
    background:
        radial-gradient(920px 440px at 10% -4%, rgba(217, 131, 36, .30), transparent 64%),
        radial-gradient(780px 400px at 92% 102%, rgba(168, 98, 12, .34), transparent 62%),
        linear-gradient(150deg, #352617 0%, #241A12 56%, #1A120C 100%);
}
.login-box {
    width: 392px;
    border-radius: var(--r-lg);
    padding: 38px 34px 30px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(255, 253, 249, .96));
    box-shadow: 0 42px 92px -30px rgba(0, 0, 0, .58), 0 0 0 1px rgba(255, 255, 255, .38),
                inset 0 1px 0 rgba(255, 255, 255, .9);
}
.login-box h1 { font-size: var(--fs-20); font-weight: 700; letter-spacing: .5px; }
.login-box .sub { font-size: var(--fs-13); margin-bottom: var(--sp-6); }
.login-tip { border-radius: var(--r-sm); font-size: var(--fs-12); }

/* ============================================================
   11. 响应式：四档，最小到平板竖屏
   ============================================================ */
@media (max-width: 1440px) {
    .content { padding: var(--sp-6) var(--sp-6) var(--sp-7); }
    .card { padding: var(--sp-5) var(--sp-5); }
}

@media (max-width: 1200px) {
    .sidebar { width: 208px; }
    .topbar { padding: 0 var(--sp-5); }
    .content { padding: var(--sp-5) var(--sp-5) var(--sp-7); }
    .card { padding: var(--sp-4) var(--sp-4); }
    .table th, .table td { padding-left: 10px; padding-right: 10px; }
}

@media (max-width: 1024px) {
    .sidebar { width: 190px; }
    .nav-item { font-size: var(--fs-12); padding: 8px 10px 8px 13px; }
    .form-row { flex-wrap: wrap;
    gap: 12px; }
    .stat-grid, .v9-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    .card { overflow-x: auto; }
    .table { min-width: 720px; }
}

@media (max-width: 900px) {
    .sidebar { width: 68px; }
    .sidebar .brand { justify-content: center; padding: 16px 0 14px; }
    .brand-text { display: none; }
    .nav-group {
        justify-content: center; padding: 7px 0; margin: 12px 9px 3px;
        font-size: 0; color: transparent;
        border-top: 1px solid rgba(255, 255, 255, .08);
    }
    .nav-group:first-child { border-top: none; margin-top: 4px; }
    .nav-group .ico { font-size: var(--fs-14); color: rgba(255, 255, 255, .5); }
    .nav-group .caret { display: none; }
    .nav-item {
        justify-content: center; padding: 9px 0; margin: 1px 9px;
        font-size: 0; gap: 0;
    }
    .nav-item .ico { font-size: 17px; }
    .nav-item:hover { background: rgba(255, 255, 255, .10); }
    .nav-item.active { background: linear-gradient(135deg, #FFFFFF 0%, #FFF6E6 100%); }
    .nav-item.active .ico { opacity: 1; }
    .nav-item .badge {
        position: absolute; transform: translate(14px, -9px);
        font-size: 10px; padding: 0 4px; line-height: 14px;
    }
    .nav-item { position: relative; }
    .topbar { height: 54px; padding: 0 var(--sp-4); }
    .topbar .user .dept-chip { display: none; }
    .content { padding: var(--sp-4) var(--sp-4) var(--sp-7); }
    .card { padding: var(--sp-3) var(--sp-3); border-radius: var(--r-md); }
    .card-head { flex-direction: column; gap: var(--sp-2);
    align-items: flex-start; }
    .head-btns { width: 100%;
    gap: 8px; }
    .modal { width: calc(100vw - 24px) !important; max-width: none; }
    .modal-body { padding: var(--sp-4); }
}

@media (max-width: 640px) {
    .stat-grid, .v9-kpi-grid { grid-template-columns: minmax(0, 1fr) !important; }
    .table { min-width: 500px; font-size: var(--fs-12); }
    .table th, .table td { padding: 9px 8px; }
    .form-item > label { font-size: var(--fs-12); }
    .content { padding: var(--sp-3) var(--sp-3) var(--sp-6); }
}

/* ============================================================
   V36.1 · 实机核对后的修正
   1) 表头文字加深（原 --muted 在浅底上仅 2.8:1，不达标）
   2) 复选框/单选框自定义，替掉浏览器原生方块
   3) 登录页背景提亮，框体加宽、输入加高
   4) 分页按钮统一外观，禁用态可辨识
   ============================================================ */

.table th {
    color: var(--text-2);
    font-weight: 700;
}

/* 复选框：圆角压模 + 品牌渐变勾选 */
input[type="checkbox"],
input[type="radio"],
.chk {
    -webkit-appearance: none;
    appearance: none;
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F0 100%);
    box-shadow: var(--sh-inset);
    cursor: pointer;
    position: relative;
    vertical-align: -3px;
    margin: 0;
    transition: background .14s var(--ease), border-color .14s var(--ease),
                box-shadow .14s var(--ease);
}
input[type="checkbox"]:hover,
.chk:hover { border-color: #DECDB2; }
input[type="checkbox"]:checked,
.chk:checked {
    background: var(--brand-grad);
    border-color: transparent;
    box-shadow: 0 5px 12px -5px rgba(160, 100, 20, .85), inset 0 1px 0 rgba(255, 255, 255, .40);
}
input[type="checkbox"]:checked::after,
.chk:checked::after {
    content: '';
    position: absolute;
    left: 5.5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(42deg);
}
input[type="checkbox"]:focus-visible,
.chk:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(217, 131, 36, .22);
}

input[type="radio"] { border-radius: 50%; }
input[type="radio"]:checked {
    background: var(--brand-grad);
    border-color: transparent;
    box-shadow: 0 4px 10px -4px rgba(160, 100, 20, .8), inset 0 1px 0 rgba(255, 255, 255, .38);
}
input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    inset: 4.5px;
    border-radius: 50%;
    background: #fff;
}

/* 登录页：背景提亮，避免整片死黑 */
.login-wrap {
    background:
        radial-gradient(1000px 520px at 6% -8%, rgba(217, 131, 36, .42), transparent 62%),
        radial-gradient(860px 460px at 96% 106%, rgba(196, 118, 26, .38), transparent 60%),
        linear-gradient(150deg, #3E2C1C 0%, #2A1E14 54%, #1E1510 100%);
}
.login-box { width: 404px; padding: 40px 36px 32px; }
.login-box .input { height: 42px; border-radius: 10px; font-size: var(--fs-14); }
.login-box .btn-primary { height: 42px; border-radius: 10px; font-size: var(--fs-14); letter-spacing: .08em; }
.login-box h1 { font-size: var(--fs-20); }
.login-tip { padding: 11px 13px; line-height: 1.7; }

/* 分页 */
.pager button {
    height: 30px;
    padding: 0 13px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #FFFFFF 0%, #FBF7F0 100%);
    color: var(--text);
    font-size: var(--fs-12);
    box-shadow: 0 1px 2px rgba(62, 44, 28, .045), inset 0 1px 0 rgba(255, 255, 255, .9);
    transition: all .15s var(--ease);
}
.pager button:hover:not(:disabled) {
    border-color: #E4D8C4;
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF6EA 100%);
    transform: translateY(-1px);
    box-shadow: var(--sh-2);
}
.pager button:disabled {
    color: var(--muted);
    background: #F6F1E7;
    box-shadow: none;
    opacity: 1;
}
.pager .page-now, .pager .pager-info { font-size: var(--fs-12); color: var(--text-2); }

/* 表格行高微调，密而不挤 */
.table td { padding: 10px 14px; }
.table th { padding: 10px 14px; }

/* V36.2：表单说明文字独占整行，不再把并排字段撑出高低差 */
.form-tip-row {
    margin: -6px 0 16px;
    padding: 8px 11px;
    border-radius: var(--radius-sm);
    background: #FBF7F0;
    color: var(--text-2);
    font-size: var(--fs-12);
    line-height: 1.6;
    border-left: 2px solid var(--border);
}
.form-row { display: flex;
    gap: 12px; }
.form-row > .form-item { flex: 1 1 0; min-width: 0; }

/* ============================================================
   V36.3 · 漏打卡自动扣分开关条（打卡管理四页共用）
   ============================================================ */
.auto-deduct-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
    border-radius: var(--r-md);
    background: linear-gradient(180deg, #FBF7F0, #F7F0E3);
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.auto-deduct-bar.on {
    background: linear-gradient(180deg, #FEF7E8, #FCEDD4);
    border-color: #F0DEC0;
}
.ad-dot {
    width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
    background: #C6BAA9;
    box-shadow: 0 0 0 3px rgba(198, 186, 169, .22);
    transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.auto-deduct-bar.on .ad-dot {
    background: var(--brand);
    box-shadow: 0 0 0 3px rgba(217, 131, 36, .20), 0 0 10px rgba(217, 131, 36, .45);
}
.ad-text { flex: 1 1 auto; min-width: 0; }
.ad-text b {
    display: block; font-size: var(--fs-13); font-weight: 700; color: var(--text);
}
.ad-text span {
    display: block; font-size: var(--fs-12); color: var(--text-2);
    margin-top: 2px; line-height: 1.6;
}

/* 拨动开关：轨道内凹、滑块带高光，不借用原生 checkbox */
.ad-switch { position: relative; width: 44px; height: 25px; flex: 0 0 auto; cursor: pointer; }
.ad-switch input[type="checkbox"] {
    position: absolute; inset: 0; width: 100%; height: 100%;
    opacity: 0; margin: 0; border: none; box-shadow: none; cursor: pointer; z-index: 1;
}
.ad-switch i {
    position: absolute; inset: 0; border-radius: 999px;
    background: #E4D9C8;
    box-shadow: inset 0 1px 3px rgba(62, 44, 28, .20);
    transition: background .22s var(--ease), box-shadow .22s var(--ease);
}
.ad-switch i::after {
    content: ''; position: absolute; left: 3px; top: 3px;
    width: 19px; height: 19px; border-radius: 50%;
    background: linear-gradient(180deg, #FFFFFF, #FBF7F0);
    box-shadow: 0 2px 5px rgba(62, 44, 28, .28), inset 0 1px 0 #fff;
    transition: transform .22s var(--ease);
}
.ad-switch input:checked + i {
    background: linear-gradient(140deg, #D98324, #A8620C);
    box-shadow: inset 0 1px 3px rgba(90, 55, 5, .28);
}
.ad-switch input:checked + i::after { transform: translateX(19px); }
.ad-switch input:disabled + i { opacity: .5; }
.ad-switch.disabled, .ad-switch.disabled input { cursor: not-allowed; }

/* V36.4：四类自动扣分拆成独立小开关，一行排开 */
.ad-switches {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    flex-wrap: wrap;
}
.ad-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px 0 7px;
    border-radius: 999px;
    background: #FFFFFF;
    border: 1px solid var(--border);
    box-shadow: 0 1px 2px rgba(62, 44, 28, .05), inset 0 1px 0 rgba(255, 255, 255, .9);
    cursor: pointer;
    transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease);
}
.ad-item:hover { border-color: #E0D2BC; }
.ad-item.on {
    background: linear-gradient(180deg, #FFF7E8, #FDEFD8);
    border-color: #EFD4A6;
    box-shadow: 0 4px 12px -6px rgba(168, 98, 12, .55), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.ad-item em {
    font-style: normal;
    font-size: var(--fs-12);
    font-weight: 650;
    color: var(--text-2);
    line-height: 1;
}
.ad-item.on em { color: var(--brand-deep); }
.ad-item.locked { cursor: not-allowed; opacity: .6; }

.ad-item input[type="checkbox"] {
    position: absolute;
    width: 1px; height: 1px;
    opacity: 0;
    margin: 0; border: none; box-shadow: none;
    pointer-events: none;
}
.ad-item i {
    position: relative;
    width: 30px; height: 17px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #E4D9C8;
    box-shadow: inset 0 1px 2px rgba(62, 44, 28, .22);
    transition: background .2s var(--ease);
}
.ad-item i::after {
    content: '';
    position: absolute;
    left: 2px; top: 2px;
    width: 13px; height: 13px;
    border-radius: 50%;
    background: linear-gradient(180deg, #FFFFFF, #FBF7F0);
    box-shadow: 0 1px 3px rgba(62, 44, 28, .3);
    transition: transform .2s var(--ease);
}
.ad-item input:checked + i {
    background: linear-gradient(140deg, #D98324, #A8620C);
    box-shadow: inset 0 1px 2px rgba(90, 55, 5, .3);
}
.ad-item input:checked + i::after { transform: translateX(13px); }

/* ============================================================
   V40 · 最终排版统一层
   作用：把 V10→V39 多层覆盖后仍不一致的「同类元素」定死在同一套值上。
   只做收口，不改任何页面结构与交互；要回退只删本段。
   ------------------------------------------------------------
   1) 说明文字统一 12px —— 之前 .hint 在 12/13/14 三档之间跳
   2) 表格表头与单元格左右内距必须相同，否则列文字会错 2px
   3) 筛选栏里按钮与输入框等高，避免顶边差 3px 的错觉
   4) 表格内容统一垂直居中，标签/按钮/文字在同一水平线
   ============================================================ */

/* 1) 说明文字：与 .tip / .card-head .hint 同档 */
.hint,
.hint * {
    font-size: 12px;
    line-height: 1.6;
    color: var(--muted);
}

.hint b,
.hint strong { color: var(--text-2); font-weight: 650; }

/* 2) 表头 / 单元格同一内距（左右 14px，上下各自留白） */
.table th { padding-left: 14px; padding-right: 14px; }
.table td { padding-left: 14px; padding-right: 14px; }

/* 3) 筛选栏控件等高：输入框 36px，按钮取 32px 并垂直居中 */
.filter-bar,
.v9-filter {
    align-items: center;
}

.filter-bar .btn-sm,
.v9-filter .btn-sm {
    height: 32px;
    padding: 0 14px;
}

/* 4) 单元格内元素一律垂直居中 */
.table td,
.mod-table td { vertical-align: middle; }

/* 5) 分段控件（本周/本月/本季/累计）文字与选中底同高，不再靠 normal 行高撑 */
.v9-seg button,
.segmented button {
    height: 32px;
    line-height: 32px;
    padding-top: 0;
    padding-bottom: 0;
}

/* ============================================================
   V41 · 按钮文字居中兜底
   后台的 .btn / .v9-btn 已经是 inline-flex 居中，但次级按钮
   （.btn-sm、分页、表格操作列、分段控件）只有定高没有 flex。
   元素是 <button> 时浏览器会自动垂直居中，换成 <a> 或 <span>
   就会贴顶——同一个类两种表现，是排版不一致的隐性来源。
   这里把两种元素都钉死成居中。
   ------------------------------------------------------------
   1) 定高按钮：flex 居中 + 行高 1（行高不再参与垂直定位）
   2) padding 撑开的控件：只加居中，不动行高，避免高度变化
   ============================================================ */

.btn-sm,
.v9-btn-sm,
.table .btn-link,
.pager button,
.pager .btn,
.filter-bar .btn-sm,
.v9-filter .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-sizing: border-box;
}

.rp-tabs button,
.v9-seg button,
.segmented button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* ==================== V50 快捷回看横条（最近访问） ==================== */
/* 追加在文件末尾的视觉覆盖层，改坏只需删掉这一段 */
.recap-bar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 7px 24px;
    background: rgba(255, 253, 249, .92);
    -webkit-backdrop-filter: blur(10px);   /* V51：Safari / 旧版 Chromium 需要前缀 */
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(62, 44, 28, .07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), 0 3px 12px rgba(62, 44, 28, .035);
    position: relative;
    z-index: 1;
    min-height: 0;
    overflow: hidden;
}
.recap-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 650;
    color: var(--muted);
    letter-spacing: .3px;
}
.recap-clock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 7px;
    font-size: 12px;
    color: #A8620C;
    background: linear-gradient(140deg, rgba(217, 131, 36, .16), rgba(168, 98, 12, .10));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6);
}
.recap-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;           /* Firefox */
}
.recap-list::-webkit-scrollbar { display: none; }
.recap-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    height: 30px;
    padding: 0 13px;
    border: 1px solid rgba(62, 44, 28, .10);
    border-radius: 15px;
    background: linear-gradient(180deg, #FFFFFF, #FFFDF9);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 560;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(62, 44, 28, .06), inset 0 1px 0 rgba(255, 255, 255, .8);
    transition: all .15s ease;
    white-space: nowrap;
}
.recap-chip:hover {
    border-color: rgba(168, 98, 12, .45);
    color: #A8620C;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(168, 98, 12, .14), inset 0 1px 0 rgba(255, 255, 255, .8);
}
.recap-chip:disabled { cursor: default; transform: none; }
.recap-chip:disabled:hover { border-color: transparent; }
.recap-chip.active {
    background: linear-gradient(140deg, #D98324, #A8620C);
    border-color: transparent;
    color: #FFF6E8;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(168, 98, 12, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.recap-idx {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    background: rgba(62, 44, 28, .07);
    color: var(--muted);
}
.recap-chip.active .recap-idx {
    background: rgba(255, 255, 255, .26);
    color: #FFF6E8;
}
.recap-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
/* V51：常驻横条的空态引导与清除后撤销 */
.recap-empty {
    flex: 1;
    min-width: 0;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recap-undo {
    margin-left: 8px;
    height: 24px;
    padding: 0 10px;
    border: 1px solid rgba(168, 98, 12, .35);
    border-radius: 12px;
    background: #FFF7EC;
    color: #A8620C;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
}
.recap-undo:hover { background: #FBE9CF; border-color: #A8620C; }
.recap-hint { font-size: 11px; color: var(--muted); }
.recap-clear {
    border: none;
    background: none;
    padding: 2px 4px;
    font-size: 12px;
    color: var(--muted);
    cursor: pointer;
    line-height: 1.4;
}
.recap-clear:hover { color: var(--danger); text-decoration: underline; }
/* 横条在超窄窗口下隐藏标签文字，保住胶囊空间 */
@media (max-width: 900px) {
    .recap-label .recap-clock { display: none; }
    .recap-label { font-size: 0; gap: 0; }
}

/* ==================== V53 菜单管理（开发管理员可编辑） ==================== */
/* 追加在文件末尾的视觉覆盖层，改坏只需删掉这一段 */
.dev-chip {
    display: inline-flex; align-items: center; gap: 4px;
    margin-left: 6px; padding: 1px 8px; border-radius: 999px;
    background: linear-gradient(140deg, #FBE9CF, #F6DCB8);
    border: 1px solid rgba(168, 98, 12, .22);
    color: #A8620C; font-size: 11px; font-weight: 700;
    vertical-align: 2px; letter-spacing: .02em;
}
.dev-chip.tiny { padding: 0 6px; font-size: 10px; line-height: 16px; vertical-align: 1px; }
.ro-banner.dev {
    background: linear-gradient(180deg, #FEF8EC, #FCF2E0);
    border-color: #F1E1C6;
    color: #6B5F51;
}
.ro-banner.dev .ro-ico { color: #A8620C; font-size: 16px; }

.menu-icon-now { display: flex; align-items: center; gap: 8px; }
.menu-icon-now .input { flex: 1; min-width: 0; }
.menu-icon-preview {
    flex: 0 0 auto;
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px;
    background: linear-gradient(180deg, #FFFFFF, #FFFDF9);
    border: 1px solid rgba(62, 44, 28, .12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 1px 3px rgba(62, 44, 28, .06);
    font-size: 19px; line-height: 1; color: #A8620C;
}
.icon-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 6px;
    max-height: 178px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(62, 44, 28, .10);
    border-radius: 12px;
    background: #FFFDF9;
    box-shadow: inset 0 1px 3px rgba(62, 44, 28, .05);
}
.icon-cell {
    height: 32px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(62, 44, 28, .10);
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--text);
    font-size: 16px; line-height: 1;
    cursor: pointer;
    transition: all .14s ease;
}
.icon-cell:hover {
    border-color: rgba(168, 98, 12, .45);
    background: #FFF7EC;
    transform: translateY(-1px);
}
.icon-cell.on {
    background: linear-gradient(140deg, #D98324, #A8620C);
    border-color: transparent;
    color: #FFF6E8;
    box-shadow: 0 2px 6px rgba(168, 98, 12, .30), inset 0 1px 0 rgba(255, 255, 255, .25);
}

/* ============================================================
   V44 三级菜单（issue #247）
   约定：覆盖层只追加在文件末尾，不回头改上面的规则。
   侧边栏支持「一级分组 > 二级分组 > 三级页面」三层嵌套；
   层级间靠缩进 + 字号 + 引导线区分，不再靠颜色堆砌。
   ============================================================ */

/* ---- 侧边栏：二级分组（如「内容与知识 > 门店SOP」） ---- */
.nav-group-lv2 {
    margin: 4px 10px 2px;
    padding: 6px 10px 6px 20px;
    font-size: 11.5px;
    font-weight: 650;
    letter-spacing: .06em;
    color: rgba(255, 255, 255, .52);
    border-radius: var(--radius-sm);
}
.nav-group-lv2:hover { background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .86); }
.nav-group-lv2 .ico { opacity: .85; font-size: 12px; }
.nav-group-lv2 .caret { opacity: .4; }

/* ---- 侧边栏：三级页面入口 ---- */
.nav-sub-lv3 {
    padding-left: 34px;
    font-size: 12.5px;
    color: rgba(255, 255, 255, .68);
}
.nav-sub-lv3 .ico { width: 16px; margin-right: 6px; font-size: 12px; opacity: .85; }
.nav-sub-lv3:hover { color: #fff; }
.nav-sub-lv3.active { font-weight: 620; }

/* 三级入口左侧的竖向导引线，让层级关系一眼可辨 */
.nav-sub-lv3::before {
    content: "";
    position: absolute;
    left: 24px; top: 50%;
    width: 5px; height: 1px;
    background: rgba(255, 255, 255, .22);
}
.nav-sub-lv3 { position: relative; }

/* ---- 菜单管理页：第三层行 ---- */
.tree-lv3 .tree-label { font-weight: 500; color: var(--text-2); }
.tree-lv3 .ico-inline { opacity: .82; font-size: 12px; }
.tree-lv3 > td { background: #FFFDF9; }
.tree-lv3:hover > td { background: #F6FBF9; }
.tree-guide.guide-lv3 { color: #BCD0CA; opacity: .75; }

/* 窄屏（≤900px）侧边栏收成图标条：隐藏三级缩进与导引线，避免挤在一起 */
@media (max-width: 900px) {
    .nav-group-lv2 { padding: 7px 0; margin: 8px 9px 3px; font-size: 0; color: transparent; }
    .nav-group-lv2 .ico { font-size: var(--fs-14); color: rgba(255, 255, 255, .44); }
    .nav-sub-lv3 { padding-left: 0; }
    .nav-sub-lv3::before { display: none; }
}

/* ---- V67 菜单管理：同级拖拽排序 ---- */
.menu-drag-handle {
    flex: 0 0 auto;
    width: 19px; height: 22px;
    margin-right: 2px;
    border-radius: 5px;
    cursor: grab;
    color: #CBBFAF;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    user-select: none;
    /* 用六点阵的字形写手柄，避免引入图标资源 */
    position: relative;
}
.menu-drag-handle::before { content: '⠿'; }
.menu-drag-handle:hover { background: #FFF3E0; color: var(--brand-deep); }
.menu-drag-handle:active { cursor: grabbing; }
.menu-drag-handle.dragging { background: #FFE9CC; color: var(--brand-deep); }

/* 拖起的那行整体变淡，明确「正在搬动的是它」 */
.tree-table tr.drag-src > td { opacity: .42; }

/* 悬停目标行画插入线：用 td 的伪元素画，不改变行高，拖动过程不抖动 */
.tree-table tr.drag-over-top > td,
.tree-table tr.drag-over-bottom > td { position: relative; }
.tree-table tr.drag-over-top > td::after,
.tree-table tr.drag-over-bottom > td::after {
    content: '';
    position: absolute;
    left: 8px; right: 8px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    box-shadow: 0 0 0 2px rgba(217, 131, 36, .16);
}
.tree-table tr.drag-over-top > td::after { top: -1px; }
.tree-table tr.drag-over-bottom > td::after { bottom: -1px; }

/* 提示里的手柄字形，跟行内手柄保持一样的观感 */
.tip-grip { color: var(--brand); font-weight: 700; }

/* 跨层级悬停：整行描红 + 禁止光标，明确「这一层放不下」 */
.tree-table tr.drag-invalid > td {
    background: #FDECEC !important;
    cursor: no-drop;
}
.tree-table tr.drag-invalid > td:first-child { box-shadow: inset 3px 0 0 #D9534F; }

/* ---------- V68：孤立菜单标记 ---------- */
/* 上级菜单被删掉的菜单会落到列表末尾。原来它和正常页面长得一模一样， */
/* 用户只看到「它怎么跑到别的分组后面了」，不知道是数据缺了父级。 */
.tree-orphan-tag {
    margin-left: 8px;
    padding: 1px 7px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 16px;
    color: #A8620C;
    background: #FBEEDA;
    border: 1px solid #EFD3A8;
    white-space: nowrap;
    cursor: help;
}

/* ---------- V87.1：成本卡弹窗原料行对齐 ---------- */
/* 原来用 .form-row（flex），5 个元素在窄弹窗里挤不下，「删」会掉到第二行。
   改固定列宽 grid：原料 / 用量 / 计价 / 单价 / 删，末列固定 46px，严格对齐。 */
.cost-mat-row {
    display: grid !important;
    grid-template-columns: 1.6fr 1fr 1.1fr 1fr 46px;
    gap: 12px;
    align-items: end;
}
.cost-mat-row > .form-item { margin-bottom: 0; min-width: 0; }
.cost-mat-row > .form-item .input,
.cost-mat-row > .form-item .select { width: 100%; }
.cost-mat-row > .cost-mat-del { margin-bottom: 0; height: 36px; padding: 0 8px; }
