/* 广东省卫生健康委员会干部考核系统 - 后台样式 */
:root {
    --kh-primary: #1f4e79;
    --kh-primary-dark: #163a5c;
    --kh-primary-light: #2e6da4;
    --kh-accent: #c8a45c;
    --kh-bg: #f2f5f8;
    --kh-border: #e3e9f0;
    --kh-text: #26364a;
    --kh-muted: #7b8a9c;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--kh-bg); color: var(--kh-text); }
body { font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif; font-size: 14px; }
a { color: var(--kh-primary); text-decoration: none; }
.kh-layout { display: flex; min-height: 100vh; }

/* 侧栏 */
.kh-side { width: 236px; background: linear-gradient(180deg, #1c3d5e 0%, #142c45 100%); color: #dce6f0; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 10; }
.kh-brand { padding: 20px 18px 16px; border-bottom: 1px solid rgba(255,255,255,.08); }
.kh-brand .emblem { display: inline-block; width: 36px; height: 36px; border-radius: 50%; object-fit: contain; margin-right: 10px; vertical-align: middle; flex-shrink: 0; }
.kh-brand h1 { display: inline-block; font-size: 15px; margin: 0; line-height: 1.35; vertical-align: middle; color: #fff; font-weight: 600; }
.kh-brand p { margin: 8px 0 0; font-size: 11px; color: #8fa8c0; letter-spacing: .5px; }
.kh-nav { padding: 10px 0 40px; }
.kh-nav-group { margin-top: 6px; }
.kh-nav-group .group-title { padding: 10px 20px 6px; font-size: 11px; color: #7f9ab5; letter-spacing: 1px; }
.kh-nav-item { display: flex; align-items: center; padding: 9px 20px; color: #c8d7e6; font-size: 13px; transition: all .15s; border-left: 3px solid transparent; }
.kh-nav-item i { margin-right: 10px; font-size: 15px; opacity: .8; }
.kh-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.kh-nav-item.active { background: rgba(200,164,92,.12); color: #f1d79c; border-left-color: var(--kh-accent); }

/* 主区域 */
.kh-main { margin-left: 236px; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.kh-header { height: 60px; background: #fff; border-bottom: 1px solid var(--kh-border); display: flex; align-items: center; justify-content: space-between; padding: 0 24px; position: sticky; top: 0; z-index: 5; }
.kh-header .crumb { color: var(--kh-muted); font-size: 13px; }
.kh-header .crumb strong { color: var(--kh-text); font-weight: 600; }
.kh-header .user { display: flex; align-items: center; gap: 14px; font-size: 13px; }
.kh-year-badge { background: #eef3f8; border: 1px solid #d8e3ee; color: var(--kh-primary); border-radius: 4px; padding: 4px 10px; font-size: 12px; }
.kh-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--kh-primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; }
.kh-content { padding: 20px 24px 40px; flex: 1; }

/* 卡片 */
.kh-card { background: #fff; border: 1px solid var(--kh-border); border-radius: 6px; box-shadow: 0 1px 2px rgba(22,58,92,.04); }
.kh-card-head { padding: 14px 20px; border-bottom: 1px solid var(--kh-border); display: flex; justify-content: space-between; align-items: center; }
.kh-card-head h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--kh-text); }
.kh-card-head h3:before { content: ""; display: inline-block; width: 3px; height: 14px; background: var(--kh-accent); margin-right: 8px; vertical-align: middle; border-radius: 1px; }
.kh-card-body { padding: 20px; }

/* 统计 */
.kh-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); gap: 14px; margin-bottom: 18px; }
.kh-stat { background: #fff; border: 1px solid var(--kh-border); border-radius: 6px; padding: 18px; position: relative; overflow: hidden; }
.kh-stat:after { content: ""; position: absolute; right: -18px; bottom: -18px; width: 64px; height: 64px; border-radius: 50%; background: rgba(31,78,121,.06); }
.kh-stat .label { color: var(--kh-muted); font-size: 13px; }
.kh-stat .value { font-size: 28px; font-weight: 700; color: var(--kh-primary); margin-top: 8px; line-height: 1; }
.kh-stat .unit { font-size: 12px; color: var(--kh-muted); margin-left: 4px; font-weight: 400; }
.kh-stat .foot { margin-top: 8px; font-size: 12px; color: var(--kh-muted); }

/* 工作流 */
.kh-steps { display: flex; gap: 0; margin: 0 0 18px; background: #fff; border: 1px solid var(--kh-border); border-radius: 6px; overflow: hidden; }
.kh-step { flex: 1; padding: 14px 12px; text-align: center; border-right: 1px solid var(--kh-border); position: relative; }
.kh-step:last-child { border-right: 0; }
.kh-step .num { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #e8eef5; color: #6b7d91; align-items: center; justify-content: center; font-size: 12px; margin-bottom: 6px; }
.kh-step .name { font-size: 12px; color: var(--kh-muted); }
.kh-step.done .num { background: #e5f4ea; color: #1e8f4d; }
.kh-step.done .name { color: #1e8f4d; }
.kh-step.active .num { background: var(--kh-primary); color: #fff; }
.kh-step.active .name { color: var(--kh-primary); font-weight: 600; }

/* 表格 */
.kh-table-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.kh-table-toolbar .layui-input, .kh-table-toolbar .layui-select { height: 34px; }
.kh-search { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kh-search input, .kh-search select { height: 34px; padding: 0 10px; border: 1px solid #d9e2ec; border-radius: 4px; background: #fff; font-size: 13px; color: #333; min-width: 130px; }
.kh-search button { height: 34px; padding: 0 16px; border: 0; border-radius: 4px; background: var(--kh-primary); color: #fff; cursor: pointer; font-size: 13px; }
.kh-search button.reset { background: #fff; color: #5a6b7e; border: 1px solid #d9e2ec; }
.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; line-height: 18px; }
.badge-blue { background: #e8f1fa; color: #2568a0; }
.badge-green { background: #e7f6ee; color: #1e8f4d; }
.badge-gold { background: #fbf3df; color: #a2761f; }
.badge-red { background: #fdecec; color: #c0392b; }
.badge-gray { background: #eef1f4; color: #6b7d91; }
.badge-orange { background: #fdf0e5; color: #b4651c; }

/* 表单 */
.kh-form { padding: 22px 26px 8px; }
.kh-form .layui-form-item { margin-bottom: 18px; }
.kh-form .layui-form-label { width: 120px; color: #42546a; }
.kh-form .layui-input-block { margin-left: 150px; }
.kh-form .tip { color: #93a1b2; font-size: 12px; line-height: 1.6; margin-top: 4px; }
.kh-form-footer { padding: 8px 26px 22px; text-align: right; border-top: 1px solid #f1f4f8; margin-top: 6px; }
.kh-form-footer .layui-btn + .layui-btn { margin-left: 8px; }

/* 详情 */
.kh-detail-table { width: 100%; border-collapse: collapse; }
.kh-detail-table td { border: 1px solid var(--kh-border); padding: 9px 12px; font-size: 13px; }
.kh-detail-table .k { background: #f7f9fb; color: #5c6d80; width: 150px; }

/* 提示条 */
.kh-alert { padding: 10px 14px; border-radius: 4px; background: #fff9e8; border: 1px solid #f3e2b3; color: #8a6a1c; font-size: 13px; margin-bottom: 10px; }
.kh-alert.danger { background: #fdeeee; border-color: #f3c9c5; color: #a33227; }
.kh-alert.info { background: #eef5fc; border-color: #cfe0f0; color: #2b5f8f; }

/* 登录 */
.kh-login { min-height: 100vh; background: radial-gradient(circle at 20% 20%, #2b5d86 0, #14304c 45%, #0c2135 100%); display: flex; align-items: center; justify-content: center; padding: 30px; position: relative; }
.kh-login:before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 34px 34px; }
.kh-login-box { width: 920px; max-width: 100%; display: flex; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.35); position: relative; z-index: 2; }
.kh-login-left { width: 52%; background: linear-gradient(160deg, #1e4a70 0%, #12324f 100%); color: #fff; padding: 50px 46px; position: relative; overflow: hidden; }
.kh-login-left:after { content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%; border: 1px solid rgba(200,164,92,.35); right: -110px; bottom: -80px; }
.kh-login-left .seal { width: 64px; height: 64px; margin-bottom: 26px; }
.kh-login-left .seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kh-login-left h1 { font-size: 28px; line-height: 1.4; margin: 0 0 14px; font-weight: 600; letter-spacing: 2px; }
.kh-login-left p { color: #b6cde0; font-size: 13px; line-height: 1.9; }
.kh-login-left ul { margin: 30px 0 0; padding: 0; list-style: none; color: #9db9d0; font-size: 12px; line-height: 2.2; }
.kh-login-left ul i { color: var(--kh-accent); margin-right: 8px; }
.kh-login-right { flex: 1; padding: 52px 46px; }
.kh-login-right h2 { font-size: 20px; margin: 0 0 4px; color: var(--kh-text); }
.kh-login-right .sub { color: #93a1b2; font-size: 12px; margin-bottom: 28px; }
.kh-login-right .layui-form-label { width: 26px; padding: 9px 0; text-align: left; color: #8fa0b3; }
.kh-login-right .layui-input-block { margin-left: 32px; }
.kh-login-right .layui-input { height: 42px; border-radius: 4px; border-color: #dbe3ec; }
.kh-login-right .layui-btn { width: 100%; height: 42px; background: var(--kh-primary); border-radius: 4px; letter-spacing: 3px; }
.kh-login-right .layui-btn:hover { background: var(--kh-primary-light); }
.kh-captcha-row { display: flex; gap: 10px; align-items: center; }
.kh-captcha-row .layui-input { flex: 1; }
.kh-captcha-box { min-width: 118px; height: 42px; padding: 0 10px; border: 1px solid #dbe3ec; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--kh-primary); font-weight: 700; background: #f7fafd; letter-spacing: 1px; cursor: pointer; user-select: none; transition: border-color .15s, background .15s; }
.kh-captcha-box:hover { border-color: var(--kh-primary-light); background: #eef5fc; }
.kh-captcha-box:active { transform: translateY(1px); }
.kh-captcha-box .layui-icon { font-size: 13px; color: #8fa0b3; font-weight: 400; }
.kh-captcha-box:hover .layui-icon { color: var(--kh-primary-light); }
.kh-captcha-box.loading .layui-icon { animation: kh-spin .6s linear infinite; }
@keyframes kh-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* 打印 */
@media print {
    .kh-side, .kh-header, .kh-table-toolbar, .no-print { display: none !important; }
    .kh-main { margin-left: 0; }
    .kh-content { padding: 0; }
    body { background: #fff; }
}
@media (max-width: 980px) {
    .kh-side { width: 200px; }
    .kh-main { margin-left: 200px; }
    .kh-login-left { display: none; }
    .kh-login-right { width: 100%; }
}
