:root {
  --primary: #1565c0;
  --primary-dark: #0d47a1;
  --primary-soft: #e8f0fb;
  --accent: #00897b;
  --danger: #c62828;
  --warn: #ef6c00;
  --ok: #2e7d32;
  --ink: #1f2733;
  --ink-2: #485264;
  --ink-3: #7b8698;
  --line: #e3e8ef;
  --bg: #f4f6fa;
  --white: #fff;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 4px 12px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
button { font-family: inherit; }

/* ---------- 布局 ---------- */
.app { display: flex; min-height: 100vh; }

.sidebar {
  width: 216px; flex: 0 0 216px;
  background: #10243d;
  color: #c9d6e5;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { padding: 18px 18px 14px; border-bottom: 1px solid rgba(255,255,255,.07); }
.brand b { display: block; color: #fff; font-size: 15px; letter-spacing: .5px; }
.brand span { display: block; font-size: 11px; color: #7f93ab; margin-top: 4px; letter-spacing: 1px; }

.nav { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.nav-group { margin-top: 6px; }
.nav-group > h4 {
  margin: 0; padding: 12px 18px 6px;
  font-size: 11px; font-weight: 600; color: #6b7f97;
  letter-spacing: 1.2px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px; cursor: pointer;
  font-size: 13.5px; color: #c2d0e0;
  border-left: 3px solid transparent;
}
.nav-item:hover { background: rgba(255,255,255,.05); color: #fff; }
.nav-item.active { background: rgba(21,101,192,.28); border-left-color: #4d9bff; color: #fff; font-weight: 600; }
.nav-item .dot { width: 5px; height: 5px; border-radius: 50%; background: #5c7089; }
.nav-item.active .dot { background: #4d9bff; }
/* 待回复角标 (2026-11-03) */
.nav-item .badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #e53935; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* 新咨询右下角弹窗 (2026-11-03) */
.notice {
  position: fixed; right: 24px; bottom: 24px; width: 340px; max-width: calc(100vw - 32px);
  background: var(--white); border-radius: 12px; z-index: 95;
  box-shadow: 0 16px 48px rgba(16, 24, 40, .22), 0 2px 8px rgba(16, 24, 40, .08);
  border: 1px solid var(--line); overflow: hidden;
  animation: ntIn .22s ease;
}
@keyframes ntIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.notice .nt-hd {
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(135deg, #1565c0, #0d47a1); color: #fff;
  padding: 10px 14px; font-size: 13px;
}
.notice .nt-x { cursor: pointer; font-size: 18px; line-height: 1; opacity: .8; }
.notice .nt-x:hover { opacity: 1; }
.notice .nt-bd { padding: 12px 14px 10px; }
.notice .nt-t { font-size: 13.5px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.notice .nt-m { font-size: 12px; color: var(--ink-3); margin-bottom: 8px; }
.notice .nt-c {
  font-size: 12.5px; color: var(--ink-2); line-height: 1.65;
  background: #f7f9fc; border-radius: 6px; padding: 8px 10px;
  max-height: 96px; overflow-y: auto; white-space: pre-wrap;
}
.notice .nt-ft { display: flex; align-items: center; gap: 8px; padding: 10px 14px 12px; }
.notice .nt-more { font-size: 11.5px; color: var(--ink-3); margin-left: auto; }

.sidebar-foot { padding: 12px 18px; border-top: 1px solid rgba(255,255,255,.07); font-size: 11px; color: #6b7f97; line-height: 1.6; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 56px; background: var(--white); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 16px; padding: 0 24px;
  position: sticky; top: 0; z-index: 20;
}
.crumb { font-size: 13px; color: var(--ink-3); }
.crumb b { color: var(--ink); font-weight: 600; }
.topbar .spacer { flex: 1; }
.userbox { display: flex; align-items: center; gap: 10px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--primary-soft);
  color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.userbox .nm { font-size: 13px; }
.userbox .rl { font-size: 11px; color: var(--ink-3); }

.content { padding: 20px 24px 40px; flex: 1; }

/* ---------- 通用 ---------- */
.page-head { display: flex; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.page-head h1 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: .3px; }
.page-head p { margin: 0; font-size: 12.5px; color: var(--ink-3); padding-bottom: 2px; }
.page-head .grow { flex: 1; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.card-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.card-head .grow { flex: 1; }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 14px; border-radius: 6px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink-2);
  font-size: 13px; cursor: pointer; white-space: nowrap;
}
.btn:hover { border-color: #c3ccd9; color: var(--ink); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--danger); border-color: #f0c9c9; }
.btn.danger:hover { background: #fdf3f3; }
.btn.sm { height: 27px; padding: 0 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.input, select.input, textarea.input {
  height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px;
  font-size: 13px; font-family: inherit; color: var(--ink); background: #fff; outline: none;
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.6; }
.input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(21,101,192,.1); }
.input::placeholder { color: #a9b3c1; }

.toolbar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.toolbar .grow { flex: 1; }

table.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
table.grid th {
  text-align: left; font-weight: 600; color: var(--ink-3); font-size: 12px;
  padding: 10px 12px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap;
}
table.grid td { padding: 11px 12px; border-bottom: 1px solid #eef1f6; vertical-align: middle; }
table.grid tbody tr:hover { background: #fafcff; }
table.grid tbody tr.clickable { cursor: pointer; }
table.grid .num { text-align: right; font-variant-numeric: tabular-nums; }
table.grid.compact td { padding: 7px 12px; }
table.grid.compact img { width: 42px; height: 42px; object-fit: cover; border-radius: 4px; background: #f5f7fa; }
table.grid .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
table.grid td .sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }

.empty { padding: 44px 20px; text-align: center; color: var(--ink-3); font-size: 13px; }
.empty b { display: block; color: var(--ink-2); font-size: 14px; margin-bottom: 6px; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 20px; font-size: 12px; line-height: 19px; border: 1px solid transparent; white-space: nowrap; }
.tag.gray { background: #f1f3f7; color: #5b6577; }
.tag.blue { background: #e8f0fb; color: #1565c0; }
.tag.green { background: #e8f5e9; color: #2e7d32; }
.tag.orange { background: #fff4e5; color: #ef6c00; }
.tag.red { background: #fdecec; color: #c62828; }
.tag.teal { background: #e0f2f1; color: #00695c; }

.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 14px; font-size: 13px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; color: var(--ink); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.stat .k { font-size: 12.5px; color: var(--ink-3); }
.stat .v { font-size: 24px; font-weight: 700; margin-top: 6px; letter-spacing: -.5px; }
.stat .v small { font-size: 13px; font-weight: 500; color: var(--ink-3); margin-left: 4px; }
.stat.accent .v { color: var(--primary); }
.stat.warn .v { color: var(--warn); }
.stat.ok .v { color: var(--ok); }

.banner {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 14px; border-radius: var(--radius); font-size: 13px; line-height: 1.7;
  background: #eef4fd; border: 1px solid #d3e2f8; color: #1b4478;
}
.banner.warn { background: #fff8ec; border-color: #f5ddb5; color: #8a5300; }

/* 弹窗 */
.mask { position: fixed; inset: 0; background: rgba(16,24,40,.42); display: grid; place-items: center; z-index: 60; padding: 24px; }
.modal { background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(16,24,40,.22); width: 100%; max-width: 620px; max-height: 88vh; display: flex; flex-direction: column; }
.modal.wide { max-width: 940px; }
.modal-head { padding: 15px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal-head h3 { margin: 0; font-size: 15px; }
.modal-head .x { margin-left: auto; cursor: pointer; color: var(--ink-3); font-size: 18px; line-height: 1; background: none; border: 0; }
.modal-body { padding: 18px; overflow-y: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 5px; }
.field label .req { color: var(--danger); margin-left: 2px; }
.field .input { width: 100%; }
.field .hint { font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }

.toast {
  position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%);
  background: #1f2733; color: #fff; padding: 10px 18px; border-radius: 8px;
  font-size: 13px; z-index: 90; box-shadow: 0 8px 24px rgba(0,0,0,.24); opacity: 0; transition: .18s;
}
.toast.show { opacity: 1; }
.toast.err { background: #8f1d1d; }

/* 比价台 */
.cmp-scroll { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 720px; }
table.cmp th, table.cmp td { padding: 10px 12px; border-bottom: 1px solid #eef1f6; text-align: left; }
table.cmp thead th { background: #fafbfd; color: var(--ink-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
table.cmp th.sortable { cursor: pointer; user-select: none; }
table.cmp th.sortable:hover { color: var(--primary); }
table.cmp td.num, table.cmp th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.cmp tr.picked { background: #f0f7ff; }
table.cmp tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.best { color: var(--ok); font-weight: 700; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #cfd8e3; }
.timeline li.done::before { background: var(--ok); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 7px; top: 16px; bottom: 0; width: 1px; background: #e3e8ef; }
.timeline .t { color: var(--ink-3); font-size: 12px; }

.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.file-list li:last-child { border-bottom: 0; }
.file-list .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 商品库：图片网格与缩略图 */
.pname { font-weight: 600; }
table.grid td .sub { color: var(--ink-3); font-size: 12px; margin-top: 2px; }
table.grid.products td.ell { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table.grid.products td.acts { white-space: normal; line-height: 22px; }
table.grid.products td.acts a { color: var(--primary); cursor: pointer; font-size: 12.5px; margin-right: 7px; }
table.grid.products td.acts a:hover { text-decoration: underline; }
table.grid.products td.acts a.danger { color: var(--danger); }

/* 商品库：状态标签页（点击切换） */
.tabs { display: flex; gap: 2px; padding: 10px 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { padding: 7px 13px; font-size: 13px; color: var(--ink-2); cursor: pointer; border-bottom: 2px solid transparent; border-radius: 6px 6px 0 0; user-select: none; }
.tab:hover { background: #f5f7fa; color: var(--ink); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 600; background: var(--primary-soft); }
.tab b { margin-left: 6px; font-weight: 600; color: var(--ink-3); font-size: 12px; }
.tab.active b { color: var(--primary); }

/* 批量操作条 */
.bulkbar { display: none; align-items: center; gap: 8px; padding: 8px 16px; background: #eef4fd; border-bottom: 1px solid #dbe6f7; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.bulkbar b { color: var(--primary); }

/* 调整顺序的小按钮 */
table.grid.products td.mv { white-space: nowrap; }
.mvb { width: 24px; height: 22px; padding: 0; margin-right: 2px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 4px; font-size: 12px; line-height: 20px; cursor: pointer; }
.mvb:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-soft); }
.mvb:disabled { opacity: .4; cursor: default; }

/* 序号列 */
table.grid th.no, table.grid td.no { text-align: center; color: var(--ink-3); font-size: 12px; }

/* 页码 */
.pager { display: flex; align-items: center; gap: 5px; padding: 12px 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .pg { min-width: 30px; height: 28px; padding: 0 9px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 5px; font-size: 12.5px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.pager .pg:hover { border-color: var(--primary); color: var(--primary); }
.pager .pg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pager .pg:disabled { opacity: .45; cursor: default; }
.pager .pg-dots { color: var(--ink-3); padding: 0 2px; }
.pager .pg-info { margin-left: auto; font-size: 12.5px; color: var(--ink-3); }
.noimg { display: inline-block; width: 42px; height: 42px; line-height: 42px; text-align: center; font-size: 11px; color: var(--ink-3); background: #f5f7fa; border-radius: 4px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 264px; overflow-y: auto; padding-right: 4px; }
.img-cell { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f7f9fc; }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-cell .img-tools {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 4px;
  padding: 4px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .15s;
}
.img-cell:hover .img-tools { opacity: 1; }
.img-cell .cover-badge { position: absolute; left: 5px; top: 5px; background: var(--primary); color: #fff; font-size: 11px; line-height: 17px; padding: 0 7px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
.img-cell .mini { border: 0; background: rgba(255, 255, 255, .92); color: var(--ink-2); font-size: 11px; border-radius: 4px; padding: 2px 6px; cursor: pointer; }
.img-cell .mini.del { margin-left: auto; color: var(--danger); font-size: 14px; line-height: 1; padding: 1px 7px; }
.img-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: var(--ink-3); font-size: 12.5px; border: 1px dashed var(--line); border-radius: 8px; }
.img-ops { display: flex; align-items: center; gap: 8px; margin-top: 9px; flex-wrap: wrap; }
.img-ops .hint { color: var(--ink-3); font-size: 11.5px; }

/* 登录 */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #0f2947 0%, #153a63 55%, #1c4c80 100%); }
.login-card { width: 380px; background: #fff; border-radius: 12px; padding: 30px 30px 26px; box-shadow: 0 24px 60px rgba(0,0,0,.28); }
.login-card h1 { margin: 0 0 4px; font-size: 19px; letter-spacing: .5px; }
.login-card .sub { font-size: 12.5px; color: var(--ink-3); margin-bottom: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card .btn { width: 100%; justify-content: center; height: 38px; font-size: 14px; margin-top: 6px; }
/* 密码框 + 眼睛 */
.pwd-wrap { position: relative; }
.pwd-wrap .input { padding-right: 40px; }
.eye {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
  border-radius: 5px; padding: 0;
}
.eye:hover { color: var(--primary); background: var(--primary-soft); }
.eye:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
/* 记住密码 */
.remember { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); margin: 2px 0 14px; cursor: pointer; user-select: none; }
.remember input[type="checkbox"] { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); cursor: pointer; }
.remember-hint { color: var(--ink-3); font-size: 11px; }
.login-err { color: var(--danger); font-size: 12.5px; min-height: 18px; margin-top: 10px; }
.login-foot { margin-top: 18px; font-size: 11.5px; color: var(--ink-3); line-height: 1.7; border-top: 1px solid var(--line); padding-top: 12px; }

.pill-role { font-size: 11.5px; color: var(--ink-3); }

/* 排序面板（↕ 调整顺序） */
.po-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.po-hint { font-size: 12px; color: var(--ink-3); }
.po-tip { font-size: 12px; color: var(--ink-2); background: var(--primary-soft); border-radius: 6px; padding: 7px 10px; margin-bottom: 10px; line-height: 1.6; }
.po-list { max-height: 54vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--white); }
.po-row {
  display: flex; align-items: center; gap: 9px; padding: 7px 10px;
  border-bottom: 1px solid #f1f3f7; background: var(--white);
  cursor: grab; user-select: none; touch-action: none;
}
.po-row:last-child { border-bottom: 0; }
.po-row:hover { background: #fafbfd; }
.po-row.dragging { opacity: .5; background: var(--primary-soft); pointer-events: none; box-shadow: inset 3px 0 0 var(--primary); }
.po-grip { color: #c9c2b6; font-size: 14px; line-height: 1; }
.po-no { width: 28px; text-align: right; font-size: 12px; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.po-row img, .po-ph { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: 0 0 32px; background: #f1f3f7; }
.po-name { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.po-cat { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; max-width: 130px; overflow: hidden; text-overflow: ellipsis; }
.po-acts { display: flex; gap: 4px; }
.po-btn {
  border: 0; background: #f2f5fa; color: var(--ink-2); font-size: 11px;
  padding: 3px 7px; border-radius: 5px; cursor: pointer;
}
.po-btn:hover { background: var(--primary-soft); color: var(--primary); }
.po-empty { padding: 28px; text-align: center; color: var(--ink-3); font-size: 13px; }

/* 列表缩略图：右上角放大按钮 + 双击放大 */
td.pimg { position: relative; }
td.pimg img { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; display: block; cursor: zoom-in; }
td.pimg .zoom {
  position: absolute; right: 2px; top: 2px; width: 17px; height: 17px; padding: 0;
  border: 0; border-radius: 4px; cursor: pointer; line-height: 17px; font-size: 11px;
  background: rgba(21, 101, 192, .88); color: #fff; opacity: .62; transition: opacity .12s, transform .12s;
}
td.pimg:hover .zoom { opacity: 1; transform: scale(1.08); }
td.pimg .zoom:hover { background: var(--primary-dark); }

/* 大图预览层 */
.pv-mask {
  position: fixed; inset: 0; z-index: 9999; background: rgba(10, 14, 20, .88);
  display: flex; align-items: center; justify-content: center;
}
.pv-stage {
  max-width: 94vw; max-height: 90vh; overflow: auto; display: flex;
  align-items: center; justify-content: center; border-radius: 8px;
}
.pv-img { max-width: 94vw; max-height: 90vh; object-fit: contain; cursor: zoom-in; display: block; border-radius: 6px; box-shadow: 0 14px 50px rgba(0, 0, 0, .55); }
.pv-img.actual { max-width: none; max-height: none; cursor: zoom-out; }
.pv-x {
  position: fixed; right: 18px; top: 14px; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; line-height: 1;
  cursor: pointer; z-index: 2;
}
.pv-x:hover { background: rgba(255, 255, 255, .28); }
.pv-nav {
  position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 64px;
  border: 0; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff;
  font-size: 30px; line-height: 1; cursor: pointer; z-index: 2;
}
.pv-nav:hover { background: rgba(255, 255, 255, .26); }
.pv-nav.prev { left: 14px; }
.pv-nav.next { right: 14px; }
.pv-bar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 12px; color: #fff; font-size: 12.5px;
  background: rgba(0, 0, 0, .38); padding: 6px 14px; border-radius: 20px; white-space: nowrap;
}
.pv-idx { font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-tip { opacity: .72; }

@media (max-width: 900px) {
  .sidebar { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 100px 1fr; }
}

/* ---------- 咨询往来记录 + 操作日志（2026-11-03） ---------- */
.cthread { display: flex; flex-direction: column; gap: 10px; }
.cmsg {
  max-width: 78%; background: #f4f6fa; border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px;
}
.cmsg--adv { align-self: flex-end; background: var(--primary-soft); border-color: #cfe0f6; }
.cmsg-hd { font-size: 11.5px; color: var(--ink-3); margin-bottom: 4px; }
.cmsg-bd { font-size: 13px; color: var(--ink); line-height: 1.7; white-space: pre-wrap; word-break: break-word; }

.clog { list-style: none; margin: 0; padding: 0; }
.clog li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 12.5px; color: var(--ink-2);
  padding: 7px 0; border-bottom: 1px dashed var(--line);
}
.clog li:last-child { border-bottom: none; }
.clog .lg-a { color: var(--ink); }
.clog .lg-t { color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.clog .lg-empty { color: var(--ink-3); justify-content: flex-start; }
