/* Homepage article-card refresh. Scoped to home category modules. */
.modown-card-refresh .grids .grid {
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 26px rgba(30, 41, 59, .07);
  transform: translateZ(0);
  transition: transform .38s cubic-bezier(.2,.75,.25,1), box-shadow .38s ease, border-color .38s ease;
  animation: homeCardIn .55s ease both;
}
.modown-card-refresh .grids .grid:nth-child(2) { animation-delay: .04s; }
.modown-card-refresh .grids .grid:nth-child(3) { animation-delay: .08s; }
.modown-card-refresh .grids .grid:nth-child(4) { animation-delay: .12s; }
.modown-card-refresh .grids .grid:nth-child(5) { animation-delay: .16s; }
.modown-card-refresh .grids .grid:nth-child(6) { animation-delay: .20s; }
.modown-card-refresh .grids .grid:hover {
  z-index: 2;
  transform: translateY(-7px);
  border-color: rgba(99, 102, 241, .25);
  box-shadow: 0 20px 46px rgba(30, 41, 59, .13);
}
.modown-card-refresh .grids .grid .img {
  border-radius: 17px 17px 0 0;
  background: #eef2f7;
}
.modown-card-refresh .grids .grid .img:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .18));
  opacity: .55;
  transition: opacity .35s ease;
}
.modown-card-refresh .grids .grid:hover .img:after { opacity: .28; }
.modown-card-refresh .grids .grid .thumb {
  border-radius: 17px 17px 0 0;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
.modown-card-refresh .grids .grid:hover .thumb { transform: scale(1.055); filter: saturate(1.04); }
.modown-card-refresh .grids .grid .img .img-cat {
  top: 12px;
  left: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .48);
  box-shadow: 0 4px 14px rgba(15,23,42,.14);
  backdrop-filter: blur(7px);
}
.modown-card-refresh .grids .grid .con {
  display: flex;
  min-height: 174px;
  padding: 16px 17px 15px;
  flex-direction: column;
}
.modown-card-refresh .grids .grid .cat {
  height: 22px;
  margin-bottom: 8px;
  padding-left: 0;
  color: #64748b;
  font-size: 12px;
}
.modown-card-refresh .grids .grid .cat:after { display: none; }
.modown-card-refresh .grids .grid .cat > a {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  transition: color .25s ease, background .25s ease;
}
.modown-card-refresh .grids .grid .cat > a:hover { background: rgba(99,102,241,.1); color: var(--theme-color); }
.modown-card-refresh .grids .grid .cat .price .fee,
.modown-card-refresh .grids .grid .grid-meta .price .fee {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
}
.modown-card-refresh .grids .grid h3 { margin: 0; font-size: 15px; font-weight: 600; }
.modown-card-refresh .grids .grid h3 a {
  height: 42px;
  color: #1e293b;
  line-height: 21px;
  -webkit-line-clamp: 2;
  transition: color .25s ease;
}
.modown-card-refresh .grids .grid .excerpt {
  display: -webkit-box;
  height: 38px;
  margin: 8px 0 0;
  color: #94a3b8;
  font-size: 12px;
  line-height: 19px;
  -webkit-line-clamp: 2;
}
.modown-card-refresh .grids .grid .grid-meta {
  display: flex;
  height: auto;
  min-height: 25px;
  margin-top: auto;
  padding-top: 11px;
  align-items: center;
  gap: 5px;
  overflow: visible;
  border-top: 1px solid #f0f3f7;
  color: #8491a5;
  line-height: 20px;
}
.modown-card-refresh .grids .grid .grid-meta > span:not(.price) {
  display: inline-flex;
  min-width: 0;
  margin-right: 0;
  padding: 2px 7px;
  align-items: center;
  border-radius: 999px;
  background: #f7f9fc;
  white-space: nowrap;
}
.modown-card-refresh .grids .grid .grid-meta .icon { margin-right: 3px; color: #a0aec0; font-size: 13px; }
.modown-card-refresh .grids .grid .grid-meta .price { margin-left: auto; }
.modown-card-refresh .grids .grid > .vip-tag {
  top: 11px;
  left: 11px;
  min-width: 38px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(92,70,18,.16);
  backdrop-filter: blur(6px);
}
.modown-card-refresh .grids .grid > .recommend-tag {
  top: 11px;
  right: 11px;
  height: 22px;
  padding: 1px 8px;
  border-radius: 999px;
  box-shadow: 0 5px 16px rgba(30,41,59,.15);
}
.modown-card-refresh .grids .grid > .recommend-tag:before { display: none; }
.modown-card-refresh .more { margin-top: 22px; }
.modown-card-refresh .more a {
  position: relative;
  width: auto;
  min-width: 196px;
  padding: 11px 48px 11px 24px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,.16);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--theme-color), #6366f1);
  box-shadow: 0 10px 26px rgba(79,70,229,.18);
  font-weight: 500;
  transition: transform .3s ease, box-shadow .3s ease, filter .3s ease;
}
.modown-card-refresh .more a:after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 19px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: rgba(255,255,255,.18);
  line-height: 24px;
  transform: translateY(-50%);
  transition: transform .3s ease, background .3s ease;
}
.modown-card-refresh .more a:hover { opacity: 1; filter: brightness(1.035); transform: translateY(-3px); box-shadow: 0 15px 32px rgba(79,70,229,.26); }
.modown-card-refresh .more a:hover:after { background: rgba(255,255,255,.28); transform: translate(3px,-50%); }
.modown-card-refresh .mocat.align-left .more a { min-width: 0; padding: 6px 34px 6px 12px; border: 0; box-shadow: none; }
.modown-card-refresh .mocat.align-left .more a:after { right: 4px; color: var(--theme-color); background: rgba(99,102,241,.08); }
body.night.modown-card-refresh .grids .grid { border-color: #2c3444; background: #1d2330; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
body.night.modown-card-refresh .grids .grid h3 a { color: #e5eaf2; }
body.night.modown-card-refresh .grids .grid .excerpt { color: #8893a6; }
body.night.modown-card-refresh .grids .grid .cat > a, body.night.modown-card-refresh .grids .grid .grid-meta > span:not(.price) { background: #252d3b; color: #9ca8ba; }
body.night.modown-card-refresh .grids .grid .grid-meta { border-color: #2c3444; }
@keyframes homeCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 768px) {
  .modown-card-refresh .grids .grid { border-radius: 15px; }
  .modown-card-refresh .grids .grid .img, .modown-card-refresh .grids .grid .thumb { border-radius: 14px 14px 0 0; }
  .modown-card-refresh .grids .grid .con { min-height: 156px; padding: 13px 14px; }
  .modown-card-refresh .grids .grid h3 a { height: 40px; font-size: 14px; line-height: 20px; }
  .modown-card-refresh .grids .grid .excerpt { display: none; }
  .modown-card-refresh .grids .grid .grid-meta { padding-top: 9px; }
  .modown-card-refresh .grids .grid .grid-meta > span:not(.price) { padding: 1px 5px; }
  .modown-card-refresh .more a { min-width: 180px; padding-top: 10px; padding-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .modown-card-refresh .grids .grid, .modown-card-refresh .grids .grid *, .modown-card-refresh .more a, .modown-card-refresh .more a:after { animation: none !important; transition-duration: .01ms !important; }
}
