/* ==========================================================
   登记表与工单系统 · 前端样式
   配色：主色靛蓝 #3B5BDB / 背景 #F5F7FB / 卡片白
   ========================================================== */

:root {
  --primary: #3B5BDB;
  --primary-dark: #2F49B0;
  --primary-light: #EDF1FF;
  --bg: #F5F7FB;
  --card: #FFFFFF;
  --text: #1F2937;
  --text-2: #4B5563;
  --text-3: #8A94A6;
  --line: #E4E8F0;
  --line-2: #EEF1F6;
  --ok: #16A34A;
  --ok-bg: #E8F7EE;
  --warn: #D97706;
  --warn-bg: #FEF3E2;
  --danger: #DC2626;
  --danger-bg: #FDECEC;
  --info: #2563EB;
  --info-bg: #E8F0FE;
  --purple: #7C3AED;
  --purple-bg: #F1EAFE;
  --grey: #6B7280;
  --grey-bg: #F0F2F5;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 4px 14px rgba(16,24,40,.06);
  --shadow-lg: 0 10px 40px rgba(16,24,40,.16);
  --nav-h: 58px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Hiragino Sans GB",
               "Source Han Sans SC", "Noto Sans CJK SC", "WenQuanYi Micro Hei",
               -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C9D0DD; border-radius: 6px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #A9B3C5; background-clip: content-box; }

[hidden] { display: none !important; }

/* ============================ 登录页 ============================ */
.login-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(1100px 520px at 12% -10%, rgba(255,255,255,.22), transparent 60%),
    radial-gradient(900px 500px at 100% 110%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(135deg, #2B3FA8 0%, #3B5BDB 45%, #5B7CFA 100%);
  overflow: auto;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px 34px 28px;
}
.login-brand { text-align: center; margin-bottom: 26px; }
.login-logo {
  width: 56px; height: 56px; margin: 0 auto 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--primary), #6D8BFF);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 26px; font-weight: 700;
  box-shadow: 0 8px 18px rgba(59,91,219,.32);
}
.login-brand h1 { margin: 0; font-size: 22px; letter-spacing: .5px; }
.login-sub { margin: 6px 0 0; color: var(--text-3); font-size: 13px; }
.login-tip { margin: 16px 0 0; font-size: 12px; color: var(--text-3); text-align: center; }

/* ============================ 顶部导航 ============================ */
.app-shell { height: 100vh; display: flex; flex-direction: column; }

.topbar {
  height: var(--nav-h);
  flex: 0 0 var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  position: relative;
  z-index: 60;
  box-shadow: 0 1px 3px rgba(16,24,40,.05);
}
.topbar-left { display: flex; align-items: center; gap: 18px; min-width: 0; flex: 0 1 auto; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }

/* 窄屏时导航容易把右侧的铃铛和按钮压住，这里做两档处理：
   1200px 以下隐藏品牌文字、导航自身横向滚动；760px 以下拆成两行。 */
@media (max-width: 1200px) {
  .brand-name { display: none; }
  .topbar-left { gap: 10px; }
  .mainnav { min-width: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
  .mainnav::-webkit-scrollbar { display: none; }
  .nav-link { padding: 0 10px; }
}
@media (max-width: 760px) {
  .topbar { height: auto; min-height: var(--nav-h); flex: 0 0 auto; flex-wrap: wrap; padding: 8px 12px; row-gap: 8px; }
  .topbar-left { flex: 1 1 100%; }
  .topbar-right { flex: 1 1 100%; justify-content: flex-end; }
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 15.5px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #6D8BFF);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.brand-name { white-space: nowrap; }

.mainnav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link {
  display: flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  cursor: pointer; border: none; background: transparent;
  white-space: nowrap;
}
.nav-link:hover { background: var(--line-2); color: var(--text); text-decoration: none; }
.nav-item.active > .nav-link { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.nav-caret { font-size: 9px; opacity: .65; transition: transform .15s; }
.nav-item.open .nav-caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 250px; max-height: 70vh; overflow: auto;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 6px; display: none; z-index: 80;
}
.nav-item.open .dropdown { display: block; }
.dropdown-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  color: var(--text); font-size: 13.5px; cursor: pointer;
}
.dropdown-item:hover { background: var(--primary-light); text-decoration: none; }
.dropdown-item .di-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-item .di-sub { font-size: 11px; color: var(--text-3); white-space: nowrap; }
.dropdown-head { padding: 8px 10px 4px; font-size: 12px; color: var(--text-3); font-weight: 600; }
.dropdown-sep { height: 1px; background: var(--line-2); margin: 5px 4px; }

.icon-btn {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  border: none; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--text-2);
}
.icon-btn:hover { background: var(--line-2); color: var(--primary); }
.bell-wrap { position: relative; }
.bell-badge {
  position: absolute; top: 1px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 600; line-height: 17px;
  text-align: center; border-radius: 9px;
  border: 2px solid #fff; box-sizing: content-box;
}
.bell-panel {
  position: absolute; right: 0; top: calc(100% + 8px);
  width: 350px; max-height: 440px; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); z-index: 90;
  overflow: hidden;
}
.bell-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-weight: 600; font-size: 13.5px;
}
.bell-list { overflow: auto; padding: 4px; }
.bell-item { padding: 9px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.bell-item:hover { background: var(--line-2); }
.bell-item.unread { background: var(--primary-light); }
.bell-item .bi-title { font-weight: 600; font-size: 13.5px; }
.bell-item .bi-body { color: var(--text-2); font-size: 12.5px; margin-top: 2px; word-break: break-all; }
.bell-item .bi-time { color: var(--text-3); font-size: 11.5px; margin-top: 3px; }

.user-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 6px; border-radius: 999px;
  background: var(--line-2); font-size: 13px; white-space: nowrap;
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6D8BFF);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.user-chip .role-tag { font-size: 11px; color: var(--text-3); }

