/* 内部业务系统 · 样式 */
:root {
  --brand: #123c63;
  --brand2: #1f5f92;
  --brand3: #2f7fbf;
  --bg: #f2f5f9;
  --card: #fff;
  --line: #e5eaf1;
  --text: #1e2a37;
  --muted: #6b7787;
  --green: #1c7a45;
  --red: #c0392b;
  --orange: #b26a00;
  --purple: #6b3fa0;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 32, 48, .06), 0 6px 20px rgba(16, 32, 48, .06);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font: 14px/1.6 var(--font); color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
a { color: var(--brand2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.hidden { display: none !important; }

/* ---------------- 布局 ---------------- */
.shell { display: flex; min-height: 100vh; }
.side {
  width: 226px; flex: 0 0 226px; background: linear-gradient(180deg, #123c63, #0e2f4e);
  color: #d7e3ef; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand {
  display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px;
  color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .5px;
}
.brand:hover { text-decoration: none; }
.brand img { height: 26px; width: auto; }
.nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: #c3d5e6; font-size: 14px; transition: background .15s, color .15s;
}
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; text-decoration: none; }
.nav-item.on { background: rgba(255, 255, 255, .14); color: #fff; font-weight: 500; }
.nav-item.sub { padding-left: 18px; font-size: 13.5px; }
.nav-item .ic { width: 17px; height: 17px; opacity: .9; }
.nav-group { padding: 16px 12px 6px; font-size: 11.5px; color: #7f9cb8; letter-spacing: 1px; }
.side-foot { padding: 14px 20px; font-size: 11.5px; color: #6b8bab; border-top: 1px solid rgba(255,255,255,.07); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.top {
  height: 58px; flex: 0 0 58px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; padding: 0 22px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 14.5px; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: 8px; }
.crumb .sep { color: #c3ccd8; font-weight: 400; }
.who { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.who-name { font-weight: 500; }
.logout { display: inline-flex; padding: 6px; border-radius: 8px; color: var(--muted); }
.logout:hover { background: #f1f4f8; color: var(--red); }
.logout .ic { width: 17px; height: 17px; }
.content { padding: 24px 26px 48px; max-width: 1180px; width: 100%; }
.content.wide { max-width: 1440px; }

/* ---------------- 标题区 ---------------- */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; line-height: 1.25; color: #16212e; }
.page-head .desc { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------------- 卡片 ---------------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { padding: 13px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-head h2 { font-size: 16px; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }

.grid { display: grid; gap: 14px; }
.grid.modules { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.mod {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s, border-color .15s;
  position: relative; color: inherit;
}
.mod:hover { text-decoration: none; transform: translateY(-2px); border-color: #cbd9e8; box-shadow: 0 8px 26px rgba(16,32,48,.1); }
.mod .mod-ic {
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: #eaf2fa; color: var(--brand2); margin-bottom: 12px;
}
.mod .mod-ic .ic { width: 20px; height: 20px; }
.mod h3 { font-size: 16px; margin-bottom: 4px; }
.mod p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.mod.off { opacity: .72; cursor: default; }
.mod.off:hover { transform: none; box-shadow: var(--shadow); border-color: var(--line); }
.mod .stage { position: absolute; top: 14px; right: 14px; }

/* ---------------- 表格 ---------------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f8fafc; color: var(--muted); font-weight: 500; font-size: 12.5px; letter-spacing: .3px; }
tbody tr:hover { background: #fafcfe; }
td.wrap { white-space: normal; max-width: 380px; }
td.num { font-variant-numeric: tabular-nums; }
tr.inactive td { color: #9aa4b2; }
tr:last-child td { border-bottom: 0; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 14px; border-radius: 9px; border: 1px solid #d6dee8; background: #fff;
  color: #33414f; font-size: 13.5px; font-family: inherit; cursor: pointer; line-height: 1.4;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { background: #f5f8fb; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn .ic { width: 15px; height: 15px; }
.btn-primary { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.btn-primary:hover { background: #1a5280; color: #fff; }
.btn-danger { color: var(--red); border-color: #eccfcb; }
.btn-danger:hover { background: #fdf3f2; }
.btn-ghost { border-color: transparent; background: transparent; color: var(--brand2); padding: 5px 8px; }
.btn-ghost:hover { background: #eef4fa; }
.btn-sm { padding: 5px 10px; font-size: 12.5px; border-radius: 7px; }
.btn-row { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------- 表单 ---------------- */
input, select, textarea {
  font: inherit; color: inherit; padding: 8px 11px; border: 1px solid #d6dee8; border-radius: 9px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; max-width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand3); box-shadow: 0 0 0 3px rgba(47,127,191,.13); }
input:disabled, select:disabled { background: #f4f6f9; color: #8b96a3; cursor: not-allowed; }
input[type=checkbox] { width: auto; padding: 0; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
label.field input, label.field select, label.field textarea { width: 100%; }
label.field textarea { resize: vertical; }
label.field input[type=date] { max-width: 220px; }
.form-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.form-row > * { flex: 1 1 160px; min-width: 150px; }
.form-row > .form-submit { flex: 0 0 auto; align-self: flex-end; }
.form-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------------- 徽标 ---------------- */
.badge {
  display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: 11.5px;
  line-height: 1.6; background: #eef1f5; color: #5c6876; white-space: nowrap;
}
.badge-blue { background: #e8f1fa; color: #1b5d92; }
.badge-green { background: #e7f4ec; color: #1c7a45; }
.badge-orange { background: #fdf1e3; color: #a45d00; }
.badge-purple { background: #f1ebfa; color: #6b3fa0; }
.badge-red { background: #fbecea; color: #b1382a; }
.badge-gray { background: #eef1f5; color: #5c6876; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #c6cfda; margin-right: 6px; vertical-align: 1px; }
.dot.on { background: #2e9e5b; }

/* ---------------- 空状态 / 提示 ---------------- */
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-ic { width: 44px; height: 44px; margin: 0 auto 10px; color: #b9c5d3; }
.empty-ic .ic { width: 44px; height: 44px; }
.empty-hint { font-size: 12.5px; margin-top: 4px; color: #97a2b0; }

.alert { padding: 11px 14px; border-radius: 10px; font-size: 13px; margin-bottom: 14px; border: 1px solid transparent; }
.alert-info { background: #eef5fb; border-color: #d5e5f3; color: #1b5d92; }
.alert-warn { background: #fdf6ea; border-color: #f3e3c4; color: #8a5a00; }
.alert-ok { background: #ecf7f0; border-color: #d2ead9; color: #1c7a45; }
.alert-err { background: #fcf0ee; border-color: #f0d5d1; color: #b1382a; }

/* ---------------- 登录页 ---------------- */
body.login-body {
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: radial-gradient(circle at 20% 10%, #1f5f92, #123c63 55%, #0c2942);
  min-height: 100vh;
}
.login-box {
  width: 372px; max-width: 100%; background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 24px 60px rgba(4, 18, 32, .35);
}
.login-box .logo { display: block; margin: 0 auto 12px; height: 40px; }
.login-box h1 { text-align: center; font-size: 18px; color: var(--brand); }
.login-box .sub { text-align: center; color: var(--muted); font-size: 12.5px; margin: 4px 0 18px; }
.tabs { display: flex; gap: 8px; margin-bottom: 16px; background: #f1f4f8; padding: 4px; border-radius: 10px; }
.tabs button {
  flex: 1; border: 0; background: transparent; padding: 7px; border-radius: 7px; font: inherit;
  color: #5c6876; cursor: pointer;
}
.tabs button.on { background: #fff; color: var(--brand2); font-weight: 500; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.login-box input { width: 100%; margin-bottom: 10px; padding: 11px 13px; }
.login-box .btn-primary { width: 100%; padding: 11px; font-size: 15px; margin-top: 4px; }
.login-msg { min-height: 20px; font-size: 12.5px; color: var(--red); margin-top: 10px; }
.login-msg.ok { color: var(--green); }
.bind {
  margin-top: 14px; background: #f7f9fc; border: 1px solid #e3e9f1; border-radius: 12px; padding: 14px;
  font-size: 12.5px; line-height: 1.7; display: none;
}
.bind.on { display: block; }
.bind code {
  display: block; word-break: break-all; background: #fff; border: 1px dashed #c9d3de;
  padding: 9px; border-radius: 7px; margin: 7px 0; color: var(--brand); font-size: 13px;
}
.bind .uri { font-size: 11.5px; word-break: break-all; }
.bind .btn { width: 100%; margin-top: 8px; }

/* ---------------- 登录提示 ---------------- */
.login-help {
  font-size: 12px; line-height: 1.7; color: #6b7787; background: #f7f9fc;
  border: 1px solid #e8eef5; border-radius: 9px; padding: 10px 12px; margin: 2px 0 12px;
}
.login-help b { color: #33414f; font-weight: 600; }

/* ---------------- 其他 ---------------- */
.err-page { text-align: center; padding: 80px 20px; }
.err-code { font-size: 56px; font-weight: 700; color: #c8d3e0; line-height: 1; }
.err-msg { margin: 12px 0 22px; color: var(--muted); }
body.plain { display: flex; align-items: center; justify-content: center; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%) translateY(10px);
  background: #1e2a37; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 13.5px;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: 80vw;
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #b1382a; }

.pager { display: flex; gap: 6px; align-items: center; justify-content: center; padding: 14px; }
.pager a, .pager span {
  min-width: 32px; text-align: center; padding: 5px 9px; border-radius: 8px; font-size: 13px;
  border: 1px solid var(--line); color: #41505f;
}
.pager a:hover { background: #f2f6fa; text-decoration: none; }
.pager .on { background: var(--brand2); border-color: var(--brand2); color: #fff; }
.pager .off { color: #aab4c0; background: #f8fafc; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.stat { display: flex; gap: 26px; flex-wrap: wrap; }
.stat div b { display: block; font-size: 26px; color: var(--brand); line-height: 1.2; }
.stat div span { font-size: 12.5px; color: var(--muted); }

.matrix td, .matrix th { text-align: center; }
.matrix td:first-child, .matrix th:first-child { text-align: left; }
.matrix select { padding: 5px 8px; font-size: 12.5px; }
.matrix tr.group td { background: #f8fafc; font-size: 12px; color: var(--muted); padding: 6px 14px; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { width: auto; flex: none; height: auto; position: static; }
  .nav { flex-direction: row; flex-wrap: wrap; padding: 8px 10px 12px; }
  .nav-item { padding: 7px 10px; font-size: 13px; }
  .nav-item .ic { width: 15px; height: 15px; }
  .nav-group, .side-foot { display: none; }
  .brand { padding: 12px 16px; }
  .top { padding: 0 14px; }
  .content { padding: 16px 14px 40px; }
  .who-name { display: none; }
  th, td { padding: 9px 10px; }
}


/* ---------------- 项目日志 ---------------- */
.proj-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.proj {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; box-shadow: var(--shadow); color: inherit;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.proj:hover { text-decoration: none; transform: translateY(-2px); border-color: #cbd9e8;
  box-shadow: 0 8px 26px rgba(16, 32, 48, .1); }
.proj h3 { font-size: 15px; margin: 0 0 6px; display: flex; justify-content: space-between;
  align-items: flex-start; gap: 10px; }
.proj-sub { font-size: 12.5px; color: var(--muted); }
.proj-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px;
  font-size: 12px; color: var(--muted); }

.timeline { margin: 0; }
.tl-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.tl-item:last-child { border-bottom: 0; padding-bottom: 0; }
.tl-date { flex: 0 0 62px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-body { flex: 1; min-width: 0; }
.tl-meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.tl-text { white-space: pre-wrap; word-break: break-word; line-height: 1.7; }

.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .field { margin-bottom: 0; }
.form-grid textarea { width: 100%; resize: vertical; }

details.card > summary {
  cursor: pointer; padding: 14px 18px; font-weight: 500; color: var(--brand2); list-style: none;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { border-bottom: 1px solid var(--line); }
details.card > summary:hover { background: #f8fafc; border-radius: var(--radius) var(--radius) 0 0; }
details.card.add { border-style: dashed; border-color: #c9d9ea; background: #fbfdff; }
details.card.add > summary { color: var(--brand2); }
details.card.add[open] { border-style: solid; background: #fff; }
.back { display: inline-block; font-size: 13px; margin-bottom: 8px; }

@media (max-width: 860px) {
  .proj-grid { grid-template-columns: 1fr; }
  .tl-item { flex-direction: column; gap: 4px; }
  .tl-date { flex: none; }
}


/* ---------------- 规范标准 ---------------- */
.crumbs { margin-bottom: 14px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--brand2); }
.crumbs .sep { margin: 0 6px; color: #c3ccd8; }
.dir-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-bottom: 16px; }
.dir {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; background: #fff;
  border: 1px solid var(--line); border-radius: 10px; color: inherit; box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s;
}
.dir:hover { text-decoration: none; border-color: #cbd9e8; transform: translateY(-1px); }
.dir .ic { width: 18px; height: 18px; color: var(--brand2); flex: 0 0 18px; }
.dir span { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 价格页列开关 */
.col-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 0 2px; }
.col-toggle { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.col-toggle input { width: auto; margin: 0; }
#price-table td.wrap { white-space: normal; }

#price-table th, #price-table td { padding: 6px 7px; font-size: 12.5px; }
#price-table .c-name a { color: var(--brand2); }
#price-table .c-name { max-width: 190px; }
#price-table .c-model, #price-table .c-customer { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

#price-table { table-layout: fixed; }
#price-table .c-idx { width: 46px; }
#price-table .c-name { width: 130px; white-space: normal; }
#price-table .c-brand { width: 62px; }
#price-table .c-model { width: 86px; }
#price-table .c-spec { width: 86px; }
#price-table .c-unit { width: 38px; }
#price-table .c-pc { width: 82px; }
#price-table .c-supplier { width: 82px; }
#price-table .c-eq { width: 82px; }
#price-table .c-install { width: 62px; }
#price-table .c-combined { width: 82px; }
#price-table .c-docs { width: 56px; }
#price-table .c-cert { width: 64px; }
#price-table .c-customer { width: 84px; }
#price-table th, #price-table td { overflow: hidden; text-overflow: ellipsis; }

/* 报价明细：固定行高，超长截断 */
#quote-items { table-layout: fixed; width: 100%; font-size: 11px; line-height: 1.5; }
#quote-items tr { height: 32px; }
#quote-items th { padding: 3px 4px; font-size: 11px; white-space: normal; }
#quote-items td { height: 32px; max-height: 32px; padding: 1px 4px; font-size: 11px;
  line-height: 1.3; vertical-align: middle; overflow: hidden; white-space: normal; word-break: break-word; }
#quote-items input { width: 100%; min-width: 0; box-sizing: border-box;
  height: 22px; padding: 0 3px; font-size: 11px; }
#quote-items .btn { height: 22px; padding: 0 5px; font-size: 11px; }




/* ================= DeepSeek 风格主题（简洁大气） ================= */
:root {
  --brand: #4d6bfe;
  --brand2: #3b5bff;
  --brand3: #6b86ff;
  --bg: #f7f8fa;
  --line: #ececf1;
  --text: #1f2329;
  --muted: #6b7280;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .05);
}
body { background: var(--bg); color: var(--text); }
a { color: var(--brand); }
.side { background: #fff; border-right: 1px solid var(--line); color: #4b5563;
  width: 196px; flex: 0 0 196px; }
.brand { padding: 22px 20px 14px; color: #1f2329; font-size: 18px; font-weight: 600; letter-spacing: 0; }
.brand span { line-height: 1.4; }
.nav { padding: 8px 8px; gap: 1px; }
.nav-item { color: #4b5563; border-radius: 9px; padding: 7px 9px; font-size: 13px; gap: 8px; }
.nav-item:hover { background: #f5f6f8; color: #1f2329; }
.nav-item.on { background: #eef1ff; color: var(--brand); font-weight: 500; }
.nav-item .ic { opacity: .75; }
.nav-group { padding: 18px 14px 6px; font-size: 11px; color: #9ca3af; letter-spacing: .6px; }
.side-foot {
  border-top: 1px solid var(--line); color: #6b7280; font-size: 12.5px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 8px 8px; text-align: center; white-space: nowrap;
}
.side-foot img { height: 34px; width: auto; opacity: 1; }
.top { height: 48px; flex: 0 0 48px; border-bottom: 1px solid var(--line); padding: 0 24px; }
.crumb { color: #1f2329; font-weight: 600; font-size: 14px; }
.content { padding: 28px 28px 56px; max-width: 1200px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head h2 { font-size: 16px; }
.btn { border-radius: 10px; border-color: #e3e5ea; color: #374151; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: #3f5ae8; border-color: #3f5ae8; }
.page-head h1 { font-size: 20px; font-weight: 500; letter-spacing: -.2px; color: #1f2329; }
th { background: #fafbfc; color: #6b7280; }
.mod { border-radius: var(--radius); }
.mod:hover { border-color: #d9def0; }
.mod .mod-ic { background: #eef1ff; color: var(--brand); }
@media (max-width: 860px) {
  .side { width: 200px; flex-basis: 200px; }
  .content { padding: 20px 16px 40px; }
}

/* 价格查询分页 */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 12px 4px 0; }
.pager-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pager form { margin: 0; }

/* 顶部一级菜单 + 消息铃铛 */
.top { border-bottom: 1px solid #e6e8eb; }
.top-nav { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0;
  justify-content: flex-start; margin-left: 12px; }
.top-nav-item { padding: 8px 13px; border-radius: 9px; color: #4b5563; font-size: 14.5px;
  white-space: nowrap; flex: none; }
.top-nav-item:hover { background: #f5f6f8; color: #1f2329; text-decoration: none; }
.top-nav-item.on { background: #eef1ff; color: var(--brand); font-weight: 500; }
.bell { position: relative; display: inline-flex; padding: 6px; border-radius: 8px; color: var(--muted); }
.bell:hover { background: #f1f4f8; color: var(--brand); }
.bell .ic { width: 18px; height: 18px; }
.bell-dot { position: absolute; top: -2px; right: -4px; background: #ef4444; color: #fff;
  font-size: 10px; line-height: 1; padding: 3px 4px; border-radius: 9px; }
@media (max-width: 860px) { .top-nav { display: none; } }

/* 品牌区与菜单的分割：高度与顶栏一致，横线对齐 */
.brand { height: 48px; min-height: 48px; padding: 0 8px; margin: 0;
  display: flex; align-items: center; justify-content: center; text-align: center;
  border-bottom: 1px solid var(--line); }
.nav { padding-top: 10px; }
.side { background: #fcfcfd; }

/* 首页天气 */
.weather { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #4b5563;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 4px 10px; }
.weather-city { color: #9ca3af; font-size: 12px; }
.weather-day { display: flex; flex-direction: column; align-items: center; gap: 0; line-height: 1.25; }
.weather-day b { font-weight: 600; color: #1f2329; }
.weather-day em { font-style: normal; color: #9ca3af; font-size: 11.5px; }

.bot-avatar{width:38px;height:38px;border-radius:999px;margin-left:9px;vertical-align:middle;border:1px solid #e3e6ec;background:#fff;object-fit:cover}

.who-me{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none}
.who-avatar{width:24px;height:24px;border-radius:999px;object-fit:cover;background:#e8eefc;display:inline-flex;align-items:center;justify-content:center;font-size:12px;color:#4d6bfe;font-weight:600}
.profile-avatar{width:76px;height:76px;border-radius:999px;object-fit:cover;border:1px solid #e3e6ec;background:#e8eefc;display:inline-flex;align-items:center;justify-content:center;font-size:28px;color:#4d6bfe;font-weight:600}

.chat-row{display:flex;flex-direction:column;margin:10px 0}
.chat-row.me{align-items:flex-end}
.chat-row.bot{align-items:flex-start}
.chat-bubble{max-width:78%;padding:9px 12px;border-radius:12px;font-size:13.5px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.chat-row.me .chat-bubble{background:#4d6bfe;color:#fff;border-bottom-right-radius:4px}
.chat-row.bot .chat-bubble{background:#f2f4f8;color:#1f2430;border-bottom-left-radius:4px}
.chat-time{font-size:10px;color:#9aa1ad;margin-top:3px}
.chat-empty{color:#9aa1ad;font-size:13px;text-align:center;padding:34px 0}

.chat-who{font-size:11px;color:#8a93a3;margin:0 4px 3px}

/* ---------------- 2026-11-19 全局搜索 / 首页待办 / 客户档案 ---------------- */
.top-search { position: relative; display: flex; align-items: center; margin-left: 8px;
  flex: 0 0 auto; }
.top-search .top-search-ic {
  position: absolute; left: 9px; width: 15px; height: 15px; color: #9aa1ad; pointer-events: none;
}
.top-search input {
  width: 340px; height: 32px; border: 1px solid #e6e8eb; background: #f7f8fa; border-radius: 9px;
  padding: 0 10px 0 30px; font-size: 13px; font-family: inherit; color: #1f2329; outline: none;
  transition: width .15s, background .15s, border-color .15s, box-shadow .15s;
}
.top-search input:focus {
  width: 340px; background: #fff; border-color: #c7cdf5; box-shadow: 0 0 0 3px rgba(77, 107, 254, .08);
}
.top-search input::placeholder { color: #9aa1ad; }

.todo-list { display: flex; flex-direction: column; }
.todo-item {
  display: flex; align-items: center; gap: 12px; padding: 13px 18px; color: inherit;
  border-bottom: 1px solid var(--line); transition: background .15s;
}
.todo-item:last-child { border-bottom: 0; }
.todo-item:hover { background: #fafbff; text-decoration: none; }
.todo-ic {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; background: #eef1ff; color: var(--brand);
}
.todo-ic.warn { background: #fdf1e3; color: #a45d00; }
.todo-ic.danger { background: #fbecea; color: #b1382a; }
.todo-ic .ic { width: 17px; height: 17px; }
.todo-text { flex: 1; min-width: 0; }
.todo-text b { display: block; font-size: 13.5px; color: #1f2329; }
.todo-text em { font-style: normal; display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.todo-go { font-size: 12.5px; color: var(--brand); white-space: nowrap; }
.todo-ok { display: flex; align-items: center; gap: 10px; padding: 16px 18px; color: #1c7a45; font-size: 13.5px; line-height: 1.5; }
.todo-ok .ic { width: 18px; height: 18px; flex: 0 0 18px; }

mark { background: #fff1b8; color: inherit; padding: 0 1px; border-radius: 3px; }
.search-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.search-hit { color: var(--muted); font-size: 12px; }
.search-summary { font-size: 13px; color: var(--muted); margin: 4px 0 14px; }

@media (max-width: 1100px) { .top-search input { width: 170px; } }
@media (max-width: 860px) {
  .top-search { margin-left: 0; }
  .top-search input { width: 132px; }
  .top-search input:focus { width: 176px; }
  .todo-item { padding: 12px 14px; }
}

/* 手机端修正：侧栏铺满、隐藏页脚、顶栏留出空间（2026-11-19） */
@media (max-width: 860px) {
  .side { width: 100%; flex-basis: auto; height: auto; border-right: 0; }
  .side-foot, .nav-group { display: none; }
  .brand { justify-content: flex-start; }
  .top { gap: 6px; }
}
@media (max-width: 420px) {
  .who .badge { display: none; }
  .top-search input { width: 118px; }
  .top-search input:focus { width: 150px; }
}

/* 规范标准：目录筛选条（2026-11-19 全部文件平铺） */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  color: #4b5563; font-size: 12.5px; line-height: 1.2; max-width: 100%;
  box-shadow: 0 1px 2px rgba(16, 24, 40, .03); word-break: break-all;
}
.chip:hover { border-color: #cbd9e8; background: #fafbff; text-decoration: none; }
.chip.on { background: #eef1ff; border-color: #c7cdf5; color: var(--brand); font-weight: 500; }
.chip em { font-style: normal; color: #9aa1ad; font-size: 11.5px; }
.chip.on em { color: var(--brand); }


/* 招标讯息未读角标 */
.nav-badge{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;
 padding:0 5px;border-radius:9px;background:#e05a4f;color:#fff;font-size:11px;font-weight:600;line-height:18px}
.top-nav-item .nav-badge{margin-left:5px;vertical-align:1px}

/* ===== 客户资产台账（2026-11-30） ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 10px; margin: 0 0 14px; }
.kpi { display: block; background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; color: var(--ink); text-decoration: none; }
.kpi b { display: block; font-size: 22px; line-height: 1.25; color: var(--brand); }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi:hover { border-color: #cbd9e8; background: #fafbff; text-decoration: none; }
.kpi.flat b { color: var(--ink); }
.bar-row { display: grid; grid-template-columns: 110px 1fr 54px; gap: 10px; align-items: center; padding: 4px 0; font-size: 12.5px; }
.bar-name { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #eef1f5; border-radius: 6px; height: 9px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: linear-gradient(90deg, #2d7fb8, #1b5d92); border-radius: 6px; }
.bar-val { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.chip b { color: var(--brand); font-weight: 600; margin-left: 2px; }
.kv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 18px; }
.kv-grid .kv { grid-template-columns: 78px 1fr; gap: 6px 10px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 500; word-break: normal; overflow-wrap: anywhere; }
.secret { cursor: pointer; color: var(--brand); border-bottom: 1px dashed currentColor; }
.btn-block { display: block; text-align: left; }
.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qr-label { background: #fff; border: 1px dashed #c9d3de; border-radius: 10px; padding: 12px 10px; text-align: center; break-inside: avoid; }
.qr-site { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.qr-code { display: inline-block; width: 132px; height: 132px; }
.qr-code img, .qr-code canvas { width: 132px; height: 132px; }
.qr-url { font-size: 9.5px; color: var(--muted); word-break: break-all; margin-top: 4px; }
.qr-hint { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
@media (max-width: 980px) { .qr-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .qr-grid { grid-template-columns: 1fr; } .bar-row { grid-template-columns: 84px 1fr 42px; } }
@media print {
  .side, .top, .no-print, .side-foot { display: none !important; }
  .shell { display: block !important; }
  .main { margin: 0 !important; padding: 0 !important; }
  .content { padding: 0 !important; max-width: none !important; }
  .card { border: 0 !important; box-shadow: none !important; }
  body { background: #fff !important; }
  .qr-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .qr-label { border: 1px dashed #999; }
}

/* 资产台账：设备照片 + 公开页缩略图 */
.photo-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-thumb { margin: 0; width: 150px; }
.photo-thumb a { display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f7f9fb; }
.photo-thumb img { display: block; width: 100%; height: 108px; object-fit: cover; }
.photo-thumb figcaption { font-size: 11px; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 3px; }
.photo-del { color: var(--red); text-decoration: none; font-size: 15px; line-height: 1; padding: 0 3px; }
.pub-thumb { display: inline-block; width: 44px; height: 33px; border-radius: 5px; overflow: hidden; margin: 3px 6px 3px 0; vertical-align: middle; border: 1px solid #e3e8ee; }
.pub-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pub-thumb-more { font-size: 10.5px; color: var(--muted); margin-left: -2px; }

/* 客户数据：客户卡片与筛选条 */
.cust-bar .form-inline { width: 100%; }
.cust-bar select { min-width: 240px; font-size: 13px; }
.cust-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 4px; }
.cust-tile { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 16px 18px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.cust-tile:hover { border-color: #c7d6e6; box-shadow: 0 6px 18px rgba(23, 54, 88, .08); transform: translateY(-1px); text-decoration: none; }
.cust-tile h3 { margin: 0 0 2px; font-size: 16px; line-height: 1.35; }
.cust-short { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.cust-sub { font-size: 12px; color: var(--muted); }
.cust-nums { display: flex; gap: 20px; margin: 12px 0 10px; }
.cust-nums b { display: block; font-size: 21px; line-height: 1.2; color: var(--brand); }
.cust-nums span { font-size: 11.5px; color: var(--muted); }
.cust-more { font-size: 12px; color: var(--brand); margin-top: 8px; }
.card-head .head-actions { margin-left: auto; display: flex; gap: 8px; }
@media (max-width: 860px) { .cust-grid { grid-template-columns: 1fr; } }
.cust-tile .cust-full { font-size: 11.5px; color: var(--muted); margin: 0 0 3px; }

/* 供应商报价采集 */
.q-preview { margin-top: 14px; }
.q-map { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 10px;
  background: #f7f9fb; border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
.q-map label { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 5px; }
.q-map select { min-width: 110px; font-size: 12.5px; }

/* 顶部「报价采集」高亮入口 */
.top-nav-item.hot { color: #c0392b; background: #fdecea; font-weight: 600; }
.top-nav-item.hot:hover { background: #fadbd6; color: #9c2b20; }
.top-nav-item.hot.on { background: #f6cfc9; color: #8f261c; box-shadow: inset 0 0 0 1px #eeb4ac; }

/* 临时密码弹层（重置密码后只显示一次） */
.pw-mask { position: fixed; inset: 0; background: rgba(17, 24, 39, .45); display: flex;
  align-items: center; justify-content: center; z-index: 9999; padding: 20px; }
.pw-box { background: #fff; border-radius: 14px; padding: 22px 24px; width: min(420px, 92vw);
  box-shadow: 0 18px 48px rgba(9, 30, 66, .25); }
.pw-box h3 { margin: 0 0 12px; font-size: 16px; }
.pw-code { display: block; background: #f4f6f9; border: 1px dashed #c7d0db; border-radius: 8px;
  padding: 12px 14px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 20px;
  letter-spacing: 1px; color: #1b5d92; user-select: all; cursor: text; }
.pw-actions { display: flex; gap: 10px; margin-top: 16px; }

/* 测试版标记 */
.beta-pill { display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px;
  background: #fdecea; color: #c0392b; font-size: 10.5px; font-weight: 600; letter-spacing: .5px;
  vertical-align: 2px; line-height: 1.6; }
.beta-pill-light { background: rgba(255, 255, 255, .18); color: #ffd7d1; margin-left: 8px;
  font-size: 11px; vertical-align: 6px; }

/* 首页头部：公告 + 快捷统计 + 天气 合成一张紧凑 hero 卡 */
.home-head { margin-bottom: 12px; }
.home-hero { display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 1px 6px rgba(16, 24, 40, .04); padding: 10px 16px; }
.home-bulletin { flex: 1 1 300px; min-width: 220px; display: flex; align-items: center;
  gap: 10px; padding: 0; margin: 0; background: none; border: 0; overflow: hidden; }
.hb-tag { flex: none; display: inline-flex; align-items: center; gap: 5px;
  background: #e8f1fa; color: #14547f; border-radius: 999px; padding: 4px 11px;
  font-size: 12.5px; font-weight: 600; text-decoration: none; letter-spacing: .2px; }
.hb-tag:hover { text-decoration: none; background: #dceaf7; }
.hb-view { flex: 1; height: 26px; overflow: hidden; position: relative; }
.hb-view:before, .hb-view:after { content: ""; position: absolute; top: 0; bottom: 0; width: 18px;
  z-index: 1; pointer-events: none; }
.hb-view:before { left: 0; background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); }
.hb-view:after { right: 0; background: linear-gradient(270deg, #fff, rgba(255,255,255,0)); }
.hb-track { display: flex; width: max-content; white-space: nowrap;
  animation: hb-marquee var(--hb-dur, 20s) linear infinite; }
.hb-track.static { animation: none; }
.hb-item { display: inline-flex; align-items: center; height: 26px; line-height: 26px;
  font-size: 13.5px; color: #34455a; white-space: nowrap; }
.hb-sep { color: #c3ccd6; margin: 0 16px 0 6px; font-size: 11px; }
.hb-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  margin-right: 7px; vertical-align: 2px; background: #2f7fbf; }
.hb-dot.warn { background: #d9822b; }
.hb-dot.good { background: #2e9e63; }
.home-bulletin:hover .hb-track { animation-play-state: paused; }
.home-hero .head-actions { flex: none; }
.home-hero .weather { border: 0; background: none; padding: 0; gap: 10px; }
.home-hero .weather-city { color: #9ca3af; }

/* hero 快捷统计：交办待办 / 未读 / 在办项目 */
.hero-stats { display: flex; align-items: center; gap: 8px; flex: none; }
.hero-stats a { display: flex; flex-direction: row; align-items: baseline; gap: 7px;
  background: #f7f9fc; border: 1px solid #eef2f7; border-radius: 9px;
  padding: 6px 12px; text-decoration: none; color: inherit; }
.hero-stats a:hover { text-decoration: none; background: #f1f5fa; border-color: #e3eaf3; }
.hero-stats b { font-size: 18px; line-height: 1.1; color: var(--brand); font-weight: 600;
  font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 12.5px; color: #4b5563; }
.hero-stats a.warn b { color: #c0392b; }
@keyframes hb-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 1100px) {
  .home-hero { gap: 8px 12px; padding: 12px 14px; }
  .home-bulletin { order: 1; flex-basis: 100%; margin: 0; }
  .hero-stats { order: 2; }
  .home-hero .head-actions { order: 3; margin-left: auto; }
}

/* 首页 hero：天气块单独一点底色，避免和公告混成一条 */
.home-hero .weather { background: #f7f9fc; border: 1px solid #eef2f7; border-radius: 9px;
  padding: 5px 10px; font-size: 11.5px; }

/* 关于页 */
.log-list { display: flex; flex-direction: column; gap: 14px; }
.log-entry { display: flex; gap: 16px; border-bottom: 1px dashed var(--line); padding-bottom: 13px; }
.log-entry:last-child { border-bottom: 0; padding-bottom: 0; }
.log-date { flex: none; width: 92px; color: var(--muted); font-size: 12px;
  font-family: ui-monospace, Menlo, Consolas, monospace; padding-top: 2px; }
.log-body b { font-size: 14px; color: #1f2937; }
.log-body ul { margin: 5px 0 0; padding-left: 18px; color: #4b5563; font-size: 13px; line-height: 1.8; }
@media (max-width: 700px) { .log-entry { flex-direction: column; gap: 4px; } }


/* 顶部实时时间 */
.top-clock { display: flex; flex-direction: column; align-items: flex-end; justify-content: center;
  line-height: 1.18; padding-left: 10px; border-left: 1px solid var(--line); min-width: 76px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .2px; }
.tc-date { font-size: 11.5px; color: #1f2329; font-weight: 400; }
.tc-time { font-size: 11.5px; color: #1f2329; font-weight: 500; }
@media (max-width: 1100px) { .top-clock { display: none; } }

/* 左侧菜单分组折叠 */
.nav-sec { border-radius: 9px; }
.nav-sec > summary { list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; padding: 9px 10px; border-radius: 9px;
  color: #4b5563; font-size: 13.5px; font-weight: 500; letter-spacing: .2px; user-select: none; }
.nav-sec > summary::-webkit-details-marker { display: none; }
.nav-sec-t { display: flex; align-items: center; gap: 8px; flex: 1; }
.nav-sec-t .ic { width: 17px; height: 17px; color: #6b7280; }
.nav-sec > summary:after { content: "›"; font-size: 17px; line-height: 1; color: #9aa1ad;
  transition: transform .15s; }
.nav-sec[open] > summary { color: #1f2329; background: #f5f8fb; }
.nav-sec[open] > summary:after { transform: rotate(90deg); }
.nav-sec > summary:hover { background: #f3f6fa; color: #1f2329; }
.nav-sec .nav-item { margin-left: 4px; padding-left: 10px; }


/* 侧边栏顶部常驻两个入口：修改意见（紫）、报价采集（红） */
.nav-item.pin-feedback { color: #6d28d9; background: #f5f0ff; font-weight: 600; margin-top: 2px; }
.nav-item.pin-feedback:hover { background: #ece2ff; color: #5b21b6; }
.nav-item.pin-feedback.on { background: #e7d9ff; color: #4c1d95; }
.nav-item.pin-intake { color: #c0392b; background: #fdecea; font-weight: 600; margin-top: 4px; }
.nav-item.pin-intake:hover { background: #fadbd6; color: #9c2b20; }
.nav-item.pin-intake.on { background: #f6cfc9; color: #8f261c; }
.nav-sep { height: 1px; background: var(--line); margin: 8px 6px; }


/* 顶栏用户：头像进个人信息，名字点一下退出；不再单独放退出图标 */
.who-av { display: inline-flex; border-radius: 999px; }
.who-av:hover { text-decoration: none; box-shadow: 0 0 0 2px #e6ecf5; }
.who-me:hover { text-decoration: none; color: var(--brand); }

/* 修改意见 */
.fb-list { display: flex; flex-direction: column; gap: 10px; }
.fb-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.fb-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fb-content { margin-top: 6px; color: #1f2329; line-height: 1.7; white-space: pre-wrap; }
.fb-reply { margin-top: 8px; background: #f7f9fc; border-radius: 8px; padding: 8px 10px;
  font-size: 13px; color: #374151; }
.fb-actions { margin-top: 8px; display: flex; gap: 8px; }

/* 企业微信登录按钮 */
.wecom-login { display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; border-radius: 10px; background: #07c160; color: #fff !important;
  font-size: 15px; font-weight: 600; text-decoration: none !important; margin: 4px 0 12px; }
.wecom-login:hover { background: #06ad56; }
.login-or { display: flex; align-items: center; gap: 10px; color: #9aa1ad; font-size: 12px; margin: 2px 0 12px; }
.login-or:before, .login-or:after { content: ""; flex: 1; height: 1px; background: #e5eaf1; }
