/* ============================================================
   工单中心 · 卡片列表（2026-11-30）
   ============================================================ */
.tk-page {
  max-width: 1240px;
  min-width: 0;
  margin: 0 auto;
  padding-bottom: 24px;
  color: #1f2937;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

/* ---------- 头部 ---------- */
.tk-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tk-title { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
.tk-head-actions { display: flex; align-items: center; gap: 10px; }
.tk-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 16px;
  border-radius: 8px;
  background: #2f54eb;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background .16s ease;
}
.tk-new:hover { background: #1d39c4; }

/* ---------- 公告 ---------- */
.tk-notice {
  padding: 12px 14px;
  margin-bottom: 14px;
  border: 1px solid #e8edf5;
  border-left: 3px solid #2f54eb;
  border-radius: 10px;
  background: #f8faff;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.7;
  overflow-x: auto;
}
.tk-notice img { max-width: 100%; height: auto; }

/* ---------- 工具栏 ---------- */
.tk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tk-toolbar .tk-input { width: 240px; min-width: 0; }
.tk-toolbar .tk-select { width: 160px; min-width: 0; }
.tk-toolbar .tk-input .el-input__inner,
.tk-toolbar .tk-select .el-input__inner {
  height: 34px;
  line-height: 34px;
  border-radius: 8px;
}
.tk-search {
  height: 34px;
  padding: 0 18px;
  border: 1px solid #2f54eb;
  border-radius: 8px;
  background: #2f54eb;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease;
}
.tk-search:hover { background: #1d39c4; border-color: #1d39c4; }

/* ---------- 卡片列表 ---------- */
.tk-list { display: flex; flex-direction: column; gap: 10px; min-height: 100px; }
.tk-card {
  padding: 13px 16px 11px;
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.tk-card:hover { border-color: #cfdcf7; box-shadow: 0 8px 22px -16px rgba(47, 84, 235, .5); }
.tk-card-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tk-num {
  flex: 0 0 auto;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #9ca3af;
}
.tk-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tk-status {
  flex: 0 0 auto;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  white-space: nowrap;
}
.tk-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 7px;
  font-size: 12px;
  color: #9ca3af;
}
.tk-meta { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.tk-meta i { font-size: 12px; }
.tk-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #eef1f6;
}
.tk-open { font-size: 12px; color: #2f54eb; font-weight: 500; }
.tk-ops { display: flex; align-items: center; gap: 14px; }
.tk-op { font-size: 12px; color: #6b7280; cursor: pointer; text-decoration: none; }
.tk-op:hover { color: #2f54eb; }
.tk-op--danger:hover { color: #ef4444; }

.tk-empty { padding: 40px 0; }
.tk-pager { display: flex; justify-content: flex-end; margin-top: 16px; }

/* ---------- 移动端 ---------- */
@media screen and (max-width: 768px) {
  .tk-page { padding-bottom: 16px; }
  .tk-title { font-size: 20px; }
  .tk-new { height: 32px; padding: 0 12px; }
  .tk-toolbar { gap: 8px; }
  .tk-toolbar .tk-input { width: 100%; }
  .tk-toolbar .tk-select { flex: 1 1 120px; width: auto; }
  .tk-search { flex: 0 0 auto; padding: 0 14px; }
  .tk-card { padding: 12px 13px 10px; }
  .tk-card-foot { flex-wrap: wrap; gap: 8px; }
  .tk-ops { gap: 12px; }
  .tk-pager { justify-content: center; }
}
