/* ============================================================
   软件中心页样式（结果表格 / 排序 / 下载按钮）
   设计变量复用 hospital.css（暗蓝 + 奶油金）
   ============================================================ */

/* ---------- 结果表格 ---------- */
.sw-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel-2);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}
.sw-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 980px; }
.sw-table th {
  position: sticky; top: 0; z-index: 1;
  padding: 13px 14px; text-align: left; white-space: nowrap;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--gold-deep);
  background: rgba(7, 12, 26, 0.95);
  border-bottom: 1px solid var(--line-strong);
  user-select: none;
}
.sw-table th.sortable { cursor: pointer; }
.sw-table th.sortable:hover { color: var(--gold-bright); background: rgba(236, 224, 173, 0.08); }
.sw-table th .sw-sort {
  display: inline-block; width: 14px; margin-left: 5px;
  font-size: 10px; color: var(--faint); vertical-align: 1px;
}
.sw-table th.sorted { color: var(--gold-bright); }
.sw-table th.sorted .sw-sort { color: var(--gold); }
.sw-table th.sorted.asc  .sw-sort::after { content: "▲"; }
.sw-table th.sorted.desc .sw-sort::after { content: "▼"; }
.sw-table td {
  padding: 12px 14px; vertical-align: top;
  border-bottom: 1px solid rgba(236, 224, 173, 0.08);
}
.sw-table tbody tr:last-child td { border-bottom: none; }
.sw-table tbody tr:hover { background: rgba(236, 224, 173, 0.04); }

/* ---------- 单元格 ---------- */
.sw-name { font-weight: 600; color: var(--gold-bright); font-size: 14.5px; }
.sw-short { color: var(--faint); font-size: 12px; margin-left: 6px; }
.sw-desc {
  margin-top: 4px; font-size: 12.5px; line-height: 1.55; color: var(--faint);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sw-tag {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--gold-deep); font-size: 12px; white-space: nowrap;
}
.sw-dl-num { font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 600; }
.sw-ver {
  display: inline-block; font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 12.5px; color: var(--gold); background: rgba(236, 224, 173, 0.1);
  border: 1px solid rgba(236, 224, 173, 0.22); border-radius: 6px; padding: 1px 7px; white-space: nowrap;
}
.sw-dl-btn {
  cursor: pointer; font-family: inherit; white-space: nowrap;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em;
  padding: 7px 18px; border: none; border-radius: 999px;
  color: #1a1407; background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  box-shadow: 0 6px 16px rgba(236, 224, 173, 0.22);
  transition: filter .2s ease, transform .2s ease;
}
.sw-dl-btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.sw-dl-btn:disabled { opacity: .55; cursor: default; transform: none; }

/* ---------- 登录门槛提示条（表格上方） ---------- */
.sw-login-tip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 14px; padding: 10px 16px; font-size: 13px; color: var(--gold-deep);
  border: 1px dashed var(--line-strong); border-radius: 12px; background: rgba(236, 224, 173, 0.05);
}
.sw-login-tip .sw-login-btn {
  cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 600;
  padding: 5px 14px; border: none; border-radius: 999px; color: #1a1407;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
}

/* ---------- 轻提示 ---------- */
.sw-toast {
  position: fixed; left: 50%; bottom: 42px; transform: translateX(-50%);
  z-index: 1200; max-width: 82vw; padding: 10px 20px;
  font-size: 13.5px; color: var(--gold-bright);
  background: rgba(7, 12, 26, 0.94); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.sw-toast.show { opacity: 1; transform: translateX(-50%) translateY(-6px); }

@media (max-width: 720px) {
  .sw-table { min-width: 860px; }
  .sw-desc { -webkit-line-clamp: 1; }
}
