/* 辰煜精益管理系统主题：布局与组件沿用 EIMS 系列，配色改为墨绿体系 */
:root {
  --ink: #1d2b28;
  --muted: #5f6f6b;
  --line: #dde6e3;
  --bg: #f2f6f5;
  --card: #ffffff;
  --primary: #0e7460;
  --primary-dark: #0a5748;
  --primary-soft: #e8f4f0;
  --accent: #c08a2e;
  --danger: #c0392b;
  --ok: #22a75d;
  --side: #11302a;
  --side-deep: #0a221d;
}

a { color: var(--primary); }

.sidebar { background: linear-gradient(180deg, var(--side) 0%, var(--side-deep) 100%); }
.sidebar nav a.active { background: rgba(14, 116, 96, .34); }
.sidebar nav a.active::before { background: #35b394; }
.sidebar nav .group { color: #7d9a93; }
.brand-plate img { filter: none; }
.brand-text b { color: #eaf6f2; letter-spacing: 1.6px; }
.brand-text em { color: #8fb3aa; }
.avatar { background: rgba(53, 179, 148, .16); border-color: rgba(53, 179, 148, .34); color: #d6f2ea; }
.su-info em { color: #93ada7; }
.side-logout { color: #96aba5; }
.side-logout:hover { color: #eaf6f2; }

.page-head h1 { letter-spacing: .4px; }

thead th { background: #eaf2f0; color: #24443d; }
tbody td { border-bottom: 1px solid #edf3f1; }
tbody tr:hover { background: #f6fbf9; }
td.mono { color: #274a42; }
.table-wrap::-webkit-scrollbar-thumb { background: #b8cdc7; }
.table-wrap::-webkit-scrollbar-track { background: #eef4f2; }

input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(14, 116, 96, .14); }

.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }
.flash { border-left-color: var(--primary); background: var(--primary-soft); }

.steps .step:first-child { border-left-color: var(--primary); }
.timeline li::before { background: var(--primary); }

/* 状态徽标：与 EIMS 一致的形状，改用精益语义色 */
.st-wait { background: #fdf3e2; color: #96601a; }
.st-run { background: #e7f4ef; color: #10705c; }
.st-check { background: #eef0fa; color: #4f5391; }
.st-done { background: #e5f5ec; color: #17694a; }
.st-back { background: #f1ede6; color: #6a6157; }
.st-hold { background: #f2ecf7; color: #6d4b8a; }
.st-out { background: #fdecea; color: #a8392b; }

/* 登录页 */
.login-brand { background: linear-gradient(160deg, #0e7460 0%, #0a5545 46%, #072e26 100%); }
.login-brand h1 { color: #ffffff; letter-spacing: 2px; }
.login-desc { position: relative; z-index: 1; margin: 22px 0 0; color: #bfe4da; font-size: 13.5px; line-height: 2; letter-spacing: .6px; }
.login-rule { background: #7fd3bd; }
.login-brand-foot span, .login-brand-foot small { color: #9dc8bd; }
.login-logo { filter: none; }
.login-qr-hint { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.login-wecom { color: var(--primary); border-color: #bfe4da; }
.login-wecom:hover { background: var(--primary-soft); }

/* 复核/评分页：分区卡片与小标题 */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #24443d; }
.section-title .sub { color: var(--muted); font-size: 12px; font-weight: 400; }
.group-block { margin-bottom: 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.group-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; background: #f3f8f6; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; color: #24443d; }
.group-body { padding: 4px 0; }
.score-row { display: grid; grid-template-columns: 1fr 92px 84px 150px; gap: 10px; align-items: center; padding: 7px 12px; border-bottom: 1px dashed #edf3f1; }
.score-row:last-child { border-bottom: 0; }
.score-row .name { font-size: 13px; }
.score-row .std { color: var(--muted); font-size: 12px; }
.score-row input { padding: 5px 8px; font-size: 13px; }
.score-total { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; margin-bottom: 12px; background: var(--primary); color: #fff; border-radius: 8px; font-size: 13px; }
.score-total b { font-size: 20px; letter-spacing: .5px; }
.photo-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-grid img { width: 108px; height: 108px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.photo-del { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.flag { display: inline-block; margin: 0 6px 4px 0; padding: 2px 8px; border-radius: 4px; background: #fdecea; color: #a8392b; font-size: 12px; }
.flag.ok { background: #e5f5ec; color: #17694a; }
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th, .mini-table td { padding: 6px 10px; font-size: 12.5px; border-bottom: 1px solid #edf3f1; }
.mini-table th { color: var(--muted); font-weight: 500; text-align: left; }

/* 手机端 */
.m-body { background: #f2f6f5; }
.m-top { padding: 14px 16px 12px; background: linear-gradient(150deg, #0e7460, #0a5748); color: #fff; }
.m-top .sys { font-size: 12px; opacity: .8; letter-spacing: 1px; }
.m-top .who { margin-top: 6px; font-size: 18px; font-weight: 600; }
.m-wrap { padding: 12px 12px 76px; }
.m-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 3px rgba(16, 48, 40, .07); padding: 14px; margin-bottom: 12px; }
.m-card h3 { margin: 0 0 10px; font-size: 15px; color: #1d2b28; }
.m-row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13px; color: #45554f; }
.m-kv { display: grid; grid-template-columns: 74px 1fr; gap: 6px 10px; font-size: 13px; }
.m-kv .k { color: #6b7c76; }
.m-item { display: flex; align-items: center; gap: 10px; border-bottom: 1px dashed #e6eeeb; padding: 9px 0; }
.m-item .n { flex: 1; font-size: 13.5px; }
.m-item input { width: 76px; text-align: right; }
.m-actions { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); }
.m-actions .btn { flex: 1; height: 42px; }
.m-tabbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.m-tabbar a { flex: 1; text-align: center; padding: 9px 0 8px; font-size: 12px; color: #6b7c76; }
.m-tabbar a.on { color: var(--primary); font-weight: 600; }
.m-empty { padding: 30px 0; text-align: center; color: var(--muted); font-size: 13px; }
.m-badge { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; background: var(--primary-soft); color: var(--primary-dark); }

/* 登录页配色统一为墨绿，清除 EAM 的橙棕残留 */
.login-page {
  background:
    radial-gradient(circle at 12% 16%, rgba(14, 116, 96, .10) 0, rgba(14, 116, 96, 0) 42%),
    radial-gradient(circle at 88% 84%, rgba(17, 48, 42, .10) 0, rgba(17, 48, 42, 0) 40%),
    linear-gradient(150deg, #f4f9f7 0%, #eef4f2 55%, #e6eeeb 100%);
}
.login-brand::before { background: linear-gradient(90deg, #7fd3bd 0%, #0e7460 60%, rgba(14,116,96,0) 100%); }
.login-brand::after { border-color: rgba(127, 211, 189, .22); background: radial-gradient(circle at 32% 32%, rgba(127,211,189,.10), rgba(127,211,189,0) 70%); }
.login-field span { color: #5b6f69; }
.login-field input { background: #f6faf8; border-color: #d8e5e0; }
.login-field input::placeholder { color: #9aa9a4; }
.login-field input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(14, 116, 96, .14); }
.login-check { color: #5b6f69; }
.login-check input { accent-color: var(--primary); }
.login-tip { color: #93a39e; }
.login-submit { background: linear-gradient(135deg, #12816a 0%, #0a5748 100%); box-shadow: 0 8px 18px rgba(10, 87, 72, .22); }
.login-submit:hover { background: linear-gradient(135deg, #0e7460 0%, #083f34 100%); }
.login-divider { color: #93a39e; }
.login-divider::before, .login-divider::after { background: #e2ece8; }
.login-alert { background: #fdeeec; border-color: #f4d3cd; color: #9a3326; }

/* 导航紧凑化：20 个菜单项在 900px 高度内完整显示，不出现侧栏滚动条 */
.sidebar nav { padding: 6px 10px 4px; overflow-y: hidden; }
.sidebar nav a { height: 33px; font-size: 13px; margin-bottom: 1px; }
.sidebar nav a.active::before { top: 7px; bottom: 7px; }
.sidebar nav .group { padding: 8px 10px 3px; font-size: 10px; }
.brand { padding: 11px 10px 10px; gap: 7px; }
.brand-plate img { width: 132px; }
.side-foot { padding: 9px 12px 11px; }
.side-user { padding: 4px 4px 6px; }

/* 二次压缩：确保系统管理 5 项全部可见（900px 视口） */
.sidebar nav a { height: 31px; }
.sidebar nav .group { padding: 6px 10px 2px; }
.brand { padding: 9px 10px 8px; gap: 6px; }
.brand-plate img { width: 122px; }
.side-foot { padding: 6px 12px 8px; }
.side-user { padding: 3px 4px 5px; }
.side-logout { padding: 6px 10px; }

/* 手机端行内输入不被挤压 */
.m-item .n { flex: 1 1 0; min-width: 0; }
.m-item input { flex: none; width: 72px; }

/* 复核页评分明细折叠：默认收起，避免长列表淹没结论区 */
.score-details { margin-top: 12px; }
.score-details > summary { cursor: pointer; padding: 11px 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; font-size: 13px; color: var(--primary-dark); font-weight: 600; list-style: none; }
.score-details > summary::-webkit-details-marker { display: none; }
.score-details > summary::after { content: "展开"; float: right; color: var(--muted); font-weight: 400; font-size: 12px; }
.score-details[open] > summary::after { content: "收起"; }
.score-details[open] { padding-bottom: 4px; }

/* 系统配置页 */
.kpi .foot { margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 14px; }
.checkbox-row .checkbox { font-size: 13px; }

/* ============ 电脑端扫码登录弹层（与 EIMS 同构，配色改墨绿） ============ */
.wq-mask {
  position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box; background: rgba(8, 22, 18, .55);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.wq-mask[hidden] { display: none; }
.wq-dialog {
  position: relative; width: 400px; max-width: calc(100vw - 32px); background: #fff;
  border-radius: 18px; overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 80px rgba(6, 26, 21, .28), 0 2px 8px rgba(6, 26, 21, .08);
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  --wq-accent: #0E7460; --wq-soft: #EAF4F1; --wq-ink: #122A25; --wq-muted: #7E918B; --wq-border: #DCE7E3;
}
.wq-dialog::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--wq-accent); z-index: 2; }
.wq-head { position: relative; padding: 24px 24px 16px; text-align: center; }
.wq-title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--wq-ink); letter-spacing: .4px; }
.wq-sub { margin-top: 6px; font-size: 11.5px; color: var(--wq-muted); letter-spacing: .3px; }
.wq-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: transparent; color: var(--wq-muted); font-size: 20px; line-height: 28px; cursor: pointer;
  transition: background .15s, color .15s;
}
.wq-close:hover { background: #F2F7F5; color: var(--wq-ink); }
.wq-body { padding: 0 24px 22px; }
.wq-frame {
  position: relative; width: 220px; height: 220px; margin: 4px auto 0; padding: 10px;
  border: 1px solid var(--wq-border); border-radius: 14px; background: #F8FBFA;
  display: flex; align-items: center; justify-content: center;
}
.wq-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wq-loading {
  position: absolute; inset: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--wq-muted); background: #F8FBFA; border-radius: 10px;
}
.wq-tip { margin: 14px 0 0; text-align: center; font-size: 12px; line-height: 1.7; color: var(--wq-muted); }
.wqr-status {
  margin: 10px 0 0; text-align: center; font-size: 12px; line-height: 1.6; color: var(--wq-muted);
  min-height: 19px;
}
.wqr-status.is-scanned { color: var(--wq-accent); font-weight: 600; }
.wqr-status.is-ok { color: #17825B; font-weight: 600; }
.wqr-status.is-error { color: #B13B30; }
.wq-foot {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--wq-border);
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.wq-refresh {
  height: 32px; padding: 0 14px; border: 1px solid var(--wq-border); border-radius: 8px;
  background: #fff; color: var(--wq-ink); font-size: 12px; cursor: pointer; font-family: inherit;
}
.wq-refresh:hover { background: #F2F7F5; }
.wq-refresh[hidden] { display: none; }
.wq-note { margin-left: auto; font-size: 11px; color: var(--wq-muted); }
