/* PickIt · 首页样式  author: ruan */

/* 首页 hero：左文右图 */
.hero.hero-home {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 48px;
  align-items: center;
  max-width: none;
}
.hero-home .lead { margin-bottom: 0; }

.hero-visual { position: relative; height: 300px; }
.demo {
  position: absolute;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-merge {
  left: 0;
  top: 56px;
  width: 210px;
  height: 210px;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  transform: rotate(-6deg);
}
.demo-merge i { display: block; border-radius: 8px; }
.demo-merge i:nth-child(1) { background: linear-gradient(135deg, #f6b26b, #e0525c); }
.demo-merge i:nth-child(2) { background: linear-gradient(135deg, #7cc0e8, #2f6fa8); }
.demo-merge i:nth-child(3) { background: linear-gradient(135deg, #a9d8a4, #2e7d5b); }
.demo-merge i:nth-child(4) { background: linear-gradient(135deg, #f3e2b8, #c9a35c); }
.demo-wm {
  right: 0;
  top: 0;
  width: 270px;
  height: 186px;
  padding: 6px;
  transform: rotate(4deg);
}
.demo-wm svg { width: 100%; height: 100%; display: block; border-radius: 10px; }

@media (max-width: 1024px) {
  .hero.hero-home { grid-template-columns: 1fr; gap: 24px; }
  .hero-visual { height: 250px; max-width: 420px; }
  .demo-merge { width: 180px; height: 180px; top: 50px; }
  .demo-wm { width: 240px; height: 165px; }
}
@media (max-width: 640px) {
  .hero-visual { display: none; }
}

.tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  scroll-margin-top: 80px;
}

.tool-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 10px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--ink);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}
a.tool-card:hover {
  text-decoration: none;
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 2px 4px rgba(29, 27, 23, 0.04), 0 14px 32px -14px rgba(15, 118, 110, 0.35);
}
.tool-card.is-soon {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  background: var(--surface-2);
}

.tool-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  grid-row: 1 / 3;
}
.tool-card.is-soon .tool-icon { background: var(--line); color: var(--ink-3); }
.tool-icon svg { width: 24px; height: 24px; fill: currentColor; }

.tool-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tool-text strong { font-size: 16px; }
.tool-text strong .tag { margin-left: 8px; font-style: normal; background: var(--accent-2-soft); border-color: transparent; color: var(--accent-2-ink); }
.tool-text > span { font-size: 13px; color: var(--ink-2); line-height: 1.5; }

.tool-path {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
}

@media (max-width: 1024px) {
  .tools { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .tools { grid-template-columns: 1fr; }
}
