/* =========================================================
   解家河南菜 · OA 后台样式
   依赖 base.css（品牌变量与按钮）
   ========================================================= */

.oa-body {
    background: #F4EFE4;
    color: var(--xj-text);
    font-size: 14px;
}

.oa-shell {
    min-height: 100vh;
}

/* ---------------- 侧边栏 ---------------- */
.oa-side {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 244px;
    background: var(--xj-ink);
    color: rgba(245, 237, 221, 0.7);
    display: flex;
    flex-direction: column;
    z-index: 60;
    transition: transform 0.35s var(--ease);
}

.oa-side::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        repeating-linear-gradient(90deg, rgba(255, 246, 232, 0.035) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(0deg, rgba(255, 246, 232, 0.035) 0 1px, transparent 1px 20px);
    opacity: 0.7;
}

.oa-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 24px 22px 22px;
    border-bottom: 1px solid rgba(245, 237, 221, 0.09);
}

.oa-brand .seal {
    width: 38px;
    height: 38px;
    font-size: 20px;
}

.oa-brand strong {
    display: block;
    font-family: var(--xj-serif);
    font-size: 16px;
    letter-spacing: 0.14em;
    color: #F5EDDD;
    font-weight: 600;
    line-height: 1.3;
}

.oa-brand em {
    font-style: normal;
    font-size: 8.5px;
    letter-spacing: 0.18em;
    color: rgba(245, 237, 221, 0.35);
}

.side-nav {
    position: relative;
    z-index: 2;
    flex: 1;
    overflow-y: auto;
    padding: 16px 12px 20px;
}

.side-nav::-webkit-scrollbar {
    width: 4px;
}

.side-nav::-webkit-scrollbar-thumb {
    background: rgba(245, 237, 221, 0.15);
}

.side-group {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    color: rgba(245, 237, 221, 0.3);
    padding: 18px 12px 8px;
    text-transform: uppercase;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: 3px;
    color: rgba(245, 237, 221, 0.68);
    font-size: 13.5px;
    letter-spacing: 0.04em;
    position: relative;
    transition: background 0.22s, color 0.22s;
}

.side-link i {
    font-family: var(--xj-serif);
    font-style: normal;
    width: 24px;
    height: 24px;
    border: 1px solid rgba(245, 237, 221, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    border-radius: 2px;
    transition: all 0.22s;
    flex: 0 0 auto;
}

.side-link:hover {
    background: rgba(245, 237, 221, 0.06);
    color: #F5EDDD;
}

.side-link.active {
    background: rgba(163, 43, 36, 0.9);
    color: #FFF6E8;
    box-shadow: 0 6px 18px rgba(124, 29, 24, 0.28);
}

.side-link.active i {
    border-color: rgba(255, 246, 232, 0.45);
    background: rgba(255, 246, 232, 0.1);
}

.side-link .num {
    margin-left: auto;
    font-size: 11px;
    background: var(--xj-gold);
    color: #2A241C;
    border-radius: 20px;
    padding: 1px 7px;
    font-weight: 600;
    line-height: 1.6;
}

.oa-side-user {
    position: relative;
    z-index: 2;
    padding: 16px 18px 18px;
    border-top: 1px solid rgba(245, 237, 221, 0.09);
}

.oa-side-user .who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFF6E8;
    font-size: 12.5px;
    font-family: var(--xj-serif);
    letter-spacing: 0;
    flex: 0 0 auto;
}

.oa-side-user .who strong {
    display: block;
    color: #F5EDDD;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
}

.oa-side-user .who span {
    font-size: 11px;
    color: rgba(245, 237, 221, 0.4);
}

.oa-side-user .links {
    display: flex;
    gap: 14px;
    font-size: 11.5px;
    color: rgba(245, 237, 221, 0.45);
}

.oa-side-user .links a:hover {
    color: var(--xj-gold-soft);
}

/* ---------------- 主区 ---------------- */
.oa-main {
    margin-left: 244px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.oa-top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 253, 247, 0.94);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--xj-line-soft);
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    gap: 16px;
}

.oa-top-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.oa-top h1 {
    font-size: 18px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.oa-crumb {
    font-size: 11.5px;
    color: var(--xj-muted);
    letter-spacing: 0.06em;
}

.oa-top-right {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12.5px;
    color: var(--xj-muted);
}

.oa-top-right .clock {
    font-family: var(--xj-serif);
    font-size: 14px;
    color: var(--xj-ink);
    letter-spacing: 0.06em;
}

.oa-content {
    padding: 26px 28px 64px;
    flex: 1;
}

.oa-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border: 1px solid var(--xj-line);
    border-radius: 2px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
}

