/* ==========================================================================
   打工人实用工具集 · 首页样式
   ========================================================================== */

.wt-home { max-width: var(--wt-maxw); margin: 0 auto; padding: 24px 20px 60px; }

/* ---------------- Hero ---------------- */
.wt-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f7faff 60%, #eef4ff 100%);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius-lg);
  padding: 30px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: var(--wt-shadow-sm);
  margin-bottom: 22px;
}
.wt-hero-main { flex: 1; min-width: 0; }
.wt-hero h1 { font-size: 25px; letter-spacing: -.2px; }
.wt-hero-sub { margin-top: 8px; font-size: 14px; color: var(--wt-text-2); max-width: 760px; }
.wt-hero-points { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.wt-hero-point {
  display: inline-flex; align-items: center; gap: 6px;
  height: 26px; padding: 0 10px;
  font-size: 12.5px; color: var(--wt-text-2);
  background: #fff; border: 1px solid var(--wt-border);
  border-radius: 999px;
}
.wt-hero-point b { color: var(--wt-primary); }

.wt-hero-side {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 236px;
}
.wt-stat-card {
  background: #fff;
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  padding: 12px 14px;
}
.wt-stat-card .k { font-size: 12px; color: var(--wt-muted); }
.wt-stat-card .v { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wt-stat-card .v small { font-size: 12px; font-weight: 500; color: var(--wt-muted); margin-left: 4px; }

/* ---------------- 工具区 ---------------- */
.wt-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 14px;
}
.wt-section-head h2 { font-size: 16px; }
.wt-section-head .wt-header-spacer { flex: 1; }

.wt-filters { display: flex; gap: 6px; }
.wt-chip {
  height: 28px; padding: 0 12px;
  font-size: 12.5px; font-family: inherit;
  color: var(--wt-text-2);
  background: #fff;
  border: 1px solid var(--wt-border);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.wt-chip:hover { border-color: var(--wt-primary-border); color: var(--wt-primary); }
.wt-chip.active { background: var(--wt-primary); border-color: var(--wt-primary); color: #fff; font-weight: 600; }

.wt-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.wt-tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--wt-surface);
  border: 1px solid var(--wt-border);
  border-radius: var(--wt-radius);
  box-shadow: var(--wt-shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  min-height: 178px;
}
.wt-tool-card.is-available {
  cursor: pointer;
}
.wt-tool-card.is-available:hover {
  transform: translateY(-2px);
  border-color: var(--wt-primary-border);
  box-shadow: 0 8px 22px rgba(31, 111, 235, .12);
}
.wt-tool-card.is-planned { background: var(--wt-surface-2); }
.wt-tool-card.is-planned .wt-tool-name { color: var(--wt-text-2); }

.wt-tool-top { display: flex; align-items: flex-start; gap: 12px; }
.wt-tool-icon {
  width: 40px; height: 40px; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  background: var(--wt-primary-soft);
  border-radius: 10px;
}
.wt-tool-card.is-planned .wt-tool-icon { background: #eef1f5; filter: grayscale(.5); opacity: .8; }
.wt-tool-name { font-size: 15px; font-weight: 600; }
.wt-tool-meta { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.wt-tool-desc { font-size: 13px; color: var(--wt-text-2); flex: 1; }
.wt-tool-foot { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.wt-tool-hl {
  font-size: 11.5px;
  color: var(--wt-muted);
  background: #f2f4f7;
  border-radius: 4px;
  padding: 2px 6px;
}
.wt-tool-go {
  margin-left: auto;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--wt-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ---------------- 说明区 ---------------- */
.wt-notes {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}
.wt-note-list { display: flex; flex-direction: column; gap: 10px; }
.wt-note-item { display: flex; gap: 10px; font-size: 13px; color: var(--wt-text-2); }
.wt-note-item .n {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--wt-primary-soft); color: var(--wt-primary);
  font-size: 11.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.wt-note-item b { color: var(--wt-text); }

.wt-hist-list { max-height: 260px; overflow: auto; }
.wt-hist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--wt-border);
  font-size: 12.5px;
}
.wt-hist-item:last-child { border-bottom: 0; }
.wt-hist-item .t { color: var(--wt-muted); font-variant-numeric: tabular-nums; flex: none; }
.wt-hist-item .a { color: var(--wt-text); }

.wt-foot {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--wt-border);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--wt-muted);
}
.wt-foot .wt-header-spacer { flex: 1; }

@media (max-width: 1080px) {
  .wt-notes { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .wt-hero { flex-direction: column; align-items: stretch; padding: 24px; }
  .wt-hero-side { flex-direction: row; flex-wrap: wrap; }
  .wt-stat-card { flex: 1; min-width: 140px; }
}
