/* 测评端样式 */
:root {
    --kp-primary: #1f4e79;
    --kp-primary-light: #2e6da4;
    --kp-accent: #c8a45c;
    --kp-bg: #eef2f6;
    --kp-border: #e0e7ef;
    --kp-text: #26364a;
    --kp-muted: #7b8a9c;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; background: var(--kp-bg); color: var(--kp-text); }
body { font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif; font-size: 15px; line-height: 1.6; }
a { color: var(--kp-primary); text-decoration: none; }
.kp-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.kp-head { background: linear-gradient(90deg, #1c3d5e 0%, #26507a 100%); color: #fff; box-shadow: 0 2px 8px rgba(22,58,92,.15); }
.kp-head-inner { max-width: 900px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.kp-logo { display: flex; align-items: center; gap: 10px; }
.kp-logo .emblem { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; flex-shrink: 0; display: block; }
.kp-title { font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.kp-sub { font-size: 11px; color: #a9c3da; margin-top: 1px; }
.kp-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.kp-nav a { color: #d6e4f0; font-size: 13px; padding: 6px 12px; border-radius: 4px; }
.kp-nav a:hover, .kp-nav a.active { background: rgba(255,255,255,.14); color: #fff; }
.kp-main { flex: 1; max-width: 900px; width: 100%; margin: 0 auto; padding: 18px 16px 36px; }
.kp-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(22,58,92,.08); margin-bottom: 14px; overflow: hidden; }
.kp-card-head { padding: 15px 18px; border-bottom: 1px solid #f0f4f8; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kp-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.kp-card-head h2:before { content: ""; display: inline-block; width: 3px; height: 15px; background: var(--kp-accent); margin-right: 8px; vertical-align: -2px; border-radius: 2px; }
.kp-card-body { padding: 18px; }
.kp-card-body.tight { padding: 0 18px 18px; }

/* 登录 */
.kp-login { min-height: 100vh; background: radial-gradient(circle at 30% 10%, #2b5d86 0, #14304c 50%, #0c2135 100%); display: flex; align-items: center; justify-content: center; padding: 22px; }
.kp-login-box { width: 100%; max-width: 420px; background: #fff; border-radius: 12px; padding: 34px 30px 28px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.kp-login-box .seal { width: 64px; height: 64px; margin: 0 auto 16px; }
.kp-login-box .seal img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kp-login-box h1 { font-size: 19px; text-align: center; margin: 0 0 6px; color: var(--kp-primary); }
.kp-login-box .sub { text-align: center; color: var(--kp-muted); font-size: 12px; margin-bottom: 26px; line-height: 1.8; }
.kp-code-input { width: 100%; height: 54px; border: 2px solid #dbe4ee; border-radius: 8px; text-align: center; font-size: 22px; letter-spacing: 8px; font-weight: 700; color: var(--kp-primary); text-transform: uppercase; outline: none; transition: .2s; font-family: Consolas, monospace; }
.kp-code-input:focus { border-color: var(--kp-primary-light); box-shadow: 0 0 0 3px rgba(46,109,164,.12); }
.kp-btn { display: block; width: 100%; height: 48px; border: 0; border-radius: 8px; background: linear-gradient(90deg, #1f4e79, #2e6da4); color: #fff; font-size: 16px; letter-spacing: 3px; cursor: pointer; margin-top: 16px; }
.kp-btn:active { transform: translateY(1px); }
.kp-btn[disabled] { opacity: .6; cursor: not-allowed; }
.kp-btn.ghost { background: #fff; color: var(--kp-primary); border: 1px solid #cddcea; }
.kp-tips { margin-top: 20px; padding: 12px 14px; background: #f6f9fc; border-radius: 6px; color: #6b7d91; font-size: 12px; line-height: 1.9; }
.kp-tips b { color: #42546a; }
.kp-links { text-align: center; margin-top: 16px; font-size: 12px; }
.kp-links a { margin: 0 8px; color: #6b7d91; }

/* 进度 */
.kp-progress { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #f7fafd; border-bottom: 1px solid #f0f4f8; }
.kp-progress .bar { flex: 1; height: 8px; background: #e4ecf4; border-radius: 4px; overflow: hidden; }
.kp-progress .bar i { display: block; height: 100%; background: linear-gradient(90deg, #2e6da4, #1f4e79); border-radius: 4px; transition: width .4s; }
.kp-progress span { font-size: 12px; color: var(--kp-muted); white-space: nowrap; }

/* 对象列表 */
.kp-targets { padding: 6px 0; }
.kp-target { display: flex; align-items: center; padding: 15px 18px; border-bottom: 1px solid #f3f6f9; gap: 12px; }
.kp-target:last-child { border-bottom: 0; }
.kp-target .idx { width: 26px; height: 26px; border-radius: 50%; background: #eef3f8; color: #6b7d91; font-size: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.kp-target .info { flex: 1; min-width: 0; }
.kp-target .name { font-size: 15px; font-weight: 600; color: var(--kp-text); }
.kp-target .meta { font-size: 12px; color: var(--kp-muted); margin-top: 2px; }
.kp-target .act a { display: inline-block; padding: 7px 16px; background: var(--kp-primary); color: #fff; border-radius: 5px; font-size: 13px; }
.kp-target .act a.done { background: #e7f6ee; color: #1e8f4d; pointer-events: none; }
.kp-target .act a:active { opacity: .85; }
.kp-target.done .idx { background: #e7f6ee; color: #1e8f4d; }
.kp-empty { text-align: center; padding: 40px 20px; color: #9aa8b8; font-size: 13px; }

/* 评价表 */
.kp-inst { background: #fffaf0; border: 1px solid #f2e3bd; color: #8a6a1c; border-radius: 6px; padding: 12px 14px; font-size: 13px; line-height: 1.8; margin-bottom: 14px; }
.kp-target-head { text-align: center; padding: 20px 16px; background: linear-gradient(180deg, #f7fafd, #fff); border-bottom: 1px dashed #e3ebf3; }
.kp-target-head .role { font-size: 12px; color: var(--kp-muted); }
.kp-target-head .nm { font-size: 22px; font-weight: 700; color: var(--kp-primary); margin: 4px 0; letter-spacing: 2px; }
.kp-target-head .pos { font-size: 13px; color: #6b7d91; }
.kp-dim { padding: 16px 18px; border-bottom: 1px solid #f3f6f9; }
.kp-dim:last-child { border-bottom: 0; }
.kp-dim .q { font-size: 14px; color: #33475b; line-height: 1.7; margin-bottom: 12px; }
.kp-dim .q .no { display: inline-block; min-width: 20px; color: #8fa0b3; font-size: 12px; }
.kp-levels { display: flex; gap: 8px; flex-wrap: wrap; }
.kp-levels label { flex: 1; min-width: 72px; cursor: pointer; }
.kp-levels input { display: none; }
.kp-levels span { display: block; text-align: center; padding: 9px 4px; border: 1px solid #dbe4ee; border-radius: 6px; font-size: 13px; color: #5c6d80; background: #fbfcfe; transition: .15s; }
.kp-levels input:checked + span { background: #e8f2fb; border-color: #2e6da4; color: #1f4e79; font-weight: 600; box-shadow: inset 0 0 0 1px #2e6da4; }
.kp-levels input:checked + span.neg { background: #fdf0e5; border-color: #b4651c; color: #a3550f; box-shadow: inset 0 0 0 1px #b4651c; }
.kp-levels label:hover span { border-color: #9dbfdc; }
.kp-textarea { width: 100%; min-height: 90px; border: 1px solid #dbe4ee; border-radius: 6px; padding: 10px 12px; font-size: 14px; color: #33475b; outline: none; resize: vertical; font-family: inherit; }
.kp-textarea:focus { border-color: var(--kp-primary-light); }
.kp-submit-bar { position: sticky; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid #eef2f6; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); backdrop-filter: blur(6px); display: flex; gap: 10px; }
.kp-submit-bar .kp-btn { margin: 0; flex: 1; height: 46px; }
.kp-submit-bar .kp-btn.ghost { flex: 0 0 108px; letter-spacing: 1px; }

/* 完成页 */
.kp-done { text-align: center; padding: 40px 24px; }
.kp-done .icon { width: 70px; height: 70px; border-radius: 50%; background: #e7f6ee; color: #1e8f4d; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 36px; }
.kp-done h2 { font-size: 20px; margin: 0 0 8px; color: var(--kp-text); }
.kp-done p { color: var(--kp-muted); font-size: 13px; line-height: 1.9; margin: 0 0 22px; }
.kp-done .kp-btn { max-width: 260px; margin: 0 auto; }

/* 公示 */
.kp-list-item { display: block; padding: 16px 18px; border-bottom: 1px solid #f3f6f9; color: var(--kp-text); }
.kp-list-item:last-child { border-bottom: 0; }
.kp-list-item:hover { background: #f9fbfd; }
.kp-list-item .t { font-size: 15px; font-weight: 600; }
.kp-list-item .d { font-size: 12px; color: var(--kp-muted); margin-top: 5px; }
.kp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.kp-table th, .kp-table td { border: 1px solid #e8eef4; padding: 9px 10px; text-align: left; }
.kp-table th { background: #f7fafc; color: #42546a; font-weight: 600; }
.kp-table tr:nth-child(even) td { background: #fcfdfe; }
.kp-form-item { margin-bottom: 14px; }
.kp-form-item label { display: block; font-size: 13px; color: #42546a; margin-bottom: 6px; }
.kp-input { width: 100%; height: 42px; border: 1px solid #dbe4ee; border-radius: 6px; padding: 0 12px; font-size: 14px; outline: none; font-family: inherit; }
.kp-input:focus { border-color: var(--kp-primary-light); }
.kp-badge { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; background: #e8f2fb; color: #2568a0; }
.kp-badge.green { background: #e7f6ee; color: #1e8f4d; }
.kp-badge.gold { background: #fbf3df; color: #a2761f; }
.kp-foot { text-align: center; color: #93a1b2; font-size: 12px; padding: 18px 16px 24px; line-height: 1.7; border-top: 1px solid #e2e9f0; margin-top: 10px; }
@media (max-width: 560px) {
    .kp-head-inner { padding: 10px 14px; }
    .kp-title { font-size: 13px; }
    .kp-sub { font-size: 10px; }
    .kp-nav a { font-size: 12px; padding: 5px 9px; }
    .kp-main { padding: 12px 10px 28px; }
    .kp-card-body { padding: 14px; }
    .kp-levels label { min-width: 62px; }
    .kp-levels span { font-size: 12px; padding: 8px 2px; }
    .kp-login-box { padding: 28px 22px 24px; }
}
@media print {
    .kp-head, .kp-foot, .kp-nav, .no-print { display: none !important; }
    body { background: #fff; }
    .kp-main { max-width: none; padding: 0; }
    .kp-card { box-shadow: none; }
}