.oa-menu-btn span {
    width: 15px;
    height: 1.5px;
    background: var(--xj-ink);
}

/* ---------------- 卡片 ---------------- */
.card {
    background: #FFFDF7;
    border: 1px solid var(--xj-line-soft);
    border-radius: 3px;
    overflow: hidden;
}

.card + .card {
    margin-top: 20px;
}

.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--xj-line-soft);
}

.card-head h2 {
    font-size: 15.5px;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 9px;
}

.card-head h2::before {
    content: "";
    width: 3px;
    height: 14px;
    background: var(--xj-red);
    display: inline-block;
}

.card-head .sub {
    font-size: 12px;
    color: var(--xj-muted);
    font-weight: 400;
    font-family: var(--xj-sans);
    letter-spacing: 0.02em;
}

.card-body {
    padding: 20px;
}

.card-body.tight {
    padding: 0;
}

.card-foot {
    padding: 14px 20px;
    border-top: 1px solid var(--xj-line-soft);
    background: #FCF8F0;
    text-align: right;
}

/* ---------------- KPI ---------------- */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.kpi {
    background: #FFFDF7;
    border: 1px solid var(--xj-line-soft);
    padding: 20px 20px 18px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s var(--ease), box-shadow 0.3s;
}

.kpi:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(40, 30, 18, 0.07);
}

.kpi .k-label {
    font-size: 12px;
    color: var(--xj-muted);
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.kpi .k-val {
    font-family: var(--xj-serif);
    font-size: 30px;
    color: var(--xj-ink);
    line-height: 1.2;
    margin-top: 10px;
    letter-spacing: 0.02em;
}

.kpi .k-val small {
    font-size: 12px;
    color: var(--xj-muted);
    margin-left: 4px;
    font-family: var(--xj-sans);
}

.kpi .k-foot {
    font-size: 11.5px;
    color: rgba(124, 114, 100, 0.85);
    margin-top: 6px;
}

.kpi::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 42px;
    height: 42px;
    border-top: 2px solid rgba(198, 160, 92, 0.3);
    border-right: 2px solid rgba(198, 160, 92, 0.3);
}

.kpi.accent .k-val {
    color: var(--xj-red);
}

/* ---------------- 打卡卡 ---------------- */
.checkin-card {
    background: var(--xj-ink);
    color: rgba(245, 237, 221, 0.72);
    border-radius: 3px;
    padding: 26px 28px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 26px;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.checkin-card::after {
    content: "解";
    position: absolute;
    right: 26px;
    bottom: -34px;
    font-family: var(--xj-serif);
    font-size: 170px;
    color: rgba(245, 237, 221, 0.04);
    line-height: 1;
}

.checkin-left {
    position: relative;
    z-index: 2;
}

.checkin-left .date {
    font-size: 12px;
    letter-spacing: 0.16em;
    color: var(--xj-gold);
}

.checkin-left .time {
    font-family: var(--xj-serif);
    font-size: 46px;
    color: #FBF6EA;
    line-height: 1.15;
    letter-spacing: 0.04em;
    margin: 6px 0 4px;
}

.checkin-left .hint-line {
    font-size: 12.5px;
    color: rgba(245, 237, 221, 0.5);
}

.checkin-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.punch-box {
    border: 1px solid rgba(245, 237, 221, 0.18);
    padding: 12px 18px;
    min-width: 118px;
}

.punch-box span {
    display: block;
    font-size: 11px;
    letter-spacing: 0.14em;
    color: rgba(245, 237, 221, 0.45);
}

.punch-box b {
    font-family: var(--xj-serif);
    font-size: 21px;
    color: #FBF6EA;
    font-weight: 500;
}

.btn-punch {
    background: var(--xj-red);
    color: #FFF6E8;
    padding: 14px 30px;
    font-size: 14px;
    letter-spacing: 0.16em;
    border-radius: 2px;
    transition: all 0.28s var(--ease);
    box-shadow: 0 8px 22px rgba(124, 29, 24, 0.35);
}

.btn-punch:hover {
    background: var(--xj-red-soft);
    transform: translateY(-1px);
}

.btn-punch:disabled,
.btn-punch.is-done {
    background: rgba(245, 237, 221, 0.1);
    color: rgba(245, 237, 221, 0.5);
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

/* ---------------- 两栏 ---------------- */
.grid-2 {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    align-items: start;
}

.grid-2-even {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: start;
}

/* ---------------- 表格 ---------------- */
.table-wrap {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.table th {
    text-align: left;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--xj-muted);
    background: #FAF5EB;
    padding: 11px 14px;
    border-bottom: 1px solid var(--xj-line-soft);
    white-space: nowrap;
}

.table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--xj-line-soft);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: rgba(198, 160, 92, 0.055);
}

