/* 算数工程项目管理 · UI */
:root {
    --navy: #101e34;
    --navy-2: #16294a;
    --ink: #17273d;
    --muted: #6b7c93;
    --line: #e4e9f2;
    --line-2: #eef2f8;
    --bg: #f4f7fc;
    --blue: #2f6bff;
    --blue-dark: #1f52d0;
    --teal: #0f9d8f;
    --amber: #d98b1f;
    --red: #d24a4a;
    --green: #17996a;
    --shadow: 0 10px 30px rgba(24, 44, 76, .07);
    --radius: 14px;

    /* 排版刻度：全站字号只允许用这套变量，禁止再写零散 px */
    --fs-3xs: 9.5px;
    --fs-2xs: 10.5px;
    --fs-xs: 11.5px;
    --fs-sm: 12.5px;
    --fs-md: 13.5px;
    --fs-base: 14px;
    --fs-lg: 15px;
    --fs-xl: 17px;
    --fs-2xl: 20px;
    --fs-3xl: 24px;
    --fs-display: 32px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: var(--fs-base);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; font-size: var(--fs-base); }
h1, h2, h3, h4, p { margin: 0; }
.ic { flex: 0 0 auto; vertical-align: -3px; }

/* ---------- 布局 ---------- */
.layout { min-height: 100vh; }
.sidebar {
    position: fixed; inset: 0 auto 0 0; width: 252px; z-index: 60;
    background: radial-gradient(circle at 20% 0%, #1d3760 0, var(--navy) 55%);
    color: #cfd9e8; display: flex; flex-direction: column; padding: 20px 14px 14px;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px 18px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(135deg, #4f8bff, #1d5fe8);
    display: grid; place-items: center; font-weight: 700; font-size: var(--fs-2xl); color: #fff;
    box-shadow: 0 6px 16px rgba(47, 107, 255, .35);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.35; }
.brand-text strong { font-size: var(--fs-lg); letter-spacing: .3px; }
.brand-text small { color: #8ba1c0; font-size: var(--fs-xs); margin-top: 2px; }
.nav { flex: 1; overflow-y: auto; padding-top: 4px; }
.nav::-webkit-scrollbar { width: 4px; }
.nav::-webkit-scrollbar-thumb { background: #2c4468; border-radius: 4px; }
.nav-label { color: #6f87a7; font-size: var(--fs-xs); letter-spacing: .16em; padding: 16px 12px 8px; }
.nav-item {
    display: flex; align-items: center; gap: 11px; padding: 10px 12px; margin: 2px 0;
    border-radius: 10px; color: #c3d0e2; font-size: var(--fs-md); position: relative; transition: .16s;
}
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on { background: linear-gradient(90deg, rgba(47, 107, 255, .95), rgba(47, 107, 255, .7)); color: #fff; box-shadow: 0 6px 16px rgba(22, 70, 180, .3); }
.nav-item .ic { opacity: .9; }
.nav-dot { margin-left: auto; background: #ffb44d; color: #3a2600; font-style: normal; font-size: var(--fs-xs); line-height: 1; padding: 4px 6px; border-radius: 20px; font-weight: 700; }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; }
.sf-box { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 11px; padding: 10px 12px; }
.sf-title { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: #dfe8f4; font-weight: 600; }
.sf-box p { color: #8ba1c0; font-size: var(--fs-xs); line-height: 1.7; margin-top: 5px; }
.sf-version { text-align: center; color: #5c7392; font-size: var(--fs-2xs); padding-top: 10px; letter-spacing: .04em; }
.sidebar-mask { display: none; }
.main { margin-left: 252px; min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
    position: sticky; top: 0; z-index: 40; min-height: 72px; background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; gap: 16px; padding: 12px 30px;
}
.topbar-title h1 { font-size: var(--fs-2xl); font-weight: 650; letter-spacing: .2px; }
.crumb { color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.menu-btn { display: none !important; }
.top-search {
    margin-left: auto; display: flex; align-items: center; gap: 8px; width: 300px;
    background: #f2f5fa; border: 1px solid transparent; border-radius: 10px; padding: 8px 12px; color: #8798ad;
}
.top-search:focus-within { background: #fff; border-color: #bfd1f6; box-shadow: 0 0 0 3px rgba(47, 107, 255, .08); }
.top-search input { border: 0; outline: 0; background: transparent; flex: 1; color: var(--ink); font-size: var(--fs-md); }
.user-menu { display: flex; align-items: center; gap: 9px; padding-left: 14px; border-left: 1px solid var(--line); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #2f6bff, #0f9d8f); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: var(--fs-lg); }
.avatar:hover { color: #fff; }
.user-meta { display: flex; flex-direction: column; line-height: 1.35; }
.user-meta strong { font-size: var(--fs-md); }
.user-meta span { color: var(--muted); font-size: var(--fs-xs); }
.icon-btn { border: 0; background: transparent; color: #7b8ca3; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; cursor: pointer; }
.icon-btn:hover { background: #f0f4fb; color: var(--ink); }
.content { padding: 26px 30px 56px; max-width: 1680px; width: 100%; }

/* ---------- 通用 ---------- */
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.nowrap { white-space: nowrap; }
.mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; } .mt20 { margin-top: 20px; } .mt24 { margin-top: 24px; }
.mb8 { margin-bottom: 8px; } .mb12 { margin-bottom: 12px; } .mb16 { margin-bottom: 16px; }
.center { text-align: center; }
.right { text-align: right; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.panel + .panel { margin-top: 18px; }
.panel-head { padding: 17px 20px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 12px; }
.panel-head h2 { font-size: var(--fs-lg); font-weight: 650; }
.panel-head .sub { color: var(--muted); font-size: var(--fs-sm); }
.panel-head .spacer { flex: 1; }
.panel-body { padding: 20px; }
.panel-body.tight { padding: 0; }
.panel-foot { padding: 13px 20px; border-top: 1px solid var(--line-2); background: #fbfcfe; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    height: 38px; padding: 0 15px; border-radius: 9px; border: 1px solid var(--line);
    background: #fff; color: #33475f; font-weight: 550; font-size: var(--fs-md); cursor: pointer;
    transition: .15s; white-space: nowrap;
}
.btn:hover { background: #f7f9fd; border-color: #cfd9e8; color: var(--ink); }
.btn-primary { background: linear-gradient(180deg, #3d78ff, #2a63ef); border-color: #2a63ef; color: #fff; box-shadow: 0 5px 14px rgba(47, 107, 255, .22); }
.btn-primary:hover { background: linear-gradient(180deg, #2f6bff, #1f52d0); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { background: #f1f5fb; color: var(--ink); }
.btn-danger { color: var(--red); border-color: #f0cccc; background: #fff8f8; }
.btn-danger:hover { background: #fdeeee; border-color: #e5adad; color: #b53232; }
.btn-sm { height: 31px; padding: 0 11px; font-size: var(--fs-sm); border-radius: 8px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: var(--fs-base); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.link-act { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); }
.link-act.danger { color: var(--red); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kpi { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); overflow: hidden; }
.kpi::after { content: ""; position: absolute; right: -30px; top: -34px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 107, 255, .1), transparent 70%); }
.kpi .k-top { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: var(--fs-sm); }
.k-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: #eaf1ff; color: var(--blue); }
.k-ico.teal { background: #e5f7f4; color: var(--teal); }
.k-ico.amber { background: #fdf3e2; color: var(--amber); }
.k-ico.red { background: #fdecec; color: var(--red); }
.kpi .k-val { font-size: 29px; font-weight: 700; letter-spacing: -.5px; margin: 9px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { color: var(--muted); font-size: var(--fs-xs); }
.kpi .k-sub b { color: var(--green); font-weight: 600; }

.grid-2 { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid-2eq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ---------- 表格 ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: var(--fs-md); }
.table th {
    text-align: left; font-weight: 600; font-size: var(--fs-xs); color: #74849a; letter-spacing: .03em;
    background: #f8fafd; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: #fafcff; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .t-title { font-weight: 600; color: var(--ink); }
.table .t-title:hover { color: var(--blue); }
.table .t-sub { color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.table .th-right, .table .td-right { text-align: right; }
.table .ops { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.table .empty-row td { padding: 46px 20px; text-align: center; color: var(--muted); }
.table.mini th, .table.mini td { padding: 9px 10px; }
.table .chk { width: 34px; }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.blue { background: #e9f0ff; color: #2a63e8; }
.badge.green { background: #e6f7f0; color: #12855c; }
.badge.amber { background: #fdf2df; color: #b47610; }
.badge.red { background: #fdecec; color: #c33b3b; }
.badge.gray { background: #eef1f6; color: #68778c; }
.badge.teal { background: #e5f7f4; color: #0c8277; }
.badge.purple { background: #f1ecff; color: #6b46d6; }
.badge.plain { background: #f3f6fb; color: #5d6f86; }
.badge.plain::before { display: none; }
/* 工作台「待我审核」按类型直达批量审核列表 */
.todo-links { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 11px 20px 3px; }
.todo-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 20px; background: #fbfcfe; color: #3f5168; font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: .15s; }
.todo-chip b { color: #b47610; font-weight: 700; }
.todo-chip:hover { background: #f2f6ff; border-color: #c5d8ff; color: #2a63e8; }
.tag { display: inline-block; background: #f1f5fb; color: #4d6178; border-radius: 6px; padding: 2px 7px; font-size: var(--fs-xs); margin: 2px 4px 2px 0; }
.dot-sep { color: #c4cfdd; padding: 0 6px; }
/* 检索「定位」跳转后的目标行高亮 */
.table tbody tr.row-focus { background: #eef5ff; box-shadow: inset 3px 0 0 #2f6bff; }
/* 拖拽上传区（REQ-D02） */
.dropzone.dropzone-on { border-color: #2f6bff; background: #f2f7ff; box-shadow: 0 0 0 3px rgba(47,107,255,.08); }
.dropzone-hint { font-size: var(--fs-sm); color: #7a8ba1; margin-top: 8px; }

/* ---------- 筛选 ---------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 16px 20px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field > label, .f-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 550; }
.input, .select, .textarea {
    height: 37px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; color: var(--ink);
    padding: 0 11px; outline: 0; transition: .15s; min-width: 0;
}
.textarea { height: auto; min-height: 86px; padding: 10px 11px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: #93b2f8; box-shadow: 0 0 0 3px rgba(47, 107, 255, .08); }
.input::placeholder, .textarea::placeholder { color: #a3afc0; }
.select { padding-right: 26px; }
.filterbar .input, .filterbar .select { min-width: 130px; }
.filterbar .input.wide { min-width: 190px; }
.filterbar .btn { flex: 0 0 auto; }
.input-full { width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .third { grid-column: span 2; }
.form-hint { color: var(--muted); font-size: var(--fs-xs); margin-top: 5px; line-height: 1.6; }
.req { color: var(--red); font-style: normal; margin-left: 2px; }
.check { display: inline-flex; align-items: center; gap: 7px; font-size: var(--fs-md); color: #40536b; cursor: pointer; }
.check input { width: 15px; height: 15px; accent-color: var(--blue); }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 4px; }

.pager { display: flex; align-items: center; gap: 5px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line-2); }
.pg { min-width: 31px; height: 31px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border: 1px solid var(--line); border-radius: 7px; color: #52657c; font-size: var(--fs-sm); background: #fff; }
.pg:hover { border-color: #b9cdf5; color: var(--blue); }
.pg.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg-info { color: var(--muted); font-size: var(--fs-xs); margin-left: 7px; }

/* ---------- 详情 ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line-2); }
.detail-head h2 { font-size: var(--fs-2xl); letter-spacing: -.2px; line-height: 1.4; }
.detail-head .meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: var(--muted); font-size: var(--fs-sm); margin-top: 9px; }
.detail-head .meta b { color: #3b4f68; font-weight: 600; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dl { display: grid; grid-template-columns: 116px 1fr; gap: 12px 16px; font-size: var(--fs-md); }
.dl dt { color: var(--muted); font-size: var(--fs-sm); }
.dl dd { margin: 0; color: #26374c; line-height: 1.65; }
.section-title { font-size: var(--fs-md); font-weight: 650; color: #32475f; margin-bottom: 13px; padding-left: 9px; border-left: 3px solid var(--blue); line-height: 1.2; }
.quote-box { background: #f8fafd; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px; line-height: 1.8; color: #34485f; font-size: var(--fs-md); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 5px; bottom: 4px; width: 1px; background: #dce5f1; }
.tl-item { position: relative; padding: 0 0 16px 0; font-size: var(--fs-sm); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -17px; top: 5px; width: 7px; height: 7px; border-radius: 50%; background: #a9c0e5; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8e3f3; }
.tl-item b { font-weight: 600; color: #2f435b; }
.tl-item .tl-time { color: #8b9aad; font-size: var(--fs-xs); margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 22px; background: #fff; overflow-x: auto; }
.tabs a { padding: 13px 14px 12px; color: var(--muted); font-size: var(--fs-md); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ---------- 卡片 / 项目 ---------- */
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.project-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; box-shadow: var(--shadow); transition: .18s; display: flex; flex-direction: column; }
.project-card:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24, 44, 76, .1); border-color: #d3dff2; }
.pc-top { display: flex; align-items: flex-start; gap: 10px; }
.pc-code { font-size: var(--fs-xs); font-weight: 700; color: var(--blue); background: #edf3ff; padding: 3px 7px; border-radius: 6px; letter-spacing: .04em; }
.pc-name { font-size: var(--fs-lg); font-weight: 650; line-height: 1.45; margin: 10px 0 5px; color: #1b2b40; }
.pc-company { color: var(--muted); font-size: var(--fs-xs); line-height: 1.6; }
.pc-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 15px; padding-top: 13px; border-top: 1px dashed #e3eaf4; text-align: center; }
.pc-stats b { display: block; font-size: var(--fs-xl); color: #26394f; font-variant-numeric: tabular-nums; }
.pc-stats span { color: var(--muted); font-size: var(--fs-2xs); }
.pc-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: var(--muted); font-size: var(--fs-xs); }
.avatar-sm { width: 24px; height: 24px; border-radius: 50%; background: #e7eefb; color: #3a62a8; display: inline-grid; place-items: center; font-size: var(--fs-2xs); font-weight: 600; margin-right: 5px; }
.progress { height: 5px; background: #edf1f8; border-radius: 5px; overflow: hidden; margin-top: 8px; }
.progress i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, #4f8bff, #2f6bff); }
.progress.teal i { background: linear-gradient(90deg, #2bc4b2, #0f9d8f); }
.progress.amber i { background: linear-gradient(90deg, #f0b75c, #d98b1f); }

/* ---------- 图表 ---------- */
.bars { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding: 6px 4px 0; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 46px; background: linear-gradient(180deg, #6f9dff, #2f6bff); border-radius: 7px 7px 3px 3px; position: relative; min-height: 4px; transition: .3s; }
.bar span { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); font-size: var(--fs-xs); color: #4c6380; font-weight: 600; }
.bar-x { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.legend { display: flex; gap: 16px; font-size: var(--fs-xs); color: var(--muted); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 5px; }

/* ---------- 空态 ---------- */
.empty { text-align: center; padding: 56px 24px; color: var(--muted); }
.empty .e-ico { width: 56px; height: 56px; border-radius: 16px; background: #eef3fb; color: #8fa6c5; display: inline-grid; place-items: center; margin-bottom: 12px; }
.empty h3 { font-size: var(--fs-lg); color: #40546c; margin-bottom: 5px; }
.empty p { font-size: var(--fs-sm); line-height: 1.7; }

/* ---------- 提示条 ---------- */
.flash { display: flex; align-items: flex-start; gap: 9px; padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; font-size: var(--fs-md); line-height: 1.6; border: 1px solid; }
.flash span { flex: 1; }
.flash-success { background: #eefaf4; border-color: #c8ecdb; color: #126b4b; }
.flash-error { background: #fdf1f1; border-color: #f3cfcf; color: #a83636; }
.flash-warn { background: #fdf8ed; border-color: #f1e0bb; color: #90621a; }
.flash-x { border: 0; background: transparent; color: inherit; opacity: .6; cursor: pointer; padding: 0 2px; }
.flash-x:hover { opacity: 1; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #f3f7ff; border: 1px solid #dde8ff; color: #3d5d94; border-radius: 10px; padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.65; }

/* ---------- 模态框 ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 44px 16px; overflow-y: auto; }
.modal.open { display: flex; }
.modal-mask { position: fixed; inset: 0; background: rgba(13, 27, 48, .5); backdrop-filter: blur(2px); }
.modal-card { position: relative; background: #fff; border-radius: 16px; width: 100%; max-width: 700px; box-shadow: 0 30px 70px rgba(8, 24, 50, .3); animation: pop .18s ease-out; }
.modal-card.wide { max-width: 960px; }
.modal-card.slim { max-width: 480px; }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { padding: 19px 22px 15px; border-bottom: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; }
.modal-head h3 { font-size: var(--fs-xl); }
.modal-head .sub { color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.modal-head .icon-btn { margin-left: auto; }
.modal-body { padding: 20px 22px; }
.modal-foot { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; justify-content: flex-end; gap: 9px; background: #fbfcfe; border-radius: 0 0 16px 16px; }

/* ---------- 文档 ---------- */
.file-chip { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #eef3fb; color: #4f6f9c; font-size: var(--fs-3xs); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; flex: 0 0 auto; }
.file-chip.pdf { background: #fdeeee; color: #c74848; }
.file-chip.png, .file-chip.jpg, .file-chip.jpeg, .file-chip.gif, .file-chip.webp { background: #e9f7f1; color: #14875d; }
.file-chip.xls, .file-chip.xlsx { background: #e8f6ed; color: #1b7d47; }
.file-chip.doc, .file-chip.docx { background: #eaf1fd; color: #2b5fb4; }
.file-chip.dwg, .file-chip.dxf { background: #f4f0e6; color: #8a6a22; }
.file-row { display: flex; align-items: center; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line-2); }
.file-row:last-child { border-bottom: 0; }
.file-row .f-name { font-weight: 550; font-size: var(--fs-md); }
.file-row .f-meta { color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.file-row .f-ops { margin-left: auto; display: flex; gap: 7px; align-items: center; }

/* ---------- 预览 ---------- */
.preview-box { position: relative; background: #eef2f8; border-radius: 12px; min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.preview-box iframe { width: 100%; height: 560px; border: 0; background: #fff; }
.preview-box img { max-height: 560px; display: block; }
.watermark-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.watermark-layer span { position: absolute; color: rgba(40, 60, 90, .13); font-size: var(--fs-xl); font-weight: 700; transform: rotate(-26deg); white-space: nowrap; letter-spacing: 2px; }
.doc-type-icon { width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center; background: #eef3fb; color: #4a6c9b; }

/* ---------- 正文索引 ---------- */
.text-body-box { border: 1px solid var(--line-2); border-radius: 11px; padding: 14px 16px; background: #fbfcfe; }
.text-body-scroll { max-height: 260px; overflow: auto; font-size: var(--fs-md); line-height: 1.85; color: #33445c; white-space: normal; }
.text-body-scroll mark { background: #fff1a8; color: inherit; padding: 0 1px; border-radius: 2px; }

/* ---------- 认证 / 登录 ---------- */
.auth-body { min-height: 100vh; background: #0c1a30; color: #fff; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; }
.auth-left { position: relative; padding: 52px 56px; background: radial-gradient(circle at 12% 8%, #1e3f70 0, #0c1a30 55%); display: flex; flex-direction: column; overflow: hidden; }
.auth-left::after { content: ""; position: absolute; right: -160px; bottom: -220px; width: 620px; height: 620px; border-radius: 50%; border: 1px solid rgba(94, 143, 225, .18); box-shadow: 0 0 0 60px rgba(94, 143, 225, .04), 0 0 0 130px rgba(94, 143, 225, .03); }
.auth-brand { display: flex; align-items: center; gap: 11px; position: relative; z-index: 2; }
.auth-brand .brand-mark { width: 42px; height: 42px; }
.auth-brand strong { font-size: var(--fs-xl); letter-spacing: .4px; }
.auth-brand small { display: block; color: #8fa8ca; font-size: var(--fs-xs); margin-top: 3px; }
.auth-hero { margin-top: auto; margin-bottom: auto; padding: 44px 0; position: relative; z-index: 2; max-width: 560px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 7px; color: #9db8de; font-size: var(--fs-xs); letter-spacing: .16em; padding: 6px 11px; border: 1px solid rgba(120, 160, 220, .25); border-radius: 30px; margin-bottom: 22px; }
.auth-hero h1 { font-size: 35px; line-height: 1.32; letter-spacing: -.6px; font-weight: 650; }
.auth-hero h1 em { font-style: normal; color: #6fa0ff; }
.auth-hero p { color: #9fb4d1; font-size: var(--fs-md); line-height: 1.9; margin-top: 18px; max-width: 470px; }
.auth-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 34px; }
.auth-feature { border: 1px solid rgba(120, 160, 220, .14); background: rgba(255, 255, 255, .025); border-radius: 12px; padding: 14px 15px; }
.auth-feature b { display: block; font-size: var(--fs-md); margin-bottom: 5px; color: #e4edf9; }
.auth-feature span { color: #8ea6c4; font-size: var(--fs-xs); line-height: 1.6; }
.auth-feature .ic { color: #6fa0ff; margin-bottom: 8px; }
.auth-stats { display: flex; gap: 30px; margin-top: 34px; }
.auth-stats b { display: block; font-size: var(--fs-2xl); color: #eaf2fe; }
.auth-stats span { font-size: var(--fs-xs); color: #7f98b8; }
.auth-right { background: #f7f9fd; display: flex; align-items: center; justify-content: center; padding: 40px 28px; color: var(--ink); }
.auth-card { width: 100%; max-width: 380px; }
.auth-card h2 { font-size: 24px; letter-spacing: -.3px; }
.auth-card .auth-sub { color: var(--muted); font-size: var(--fs-md); margin: 8px 0 26px; line-height: 1.6; }
.auth-field { margin-bottom: 15px; }
.auth-field label { display: block; font-size: var(--fs-sm); color: #52657c; margin-bottom: 6px; font-weight: 550; }
.auth-input { position: relative; }
.auth-input .ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #94a4b8; }
.auth-input input { width: 100%; height: 44px; border: 1px solid #dce4ef; border-radius: 10px; padding: 0 13px 0 38px; background: #fff; outline: 0; }
.auth-input input:focus { border-color: #8fb0f7; box-shadow: 0 0 0 3px rgba(47, 107, 255, .09); }
.auth-card .btn { height: 44px; margin-top: 8px; font-size: var(--fs-base); }
.auth-foot { margin-top: 22px; font-size: var(--fs-xs); color: #8b9aad; line-height: 1.8; }
.demo-accounts { margin-top: 22px; border: 1px dashed #d5e0ef; border-radius: 11px; padding: 12px 14px; background: #fff; }
.demo-accounts .da-title { font-size: var(--fs-xs); color: #5d7089; font-weight: 600; margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.demo-accounts .da-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; font-size: var(--fs-xs); color: #6d7f95; }
.demo-accounts .da-grid a {
    display: block; padding: 8px 10px; border: 1px solid #e6edf7; border-radius: 9px; background: #fbfdff;
    transition: .15s; line-height: 1.5;
}
.demo-accounts .da-grid a:hover { border-color: #9dbcf8; background: #f2f7ff; box-shadow: 0 4px 12px rgba(47, 107, 255, .1); }
.demo-accounts .da-grid a.is-loading { border-color: #2f6bff; background: #eef4ff; }
.demo-accounts .da-grid a b { display: block; color: #2f4664; font-size: var(--fs-sm); }
.demo-accounts .da-grid a span { display: block; font-family: Consolas, monospace; font-size: var(--fs-2xs); color: #8090a5; }
.demo-accounts .da-grid a em { font-style: normal; font-size: var(--fs-2xs); color: #2a63e8; }
.demo-accounts b { color: #3f5671; font-weight: 600; }
.da-hint { margin-top: 9px; font-size: var(--fs-2xs); color: #8b9aad; line-height: 1.7; }
.auth-mobile-brand { display: none; }

/* ---------- 打印 ---------- */
.print-body { background: #eef1f6; font-family: "SimSun", "Songti SC", serif; color: #111; }
.print-page { background: #fff; width: 210mm; min-height: 297mm; margin: 24px auto; padding: 18mm 16mm; box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
.print-page h1 { font-size: 22pt; text-align: center; letter-spacing: 4px; margin-bottom: 6mm; font-weight: 700; }
.print-page .print-sub { text-align: center; font-size: 9pt; color: #555; margin-bottom: 8mm; }
.print-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm 10mm; font-size: 10.5pt; margin-bottom: 5mm; }
.print-meta div { border-bottom: 1px solid #bbb; padding: 1.5mm 0; }
.print-meta b { font-weight: 400; color: #333; }
.print-table { width: 100%; border-collapse: collapse; font-size: 10pt; margin: 4mm 0; }
.print-table th, .print-table td { border: 1px solid #333; padding: 2mm 2.5mm; text-align: left; }
.print-table th { background: #f2f2f2; font-weight: 700; }
.print-table td.r, .print-table th.r { text-align: right; }
.print-section { margin: 4mm 0; }
.print-section h3 { font-size: 10.5pt; margin-bottom: 2mm; }
.print-section p { font-size: 10pt; line-height: 1.9; min-height: 8mm; border-bottom: 1px dotted #bbb; white-space: pre-wrap; }
.sign-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8mm; margin-top: 14mm; font-size: 10.5pt; }
.sign-row div { border-bottom: 1px solid #333; padding-bottom: 10mm; }
.print-foot { margin-top: 10mm; font-size: 8.5pt; color: #666; text-align: center; }
.print-toolbar { position: fixed; top: 14px; right: 18px; display: flex; gap: 8px; z-index: 9; }
.print-toolbar .btn { box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
@media print {
    .print-toolbar { display: none !important; }
    .print-body { background: #fff; }
    .print-page { margin: 0; box-shadow: none; width: auto; min-height: auto; padding: 0; }
    @page { size: A4; margin: 16mm; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1200px) {
    .kpis { grid-template-columns: repeat(2, 1fr); }
    .project-grid { grid-template-columns: repeat(2, 1fr); }
    .grid-2, .grid-2eq, .grid-3 { grid-template-columns: 1fr; }
    .top-search { width: 230px; }
}
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); transition: .2s; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
    body.nav-open .sidebar { transform: none; }
    body.nav-open .sidebar-mask { display: block; position: fixed; inset: 0; z-index: 50; background: rgba(10, 20, 36, .45); }
    .main { margin-left: 0; }
    .menu-btn { display: grid !important; }
    .content { padding: 18px 16px 44px; }
    .topbar { padding: 10px 16px; gap: 10px; }
    .topbar-title h1 { font-size: var(--fs-xl); }
    .top-search { display: none; }
    .user-meta { display: none; }
    .user-menu { padding-left: 8px; gap: 2px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-grid .third { grid-column: auto; }
    .project-grid { grid-template-columns: 1fr; }
    .detail-head { flex-direction: column; }
    .detail-actions { margin-left: 0; justify-content: flex-start; }
    .kpis { gap: 10px; }
    .kpi { padding: 14px; }
    .kpi .k-val { font-size: 24px; }
    .auth-wrap { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { min-height: 100vh; }
    .auth-mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; color: var(--ink); }
    .auth-mobile-brand strong { font-size: var(--fs-xl); }
}
@media (max-width: 560px) {
    .kpis { grid-template-columns: 1fr 1fr; }
    .filterbar { padding: 13px 14px; }
    .filterbar .field { flex: 1 1 44%; }
    .filterbar .input, .filterbar .select { width: 100%; min-width: 0; }
    .filterbar .btn { flex: 1 1 100%; }
    .panel-head { padding: 14px; }
    .panel-body { padding: 15px; }
    .table th, .table td { padding: 10px 11px; }
    .detail-head { padding: 17px; }
}

/* ---------- 官网 / 落地页 ---------- */
.landing { background: #f7f9fd; }
.lp-nav { max-width: 1240px; margin: 0 auto; padding: 20px 28px; display: flex; align-items: center; gap: 34px; }
.lp-brand { display: flex; align-items: center; gap: 11px; color: var(--ink); }
.lp-brand:hover { color: var(--ink); }
.lp-brand strong { display: block; font-size: var(--fs-lg); letter-spacing: .2px; }
.lp-brand small { color: var(--muted); font-size: var(--fs-2xs); letter-spacing: .06em; }
.lp-links { display: flex; gap: 24px; margin-left: auto; }
.lp-links a { color: #50647c; font-size: var(--fs-md); }
.lp-links a:hover { color: var(--blue); }
.lp-hero { max-width: 1240px; margin: 0 auto; padding: 46px 28px 72px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 7px; background: #eaf1ff; color: #2f5fc4; border: 1px solid #d8e4ff; border-radius: 30px; padding: 6px 13px; font-size: var(--fs-xs); font-weight: 600; }
.lp-hero h1 { font-size: 50px; line-height: 1.22; letter-spacing: -1.4px; margin: 22px 0 18px; color: #0f1f35; font-weight: 700; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(100deg, #2f6bff, #0f9d8f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero-text > p { color: #5d7089; font-size: 14.5px; line-height: 1.95; max-width: 540px; }
.lp-cta { display: flex; gap: 11px; margin-top: 28px; flex-wrap: wrap; }
.lp-note { color: #8b9aad; font-size: var(--fs-xs); margin-top: 14px; }
.lp-stats { display: flex; gap: 40px; margin-top: 40px; padding-top: 24px; border-top: 1px solid #e4ebf5; }
.lp-stats b { display: block; font-size: 24px; color: #172a44; letter-spacing: -.5px; }
.lp-stats span { color: var(--muted); font-size: var(--fs-xs); }
.lp-visual { position: relative; padding: 18px 0; }
.lp-glow { position: absolute; inset: 8% 4% 2% 6%; background: radial-gradient(circle at 60% 40%, rgba(47, 107, 255, .22), transparent 62%), radial-gradient(circle at 20% 80%, rgba(15, 157, 143, .16), transparent 60%); filter: blur(26px); }
.lp-mock { position: relative; background: #fff; border: 1px solid #e1e8f3; border-radius: 16px; box-shadow: 0 30px 70px rgba(21, 44, 82, .16); overflow: hidden; transform: perspective(1200px) rotateY(-5deg) rotateX(2deg); }
.lp-mock-bar { height: 34px; background: #f5f8fd; border-bottom: 1px solid #e8eef7; display: flex; align-items: center; gap: 5px; padding: 0 12px; }
.lp-mock-bar i { width: 7px; height: 7px; border-radius: 50%; background: #dbe3ef; }
.lp-mock-bar i:first-child { background: #f0b5b5; }
.lp-mock-bar i:nth-child(2) { background: #f0d79a; }
.lp-mock-bar i:nth-child(3) { background: #a8dcc2; }
.lp-mock-bar span { margin-left: 8px; font-size: var(--fs-2xs); color: #8b9aad; letter-spacing: .05em; }
.lp-mock-body { display: grid; grid-template-columns: 118px 1fr; }
.lp-mock-side { background: #12233c; padding: 14px 9px; display: flex; flex-direction: column; gap: 3px; }
.lms { color: #8ca2c0; font-size: var(--fs-2xs); padding: 7px 9px; border-radius: 6px; }
.lms.on { background: #2f6bff; color: #fff; }
.lp-mock-main { padding: 14px; background: #fafcff; }
.lmm-head { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: #26394f; margin-bottom: 11px; }
.lmm-head i { width: 54px; height: 7px; border-radius: 5px; background: #e9eff8; }
.lmm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.lmm-kpis div { background: #fff; border: 1px solid #e9eef7; border-radius: 7px; padding: 8px 9px; }
.lmm-kpis span { display: block; font-size: 8px; color: #8b9aad; }
.lmm-kpis b { font-size: var(--fs-lg); color: #1c2f47; }
.lmm-kpis b.amber { color: #d98b1f; }
.lmm-chart { background: #fff; border: 1px solid #e9eef7; border-radius: 7px; padding: 9px; margin-top: 8px; }
.lmm-bars { height: 58px; display: flex; align-items: flex-end; gap: 7px; }
.lmm-bars i { flex: 1; border-radius: 3px 3px 1px 1px; background: linear-gradient(180deg, #7ea4ff, #2f6bff); }
.lmm-caption { font-size: var(--fs-3xs); color: #9aa8ba; margin-top: 5px; }
.lmm-list { margin-top: 8px; background: #fff; border: 1px solid #e9eef7; border-radius: 7px; overflow: hidden; }
.lmm-list div { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-bottom: 1px solid #f1f5fb; font-size: 8.5px; color: #40546c; }
.lmm-list div:last-child { border-bottom: 0; }
.lmm-file { font-size: 6.5px; font-weight: 700; background: #eef3fb; color: #4f6f9c; border-radius: 3px; padding: 3px 4px; }
.lmm-list em { margin-left: auto; font-style: normal; font-size: var(--fs-3xs); color: #2a8a63; }
.lp-section { max-width: 1240px; margin: 0 auto; padding: 56px 28px; }
.lp-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.lp-kicker { display: inline-block; font-size: var(--fs-xs); letter-spacing: .18em; color: #2f6bff; font-weight: 700; margin-bottom: 10px; }
.lp-kicker.light { color: #8eb4ff; }
.lp-head h2 { font-size: 30px; letter-spacing: -.7px; color: #10203a; line-height: 1.35; }
.lp-head p { color: #6b7c93; font-size: var(--fs-md); margin-top: 12px; line-height: 1.8; }
.lp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-feature { background: #fff; border: 1px solid #e5ebf4; border-radius: 16px; padding: 24px; transition: .2s; }
.lp-feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(21, 44, 82, .09); border-color: #d3e0f4; }
.lpf-ico { width: 44px; height: 44px; border-radius: 12px; background: #eaf1ff; color: #2f6bff; display: grid; place-items: center; margin-bottom: 15px; }
.lpf-ico.teal { background: #e5f7f4; color: #0f9d8f; }
.lpf-ico.amber { background: #fdf3e2; color: #d98b1f; }
.lpf-ico.green { background: #e8f7ef; color: #17996a; }
.lpf-ico.purple { background: #f1ecff; color: #6b46d6; }
.lpf-ico.slate { background: #eef2f8; color: #4d6482; }
.lpf-ico.blue { background: #eaf1ff; color: #2f6bff; }
.lpf-ico.red { background: #fdecec; color: #c33b3b; }
.lp-feature h3 { font-size: var(--fs-xl); margin-bottom: 8px; color: #182a43; }
.lp-feature p { color: #6b7c93; font-size: var(--fs-sm); line-height: 1.85; }
.lp-feature ul { margin: 14px 0 0; padding: 13px 0 0; border-top: 1px dashed #e6ecf5; list-style: none; }
.lp-feature li { color: #52657c; font-size: var(--fs-xs); line-height: 2; padding-left: 15px; position: relative; }
.lp-feature li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #9fb7dc; }
.lp-band { background: radial-gradient(circle at 15% 20%, #1b3a66 0, #0e1e36 60%); color: #fff; padding: 52px 28px; }
.lp-band-inner { max-width: 1184px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-band h2 { font-size: 26px; letter-spacing: -.5px; line-height: 1.4; margin: 6px 0 12px; }
.lp-band p { color: #9fb4d1; font-size: var(--fs-md); line-height: 1.85; }
.lp-modules { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.lp-modules span { border: 1px solid rgba(130, 170, 235, .25); background: rgba(255, 255, 255, .04); color: #d8e6fb; border-radius: 9px; padding: 12px 18px; font-size: var(--fs-md); }
.lp-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-roles div { background: #fff; border: 1px solid #e5ebf4; border-radius: 12px; padding: 18px 20px; }
.lp-roles b { display: block; font-size: var(--fs-base); color: #1c2f47; margin-bottom: 6px; }
.lp-roles span { color: #6b7c93; font-size: var(--fs-sm); line-height: 1.7; }
.lp-cta-band { max-width: 1184px; margin: 10px auto 64px; padding: 34px 38px; border-radius: 20px; background: linear-gradient(105deg, #2f6bff, #1d5fe8 55%, #0f8f85); color: #fff; display: flex; align-items: center; gap: 30px; justify-content: space-between; box-shadow: 0 22px 50px rgba(33, 92, 224, .28); }
.lp-cta-band h2 { font-size: 22px; letter-spacing: -.4px; }
.lp-cta-band p { color: #d5e3fb; font-size: var(--fs-sm); margin-top: 8px; }
.lp-cta-band .btn { background: #fff; color: #1f52d0; border-color: #fff; }
.lp-cta-band .btn:hover { background: #f1f6ff; color: #1f52d0; }
.lp-footer { max-width: 1240px; margin: 0 auto; padding: 26px 28px 40px; border-top: 1px solid #e4ebf5; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.lp-foot-links { display: flex; gap: 22px; color: #8b9aad; font-size: var(--fs-xs); align-items: center; }
.lp-foot-links a { color: #5d7089; }
@media (max-width: 1000px) {
    .lp-hero, .lp-band-inner { grid-template-columns: 1fr; }
    .lp-visual { order: -1; }
    .lp-mock { transform: none; }
    .lp-hero h1 { font-size: 40px; }
    .lp-features, .lp-roles { grid-template-columns: 1fr 1fr; }
    .lp-links { display: none; }
    .lp-modules { justify-content: flex-start; }
    .lp-cta-band { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
    .lp-hero h1 { font-size: 32px; }
    .lp-features, .lp-roles { grid-template-columns: 1fr; }
    .lp-stats { gap: 22px; flex-wrap: wrap; }
    .lp-nav { padding: 16px; }
    .lp-hero, .lp-section { padding-left: 16px; padding-right: 16px; }
    .lp-footer { flex-direction: column; align-items: flex-start; }
    .lp-cta-band { margin: 10px 16px 40px; padding: 26px; }
}

/* ===== 列表 / 详情补充组件 ===== */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: #eef3fb; border-radius: 11px; flex-wrap: wrap; }
.seg-item { padding: 8px 16px; border-radius: 8px; color: #55697f; font-size: var(--fs-sm); font-weight: 550; }
.seg-item:hover { color: var(--ink); background: rgba(255, 255, 255, .6); }
.seg-item.active { background: #fff; color: var(--blue); box-shadow: 0 2px 8px rgba(30, 60, 110, .1); }

.table tfoot th { background: #f8fafd; border-top: 1px solid var(--line); border-bottom: 0; font-size: var(--fs-sm); color: #33485f; font-weight: 650; }
.table tfoot th.th-right { text-align: right; font-variant-numeric: tabular-nums; }
mark { background: #fff3bf; color: inherit; padding: 0 2px; border-radius: 3px; }

.kpi .k-num { font-size: 29px; font-weight: 700; letter-spacing: -.5px; margin: 9px 0 2px; font-variant-numeric: tabular-nums; }
.kpi .k-label { color: #3f536b; font-size: var(--fs-sm); font-weight: 550; }
.kpi .k-label .k-sub { color: var(--muted); font-weight: 400; font-size: var(--fs-xs); margin-left: 8px; }

/* 横向趋势条 */
.trend-row { padding: 9px 0; border-bottom: 1px dashed #eef2f8; }
.trend-row:last-child { border-bottom: 0; }
.trend-label { font-size: var(--fs-xs); color: #6d7f95; margin-bottom: 5px; }
.trend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 14px; }
.trend-cell { display: flex; align-items: center; gap: 7px; }
.trend-name { font-size: var(--fs-2xs); color: #93a2b5; flex: 0 0 auto; width: 40px; }
.trend-track { flex: 1; height: 8px; background: #f0f4fa; border-radius: 6px; overflow: hidden; }
.trend-bar { display: block; height: 100%; border-radius: 6px; background: #2f6bff; min-width: 0; }
.trend-bar.docs { background: linear-gradient(90deg, #4d82ff, #2f6bff); }
.trend-bar.inbound { background: linear-gradient(90deg, #23b3a2, #0f9d8f); }
.trend-bar.receipts { background: linear-gradient(90deg, #ecac48, #d98b1f); }
.trend-bar.logs { background: linear-gradient(90deg, #9a7ce8, #7c5cd6); }
.trend-num { font-size: var(--fs-xs); color: #4c6380; min-width: 16px; text-align: right; font-variant-numeric: tabular-nums; }

/* 环形图 */
.ring-wrap { display: flex; justify-content: center; padding: 8px 0 14px; }
.ring { --p: 100; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(#2f6bff 0 40%, #0f9d8f 40% 65%, #d98b1f 65% 84%, #7c5cd6 84% 100%); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.ring-in { position: relative; text-align: center; }
.ring-in b { display: block; font-size: 24px; color: #1c2f47; font-variant-numeric: tabular-nums; }
.ring-in span { font-size: var(--fs-2xs); color: var(--muted); }
.ring-legend { display: grid; gap: 7px; }
.rl-row { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: #4e6278; }
.rl-row b { margin-left: auto; font-variant-numeric: tabular-nums; }
.rl-dot { width: 9px; height: 9px; border-radius: 3px; background: #2f6bff; }
.rl-dot.inbound { background: #0f9d8f; }
.rl-dot.receipts { background: #d98b1f; }
.rl-dot.logs { background: #7c5cd6; }

/* 日志正文 / 照片 / 画廊 */
.log-text { background: #f8fafd; border: 1px solid var(--line-2); border-radius: 10px; padding: 13px 15px; line-height: 1.85; color: #34485f; font-size: var(--fs-md); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gal-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; color: inherit; background: #fbfcfe; }
.gal-item:hover { border-color: #bfd2f7; background: #f5f9ff; color: inherit; }
.gal-chip { width: 30px; height: 24px; border-radius: 6px; background: #e9f7f1; color: #14875d; display: grid; place-items: center; font-size: var(--fs-3xs); font-weight: 700; }
.gal-name { font-size: var(--fs-xs); color: #4d6178; word-break: break-all; line-height: 1.5; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.photo-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 10px 12px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; gap: 2px 9px; color: inherit; background: #fbfcfe; }
.photo-item:hover { border-color: #bfd2f7; color: inherit; }
.photo-item .file-chip { grid-row: span 2; }
.photo-item .p-name { font-size: var(--fs-sm); font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-item .p-meta { font-size: var(--fs-2xs); color: var(--muted); }

/* 权限矩阵 / 个人中心 */
.perm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.perm-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; background: #fbfcfe; }
.perm-title { font-size: var(--fs-sm); font-weight: 600; color: #33485f; margin-bottom: 8px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 14px; border-bottom: 1px dashed var(--line-2); }
.profile-head .p-name { font-size: var(--fs-xl); font-weight: 650; color: #1c2f47; }
.avatar.lg { width: 56px; height: 56px; font-size: 22px; }

@media (max-width: 900px) {
    .trend-grid { grid-template-columns: 1fr 1fr; }
    .perm-grid { grid-template-columns: 1fr; }
}

/* 现场照片缩略图 */
.gal-photo { padding: 8px; gap: 8px; }
.gal-img { width: 100%; height: 104px; object-fit: cover; border-radius: 7px; background: #eef2f7; display: block; }

/* 顶部项目上下文与切换（REQ-B04） */
.proj-switch { display: flex; align-items: center; gap: 9px; padding: 5px 10px 5px 9px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfcfe; max-width: 380px; }
.ps-dot { width: 7px; height: 7px; border-radius: 50%; background: #2f6bff; flex: 0 0 auto; box-shadow: 0 0 0 3px rgba(47,107,255,.12); }
.ps-meta { min-width: 0; line-height: 1.35; }
.ps-meta strong { display: block; font-size: var(--fs-sm); font-weight: 650; color: #1c2f47; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-meta span { font-size: var(--fs-xs); color: #7a8ba1; }
.ps-meta b { color: #2f6bff; font-weight: 650; }
.ps-drop { position: relative; }
.ps-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); width: 300px; background: #fff; border: 1px solid var(--line-2); border-radius: 11px; box-shadow: 0 18px 40px rgba(20,40,70,.14); padding: 7px; z-index: 40; max-height: 360px; overflow: auto; }
.ps-drop.open .ps-menu { display: block; }
.ps-menu-head { font-size: var(--fs-xs); color: #8a99ad; padding: 6px 8px 8px; }
.ps-menu a { display: block; padding: 8px 9px; border-radius: 8px; color: inherit; text-decoration: none; }
.ps-menu a:hover { background: #f2f6fc; }
.ps-menu a b { font-size: var(--fs-xs); color: #2f6bff; margin-right: 6px; }
.ps-menu a span { font-size: var(--fs-sm); color: #26384d; }
.ps-menu a.ps-more { font-size: var(--fs-sm); color: #2f6bff; text-align: center; border-top: 1px dashed var(--line-2); border-radius: 0 0 8px 8px; margin-top: 4px; }

@media (max-width: 1080px) {
    .proj-switch { display: none; }
}

.snippet { margin-top: 4px; line-height: 1.75; color: #4a5768; word-break: break-word; }
.snippet mark { background: #ffe58f; }

/* ---------------- 现场采集（移动端优先） ---------------- */
.capture-wrap { max-width: 880px; margin: 0 auto; }
.capture-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.capture-head h2 { margin: 0 0 3px; font-size: var(--fs-2xl); }
.capture-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.capture-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 112px; border: 1.5px dashed #c4d2e4; border-radius: 14px; background: #fbfdff; color: #3d5a80; font-size: var(--fs-base); font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; user-select: none; }
.capture-btn:hover { border-color: #2f6bff; background: #f4f8ff; }
.capture-primary { border-style: solid; border-color: #2f6bff; background: linear-gradient(160deg, #2f6bff, #1c4fd8); color: #fff; }
.capture-primary:hover { background: linear-gradient(160deg, #3573ff, #1a4ac9); }
.capture-hint { margin-top: 10px; }
.capture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-top: 12px; }
.capture-card { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #f4f7fb; }
.capture-card img { display: block; width: 100%; height: 96px; object-fit: cover; }
.capture-meta { font-size: var(--fs-xs); color: #6b7c93; padding: 4px 6px; text-align: center; }
.capture-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; padding: 0; border: none; border-radius: 50%; background: rgba(15, 30, 50, .62); color: #fff; font-size: var(--fs-lg); line-height: 1; cursor: pointer; }
.capture-switch { display: flex; align-items: center; gap: 8px; font-size: var(--fs-md); font-weight: 500; }
.capture-submit { position: sticky; bottom: 12px; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; padding: 12px; background: rgba(255, 255, 255, .95); backdrop-filter: blur(6px); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 40, 70, .1); }
.capture-progress .capture-bar { height: 7px; background: #eef3fa; border-radius: 5px; overflow: hidden; margin-bottom: 6px; }
.capture-progress .capture-bar i { display: block; height: 100%; width: 0; background: #2f6bff; transition: width .2s; }
.btn-block { width: 100%; justify-content: center; }

@media (max-width: 720px) {
    .capture-actions { grid-template-columns: 1fr 1fr; }
    .capture-btn { min-height: 96px; }
    .capture-head h2 { font-size: var(--fs-xl); }
    .capture-submit { bottom: 6px; padding: 10px; }
}

/* ---------- 在线批注与签章 ---------- */
.annot-head { display: flex; align-items: center; gap: 18px; padding: 16px 20px; flex-wrap: wrap; }
.annot-head-main { min-width: 0; flex: 1; }
.annot-head-main h2 { font-size: var(--fs-xl); font-weight: 680; color: var(--ink); margin: 0 0 6px; }
.annot-head-stats { display: flex; gap: 10px; }
.annot-head-stats > div { min-width: 84px; text-align: center; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfcfe; }
.annot-head-stats b { display: block; font-size: var(--fs-2xl); color: var(--ink); line-height: 1.2; }
.annot-head-stats span { font-size: var(--fs-xs); color: var(--muted); }
.annot-banner { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; padding: 10px 14px; border-radius: 10px; background: #fff7e8; border: 1px solid #f3d9a6; color: #8a5a12; font-size: var(--fs-sm); }

.annot-shell { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 14px; margin-top: 14px; align-items: start; }
.annot-canvas-wrap { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.annot-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid var(--line-2); background: #fbfcfe; }
.annot-tools .spacer { flex: 1; }
.at-group { display: flex; align-items: center; gap: 4px; }
.at-sep { width: 1px; height: 22px; background: var(--line-2); }
.at-btn { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #41556e; font-size: var(--fs-sm); cursor: pointer; }
.at-btn:hover:not(:disabled) { background: #eef4ff; color: #1d4ed8; }
.at-btn.on { background: #e8f0ff; border-color: #c3d7ff; color: #1444c4; font-weight: 600; }
.at-btn:disabled { opacity: .45; cursor: not-allowed; }
.at-btn.at-nav { padding: 0 7px; border-color: var(--line-2); background: #fff; }
.at-btn.at-nav-next svg { transform: rotate(180deg); }
.at-page-label { font-size: var(--fs-sm); color: #41556e; display: inline-flex; align-items: center; gap: 5px; }
.at-page-label input { width: 46px; height: 26px; text-align: center; border: 1px solid var(--line-2); border-radius: 6px; font-size: var(--fs-sm); color: var(--ink); background: #fff; }
.at-color { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #d8e2ef; background: var(--sw); cursor: pointer; padding: 0; }
.at-color.on { box-shadow: 0 0 0 2px #2f6bff; transform: scale(1.08); }
.at-hint { font-size: var(--fs-sm); color: var(--muted); max-width: 300px; text-align: right; }

.annot-stage { position: relative; height: min(70vh, 620px); min-height: 380px; background: #eef2f8; overflow: hidden; }
.annot-stage > iframe { width: 100%; height: 100%; border: 0; background: #fff; display: block; position: relative; z-index: 0; }
.annot-stage > img { display: block; max-width: 100%; max-height: 100%; margin: 0 auto; object-fit: contain; background: #fff; position: relative; z-index: 0; }
.annot-stage.is-empty { display: flex; align-items: center; justify-content: center; }
.annot-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; }
.annot-layer.is-draw { pointer-events: auto; cursor: crosshair; }
.annot-marker { pointer-events: auto; cursor: pointer; }
.annot-marker.is-active { filter: drop-shadow(0 0 5px rgba(47, 107, 255, .55)); }
.annot-nopreview { text-align: center; color: var(--muted); padding: 40px 24px; }
.annot-nopreview h3 { font-size: var(--fs-lg); color: var(--ink); margin: 10px 0 6px; }
.annot-nopreview p { font-size: var(--fs-sm); margin: 0; }
.annot-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--line-2); font-size: var(--fs-xs); color: var(--muted); }

.annot-side { background: #fff; border: 1px solid var(--line-2); border-radius: 14px; display: flex; flex-direction: column; max-height: min(78vh, 700px); }
.annot-side-head { padding: 13px 14px 10px; border-bottom: 1px solid var(--line-2); }
.annot-side-head h3 { font-size: var(--fs-base); font-weight: 650; color: var(--ink); }
.annot-filters { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.af-btn { border: 1px solid var(--line-2); background: #fbfcfe; color: #4a5f79; font-size: var(--fs-xs); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.af-btn.on { background: #e8f0ff; border-color: #c3d7ff; color: #1444c4; font-weight: 600; }
.annot-list { overflow-y: auto; padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.annot-list-empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.annot-list-empty b { display: block; color: #43536a; margin-bottom: 5px; }
.annot-list-empty p { font-size: var(--fs-sm); margin: 0; line-height: 1.7; }
.annot-item { border: 1px solid var(--line-2); border-radius: 11px; padding: 10px 11px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.annot-item:hover { border-color: #cddcf3; }
.annot-item.is-active { border-color: #8fb2ff; box-shadow: 0 0 0 2px rgba(47, 107, 255, .12); }
.annot-item.st-resolved { background: #fbfdfb; }
.annot-item.st-revoked { background: #f8fafc; opacity: .8; }
.ai-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ai-no { width: 19px; height: 19px; border-radius: 50%; background: var(--c); color: #fff; font-size: var(--fs-xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ai-kind { font-size: var(--fs-sm); font-weight: 620; color: #2b3c53; }
.ai-page { font-size: var(--fs-xs); color: var(--muted); }
.ai-status { margin-left: auto; font-size: var(--fs-2xs); padding: 1px 7px; border-radius: 999px; border: 1px solid transparent; }
.ai-status.st-open { background: #fff3e6; color: #b45309; border-color: #f5d8b0; }
.ai-status.st-resolved { background: #eaf7ee; color: #15803d; border-color: #bfe6cd; }
.ai-status.st-revoked { background: #eef2f8; color: #64748b; border-color: #dbe3ee; }
.ai-note { font-size: var(--fs-sm); color: #33465e; line-height: 1.65; margin-top: 6px; white-space: pre-wrap; word-break: break-word; }
.ai-seal { margin-top: 6px; font-size: var(--fs-2xs); color: #7a8ba3; }
.ai-seal code { background: #f1f5fb; border-radius: 4px; padding: 0 4px; font-size: var(--fs-2xs); }
.ai-meta { font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.ai-replies { margin-top: 7px; border-left: 2px solid #e4ecf7; padding-left: 8px; display: flex; flex-direction: column; gap: 5px; }
.ai-reply { font-size: var(--fs-sm); color: #40546c; line-height: 1.6; }
.ai-reply b { color: #1f3a5c; margin-right: 5px; }
.ai-reply span { display: block; font-size: var(--fs-2xs); color: var(--muted); }
.ai-ops { display: flex; gap: 8px; margin-top: 8px; }
.ai-op { border: none; background: none; padding: 0; font-size: var(--fs-xs); color: #2f6bff; cursor: pointer; }
.ai-op.danger { color: #dc2626; }
.ai-op:hover { text-decoration: underline; }
.ai-reply-form { margin-top: 8px; }
.ai-reply-form textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 8px; font-size: var(--fs-sm); font-family: inherit; resize: vertical; }
.ai-reply-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 5px; }
.ai-reply-btns button { border: 1px solid var(--line-2); background: #fff; border-radius: 7px; padding: 3px 10px; font-size: var(--fs-xs); cursor: pointer; }
.ai-reply-btns button.btn-primary { background: #2f6bff; border-color: #2f6bff; color: #fff; }
.annot-legend { border-top: 1px solid var(--line-2); padding: 11px 14px 13px; background: #fbfcfe; border-radius: 0 0 14px 14px; }
.al-title { display: flex; align-items: center; gap: 5px; font-size: var(--fs-sm); font-weight: 620; color: #3a4f68; margin-bottom: 4px; }
.annot-legend p { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; margin: 0; }

.annot-composer { position: fixed; z-index: 70; width: 286px; max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: #fff; border: 1px solid #dbe5f2; border-radius: 13px; box-shadow: 0 18px 42px rgba(18, 38, 66, .2); }
.ac-head { padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-md); font-weight: 650; color: var(--ink); flex: 0 0 auto; }
.ac-body { padding: 11px 14px; flex: 1 1 auto; overflow-y: auto; min-height: 0; }
.ac-label { display: block; font-size: var(--fs-xs); color: #4d637d; margin: 8px 0 4px; }
.ac-label:first-child { margin-top: 0; }
.ac-label em { font-style: normal; color: #dc2626; font-size: var(--fs-2xs); }
.ac-body .input, .ac-body textarea { width: 100%; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font-size: var(--fs-sm); font-family: inherit; }
.ac-stamp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.acs-item { display: flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: #fbfcfe; border-radius: 8px; padding: 6px 8px; font-size: var(--fs-xs); color: #46596f; cursor: pointer; text-align: left; }
.acs-item.on { border-color: #c3d7ff; background: #eef5ff; color: #1444c4; font-weight: 600; }
.acs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.ac-range { margin-top: 9px; }
.ac-range label { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: #4d637d; }
.ac-range input[type=range] { width: 100%; margin-top: 3px; }
.ac-tip { margin-top: 8px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.6; }
.ac-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line-2); background: #fbfcfe; border-radius: 0 0 13px 13px; }
#annotToast { position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 12px); background: rgba(18, 32, 52, .92); color: #fff; font-size: var(--fs-md); padding: 9px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .2s; z-index: 90; }
#annotToast.on { opacity: 1; transform: translate(-50%, 0); }

.annot-entry { display: inline-flex; align-items: center; gap: 6px; }
.annot-entry .dot { min-width: 17px; height: 17px; border-radius: 999px; background: #e11d48; color: #fff; font-size: var(--fs-2xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }

@media (max-width: 1100px) {
    .annot-shell { grid-template-columns: 1fr; }
    .annot-side { max-height: none; }
    .annot-stage { height: min(62vh, 520px); }
}
@media (max-width: 720px) {
    .annot-tools { gap: 6px; }
    .at-btn span { display: none; }
    .at-hint { display: none; }
    .annot-head-stats { width: 100%; }
    .annot-head-stats > div { flex: 1; min-width: 0; }
    .annot-composer { width: calc(100vw - 32px); left: 16px !important; }
}

/* ---------- 文档受控分享 ---------- */
.opt { color: var(--muted); font-style: normal; font-weight: 400; margin-left: 3px; font-size: var(--fs-2xs); }
.btn .dot { min-width: 17px; height: 17px; border-radius: 999px; background: #e11d48; color: #fff; font-size: var(--fs-2xs); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; margin-left: 2px; }
.share-created { border: 1px solid #bfe6cd; background: #f2fbf5; border-radius: 13px; padding: 14px 16px; margin-bottom: 16px; }
.sc-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: #15803d; font-size: var(--fs-md); margin-bottom: 10px; }
.sc-head b { font-size: var(--fs-md); }
.sc-head span { color: #5b7a68; font-size: var(--fs-xs); }
.sc-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.sc-row label { width: 52px; font-size: var(--fs-sm); color: #44607f; flex: 0 0 auto; }
.sc-row .input { font-family: Consolas, "Microsoft YaHei", monospace; font-size: var(--fs-sm); }
.share-mini { display: flex; flex-direction: column; gap: 8px; }
.sm-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 11px; background: #fbfcfe; }
.sm-item.is-off { opacity: .7; background: #f7f9fc; }
.sm-top { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 5px; }
.sm-meta { font-size: var(--fs-xs); color: var(--muted); margin-bottom: 7px; }
.sm-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sm-ops .btn { padding: 3px 9px; font-size: var(--fs-xs); }
.share-link-box { display: flex; gap: 8px; align-items: center; }
.share-link-box .input { font-family: Consolas, "Microsoft YaHei", monospace; font-size: var(--fs-xs); }

/* ---------- 分享二维码 / 交付卡 ---------- */
.share-qr { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px;
    border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; background: #fbfcfe; }
.share-qr .sqr { flex: 0 0 132px; width: 132px; text-align: center; }
.share-qr .sqr svg { width: 128px; height: 128px; display: block; border-radius: 8px; background: #fff; }
.share-qr .sqr .cap { font-size: var(--fs-xs); color: var(--muted); margin-top: 4px; }
.share-qr .sqr-body { flex: 1 1 240px; min-width: 220px; font-size: var(--fs-sm); }
.share-qr .sqr-body b { font-size: var(--fs-md); }
.share-qr .sqr-code { font: 700 15px/1.5 Consolas, monospace; letter-spacing: 3px; padding: 1px 9px;
    border: 1px dashed #9db2cf; border-radius: 7px; background: #f6f9ff; display: inline-block; margin: 4px 0; }
.share-qr .sqr-ops { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.share-created .sc-qr { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 10px;
    border-top: 1px dashed #bfe6cd; padding-top: 10px; }
.share-created .sc-qr svg { width: 104px; height: 104px; background: #fff; border-radius: 8px; }
.share-created .sc-qr .muted { max-width: 320px; }

/* ---------- 分享访问趋势 ---------- */
.trend-legend { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-xs); color: #5b6b80; margin-bottom: 6px; }
.trend-legend .tl-line { display: inline-block; width: 16px; height: 2px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.trend-legend .tl-line.view { background: #1d4ed8; }
.trend-legend .tl-line.dl { background: #15803d; }
.trend-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.trend-stats .ts-item { border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 12px; background: #fbfcfe; }
.trend-stats .ts-k { font-size: var(--fs-xs); color: var(--muted); }
.trend-stats .ts-v { font-size: var(--fs-2xl); font-weight: 650; color: #1c2f47; line-height: 1.5; }
.trend-stats .ts-u { font-size: var(--fs-xs); font-weight: 400; color: var(--muted); }
.trend-chart-wrap { overflow-x: auto; overflow-y: hidden; }
.trend-chart { display: block; width: 100%; min-width: 540px; height: auto; }
@media (max-width: 720px) { .trend-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .trend-chart { min-width: 520px; } }

.ai-code { letter-spacing: 1px; font-weight: 600; color: #0f766e; }
.verify-form { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.verify-hint { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vh-item { border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 14px; background: #fbfcfe; }
.vh-item b { display: block; font-size: var(--fs-sm); color: #33506f; margin-bottom: 4px; }
.vh-item p { margin: 0; font-size: var(--fs-sm); line-height: 1.75; color: var(--muted); }
.verify-fail { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-radius: 11px; background: #fff7e8; border: 1px solid #f3d9a6; color: #8a5a12; font-size: var(--fs-md); }
.verify-list { padding: 14px; display: flex; flex-direction: column; gap: 11px; }
.verify-card { border: 1px solid var(--line-2); border-left: 3px solid #16a34a; border-radius: 11px; padding: 12px 14px; background: #fff; }
.verify-card.is-bad { border-left-color: #dc2626; background: #fffaf9; }
.verify-card.is-revoked { border-left-color: #94a3b8; background: #fbfcfe; }
.vc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vc-badge { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-sm); font-weight: 650; color: #15803d; background: #eaf7ee; border: 1px solid #bfe6cd; border-radius: 999px; padding: 2px 10px; }
.verify-card.is-bad .vc-badge { color: #b91c1c; background: #fdeeed; border-color: #f3c6c2; }
.vc-code { font-size: var(--fs-xs); color: var(--muted); }
.vc-code code { background: #f1f5fb; border-radius: 4px; padding: 1px 6px; letter-spacing: 1px; color: #0f766e; font-weight: 600; }
.vc-dl { display: grid; grid-template-columns: 74px 1fr; gap: 5px 10px; margin: 0; font-size: var(--fs-sm); }
.vc-dl dt { color: var(--muted); }
.vc-dl dd { margin: 0; color: #2b3f58; word-break: break-word; }
.vc-dl dd.vc-hash { font-family: Consolas, "Courier New", monospace; font-size: var(--fs-xs); color: #64748b; }
.vc-foot { margin-top: 9px; padding-top: 8px; border-top: 1px dashed var(--line-2); font-size: var(--fs-xs); color: var(--muted); }
.ai-ops a.ai-op { text-decoration: none; }
@media (max-width: 900px) {
    .verify-hint { grid-template-columns: 1fr; }
}


/* 借阅统计：5 个 KPI 一次排开，窄屏自动降列，避免第 5 个单独掉到第二行 */
.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .kpis-5 { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   v1.20 体验基线：字阶 / 导航分组 / 顶栏动作 / 帮助抽屉 / 移动端
   ========================================================= */
:root {
    /* 统一字阶：正文 14、次要 12、说明 11.5、标题 16/19/22 */
    --fs-xs: 11.5px;
    --fs-sm: 12px;
    --fs-base: 13px;
    --fs-md: 14px;
    --fs-lg: 16px;
    --fs-xl: 19px;
    --fs-2xl: 24px;
    --fs-3xl: 29px;
    --touch: 42px;
}
body { font-size: var(--fs-md); }
.small { font-size: var(--fs-xs); }
.crumb, .panel-head .sub, .table .t-sub, .kpi .k-sub { font-size: var(--fs-xs); }
.table { font-size: var(--fs-base); }
.table th { font-size: var(--fs-xs); }
.input, .select, .textarea, .btn { font-size: var(--fs-base); }
h1, h2, h3 { line-height: 1.35; }

/* ---------- 侧栏：分组折叠 + 收起为图标栏 ---------- */
.sidebar { transition: width .18s ease; }
.brand-row { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; }
.brand-row .brand { flex: 1; min-width: 0; padding: 2px 4px; }
.nav-mini-btn {
    flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05); color: #a9bdd8; display: grid; place-items: center; cursor: pointer;
}
.nav-mini-btn:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-group { margin: 2px 0; }
.nav-toggle { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; }
.nav-caret { margin-left: 6px; display: inline-flex; transition: transform .18s ease; opacity: .7; }
.nav-group.on > .nav-toggle .nav-caret { transform: rotate(180deg); }
.nav-sub {
    display: none; padding: 2px 0 4px 0; margin: 0 0 2px 0;
    border-left: 1px solid rgba(255,255,255,.1); margin-left: 20px;
}
.nav-group.open > .nav-sub { display: block; }
.nav-subitem {
    display: flex; align-items: center; gap: 8px; padding: 7px 12px; margin: 1px 0 1px -1px;
    color: #a9bdd8; font-size: var(--fs-sm); border-radius: 0 9px 9px 0; border-left: 2px solid transparent; margin-left: -1px;
}
.nav-subitem:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-subitem.on { background: rgba(47,107,255,.22); color: #fff; border-left-color: #4f8bff; font-weight: 600; }
.nav-subitem .nav-dot { font-size: var(--fs-2xs); padding: 3px 5px; }
.nav-group.on > .nav-toggle { color: #fff; background: rgba(255,255,255,.05); }
.nav-flat.on { background: linear-gradient(90deg, rgba(47,107,255,.95), rgba(47,107,255,.7)); }

/* 收起为图标栏：只留图标，鼠标悬停显示文字气泡 */
body.nav-mini .sidebar { width: 70px; padding-left: 9px; padding-right: 9px; }
body.nav-mini .main { margin-left: 70px; }
body.nav-mini .brand-text,
body.nav-mini .nav-item span,
body.nav-mini .nav-caret,
body.nav-mini .sf-help span,
body.nav-mini .sf-version,
body.nav-mini .nav-sub { display: none; }
body.nav-mini .brand-row { justify-content: center; }
body.nav-mini .brand-row .brand { flex: 0 0 auto; }
body.nav-mini .nav-mini-btn { position: absolute; right: 8px; top: 62px; transform: rotate(180deg); }
body.nav-mini .nav-item { justify-content: center; padding: 11px 0; }
body.nav-mini .nav-item .nav-dot { position: absolute; top: 4px; right: 6px; margin: 0; }
body.nav-mini .sf-help { justify-content: center; }

/* ---------- 顶栏：返回 / 待办 / 消息 / 大屏 ---------- */
.topbar { gap: 10px; }
.back-btn { display: grid; }
.screen-entry { white-space: nowrap; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.top-actions .user-menu { margin-left: 6px; }
.pop-wrap { position: relative; }
.pop-btn { position: relative; }
.pop-dot {
    position: absolute; top: 1px; right: 0; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 9px;
    background: #ff5c5c; color: #fff; font-style: normal; font-size: var(--fs-2xs); font-weight: 700;
    display: grid; place-items: center; line-height: 1;
}
.pop-ping { position: absolute; top: 7px; right: 8px; width: 6px; height: 6px; border-radius: 50%; background: #ff5c5c; }
.pop-menu {
    display: none; position: absolute; right: 0; top: calc(100% + 10px); width: 268px; z-index: 70;
    background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 46px rgba(16, 34, 58, .16);
    overflow: hidden;
}
.pop-menu.wide { width: 310px; }
.pop-wrap.open .pop-menu { display: block; }
.pop-head { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-sm); font-weight: 650; }
.pop-head .muted { font-weight: 400; font-size: var(--fs-2xs); margin-left: auto; }
.pop-menu > a { display: flex; align-items: center; gap: 10px; padding: 10px 14px; color: #33475f; font-size: var(--fs-sm); border-bottom: 1px solid var(--line-2); }
.pop-menu > a b { margin-left: auto; color: #b47610; font-variant-numeric: tabular-nums; }
.pop-menu > a:hover { background: #f5f9ff; color: var(--blue); }
.pop-item { padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-size: var(--fs-xs); line-height: 1.5; }
.pop-item b { display: block; font-size: var(--fs-sm); color: #2b3f58; }
.pop-item span { display: block; margin-top: 1px; }
.pop-item em { font-style: normal; font-size: var(--fs-2xs); }
.pop-empty { padding: 22px 14px; text-align: center; color: var(--muted); font-size: var(--fs-sm); }

/* ---------- 右侧帮助抽屉 ---------- */
.help-drawer { position: fixed; inset: 0; z-index: 90; display: none; }
.help-drawer.open { display: block; }
.hd-mask { position: absolute; inset: 0; background: rgba(13, 27, 48, .35); backdrop-filter: blur(1px); }
.hd-body {
    position: absolute; top: 0; right: 0; bottom: 0; width: 380px; max-width: 90vw; background: #fff;
    box-shadow: -18px 0 46px rgba(13, 27, 48, .18); display: flex; flex-direction: column;
    animation: hd-in .18s ease-out;
}
@keyframes hd-in { from { transform: translateX(22px); opacity: .6 } to { transform: none; opacity: 1 } }
.hd-head { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line-2); }
.hd-head h3 { font-size: var(--fs-lg); }
.hd-head .sub { color: var(--muted); font-size: var(--fs-xs); margin-top: 3px; }
.hd-head .icon-btn { margin-left: auto; }
.hd-content { padding: 16px 20px; overflow-y: auto; font-size: var(--fs-sm); line-height: 1.9; color: #3c5069; }
.hd-content ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); }
.hd-content li { margin: 5px 0; }
.hd-tip { margin-top: 16px; padding: 12px 14px; border-radius: 10px; background: #f5f9ff; border: 1px solid #e2ecfb; }
.hd-tip b { display: block; font-size: var(--fs-sm); color: #2a63e8; margin-bottom: 4px; }
.hd-tip p { margin: 0; font-size: var(--fs-xs); color: #5a6d85; line-height: 1.85; }
.sf-help { display: flex; align-items: center; gap: 7px; padding: 9px 10px; border-radius: 9px; color: #a9bdd8; font-size: var(--fs-sm); }
.sf-help:hover { background: rgba(255,255,255,.07); color: #fff; }

/* ---------- 弹层最大化 ---------- */
.modal { align-items: flex-start; }
.modal-card { max-height: calc(100vh - 88px); display: flex; flex-direction: column; }
.modal-card > form { display: flex; flex-direction: column; min-height: 0; max-height: inherit; }
.modal-body { overflow-y: auto; }
.modal-card.is-max {
    max-width: calc(100vw - 24px); width: calc(100vw - 24px);
    height: calc(100vh - 24px); max-height: calc(100vh - 24px);
}
.modal-card.is-max .modal-body { max-height: none; }
.modal-max {
    margin-left: auto; border: 0; background: transparent; color: #7b8ca3; width: 30px; height: 30px;
    border-radius: 8px; display: grid; place-items: center; cursor: pointer;
}
.modal-max:hover { background: #f0f4fb; color: var(--ink); }
.modal-head .icon-btn { margin-left: 0; }
.modal-head .modal-max + .icon-btn { margin-left: 0; }

/* ---------- 移动端底部 Tab ---------- */
.mobile-tabbar { display: none; }

/* ---------- 移动端整体强化 ---------- */
@media (max-width: 900px) {
    body { padding-bottom: env(safe-area-inset-bottom); }
    .content { padding: 14px 12px calc(74px + env(safe-area-inset-bottom)); }
    .topbar { min-height: 58px; padding: 8px 12px; }
    .topbar-title h1 { font-size: var(--fs-lg); }
    .topbar .crumb { display: none; }
    .top-actions .user-meta, .top-actions .screen-entry { display: none; }
    .proj-switch .ps-meta span { display: none; }
    .mobile-tabbar {
        display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
        background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
        padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -8px 26px rgba(16,34,58,.08);
    }
    .mobile-tabbar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 54px; color: #7b8ca3; font-size: var(--fs-2xs);
    }
    .mobile-tabbar a.on { color: var(--blue); }
    .mobile-tabbar a.on .ic { stroke-width: 2.2; }
    .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
    .kpi .k-val { font-size: 22px; }
    .panel, .kpi { border-radius: 12px; }
    .panel-head { flex-wrap: wrap; gap: 8px; }
    .panel-head .spacer { display: none; }
    .table-wrap {
        -webkit-overflow-scrolling: touch;
        background:
            linear-gradient(90deg, rgba(244,247,252,0) 82%, rgba(244,247,252,.95)) right / 26px 100% no-repeat;
    }
    table.table { min-width: 620px; }
    .table th, .table td { padding: 10px 10px; }
    .table tbody tr:hover { background: transparent; }
    .filterbar { position: sticky; top: 58px; z-index: 20; }
    .input, .select, .textarea { min-height: var(--touch); font-size: var(--fs-xl); }
    .btn { min-height: 38px; }
    .btn-sm { min-height: 32px; }
    .detail-actions {
        position: sticky; bottom: calc(58px + env(safe-area-inset-bottom)); z-index: 30;
        background: #fff; padding: 9px 0; margin-top: 12px; box-shadow: 0 -6px 18px rgba(16,34,58,.07);
    }
    .modal { padding: 10px 8px; }
    .modal-card { max-height: calc(100vh - 20px); border-radius: 14px; }
    .modal-card.is-max { width: 100vw; height: calc(100vh - 8px); max-height: calc(100vh - 8px); border-radius: 10px; }
    .help-drawer .hd-body { width: 100%; max-width: 100%; }
    .hero-actions, .detail-actions { flex-wrap: wrap; }
}
@media (max-width: 560px) {
    .kpis { grid-template-columns: 1fr 1fr; }
    .kpi { padding: 12px; }
    .kpi .k-val { font-size: var(--fs-2xl); }
    .grid-2, .grid-2eq, .grid-3 { gap: 12px; }
    .seg { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .seg-item { white-space: nowrap; }
    .top-search { display: none; }
}

/* 顶栏细节：有搜索框时动作区紧跟其后，避免双重 auto 留白 */
.top-search + .top-actions { margin-left: 10px; }
body[data-route="dashboard"] .back-btn { display: none; }
.table-wrap.scrolled-end { background: none; }
@media (max-width: 900px) {
    .top-search + .top-actions { margin-left: auto; }
}

/* 演示角色切换 */
.demo-switch .pop-menu { width: 250px; max-height: 70vh; overflow-y: auto; }
.pop-switch {
    display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 14px;
    border: 0; border-bottom: 1px solid var(--line-2); background: #fff; text-align: left; cursor: pointer;
}
.pop-switch b { font-size: var(--fs-sm); color: #2b3f58; font-weight: 600; }
.pop-switch span { font-size: var(--fs-xs); color: var(--muted); }
.pop-switch em { margin-left: auto; font-style: normal; font-size: var(--fs-2xs); color: #2a63e8; background: #e9f0ff; border-radius: 20px; padding: 1px 7px; }
.pop-switch:hover { background: #f5f9ff; }
.pop-switch.on { background: #f2f8ff; }
.pop-foot { padding: 9px 14px 11px; font-size: var(--fs-2xs); line-height: 1.7; }
@media (max-width: 900px) { .demo-switch { display: none; } }

/* 指标卡可点击穿透 */
a.kpi, a.bar-col { color: inherit; }
a.kpi { display: block; transition: .16s; }
a.kpi:hover { border-color: #c5d8ff; box-shadow: 0 14px 30px rgba(47, 107, 255, .13); transform: translateY(-1px); }
a.kpi:hover .k-val { color: var(--blue); }
a.bar-col:hover .bar { filter: brightness(1.08); }

/* 手机填报入口：二维码 + 可复制链接 */
.qr-entry { display: flex; gap: 16px; align-items: flex-start; }
.qr-entry-code { flex: 0 0 auto; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.qr-entry-code svg { display: block; width: 168px; height: 168px; }
.qr-entry-meta { flex: 1; min-width: 0; }
.qr-entry-meta b { font-size: var(--fs-md); }
.qr-entry-meta p { color: var(--muted); font-size: var(--fs-xs); line-height: 1.85; margin: 6px 0 10px; }
.qr-entry-link { display: flex; gap: 8px; align-items: center; }
.qr-entry-link .input { font-family: Consolas, monospace; font-size: var(--fs-xs); }
@media (max-width: 560px) {
    .qr-entry { flex-direction: column; align-items: center; text-align: center; }
    .qr-entry-link { width: 100%; }
}


/* ============ 交付中心 / 页面引导（2026-11 新增） ============ */
.page-tip { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 14px; border: 1px solid #d8e6ff; background: #f4f8ff; border-radius: 11px; color: #23456e; }
.page-tip > svg { flex: 0 0 auto; margin-top: 1px; color: #2f6bff; }
.page-tip .pt-body { flex: 1; min-width: 0; font-size: var(--fs-sm); line-height: 1.7; }
.page-tip .pt-body b { display: block; font-size: var(--fs-md); color: #14335c; margin-bottom: 1px; }
.page-tip .pt-body span { color: #3f5f86; }
.page-tip .pt-x { flex: 0 0 auto; border: 0; background: transparent; color: #7d96b5; cursor: pointer; padding: 2px; border-radius: 6px; }
.page-tip .pt-x:hover { background: #e3eeff; color: #2f6bff; }

.delivery-strip { margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--line-2); }
.delivery-strip .ds-line { display: flex; align-items: center; gap: 7px; font-size: var(--fs-sm); flex-wrap: wrap; }
.delivery-strip .ds-line b { color: #1c2f47; font-weight: 600; }
.ds-bar { height: 5px; background: #eef2f8; border-radius: 4px; margin: 7px 0 4px; overflow: hidden; }
.ds-bar > i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2f6bff, #5f8dff); }

.delivery-hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 18px 20px; border: 1px solid #dbe7f7; border-radius: 13px; background: linear-gradient(120deg, #f7faff, #eef5ff); }
.delivery-hero .dh-date { font-size: 27px; font-weight: 700; color: #142a47; letter-spacing: -.4px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.delivery-hero .dh-sub { color: #4a6685; font-size: var(--fs-sm); margin-top: 4px; }
.delivery-hero .dh-metrics { display: flex; gap: 26px; flex-wrap: wrap; }
.delivery-hero .dh-metrics > div { text-align: center; }
.delivery-hero .dh-metrics b { display: block; font-size: 22px; color: #142a47; font-variant-numeric: tabular-nums; }
.delivery-hero .dh-metrics span { font-size: var(--fs-xs); color: #6b8099; }

.delivery-track { padding: 4px 2px 0; }
.dt-bar { height: 9px; border-radius: 6px; background: #eef2f8; overflow: hidden; margin-top: 14px; }
.dt-bar > i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, #14335c, #2f6bff); }
.dt-labels { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: var(--fs-xs); color: #7a8fa9; margin-top: 6px; }

.alert-list { display: flex; flex-direction: column; gap: 8px; }
.alert-item { display: flex; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 10px; color: inherit; transition: .15s; }
.alert-item:hover { border-color: #c5d8ff; background: #fbfdff; }
.alert-item .ai-main { flex: 1; min-width: 0; }
.alert-item .ai-main b { display: block; font-size: var(--fs-md); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alert-item .ai-right { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }

.doc-pick { max-height: 260px; overflow: auto; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; background: #fbfcfe; }
.doc-pick label { display: flex; align-items: center; gap: 9px; padding: 6px 4px; font-size: var(--fs-sm); border-bottom: 1px dashed #eef2f8; cursor: pointer; }
.doc-pick label:last-child { border-bottom: 0; }
.doc-pick label span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-pick label em { font-style: normal; font-size: var(--fs-xs); color: #7a8fa9; }
.empty-row td { padding: 0 !important; }
.alert.alert-warn { border: 1px solid #ffe0b2; background: #fff9f0; color: #8a5a10; border-radius: 10px; padding: 10px 13px; font-size: var(--fs-sm); }

.rev-box { border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; background: #fbfcfe; height: 100%; }
.rev-box b { font-size: var(--fs-sm); color: #1c2f47; }
.rev-box p { font-size: var(--fs-xs); line-height: 1.75; color: #6b8099; margin: 4px 0 9px; }

/* ============ 2026-11 ÌåÑéÓŻ¯£ºÖ÷Ìâ / ÃܶÈ / Òƶ¯¿¨Ƭ / µ¼Èë ============ */
/* Íâ¹ÛÖ÷Ì⣺layout ÄÚÁª±äÁ¿¸²¸ǣ¬ÕâÀïֻ×ö½ṹÐÔÊÊÅä */
body.theme-compact .panel-body { padding: 12px 14px; }
body.theme-compact .table th, body.theme-compact .table td { padding: 7px 10px; }
body.theme-compact .content { padding-top: 14px; }
body.theme-compact .kpi { padding: 13px 15px; }
body[data-sidebar="light"] .sidebar { background: #fff; color: #3d5372; border-right: 1px solid var(--line); }
body[data-sidebar="light"] .brand { color: var(--ink); }
body[data-sidebar="light"] .brand-text small { color: #7b8ca3; }
body[data-sidebar="light"] .nav-item { color: #45597a; }
body[data-sidebar="light"] .nav-item:hover { background: #f1f5fc; }
body[data-sidebar="light"] .nav-item.on { background: rgba(47,107,255,.1); color: var(--blue); }
body[data-sidebar="light"] .nav-subitem { color: #5b7091; }
body[data-sidebar="light"] .nav-subitem.on { background: rgba(47,107,255,.1); color: var(--blue); }
body[data-sidebar="light"] .nav-label { color: #93a5bd; }
body[data-sidebar="light"] .sidebar-foot { border-top-color: var(--line-2); }
body[data-sidebar="light"] .sf-help { color: #5b7091; }
body[data-sidebar="light"] .nav-mini-btn { color: #7b8ca3; border-color: var(--line); }

/* Ö÷ÌâɫѡÔñ */
.theme-swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.theme-swatches .swatch { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: #fff; }
.theme-swatches .swatch input { margin: 0; }
.theme-swatches .swatch i { width: 14px; height: 14px; border-radius: 4px; display: block; }
.theme-swatches .swatch span { font-size: var(--fs-sm); color: #33465f; }
.theme-swatches .swatch.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.1); }

/* Òƶ¯¶˱í¸ñ¿¨Ƭ»¯£º¸ø table ¼Ó data-card="1"£¬JS ×Զ¯²¹ data-label */
@media (max-width: 760px) {
    table.table[data-card="1"] { min-width: 0; display: block; }
    table.table[data-card="1"] thead { display: none; }
    table.table[data-card="1"] tbody { display: block; }
    table.table[data-card="1"] tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 13px; margin-bottom: 10px; }
    table.table[data-card="1"] tr:hover { background: #fff; }
    table.table[data-card="1"] td { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border: 0; border-bottom: 1px dashed var(--line-2); padding: 9px 0; text-align: right !important; }
    table.table[data-card="1"] td:last-child { border-bottom: 0; }
    table.table[data-card="1"] td::before { content: attr(data-label); flex: 0 0 84px; text-align: left; color: var(--muted); font-size: var(--fs-xs); font-weight: 400; padding-top: 1px; }
    table.table[data-card="1"] td:empty { display: none; }
    table.table[data-card="1"] td .btn { min-height: 30px; }
    table.table[data-card="1"] tr.empty-row { border: 0; }
    table.table[data-card="1"] tr.empty-row td { display: block; }
    table.table[data-card="1"] tr.empty-row td::before { content: none; }
}

/* Òƶ¯¶˿ì½ݲÙ×÷£¨ÓÒÏÂÐü¸¡£© */
.m-quick { display: none; }
@media (max-width: 760px) {
    .m-quick { display: block; position: fixed; right: 14px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 56; }
    .m-quick-btn { width: 52px; height: 52px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--blue), var(--blue-dark)); color: #fff; box-shadow: 0 12px 26px rgba(47,107,255,.36); display: grid; place-items: center; }
    .m-quick-menu { position: absolute; right: 0; bottom: 62px; display: none; flex-direction: column; gap: 8px; }
    .m-quick.open .m-quick-menu { display: flex; }
    .m-quick-menu a { display: flex; align-items: center; gap: 9px; background: #fff; color: #1c2f47; border: 1px solid var(--line); border-radius: 24px; padding: 9px 16px 9px 13px; box-shadow: 0 10px 24px rgba(16,34,58,.12); font-size: var(--fs-sm); white-space: nowrap; }
}

/* µ¼ÈëÖÐÐÄ */
.import-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.import-step { border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; background: #fff; }
.import-step b { display: block; font-size: var(--fs-sm); color: #1c2f47; }
.import-step span { font-size: var(--fs-xs); color: var(--muted); }
.import-step.on { border-color: #c5d8ff; background: #f5f9ff; }
@media (max-width: 760px) { .import-steps { grid-template-columns: 1fr; } }

/* ÏêÇéҳ¹ØÁª×ÊÁÏÃæ°å */
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rel-cell { display: block; text-align: center; padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 10px; background: #fbfcfe; color: inherit; }
.rel-cell b { display: block; font-size: var(--fs-xl); color: #1c2f47; font-variant-numeric: tabular-nums; }
.rel-cell span { font-size: var(--fs-xs); color: var(--muted); }
.rel-cell:hover { border-color: #c5d8ff; background: #f5f9ff; }
.rel-list { display: flex; flex-direction: column; gap: 2px; }
.rel-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; color: inherit; font-size: var(--fs-sm); }
.rel-item:hover { background: #f5f9ff; }
.rel-item .mono { flex: 0 0 auto; font-size: var(--fs-xs); color: #3f5f86; }
.rel-item em { flex: 0 0 auto; font-style: normal; color: var(--muted); font-size: var(--fs-xs); }
.rel-item .badge { margin-left: auto; }
.rel-doc { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 560px) { .rel-grid { grid-template-columns: repeat(2, 1fr); } }

/* ?????????????? */
.ap-flow { list-style: none; margin: 0 0 14px; padding: 0; }
.ap-step { position: relative; padding: 10px 12px 10px 30px; border-left: 2px solid var(--line); margin-left: 8px; }
.ap-step:last-child { border-left-color: transparent; }
.ap-step::before { content: ''; position: absolute; left: -7px; top: 14px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--line); }
.ap-step.done::before { border-color: #2f9e63; background: #2f9e63; }
.ap-step.on { background: #f5f9ff; border-radius: 10px; }
.ap-step.on::before { border-color: #2f6fd0; box-shadow: 0 0 0 4px #e3efff; }
.ap-step-head { display: flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: #1c2f47; }
.ap-step-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 6px 0 0 2px; font-size: var(--fs-sm); }
.ap-act { border-top: 1px solid var(--line-2); padding-top: 14px; margin-top: 4px; }
.ap-extra { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.ap-extra .field { flex: 1; min-width: 150px; }
.ap-node-row { align-items: center; }

