/* Feature cards: 严格模式 / 白名单 / 使用统计 use real app screenshots (assets/home/features). */
.viz-shot {
  display: block;
  margin-top: auto;
  padding-top: 0;
  transition: opacity 700ms var(--ease), transform 900ms var(--ease);
}

.js .tile:not(.in) .viz-shot {
  opacity: 0;
  transform: translateY(14px);
}

.viz-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 14px 30px -18px rgba(28, 58, 120, 0.28);
}

.tile.in .viz-shot {
  opacity: 1;
  transform: none;
  transition-delay: 150ms;
}

.viz-shot-strict {
  width: min(100%, 320px);
  margin: 24px auto 0;
  order: 3;
}

.viz-shot-strict img {
  border-radius: 0;
  box-shadow: none;
}

/* 白名单: the real whitelist sheet (添加 + app icons) */
.viz-shot-white {
  padding-top: 16px;
}

/* 使用统计: today's total with the week chart, and per-app time */
.viz-shot-stats {
  padding-top: 16px;
}

@media (max-width: 640px) {
  .tile-strict .viz-seg {
    margin-top: 32px;
  }
}

@media (min-width: 641px) {
  .tile-strict {
    display: grid;
    grid-template-columns: minmax(0, 1fr) min(47%, 298px);
    grid-template-rows: auto auto 1fr;
    grid-template-areas: "title preview" "copy preview" "duration preview";
    column-gap: 16px;
    min-height: 380px;
  }

  .tile-strict h3 {
    grid-area: title;
  }

  .tile-strict > p {
    grid-area: copy;
  }

  .tile-strict .viz-seg {
    grid-area: duration;
    align-self: center;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: min(100%, 316px);
    margin-top: 20px;
  }

  .tile-strict .viz-seg span {
    padding-inline: 0;
    text-align: center;
    white-space: nowrap;
  }

  .viz-shot-strict {
    grid-area: preview;
    align-self: center;
    width: 100%;
    margin: 0;
  }
}

@media (max-width: 720px) {
  .viz-shot:not(.viz-shot-strict) img {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .viz-shot,
  .js .tile:not(.in) .viz-shot {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