.table tbody tr:last-child td {
    border-bottom: 0;
}

.table .u-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.table .u-cell strong {
    font-weight: 500;
    display: block;
    line-height: 1.4;
}

.table .u-cell span {
    font-size: 11.5px;
    color: var(--xj-muted);
}

.table .num {
    font-family: var(--xj-serif);
    letter-spacing: 0.02em;
}

.td-actions {
    display: flex;
    align-items: baseline;
    gap: 12px;
    white-space: nowrap;
    font-size: 12.5px;
    line-height: 1.6;
}

.td-actions a,
.td-actions button {
    color: var(--xj-red);
    padding: 0;
    font-size: 12.5px;
}

.td-actions a:hover,
.td-actions button:hover {
    text-decoration: underline;
}

.td-actions .muted {
    color: var(--xj-muted);
}

.td-actions .danger {
    color: #B23A2E;
}

/* ---------------- 徽标 ---------------- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
    background: rgba(38, 30, 20, 0.06);
    color: var(--xj-muted);
}

.badge-green {
    background: rgba(47, 107, 79, 0.1);
    color: #2C6249;
}

.badge-red {
    background: rgba(163, 43, 36, 0.1);
    color: var(--xj-red-dark);
}

.badge-amber {
    background: rgba(180, 128, 42, 0.13);
    color: #8A6120;
}

.badge-gold {
    background: rgba(198, 160, 92, 0.16);
    color: #7E5F27;
}

.badge-ink {
    background: rgba(22, 19, 16, 0.9);
    color: #F5EDDD;
}

/* ---------------- 工具条 ---------------- */
.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filters {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters .input,
.filters .select {
    width: auto;
    min-width: 130px;
    padding: 8px 12px;
    font-size: 13px;
    background: #FFFDF7;
}

.filters .search {
    min-width: 200px;
}

.tabs-line {
    display: flex;
    gap: 26px;
    border-bottom: 1px solid var(--xj-line-soft);
    margin-bottom: 20px;
    overflow-x: auto;
}

.tabs-line a {
    padding: 12px 2px;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    color: var(--xj-muted);
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.tabs-line a.active {
    color: var(--xj-red);
    border-bottom-color: var(--xj-red);
}

.tabs-line a .num {
    font-size: 11px;
    background: rgba(163, 43, 36, 0.1);
    color: var(--xj-red);
    padding: 1px 6px;
    border-radius: 10px;
    margin-left: 5px;
}

/* ---------------- 表单 ---------------- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.form-grid .field-full {
    grid-column: 1 / -1;
}

.field label .req {
    color: var(--xj-red);
}

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

/* ---------------- 公告 / 列表 ---------------- */
.notice-list li {
    padding: 14px 0;
    border-bottom: 1px dashed var(--xj-line-soft);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.notice-list li:last-child {
    border-bottom: 0;
}

.notice-list .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--xj-gold);
    margin-top: 9px;
    flex: 0 0 auto;
}

.notice-list .n-title {
    font-size: 13.5px;
    color: var(--xj-text);
    display: block;
    line-height: 1.6;
}

.notice-list a.n-title:hover {
    color: var(--xj-red);
}

.notice-list .n-meta {
    font-size: 11.5px;
    color: var(--xj-muted);
    margin-top: 3px;
}

.empty {
    padding: 46px 20px;
    text-align: center;
    color: var(--xj-muted);
    font-size: 13px;
}

.empty .big {
    font-family: var(--xj-serif);
    font-size: 30px;
    color: rgba(198, 160, 92, 0.5);
    display: block;
    margin-bottom: 10px;
}

/* ---------------- 周历 ---------------- */
.week-strip {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.wday {
    border: 1px solid var(--xj-line-soft);
    padding: 12px 6px;
    text-align: center;
    border-radius: 2px;
    background: #FFFDF7;
}

.wday span {
    display: block;
    font-size: 11px;
    color: var(--xj-muted);
}

.wday b {
    display: block;
    font-family: var(--xj-serif);
    font-size: 16px;
    color: var(--xj-ink);
    margin: 4px 0 6px;
    font-weight: 500;
}

.wday i {
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(38, 30, 20, 0.15);
    margin: 0 auto;
}

.wday.ok i {
    background: #3C7A5C;
}

.wday.late i {
    background: #B4802A;
}

.wday.leave i {
    background: var(--xj-red);
}

.wday.today {
    border-color: rgba(163, 43, 36, 0.4);
    box-shadow: inset 0 0 0 1px rgba(163, 43, 36, 0.12);
}

.wday.weekend {
    background: #FBF6EC;
}

/* ---------------- 快捷入口 ---------------- */
.quick-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.quick-item {
    border: 1px solid var(--xj-line-soft);
    padding: 16px 12px;
    text-align: center;
    border-radius: 2px;
    transition: all 0.25s var(--ease);
    background: #FFFDF7;
}

.quick-item i {
    font-family: var(--xj-serif);
    font-style: normal;
    display: flex;
    width: 34px;
    height: 34px;
    margin: 0 auto 8px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(163, 43, 36, 0.2);
    color: var(--xj-red);
    border-radius: 50%;
    font-size: 14px;
}

.quick-item span {
    font-size: 12.5px;
    color: var(--xj-text);
    letter-spacing: 0.04em;
}

.quick-item:hover {
    border-color: rgba(163, 43, 36, 0.3);
    background: rgba(163, 43, 36, 0.03);
    transform: translateY(-2px);
}

/* ---------------- 分页 ---------------- */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    border-top: 1px solid var(--xj-line-soft);
    font-size: 12.5px;
    color: var(--xj-muted);
    flex-wrap: wrap;
}

.pager-links {
    display: flex;
    gap: 6px;
}

.pager-links a,
.pager-links span {
    min-width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--xj-line-soft);
    border-radius: 2px;
    padding: 0 8px;
    background: #FFFDF7;
    color: var(--xj-text);
}

