/* ============================================================
   设备售后维保管理系统 — 全局样式
   Apple 风格主题（iOS / macOS 设计语言）
   浅色 · 毛玻璃 · 大圆角 · 系统蓝 · 胶囊控件
   ============================================================ */

:root {
  /* Apple 系统色板 */
  --primary: #007aff;          /* iOS Blue */
  --primary-dark: #0062d6;
  --primary-light: #e5f1ff;
  --danger: #ff3b30;           /* iOS Red */
  --danger-light: #ffebe9;
  --warning: #ff9500;          /* iOS Orange */
  --warning-light: #fff3e0;
  --success: #34c759;          /* iOS Green */
  --success-light: #e9f9ee;
  --info: #8e8e93;             /* iOS System Gray */
  --info-light: #f2f2f7;
  --purple: #af52de;           /* iOS Purple */
  --purple-light: #f6ecfd;
  --teal: #5ac8fa;

  /* 中性色（苹果灰阶） */
  --bg: #f5f5f7;               /* Apple 官网标志性背景灰 */
  --card: #ffffff;
  --border: rgba(60, 60, 67, .12);
  --text: #1d1d1f;
  --text-2: #515154;
  --text-3: #aeaeb2;

  /* 形状与阴影 */
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .03), 0 4px 14px rgba(0, 0, 0, .04);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .18), 0 4px 16px rgba(0, 0, 0, .08);

  --sidebar-w: 224px;
  --header-h: 52px;

  /* 毛玻璃 */
  --frost: rgba(255, 255, 255, .72);
  --frost-sidebar: rgba(246, 246, 248, .78);
  --frost-blur: saturate(180%) blur(20px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro SC",
               "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--primary); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }

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

/* 侧边栏：macOS 浅色毛玻璃侧栏 */
.sidebar {
  width: var(--sidebar-w);
  background: var(--frost-sidebar);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 0; bottom: 0; left: 0;
  display: flex; flex-direction: column;
  z-index: 50;
}
.sidebar .brand {
  padding: 18px 20px 16px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -.01em;
  line-height: 1.4;
}
.sidebar .brand small { display: block; font-size: 11px; font-weight: 500; color: var(--text-3); margin-top: 3px; letter-spacing: 0; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 6px 12px 12px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 14px;
  margin: 2px 0;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 10px;
  transition: background .15s, color .15s;
}
.sidebar nav a:hover { background: rgba(0, 0, 0, .05); color: var(--text); }
.sidebar nav a.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 122, 255, .35);
}
.sidebar nav a .ico { width: 20px; text-align: center; font-size: 15.5px; }
.sidebar .side-foot { padding: 14px 20px; font-size: 11px; color: var(--text-3); border-top: 1px solid var(--border); }

.main {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  display: flex; flex-direction: column;
}

