/* 光缆运维系统 - 共享样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif; background: #f0f9ff; color: #1f2937; line-height: 1.5; }
a { color: #0284c7; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, textarea, select { font: inherit; }

/* ===== 登录页 ===== */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); }
.login-card { background: #fff; border-radius: 16px; padding: 36px 32px; width: 100%; max-width: 420px; box-shadow: 0 12px 36px rgba(0,0,0,0.18); }
.login-card h1 { font-size: 22px; color: #1e3a8a; margin-bottom: 6px; }
.login-card .sub { color: #6b7280; font-size: 13px; margin-bottom: 28px; }
.login-card .field { margin-bottom: 16px; }
.login-card label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 6px; font-weight: 600; }
.login-card input { width: 100%; padding: 11px 14px; border: 1.5px solid #d1d5db; border-radius: 8px; outline: none; font-size: 14px; }
.login-card input:focus { border-color: #0ea5e9; }
.login-card .btn { width: 100%; padding: 12px; background: #0ea5e9; color: #fff; border: none; border-radius: 8px; font-size: 15px; font-weight: 600; margin-top: 8px; }
.login-card .btn:hover { background: #0284c7; }
.login-card .err { color: #a41e22; font-size: 13px; margin-top: 10px; min-height: 18px; }
.login-card .hint { font-size: 12px; color: #9ca3af; margin-top: 18px; line-height: 1.6; }
.login-card .role-tabs { display: flex; gap: 6px; background: #f3f4f6; border-radius: 8px; padding: 4px; margin-bottom: 22px; }
.login-card .role-tabs button { flex: 1; padding: 8px; background: transparent; border: none; border-radius: 6px; color: #6b7280; font-weight: 600; }
.login-card .role-tabs button.active { background: #fff; color: #0284c7; box-shadow: 0 1px 3px rgba(0,0,0,.1); }

/* ===== 通用布局 ===== */
.app { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: #0ea5e9; color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.1); position: sticky; top: 0; z-index: 50; }
.topbar h1 { font-size: 17px; font-weight: 600; }
.topbar .user { font-size: 12px; opacity: .95; }
.topbar .user b { margin-right: 8px; }
.topbar .logout { background: rgba(255,255,255,0.15); border: none; color: #fff; padding: 6px 12px; border-radius: 6px; font-size: 12px; margin-left: 10px; }
.topbar .logout:hover { background: rgba(255,255,255,0.25); }
.container { flex: 1; padding: 14px; max-width: 1100px; margin: 0 auto; width: 100%; }

/* ===== Tab 切换 ===== */
.tabs { display: flex; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 4px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.tabs button { flex: 1; padding: 9px 6px; background: transparent; border: none; color: #6b7280; font-weight: 600; border-radius: 7px; white-space: nowrap; font-size: 13px; min-width: 60px; }
.tabs button.active { background: #0ea5e9; color: #fff; }

/* ===== 新任务横幅(2026-09-06 新增) ===== */
.notif-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
                display: none; padding: 10px 14px;
                background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
                color: #fff; box-shadow: 0 4px 12px rgba(220,38,38,0.4);
                animation: slideDown 0.4s ease-out; }
.notif-banner.show { display: flex; align-items: center; gap: 10px; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.notif-banner .icon { font-size: 22px; flex-shrink: 0; }
.notif-banner .body { flex: 1; min-width: 0; }
.notif-banner .title { font-size: 14px; font-weight: 700; }
.notif-banner .desc { font-size: 12px; opacity: 0.9; margin-top: 2px;
                     white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notif-banner .act { background: #fff; color: #b91c1c; border: 0;
                     padding: 6px 14px; border-radius: 5px; font-size: 13px;
                     font-weight: 600; cursor: pointer; flex-shrink: 0; }
.notif-banner .close { background: rgba(255,255,255,0.2); color: #fff; border: 0;
                       padding: 4px 8px; border-radius: 4px; font-size: 14px;
                       cursor: pointer; line-height: 1; flex-shrink: 0; }
body.has-banner { padding-top: 56px; }
body.has-banner .top-bar { top: 56px; }

/* ===== 卡片 ===== */
.card { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); margin-bottom: 14px; }
.card h2 { font-size: 15px; color: #374151; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e0f2fe; }

/* ===== 统计卡片 ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat { background: #fff; border-radius: 10px; padding: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-left: 4px solid #0ea5e9; }
.stat .num { font-size: 22px; font-weight: 700; color: #0284c7; }
.stat .label { font-size: 12px; color: #6b7280; margin-top: 2px; }
.stat.green { border-color: #10b981; }
.stat.green .num { color: #047857; }
.stat.blue { border-color: #38bdf8; }
.stat.blue .num { color: #0284c7; }
.stat.orange { border-color: #f59e0b; }
.stat.orange .num { color: #b45309; }
.stat.purple { border-color: #8b5cf6; }
.stat.purple .num { color: #6d28d9; }
.stat.sky { border-color: #38bdf8; }
.stat.sky .num { color: #0369a1; }

/* ===== 表单 ===== */
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: #4b5563; margin-bottom: 5px; font-weight: 600; }
.field label .req { color: #a41e22; }
.field input, .field select, .field textarea { width: 100%; padding: 9px 11px; border: 1.5px solid #d1d5db; border-radius: 7px; outline: none; font-size: 14px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: #0ea5e9; }
.field textarea { resize: vertical; min-height: 60px; }
.field .hint { font-size: 11px; color: #9ca3af; margin-top: 3px; }

.btn { display: inline-block; padding: 9px 18px; background: #0ea5e9; color: #fff; border: none; border-radius: 7px; font-size: 13px; font-weight: 600; }
.btn:hover { background: #0284c7; }
.btn.gray { background: #6b7280; }
.btn.gray:hover { background: #4b5563; }
.btn.red { background: #dc2626; }
.btn.red:hover { background: #b91c1c; }
.btn.primary { background: #0ea5e9; box-shadow: 0 2px 6px rgba(14,165,233,.25); }
.btn.primary:hover { background: #0284c7; }
.btn.outline { background: transparent; color: #0ea5e9; border: 1.5px solid #0ea5e9; }
.btn.outline:hover { background: #f0f9ff; }
.btn.red.outline { color: #dc2626; border-color: #dc2626; }
.btn.red.outline:hover { background: #fef2f2; }
.btn.sm { padding: 5px 12px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }

/* ===== 井号选择器 ===== */
.well-picker { position: relative; }
.well-picker input { padding-right: 36px; }
.well-picker .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: #9ca3af; pointer-events: none; }
.well-list { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #d1d5db; border-radius: 0 0 8px 8px; max-height: 280px; overflow-y: auto; z-index: 20; box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.well-list .item { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; cursor: pointer; }
.well-list .item:hover { background: #f0f9ff; }
.well-list .item .wn { font-weight: 600; color: #1f2937; }
.well-list .item .pn { font-size: 12px; color: #6b7280; margin-top: 2px; }
.well-list .item .badge { display: inline-block; font-size: 10px; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }
.well-list .item .badge.done { background: #bae6fd; color: #075985; }

/* ===== 运营商确权输入 ===== */
.carriers-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.carriers-grid .c { display: flex; align-items: center; background: #f0f9ff; border: 1.5px solid #e5e7eb; border-radius: 8px; padding: 8px 10px; }
.carriers-grid .c label { flex: 1; font-size: 13px; font-weight: 600; }
.carriers-grid .c input { width: 70px; padding: 5px 8px; border: 1px solid #d1d5db; border-radius: 5px; text-align: center; }
.carriers-grid .c .plan { font-size: 11px; color: #9ca3af; margin-left: 6px; }

@media (min-width: 640px) {
  .carriers-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== 照片上传 ===== */
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.photos .slot { aspect-ratio: 1; background: #f3f4f6; border: 2px dashed #d1d5db; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #9ca3af; font-size: 12px; cursor: pointer; position: relative; overflow: hidden; }
.photos .slot:hover { border-color: #0ea5e9; }
.photos .slot img { width: 100%; height: 100%; object-fit: cover; }
.photos .slot .del { position: absolute; top: 4px; right: 4px; background: rgba(220,38,38,0.9); color: #fff; width: 22px; height: 22px; border-radius: 50%; border: none; font-size: 12px; line-height: 1; }
.photos .upload-btn { background: #f0f9ff; border-color: #0ea5e9; color: #0284c7; flex-direction: column; }

/* ===== 表格 ===== */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { background: #0ea5e9; color: #fff; padding: 8px 10px; text-align: left; font-weight: 600; white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid #e0f2fe; vertical-align: top; }
.tbl tr:hover td { background: #f0f9ff; }
.tbl .num { text-align: right; }
.tbl .ctr { text-align: center; }

/* ===== 工具栏 ===== */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar input, .toolbar select { padding: 7px 11px; border: 1.5px solid #d1d5db; border-radius: 7px; font-size: 13px; outline: none; }
.toolbar input:focus, .toolbar select:focus { border-color: #0ea5e9; }

/* ===== 提示 ===== */
.toast { position: fixed; top: 70px; left: 50%; transform: translateX(-50%); background: #1f2937; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 14px; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.2); animation: fadeOut 2.5s forwards; }
.toast.ok { background: #10b981; }
.toast.err { background: #dc2626; }
@keyframes fadeOut { 0% { opacity: 0; top: 50px; } 10% { opacity: 1; top: 70px; } 80% { opacity: 1; } 100% { opacity: 0; top: 70px; } }

.empty { text-align: center; padding: 40px 20px; color: #9ca3af; font-size: 14px; }

/* ===== 模态框 ===== */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 200; padding: 20px; }
.modal { background: #fff; border-radius: 12px; padding: 22px; max-width: 600px; width: 100%; max-height: 85vh; overflow-y: auto; }
.modal h3 { font-size: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #e0f2fe; }

/* ===== 适配小屏 ===== */
@media (max-width: 480px) {
  .topbar h1 { font-size: 15px; }
  .container { padding: 10px; }
  .stat .num { font-size: 18px; }
  .carriers-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== v3.0 仪表盘新版(天蓝主题) ===== */
/* 两栏布局:左 今天统计 / 右 累计统计 */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}
@media (min-width: 900px) {
  .dashboard-grid { grid-template-columns: 360px 1fr; }
}
@media (min-width: 1200px) {
  .dashboard-grid { grid-template-columns: 420px 1fr; }
}

/* 左侧「今天统计」面板 */
.today-panel {
  background: linear-gradient(180deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 10px rgba(14, 165, 233, 0.10);
  border: 1px solid #bae6fd;
  position: sticky;
  top: 60px;
}
.today-panel h2 {
  font-size: 17px;
  color: #0369a1;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #7dd3fc;
  display: flex;
  align-items: center;
  gap: 6px;
}
.today-panel h2 .date {
  margin-left: auto;
  font-size: 11px;
  font-weight: 400;
  color: #0284c7;
  background: #fff;
  padding: 2px 8px;
  border-radius: 10px;
}
.today-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.today-summary .item {
  background: #fff;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 1px 2px rgba(14, 165, 233, 0.08);
  border-top: 3px solid #38bdf8;
}
.today-summary .item .n {
  font-size: 20px;
  font-weight: 700;
  color: #0369a1;
  line-height: 1.2;
}
.today-summary .item .l {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* 天蓝色表格 */
.tbl-sky {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.10);
}
.tbl-sky thead th {
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
  color: #fff;
  padding: 9px 10px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.tbl-sky thead th:first-child { border-top-left-radius: 10px; }
.tbl-sky thead th:last-child { border-top-right-radius: 10px; }
.tbl-sky tbody td {
  padding: 8px 10px;
  border-bottom: 1px solid #e0f2fe;
  color: #1e293b;
}
.tbl-sky tbody tr:nth-child(even) td { background: #f0f9ff; }
.tbl-sky tbody tr:hover td { background: #e0f2fe; }
.tbl-sky tbody tr:last-child td { border-bottom: none; }
.tbl-sky .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-sky .ctr { text-align: center; }
.tbl-sky .name { color: #0369a1; font-weight: 600; }
.tbl-sky .v { color: #0c4a6e; font-weight: 700; font-size: 14px; }
.tbl-sky .v.big { color: #0369a1; font-size: 16px; }
.tbl-sky .progress-bar {
  background: #e0f2fe;
  border-radius: 4px;
  height: 8px;
  width: 100%;
  overflow: hidden;
}
.tbl-sky .progress-bar > div {
  background: linear-gradient(90deg, #38bdf8, #0ea5e9);
  height: 8px;
  border-radius: 4px;
  transition: width 0.4s;
}
.tbl-sky .empty-cell { text-align: center; color: #94a3b8; padding: 20px; font-size: 13px; }

/* 累计统计里的卡片配色也走天蓝(覆盖 .stats 默认色) */
.stats-sky { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stats-sky .stat {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  box-shadow: 0 1px 3px rgba(14, 165, 233, 0.10);
  border-left: 4px solid #38bdf8;
}
.stats-sky .stat .num { font-size: 22px; font-weight: 700; color: #0369a1; }
.stats-sky .stat .label { font-size: 12px; color: #64748b; margin-top: 2px; }
.stats-sky .stat.s1 { border-color: #38bdf8; }
.stats-sky .stat.s1 .num { color: #0369a1; }
.stats-sky .stat.s2 { border-color: #fbbf24; }
.stats-sky .stat.s2 .num { color: #b45309; }
.stats-sky .stat.s3 { border-color: #14b8a6; }
.stats-sky .stat.s3 .num { color: #0f766e; }
.stats-sky .stat.s4 { border-color: #a78bfa; }
.stats-sky .stat.s4 .num { color: #6d28d9; }

/* 右侧累计卡片:沿用 .card 但加天蓝标题底色 */
.card-sky { background: #fff; border-radius: 10px; padding: 16px; box-shadow: 0 1px 3px rgba(14, 165, 233, 0.10); margin-bottom: 14px; border-top: 3px solid #38bdf8; }
.card-sky h2 { font-size: 15px; color: #0c4a6e; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e0f2fe; }

/* ===== v2.1 新增 ===== */
/* 草稿提示条 */
.banner { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.banner.info { background: #f0f9ff; border: 1px solid #bae6fd; color: #075985; }
.btn-mini { background: transparent; border: 1px solid currentColor; padding: 3px 10px; border-radius: 6px; font-size: 12px; color: inherit; }
.btn-mini:hover { background: rgba(0,0,0,0.05); }
.btn-mini.warn { color: #b45309; }

/* 挂牌分区 */
.sign-section { background: #f0f9ff; border-radius: 8px; padding: 12px; border: 1px solid #e0f2fe; }
.sign-title { font-size: 13px; font-weight: 600; color: #0284c7; margin-bottom: 8px; }
.sign-hint { font-size: 11px; color: #9ca3af; font-weight: 400; margin-left: 6px; }
.unsigned-row { display: flex; align-items: center; gap: 10px; }
.unsigned-row label { font-size: 13px; color: #374151; flex: 1; }
.unsigned-row input { width: 100px; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px; outline: none; font-size: 14px; text-align: center; }
.unsigned-row input:focus { border-color: #0ea5e9; }

/* 合计预览 */
.totals-box { margin-top: 10px; padding: 10px 12px; background: #f0f9ff; border-radius: 6px; border: 1px dashed #bae6fd; }
.totals-row { display: flex; justify-content: space-between; font-size: 13px; color: #4b5563; padding: 2px 0; }
.totals-row b { color: #1f2937; }
.totals-row.grand { border-top: 1px solid #bae6fd; margin-top: 4px; padding-top: 6px; font-size: 14px; font-weight: 600; }
.totals-row.grand b { color: #075985; font-size: 16px; }

/* 照片异步上传状态 */
.slot { position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: #f3f4f6; border: 1px solid #e5e7eb; }
.slot.pending { opacity: 0.7; }
.slot.pending::after { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,0.25); display: flex; align-items: center; justify-content: center; }
.slot .pending-tag { position: absolute; top: 4px; left: 4px; background: rgba(255,255,255,0.9); color: #6b7280; font-size: 10px; padding: 2px 6px; border-radius: 4px; z-index: 2; }
.slot img { width: 100%; height: 100%; object-fit: cover; }
.slot .del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,0.6); color: #fff; border: none; font-size: 14px; line-height: 1; cursor: pointer; z-index: 2; }
.slot.upload-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; background: #f9fafb; border: 1.5px dashed #d1d5db; color: #6b7280; font-size: 11px; cursor: pointer; transition: all 0.15s; }
.slot.upload-btn:hover { background: #f0f9ff; border-color: #0ea5e9; color: #0284c7; }

/* 照片上传失败态：红边框 + 警告标 + 重试按钮 */
.slot.failed { border: 2px solid #dc2626 !important; opacity: 1 !important; }
.slot.failed::after { content: ''; position: absolute; inset: 0; background: rgba(220, 38, 38, 0.15); display: flex; align-items: center; justify-content: center; z-index: 1; }
.slot .fail-tag { position: absolute; top: 4px; left: 4px; background: #dc2626; color: #fff; font-size: 13px; padding: 2px 6px; border-radius: 4px; z-index: 3; font-weight: 600; }
.slot .retry-btn { position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); background: #fff; color: #dc2626; border: 1px solid #dc2626; font-size: 11px; padding: 3px 10px; border-radius: 4px; z-index: 3; font-weight: 600; cursor: pointer; }
.slot .retry-btn:hover { background: #dc2626; color: #fff; }
/* 进度文字：上传中显示「N% / X.XM」让用户知道在动 */
.slot .progress-text { position: absolute; top: 4px; left: 4px; background: rgba(0,0,0,0.65); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; z-index: 3; font-weight: 600; }

/* ===== 我的记录卡片 ===== */
.record-list { display: flex; flex-direction: column; gap: 10px; }
.record-item { padding: 10px 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; transition: all 0.15s; }
.record-item:hover { border-color: #0ea5e9; background: #f0f9ff; box-shadow: 0 2px 6px rgba(0,0,0,0.06); }
.rec-head { display: flex; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.rec-time { color: #6b7280; font-size: 12px; flex-shrink: 0; }
.rec-well { color: #0284c7; font-size: 15px; }
.rec-inspector { color: #4b5563; }
.rec-mid { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 8px; }
.rec-project { color: #374151; font-size: 12px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-carriers { font-size: 11px; color: #6b7280; }
.rec-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.thumb { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; border: 1px solid #e5e7eb; }
.thumb-more { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 4px; background: #f3f4f6; color: #6b7280; font-size: 12px; border: 1px solid #e5e7eb; }
.rec-photo-count { margin-left: auto; font-size: 11px; color: #9ca3af; }
.muted { color: #9ca3af; font-size: 12px; }
.rec-actions { margin-left: auto; display: inline-flex; gap: 4px; }
.rec-actions .btn-mini { background: #fff; border: 1px solid #d1d5db; color: #4b5563; padding: 3px 8px; border-radius: 5px; font-size: 11px; }
.rec-actions .btn-mini:hover { background: #f0f9ff; border-color: #0ea5e9; color: #0284c7; }
.rec-actions .btn-mini.warn:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }

/* 详情弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 16px; }
.modal { background: #fff; border-radius: 12px; padding: 18px 20px; max-width: 420px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,0.2); }
.modal h3 { margin: 0 0 12px; font-size: 17px; }
.modal h4 { margin: 14px 0 8px; font-size: 14px; color: #4b5563; }
.kv { width: 100%; font-size: 13px; border-collapse: collapse; }
.kv th { text-align: left; color: #6b7280; font-weight: 500; padding: 5px 8px 5px 0; vertical-align: top; width: 80px; }
.kv td { color: #1f2937; padding: 5px 0; word-break: break-word; }
.photo-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery-photo { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; cursor: zoom-in; background: #f3f4f6; }