.pager-links a:hover {
    border-color: rgba(163, 43, 36, 0.4);
    color: var(--xj-red);
}

.pager-links .current {
    background: var(--xj-red);
    border-color: var(--xj-red);
    color: #FFF6E8;
}

.pager-links .disabled {
    color: rgba(124, 114, 100, 0.4);
}

/* ---------------- 弹层 ---------------- */
.modal-mask {
    position: fixed;
    inset: 0;
    background: rgba(20, 15, 10, 0.5);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-mask.is-open {
    display: flex;
}

.modal {
    background: #FFFDF7;
    width: 100%;
    max-width: 520px;
    border-radius: 3px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-head {
    padding: 18px 22px;
    border-bottom: 1px solid var(--xj-line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-head h3 {
    font-size: 16px;
    letter-spacing: 0.06em;
}

.modal-head .close {
    font-size: 20px;
    color: var(--xj-muted);
    line-height: 1;
}

.modal-body {
    padding: 22px;
}

.modal-foot {
    padding: 16px 22px;
    border-top: 1px solid var(--xj-line-soft);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* ---------------- 登录页 ---------------- */
.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    background: var(--xj-ink);
}

.login-visual {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px 54px;
    color: rgba(245, 237, 221, 0.75);
}

.login-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
}

.login-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(160deg, rgba(10, 8, 6, 0.92) 0%, rgba(10, 8, 6, 0.55) 45%, rgba(10, 8, 6, 0.88) 100%),
        radial-gradient(120% 80% at 0% 80%, rgba(10, 8, 6, 0.75), transparent 70%);
}

.login-visual > * {
    position: relative;
    z-index: 2;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 13px;
}

.login-logo .seal {
    width: 46px;
    height: 46px;
    font-size: 24px;
}

.login-logo strong {
    display: block;
    font-family: var(--xj-serif);
    font-size: 20px;
    letter-spacing: 0.18em;
    color: #FBF6EA;
    font-weight: 600;
}

.login-logo em {
    font-style: normal;
    font-size: 9px;
    letter-spacing: 0.22em;
    color: rgba(245, 237, 221, 0.45);
}

.login-quote h2 {
    color: #FBF6EA;
    font-size: 40px;
    line-height: 1.4;
    letter-spacing: 0.1em;
    font-weight: 500;
}

.login-quote p {
    margin-top: 16px;
    font-size: 13.5px;
    color: rgba(245, 237, 221, 0.75);
    letter-spacing: 0.06em;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.login-quote h2 {
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.login-visual .foot {
    font-size: 11.5px;
    color: rgba(245, 237, 221, 0.35);
    letter-spacing: 0.08em;
}

.login-panel {
    background: var(--xj-paper);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.login-box {
    width: 100%;
    max-width: 380px;
}

.login-box .kicker {
    font-size: 11px;
    letter-spacing: 0.3em;
    color: var(--xj-gold);
    display: block;
    margin-bottom: 12px;
}

.login-box h1 {
    font-size: 28px;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.login-box .desc {
    font-size: 12.5px;
    color: var(--xj-muted);
    margin-bottom: 32px;
    line-height: 1.9;
}

.login-box .field label {
    font-size: 12px;
}

.login-input {
    position: relative;
}

.login-input .input {
    padding: 13px 14px;
    background: #FFFDF7;
}

.login-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 24px;
    font-size: 12px;
    color: var(--xj-muted);
}

.login-extra label {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    cursor: pointer;
}

.login-extra input[type="checkbox"] {
    accent-color: var(--xj-red);
    width: 14px;
    height: 14px;
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: var(--xj-red);
    color: #FFF6E8;
    font-size: 14.5px;
    letter-spacing: 0.2em;
    border-radius: 2px;
    transition: all 0.28s var(--ease);
    box-shadow: 0 10px 26px rgba(124, 29, 24, 0.22);
}

.login-btn:hover {
    background: var(--xj-red-dark);
    transform: translateY(-1px);
}

.login-demo {
    margin-top: 28px;
    padding: 14px 16px;
    background: rgba(198, 160, 92, 0.1);
    border-left: 2px solid var(--xj-gold);
    font-size: 11.5px;
    color: #6A6153;
    line-height: 1.9;
}

.login-demo b {
    color: var(--xj-ink);
    font-weight: 500;
}

.login-back {
    display: block;
    text-align: center;
    margin-top: 26px;
    font-size: 12px;
    color: var(--xj-muted);
    letter-spacing: 0.08em;
}

.login-back:hover {
    color: var(--xj-red);
}

/* ---------------- 详情/统计 ---------------- */
.detail-list {
    display: grid;
    gap: 0;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--xj-line-soft);
    font-size: 13px;
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list span {
    color: var(--xj-muted);
}

.detail-list b {
    font-weight: 500;
    text-align: right;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 12.5px;
}

.bar-row .bar-label {
    width: 96px;
    color: var(--xj-muted);
    flex: 0 0 auto;
}

.bar-row .bar-track {
    flex: 1;
    height: 7px;
    background: rgba(38, 30, 20, 0.06);
    border-radius: 10px;
    overflow: hidden;
}

.bar-row .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--xj-red), #C4483F);
    border-radius: 10px;
    transition: width 0.8s var(--ease);
}

.bar-row .bar-val {
    width: 40px;
    text-align: right;
    font-family: var(--xj-serif);
    color: var(--xj-ink);
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2,
    .grid-2-even {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .oa-side {
        transform: translateX(-100%);
        box-shadow: 20px 0 60px rgba(0, 0, 0, 0.3);
    }
    .oa-side.is-open {
        transform: none;
    }
    .oa-main {
        margin-left: 0;
    }
    .oa-menu-btn {
        display: flex;
    }
    .oa-content {
        padding: 18px 16px 60px;
    }
    .oa-top {
        padding: 0 16px;
    }
    .checkin-card {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }
    .checkin-right {
        justify-content: flex-start;
    }
    .checkin-left .time {
        font-size: 38px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .login-page {
        grid-template-columns: 1fr;
    }
    .login-visual {
        display: none;
    }
    .login-panel {
        padding: 28px 22px;
        min-height: 100vh;
    }
    .quick-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .week-strip {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 560px) {
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .kpi {
        padding: 16px;
    }
    .kpi .k-val {
        font-size: 24px;
    }
    .oa-top-right .clock,
    .oa-crumb {
        display: none;
    }
    .table th,
    .table td {
        padding: 10px 10px;
        font-size: 12.5px;
    }
    .card-body {
        padding: 16px;
    }
}

/* ---------------- 公告折叠 ---------------- */
details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: "›";
    margin-left: 10px;
    color: var(--xj-muted);
    font-size: 17px;
    line-height: 1;
    transition: transform 0.25s var(--ease), color 0.25s;
    flex: 0 0 auto;
}

details[open] summary::after {
    transform: rotate(90deg);
    color: var(--xj-red);
}

details summary:hover::after {
    color: var(--xj-red);
}