/* 顶栏：iOS 毛玻璃导航 */
.topbar {
  height: var(--header-h);
  background: var(--frost);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px;
  padding: 0 22px;
  position: sticky; top: 0; z-index: 40;
}
.topbar .page-title { font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; }
.topbar .spacer { flex: 1; }
.user-switch { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.user-switch select { max-width: 170px; }
.role-tag {
  font-size: 11px; padding: 2px 9px; border-radius: 999px;
  background: var(--primary-light); color: var(--primary);
  font-weight: 600;
}

.content { padding: 22px; flex: 1; }

/* ---------- 通用组件 ---------- */
/* 卡片：无边框大圆角浮层 */
.card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
  overflow: hidden;
}
.card-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 14px;
  letter-spacing: -.01em;
}
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.flush { padding: 0; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* KPI 卡片：苹果发布会式大数字 */
.kpi-card {
  background: var(--card);
  border: none;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(0,0,0,.03), 0 10px 28px rgba(0,0,0,.08); }
.kpi-card .k-label { font-size: 12.5px; color: var(--text-3); font-weight: 500; }
.kpi-card .k-value { font-size: 28px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi-card .k-sub { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.kpi-card.danger .k-value { color: var(--danger); }
.kpi-card.warning .k-value { color: var(--warning); }
.kpi-card.success .k-value { color: var(--success); }
.kpi-card.primary .k-value { color: var(--primary); }

/* 徽章：iOS 胶囊 */
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2.5px 10px;
  border-radius: 999px;
  background: var(--info-light);
  color: var(--text-2);
  white-space: nowrap;
  font-weight: 500;
}
.badge.blue { background: var(--primary-light); color: var(--primary); }
.badge.red { background: var(--danger-light); color: var(--danger); }
.badge.orange { background: var(--warning-light); color: var(--warning); }
.badge.green { background: var(--success-light); color: #248a3d; }
.badge.purple { background: var(--purple-light); color: var(--purple); }

/* 按钮：iOS 胶囊按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: none;
  background: rgba(120, 120, 128, .12);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .1s ease, background .15s, opacity .15s, box-shadow .15s;
  white-space: nowrap;
  -webkit-user-select: none; user-select: none;
}
.btn:active { transform: scale(.96); }
.btn:hover { background: rgba(120, 120, 128, .18); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(0,122,255,.3); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.danger { background: var(--danger); color: #fff; box-shadow: 0 2px 8px rgba(255,59,48,.3); }
.btn.success { background: var(--success); color: #fff; box-shadow: 0 2px 8px rgba(52,199,89,.3); }
.btn.warning { background: var(--warning); color: #fff; box-shadow: 0 2px 8px rgba(255,149,0,.3); }
.btn.ghost-danger { background: var(--danger-light); color: var(--danger); }
.btn.ghost-danger:hover { background: var(--danger); color: #fff; }
.btn.sm { padding: 4px 12px; font-size: 12.5px; }
.btn.lg { padding: 10px 24px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

/* 表单：iOS 圆角输入框 */
.form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.form-item { margin-bottom: 14px; flex: 1; min-width: 180px; }
.form-item label { display: block; font-size: 12.5px; color: var(--text-2); margin-bottom: 6px; font-weight: 500; }
.form-item label .req { color: var(--danger); margin-left: 2px; }
input[type="text"], input[type="number"], input[type="date"], input[type="datetime-local"],
input[type="tel"], input[type="password"], select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8.5px 12px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--text);
  background: var(--card);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none; appearance: none;
}
select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23aeaeb2' d='M1 1l4 4 4-4' stroke='%23aeaeb2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3.5px rgba(0, 122, 255, .15);
}
textarea { resize: vertical; min-height: 72px; }
input[type="checkbox"] { accent-color: var(--primary); }
input[type="radio"] { accent-color: var(--primary); }
.hint { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* 表格：iOS 设置页式列表 */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left;
  padding: 11px 14px;
  background: transparent;
  color: var(--text-3);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(120, 120, 128, .05); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl tr.clickable { cursor: pointer; }

.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.red { color: var(--danger); }
.money.green { color: #248a3d; }

/* 弹窗：iOS Sheet 弹层 */
.modal-mask {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, .35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 100;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}
.modal {
  background: var(--card);
  border-radius: 20px;
  width: 640px;
  max-width: 100%;
  box-shadow: var(--shadow-lg);
  animation: sheetIn .28s cubic-bezier(.32, .72, .35, 1);
  overflow: hidden;
}
.modal.wide { width: 860px; }
@keyframes sheetIn {
  from { transform: translateY(24px) scale(.97); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.modal-head {
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  font-weight: 700; font-size: 15.5px;
  letter-spacing: -.01em;
}
.modal-head .close {
  margin-left: auto; cursor: pointer; border: none; background: rgba(120,120,128,.12);
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 15px; color: var(--text-2); line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.modal-head .close:hover { background: rgba(120,120,128,.22); }
.modal-body { padding: 20px; max-height: 70vh; overflow-y: auto; }
.modal-foot {
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end; gap: 10px;
}

/* 提示条 */
.alert-bar {
  border-radius: var(--radius-sm);
  padding: 11px 15px;
  font-size: 13px;
  margin-bottom: 12px;
  border: none;
  display: flex; gap: 8px; align-items: flex-start;
  font-weight: 500;
}
.alert-bar.red { background: var(--danger-light); color: #c52218; }
.alert-bar.orange { background: var(--warning-light); color: #b26a00; }
.alert-bar.green { background: var(--success-light); color: #1e7a34; }
.alert-bar.blue { background: var(--primary-light); color: #0057b8; }

/* 上传照片 */
.photo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.photo-item {
  position: relative;
  width: 72px; height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-item img { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.photo-item .del {
  position: absolute; top: 3px; right: 3px;
  width: 19px; height: 19px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); color: #fff;
  font-size: 11px; line-height: 19px; text-align: center;
  cursor: pointer; border: none;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.photo-add {
  width: 72px; height: 72px;
  border: 1.5px dashed rgba(60, 60, 67, .22);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: var(--text-3);
  cursor: pointer;
  font-size: 12px;
  gap: 2px;
  background: transparent;
  transition: border-color .15s, color .15s, background .15s;
}
.photo-add:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.photo-add .plus { font-size: 20px; }

/* 漏斗 */
.funnel-row { display: flex; gap: 12px; }
.funnel-item {
  flex: 1;
  border-radius: var(--radius);
  padding: 15px;
  color: #fff;
  position: relative;
  min-height: 92px;
}
.funnel-item .f-label { font-size: 12.5px; opacity: .92; font-weight: 500; }
.funnel-item .f-amount { font-size: 21px; font-weight: 800; margin-top: 6px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.funnel-item .f-count { font-size: 12px; opacity: .88; margin-top: 2px; }
.funnel-item.f1 { background: linear-gradient(135deg, #ffb340, #ff9500); }
.funnel-item.f2 { background: linear-gradient(135deg, #ff6459, #ff3b30); }
.funnel-item.f3 { background: linear-gradient(135deg, #c77dff, #af52de); }
.funnel-item.f4 { background: linear-gradient(135deg, #b6433c, #8e2621); }

/* 预警列表 */
.alert-list { list-style: none; }
.alert-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
  font-size: 13px;
}
.alert-list li:last-child { border-bottom: none; }
.alert-list .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.alert-list .dot.red { background: var(--danger); box-shadow: 0 0 0 3px var(--danger-light); }
.alert-list .dot.orange { background: var(--warning); box-shadow: 0 0 0 3px var(--warning-light); }
.alert-list .dot.blue { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-light); }
.alert-list .muted { color: var(--text-3); font-size: 12px; margin-left: auto; }

/* 时间线 */
.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; background: var(--border); border-radius: 1px;
}
.tl-item { position: relative; padding-bottom: 16px; }
.tl-item::before {
  content: ''; position: absolute; left: -18px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--card); border: 2.5px solid var(--primary);
}
.tl-item.done::before { background: var(--success); border-color: var(--success); }
.tl-item .tl-title { font-weight: 600; font-size: 13.5px; }
.tl-item .tl-time { font-size: 12px; color: var(--text-3); }
.tl-item .tl-desc { font-size: 13px; color: var(--text-2); margin-top: 3px; }

/* 详情字段 */
.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 24px; }
.field { padding: 8px 0; border-bottom: 1px solid var(--border); display: flex; }
.field .f-label { color: var(--text-3); width: 96px; flex-shrink: 0; font-size: 13px; }
.field .f-value { flex: 1; font-size: 13.5px; word-break: break-all; }
.field.full { grid-column: 1 / -1; }

/* 空态 */
.empty { text-align: center; color: var(--text-3); padding: 40px 0; font-size: 13px; }

/* 加载 */
.loading { text-align: center; padding: 40px; color: var(--text-3); }

/* 分页 */
.pager { display: flex; align-items: center; gap: 10px; justify-content: flex-end; padding: 12px 16px; font-size: 13px; color: var(--text-2); }

/* 筛选条 */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; align-items: center;
}
.filter-bar select, .filter-bar input { width: auto; min-width: 130px; }
.filter-bar .spacer { flex: 1; }

/* Tab 页：iOS 分段控件（Segmented Control） */
.tabs {
  display: inline-flex; gap: 2px;
  background: rgba(120, 120, 128, .12);
  border-radius: 10px;
  padding: 2.5px;
  margin-bottom: 16px;
  overflow-x: auto;
  max-width: 100%;
}
.tabs button {
  border: none; background: none; padding: 6px 16px;
  font-size: 13px; color: var(--text-2); cursor: pointer;
  border-radius: 8px;
  white-space: nowrap;
  font-weight: 500;
  transition: background .18s, color .18s, box-shadow .18s;
}
.tabs button:hover { color: var(--text); }
.tabs button.active {
  color: var(--text);
  font-weight: 600;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

/* Toast：iOS 通知横幅 */
.toast-wrap { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  background: rgba(29, 29, 31, .82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  color: #fff;
  padding: 10px 20px; border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 8px 28px rgba(0, 0, 0, .22);
  animation: toastIn .25s cubic-bezier(.32, .72, .35, 1);
  max-width: 90vw;
}
.toast.error { background: rgba(209, 44, 37, .9); }
.toast.success { background: rgba(40, 155, 65, .9); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px) scale(.95); } to { opacity: 1; } }

/* 底部导航（移动端）：iOS Tab Bar */
.bottom-nav { display: none; }

/* 进度条 */
.progress {
  height: 7px; border-radius: 999px; background: rgba(120, 120, 128, .15);
  overflow: hidden; min-width: 80px;
}
.progress > div { height: 100%; background: var(--primary); border-radius: 999px; transition: width .3s ease; }
.progress.red > div { background: var(--danger); }
.progress.orange > div { background: var(--warning); }

/* 步骤流 */
.step-flow { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 6px 0; }
.step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--text-3); white-space: nowrap;
}
.step .s-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(120, 120, 128, .15); color: var(--text-3);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0;
}
.step.done { color: #248a3d; }
.step.done .s-dot { background: var(--success); color: #fff; }
.step.current { color: var(--primary); font-weight: 600; }
.step.current .s-dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 3px var(--primary-light); }
.step-arrow { color: var(--border); margin: 0 8px; }

/* 统计条形 */
.stat-bar-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 13px; }
.stat-bar-row .sb-label { width: 110px; flex-shrink: 0; color: var(--text-2); }
.stat-bar-row .sb-bar { flex: 1; }
.stat-bar-row .sb-val { width: 90px; text-align: right; font-variant-numeric: tabular-nums; }

/* ============ 移动端适配（工程师端生死线） ============ */
@media (max-width: 860px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .content { padding: 12px; padding-bottom: 80px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2.keep, .grid-4.keep2 { grid-template-columns: repeat(2, 1fr); }
  .field-grid { grid-template-columns: 1fr; }
  .funnel-row { flex-direction: column; }
  .modal-mask { padding: 0; align-items: flex-end; }
  .modal {
    width: 100%; border-radius: 20px 20px 0 0; max-height: 92vh;
    display: flex; flex-direction: column;
    animation: sheetUp .32s cubic-bezier(.32, .72, .35, 1);
  }
  @keyframes sheetUp { from { transform: translateY(40%); } to { transform: none; } }
  .modal-body { max-height: none; flex: 1; }

  /* iOS Tab Bar：毛玻璃 */
  .bottom-nav {
    display: flex;
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--frost);
    -webkit-backdrop-filter: var(--frost-blur);
    backdrop-filter: var(--frost-blur);
    border-top: 1px solid var(--border);
    z-index: 60;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottom-nav a {
    flex: 1;
    display: flex; flex-direction: column; align-items: center;
    padding: 7px 0 5px;
    font-size: 10.5px; color: var(--text-3);
    font-weight: 500;
  }
  .bottom-nav a .ico { font-size: 20px; margin-bottom: 1px; }
  .bottom-nav a.active { color: var(--primary); }

  .topbar { padding: 0 12px; }
  .user-switch .label-text { display: none; }

  /* 手机端表格转卡片 */
  .tbl.mobile-cards thead { display: none; }
  .tbl.mobile-cards, .tbl.mobile-cards tbody, .tbl.mobile-cards tr, .tbl.mobile-cards td { display: block; width: 100%; }
  .tbl.mobile-cards tr {
    border: none;
    border-radius: var(--radius);
    margin: 10px;
    padding: 8px 4px;
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .tbl.mobile-cards td { border: none; padding: 5px 12px; }
  .tbl.mobile-cards td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px; color: var(--text-3);
  }
  .tbl.mobile-cards td.no-label::before { display: none; }

  .btn.lg-mobile { padding: 11px 18px; font-size: 14px; }
}

/* 工程师快捷操作按钮组 */
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.quick-actions .btn { flex: 1; min-width: 120px; }

/* 看板大数字链接 */
.link-like { cursor: pointer; }
.link-like:hover { text-decoration: underline; }

/* 滚动条：macOS 风格细条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(120, 120, 128, .3); border-radius: 999px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(120, 120, 128, .5); background-clip: content-box; border: 2px solid transparent; }
::-webkit-scrollbar-track { background: transparent; }

/* ================= 登录页（iOS 解锁风格） ================= */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse 60% 45% at 18% 12%, rgba(0, 122, 255, .16), transparent),
    radial-gradient(ellipse 55% 40% at 85% 22%, rgba(175, 82, 222, .13), transparent),
    radial-gradient(ellipse 65% 50% at 50% 95%, rgba(90, 200, 250, .14), transparent),
    #f5f5f7;
}
.login-card {
  width: 100%;
  max-width: 384px;
  background: rgba(255, 255, 255, .75);
  -webkit-backdrop-filter: var(--frost-blur);
  backdrop-filter: var(--frost-blur);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12), 0 2px 8px rgba(0, 0, 0, .05);
  padding: 36px 32px 28px;
  text-align: center;
  animation: sheetIn .35s cubic-bezier(.32, .72, .35, 1);
}
.login-logo { font-size: 46px; }
.login-title { font-size: 20px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.login-sub { font-size: 12.5px; color: var(--text-3); margin: 6px 0 24px; }
.login-card .form-item { text-align: left; margin-bottom: 14px; }
.login-card input { background: rgba(255, 255, 255, .9); }
.login-card .btn.block { width: 100%; padding: 12px 0; font-size: 15.5px; margin-top: 8px; border-radius: 14px; }
.login-foot { font-size: 12px; color: var(--text-3); margin-top: 18px; }
