/* ============================================================
   轻提示 · 页脚 · 动态 · 动效 · 响应式
   来源：2.1.1 基准概览页原型 / styles.css（2026-09-15 机械搬迁）
   ============================================================ */

/* ---------------- 轻提示 ---------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px rgba(9, 40, 110, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 14px);
  transition: 0.22s var(--ease);
  max-width: min(560px, 90vw);
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast .t-dot { width: 6px; height: 6px; border-radius: 50%; background: #4d94ff; box-shadow: 0 0 8px rgba(77, 148, 255, 0.8); flex: none; }

/* ---------------- 页脚 ---------------- */

.foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-4);
}

/* ---------------- 最新测试动态 ---------------- */

.activity { margin-top: 46px; }

.act-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.act-title { display: flex; align-items: center; gap: 11px; }
.act-bar {
  width: 3px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--blue), var(--d-special));
  box-shadow: 0 0 10px var(--blue-glow);
}
.act-title h2 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.act-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--ink-4);
}
.act-tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.seg button {
  border: none;
  background: transparent;
  padding: 5px 11px;
  border-radius: 3px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
  transition: 0.16s;
}
.seg button:hover { background: var(--surface-2); color: var(--ink); }
.seg button.active { background: var(--blue-wash-2); color: var(--blue-700); font-weight: 500; }

.act-summary { display: flex; align-items: stretch; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.act-stat {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.act-stat .s-n {
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--blue-700);
  font-variant-numeric: tabular-nums;
}
.act-stat .s-t { font-size: 12px; color: var(--ink-3); }
.act-summary .empty-note { font-size: 12.5px; color: var(--ink-4); padding: 10px 0; }

.feed { list-style: none; margin: 16px 0 0; padding: 0; }
.feed-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  transition: background 0.16s;
}
.feed-item:last-child { border-bottom: none; }
.feed-item:hover { background: linear-gradient(90deg, var(--blue-wash), transparent 72%); }

.f-mark { position: relative; align-self: stretch; display: flex; justify-content: center; }
.f-mark::before {
  content: "";
  position: absolute;
  top: -13px;
  bottom: -13px;
  width: 1px;
  background: var(--line);
}
.f-mark i {
  position: relative;
  z-index: 1;
  margin-top: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--ft, var(--blue));
  box-shadow: 0 0 0 3px var(--ft-wash, var(--blue-wash));
}
.feed-item:first-child .f-mark::before { top: 6px; }
.feed-item:last-child .f-mark::before { bottom: auto; height: 18px; }

.f-body { min-width: 0; }
.f-line1 { display: flex; align-items: center; gap: 10px; }
.f-type {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.f-type.task { color: var(--blue-700); border-color: rgba(15, 98, 254, 0.3); background: var(--blue-wash); }
.f-type.board { color: #0b7f99; border-color: rgba(0, 163, 196, 0.32); background: rgba(0, 163, 196, 0.09); }
.f-type.version { color: #4638c9; border-color: rgba(92, 78, 229, 0.32); background: rgba(92, 78, 229, 0.09); }
.f-type.object { color: var(--ok); border-color: rgba(14, 159, 110, 0.3); background: var(--ok-wash); }
.f-time { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); }

.f-title { margin-top: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.6; }
.f-title b { color: var(--ink); font-weight: 600; }

.f-meta {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
}
.f-sep { color: var(--line); }
.f-delta { padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.f-delta.up { color: var(--ok); background: var(--ok-wash); }
.f-delta.down { color: #c73a4d; background: rgba(199, 58, 77, 0.1); }
.f-delta.flat { color: var(--ink-3); background: var(--surface-2); }

.f-act {
  align-self: center;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(15, 98, 254, 0.28);
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: 0.16s;
}
.f-act:hover { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------------- 动效 ---------------- */

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(-5px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

/* ---------------- 响应式 ---------------- */

@media (max-width: 1439px) {
  .main { padding: 22px 26px 56px; }
}

@media (max-width: 1279px) {
  :root { --rail-w: 188px; }
  .main { padding: 22px 22px 56px; }
  .topbar-search { width: 178px; }
}

@media (max-width: 1023px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .topbar-search { display: none; }
  .card-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(2) { border-right: none; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: 1px solid var(--line-2); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .sync { text-align: left; }
}

@media (max-width: 767px) {
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .main { padding: 18px 16px 48px; }
  .topbar { gap: 10px; padding: 0 14px; }
  .brand-name, .user-name { display: none; }
  .topnav { margin-left: 0; }
  .topnav a { padding: 0 10px; font-size: 13px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid { grid-template-columns: 1fr; }
  .act-head { align-items: flex-start; }
  .act-tools { margin-left: 0; width: 100%; }
  .feed-item { grid-template-columns: 20px 1fr; }
  .f-act { grid-column: 2; justify-self: start; margin-top: 4px; }
  .page-head h1 { font-size: 26px; }
  .filters { gap: 8px; }
  .search-inline { min-width: 100%; max-width: none; order: 9; }
  .tbl th:nth-child(2), .tbl td:nth-child(2),
  .tbl th:nth-child(6), .tbl td:nth-child(6) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

