/* fdk888 首页精选商品紧凑布局（仅作用于 .home-page 内的商品网格）2026-11-25 */
.home-page .product-grid > .group .aspect-\[4\/3\] img{transition:none}
/* 手机端：每行4列，图片更小，一屏≥16个 */
@media (max-width:767px){
  .home-page section.pt-32{padding-top:5rem!important;padding-bottom:1rem!important}
  .home-page section.pt-32 h2{font-size:1.15rem!important;line-height:1.45rem!important;margin:0!important}
  .home-page section.pt-32 h2 + p{font-size:.68rem!important;margin-top:.05rem!important}
  .home-page section.pt-32 .product-grid{margin-top:-1rem}
  .home-page .product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:.375rem!important}
  .home-page .product-grid > div{border-radius:.6rem!important}
  .home-page .product-grid > div .aspect-\[4\/3\]{aspect-ratio:4/3!important}
  .home-page .product-grid > div > div.p-3{padding:.25rem .3rem .3rem!important}
  .home-page .product-grid > div > div.p-3 > div.truncate:first-child{display:none!important}   /* 分类行 */
  .home-page .product-grid > div > div.p-3 > h3{font-size:.68rem!important;line-height:.9rem!important;margin:0 0 .1rem!important;font-weight:700}
  .home-page .product-grid > div > div.p-3 > div.flex-wrap{display:none!important}                /* 自动交付等标签 */
  .home-page .product-grid > div > div.p-3 > div.border-t{padding-top:.2rem!important;gap:.1rem}
  .home-page .product-grid .theme-price-sm{font-size:.62rem!important;line-height:.9rem!important;white-space:nowrap;letter-spacing:-.05em}
  .home-page .product-grid > div > div.p-3 > div.border-t > div:first-child{min-width:0;overflow:hidden}
  .home-page .product-grid > div > div.p-3 > div.border-t > div:last-child{gap:0!important;flex-shrink:0}
  .home-page .product-grid > div > div.p-3 > div.border-t button{width:1.15rem!important;height:1.15rem!important;border-radius:.3rem}
  .home-page .product-grid > div > div.p-3 > div.border-t button svg{width:.65rem!important;height:.65rem!important}
  .home-page .product-grid > div > div.p-3 > div.border-t > div:last-child > svg{display:none!important} /* 右箭头 */
  .home-page .product-grid .absolute.left-2.top-2{transform:scale(.65);transform-origin:top left;left:.15rem;top:.15rem}
  .home-page .product-grid .absolute.top-2.right-2{transform:scale(.65);transform-origin:top right;right:.15rem;top:.15rem}
}
/* 桌面端：更多列、图片更矮 */
@media (min-width:768px){
  .home-page section.pt-32{padding-top:6.5rem!important}
  .home-page .product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:.6rem!important}
  .home-page .product-grid > div .aspect-\[4\/3\]{aspect-ratio:16/9!important}
  .home-page .product-grid > div > div.p-3{padding:.6rem .75rem!important}
  .home-page .product-grid > div > div.p-3 > div.truncate:first-child{margin-bottom:.15rem!important;font-size:.7rem}
  .home-page .product-grid > div > div.p-3 > h3{font-size:.95rem!important;margin-bottom:.3rem!important}
  .home-page .product-grid > div > div.p-3 > div.flex-wrap{margin-bottom:.4rem!important}
  .home-page .product-grid > div > div.p-3 > p{display:none!important}
  .home-page .product-grid > div > div.p-3 > div.border-t{padding-top:.45rem!important}
  .home-page .product-grid > div > div.p-3 > div.border-t span.uppercase{display:none!important}
  .home-page .product-grid .theme-price-sm{font-size:.9rem!important}
  .home-page .product-grid > div > div.p-3 > h3{font-size:.85rem!important}
  .home-page .product-grid > div > div.p-3 > div.flex-wrap{gap:.2rem!important}
  .home-page .product-grid > div > div.p-3 > div.flex-wrap > div{font-size:9px!important;padding:0 .25rem!important}
  .home-page .product-grid > div > div.p-3 > div.border-t button{width:1.75rem!important;height:1.75rem!important}
  .home-page .product-grid > div > div.p-3 > div.border-t > div:last-child > span{display:none!important}
}
@media (min-width:1024px){ .home-page .product-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important} }
@media (min-width:1280px){ .home-page .product-grid{grid-template-columns:repeat(8,minmax(0,1fr))!important} }
@media (max-width:374px){
  .home-page .product-grid{gap:.3rem!important}
  .home-page .product-grid > div > div.p-3{padding:.2rem .22rem .25rem!important}
  .home-page .product-grid > div > div.p-3 > h3{font-size:.64rem!important}
  .home-page .product-grid .theme-price-sm{font-size:.56rem!important;letter-spacing:-.06em}
  .home-page .product-grid > div > div.p-3 > div.border-t button{width:1rem!important;height:1rem!important}
}
/* 手机端：购物车按钮浮在图片右下角，价格独占一行，避免「CNY」被截 */
@media (max-width:767px){
  .home-page .product-grid > div > div.p-3 > div.border-t{position:static}
  .home-page .product-grid > div > div.p-3 > div.border-t > div:last-child{position:absolute;right:.25rem;top:-1.45rem;z-index:30}
  .home-page .product-grid > div > div.p-3 > div.border-t button{width:1.25rem!important;height:1.25rem!important;background:rgba(255,255,255,.88)!important;border-color:rgba(0,0,0,.08)!important}
  .home-page .product-grid > div > div.p-3 > div.border-t button svg{width:.7rem!important;height:.7rem!important;color:#111}
  .home-page .product-grid .theme-price-sm{font-size:.64rem!important;letter-spacing:-.04em}
}
@media (max-width:374px){
  .home-page .product-grid .theme-price-sm{font-size:.6rem!important;letter-spacing:-.05em}
  .home-page .product-grid > div > div.p-3 > div.border-t button{width:1.15rem!important;height:1.15rem!important}
}
