/* ========== 移动端全局样式 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background: #f5f6fa;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    padding-bottom: 60px;
}
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select, button { font-family: inherit; font-size: inherit; outline: none; }
textarea { resize: none; }

/* ========== 顶部导航 ========== */
.m-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: linear-gradient(135deg, #e62b34 0%, #c81e27 100%);
    box-shadow: 0 2px 8px rgba(230, 43, 52, .3);
}
.m-header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 50px; padding: 0 12px; color: #fff;
}
.m-header-left { width: 70px; flex-shrink: 0; }
.m-header-right { width: 70px; flex-shrink: 0; text-align: right; }
.m-header-title {
    flex: 1; text-align: center; font-size: 17px; font-weight: 600;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.m-back { color: #fff; font-size: 15px; display: inline-block; padding: 4px 0; }

/* ========== 内容区 ========== */
.m-body { padding: 60px 12px 20px; max-width: 640px; margin: 0 auto; }

/* 登录页 */
.login-page { min-height: 100vh; display: flex; flex-direction: column; }
.login-header {
    background: linear-gradient(160deg, #e62b34 0%, #b71c24 100%);
    padding: 30px 30px 70px; text-align: center; color: #fff;
}
.login-logo {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 18px;
    background: rgba(255,255,255,.18); display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 700;
}
.login-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; }
.login-sub { font-size: 13px; opacity: .85; margin-top: 6px; }
.login-form {
    margin: -35px 20px 0; background: #fff; border-radius: 14px;
    padding: 28px 22px; box-shadow: 0 8px 24px rgba(0,0,0,.08);
}
.login-form .form-item { margin-bottom: 10px; }
.login-form .form-label { font-size: 14px; color: #666; margin-bottom: 8px; }
.login-form .form-input {
    width: 100%; height: 46px; border: 1px solid #e5e7eb; border-radius: 10px;
    padding: 0 14px; font-size: 15px; background: #fafbfc;
}
.login-form .form-input:focus { border-color: #e62b34; background: #fff; }
.login-btn {
    width: 100%; height: 46px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #e62b34, #c81e27); color: #fff;
    font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 6px;
}
.login-btn:active { opacity: .9; }
.login-tip { text-align: center; color: #999; font-size: 12px; margin-top: 14px; }
.login-form .captcha-row { display: flex; gap: 10px; align-items: stretch; }
.login-form .captcha-row .form-input { flex: 1; min-width: 0; }
.login-form .captcha-img { width: 108px; height: 46px; border-radius: 10px; cursor: pointer; border: 1px solid #e5e7eb; flex-shrink: 0; }

/* ========== 首页 ========== */
.home-hero {
    background: linear-gradient(135deg, #e62b34 0%, #c81e27 100%);
    margin: -12px -12px 14px; padding: 18px 16px 22px; color: #fff;
    border-radius: 0 0 18px 18px;
}
.home-hero .greet { font-size: 15px; opacity: .9; }
.home-hero .username { font-size: 22px; font-weight: 700; margin-top: 4px; }
.home-hero .date { font-size: 12px; opacity: .8; margin-top: 6px; }
.home-stats {
    display: flex; margin: -26px 12px 14px; background: #fff; border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,.06); padding: 14px 0; position: relative; z-index: 2;
}
.home-stats .stat {
    flex: 1; text-align: center; position: relative;
    color: inherit; text-decoration: none;
}
.home-stats .stat:active { opacity: .7; }
.home-stats .stat + .stat::before {
    content: ''; position: absolute; left: 0; top: 20%; height: 60%; width: 1px; background: #f0f0f0;
}
.home-stats .stat-num { font-size: 20px; font-weight: 700; color: #e62b34; }
.home-stats .stat-label { font-size: 12px; color: #999; margin-top: 2px; }

.home-quick {
    display: flex; background: #fff; border-radius: 12px; padding: 16px 8px; margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.home-quick .quick-item { flex: 1; text-align: center; }
.home-quick .quick-icon {
    width: 44px; height: 44px; margin: 0 auto 6px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
}
.home-quick .quick-label { font-size: 12px; color: #555; }
.qi-1 { background: linear-gradient(135deg, #4f8cff, #3b6fe0); }
.qi-2 { background: linear-gradient(135deg, #ff9f43, #f0801a); }
.qi-3 { background: linear-gradient(135deg, #2ed573, #1fbf6c); }
.qi-4 { background: linear-gradient(135deg, #a55eea, #8b3fd4); }
.qi-5 { background: linear-gradient(135deg, #ff6b6b, #e62b34); }

.card { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.card-title { font-size: 15px; font-weight: 600; color: #333; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.card-title .more { font-size: 12px; color: #999; font-weight: 400; }

/* 列表卡片 */
.m-list-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-bottom: 1px solid #f5f5f5;
}
.m-list-item:last-child { border-bottom: none; }
.m-list-main { flex: 1; min-width: 0; margin-right: 10px; }
.m-list-title { font-size: 14px; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-list-sub { font-size: 12px; color: #999; margin-top: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.m-list-num { font-size: 11px; color: #aaa; }

/* 标签 */
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 4px;
    font-size: 11px; line-height: 1.6; flex-shrink: 0;
}
.tag-blue   { background: #e8f1ff; color: #3b6fe0; }
.tag-green  { background: #e3f8ec; color: #1fbf6c; }
.tag-red    { background: #fde8ea; color: #e62b34; }
.tag-orange { background: #fff3e6; color: #f0801a; }
.tag-yellow { background: #fffbe6; color: #d4b106; }
.tag-gray   { background: #f0f0f0; color: #999; }

/* 搜索栏 */
.m-search {
    display: flex; background: #fff; border-radius: 10px; padding: 6px; margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.m-search input {
    flex: 1; border: none; background: transparent; padding: 6px 10px; font-size: 14px;
}
.m-search button {
    border: none; background: #e62b34; color: #fff; border-radius: 8px;
    padding: 0 18px; font-size: 13px; cursor: pointer;
}

/* 状态 Tab */
.m-tabs {
    display: flex; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,.04); overflow-x: auto;
}
.m-tabs .tab {
    flex-shrink: 0; padding: 6px 14px; font-size: 13px; color: #666; border-radius: 7px;
    text-align: center; white-space: nowrap;
}
.m-tabs .tab.active { background: #e62b34; color: #fff; font-weight: 600; }

/* 详情页 */
.detail-card .d-row { display: flex; padding: 8px 0; border-bottom: 1px solid #f5f5f5; font-size: 13px; }
.detail-card .d-row:last-child { border-bottom: none; }
.detail-card .d-label { width: 86px; color: #999; flex-shrink: 0; }
.detail-card .d-value { flex: 1; color: #333; word-break: break-all; white-space: pre-wrap; line-height: 1.6; }

/* 表单页 */
.form-card { background: #fff; border-radius: 12px; padding: 6px 14px; margin-bottom: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
.form-card-title { font-size: 15px; font-weight: 600; padding: 12px 0; border-bottom: 1px solid #f5f5f5; margin-bottom: 4px; }
.form-item { padding: 12px 0; border-bottom: 1px solid #f8f8f8; }
.form-item:last-child { border-bottom: none; }
.form-item .form-label { font-size: 13px; color: #666; margin-bottom: 8px; }
.form-item .form-label .required { color: #e62b34; margin-left: 2px; }
.form-item .form-input {
    width: 100%; border: 1px solid #e5e7eb; border-radius: 8px;
    padding: 10px 12px; font-size: 14px; background: #fafbfc;
}
.form-item .form-input:focus { border-color: #e62b34; background: #fff; }
.form-item textarea.form-input { min-height: 80px; }
.form-item .form-select { width: 100%; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; font-size: 14px; background: #fafbfc; appearance: none; }
.form-item .form-select:focus { border-color: #e62b34; background: #fff; }

/* 单选组 */
.radio-group { display: flex; flex-wrap: wrap; gap: 8px; }
.radio-item {
    padding: 8px 16px; border: 1px solid #e5e7eb; border-radius: 20px;
    font-size: 13px; color: #666; cursor: pointer; background: #fff;
}
.radio-item.active { border-color: #e62b34; background: #fff0f1; color: #e62b34; font-weight: 600; }

/* 底部提交按钮 */
.m-footer-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    display: flex; gap: 10px;
}
.m-footer-bar .btn {
    flex: 1; height: 44px; border: none; border-radius: 10px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, #e62b34, #c81e27); color: #fff; }
.btn-primary:active { opacity: .9; }
.btn-plain { background: #fff; color: #666; border: 1px solid #ddd !important; }
.btn-danger { background: #fff; color: #e62b34; border: 1px solid #e62b34 !important; }
.btn-success { background: linear-gradient(135deg, #2ed573, #1fbf6c); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #ffb02e, #f59a00); color: #fff; }
.btn-resume-soft { background: #fff; color: #999; border: 1px solid #e3e3e3 !important; }
.btn-resume-soft:active { background: #f7f7f7; }

/* 问题列表项 */
.problem-item {
    display: block;
    color: inherit;
    text-decoration: none;
    background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.problem-item .p-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.problem-item .p-no { font-size: 11px; color: #aaa; }
.problem-item .p-desc { font-size: 14px; color: #333; line-height: 1.6; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.problem-item .p-meta { font-size: 12px; color: #999; display: flex; justify-content: space-between; }

/* 弹窗 */
.m-mask {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 200;
    background: rgba(0,0,0,.45); display: none;
}
.m-mask.show { display: block; }
.m-popup {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 201;
    background: #f5f6fa; border-radius: 16px 16px 0 0;
    max-height: 88vh; display: flex; flex-direction: column;
    transform: translateY(100%); transition: transform .25s ease;
}
.m-popup.show { transform: translateY(0); }
.m-popup-header {
    padding: 16px; text-align: center; font-size: 16px; font-weight: 600;
    background: #fff; border-radius: 16px 16px 0 0; position: relative;
}
.m-popup-close {
    position: absolute; right: 14px; top: 14px; width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    color: #999; font-size: 18px; cursor: pointer;
}
.m-popup-body { flex: 1; overflow-y: auto; padding: 12px; }

/* 空状态 */
.m-empty { text-align: center; padding: 50px 20px; color: #bbb; }
.m-empty .icon { font-size: 44px; margin-bottom: 10px; }
.m-empty .text { font-size: 13px; }

/* 加载更多 */
.m-loadmore { text-align: center; padding: 14px; color: #999; font-size: 12px; }

/* 提示条 */
.m-toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%);
    background: rgba(0,0,0,.78); color: #fff; padding: 10px 18px;
    border-radius: 8px; font-size: 13px; z-index: 999; display: none;
    max-width: 70%; text-align: center;
}
.m-toast.show { display: block; animation: toastIn .2s ease; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.9); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* 提交中遮罩 */
.m-loading-mask {
    position: fixed; inset: 0; background: rgba(255,255,255,.6);
    display: none; z-index: 500; align-items: center; justify-content: center;
}
.m-loading-mask.show { display: flex; }
.m-loading-spinner {
    width: 34px; height: 34px; border: 3px solid #f0f0f0; border-top-color: #e62b34;
    border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 问题子项卡片 */
.problem-sub-card {
    background: #fff; border-radius: 10px; padding: 12px; margin-bottom: 10px;
    border: 1px solid #f0f0f0; position: relative;
}
.problem-sub-card .ps-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.problem-sub-card .ps-index { font-size: 12px; color: #e62b34; font-weight: 600; }
.problem-sub-card .ps-remove { color: #e62b34; font-size: 12px; cursor: pointer; padding: 2px 6px; }
.problem-sub-card .ps-desc { font-size: 13px; color: #333; }
.problem-sub-card .ps-meta { font-size: 11px; color: #999; margin-top: 6px; }

/* ========== 底部 TabBar ========== */
.m-tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 100;
    background: #fff;
    border-top: 1px solid #f1f1f1;
    display: flex;
    height: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -2px 8px rgba(0,0,0,.04);
}
.m-tabbar-item {
    flex: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px;
    color: #999;
    font-size: 11px;
    text-decoration: none;
    transition: color .15s;
    -webkit-tap-highlight-color: transparent;
}
.m-tabbar-item .m-tabbar-icon {
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
}
.m-tabbar-item .m-tabbar-label { line-height: 1; }
.m-tabbar-item.active {
    color: #e62b34;
    font-weight: 600;
}
.m-tabbar-item.active .m-tabbar-icon svg { stroke: #e62b34; }

/* ========== 我的页 ========== */
.profile-header {
    background: #fff;
    padding: 20px 16px 22px;
    display: flex; align-items: center; gap: 14px;
    border-radius: 0 0 14px 14px;
    margin: -12px -12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.profile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: linear-gradient(135deg, #e62b34, #c81e27);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(230,43,52,.25);
}
.profile-avatar svg { display: block; }
.profile-name-area { flex: 1; min-width: 0; }
.profile-name { font-size: 17px; font-weight: 700; color: #222; letter-spacing: .5px; }
.profile-role {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 10px;
    font-size: 11px;
    color: #e62b34;
    background: #fff0f1;
    border-radius: 10px;
    border: 1px solid #ffd3d6;
}

.info-card {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
}
.info-row {
    display: flex; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    font-size: 14px;
}
.info-row:last-child { border-bottom: none; }
.info-icon {
    width: 22px; flex-shrink: 0;
    text-align: center;
    margin-right: 8px;
    color: #aaa;
    font-size: 14px;
}
.info-icon svg { display: block; margin: 0 auto; }
.info-label { width: 78px; color: #999; flex-shrink: 0; }
.info-value { flex: 1; color: #333; text-align: right; }

.profile-menu {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    overflow: hidden;
}
.profile-menu-item {
    display: flex; align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #f5f5f5;
    color: #333;
    font-size: 14px;
    text-decoration: none;
    transition: background .15s;
}
.profile-menu-item:last-child { border-bottom: none; }
.profile-menu-item:active { background: #fafafa; }
.pmi-icon {
    width: 22px; flex-shrink: 0;
    text-align: center;
    margin-right: 12px;
    color: #e62b34;
    font-size: 16px;
}
.pmi-icon svg { display: block; margin: 0 auto; }
.pmi-text { flex: 1; }
.pmi-arrow { color: #ccc; font-size: 18px; line-height: 1; }

.profile-logout-wrap { padding: 4px 0 30px; }
.btn-logout {
    display: block;
    width: 100%;
    height: 46px;
    line-height: 46px;
    text-align: center;
    border-radius: 10px;
    background: #fff;
    color: #e62b34;
    border: 1px solid #ffd3d6;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    -webkit-tap-highlight-color: transparent;
}
.btn-logout:active { background: #fff0f1; }

/* ========== 修改密码弹窗 ========== */
#pwdPopup {
    padding-top: 0;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 201 !important;
    background: #f5f6fa !important;
    border-radius: 16px 16px 0 0 !important;
    max-height: 88vh !important;
    display: flex !important;
    flex-direction: column !important;
    transform: translateY(100%) !important;
    transition: transform .25s ease !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    width: 100% !important;
    height: auto !important;
}
#pwdPopup.show {
    transform: translateY(0) !important;
}
.pwd-popup .m-mask { z-index: 200; }
.pwd-handle {
    width: 40px; height: 4px; background: #e0e0e0;
    border-radius: 2px; margin: 8px auto 0;
}
.pwd-title {
    padding: 18px 0 8px;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    background: #fff;
}
.pwd-body {
    background: #fff;
    padding: 8px 18px 16px;
}
.pwd-group {
    position: relative;
    margin-bottom: 14px;
}
.pwd-group label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}
.pwd-group input {
    width: 100%;
    height: 44px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 40px 0 14px;
    font-size: 14px;
    background: #fafbfc;
}
.pwd-group input:focus {
    border-color: #e62b34;
    background: #fff;
    outline: none;
}
.pwd-toggle {
    position: absolute;
    right: 10px; bottom: 11px;
    cursor: pointer;
    color: #999;
    padding: 4px;
    line-height: 0;
}
.pwd-toggle:active { color: #e62b34; }
.pwd-actions {
    display: flex;
    gap: 12px;
    padding: 12px 16px calc(20px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #f1f1f1;
}
.pwd-btn {
    flex: 1;
    height: 44px;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.pwd-btn-cancel {
    background: #f5f5f5;
    color: #666;
}
.pwd-btn-cancel:active { background: #ebebeb; }
.pwd-btn-confirm {
    background: linear-gradient(135deg, #e62b34, #c81e27);
    color: #fff;
    box-shadow: 0 4px 10px rgba(230,43,52,.3);
}
.pwd-btn-confirm:active { opacity: .9; }

/* ========== 关于系统 ========== */
.about-hero {
    background: #fff;
    margin: -12px -12px 14px;
    padding: 30px 0 22px;
    text-align: center;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.about-logo {
    width: 64px; height: 64px;
    margin: 0 auto 12px;
    border-radius: 18px;
    background: linear-gradient(135deg, #e62b34, #c81e27);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 16px rgba(230,43,52,.25);
}
.about-name { font-size: 18px; font-weight: 700; color: #222; }
.about-ver  { font-size: 12px; color: #999; margin-top: 6px; }
.about-footer {
    text-align: center;
    color: #bbb;
    font-size: 12px;
    padding: 30px 0 20px;
}

/* ========== 选择检查项弹窗 ========== */
.ci-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}
.ci-tab {
    padding: 6px 14px;
    font-size: 13px;
    color: #666;
    background: #f5f5f5;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ci-tab.active {
    color: #fff;
    background: #1677ff;
}
.ci-search {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}
.ci-search input {
    flex: 1;
    height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background: #fafbfc;
}
.ci-search input:focus {
    border-color: #1677ff;
    background: #fff;
}
.ci-search button {
    height: 36px;
    padding: 0 16px;
    background: #1677ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ci-search button:active { opacity: .85; }
.ci-category {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    max-height: 80px;
    overflow-y: auto;
}
.ci-cat-item {
    padding: 4px 12px;
    font-size: 12px;
    color: #666;
    background: #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.ci-cat-item.active {
    color: #1677ff;
    background: #e6f0ff;
}
.ci-list {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 12px;
    background: #fff;
}
.ci-item-row {
    display: flex;
    align-items: flex-start;
    padding: 10px 12px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.ci-item-row:last-child { border-bottom: none; }
.ci-item-row:active { background: #f5f9ff; }
.ci-item-check {
    margin-right: 10px;
    padding-top: 2px;
    flex-shrink: 0;
}
.ci-checkbox {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s;
}
.ci-checkbox.checked {
    background: #1677ff;
    border-color: #1677ff;
}
.ci-checkbox.checked::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.ci-item-content {
    flex: 1;
    min-width: 0;
}
.ci-item-title {
    font-size: 13px;
    color: #333;
    line-height: 1.5;
    margin-bottom: 4px;
}
.ci-item-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.ci-page {
    margin-bottom: 12px;
}
.ci-page-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}
.ci-page-btn {
    padding: 4px 12px;
    font-size: 12px;
    color: #1677ff;
    border: 1px solid #1677ff;
    border-radius: 4px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.ci-page-btn:active { background: #e6f0ff; }
.ci-page-num {
    font-size: 12px;
    color: #666;
}
.ci-page-info { display: none; }

/* 详情页检查项目 */
.check-item-row {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}
.check-item-row:last-child { border-bottom: none; }
.ci-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.ci-no {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.ci-content {
    font-size: 13px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
    white-space: pre-wrap;
    word-break: break-all;
}
.ci-standard {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-all;
}

/* 自动完成下拉 */
.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 50;
    display: none;
    margin-top: 4px;
}
.autocomplete-item {
    padding: 10px 14px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
}
.autocomplete-item:last-child { border-bottom: none; }
.autocomplete-item:hover,
.autocomplete-item.active {
    background: #fff0f1;
    color: #e62b34;
}

/* 检查项卡片列表 */
.checklist-list { display: flex; flex-direction: column; gap: 10px; }
.checklist-card {
    background: #fafbfc;
    border: 1px solid #eef0f3;
    border-radius: 10px;
    padding: 12px;
}
.cl-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.cl-no {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    flex: 1;
}
.cl-remove {
    font-size: 12px;
    color: #e62b34;
    cursor: pointer;
}
.cl-content {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin-bottom: 6px;
}
.cl-standard {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    margin-bottom: 10px;
}
.cl-person {
    border-top: 1px dashed #e5e5e5;
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cl-person-row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.cl-person-row label {
    flex-shrink: 0;
    width: 70px;
    font-size: 13px;
    color: #666;
}
.cl-person-row input {
    flex: 1;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    font-size: 13px;
    background: #fff;
}
.cl-person-row input:focus { border-color: #e62b34; }
.cl-autocomplete { flex: 1; }
.cl-autocomplete input { width: 100%; }
.cl-leader-dropdown { z-index: 40; }

/* 全屏弹窗（iframe） */
.m-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    max-height: none;
    transform: none;
    transition: none;
}
.popup-mask {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,.5);
}
.popup-content {
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 640px;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}
.popup-full {
    height: 92vh;
    border-radius: 16px 16px 0 0;
}
.popup-full iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.5;
}
.tag-gray {
    background: #f0f0f0;
    color: #666;
}
.tag-blue {
    background: #e6f0ff;
    color: #1677ff;
}

/* 日期范围 */
.form-date-range {
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-date-range .form-input { flex: 1; }
.date-sep {
    color: #999;
    font-size: 13px;
    flex-shrink: 0;
}

/* 添加检查项高亮按钮 */
.add-check-item-btn {
    display: block;
    text-align: center;
    color: #e62b34;
    font-size: 15px;
    font-weight: 500;
    margin: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.add-check-item-btn:active {
    background: #ffe8e8;
    transform: scale(0.98);
}

/* 页面底部提交按钮（悬浮在 TabBar 上方） */
.page-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: env(safe-area-inset-bottom);
    padding: 10px 16px;
    background: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
    z-index: 99;
}
.page-footer .submit-btn {
    width: 100%;
    height: 46px;
    line-height: 46px;
    text-align: center;
    background: #e62b34;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border-radius: 23px;
    border: none;
    transition: all 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.page-footer .submit-btn:active {
    background: #c82028;
    transform: scale(0.98);
}
.page-footer .submit-btn:disabled {
    background: #ccc;
}
body {
    padding-bottom: calc(56px + 70px + env(safe-area-inset-bottom));
}