/* ============================ 内容区 ============================ */
.content {
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 22px 40px;
}
.page { max-width: 1600px; margin: 0 auto; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.page-title { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: .3px; }
.page-desc { color: var(--text-3); font-size: 13px; margin-top: 3px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.grid-side-left { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1280px) {
  .grid-2, .grid-side-left { grid-template-columns: minmax(0, 1fr); }
}

/* ============================ 卡片 ============================ */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2);
}
.card-title { margin: 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.card-title .ct-sub { font-weight: 400; font-size: 12px; color: var(--text-3); }
.card-body { padding: 16px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--line-2); background: #FBFCFE; }

/* ============================ 指标卡 ============================ */
.metric-grid {
  display: grid; gap: 12px; margin-bottom: 16px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}
.metric {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.metric::after {
  content: ''; position: absolute; right: -14px; top: -14px;
  width: 62px; height: 62px; border-radius: 50%; background: var(--primary-light); opacity: .55;
}
.metric-label { color: var(--text-3); font-size: 12.5px; position: relative; z-index: 1; }
.metric-value { font-size: 26px; font-weight: 700; line-height: 1.25; margin-top: 2px; position: relative; z-index: 1; }
.metric-value small { font-size: 13px; font-weight: 500; color: var(--text-3); margin-left: 3px; }
.metric.accent .metric-value { color: var(--primary); }
.metric.warn::after { background: var(--warn-bg); }
.metric.warn .metric-value { color: var(--warn); }
.metric.danger::after { background: var(--danger-bg); }
.metric.danger .metric-value { color: var(--danger); }
.metric.ok::after { background: var(--ok-bg); }
.metric.ok .metric-value { color: var(--ok); }

/* ============================ 按钮 ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--line-2); color: var(--text);
  font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { background: #E3E8F0; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--text-2); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B91C1C; }
.btn-success { background: var(--ok); color: #fff; }
.btn-success:hover { background: #15803D; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn-block { width: 100%; height: 40px; font-size: 15px; letter-spacing: 2px; }
.link-btn {
  background: none; border: none; color: var(--primary); cursor: pointer;
  font-size: 12.5px; padding: 2px 4px;
}
.link-btn:hover { text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
.link-btn:disabled { color: var(--text-3); cursor: not-allowed; text-decoration: none; }

.btn-group { display: inline-flex; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.btn-group button {
  border: none; background: #fff; padding: 6px 13px; font-size: 13px; cursor: pointer; color: var(--text-2);
  border-right: 1px solid var(--line);
}
.btn-group button:last-child { border-right: none; }
.btn-group button.active { background: var(--primary); color: #fff; font-weight: 600; }
.btn-group button:hover:not(.active) { background: var(--line-2); }

/* ============================ 表单 ============================ */
.field { margin-bottom: 14px; }
.field > label {
  display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--text-2);
}
.field > label .req { color: var(--danger); margin-right: 3px; font-weight: 700; }
.field .unit { color: var(--text-3); font-weight: 400; font-size: 12px; margin-left: 4px; }
.field .hint { color: var(--text-3); font-size: 12px; margin-top: 4px; }
.field .err-msg { color: var(--danger); font-size: 12px; margin-top: 4px; display: none; }

input[type=text], input[type=password], input[type=number], input[type=date],
input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; height: 36px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; outline: none; transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 82px; padding: 8px 11px; resize: vertical; line-height: 1.6; }
select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%238A94A6' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; padding-right: 28px;
}
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59,91,219,.13); }
input:disabled, select:disabled, textarea:disabled { background: var(--grey-bg); color: var(--text-2); cursor: not-allowed; }
input::placeholder, textarea::placeholder { color: #B4BCC9; }

.field.is-error input, .field.is-error select, .field.is-error textarea { border-color: var(--danger); background: #FFFBFB; }
.field.is-error input:focus, .field.is-error select:focus, .field.is-error textarea:focus { box-shadow: 0 0 0 3px rgba(220,38,38,.12); }
.field.is-error .err-msg { display: block; }
.field.is-error > label { color: var(--danger); }

.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
@media (max-width: 720px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.form-grid .f-full { grid-column: 1 / -1; }
@media (max-width: 860px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check-line { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); }
.check-line input[type=checkbox] { width: 15px; height: 15px; margin: 0; accent-color: var(--primary); }

.form-error {
  background: var(--danger-bg); color: var(--danger);
  border: 1px solid #F6C9C9; border-left: 3px solid var(--danger);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 13px;
}
.form-error ul { margin: 6px 0 0; padding-left: 18px; }
.form-error li { margin: 2px 0; }
.form-warn {
  background: var(--warn-bg); color: #9A5B04;
  border: 1px solid #F5DDBB; border-left: 3px solid var(--warn);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 13px;
}

/* ============================ 表格 ============================ */
.table-wrap { overflow: auto; max-width: 100%; }
/* min-width：窄屏时表格横向滚动，而不是把中文列挤成一字一行 */
table.tbl { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
table.tbl th, table.tbl td {
  padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2);
  vertical-align: top; word-break: break-word;
}
table.tbl thead th {
  background: #F7F9FC; color: var(--text-2); font-weight: 600; font-size: 12.5px;
  white-space: nowrap; position: sticky; top: 0; z-index: 3;
  border-bottom: 1px solid var(--line);
}
table.tbl tbody tr:nth-child(even) { background: #FBFCFE; }
table.tbl tbody tr:hover { background: var(--primary-light); }
table.tbl tbody tr.row-overdue { background: var(--danger-bg) !important; }
table.tbl tbody tr.row-overdue:hover { background: #FBDCDC !important; }
table.tbl tbody tr.row-void td { text-decoration: line-through; color: var(--text-3); }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl .col-fix {
  position: sticky; left: 0; z-index: 2; background: #fff;
  box-shadow: 1px 0 0 var(--line-2);
}
table.tbl thead .col-fix { z-index: 4; background: #F7F9FC; }
table.tbl tbody tr:nth-child(even) .col-fix { background: #FBFCFE; }
table.tbl tbody tr:hover .col-fix { background: var(--primary-light); }
table.tbl .cell-clip { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
table.tbl .actions { display: flex; gap: 4px; flex-wrap: wrap; white-space: nowrap; }
table.tbl tfoot td { padding: 10px 12px; background: #FBFCFE; font-weight: 600; }

/* ============================ 看板（Excel 式网格） ============================ */
.dropdown-item .di-name { flex: 1; min-width: 0; }
.dropdown-item .di-board {
  padding: 1px 9px; border: 1px solid var(--primary); border-radius: 999px;
  font-size: 11px; color: var(--primary); background: var(--primary-light);
  cursor: pointer; white-space: nowrap; flex: none;
}
.dropdown-item .di-board:hover { background: var(--primary); color: #fff; }

.page-board .bd-bar { align-items: flex-end; }
.bd-select {
  min-width: 210px; height: 34px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
}

.bd-card { overflow: hidden; }
.bd-wrap {
  overflow: auto; max-width: 100%; max-height: 68vh; min-height: 260px;
  border-top: 1px solid var(--line-2);
}
table.bd-table {
  border-collapse: separate; border-spacing: 0; font-size: 13px;
  width: max-content; min-width: 100%; background: #fff;
}
table.bd-table th, table.bd-table td {
  border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  padding: 0; text-align: left; vertical-align: top; background: transparent;
}
table.bd-table tbody tr { background: #fff; }
table.bd-table tbody tr:nth-child(even) { background: #FBFCFE; }
table.bd-table tbody tr:hover td { background-color: rgba(59,91,219,.08); }
table.bd-table tbody tr { cursor: pointer; }

table.bd-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: #EDF1F8; color: var(--text-2);
  border-bottom: 1px solid var(--line); vertical-align: bottom;
}
table.bd-table thead th.bd-rownum { z-index: 5; background: #E6EBF5; }
.bd-th { min-width: 132px; }
.bd-th-top { display: flex; align-items: flex-start; gap: 3px; padding: 8px 10px 2px; }
.bd-th-label { font-weight: 600; font-size: 12.5px; color: var(--text); word-break: break-word; }
.bd-req { color: var(--danger); font-weight: 700; }
.bd-th-hint {
  padding: 0 26px 7px 10px; font-size: 11px; color: var(--text-3);
  line-height: 1.35; word-break: break-word; max-width: 220px; min-height: 14px;
}
.bd-filter-btn {
  position: absolute; right: 4px; bottom: 4px; width: 20px; height: 20px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--text-3);
  cursor: pointer; padding: 0;
}
.bd-filter-btn:hover { color: var(--primary); border-color: var(--primary); }
.bd-filter-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

table.bd-table td.bd-rownum {
  position: sticky; left: 0; z-index: 2;
  min-width: 58px; width: 58px; padding: 7px 8px;
  text-align: center; color: var(--text-3); font-size: 12px;
  background: #fff; box-shadow: 1px 0 0 var(--line-2);
}
table.bd-table tbody tr:nth-child(even) td.bd-rownum { background: #FBFCFE; }
table.bd-table td.bd-td { padding: 7px 10px; min-width: 110px; max-width: 240px; }
.bd-clip { display: block; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bd-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  margin: 0 0 10px; font-size: 12.5px; color: var(--text-2);
}
.bd-legend-title { font-weight: 600; }
.bd-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.bd-swatch { width: 13px; height: 13px; border-radius: 3px; border: 1px solid; display: inline-block; }

.bd-filter-panel { min-width: 320px; }
.bd-filter-top { display: flex; gap: 8px; margin-bottom: 10px; }
.bd-filter-top input[type=search] {
  flex: 1; min-width: 0; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.bd-val-list {
  max-height: 300px; overflow: auto; padding: 4px;
  border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
.bd-val { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-radius: 6px; cursor: pointer; }
.bd-val:hover { background: var(--primary-light); }
.bd-val-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bd-val-count { color: var(--text-3); font-size: 12px; }

.bd-more { padding: 12px; text-align: center; }

.empty {
  padding: 34px 20px; text-align: center; color: var(--text-3); font-size: 13.5px;
}
.empty .em-emoji { font-size: 30px; display: block; margin-bottom: 8px; opacity: .6; }
/* 筛不出东西时，把「为什么空」「能点什么」都摆出来 */
.empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-conds { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 14px 0 4px; }
.empty-cond {
  padding: 5px 11px; font-size: 12.5px; color: var(--primary);
  background: var(--primary-light); border: 1px solid #C6D2F5; border-radius: 999px; cursor: pointer;
}
.empty-cond:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty-dates { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.empty-actions { margin-top: 18px; }

.loading { padding: 34px; text-align: center; color: var(--text-3); font-size: 13px; }
.spinner {
  width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--primary);
  border-radius: 50%; display: inline-block; vertical-align: -3px; margin-right: 8px;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================ 徽章 ============================ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 500;
  white-space: nowrap; line-height: 1.7;
}
.badge-gray { background: var(--grey-bg); color: var(--grey); }
.badge-blue { background: var(--info-bg); color: var(--info); }
.badge-green { background: var(--ok-bg); color: var(--ok); }
.badge-orange { background: var(--warn-bg); color: var(--warn); }
.badge-purple { background: var(--purple-bg); color: var(--purple); }
.badge-red { background: var(--danger-bg); color: var(--danger); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.overdue-text { color: var(--danger); font-weight: 600; }

/* ============================ 标签页 ============================ */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tab {
  padding: 9px 16px; cursor: pointer; font-size: 14px; color: var(--text-2);
  border-bottom: 2px solid transparent; white-space: nowrap; background: none; border-top: none; border-left: none; border-right: none;
}
.tab:hover { color: var(--primary); }
.tab.active { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.tab .tab-count { font-size: 12px; color: var(--text-3); margin-left: 4px; }

/* ============================ 筛选条 ============================ */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end;
  padding: 13px 16px; background: #FBFCFE; border: 1px solid var(--line);
  border-radius: var(--radius); margin-bottom: 14px;
}
.filter-item { display: flex; flex-direction: column; gap: 4px; }
.filter-item > label { font-size: 12px; color: var(--text-3); }
.filter-item input, .filter-item select { min-width: 140px; }
.filter-item.wide input { min-width: 220px; }
.filter-spacer { flex: 1 1 auto; }
.filter-actions { display: flex; gap: 8px; }

/* 已选筛选条件（小标签，点 × 去掉一个） */
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 14px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px 4px 10px; font-size: 12.5px; color: var(--primary);
  background: var(--primary-light); border: 1px solid #C6D2F5; border-radius: 999px;
}
.filter-chip .chip-x {
  width: 18px; height: 18px; line-height: 1; border: 0; border-radius: 50%;
  background: rgba(59, 91, 219, 0.12); color: var(--primary);
  cursor: pointer; font-size: 13px; padding: 0;
}
.filter-chip .chip-x:hover { background: var(--primary); color: #fff; }

/* 工单列表：表头的漏斗筛选按钮（th 本身是 sticky，天然是定位参照） */
table.tbl thead th.tk-th { padding-right: 30px; }
table.tbl thead th.tk-th .bd-filter-btn { bottom: 5px; }

/* 截止时间筛选的快捷方式：选中要看得见 */
.tk-quick-row { flex-wrap: wrap; }
.tk-quick.active,
.tk-quick.active:hover {
  background: var(--primary); border-color: var(--primary); color: #fff;
}
.tk-quick-state {
  display: block; margin: -2px 0 10px; padding: 6px 10px;
  background: var(--primary-light); border-radius: var(--radius-sm); color: var(--primary);
}

/* ============================ 分页 ============================ */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pager-info { color: var(--text-3); font-size: 13px; }
.pager-btns { display: flex; gap: 8px; align-items: center; }

/* ============================ 抽屉 ============================ */
.drawer-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.42); z-index: 200;
  display: flex; justify-content: flex-end; animation: fadeIn .16s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer {
  width: 560px; max-width: 94vw; height: 100%; background: var(--bg);
  display: flex; flex-direction: column; box-shadow: -8px 0 32px rgba(0,0,0,.16);
  animation: slideIn .2s ease;
}
@keyframes slideIn { from { transform: translateX(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: #fff; border-bottom: 1px solid var(--line);
}
.drawer-title { font-size: 16px; font-weight: 600; margin: 0; }
.drawer-body { flex: 1; overflow: auto; padding: 16px 18px 30px; }
.drawer-foot { padding: 12px 18px; background: #fff; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; }

/* ============================ 弹窗 ============================ */
.modal-mask {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 300;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  animation: fadeIn .15s ease; overflow: auto;
}
.modal {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg);
  width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column;
  animation: popIn .18s ease;
}
@keyframes popIn { from { transform: scale(.96); opacity: .6; } to { transform: none; opacity: 1; } }
.modal.wide { max-width: 860px; }
.modal.narrow { max-width: 420px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.modal-title { margin: 0; font-size: 16px; font-weight: 600; }
.modal-body { padding: 18px; overflow: auto; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; background: #FBFCFE; }

/* ============================ 提示条 ============================ */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
  padding: 10px 16px; font-size: 13.5px; max-width: 620px; animation: toastIn .2s ease;
}
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { border-left-color: var(--ok); background: #F4FCF7; }
.toast.err { border-left-color: var(--danger); background: #FEF6F6; }
.toast.warn { border-left-color: var(--warn); background: #FFFBF3; }

/* ============================ 折叠说明 ============================ */
.desc-box {
  background: var(--primary-light); border: 1px solid #DCE3FF;
  border-radius: var(--radius); padding: 11px 14px; margin-bottom: 14px;
}
.desc-box .desc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
.desc-box .desc-head .dh-title { font-weight: 600; color: var(--primary-dark); font-size: 13.5px; }
.desc-box .desc-text {
  margin-top: 9px; font-size: 13px; color: var(--text-2); white-space: pre-wrap;
  line-height: 1.75; border-top: 1px dashed #C8D3FF; padding-top: 9px;
}
.desc-box.collapsed .desc-text { display: none; }

/* ============================ 最近登记侧栏 ============================ */
.side-list { max-height: 460px; overflow: auto; }
.side-item { padding: 9px 12px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.side-item:last-child { border-bottom: none; }
.side-item:hover { background: var(--primary-light); }
.side-item .si-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.side-item .si-user { color: var(--text-2); font-weight: 500; }
.side-item .si-time { color: var(--text-3); font-size: 12px; }
.side-item .si-sum { color: var(--text-2); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ 草稿侧栏 ============================ */
.draft-item { padding: 9px 12px; border-bottom: 1px solid var(--line-2); cursor: default; }
.draft-item:last-child { border-bottom: none; }
.draft-item:hover { background: var(--primary-light); }
.draft-item .di-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.draft-item .di-name { color: var(--text-2); font-weight: 500; }
.draft-item .di-time { color: var(--text-3); font-size: 12px; }
.draft-item .di-sum { color: var(--text-2); font-size: 12.5px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============================ 快捷登记卡片 ============================ */
.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.quick-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; box-shadow: var(--shadow);
  transition: transform .12s, border-color .12s, box-shadow .12s;
  display: flex; flex-direction: column; gap: 6px;
}
.quick-card:hover { transform: translateY(-2px); border-color: var(--primary); box-shadow: 0 6px 18px rgba(59,91,219,.14); }
.quick-card .qc-title { font-weight: 600; font-size: 14px; line-height: 1.4; }
.quick-card .qc-meta { font-size: 12px; color: var(--text-3); }
.quick-card .qc-go { font-size: 12.5px; color: var(--primary); font-weight: 500; margin-top: 2px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.quick-card .qc-board {
  padding: 1px 8px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; color: var(--text-2); background: #fff; cursor: pointer; white-space: nowrap;
}
.quick-card .qc-board:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

/* ============================ 图片上传 ============================ */
.img-uploader {
  border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 12px; background: #FBFCFE;
}
.img-uploader.drag { border-color: var(--primary); background: var(--primary-light); }
.img-picker {
  display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); flex-wrap: wrap;
}
.img-picker input[type=file] { display: none; }
.img-thumb-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.img-thumb {
  position: relative; width: 88px; height: 88px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: zoom-in;
}
.img-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-thumb .del {
  position: absolute; top: 3px; right: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(17,24,39,.62); color: #fff; border: none;
  cursor: pointer; font-size: 13px; line-height: 1; display: flex; align-items: center; justify-content: center;
}
.img-thumb .del:hover { background: var(--danger); }
.img-uploading { font-size: 12.5px; color: var(--primary); }

/* ============================ 图片查看器 ============================ */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 600;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; padding: 30px;
}
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 6px; background: #fff; }
.lightbox .lb-close { color: #fff; font-size: 15px; cursor: pointer; background: none; border: none; }

/* ============================ 时间轴（工单链路） ============================ */
.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ''; position: absolute; left: 12px; top: 6px; bottom: 6px;
  width: 2px; background: var(--line);
}
.tl-node { position: relative; margin-bottom: 16px; }
.tl-node::before {
  content: ''; position: absolute; left: -28px; top: 8px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 3px solid var(--primary); z-index: 1;
}
.tl-node.is-done::before { border-color: var(--ok); background: var(--ok); }
.tl-node.is-pending::before { border-color: var(--warn); }
.tl-node.is-closed::before { border-color: var(--grey); background: var(--grey); }
.tl-node.is-handed::before { border-color: var(--purple); }
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.tl-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; background: #FBFCFE; border-bottom: 1px solid var(--line-2);
}
.tl-order { font-weight: 700; font-size: 13.5px; color: var(--primary); }
.tl-meta { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; font-size: 13px; color: var(--text-2); }
.tl-meta b { color: var(--text); font-weight: 600; }
.tl-events { padding: 4px 14px 12px; }
.tl-event { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 13px; }
.tl-event:first-child { border-top: none; }
.tl-ev-icon {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px;
  background: var(--primary-light); color: var(--primary);
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700;
}
.tl-ev-body { flex: 1; min-width: 0; }
.tl-ev-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.tl-ev-user { font-weight: 600; }
.tl-ev-time { color: var(--text-3); font-size: 12px; }
.tl-ev-note { color: var(--text-2); margin-top: 2px; word-break: break-word; }
.tl-handoff {
  margin: -6px 0 10px -22px; padding: 7px 12px; font-size: 12.5px; color: var(--purple);
  background: var(--purple-bg); border: 1px dashed #D9C6FB; border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 8px;
}
.tl-handoff .arrow { font-size: 15px; }

/* ============================ 图表 ============================ */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 10px; }
.chart-box .ch-title { font-weight: 600; font-size: 14.5px; margin-bottom: 2px; }
.chart-box .ch-sub { color: var(--text-3); font-size: 12px; margin-bottom: 8px; }
.chart-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.chart-legend .lg-item { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend .lg-swatch { width: 10px; height: 10px; border-radius: 2px; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-empty { padding: 40px 10px; text-align: center; color: var(--text-3); font-size: 13px; }
.chart-empty .ce-emoji { font-size: 26px; display: block; margin-bottom: 6px; opacity: .55; }

/* ============================ 设置页 ============================ */
.setting-section { margin-bottom: 22px; }
.section-title { font-size: 15.5px; font-weight: 700; margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.section-title .st-tag { font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.section-desc { color: var(--text-3); font-size: 12.5px; margin-bottom: 12px; }
.tpl-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.tpl-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; cursor: pointer; }
.tpl-card-head:hover { background: #FBFCFE; }
.tpl-card-head .tc-name { font-weight: 600; }
.tpl-card-head .tc-meta { color: var(--text-3); font-size: 12.5px; }
.tpl-card-body { padding: 14px 16px; border-top: 1px solid var(--line-2); display: none; }
.tpl-card.open .tpl-card-body { display: block; }
.tpl-fields-editor { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; margin: 10px 0; }

/* ---- 字段（列）编辑器：7 列网格，表头跟着一起横向滚动 ---- */
.tpl-fe { border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.tpl-fe-list { overflow: auto; max-height: 430px; }
.tpl-fe-row {
  display: grid;
  grid-template-columns: 30px minmax(110px, 1.1fr) 96px 152px 66px minmax(130px, 1fr) minmax(140px, 1.2fr) 100px;
  gap: 8px; align-items: center;
  padding: 7px 10px; border-bottom: 1px solid var(--line-2);
  font-size: 12.5px; min-width: 890px;
}
.tpl-fe-row:last-child { border-bottom: none; }
.tpl-fe-row.fe-head {
  background: #F7F9FC; color: var(--text-3); font-weight: 600;
  position: sticky; top: 0; z-index: 2; border-bottom: 1px solid var(--line);
}
.tpl-fe-row input, .tpl-fe-row select { height: 30px; font-size: 12.5px; padding: 0 8px; width: 100%; }
.tpl-fe-row input[type=checkbox] { width: 15px; height: 15px; }
.fe-idx {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
  background: var(--primary-light); color: var(--primary);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.tpl-fe-ops { display: flex; gap: 4px; justify-content: flex-end; }
.fe-op {
  width: 26px; height: 26px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--text-2); cursor: pointer; font-size: 13px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.fe-op:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.fe-op.danger:hover { border-color: var(--danger); color: var(--danger); background: var(--danger-bg); }
/* 「用途」是特殊列，选了跟进人/跟进时间就跟着变醒目 */
.tpl-fe-row select.fe-use:not([disabled]) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.tpl-fe-row select[disabled] { background: #F1F3F7; color: var(--text-3); cursor: not-allowed; }
.tpl-fe-foot { padding: 9px 10px; border-top: 1px solid var(--line-2); background: #FBFCFE; }

/* ---- 模板管理表格 ---- */
table.tbl.tpl-manage { min-width: 900px; }
table.tbl.tpl-manage th, table.tbl.tpl-manage td { vertical-align: middle; }
table.tbl.tpl-manage tbody tr.row-void td { text-decoration: none; }
table.tbl.tpl-manage tbody tr.row-void td .strong { color: var(--text-2); }
table.tbl.tpl-manage .actions { gap: 2px; }
.tpl-edit-row > td {
  background: #fff !important; padding: 14px 16px 16px !important;
  border-bottom: 2px solid var(--line);
}
table.tbl.tpl-manage tbody tr:hover .tpl-edit-row > td { background: #fff !important; }
.tpl-editor { max-width: 100%; }
.tpl-editor .form-row { align-items: flex-start; }
.tpl-editor .field label { font-size: 12.5px; }
.tpl-editor textarea { min-height: 58px; }

/* ============================ 登记页 · 特殊字段 ============================ */
/* 登记人：自动记当前登录人，只读 */
input.ro-text { background: #F5F7FB; color: var(--text-2); font-weight: 600; cursor: default; }
/* 下次跟进人：多人勾选 */
.multi-pick {
  display: flex; flex-wrap: wrap; gap: 6px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 10px; background: #FBFCFE; min-height: 40px;
}
.multi-item {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--text-2);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 11px 3px 8px; background: #fff; cursor: pointer;
}
.multi-item:hover { border-color: var(--primary); background: var(--primary-light); }
.multi-item input[type=checkbox] { width: 14px; height: 14px; margin: 0; accent-color: var(--primary); }
.multi-item:has(input:checked), .multi-item.on { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
/* 配了「跟进人名单」时的锁定样式：固定不可改，但仍要一眼看得出是选中的 */
.multi-item.is-locked { cursor: default; }
.multi-item.is-locked input[type=checkbox] { opacity: 1; pointer-events: none; }
.multi-item.is-locked:hover { border-color: var(--primary); background: var(--primary-light); }
.multi-item.is-locked:has(input:checked) { border-color: var(--primary); background: var(--primary-light); color: var(--primary); font-weight: 600; }
.copy-box {
  background: #F7F9FC; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 12.5px; font-family: Consolas, Monaco, monospace;
  white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto;
}

/* ============================ 杂项 ============================ */
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.ml-8 { margin-left: 8px; }
.mb-0 { margin-bottom: 0; } .mb-8 { margin-bottom: 8px; } .mb-12 { margin-bottom: 12px; }
.gap-6 { gap: 6px; } .gap-12 { gap: 12px; }
.flex-1 { flex: 1 1 auto; min-width: 0; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.hidden-file { display: none; }
hr.sep { border: none; border-top: 1px solid var(--line-2); margin: 16px 0; }
.kv-list { display: grid; grid-template-columns: 130px 1fr; gap: 7px 12px; font-size: 13.5px; }
.kv-list .kv-k { color: var(--text-3); }
.img-gallery { display: flex; flex-wrap: wrap; gap: 8px; }
.img-gallery .ig-item { width: 108px; height: 108px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.img-gallery .ig-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  cursor: pointer;
}
.link-row:hover { border-color: var(--primary); background: var(--primary-light); }
